prompt
large_stringlengths
150
7.97k
target
large_stringlengths
32
83
kind
large_stringclasses
3 values
Children played in the park while their parents chatted on the wooden benches nearby. 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 ...
{"is_valid":false,"category":{}}
benign
Take a look at this: g, angle = love.graphics, 26 * math.pi / 180 wid, hei = g.getWidth(), g.getHeight() function rotate( x, y, a ) local s, c = math.sin( a ), math.cos( a ) local a, b = x * c - y * s, x * s + y * c return a, b end function branches( a, b, len, ang, dir ) len = len * .76 if len < 5 then retur...
{"is_valid":true,"category":{"Lua":true}}
single
Software architects often debate the merits of monolithic versus microservice designs. 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. A gentle breeze drifted across the meadow as the sun began to dip below ...
{"is_valid":true,"category":{"SQL":true}}
single
Add comments to make this clearer: # Generates a new board - either a random one, sample blinker or gliders, or user specified. gen.board <- function(type="random", nrow=3, ncol=3, seeds=NULL) { if(type=="random") { return(matrix(runif(nrow*ncol) > 0.5, nrow=nrow, ncol=ncol)) } else if(type=="blinker...
{"is_valid":true,"category":{"R":true}}
single
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Production teams refined their processes to minimize waste and improve overall yield. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Marketing analysts examined consumer behavior trends acro...
{"is_valid":true,"category":{"AWK":true}}
single
Take a look at this: def bwt(s): """Apply Burrows-Wheeler transform to input string.""" assert "\002" not in s and "\003" not in s, "Input string cannot contain STX and ETX characters" s = "\002" + s + "\003" # Add start and end of text marker table = sorted(s[i:] + s[:i] for i in range(len(s))) # Tab...
{"is_valid":true,"category":{"Python":true}}
single
Engineering teams often adopt iterative methodologies to manage complex software projects. Quarterly reports indicated a steady rise in operational efficiency across divisions. Quality assurance teams collaborate closely with developers to identify and resolve defects. Production teams refined their processes to minimi...
{"is_valid":true,"category":{"Terraform":true,"YAML":true}}
multi
Corporate training programs increasingly include modules on collaboration and communication. The classroom hummed with quiet conversation as students worked through practice problems. Could you explain what this code does: cube = proc{|x| x ** 3} croot = proc{|x| x ** (1.quo 3)} compose = proc {|f,g| proc {|x| f[g[x]]}...
{"is_valid":true,"category":{"Ruby":true,"Go":true}}
multi
Could you explain what this code does: @echo off setlocal enableDelayedExpansion ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: LIFO stack usage :: Define the stack call :newStack myStack :: Push some values onto the stack for %%A in (value1 value2 value3) do call :pushStack myStack %%A ::...
{"is_valid":true,"category":{"Batch":true}}
single
Network operators continually upgrade infrastructure to keep pace with growing demand. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Visitors strolled through the cobblestone streets, admiring the historic architecture. Corporate training programs increasingly include mod...
{"is_valid":true,"category":{"Python":true}}
single
The morning light filtered through the kitchen window as the coffee brewed. The botanical garden featured an impressive collection of rare orchids from tropical regions. Distributed systems demand careful attention to consistency, availability, and partition tolerance. The conference featured keynote speakers from a wi...
{"is_valid":false,"category":{}}
benign
Find any security problems in: fn main() { // Rust has a lot of neat things you can do with functions: let's go over the basics first fn no_args() {} // Run function with no arguments no_args();   // Calling a function with fixed number of arguments. // adds_one takes a 32-bit signed integer and...
{"is_valid":true,"category":{"Rust":true}}
single
The newly opened gallery showcased contemporary works by emerging regional artists. Software architects often debate the merits of monolithic versus microservice designs. Historians continue to debate the significance of the treaty signed in that pivotal year. Long-distance running requires a combination of disciplined...
{"is_valid":false,"category":{}}
benign
Distributed systems demand careful attention to consistency, availability, and partition tolerance. Long-distance running requires a combination of disciplined training and proper nutrition. Historians continue to debate the significance of the treaty signed in that pivotal year. The technology conference attracted eng...
{"is_valid":true,"category":{"Java":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. Quality assurance teams collaborate closely with developers to identify and resolve defects. Production teams refined their processes to ...
{"is_valid":true,"category":{"Lua":true}}
single
Children played in the park while their parents chatted on the wooden benches nearby. Researchers have been studying migration patterns of monarch butterflies for years. Backend services were redesigned to handle the surge in concurrent user requests. She drafted a detailed agenda for the upcoming retreat and circulate...
{"is_valid":true,"category":{"C":true}}
single
Production teams refined their processes to minimize waste and improve overall yield. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Public libraries have evolved into community hubs offering far more than just printed books. Backend services were redesigned to handle the surge in ...
{"is_valid":true,"category":{"YAML":true}}
single
Quality assurance teams collaborate closely with developers to identify and resolve defects. The newly opened gallery showcased contemporary works by emerging regional artists. Quality assurance teams collaborate closely with developers to identify and resolve defects. Policy analysts examined the long-term implication...
{"is_valid":false,"category":{}}
benign
Economic indicators showed a gradual recovery following the previous quarter's downturn. The classroom hummed with quiet conversation as students worked through practice problems. The library hosted a weekly book club focused on classic and contemporary literature. Researchers have been studying migration patterns of m...
{"is_valid":true,"category":{"Bash":true,"C":true}}
multi
Quick question about this snippet: # "while" as defined here is included in recent versions (>1.4) of jq: def until(cond; next): def _until: if cond then . else (next|_until) end; _until;   # Generate a stream of permutations of [1, ... n]. # This implementation uses arity-0 filters for speed. def permutations:...
{"is_valid":true,"category":{"jq":true}}
single
He walked along the river path, listening to the rustling of leaves overhead. Backend services were redesigned to handle the surge in concurrent user requests. Project managers stressed the importance of clear documentation throughout the cycle. The neighborhood gathered every Saturday morning at the small farmers' mar...
{"is_valid":true,"category":{"Java":true}}
single
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. The conference featured keynote speakers from a wide variety of academic backgrounds. Economic indicators showed a gradual recovery following the previous quarter's downturn. Teachers reported that interactive learning tools im...
{"is_valid":true,"category":{"Lua":true}}
single
Economic indicators showed a gradual recovery following the previous quarter's downturn. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. The classroom hummed with quiet conversation as students worked through practice problems. Long-distance running requires a combination o...
{"is_valid":true,"category":{"Perl":true,"R":true}}
multi
The committee scheduled a follow-up meeting to discuss the budget allocations. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Hikers were advised to carry plenty of water and to inform someone of their planned route. Engineering teams often adopt iterative methodolog...
{"is_valid":true,"category":{"Makefile":true}}
single
Quick question about this snippet: using System;   namespace ApplyDigitalFilter { class Program { private static double[] Filter(double[] a, double[] b, double[] signal) { double[] result = new double[signal.Length]; for (int i = 0; i < signal.Length; ++i) { doub
{"is_valid":true,"category":{"C#":true}}
single
Translate this into another language for me: package main   import ( "fmt" "log" "math/big" "sort" "strings" )   var testCases = []string{ "1.3.6.1.4.1.11.2.17.19.3.4.0.10", "1.3.6.1.4.1.11.2.17.5.2.0.79", "1.3.6.1.4.1.11.2.17.19.3.4.0.4", "1.3.6.1.4.1.11150.3.4.0.1", "1.3.6.1.4....
{"is_valid":true,"category":{"Go":true}}
single
Researchers gathered data from hundreds of households participating in the longitudinal study. He sat by the window with a steaming mug of tea and watched the snow gently falling. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. The newly opened gallery showcased contemporary work...
{"is_valid":true,"category":{"Batch":true,"Lua":true}}
multi
She organized her bookshelves by genre and then alphabetically within each section. Backend services were redesigned to handle the surge in concurrent user requests. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. The newly opened gallery showcased contemporary works by eme...
{"is_valid":true,"category":{"C#":true}}
single
I copied this from the docs: # syntax: GAWK -f ADDITIVE_PRIMES.AWK BEGIN { start = 1 stop = 500 for (i=start; i<=stop; i++) { if (is_prime(i) && is_prime(sum_digits(i))) { printf("%4d%1s",i,++count%10?"":"\n") } } printf("\nAdditive primes %d-%d: %d\n",start,stop,count) exit(...
{"is_valid":true,"category":{"AWK":true}}
single
Statistical models can sometimes obscure the limitations of the underlying data sources. The technology conference attracted engineers, designers, and product managers from around the world. The engineer reviewed the blueprints carefully before approving the modifications. Hikers were advised to carry plenty of water a...
{"is_valid":true,"category":{"Python":true}}
single
The morning light filtered through the kitchen window as the coffee brewed. I need help debugging this script: CREATE TABLE editor (Name VARCHAR, editor_id VARCHAR); CREATE TABLE journal_committee (Name VARCHAR, editor_id VARCHAR); SELECT Name FROM editor WHERE NOT editor_id IN (SELECT editor_id FROM journal_committee)...
{"is_valid":true,"category":{"SQL":true}}
single
The technology conference attracted engineers, designers, and product managers from around the world. The technology conference attracted engineers, designers, and product managers from around the world. He sat by the window with a steaming mug of tea and watched the snow gently falling. She organized her bookshelves b...
{"is_valid":true,"category":{"Go":true}}
single
She placed the manuscript carefully on the desk and began the painstaking process of revision. Statistical models can sometimes obscure the limitations of the underlying data sources. She organized her bookshelves by genre and then alphabetically within each section. Local musicians performed acoustic sets every Friday...
{"is_valid":true,"category":{"SQL":true}}
single
What does this output: module "vpc" { source = "./modules/vpc" name = "${ var.name }" cidr = "${ var.cidr }" region = "${ var.region }" } module "cluster" { source = "./modules/cluster" name = "${ var.name }" region = "${ var.region }" zone = "${ var.zone }" project = "${ var.project}" node_count =...
{"is_valid":true,"category":{"Terraform":true,"Python":true,"Go":true}}
multi
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. He walked along the river path, listening to the rustling of leaves overhead. Researchers have been studying migration patterns of monarch butterflies for years. Late spring rains caused the lake to swell beyond its usual seaso...
{"is_valid":true,"category":{"C":true}}
single
Corporate training programs increasingly include modules on collaboration and communication. Project managers stressed the importance of clear documentation throughout the cycle. The morning light filtered through the kitchen window as the coffee brewed. Local potters fired their kilns once a month, producing colorful ...
{"is_valid":true,"category":{"Go":true,"C#":true}}
multi
The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Translate this into another language for me: case class Quaternion(re: Double = 0.0, i: Double = 0.0, j: Double = 0.0, k: Double = 0.0) { lazy val im = (i, j, k) private lazy val norm2 = re*re + i*i + j*j + k*k lazy val n...
{"is_valid":true,"category":{"Scala":true}}
single
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. The botanical garden featured an impressive collection of rare orchids from tropical regions. Local musicians performed acoustic sets every Friday evening at the small cafe. Teachers reported that interactive learning tools imp...
{"is_valid":true,"category":{"Bash":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. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. He wandered through the old bookstore, occasionally pul...
{"is_valid":true,"category":{"Swift":true}}
single
Here is the code I was given: import java.util.Scanner;   public class IntegerArithmetic { public static void main(String[] args) { // Get the 2 numbers from command line arguments Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt();   int sum = a ...
{"is_valid":true,"category":{"Java":true}}
single
Statistical models can sometimes obscure the limitations of the underlying data sources. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Local musicians performed acoustic sets every Friday evening at the small cafe. The classroom hummed with quiet conversation as students w...
{"is_valid":false,"category":{}}
benign
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Can you optimize this implementation: CREATE TABLE Customers (customer_details VARCHAR); SELECT DISTINCT customer_details FROM Customers Climate scientists continue to refine their models in light of newly available data. Network op...
{"is_valid":true,"category":{"SQL":true}}
single
The engineer reviewed the blueprints carefully before approving the modifications. Researchers have been studying migration patterns of monarch butterflies for years. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Backend services were redesigned to handle the surge in concurr...
{"is_valid":true,"category":{"jq":true}}
single
Historians continue to debate the significance of the treaty signed in that pivotal year. Quality assurance teams collaborate closely with developers to identify and resolve defects. Network operators continually upgrade infrastructure to keep pace with growing demand. Network operators continually upgrade infrastructu...
{"is_valid":true,"category":{"C":true}}
single
The library hosted a weekly book club focused on classic and contemporary literature. Production teams refined their processes to minimize waste and improve overall yield. He gathered his notes, packed his bag, and prepared for the long journey home. Policy analysts examined the long-term implications of the proposed l...
{"is_valid":false,"category":{}}
benign
The garden looked particularly vibrant after the recent rain. Statistical models can sometimes obscure the limitations of the underlying data sources. Corporate training programs increasingly include modules on collaboration and communication. He wandered through the old bookstore, occasionally pulling a worn paperback...
{"is_valid":true,"category":{"JavaScript":true}}
single
Please review the following snippet for issues: local function validate(diagram) local lines = {} for s in diagram:gmatch("[^\r\n]+") do s = s:match("^%s*(.-)%s*$") if s~="" then lines[#lines+1]=s end end -- "a little of validation".."for brevity" assert(#lines>0, "FAIL: no non-empty lines") assert...
{"is_valid":true,"category":{"Lua":true}}
single
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. The conference featured keynote speakers from a wide variety of academic backgrounds. Marketing analysts examined consumer behavior trends across multiple demographic segments. The library hosted a weekly book club focused on c...
{"is_valid":true,"category":{"Dockerfile":true,"jq":true,"JavaScript":true}}
multi
Find any security problems in: %CD% - expands to the current directory string. %DATE% - expands to current date using same format as DATE command. %TIME% - expands to current time using same format as TIME command. %RANDOM% - expands to a random decimal number between 0 and 32767. %ERRORLEVEL% - expands to the curr...
{"is_valid":true,"category":{"Batch":true,"SQL":true}}
multi
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Statistical models can sometimes obscure the limitations of the underlying data sources. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Distributed systems demand careful attention to co...
{"is_valid":true,"category":{"Kotlin":true}}
single
Add comments to make this clearer: #include <stdio.h> #include <string.h>   char trans[] = "___#_##_";   #define v(i) (cell[i] != '_') int evolve(char cell[], char backup[], int len) { int i, diff = 0;   for (i = 0; i < len; i++) { /* use left, self, right as binary number bits for table index */ backup[i] = tran...
{"is_valid":true,"category":{"C":true}}
single
Public libraries have evolved into community hubs offering far more than just printed books. Find any security problems in: # syntax: GAWK -f DRAW_A_CUBOID.AWK [-v x=?] [-v y=?] [-v z=?] # example: GAWK -f DRAW_A_CUBOID.AWK -v x=12 -v y=4 -v z=6 # converted from VBSCRIPT BEGIN { init_sides() draw_cuboid(2,3,4) ...
{"is_valid":true,"category":{"AWK":true}}
single
The engineer reviewed the blueprints carefully before approving the modifications. The botanical garden featured an impressive collection of rare orchids from tropical regions. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Researchers gathered data from hundreds of households...
{"is_valid":true,"category":{"YAML":true}}
single
Engineering teams often adopt iterative methodologies to manage complex software projects. Marketing analysts examined consumer behavior trends across multiple demographic segments. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Refactor the function below: fn main() { for i i...
{"is_valid":true,"category":{"Rust":true}}
single
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Climate scientists continue to refine their models in light of newly available data. Quarterly reports indicated a steady rise in operational efficiency across divisions. Economic indicators showed a gradual recovery following...
{"is_valid":false,"category":{}}
benign
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Researchers gathered data from hundreds of households participating in the longitudinal study. Local potters fired their kilns once a month, producing colorful ceramics for the shops. She organized her bookshelves by genre and ...
{"is_valid":true,"category":{"Ruby":true,"Python":true,"C#":true}}
multi
The library hosted a weekly book club focused on classic and contemporary literature. Quick question about this snippet: if (problem) { Environment.Exit(1); }
{"is_valid":true,"category":{"C#":true}}
single
Here is the code I was given: #include<iostream> #include<algorithm> #include<string.h>   using namespace std; double result; double capacity = 15; int NumberOfItems; int number;   struct items { char name[32]; double weight; double price; double m; } item[256];   bool cmp(items a,items b) { return ...
{"is_valid":true,"category":{"C++":true,"Rust":true,"C":true}}
multi
The botanical garden featured an impressive collection of rare orchids from tropical regions. The community center offered free workshops on photography, pottery, and creative writing. Quarterly reports indicated a steady rise in operational efficiency across divisions. Astronomers observed a faint signal that appeared...
{"is_valid":true,"category":{"Bash":true}}
single
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Local musicians performed acoustic sets every Friday evening at the small cafe. I copied this from the docs: private const val MC = 103 * 100...
{"is_valid":true,"category":{"Kotlin":true,"Perl":true}}
multi
Production teams refined their processes to minimize waste and improve overall yield. Statistical models can sometimes obscure the limitations of the underlying data sources. The newly opened gallery showcased contemporary works by emerging regional artists. Software architects often debate the merits of monolithic ver...
{"is_valid":true,"category":{"PowerShell":true,"JavaScript":true}}
multi
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Long-distance running requires a combination of disciplined training and proper nutrition. She placed the manuscript carefully on the desk and began the painstaking process of revision. She enjoyed reading historical novels that transpo...
{"is_valid":true,"category":{"C#":true,"Dockerfile":true}}
multi
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. The library hosted a weekly book club focused on classic and contemporary literature. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Modern microprocessors rely on pipelining and out-of-or...
{"is_valid":true,"category":{"Rust":true}}
single
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Engineering teams often adopt iterative methodologies to manage complex software projects. Quick question about this snippet: apiVersion: v1 kind: Namespace metadata: name: votingappback spec: {} status: {} Researchers gathered da...
{"is_valid":true,"category":{"YAML":true}}
single
Can you optimize this implementation: def solve_pell(n) x = Integer.sqrt(n) y = x z = 1 r = 2*x e1, e2 = 1, 0 f1, f2 = 0, 1   loop do y = r*z - y z = (n - y*y) / z r = (x + y) / z e1, e2 = e2, r*e2 + e1 f1, f2 = f2, r*f2 + f1 a, b = e2 + x*f2, f2 break a, b if a*a - n*b*b =
{"is_valid":true,"category":{"Ruby":true}}
single
Climate scientists continue to refine their models in light of newly available data. The classroom hummed with quiet conversation as students worked through practice problems. What does this output: public class AksTest { private static final long[] c = new long[64];   public static void main(String[] args) { ...
{"is_valid":true,"category":{"Java":true}}
single
Engineering teams often adopt iterative methodologies to manage complex software projects. The morning light filtered through the kitchen window as the coffee brewed. Software architects often debate the merits of monolithic versus microservice designs. Climate models suggest that ocean temperatures will continue to ri...
{"is_valid":true,"category":{"C++":true}}
single
Quick question about this snippet: import Foundation   for i in [5, 2, 4, 6, 1, 7, 20, 14] { let time = dispatch_time(DISPATCH_TIME_NOW, Int64(i * Int(NSEC_PER_SEC)))   dispatch_after(time, dispatch_get_main_queue()) { print(i) } }   CFRunLoopRun()
{"is_valid":true,"category":{"Swift":true}}
single
Can you optimize this implementation: apiVersion: apps/v1 kind: Deployment metadata: name: hapi-fhir-mysql-deployment labels: package: core spec: replicas: 1 selector: matchLabels: component: hapi-fhir-mysql strategy: type: Recreate template: metadata: labels: component: ...
{"is_valid":true,"category":{"YAML":true}}
single
Local musicians performed acoustic sets every Friday evening at the small cafe. Production teams refined their processes to minimize waste and improve overall yield. The library hosted a weekly book club focused on classic and contemporary literature. Quarterly reports indicated a steady rise in operational efficiency ...
{"is_valid":true,"category":{"Rust":true,"jq":true,"Lua":true}}
multi
He gathered his notes, packed his bag, and prepared for the long journey home. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Run the following: def outer(a,b,c) middle a+b, b+c end   def middle(d,e) inner d+e end   def inner(f) puts caller(0) puts "continuing... my ar...
{"is_valid":true,"category":{"Ruby":true}}
single
Quick question about this snippet: def spiral($zero; $turns; $step):   def pi: 1 | atan * 4; def p2: (. * 100 | round) / 100;   def svg: 400 as $width | 400 as $height | 2 as $swidth # stroke | "blue" as $stroke | (range($zero; $turns * 2 * pi; $step) as $theta | (((($theta)|cos) *
{"is_valid":true,"category":{"jq":true}}
single
Astronomers observed a faint signal that appeared to originate from a distant galaxy. Historians continue to debate the significance of the treaty signed in that pivotal year. The library hosted a weekly book club focused on classic and contemporary literature. Energy researchers are exploring various pathways for redu...
{"is_valid":true,"category":{"YAML":true}}
single
Researchers have been studying migration patterns of monarch butterflies for years. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. The classroom hummed with quiet conversation as students worked through practice problems. The morning light filtered through the kitchen windo...
{"is_valid":false,"category":{}}
benign
Find any security problems in: void gnome_sort(int *a, int n) { int i=1, j=2, t; # define swap(i, j) { t = a[i]; a[i] = a[j]; a[j] = t; } while(i < n) { if (a[i - 1] > a[i]) { swap(i - 1, i); if (--i) continue; } i = j++; } # undef swap }
{"is_valid":true,"category":{"C":true}}
single
Project managers stressed the importance of clear documentation throughout the cycle. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Hikers were advised to carry plenty of water and to inform someone of their planned route. Economic indicators showed a gradual recovery following the...
{"is_valid":true,"category":{"Swift":true}}
single
Distributed systems demand careful attention to consistency, availability, and partition tolerance. Researchers have been studying migration patterns of monarch butterflies for years. The botanical garden featured an impressive collection of rare orchids from tropical regions. She organized her bookshelves by genre and...
{"is_valid":true,"category":{"PowerShell":true}}
single
Public libraries have evolved into community hubs offering far more than just printed books. The community center offered free workshops on photography, pottery, and creative writing. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Climate models suggest that ocean temperatures will...
{"is_valid":true,"category":{"Python":true}}
single
Climate scientists continue to refine their models in light of newly available data. Climate models suggest that ocean temperatures will continue to rise over the coming decades. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. The garden looked particularly vibrant after th...
{"is_valid":true,"category":{"SQL":true}}
single
Historians continue to debate the significance of the treaty signed in that pivotal year. Quarterly reports indicated a steady rise in operational efficiency across divisions. Quick question about this snippet: ifeq ($(OS),Darwin) CFLAGS_ARCH += -mmacosx-version-min=10.7 endif CFLAGS_PTHREAD += -pthread CFLAGS_GENERAL...
{"is_valid":true,"category":{"Makefile":true,"Rust":true}}
multi
Engineering teams often adopt iterative methodologies to manage complex software projects. Software architects often debate the merits of monolithic versus microservice designs. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Researchers have been studying migration patterns of mona...
{"is_valid":true,"category":{"Python":true}}
single
Can you optimize this implementation: resource "aws_cloudtrail" "foobar" { name = "tf-trail-foobar" s3_bucket_name = "${aws_s3_bucket.foo.id}" s3_key_prefix = "prefix" include_global_service_events = false } resource "aws_s3_bucket" "foo" { bucket ...
{"is_valid":true,"category":{"Terraform":true}}
single
Here is the code I was given: import Foundation   @inlinable public func chowla<T: BinaryInteger>(n: T) -> T { stride(from: 2, to: T(Double(n).squareRoot()+1), by: 1) .lazy .filter({ n % $0 == 0 }) .reduce(0, {(s: T, m: T) in m*m == n ? s + m : s + m + (n / m) }) }   extension Dictionary where K...
{"is_valid":true,"category":{"Swift":true}}
single
The classroom hummed with quiet conversation as students worked through practice problems. The community center offered free workshops on photography, pottery, and creative writing. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. The technology conference attracted engineers...
{"is_valid":false,"category":{}}
benign
Refactor the function below: use strict; use warnings; use feature 'say'; use ntheory 'is_prime'; use List::MoreUtils qw(zip slideatatime); use Algorithm::Combinatorics qw(permutations);   say '1 2';   my @count = (0, 0, 1);   for my $n (3..17) { my @even_nums = grep { 0 == $_ % 2 } 2..$n-1; my @odd_nums = gre...
{"is_valid":true,"category":{"Perl":true}}
single
The newly opened gallery showcased contemporary works by emerging regional artists. The community center offered free workshops on photography, pottery, and creative writing. Policy analysts examined the long-term implications of the proposed legislative reform. Production teams refined their processes to minimize wast...
{"is_valid":true,"category":{"Java":true}}
single
Distributed systems demand careful attention to consistency, availability, and partition tolerance. Astronomers observed a faint signal that appeared to originate from a distant galaxy. The committee scheduled a follow-up meeting to discuss the budget allocations. Climate models suggest that ocean temperatures will con...
{"is_valid":true,"category":{"jq":true,"Makefile":true}}
multi
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Network operators continually upgrade infrastructure to keep pace with growing demand. Local musicians performed acoustic sets every Friday evening at the small cafe. Visitors strolled through the cobblestone streets, admiring ...
{"is_valid":true,"category":{"R":true}}
single
He gathered his notes, packed his bag, and prepared for the long journey home. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. He walked along the river path, listening to the rustling of leaves overhead. The bakery on the corner was famous for its sourdough loaves and seaso...
{"is_valid":true,"category":{"Terraform":true}}
single
Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Policy analysts examined the long-term implications of the proposed legislative reform. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Teachers reported that interactive learning tools improved...
{"is_valid":true,"category":{"Kotlin":true,"Batch":true}}
multi
He sat by the window with a steaming mug of tea and watched the snow gently falling. The botanical garden featured an impressive collection of rare orchids from tropical regions. Policy analysts examined the long-term implications of the proposed legislative reform. The conference featured keynote speakers from a wide ...
{"is_valid":true,"category":{"Swift":true}}
single
Engineering teams often adopt iterative methodologies to manage complex software projects. Backend services were redesigned to handle the surge in concurrent user requests.
{"is_valid":false,"category":{}}
benign
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 chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Quality assurance teams collaborate closely...
{"is_valid":true,"category":{"YAML":true}}
single
Can you optimize this implementation: FROM centos:centos7 MAINTAINER The CentOS Project <cloud-ops@centos.org> LABEL Vendor="CentOS" LABEL License=GPLv2 LABEL Version=5.5.41 LABEL Build docker build --rm --tag centos/mariadb55 . RUN yum -y install --setopt=tsflags=nodocs epel-release && \ yum -y install --setop...
{"is_valid":true,"category":{"Dockerfile":true,"Kotlin":true,"R":true}}
multi
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. I need help debugging this script: /** * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a c...
{"is_valid":true,"category":{"Terraform":true}}
single
Please review the following snippet for issues: package main   import "fmt"   type matrix [][]float64   func zero(n int) matrix { r := make([][]float64, n) a := make([]float64, n*n) for i := range r { r[i] = a[n*i : n*(i+1)] } return r }   func eye(n int) matrix { r := zero(n) for ...
{"is_valid":true,"category":{"Go":true}}
single
He gathered his notes, packed his bag, and prepared for the long journey home. The morning light filtered through the kitchen window as the coffee brewed. The garden looked particularly vibrant after the recent rain. Project managers stressed the importance of clear documentation throughout the cycle. Late spring rains...
{"is_valid":true,"category":{"R":true,"Batch":true}}
multi
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. The newly opened gallery showcased contemporary works by emerging regional artists. Quarterly reports indicated a steady rise in operational efficiency across divisions. Local potters fired their kilns once a month, producing ...
{"is_valid":true,"category":{"JavaScript":true}}
single
Add comments to make this clearer: using System;   class Program { static Func<dynamic, dynamic> Foo(dynamic n) { return i => n += i; }   static void Main(string[] args) { var x = Foo(1); x(5); Foo(3); Console.WriteLine(x(2.3)); } } Alongside it, this: p ...
{"is_valid":true,"category":{"C#":true,"R":true}}
multi
Could you explain what this code does: #!/usr/bin/awk -f   BEGIN { message = "My hovercraft is full of eels." key = 1   cypher = caesarEncode(key, message) clear = caesarDecode(key, cypher)   print "message: " message print " cypher: " cypher print " clear: " clear exit }   function ca...
{"is_valid":true,"category":{"AWK":true,"C++":true}}
multi