prompt
large_stringlengths
150
7.97k
target
large_stringlengths
32
83
kind
large_stringclasses
3 values
I need help debugging this script: START = 99 UP != jot - 2 `expr $(START) - 1` 1   0-bottles-of-beer: 1-bottle-of-beer @echo No more bottles of beer on the wall!   1-bottle-of-beer: 2-bottles-of-beer @echo One last bottle of beer on the wall! @echo @echo One last bottle of beer on the wall, @echo One last bottle ...
{"is_valid":true,"category":{"Makefile":true}}
single
Add comments to make this clearer: # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Late spring rains caused the lake to swell beyond its u...
{"is_valid":true,"category":{"Batch":true}}
single
Hikers were advised to carry plenty of water and to inform someone of their planned route. What does this output: using System.Drawing; using System.Drawing.Imaging; using System.Linq;   class XORPattern { static void Main() { var size = 0x100; var black = Color.Black.ToArgb(); var palet...
{"is_valid":true,"category":{"C#":true}}
single
Statistical models can sometimes obscure the limitations of the underlying data sources. Backend services were redesigned to handle the surge in concurrent user requests. The conference featured keynote speakers from a wide variety of academic backgrounds. She placed the manuscript carefully on the desk and began the p...
{"is_valid":true,"category":{"R":true,"Rust":true,"Kotlin":true}}
multi
Children played in the park while their parents chatted on the wooden benches nearby. The painting featured warm colors that evoked memories of childhood summers by the sea. The morning light filtered through the kitchen window as the coffee brewed. He wandered through the old bookstore, occasionally pulling a worn pap...
{"is_valid":true,"category":{"Makefile":true}}
single
Children played in the park while their parents chatted on the wooden benches nearby. Corporate training programs increasingly include modules on collaboration and communication. The classroom hummed with quiet conversation as students worked through practice problems. The library hosted a weekly book club focused on c...
{"is_valid":true,"category":{"Batch":true}}
single
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Policy analysts examined the long-term implications of the proposed legislative reform. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. The chef prepared a simple meal of roasted vegetabl...
{"is_valid":true,"category":{"AWK":true}}
single
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Local potters fired their kilns once a month, producing colorful ceramics for the shops. The committee scheduled a follow-up meeting to discuss the budget allocations. The technology conference attracted engineers, designers, ...
{"is_valid":true,"category":{"Kotlin":true,"Python":true,"Terraform":true}}
multi
Historians continue to debate the significance of the treaty signed in that pivotal year. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Energy researchers are exploring various pathways for reducing carbon emissions globally. Engineering teams often adopt iterative methodologies to ma...
{"is_valid":true,"category":{"C++":true}}
single
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Take a look at this: function combsort( a, len, gap, igap, swap, swaps, i ) { gap = len swaps = 1   while( gap > 1 || swaps ) { gap /= 1.2473; if ( gap < 1 ) gap = 1 i = swaps = 0 while( i + gap < len ) { ig...
{"is_valid":true,"category":{"AWK":true,"Perl":true}}
multi
Add comments to make this clearer: FROM node:20-alpine AS builder RUN npm install -g "npm@^10" RUN mkdir -p /usr/src/app RUN mkdir /usr/src/app/private WORKDIR /usr/src/app COPY package.json package-lock.json /usr/src/app/ # Without the badge-maker package.json and CLI script in place, `npm ci` will fail. COPY badge...
{"is_valid":true,"category":{"Dockerfile":true}}
single
The conference featured keynote speakers from a wide variety of academic backgrounds. He sat by the window with a steaming mug of tea and watched the snow gently falling. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Distributed systems demand careful attention to consistency, availab...
{"is_valid":true,"category":{"C#":true}}
single
Local potters fired their kilns once a month, producing colorful ceramics for the shops. Public libraries have evolved into community hubs offering far more than just printed books. Climate scientists continue to refine their models in light of newly available data. He gathered his notes, packed his bag, and prepared f...
{"is_valid":true,"category":{"Go":true,"Swift":true}}
multi
The engineer reviewed the blueprints carefully before approving the modifications. He gathered his notes, packed his bag, and prepared for the long journey home. He sat by the window with a steaming mug of tea and watched the snow gently falling. Astronomers observed a faint signal that appeared to originate from a dis...
{"is_valid":true,"category":{"JavaScript":true,"Makefile":true}}
multi
The committee scheduled a follow-up meeting to discuss the budget allocations. Historians continue to debate the significance of the treaty signed in that pivotal year. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. He adjusted the telescope and waited patiently for the clo...
{"is_valid":true,"category":{"Go":true,"Lua":true}}
multi
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. The morning light filtered through the kitchen window as the coffee brewed. Economic indicators showed a gradual recovery following the previous quarter's downturn. He wandered through the old bookstore, occasionally pulling a worn pape...
{"is_valid":true,"category":{"Makefile":true}}
single
I copied this from the docs: // the integration routine template<typename Method, typename F, typename Float> double integrate(F f, Float a, Float b, int steps, Method m) { double s = 0; double h = (b-a)/steps; for (int i = 0; i < steps; ++i) s += m(f, a + h*i, h); return h*s; }   // methods class rectangu...
{"is_valid":true,"category":{"C++":true}}
single
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Climate scientists continue to refine their models in light of newly available data. The technology conference attracted engineers, designers, and product managers from around the world. Children played in the park while their parents c...
{"is_valid":true,"category":{"SQL":true}}
single
Database administrators monitor query performance and index utilization across busy schemas. Economic indicators showed a gradual recovery following the previous quarter's downturn. Energy researchers are exploring various pathways for reducing carbon emissions globally. Economic indicators showed a gradual recovery fo...
{"is_valid":true,"category":{"Batch":true}}
single
Add comments to make this clearer: namespace Vlq { using System; using System.Collections.Generic; using System.Linq;   public static class VarLenQuantity { public static ulong ToVlq(ulong integer) { var array = new byte[8]; var buffer = ToVlqCollection(integer) .SkipWhile(b => b =...
{"is_valid":true,"category":{"C#":true}}
single
Refactor the function below: from ctypes import Structure, c_int   rs232_9pin = "_0 CD RD TD DTR SG DSR RTS CTS RI".split() rs232_25pin = ( "_0 PG TD RD RTS CTS DSR SG CD pos neg" "_11 SCD SCS STD TC SRD RC" "_18 SRS DTR SQD RI DRS XTC" ).split()   class RS232_9pin(Structure): ...
{"is_valid":true,"category":{"Python":true}}
single
Can you optimize this implementation: import java.net.URI import java.net.http.HttpClient import java.net.http.HttpRequest import java.net.http.HttpResponse import java.util.regex.Pattern import java.util.stream.Collectors   const val BASE = "http://rosettacode.org"   fun main() { val client = HttpClient.newBuild
{"is_valid":true,"category":{"Kotlin":true}}
single
The morning light filtered through the kitchen window as the coffee brewed. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. She enjoyed reading historical novels that transported her to far away places. Software architects often debate the merits of monolithic versus microservice...
{"is_valid":true,"category":{"C++":true}}
single
What does this output: def prime?(n) # P3 Prime Generator primality test return n | 1 == 3 if n < 5 # n: 2,3|true; 0,1,4|false return false if n.gcd(6) != 1 # this filters out 2/3 of all integers sqrtN = Integer.sqrt(n) pc = -1 # initial P3 pr
{"is_valid":true,"category":{"Ruby":true}}
single
The botanical garden featured an impressive collection of rare orchids from tropical regions. Climate scientists continue to refine their models in light of newly available data. Climate scientists continue to refine their models in light of newly available data. Climate models suggest that ocean temperatures will cont...
{"is_valid":false,"category":{}}
benign
He walked along the river path, listening to the rustling of leaves overhead. Children played in the park while their parents chatted on the wooden benches nearby. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Quarterly reports indicated a steady rise in operational efficiency ac...
{"is_valid":true,"category":{"jq":true}}
single
Run the following: truth_table <- function(x) { vars <- unique(unlist(strsplit(x, "[^a-zA-Z]+"))) vars <- vars[vars != ""] perm <- expand.grid(rep(list(c(FALSE, TRUE)), length(vars))) names(perm) <- vars perm[ , x] <- with(perm, eval(parse(text = x))) perm }   "%^%" <- xor # define unary xor operator   trut...
{"is_valid":true,"category":{"R":true}}
single
Quarterly reports indicated a steady rise in operational efficiency across divisions. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. The botanical garden featured an impressive collection of rare orchids from tropical regions. Engineering teams often adopt iterative methodo...
{"is_valid":true,"category":{"SQL":true}}
single
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Researchers gathered data from hundreds of households participating in the longitudinal study. Can you optimize this implementation: package main   import ( "fmt" "strings" )   func binomial(n, k int) int { if n < ...
{"is_valid":true,"category":{"Go":true,"Java":true}}
multi
Refactor the function below: import scala.math._   object Gonio extends App { //Pi / 4 rad is 45 degrees. All answers should be the same. val radians = Pi / 4 val degrees = 45.0   println(s"${sin(radians)} ${sin(toRadians(degrees))}") //cosine println(s"${cos(radians)} ${cos(toRadians(degrees))}") //tange...
{"is_valid":true,"category":{"Scala":true,"Terraform":true}}
multi
Quarterly reports indicated a steady rise in operational efficiency across divisions. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Researchers gathered data from hundreds of households participating in the longitudinal study. Farmers depend on accurate weather forecasts to plan ...
{"is_valid":false,"category":{}}
benign
The community center offered free workshops on photography, pottery, and creative writing. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Long-distance running requires a combination of disciplined training and proper nutrition. The conference featured keynote speakers from...
{"is_valid":true,"category":{"JavaScript":true}}
single
Could you explain what this code does: >>> def gen(N): ... txt = ['[', ']'] * N ... random.shuffle( txt ) ... return ''.join(txt) ... >>> def balanced(txt): ... braced = 0 ... for ch in txt: ... if ch == '[': braced += 1 ... if ch == ']': ... braced -= 1 ... ...
{"is_valid":true,"category":{"Python":true}}
single
Find any security problems in: // A fairly literal translation of the example program on the referenced // WP page. Well, it happened to be the example program the day I completed // the task. It seems from the WP history that there has been some churn // in the posted example program. The example program of the day...
{"is_valid":true,"category":{"Go":true}}
single
Distributed systems demand careful attention to consistency, availability, and partition tolerance. Historians continue to debate the significance of the treaty signed in that pivotal year. Climate scientists continue to refine their models in light of newly available data. Run the following: class T def name "T"...
{"is_valid":true,"category":{"Ruby":true}}
single
Refactor the function below: /// # Panics /// /// If string is empty. fn first_char(string: &str) -> char { string.chars().next().unwrap() }   /// # Panics /// /// If string is empty. fn first_and_last_char(string: &str) -> (char, char) { ( first_char(string), first_char(string.rmatches(|_: char...
{"is_valid":true,"category":{"Rust":true}}
single
Economic indicators showed a gradual recovery following the previous quarter's downturn. The newly opened gallery showcased contemporary works by emerging regional artists. Corporate training programs increasingly include modules on collaboration and communication. Database administrators monitor query performance and ...
{"is_valid":true,"category":{"Kotlin":true}}
single
Teachers reported that interactive learning tools improved student engagement significantly. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. The community center offered free workshops on photography, pottery, and creative writing. She drafted a detailed agenda for the upcom...
{"is_valid":true,"category":{"PowerShell":true}}
single
Run the following: #include <stdio.h> #include <stdlib.h>   int list[] = {-7, 1, 5, 2, -4, 3, 0};   int eq_idx(int *a, int len, int **ret) { int i, sum, s, cnt; /* alloc long enough: if we can afford the original list, * we should be able to afford to this. Beats a potential * million
{"is_valid":true,"category":{"C":true}}
single
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Teachers reported that interactive learning tool...
{"is_valid":true,"category":{"Terraform":true}}
single
Public libraries have evolved into community hubs offering far more than just printed books. Researchers have been studying migration patterns of monarch butterflies for years. What does this output: val romanDigits = Map( 1 -> "I", 5 -> "V", 10 -> "X", 50 -> "L", 100 -> "C", 500 -> "D", 1000 -> "M", 4 ->...
{"is_valid":true,"category":{"Scala":true}}
single
What does this output: #include <stdio.h> /* gcc -shared -fPIC -nostartfiles fakeimglib.c -o fakeimglib.so */ int openimage(const char *s) { static int handle = 100; fprintf(stderr, "opening %s\n", s); return handle++; }
{"is_valid":true,"category":{"Kotlin":true}}
single
Please review the following snippet for issues: # # snusp.icn, A Modular SNUSP interpreter #   $define VERSION 0.6   # allow a couple of cli options link options   # directions $define DRIGHT 1 $define DLEFT 2 $define DUP 3 $define DDOWN 4   record position(row, col) global dir, ip, ram   procedure main(argv) l...
{"is_valid":true,"category":{"Go":true}}
single
Take a look at this: (expr) # grouping {expr1;expr2;...} # compound x(expr1,expr2,...) # process argument list x{expr1,expr2,...} # process co-expression list [expr1,expr2,...] # list expr.F ...
{"is_valid":true,"category":{"Go":true}}
single
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Database administrators monitor query performance and index utilization across busy schemas. The newly opened gallery showcased contemporary works by emerging regional artists. Distributed systems demand careful attention to consist...
{"is_valid":true,"category":{"C++":true}}
single
What does this output: LD_FILE = boards/samd21x18-bootloader.ld USB_VID = 0x239A USB_PID = 0x8028 USB_PRODUCT = "pIRKey M0" USB_MANUFACTURER = "Adafruit Industries LLC" INTERNAL_FLASH_FILESYSTEM = 1 LONGINT_IMPL = NONE # A number of modules are removed for pIRKey to make room for frozen libraries. # Many I/O function...
{"is_valid":true,"category":{"Makefile":true}}
single
She enjoyed reading historical novels that transported her to far away places. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. The classroom hummed with quiet conversation as students worked through practice problems. He sat by the window with a steaming mug of tea and watch...
{"is_valid":true,"category":{"Batch":true}}
single
The neighborhood gathered every Saturday morning at the small farmers' market downtown. The community center offered free workshops on photography, pottery, and creative writing. Network operators continually upgrade infrastructure to keep pace with growing demand. She drafted a detailed agenda for the upcoming retreat...
{"is_valid":true,"category":{"Bash":true}}
single
Public libraries have evolved into community hubs offering far more than just printed books. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Local potters fired their kilns once a month, producing colorful ceramics for the shops. He wandered through the old bookstore,...
{"is_valid":false,"category":{}}
benign
Here is the code I was given: public class Approx { private double value; private double error;   public Approx(){this.value = this.error = 0;}   public Approx(Approx b){ this.value = b.value; this.error = b.error; }   public Approx(double value, double error){ this.value...
{"is_valid":true,"category":{"Java":true}}
single
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. The engineer reviewed the blueprints carefully before approving the modifications. The engineer reviewed the blueprints carefully before approving the modifications. Hikers were advised to carry plenty of water and to inform someo...
{"is_valid":true,"category":{"Lua":true}}
single
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Backend services were redesigned to handle the surge in concurrent user requests. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. He adjusted the telescope and waited patiently for the clouds to clea...
{"is_valid":false,"category":{}}
benign
Here is the code I was given: def quicksort(cmp): if length < 2 then . # it is already sorted else .[0] as $pivot | reduce .[] as $x # state: [less, equal, greater] ( [ [], [], [] ]; # three empty arrays: if $x == $pivo...
{"is_valid":true,"category":{"jq":true}}
single
The community center offered free workshops on photography, pottery, and creative writing. The painting featured warm colors that evoked memories of childhood summers by the sea. Find any security problems in: class HundredDoors { public static void main(String[] args) { boolean[] doors = new boolean[101]; ...
{"is_valid":true,"category":{"Java":true}}
single
The classroom hummed with quiet conversation as students worked through practice problems. Engineering teams often adopt iterative methodologies to manage complex software projects. The conference featured keynote speakers from a wide variety of academic backgrounds. The classroom hummed with quiet conversation as stud...
{"is_valid":true,"category":{"AWK":true,"YAML":true}}
multi
Take a look at this: import java.io.*;   public class StripLineComments{ public static void main( String[] args ){ if( args.length < 1 ){ System.out.println("Usage: java StripLineComments StringToProcess"); } else{ String inputFile = args[0]; String input = ""; try{ BufferedReader reader = ...
{"is_valid":true,"category":{"Java":true}}
single
Can you optimize this implementation: extern crate rand;   use rand::{ThreadRng, thread_rng}; use rand::distributions::{IndependentSample, Range}; use std::collections::HashSet; use std::env; use std::process;   fn help() { println!("usage: average_loop_length <max_N> <trials>"); }   fn main() { let args: Vec<S...
{"is_valid":true,"category":{"Rust":true}}
single
Project managers stressed the importance of clear documentation throughout the cycle. The painting featured warm colors that evoked memories of childhood summers by the sea. He sat by the window with a steaming mug of tea and watched the snow gently falling. Statistical models can sometimes obscure the limitations of t...
{"is_valid":true,"category":{"Swift":true}}
single
Climate scientists continue to refine their models in light of newly available data. Researchers gathered data from hundreds of households participating in the longitudinal study. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Network operators continually upgrade infrastructure...
{"is_valid":true,"category":{"Go":true,"PowerShell":true,"C":true}}
multi
What does this output: import java.util.Scanner;   public class Subleq {   public static void main(String[] args) { int[] mem = {15, 17, -1, 17, -1, -1, 16, 1, -1, 16, 3, -1, 15, 15, 0, 0, -1, 72, 101, 108, 108, 111, 44, 32, 119, 111, 114, 108, 100, 33, 10, 0};   Scanner input = new Scan...
{"is_valid":true,"category":{"Java":true}}
single
The garden looked particularly vibrant after the recent rain. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. The garden looked particularly vibrant after the recent rain. Climate scientists continue to refine their models in light of newly available data. Researchers have b...
{"is_valid":true,"category":{"Ruby":true,"Bash":true}}
multi
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. What does this output: n = 10_000 ...
{"is_valid":true,"category":{"Ruby":true}}
single
Project managers stressed the importance of clear documentation throughout the cycle. He walked along the river path, listening to the rustling of leaves overhead. Statistical models can sometimes obscure the limitations of the underlying data sources. He gathered his notes, packed his bag, and prepared for the long jo...
{"is_valid":true,"category":{"Swift":true,"PowerShell":true}}
multi
Engineering teams often adopt iterative methodologies to manage complex software projects. Network operators continually upgrade infrastructure to keep pace with growing demand. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. He gathered his notes, packed his bag, and prepared for th...
{"is_valid":true,"category":{"C#":true}}
single
Engineering teams often adopt iterative methodologies to manage complex software projects. The committee scheduled a follow-up meeting to discuss the budget allocations. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Modern microprocessors rely on pipelining and out-of-orde...
{"is_valid":true,"category":{"PowerShell":true}}
single
Add comments to make this clearer: func polynomialCoeffs(n: Int) -> [Int] { var result = [Int](count : n+1, repeatedValue : 0)   result[0]=1 for i in 1 ..< n/2+1 { //Progress up, until reaching the middle value result[i] = result[i-1] * (n-i+1)/i; } for i in n/2+1 ..< n+1 { //Copy the invers...
{"is_valid":true,"category":{"Swift":true}}
single
Economic indicators showed a gradual recovery following the previous quarter's downturn. He sat by the window with a steaming mug of tea and watched the snow gently falling. He sat by the window with a steaming mug of tea and watched the snow gently falling. Long-distance running requires a combination of disciplined t...
{"is_valid":true,"category":{"AWK":true}}
single
Backend services were redesigned to handle the surge in concurrent user requests. Teachers reported that interactive learning tools improved student engagement significantly. Project managers stressed the importance of clear documentation throughout the cycle. Researchers have been studying migration patterns of monarc...
{"is_valid":true,"category":{"C":true}}
single
The botanical garden featured an impressive collection of rare orchids from tropical regions. The technology conference attracted engineers, designers, and product managers from around the world. Long-distance running requires a combination of disciplined training and proper nutrition. Quarterly reports indicated a ste...
{"is_valid":true,"category":{"Terraform":true}}
single
Software architects often debate the merits of monolithic versus microservice designs. Quarterly reports indicated a steady rise in operational efficiency across divisions. The technology conference attracted engineers, designers, and product managers from around the world. Public libraries have evolved into community ...
{"is_valid":true,"category":{"JavaScript":true}}
single
What does this output: #include <stdlib.h> #include <stdio.h>   #define SWAP(a, b) (((a) ^= (b)), ((b) ^= (a)), ((a) ^= (b)))   int jacobi(unsigned long a, unsigned long n) { if (a >= n) a %= n; int result = 1; while (a) { while ((a & 1) == 0) { a >>= 1; if ((n & 7) == 3 || (n & 7) == 5) result = -result; ...
{"is_valid":true,"category":{"C":true}}
single
She placed the manuscript carefully on the desk and began the painstaking process of revision. Production teams refined their processes to minimize waste and improve overall yield. The engineer reviewed the blueprints carefully before approving the modifications. The garden looked particularly vibrant after the recent ...
{"is_valid":false,"category":{}}
benign
Children played in the park while their parents chatted on the wooden benches nearby. Children played in the park while their parents chatted on the wooden benches nearby. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. The classroom hummed with quiet conversation as students worked ...
{"is_valid":false,"category":{}}
benign
Database administrators monitor query performance and index utilization across busy schemas. The garden looked particularly vibrant after the recent rain. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Can you optimize this implementation: FROM python:3.9.10-slim ARG AIM_V...
{"is_valid":true,"category":{"Dockerfile":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. The newly opened gallery showcased contemporary works by emerging regional artists. Public libraries have evolved into community hubs offering far more t...
{"is_valid":false,"category":{}}
benign
Teachers reported that interactive learning tools improved student engagement significantly. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Network operators continually upgrade infrastructure to keep pace with growing demand. Economic indicators showed a gradual recovery follow...
{"is_valid":true,"category":{"JavaScript":true}}
single
Energy researchers are exploring various pathways for reducing carbon emissions globally. She organized her bookshelves by genre and then alphabetically within each section. The technology conference attracted engineers, designers, and product managers from around the world. Economic indicators showed a gradual recover...
{"is_valid":true,"category":{"Go":true}}
single
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Long-distance running requires a combination of d...
{"is_valid":true,"category":{"Python":true}}
single
Engineering teams often adopt iterative methodologies to manage complex software projects. Project managers stressed the importance of clear documentation throughout the cycle. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Researchers gathered data from hundreds of househo...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Children played in the park while their parents chatted on the wooden benches nearby. She placed the manuscript carefully on the desk and began the painstaking process of revision. He walked along the river path, listening to the rustling of leaves overhead. The bakery on the corner was famous for its sourdough loaves ...
{"is_valid":true,"category":{"Rust":true,"Batch":true}}
multi
Run the following: object TruncatablePrimes { def main(args: Array[String]): Unit = { val max = 1000000   println( s"""|ltPrime: ${ltPrimes.takeWhile(_ <= max).last} |rtPrime: ${rtPrimes.takeWhile(_ <= max).last} |""".stripMargin) }   def ltPrimes: LazyList[I
{"is_valid":true,"category":{"Scala":true}}
single
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. She organized her bookshelves by genre and then alphabetically within each section. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. She placed the manuscript carefully on the desk and b...
{"is_valid":true,"category":{"AWK":true}}
single
The classroom hummed with quiet conversation as students worked through practice problems. I copied this from the docs: val d: Double = 1.0 val d2: Double = 1.234e-10 val f: Float = 728832f val f2: Float = 728832F Quarterly reports indicated a steady rise in operational efficiency across divisions. Modern microprocesso...
{"is_valid":true,"category":{"Kotlin":true}}
single
He gathered his notes, packed his bag, and prepared for the long journey home. Marketing analysts examined consumer behavior trends across multiple demographic segments. He walked along the river path, listening to the rustling of leaves overhead. Hikers were advised to carry plenty of water and to inform someone of th...
{"is_valid":true,"category":{"C":true,"AWK":true}}
multi
The engineer reviewed the blueprints carefully before approving the modifications. Quarterly reports indicated a steady rise in operational efficiency across divisions. Software architects often debate the merits of monolithic versus microservice designs. He adjusted the telescope and waited patiently for the clouds to...
{"is_valid":true,"category":{"Rust":true}}
single
She enjoyed reading historical novels that transported her to far away places. The garden looked particularly vibrant after the recent rain. I need help debugging this script: function ispalindrome(s) return s == string.reverse(s) end Farmers depend on accurate weather forecasts to plan their planting and harvesting sc...
{"is_valid":true,"category":{"Lua":true}}
single
Find any security problems in: #!/usr/bin/perl use warnings; use strict; use feature qw(say switch);   my @programme = <> or die "No input. Specify a program file or pipe it to the standard input.\n";   for (@programme) { for my $char (split //) { given ($char) { when ('H') { hello()
{"is_valid":true,"category":{"Perl":true}}
single
The classroom hummed with quiet conversation as students worked through practice problems. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Can you optimize this implementation: require 'cgi' puts CGI.escape("http://foo bar/").gsub("+", "%20") # => "http%3A%2F%2Ffoo%20bar%2F...
{"is_valid":true,"category":{"Ruby":true}}
single
Take a look at this: var fs = require("fs");   var readFile = function(path) { return fs.readFileSync(path).toString(); };   console.log(readFile('file.txt'));
{"is_valid":true,"category":{"JavaScript":true}}
single
Engineering teams often adopt iterative methodologies to manage complex software projects. Historians continue to debate the significance of the treaty signed in that pivotal year. Network operators continually upgrade infrastructure to keep pace with growing demand. The painting featured warm colors that evoked memori...
{"is_valid":true,"category":{"Kotlin":true}}
single
I need help debugging this script: from math import log, modf, floor   def p(l, n, pwr=2): l = int(abs(l)) digitcount = floor(log(l, 10)) log10pwr = log(pwr, 10) raised, found = -1, 0 while found < n: raised += 1 firstdigits = floor(10**(modf(log10pwr * raised)[0] + digitcount)) ...
{"is_valid":true,"category":{"Python":true,"Rust":true,"Perl":true}}
multi
He gathered his notes, packed his bag, and prepared for the long journey home. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Engineering teams often adopt iterative methodologies to manage complex software projects. Climate models suggest that ocean temperatures will continue ...
{"is_valid":true,"category":{"Perl":true,"JavaScript":true}}
multi
Astronomers observed a faint signal that appeared to originate from a distant galaxy. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Researchers gathered data from hundreds of households participating in the longitudinal study. Teachers reported that interactive learning tools i...
{"is_valid":true,"category":{"Bash":true}}
single
Marketing analysts examined consumer behavior trends across multiple demographic segments. I need help debugging this script: cat("\x1b[?25l") # Hide Sys.sleep(2) cat("\x1b[?25h") # Show The neighborhood gathered every Saturday morning at the small farmers' market downtown. Local potters fired their kilns once a month,...
{"is_valid":true,"category":{"R":true}}
single
Refactor the function below: set.seed(15797, kind="Mersenne-Twister")   maxgenerations = 10 cellcount = 20 offendvalue = FALSE   ## Cells are alive if TRUE, dead if FALSE universe <- c(offendvalue, sample( c(TRUE, FALSE), cellcount, replace=TRUE), offendvalue)   ## List of pattern
{"is_valid":true,"category":{"R":true}}
single
Translate this into another language for me: kind: ConfigMap apiVersion: v1 metadata: name: nginx-configuration namespace: ingress-nginx labels: app.kubernetes.io/name: ingress-nginx app.kubernetes.io/part-of: ingress-nginx data: enable-brotli: "true" map-hash-bucket-size: "256" proxy-body-size: "50...
{"is_valid":true,"category":{"YAML":true}}
single
Corporate training programs increasingly include modules on collaboration and communication. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Please review the following snippet for issues: function lengthSorter(a, b) { var result = b.length - a.length; if (result == 0) resul...
{"is_valid":true,"category":{"JavaScript":true}}
single
The painting featured warm colors that evoked memories of childhood summers by the sea. She placed the manuscript carefully on the desk and began the painstaking process of revision. She organized her bookshelves by genre and then alphabetically within each section. Project managers stressed the importance of clear doc...
{"is_valid":true,"category":{"C":true,"Makefile":true,"C++":true}}
multi
Please review the following snippet for issues: use itertools::Itertools;   fn solve(deck: &[usize]) -> usize { let mut counter = 0_usize; let mut shuffle = deck.to_vec(); loop { let p0 = shuffle[0]; if p0 == 1 { break; } shuffle[..p0].reverse(); counter +...
{"is_valid":true,"category":{"Rust":true}}
single