prompt
large_stringlengths
150
7.97k
target
large_stringlengths
32
83
kind
large_stringclasses
3 values
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. She organized her bookshelves by ...
{"is_valid":true,"category":{"Python":true}}
single
Software architects often debate the merits of monolithic versus microservice designs. Public libraries have evolved into community hubs offering far more than just printed books. Can you optimize this implementation: var letters = [Character]()   for i in 97...122 { let char = Character(UnicodeScalar(i)) lette...
{"is_valid":true,"category":{"Swift":true}}
single
Energy researchers are exploring various pathways for reducing carbon emissions globally. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Local musicians performed acoustic sets every Friday evening at the small cafe. Database administrators monitor query performance and index utili...
{"is_valid":false,"category":{}}
benign
The botanical garden featured an impressive collection of rare orchids from tropical regions. The garden looked particularly vibrant after the recent rain. Researchers have been studying migration patterns of monarch butterflies for years. The painting featured warm colors that evoked memories of childhood summers by t...
{"is_valid":true,"category":{"Bash":true}}
single
The community center offered free workshops on photography, pottery, and creative writing. Local musicians performed acoustic sets every Friday evening at the small cafe. Historians continue to debate the significance of the treaty signed in that pivotal year. Modern microprocessors rely on pipelining and out-of-order ...
{"is_valid":true,"category":{"AWK":true}}
single
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. The garden looked particularly vibrant after the recent rain. Modern microprocessors rely on pipelining and out-of-order execution t...
{"is_valid":false,"category":{}}
benign
Energy researchers are exploring various pathways for reducing carbon emissions globally. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Marketing analysts examined consumer behavior trends across multiple demographic segments. Long-distance running requires a combination of discip...
{"is_valid":true,"category":{"Scala":true,"Lua":true,"R":true}}
multi
Add comments to make this clearer: package main   import "fmt"   func main() { tableA := []struct { value int key string }{ {27, "Jonah"}, {18, "Alan"}, {28, "Glory"}, {18, "Popeye"}, {28, "Alan"}, } tableB := []struct { key string value string }{ ...
{"is_valid":true,"category":{"Go":true}}
single
Project managers stressed the importance of clear documentation throughout the cycle. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Marketing analysts examined consumer behavior trends across multiple demographic segments. The engineer reviewed the blueprints carefully bef...
{"is_valid":true,"category":{"YAML":true}}
single
Visitors strolled through the cobblestone streets, admiring the historic architecture. Project managers stressed the importance of clear documentation throughout the cycle. Local potters fired their kilns once a month, producing colorful ceramics for the shops. The painting featured warm colors that evoked memories of ...
{"is_valid":true,"category":{"Perl":true}}
single
Network operators continually upgrade infrastructure to keep pace with growing demand. 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. Volunteers spent the weekend cleaning up the riverside trail and plan...
{"is_valid":false,"category":{}}
benign
Could you explain what this code does: from fractions import gcd     def pt1(maxperimeter=100): ''' # Naive method ''' trips = [] for a in range(1, maxperimeter): aa = a*a for b in range(a, maxperimeter-a+1): bb = b*b for c in range(b, maxperimeter-b-a+1): ...
{"is_valid":true,"category":{"Python":true}}
single
Teachers reported that interactive learning tools improved student engagement significantly. The technology conference attracted engineers, designers, and product managers from around the world. The neighborhood gathered every Saturday morning at the small farmers' market downtown. The garden looked particularly vibran...
{"is_valid":true,"category":{"AWK":true}}
single
She organized her bookshelves by genre and then alphabetically within each section. Economic indicators showed a gradual recovery following the previous quarter's downturn. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Quick question about this snippet: #include <st...
{"is_valid":true,"category":{"C":true}}
single
Take a look at this: import time, winsound #, sys   char2morse = { "!": "---.", "\"": ".-..-.", "$": "...-..-", "'": ".----.", "(": "-.--.", ")": "-.--.-", "+": ".-.-.", ",": "--..--", "-": "-....-", ".": ".-.-.-", "/": "-..-.", "0"...
{"is_valid":true,"category":{"Python":true}}
single
Marketing analysts examined consumer behavior trends across multiple demographic segments. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Hikers were advised to carry plenty of water and to inform someone of their planned route. He adjusted the telescope and waited patientl...
{"is_valid":true,"category":{"Lua":true}}
single
Local potters fired their kilns once a month, producing colorful ceramics for the shops. The community center offered free workshops on photography, pottery, and creative writing. Network operators continually upgrade infrastructure to keep pace with growing demand. The technology conference attracted engineers, design...
{"is_valid":true,"category":{"Terraform":true}}
single
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Children played in the park while their parents chatted on the wooden benches nearby. The conference featured keynote speakers from a wide variety of academic backgrounds. A gentle breeze drifted across the meadow as the sun began to di...
{"is_valid":true,"category":{"Python":true}}
single
Find any security problems in: #!/usr/bin/perl -w use DateTime ;   my @happymonths ; my @workhardyears ; my @longmonths = ( 1 , 3 , 5 , 7 , 8 , 10 , 12 ) ; my @years = 1900..2100 ; foreach my $year ( @years ) { my $countmonths = 0 ; foreach my $month ( @longmonths ) { my $dt = DateTime->new( year =
{"is_valid":true,"category":{"Perl":true}}
single
Researchers have been studying migration patterns of monarch butterflies for years. Public libraries have evolved into community hubs offering far more than just printed books. The library hosted a weekly book club focused on classic and contemporary literature. Marketing analysts examined consumer behavior trends acro...
{"is_valid":true,"category":{"C++":true}}
single
The engineer reviewed the blueprints carefully before approving the modifications. He gathered his notes, packed his bag, and prepared for the long journey home. Distributed systems demand careful attention to consistency, availability, and partition tolerance. He gathered his notes, packed his bag, and prepared for th...
{"is_valid":true,"category":{"Perl":true}}
single
I copied this from the docs: import java.math.BigInteger;   public class PrimorialPrimes {   final static int sieveLimit = 1550_000; static boolean[] notPrime = sieve(sieveLimit);   public static void main(String[] args) {   int count = 0; for (int i = 1; i < 1000_000 && count < 2
{"is_valid":true,"category":{"Java":true}}
single
Here is the code I was given: #include <stdio.h> #include <stdlib.h>   int verbose = 0; #define COND(a, b) int a(int *s) { return (b); } typedef int(*condition)(int *);   /* BEGIN problem specific setup */ #define N_FLOORS 5 #define TOP (N_FLOORS - 1) int solution[N_FLOORS] = { 0 }; int occupied[N_FLOORS] = { 0 };   en...
{"is_valid":true,"category":{"C":true}}
single
Historians continue to debate the significance of the treaty signed in that pivotal year. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Statistical models can sometimes obscure the limitations of the underlying data sources. Project managers stressed the importance of cle...
{"is_valid":true,"category":{"R":true}}
single
Researchers gathered data from hundreds of households participating in the longitudinal study. Network operators continually upgrade infrastructure to keep pace with growing demand. Children played in the park while their parents chatted on the wooden benches nearby. Researchers gathered data from hundreds of household...
{"is_valid":true,"category":{"AWK":true,"JavaScript":true}}
multi
Please review the following snippet for issues: import java.net.URI; import java.net.http.HttpClient; import java.net.http.HttpRequest; import java.net.http.HttpResponse; import java.nio.charset.Charset;   public class Main { public static void main(String[] args) { var request = HttpRequest.newBuilder(URI....
{"is_valid":true,"category":{"Java":true,"C++":true}}
multi
I need help debugging this script: services { name = "ingress-gateway" kind = "ingress-gateway" proxy { config { # Note that http2_protocol_options is a deprecated field and Envoy 1.17 # and up would prefer: # typed_extension_protocol_options: # envoy.extensions.upstrea
{"is_valid":true,"category":{"Terraform":true}}
single
Run the following: fn divisors(n: u64) -> Vec<u64> { let mut divs = vec![1]; let mut divs2 = Vec::new();   for i in (2..).take_while(|x| x * x <= n).filter(|x| n % x == 0) { divs.push(i); let j = n / i; if i != j { divs2.push(j); } } d
{"is_valid":true,"category":{"Rust":true}}
single
Climate scientists continue to refine their models in light of newly available data. Add comments to make this clearer: # syntax: GAWK -f GAMMA_FUNCTION.AWK BEGIN { e = (1+1/100000)^100000 pi = atan2(0,-1) leng = split("0.99999999999980993,676.5203681218851,-1259.1392167224028,771.32342877765313,-176.615029...
{"is_valid":true,"category":{"AWK":true}}
single
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Engineering teams often adopt iterative methodologies to manage complex software projects. Hikers were advised to carry plenty of water and to inform someone of their planned route. Quality assurance teams collaborate closely ...
{"is_valid":true,"category":{"Lua":true}}
single
Public libraries have evolved into community hubs offering far more than just printed books. Here is the code I was given: def mod(m, n) result = m % n if result < 0 then result = result + n end return result end   def getA004290(n) if n == 1 then return 1 end arr = Array.new...
{"is_valid":true,"category":{"Ruby":true}}
single
What does this output: class Vector: def __init__(self,m,value): self.m = m self.value = value self.angle = math.degrees(math.atan(self.m)) self.x = self.value * math.sin(math.radians(self.angle)) self.y = self.value * math.cos(math.radians(self.angle))   def __add__(self...
{"is_valid":true,"category":{"Python":true}}
single
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. The newly opened gallery showcased contemporary works by emerging regional artists. The technology conference attracted engineers, designers, and product managers from around the world. The newly opened gallery showcased contemporar...
{"is_valid":true,"category":{"Ruby":true,"Python":true,"SQL":true}}
multi
Database administrators monitor query performance and index utilization across busy schemas. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Production teams refined their processes to minimize waste and improve overall yield. Climate models suggest that ocean temperatures will continue...
{"is_valid":true,"category":{"Perl":true}}
single
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. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. The committee scheduled a follow-up meeting to discuss the bud...
{"is_valid":true,"category":{"Scala":true,"YAML":true}}
multi
Could you explain what this code does: //String creation var str=''; //or str2=new String();     //String assignment str="Hello"; //or str2=', Hey there'; //can use " or ' str=str+str2;//concantenates //string deletion delete str2;//this will return true or false, true when it has been successfully deleted, it shouldn...
{"is_valid":true,"category":{"JavaScript":true}}
single
Run the following: public class eulerSopConjecture {   static final int MAX_NUMBER = 250;   public static void main( String[] args ) { boolean found = false; long[] fifth = new long[ MAX_NUMBER ];   for( int i = 1; i <= MAX_NUMBER; i ++ ) { long i2 = i * i; ...
{"is_valid":true,"category":{"Java":true}}
single
Researchers have been studying migration patterns of monarch butterflies for years. Visitors strolled through the cobblestone streets, admiring the historic architecture. Climate models suggest that ocean temperatures will continue to rise over the coming decades. The committee scheduled a follow-up meeting to discuss ...
{"is_valid":false,"category":{}}
benign
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Find any security problems in: packages:=boost openssl curl zlib bzip2 libzip native_packages := native_ccache qt_packages = qrencode qt_linux_packages:=qt59 expat dbus libxcb xcb_proto libXau xproto freetype fontconfig libX1...
{"is_valid":true,"category":{"Makefile":true}}
single
Quick question about this snippet: public class LongMult {   private static byte[] stringToDigits(String num) { byte[] result = new byte[num.length()]; for (int i = 0; i < num.length(); i++) { char c = num.charAt(i); if (c < '0' || c > '9') { throw new IllegalArgumentException("Invalid digit " + c
{"is_valid":true,"category":{"Java":true}}
single
Quick question about this snippet: -- Matrix A[i] has dimension dims[i-1] x dims[i] for i = 1..n local function MatrixChainOrder(dims) local m = {} local s = {} local n = #dims - 1; -- m[i,j] = Minimum number of scalar multiplications (i.e., cost) -- needed to compute the matrix A[i]A[i+1]...A[
{"is_valid":true,"category":{"Lua":true}}
single
The garden looked particularly vibrant after the recent rain. Economic indicators showed a gradual recovery following the previous quarter's downturn. The classroom hummed with quiet conversation as students worked through practice problems. Long-distance running requires a combination of disciplined training and prope...
{"is_valid":false,"category":{}}
benign
The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Project managers stressed the importance of clear documentation throughout the cycle. Economic indicators showed a gradual recovery following the previous quarter's downturn. The community center offered free workshops on photo...
{"is_valid":true,"category":{"JavaScript":true,"AWK":true}}
multi
Policy analysts examined the long-term implications of the proposed legislative reform. Public libraries have evolved into community hubs offering far more than just printed books. Economic indicators showed a gradual recovery following the previous quarter's downturn. Late spring rains caused the lake to swell beyond ...
{"is_valid":true,"category":{"Lua":true}}
single
Visitors strolled through the cobblestone streets, admiring the historic architecture. Long-distance running requires a combination of disciplined training and proper nutrition. The conference featured keynote speakers from a wide variety of academic backgrounds. She organized her bookshelves by genre and then alphabet...
{"is_valid":true,"category":{"PowerShell":true}}
single
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. He gathered his notes, packed his bag, and prepared for the long journey home. Network operators continually upgrade infrastructure ...
{"is_valid":true,"category":{"Swift":true,"C++":true,"SQL":true}}
multi
Find any security problems in: data "template_file" "aws_credentials" { template = <<EOF [default] aws_access_key_id=$${access_key_id} aws_secret_access_key=$${secret_access_key} EOF vars { access_key_id = "${aws_iam_access_key.travis_ci.id}" secret_access_key = "${aws_iam_access_key.travis_ci.secret}"...
{"is_valid":true,"category":{"Terraform":true}}
single
I need help debugging this script: object Approximate extends App { val (ok, notOk, ε) = ("👌", "❌", 1e-18d)   private def approxEquals(value: Double, other: Double, epsilon: Double) = scala.math.abs(value - other) < epsilon   private def test(a: BigDecimal, b: BigDecimal, expected: Boolean): Unit = { val...
{"is_valid":true,"category":{"Scala":true}}
single
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Project managers stressed the importance of clear documentation throughout the cycle. He wandered through the old bookstore, occasionally ...
{"is_valid":true,"category":{"Python":true}}
single
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. Network operators continually upgrade infrastructure to keep pace with growing demand. He walked along the river path, listening to the ru...
{"is_valid":true,"category":{"jq":true,"AWK":true}}
multi
Network operators continually upgrade infrastructure to keep pace with growing demand. Researchers have been studying migration patterns of monarch butterflies for years. Please review the following snippet for issues: BEGIN { do_task1() do_task2() do_task3() exit }     function do_task1(){ print "T...
{"is_valid":true,"category":{"AWK":true}}
single
Find any security problems in: from itertools import groupby from collections import namedtuple   def anyvalidcomb(items, maxwt, val=0, wt=0): ' All combinations below the maxwt ' if not items: yield [], val, wt else: this, *items = items # car, cdr for n in range
{"is_valid":true,"category":{"Python":true}}
single
Local musicians performed acoustic sets every Friday evening at the small cafe. Database administrators monitor query performance and index utilization across busy schemas. Climate scientists continue to refine their models in light of newly available data. Corporate training programs increasingly include modules on co...
{"is_valid":true,"category":{"Bash":true}}
single
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. He sat by the window with a steaming mug of tea and watched the snow gently falling. Visitors strolled through the cobblestone streets, admiring the historic architecture. The classroom hummed with quiet conversation as student...
{"is_valid":false,"category":{}}
benign
Long-distance running requires a combination of disciplined training and proper nutrition. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Could you explain what this code does: CREATE TABLE Student (advisor VARCHAR); SELECT advisor, COUNT(*) FROM Student GROUP BY advisor T...
{"is_valid":true,"category":{"SQL":true}}
single
Late spring rains caused the lake to swell beyond its usual seasonal boundaries. The garden looked particularly vibrant after the recent rain. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Astronomers observed a faint signal that appeared to originate from a distant galax...
{"is_valid":true,"category":{"Perl":true}}
single
Local musicians performed acoustic sets every Friday evening at the small cafe. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Public libraries have evolved into community hubs offering far more tha...
{"is_valid":true,"category":{"Kotlin":true}}
single
The neighborhood gathered every Saturday morning at the small farmers' market downtown. 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. Visitors strolled through the cobblestone streets, admiring the historic arch...
{"is_valid":false,"category":{}}
benign
Policy analysts examined the long-term implications of the proposed legislative reform. 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. Could you explain what this code does: echo -n "The quic...
{"is_valid":true,"category":{"Bash":true}}
single
The library hosted a weekly book club focused on classic and contemporary literature. Astronomers observed a faint signal that appeared to originate from a distant galaxy. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. I copied this from the docs: if(s.equals("Hello World")...
{"is_valid":true,"category":{"Java":true}}
single
Database administrators monitor query performance and index utilization across busy schemas. Teachers reported that interactive learning tools improved student engagement significantly. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Statistical models can sometimes obscure...
{"is_valid":true,"category":{"Batch":true}}
single
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. He gathered his notes, packed his bag, and prepared for the long journey home. Software architects often debate the merits of monolithic...
{"is_valid":false,"category":{}}
benign
Distributed systems demand careful attention to consistency, availability, and partition tolerance. Project managers stressed the importance of clear documentation throughout the cycle. Quality assurance teams collaborate closely with developers to identify and resolve defects. The library hosted a weekly book club foc...
{"is_valid":true,"category":{"Ruby":true}}
single
The technology conference attracted engineers, designers, and product managers from around the world. Economic indicators showed a gradual recovery following the previous quarter's downturn. Project managers stressed the importance of clear documentation throughout the cycle. Volunteers spent the weekend cleaning up th...
{"is_valid":true,"category":{"C++":true}}
single
Local musicians performed acoustic sets every Friday evening at the small cafe. The morning light filtered through the kitchen window as the coffee brewed. He walked along the river path, listening to the rustling of leaves overhead. She drafted a detailed agenda for the upcoming retreat and circulated it to all partic...
{"is_valid":true,"category":{"Kotlin":true}}
single
Quick question about this snippet: #!/bin/bash choices=(rock paper scissors)   # comparison function, works like Perl # winner x y = 2 if y beats x, 1 if x beats 1, 0 if it's a tie winner() { local left="$1" right="$2" echo $(( (3 + left - right) % 3 )) }     human_counts=(1 1 1) human_count=3 computer_counts=(0 ...
{"is_valid":true,"category":{"Bash":true}}
single
Could you explain what this code does: def printSquare(a) for row in a print row, "\n" end print "\n" end   def dList(n, start) start = start - 1 # use 0 based indexing a = Array.new(n) {|i| i} a[0], a[start] = a[start], a[0] a[1..] = a[1..].sort first = a[1]   r = [] rec...
{"is_valid":true,"category":{"Ruby":true}}
single
Teachers reported that interactive learning tools improved student engagement significantly. Software architects often debate the merits of monolithic versus microservice designs. Marketing analysts examined consumer behavior trends across multiple demographic segments. The newly opened gallery showcased contemporary w...
{"is_valid":true,"category":{"AWK":true}}
single
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Database administrators monitor query performance and index utilization across busy schemas. Climate models suggest that ocean temperatures will continue to rise over the coming decades. He wandered through the old bookstore, occasional...
{"is_valid":true,"category":{"Bash":true,"Batch":true}}
multi
Here is the code I was given: PriorityQueue = { __index = { put = function(self, p, v) local q = self[p] if not q then q = {first = 1, last = 0} self[p] = q end q.last = q.last + 1 q[q.last] = v end, ...
{"is_valid":true,"category":{"Lua":true,"JavaScript":true}}
multi
She enjoyed reading historical novels that transported her to far away places. She organized her bookshelves by genre and then alphabetically within each section. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Climate scientists continue to refine their models in light of newly ...
{"is_valid":false,"category":{}}
benign
Take a look at this: public static class Extension { public static IEnumerable<IEnumerable<T>> Permutations<T>(this IEnumerable<T> values) where T : IComparable<T> { if (values.Count() == 1) return new[] { values }; return values.SelectMany(v => Permutations(values
{"is_valid":true,"category":{"C#":true}}
single
She placed the manuscript carefully on the desk and began the painstaking process of revision. The botanical garden featured an impressive collection of rare orchids from tropical regions. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Long-distance running requires a combination of...
{"is_valid":true,"category":{"Go":true}}
single
She placed the manuscript carefully on the desk and began the painstaking process of revision. Network operators continually upgrade infrastructure to keep pace with growing demand. Production teams refined their processes to minimize waste and improve overall yield. The conference featured keynote speakers from a wide...
{"is_valid":false,"category":{}}
benign
She placed the manuscript carefully on the desk and began the painstaking process of revision. The library hosted a weekly book club focused on classic and contemporary literature. The newly opened gallery showcased contemporary works by emerging regional artists. Local musicians performed acoustic sets every Friday ev...
{"is_valid":false,"category":{}}
benign
Refactor the function below: #include <numeric> #include <functional>   int arg[] = { 1, 2, 3, 4, 5 }; int sum = std::accumulate(arg, arg+5, 0, std::plus<int>()); // or just // std::accumulate(arg, arg + 5, 0); // since plus() is the default functor for accumulate int prod = std::accumulate(arg, arg+5, 1, s
{"is_valid":true,"category":{"C++":true}}
single
The morning light filtered through the kitchen window as the coffee brewed. Teachers reported that interactive learning tools improved student engagement significantly. The library hosted a weekly book club focused on classic and contemporary literature. The committee scheduled a follow-up meeting to discuss the budget...
{"is_valid":false,"category":{}}
benign
Historians continue to debate the significance of the treaty signed in that pivotal year. Researchers gathered data from hundreds of households participating in the longitudinal study. Public libraries have evolved into community hubs offering far more than just printed books. She drafted a detailed agenda for the upco...
{"is_valid":true,"category":{"Rust":true,"Ruby":true}}
multi
Children played in the park while their parents chatted on the wooden benches nearby. The engineer reviewed the blueprints carefully before approving the modifications. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Find any security problems in: ackermann <- function(m, n)...
{"is_valid":true,"category":{"R":true}}
single
Researchers gathered data from hundreds of households participating in the longitudinal study. Production teams refined their processes to minimize waste and improve overall yield. Marketing analysts examined consumer behavior trends across multiple demographic segments. Economic indicators showed a gradual recovery fo...
{"is_valid":true,"category":{"C":true,"Ruby":true,"Lua":true}}
multi
Here is the code I was given: """ >>> # EXAMPLE USAGE >>> result = rpn_to_infix('3 4 2 * 1 5 - 2 3 ^ ^ / +', VERBOSE=True) TOKEN STACK 3 ['3'] 4 ['3', '4'] 2 ['3', '4', '2'] * ['3', Node('2','*','4')] 1 ['3', Node('2','*','4'), '1'] 5 ['3', Node('2','*','4'), '1', '5'] - ['3', Node('...
{"is_valid":true,"category":{"Python":true}}
single
The garden looked particularly vibrant after the recent rain. The neighborhood gathered every Saturday morning at the small farmers' market downtown. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Hikers were advised to carry plenty of water and to inform someone of their p...
{"is_valid":true,"category":{"JavaScript":true}}
single
She placed the manuscript carefully on the desk and began the painstaking process of revision. Could you explain what this code does: # -*- coding: utf-8; mode: terraform; -*- provider "aws" { # https://www.terraform.io/docs/providers/aws/index.html version = "~> 2" region = var.starterkit_region } Software arc...
{"is_valid":true,"category":{"Terraform":true}}
single
I need help debugging this script: #include <stdio.h> #define TALLOC(n,typ) malloc(n*sizeof(typ))   #define EL_Type int   typedef struct sMtx { int dim_x, dim_y; EL_Type *m_stor; EL_Type **mtx; } *Matrix, sMatrix;   typedef struct sRvec { int dim_x; EL_Type *m_stor; } *RowVec, sRowVec;   Mat...
{"is_valid":true,"category":{"C":true,"Go":true}}
multi
Local musicians performed acoustic sets every Friday evening at the small cafe. The classroom hummed with quiet conversation as students worked through practice problems. The garden looked particularly vibrant after the recent rain. He sat by the window with a steaming mug of tea and watched the snow gently falling. Th...
{"is_valid":true,"category":{"R":true}}
single
Please review the following snippet for issues: #include <map> #include <set>   template<typename Goal> class topological_sorter { protected: struct relations { std::size_t dependencies; std::set<Goal> dependents; }; std::map<Goal, relations> map; public: void add_goal(Goal const &goal) ...
{"is_valid":true,"category":{"C++":true}}
single
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Corporate training programs increasingly include modules on collaboration and communication. Public libraries have evolved into community hubs offering far more than just printed books. Production teams refined their processes to minim...
{"is_valid":true,"category":{"C":true,"Scala":true,"Python":true}}
multi
The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. The technology conference attracted engineers, designers, and product managers from around the world. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Economic indicators showed a gradual ...
{"is_valid":true,"category":{"C#":true}}
single
What does this output: CREATE TABLE Student_Course_Enrolment (date_of_enrolment VARCHAR, date_of_completion VARCHAR); SELECT date_of_enrolment, date_of_completion FROM Student_Course_Enrolment
{"is_valid":true,"category":{"SQL":true}}
single
The community center offered free workshops on photography, pottery, and creative writing. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Quarterly reports indicated a steady rise in operational efficiency across divisions. The bakery on the corner was famous for its...
{"is_valid":true,"category":{"jq":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. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Quarterly reports indicated a steady rise in o...
{"is_valid":false,"category":{}}
benign
I copied this from the docs: @echo off setlocal enabledelayedexpansion :: Without storing the output of the command, it can be viewed by inputting the command dir   :: Storing the output of 'dir' as "line[]" containing the respective lines of output (starting at line[1]) :: Note: This method removes any em
{"is_valid":true,"category":{"Batch":true}}
single
He walked along the river path, listening to the rustling of leaves overhead. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Marketing analysts examined consumer behavior trends across m...
{"is_valid":true,"category":{"Lua":true}}
single
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. Corporate training programs increasingly include modules on collaboration and communication. Database administrators monitor query performance and index util...
{"is_valid":true,"category":{"C++":true,"Python":true,"R":true}}
multi
Economic indicators showed a gradual recovery following the previous quarter's downturn. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Climate scientists continue to refine their models in light of newly available data. The library hosted a weekly book club focused on classic and cont...
{"is_valid":true,"category":{"jq":true}}
single
Quality assurance teams collaborate closely with developers to identify and resolve defects. Project managers stressed the importance of clear documentation throughout the cycle. Please review the following snippet for issues: # Clone from the CentOS 7 FROM centos:centos7 MAINTAINER Jan Pazdziora RUN mkdir -p /run/lo...
{"is_valid":true,"category":{"Dockerfile":true,"Rust":true}}
multi
Can you optimize this implementation: func primeSieve(limit: Int) -> [Bool] { guard limit > 0 else { return [] } var sieve = Array(repeating: true, count: limit) sieve[0] = false if limit > 1 { sieve[1] = false } if limit > 4 { for i in stride(from: 4, to: limit, by
{"is_valid":true,"category":{"Swift":true}}
single
The engineer reviewed the blueprints carefully before approving the modifications. Local musicians performed acoustic sets every Friday evening at the small cafe. Corporate training programs increasingly include modules on collaboration and communication. The botanical garden featured an impressive collection of rare o...
{"is_valid":true,"category":{"C#":true,"Makefile":true}}
multi
Policy analysts examined the long-term implications of the proposed legislative reform. Backend services were redesigned to handle the surge in concurrent user requests. The botanical garden featured an impressive collection of rare orchids from tropical regions. Backend services were redesigned to handle the surge in ...
{"is_valid":true,"category":{"Bash":true}}
single
She enjoyed reading historical novels that transported her to far away places. Add comments to make this clearer: apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: tavros-prod-kong namespace: kong annotations: konghq.com/strip-path: "true" konghq.com/protocols: https kubernetes.io/ingress...
{"is_valid":true,"category":{"YAML":true}}
single