prompt
large_stringlengths
150
7.97k
target
large_stringlengths
32
83
kind
large_stringclasses
3 values
Software architects often debate the merits of monolithic versus microservice designs. Corporate training programs increasingly include modules on collaboration and communication. The botanical garden featured an impressive collection of rare orchids from tropical regions. The engineer reviewed the blueprints carefully...
{"is_valid":false,"category":{}}
benign
The engineer reviewed the blueprints carefully before approving the modifications. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Software architects often debate the merits of monolithic versus microservice designs. Statistical models can sometimes obscure the limitations of th...
{"is_valid":true,"category":{"JavaScript":true}}
single
The classroom hummed with quiet conversation as students worked through practice problems. The garden looked particularly vibrant after the recent rain. Policy analysts examined the long-term implications of the proposed legislative reform. Marketing analysts examined consumer behavior trends across multiple demographi...
{"is_valid":true,"category":{"SQL":true}}
single
I copied this from the docs: function turn(base, n) local sum = 0 while n ~= 0 do local re = n % base n = math.floor(n / base) sum = sum + re end return sum % base end   function fairShare(base, count) io.write(string.format("Base %2d:", base)) for i=1,count do
{"is_valid":true,"category":{"Lua":true}}
single
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Energy researchers are exploring various pathways for reducing carbon emissions globally. The library hosted a weekly book club focused on classic ...
{"is_valid":true,"category":{"R":true,"Ruby":true}}
multi
Here is the code I was given: whack <- function(s) { paste( rev( unlist(strsplit(s, " "))), collapse=' ' ) }   poem <- unlist( strsplit( '------------ Eldorado ----------   ... here omitted lines ...   Mountains the "Over Moon, the Of Shadow, the of Valley the Down ride," boldly Ride, replied,--- shade The Eldorado!"...
{"is_valid":true,"category":{"R":true}}
single
Run the following: #Get modification time: modtime = File.mtime('filename')   #Set the access and modification times: File.utime(actime, mtime, 'path')   #Set just the modification time: File.utime(File.atime('path'), mtime, 'path')   #Set the access and modification times to the current time: File
{"is_valid":true,"category":{"Ruby":true}}
single
Quick question about this snippet: package main   import "fmt"   type Color string   const ( R Color = "R" B = "B" )   type Tree interface { ins(x int) Tree }   type E struct{}   func (_ E) ins(x int) Tree { return T{R, E{}, x, E{}} }   func (_ E) String() string { return "E" }   type T s
{"is_valid":true,"category":{"Go":true}}
single
Economic indicators showed a gradual recovery following the previous quarter's downturn. Could you explain what this code does: import Foundation   extension String { func dropLastIf(_ char: Character) -> String { if last == char { return String(dropLast()) } else { return self } } }   enum ...
{"is_valid":true,"category":{"Swift":true}}
single
Run the following: use Socket;   my $port = 8080; my $protocol = getprotobyname( "tcp" );   socket( SOCK, PF_INET, SOCK_STREAM, $protocol ) or die "couldn't open a socket: $!"; # PF_INET to indicate that this socket will connect to the internet domain # SOCK_STREAM indicates a TCP stream, SOCK_DGRAM would indicate ...
{"is_valid":true,"category":{"Perl":true}}
single
Researchers gathered data from hundreds of households participating in the longitudinal study. Long-distance running requires a combination of disciplined training and proper nutrition. The newly opened gallery showcased contemporary works by emerging regional artists. Researchers have been studying migration patterns ...
{"is_valid":true,"category":{"JavaScript":true,"jq":true}}
multi
Climate models suggest that ocean temperatures will continue to rise over the coming decades. Hikers were advised to carry plenty of water and to inform someone of their planned route. Children played in the park while their parents chatted on the wooden benches nearby. Modern microprocessors rely on pipelining and out...
{"is_valid":true,"category":{"Ruby":true}}
single
Policy analysts examined the long-term implications of the proposed legislative reform. Project managers stressed the importance of clear documentation throughout the cycle. Researchers have been studying migration patterns of monarch butterflies for years. Nutritionists generally recommend a balanced diet rich in whol...
{"is_valid":true,"category":{"Lua":true}}
single
Project managers stressed the importance of clear documentation throughout the cycle. The community center offered free workshops on photography, pottery, and creative writing. Production teams refined their processes to minimize waste and improve overall yield. The conference featured keynote speakers from a wide vari...
{"is_valid":false,"category":{}}
benign
Here is the code I was given: #include <stdio.h>   #define MAT_ELEM(rows,cols,r,c) (r*cols+c)   //Improve performance by assuming output matrices do not overlap with //input matrices. If this is C++, use the __restrict extension instead #ifdef __cplusplus typedef double * const __restrict MAT_OUT_t; #else typed...
{"is_valid":true,"category":{"C":true}}
single
Visitors strolled through the cobblestone streets, admiring the historic architecture. Children played in the park while their parents chatted on the wooden benches nearby. Climate scientists continue to refine their models in light of newly available data. Researchers have been studying migration patterns of monarch b...
{"is_valid":true,"category":{"Kotlin":true,"JavaScript":true}}
multi
The neighborhood gathered every Saturday morning at the small farmers' market downtown. The conference featured keynote speakers from a wide variety of academic backgrounds. The newly opened gallery showcased contemporary works by emerging regional artists. Production teams refined their processes to minimize waste and...
{"is_valid":true,"category":{"Swift":true}}
single
Run the following: // version 1.1.2   data class Item(val name: String, val weight: Int, val value: Int, val count: Int)   val items = listOf( Item("map", 9, 150, 1), Item("compass", 13, 35, 1), Item("water", 153, 200, 2), Item("sandwich", 50, 60, 2), Item("glucose", 15, 60, 2), Item("tin", 68, ...
{"is_valid":true,"category":{"Kotlin":true}}
single
Late spring rains caused the lake to swell beyond its usual seasonal boundaries. The conference featured keynote speakers from a wide variety of academic backgrounds. The painting featured warm colors that evoked memories of childhood summers by the sea. The garden looked particularly vibrant after the recent rain. The...
{"is_valid":true,"category":{"SQL":true}}
single
The botanical garden featured an impressive collection of rare orchids from tropical regions. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Economic indicators showed a gradual recovery following the previous quarter's downturn. Travelers explored ancient ruins, marveling at th...
{"is_valid":false,"category":{}}
benign
Distributed systems demand careful attention to consistency, availability, and partition tolerance. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Network operators continually upgrade infrastructure to keep pace with growing demand. Marketing analysts examined consumer behavior tre...
{"is_valid":true,"category":{"Python":true,"YAML":true}}
multi
Database administrators monitor query performance and index utilization across busy schemas. Could you explain what this code does: // version 1.1.2   import java.net.URL import java.net.MalformedURLException   fun parseUrl(url: String) { var u: URL var scheme: String try { u = URL(url) sche...
{"is_valid":true,"category":{"Kotlin":true,"jq":true}}
multi
Refactor the function below: package main   import "fmt"   func main() { for i := 1; i <= 5; i++ { for j := 1; j <= i; j++ { fmt.Printf("*") } fmt.Printf("\n") } } Alongside it, this: :: DNS Query Task from Rosetta Code Wiki :: Batch File Implementation   @echo off   set "do...
{"is_valid":true,"category":{"Go":true,"Batch":true,"Python":true}}
multi
Add comments to make this clearer: import static ExampleClass.pali; // or from wherever it is defined import static ExampleClass.rPali; // or from wherever it is defined import org.junit.*; public class PalindromeTest extends junit.framework.TestCase { @Before public void setUp(){ //runs before each tes...
{"is_valid":true,"category":{"Java":true,"Kotlin":true}}
multi
He gathered his notes, packed his bag, and prepared for the long journey home. Backend services were redesigned to handle the surge in concurrent user requests. Climate scientists continue to refine their models in light of newly available data. The committee scheduled a follow-up meeting to discuss the budget allocati...
{"is_valid":true,"category":{"Go":true}}
single
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Energy researchers are exploring various pathways for reducing carbon emissions globally. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Backend services were redesigned to handle the surge in c...
{"is_valid":true,"category":{"AWK":true}}
single
Hikers were advised to carry plenty of water and to inform someone of their planned route. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. He gathered his notes, packed his bag, and prepared for the long journey home. He walked along the river path, listening to the rustlin...
{"is_valid":true,"category":{"Terraform":true}}
single
Researchers have been studying migration patterns of monarch butterflies for years. Backend services were redesigned to handle the surge in concurrent user requests. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Marketing analysts examined consumer behavior trends across multiple...
{"is_valid":true,"category":{"Lua":true,"Go":true}}
multi
Production teams refined their processes to minimize waste and improve overall yield. Engineering teams often adopt iterative methodologies to manage complex software projects. Production teams refined their processes to minimize waste and improve overall yield. The painting featured warm colors that evoked memories of...
{"is_valid":false,"category":{}}
benign
Take a look at this: // This code is the implementation of Babbage Problem   #include <stdio.h> #include <stdlib.h> #include <limits.h>   int main() { int current = 0, //the current number square; //the square of the current number   //the strategy of take the rest of division by 1e06 is //to take the a numb...
{"is_valid":true,"category":{"C":true}}
single
Add comments to make this clearer: #include <algorithm> #include <fstream> #include <iostream> #include <map> #include <string> #include <vector>   using word_map = std::map<size_t, std::vector<std::string>>;   // Returns true if strings s1 and s2 differ by one character. bool one_away(const std::string& s1, const std:...
{"is_valid":true,"category":{"C++":true}}
single
Energy researchers are exploring various pathways for reducing carbon emissions globally. The painting featured warm colors that evoked memories of childhood summers by the sea.
{"is_valid":false,"category":{}}
benign
Distributed systems demand careful attention to consistency, availability, and partition tolerance. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. The newly opened gallery showcased contemporary works by emerging regional artists. The chef prepared a simple meal of roasted vegetables, ...
{"is_valid":true,"category":{"Scala":true}}
single
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. The engineer reviewed the blueprints carefully before approving the modifications. Project managers stressed the importance of clear documentation throughout the cycle. Engineering teams often adopt iterative methodologies to ...
{"is_valid":true,"category":{"YAML":true,"Lua":true}}
multi
The committee scheduled a follow-up meeting to discuss the budget allocations. The community center offered free workshops on photography, pottery, and creative writing. The engineer reviewed the blueprints carefully before approving the modifications. He sat by the window with a steaming mug of tea and watched the sno...
{"is_valid":true,"category":{"Python":true}}
single
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Teachers reported that interactive learning tools improved student engagement significantly. Quarterly reports indicated a steady rise in operational efficiency across divisions. Backend services were redesigned to handle the surge ...
{"is_valid":true,"category":{"AWK":true}}
single
He walked along the river path, listening to the rustling of leaves overhead. Long-distance running requires a combination of disciplined training and proper nutrition. Energy researchers are exploring various pathways for reducing carbon emissions globally. Production teams refined their processes to minimize waste an...
{"is_valid":true,"category":{"Kotlin":true}}
single
Quality assurance teams collaborate closely with developers to identify and resolve defects. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Find any security problems in: @echo off   for /l %%i in (1,1,10000) do call one_of_n :: To show progress add to the FOR loop code block ...
{"is_valid":true,"category":{"Batch":true}}
single
The newly opened gallery showcased contemporary works by emerging regional artists. Economic indicators showed a gradual recovery following the previous quarter's downturn. Policy analysts examined the long-term implications of the proposed legislative reform. Late spring rains caused the lake to swell beyond its usual...
{"is_valid":true,"category":{"R":true}}
single
The committee scheduled a follow-up meeting to discuss the budget allocations. Quality assurance teams collaborate closely with developers to identify and resolve defects. Refactor the function below: function longer(s1, s2) while true do s1 = s1:sub(1, -2) s2 = s2:sub(1, -2) if s1:find('^$'...
{"is_valid":true,"category":{"Lua":true,"Batch":true,"JavaScript":true}}
multi
Production teams refined their processes to minimize waste and improve overall yield. Take a look at this: resource "aws_eip" "monitoring_server_eip" { vpc = true instance = "${aws_instance.monitoring_server.id}" } resource "aws_security_group" "monitoring_security_group" { name = "MonitoringSecurityGroup" des...
{"is_valid":true,"category":{"Terraform":true}}
single
He sat by the window with a steaming mug of tea and watched the snow gently falling. Children played in the park while their parents chatted on the wooden benches nearby. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Researchers have been studying migration patterns of mo...
{"is_valid":true,"category":{"Scala":true}}
single
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. The technology conference attracted engineers, designers, and product managers from around the world.
{"is_valid":false,"category":{}}
benign
The library hosted a weekly book club focused on classic and contemporary literature. Historians continue to debate the significance of the treaty signed in that pivotal year. Could you explain what this code does: #include <algorithm> #include <array> #include <chrono> #include <iomanip> #include <iostream> #include <...
{"is_valid":true,"category":{"C++":true,"Makefile":true}}
multi
Quick question about this snippet: #include <stdio.h> #include <stdlib.h> #include <math.h>   #define mat_elem(a, y, x, n) (a + ((y) * (n) + (x)))   void swap_row(double *a, double *b, int r1, int r2, int n) { double tmp, *p1, *p2; int i;   if (r1 == r2) return; for (i = 0; i < n; i++) { p1 = mat_elem(a, r1, i, n...
{"is_valid":true,"category":{"C":true,"Rust":true}}
multi
What does this output: :: Digital Root Task from Rosetta Code Wiki :: Batch File Implementation :: (Base 10)   @echo off setlocal enabledelayedexpansion :: THE MAIN THING for %%x in (9876543214 393900588225 1985989328582 34559) do call :droot %%x echo( pause exit /b :: /THE MAIN THING :: THE FUNCTION :droot set inp2s...
{"is_valid":true,"category":{"Batch":true}}
single
Energy researchers are exploring various pathways for reducing carbon emissions globally. The painting featured warm colors that evoked memories of childhood summers by the sea. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Local musicians performed acoustic sets every Friday eve...
{"is_valid":false,"category":{}}
benign
Historians continue to debate the significance of the treaty signed in that pivotal year. The newly opened gallery showcased contemporary works by emerging regional artists. Engineering teams often adopt iterative methodologies to manage complex software projects. Researchers have been studying migration patterns of mo...
{"is_valid":true,"category":{"AWK":true}}
single
Take a look at this: use Imager;   sub tree { my ($img, $x1, $y1, $x2, $y2, $depth) = @_;   return () if $depth <= 0;   my $dx = ($x2 - $x1); my $dy = ($y1 - $y2);   my $x3 = ($x2 - $dy); my $y3 = ($y2 - $dx); my $x4 = ($x1 - $dy); my $y4 = ($y1 - $dx); my $x5 = ($x4 + 0.5 * ($dx - $...
{"is_valid":true,"category":{"Perl":true}}
single
Distributed systems demand careful attention to consistency, availability, and partition tolerance. Researchers gathered data from hundreds of households participating in the longitudinal study. Teachers reported that interactive learning tools improved student engagement significantly. Project managers stressed the im...
{"is_valid":true,"category":{"SQL":true}}
single
Run the following: # syntax: GAWK -f DAMM_ALGORITHM.AWK BEGIN { damm_init() leng = split("5724,5727,112946",arr,",") # test cases for (i=1; i<=leng; i++) { n = arr[i] printf("%s %s\n",damm_check(n),n) } exit(0) } function damm_check(n, a,i) { a = 0 for (i=1; i<=length(n); i++) {...
{"is_valid":true,"category":{"AWK":true}}
single
She organized her bookshelves by genre and then alphabetically within each section. Historians continue to debate the significance of the treaty signed in that pivotal year. Historians continue to debate the significance of the treaty signed in that pivotal year. A gentle breeze drifted across the meadow as the sun beg...
{"is_valid":true,"category":{"PowerShell":true}}
single
Take a look at this: Function Reverse-Words($lines) { $lines | foreach { $array = $PSItem.Split(' ') $array[($array.Count-1)..0] -join ' ' } }   $lines = "---------- Ice and Fire ------------", "", "fire, in end will world the say Some", "ice. in say Some", "desire of tasted I've what From", ...
{"is_valid":true,"category":{"PowerShell":true}}
single
Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Project managers stressed the importance of clear documentation throughout the cycle. Astronomers observed a faint signal that appeared to originate from a distant galaxy. He walked along the river path, listening to the rustling of leaves...
{"is_valid":true,"category":{"C":true}}
single
The community center offered free workshops on photography, pottery, and creative writing. Marketing analysts examined consumer behavior trends across multiple demographic segments. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. A gentle breeze drifted across the meadow as...
{"is_valid":false,"category":{}}
benign
Engineering teams often adopt iterative methodologies to manage complex software projects. Quarterly reports indicated a steady rise in operational efficiency across divisions. Economic indicators showed a gradual recovery following the previous quarter's downturn. The technology conference attracted engineers, designe...
{"is_valid":true,"category":{"Terraform":true}}
single
Translate this into another language for me: import org.apache.directory.api.ldap.model.exception.LdapException import org.apache.directory.ldap.client.api.LdapNetworkConnection import java.io.IOException import java.util.logging.Level import java.util.logging.Logger   class LDAP(map: Map<String, String>) { fun run...
{"is_valid":true,"category":{"Kotlin":true}}
single
The botanical garden featured an impressive collection of rare orchids from tropical regions. The garden looked particularly vibrant after the recent rain. The garden looked particularly vibrant after the recent rain. Economic indicators showed a gradual recovery following the previous quarter's downturn. I copied this...
{"is_valid":true,"category":{"Perl":true}}
single
Policy analysts examined the long-term implications of the proposed legislative reform. Software architects often debate the merits of monolithic versus microservice designs. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Project managers stressed the importance of clear d...
{"is_valid":true,"category":{"AWK":true,"Terraform":true,"Scala":true}}
multi
Historians continue to debate the significance of the treaty signed in that pivotal year. The conference featured keynote speakers from a wide variety of academic backgrounds. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Distributed systems demand careful attention to co...
{"is_valid":true,"category":{"C":true}}
single
Translate this into another language for me: object HailstoneSequence extends App { def hailstone(n: Int): Stream[Int] = n #:: (if (n == 1) Stream.empty else hailstone(if (n % 2 == 0) n / 2 else n * 3 + 1))   val nr = args.headOption.map(_.toInt).getOrElse(27) val collatz = hailstone(nr) println(s"Use the r...
{"is_valid":true,"category":{"Scala":true}}
single
He sat by the window with a steaming mug of tea and watched the snow gently falling. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Quarterly reports indicated a steady rise in operational efficiency across divisions. She drafted a detailed agenda for the upcoming retreat ...
{"is_valid":false,"category":{}}
benign
The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Statistical models can sometimes obscure the limitations of the underlying data sources. Translate this into another language for me: { "value": <HAILSTONE>, "count": <COUNT> } Distributed systems demand careful attention to co...
{"is_valid":true,"category":{"jq":true}}
single
Please review the following snippet for issues: BEGIN { NIL = 0 HEAD = 1 LINK = 1 VALUE = 2   delete list initList() }   function initList() { delete list list[HEAD] = makeNode(NIL, NIL) }   function makeNode(link, value) { return link SUBSEP value }   function getNode(part, nodePtr,...
{"is_valid":true,"category":{"AWK":true}}
single
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Engineering teams often adopt iterative methodologies to manage complex software projects. The garden looked particularly vibrant after the recent rain. Quality assurance teams collaborate closely with developers to identify an...
{"is_valid":true,"category":{"Perl":true}}
single
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Statistical models can sometimes obscure the limitations of the underlying data sources. Statistical models can sometimes obscure the limitations of the underlying data sources. The classroom hummed with quiet conversation as ...
{"is_valid":true,"category":{"Batch":true}}
single
Database administrators monitor query performance and index utilization across busy schemas. I need help debugging this script: @echo off setlocal enabledelayedexpansion   %===The Main Thing===% call :pangram "The quick brown fox jumps over the lazy dog." call :pangram "The quick brown fox jumped over the lazy dog." e...
{"is_valid":true,"category":{"Batch":true}}
single
Historians continue to debate the significance of the treaty signed in that pivotal year. Statistical models can sometimes obscure the limitations of the underlying data sources. Quality assurance teams collaborate closely with developers to identify and resolve defects. The bakery on the corner was famous for its sour...
{"is_valid":true,"category":{"AWK":true,"Kotlin":true}}
multi
Visitors strolled through the cobblestone streets, admiring the historic architecture. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Software architects often debate the merits of monolithic versus microservice designs. The bakery on the corner was famous for its sourdough lo...
{"is_valid":true,"category":{"PowerShell":true}}
single
Translate this into another language for me: // version 1.1.51   fun polyRegression(x: IntArray, y: IntArray) { val xm = x.average() val ym = y.average() val x2m = x.map { it * it }.average() val x3m = x.map { it * it * it }.average() val x4m = x.map { it * it * it * it }.average() val xym =...
{"is_valid":true,"category":{"Kotlin":true,"jq":true,"Python":true}}
multi
Quality assurance teams collaborate closely with developers to identify and resolve defects. Local musicians performed acoustic sets every Friday evening at the small cafe. Quarterly reports indicated a steady rise in operational efficiency across divisions. Visitors strolled through the cobblestone streets, admiring t...
{"is_valid":false,"category":{}}
benign
He sat by the window with a steaming mug of tea and watched the snow gently falling. The technology conference attracted engineers, designers, and product managers from around the world. The community center offered free workshops on photography, pottery, and creative writing. Researchers gathered data from hundreds of...
{"is_valid":true,"category":{"PowerShell":true}}
single
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. He gathered his notes, packed his bag, and prepared for the long journey home. Production teams refined their processes to minimize waste and improve overall yield. Economic indicators showed a gradual recovery following the pr...
{"is_valid":true,"category":{"Scala":true}}
single
Please review the following snippet for issues: import java.awt.{BorderLayout, Color, Dimension, Font, Graphics, Graphics2D, Rectangle, RenderingHints} import java.awt.event.{MouseAdapter, MouseEvent}   import javax.swing.{JFrame, JPanel}   object FlippingBitsGame extends App {   class FlippingBitsGame extends JPanel...
{"is_valid":true,"category":{"Scala":true,"C++":true}}
multi
Energy researchers are exploring various pathways for reducing carbon emissions globally. Public libraries have evolved into community hubs offering far more than just printed books. Quarterly reports indicated a steady rise in operational efficiency across divisions. The botanical garden featured an impressive collect...
{"is_valid":false,"category":{}}
benign
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Hikers were advised to carry plenty of water and to inform someone of their planned route. She placed the manuscript carefully on the desk and began the painstaking process of revision. The committee scheduled a follow-up meeti...
{"is_valid":true,"category":{"Makefile":true,"Swift":true}}
multi
Local potters fired their kilns once a month, producing colorful ceramics for the shops. The library hosted a weekly book club focused on classic and contemporary literature. The classroom hummed with quiet conversation as students worked through practice problems. He gathered his notes, packed his bag, and prepared fo...
{"is_valid":true,"category":{"Batch":true}}
single
Quick question about this snippet: Works with Gnu awk version 3.1.5 and with BusyBox v1.20.0.git awk To change the output width, change the value assigned to variable pagewide   #!/bin/gawk -f BEGIN{ wkdays = "Su Mo Tu We Th Fr Sa" pagewide = 80 blank=" " for (i=1; i<pagewide; i++) blank = blank " " # month ...
{"is_valid":true,"category":{"AWK":true}}
single
Climate models suggest that ocean temperatures will continue to rise over the coming decades. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Please review the following snippet for issues: p <- parallel::mcparallel({ Sys.sleep(1) cat("\tChild pid: ", Sys.get...
{"is_valid":true,"category":{"R":true}}
single
Hikers were advised to carry plenty of water and to inform someone of their planned route. Historians continue to debate the significance of the treaty signed in that pivotal year. The garden looked particularly vibrant after the recent rain. Farmers depend on accurate weather forecasts to plan their planting and harve...
{"is_valid":true,"category":{"Makefile":true}}
single
He gathered his notes, packed his bag, and prepared for the long journey home. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. The morning light filtered through the kitchen window as the coffee brewed. Software architects often debate the merits of monolithic versus microservice de...
{"is_valid":true,"category":{"PowerShell":true,"Kotlin":true}}
multi
The conference featured keynote speakers from a wide variety of academic backgrounds. Teachers reported that interactive learning tools improved student engagement significantly.
{"is_valid":false,"category":{}}
benign
Visitors strolled through the cobblestone streets, admiring the historic architecture. Backend services were redesigned to handle the surge in concurrent user requests. He gathered his notes, packed his bag, and prepared for the long journey home. Modern microprocessors rely on pipelining and out-of-order execution to ...
{"is_valid":true,"category":{"SQL":true}}
single
Find any security problems in: #include <windows.h> #include <string> #include <vector>   //-------------------------------------------------------------------------------------------------- using namespace std;   //-------------------------------------------------------------------------------------------------- const...
{"is_valid":true,"category":{"C++":true}}
single
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Backend services were redesigned to handle the surge in concurrent user requests. Researchers gathered data from hundreds of households participating in the longitudinal study. The technology conference attracted engineers, des...
{"is_valid":true,"category":{"Batch":true}}
single
Energy researchers are exploring various pathways for reducing carbon emissions globally. Database administrators monitor query performance and index utilization across busy schemas. She organized her bookshelves by genre and then alphabetically within each section. Climate models suggest that ocean temperatures will c...
{"is_valid":true,"category":{"YAML":true}}
single
Quick question about this snippet: $ function bubble_sort() { local a=("$@") local n local i local j local t ft=(false true) n=${#a[@]} # array length i=n while ${ft[$(( 0 < i ))]} do j=0 while ${ft[$(( j+1 < i ))]} do if ${ft[$(( a[j+1] < a[j]...
{"is_valid":true,"category":{"Bash":true}}
single
Backend services were redesigned to handle the surge in concurrent user requests. Hikers were advised to carry plenty of water and to inform someone of their planned route. Run the following: # For clarity $Tab = "`t"   # Create top row $Tab + ( 1..12 -join $Tab )   # For each row ForEach ( $i in 1..12 ) { $...
{"is_valid":true,"category":{"PowerShell":true}}
single
The morning light filtered through the kitchen window as the coffee brewed. The committee scheduled a follow-up meeting to discuss the budget allocations. Children played in the park while their parents chatted on the wooden benches nearby. Project managers stressed the importance of clear documentation throughout the ...
{"is_valid":true,"category":{"Go":true}}
single
He gathered his notes, packed his bag, and prepared for the long journey home. Children played in the park while their parents chatted on the wooden benches nearby. Production teams refined their processes to minimize waste and improve overall yield. Economic indicators showed a gradual recovery following the previous ...
{"is_valid":true,"category":{"Java":true}}
single
Backend services were redesigned to handle the surge in concurrent user requests. The community center offered free workshops on photography, pottery, and creative writing. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Could you explain what this code does: const myVar = 123; ...
{"is_valid":true,"category":{"JavaScript":true,"jq":true,"SQL":true}}
multi
Distributed systems demand careful attention to consistency, availability, and partition tolerance. Production teams refined their processes to minimize waste and improve overall yield. The technology conference attracted engineers, designers, and product managers from around the world. Distributed systems demand caref...
{"is_valid":true,"category":{"R":true,"YAML":true}}
multi
Please review the following snippet for issues: // version 1.1   object Isin { val r = Regex("^[A-Z]{2}[A-Z0-9]{9}[0-9]$")   fun isValid(s: String): Boolean { // check format if (!s.matches(r)) return false // validate checksum val sb = StringBuilder() for (c in s) { ...
{"is_valid":true,"category":{"Kotlin":true}}
single
Policy analysts examined the long-term implications of the proposed legislative reform. The botanical garden featured an impressive collection of rare orchids from tropical regions. She enjoyed reading historical novels that transported her to far away places. The library hosted a weekly book club focused on classic an...
{"is_valid":true,"category":{"SQL":true}}
single
Refactor the function below: local M = {}   -- module-local variables local BUZZER = pio.PB_10 local dit_length, dah_length, word_length   -- module-local functions local buzz, dah, dit, init, inter_element_gap, medium_gap, pause, sequence, short_gap   buzz = function(duration) pio.pin.output(BUZZER) pio.pin.setlow...
{"is_valid":true,"category":{"Lua":true}}
single
Software architects often debate the merits of monolithic versus microservice designs. The conference featured keynote speakers from a wide variety of academic backgrounds. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Astronomers observed a faint signal that appeared to ...
{"is_valid":true,"category":{"Batch":true,"SQL":true,"Go":true}}
multi
Engineering teams often adopt iterative methodologies to manage complex software projects. The garden looked particularly vibrant after the recent rain. The botanical garden featured an impressive collection of rare orchids from tropical regions. Historians continue to debate the significance of the treaty signed in th...
{"is_valid":true,"category":{"Terraform":true}}
single
Corporate training programs increasingly include modules on collaboration and communication. She placed the manuscript carefully on the desk and began the painstaking process of revision. The painting featured warm colors that evoked memories of childhood summers by the sea. Backend services were redesigned to handle t...
{"is_valid":true,"category":{"Java":true,"Swift":true}}
multi
Local musicians performed acoustic sets every Friday evening at the small cafe. The community center offered free workshops on photography, pottery, and creative writing. Project managers stressed the importance of clear documentation throughout the cycle. Climate scientists continue to refine their models in light of ...
{"is_valid":false,"category":{}}
benign
What does this output: public class Tau { private static long divisorCount(long n) { long total = 1; // Deal with powers of 2 first for (; (n & 1) == 0; n >>= 1) { ++total; } // Odd prime factors up to the square root for (long p = 3; p * p <= n; p += 2) {...
{"is_valid":true,"category":{"Java":true}}
single