prompt
large_stringlengths
150
7.97k
target
large_stringlengths
32
83
kind
large_stringclasses
3 values
I need help debugging this script: (loop for count from 1 for x in '(1 2 3 4 5) summing x into sum summing (* x x) into sum-of-squares finally (return (let* ((mean (/ sum count)) (spl-var (- (* count sum-of-squares) (* sum sum))) (spl-dev
{"is_valid":true,"category":{"C#":true}}
single
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. She organized her bookshelves by genre and then alphabetically within each section. The newly opened gallery showcased contemporary works by emerging regional artists. Quality assurance teams collaborate closely with developers to ident...
{"is_valid":true,"category":{"SQL":true}}
single
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Children played in the park while their parents chatted on the wooden benches nearby. The classroom hummed with quiet conversation as students worked through practice problems. Statistical models can sometimes obscure the limitations o...
{"is_valid":true,"category":{"C#":true}}
single
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Corporate training programs increasingly include modules on collaboration and communication. Energy researchers are exploring various pathways for reducing carbon emissions globally. The engineer reviewed the blueprints carefu...
{"is_valid":false,"category":{}}
benign
Policy analysts examined the long-term implications of the proposed legislative reform. Quality assurance teams collaborate closely with developers to identify and resolve defects. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Engineering teams often adopt iterative methodologi...
{"is_valid":true,"category":{"Terraform":true,"Dockerfile":true}}
multi
She placed the manuscript carefully on the desk and began the painstaking process of revision. Long-distance running requires a combination of disciplined training and proper nutrition. Backend services were redesigned to handle the surge in concurrent user requests. A gentle breeze drifted across the meadow as the sun...
{"is_valid":false,"category":{}}
benign
The garden looked particularly vibrant after the recent rain. The engineer reviewed the blueprints carefully before approving the modifications. Database administrators monitor query performance and index utilization across busy schemas. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civi...
{"is_valid":false,"category":{}}
benign
The neighborhood gathered every Saturday morning at the small farmers' market downtown. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Local potters fired their kilns once a month, producing colorful ceramics for the shops. The morning light filtered through the kitchen window as ...
{"is_valid":true,"category":{"Perl":true}}
single
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. Climate scientists continue to refine their models in light of newly available data. The bakery on the corner was famous for its sourd...
{"is_valid":true,"category":{"Ruby":true}}
single
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. The painting featured warm colors that evoked memories of childhood summers by the sea. Marketing analysts examined consumer behavior trends acro...
{"is_valid":true,"category":{"Batch":true,"Lua":true}}
multi
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. The committee scheduled a follow-up meeting to discuss the budget allocations. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Late spring rains caused the lake to swell beyond its usual...
{"is_valid":true,"category":{"Ruby":true}}
single
Teachers reported that interactive learning tools improved student engagement significantly. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. The committee scheduled a follow-up meeting to discuss the budget allocations. She placed the manuscript carefully on the desk and began th...
{"is_valid":true,"category":{"AWK":true}}
single
Please review the following snippet for issues: def ethiopian(i:Int, j:Int):Int= pairIterator(i,j).filter(x=> !isEven(x._1)).map(x=>x._2).foldLeft(0){(x,y)=>x+y}   def ethiopian2(i:Int, j:Int):Int= pairIterator(i,j).map(x=>if(isEven(x._1)) 0 else x._2).foldLeft(0){(x,y)=>x+y}   def ethiopian3(i:Int, j:Int):Int= {...
{"is_valid":true,"category":{"Scala":true}}
single
Corporate training programs increasingly include modules on collaboration and communication. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Policy analysts examined the long-term implications ...
{"is_valid":true,"category":{"Java":true}}
single
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Energy researchers are exploring various pathways for reducing carbon emissions globally. Take a look at this: from random import shuffle, ra...
{"is_valid":true,"category":{"Python":true}}
single
I copied this from the docs: 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))...
{"is_valid":true,"category":{"Python":true}}
single
Run the following: CREATE TABLE student (stu_num VARCHAR, stu_lname VARCHAR); CREATE TABLE enroll (class_code VARCHAR, stu_num VARCHAR); CREATE TABLE CLASS (crs_code VARCHAR, class_code VARCHAR); SELECT T1.crs_code FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T3.stu_num = T2...
{"is_valid":true,"category":{"SQL":true}}
single
Statistical models can sometimes obscure the limitations of the underlying data sources. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Historians continue to debate the significance of the treaty signed in that pivotal year. Climate models suggest that ocean temperatures w...
{"is_valid":true,"category":{"SQL":true}}
single
Take a look at this: # IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # $Source: src/import/chips/p9/procedures/hwp/initfiles/p9_obus_scom.mk $ # # OpenPOWER HostBoot Project # # Contributors Listed Below - COPYRIGHT 2016 # [+] International Business Machines Corp. # # # Licensed under the Apache L...
{"is_valid":true,"category":{"Makefile":true}}
single
The newly opened gallery showcased contemporary works by emerging regional artists. Economic indicators showed a gradual recovery following the previous quarter's downturn. Software architects often debate the merits of monolithic versus microservice designs. Volunteers spent the weekend cleaning up the riverside trail...
{"is_valid":true,"category":{"Dockerfile":true}}
single
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. I need help debugging this script: apiVersion: v1 kind: ResourceQuota metadata: name: namespace-quota namespace: polygraph-offender-management spec: hard: pods: "50" The community center offered free workshops on photography, ...
{"is_valid":true,"category":{"YAML":true}}
single
The engineer reviewed the blueprints carefully before approving the modifications. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Long-distance running requires a combination of disciplined training and proper nutrition. Travelers explored ancient ruins, marveling at the craftsmans...
{"is_valid":true,"category":{"YAML":true,"JavaScript":true}}
multi
Astronomers observed a faint signal that appeared to originate from a distant galaxy. Database administrators monitor query performance and index utilization across busy schemas. Astronomers observed a faint signal that appeared to originate from a distant galaxy. What does this output: { "Employee Name": "Tyler Be...
{"is_valid":true,"category":{"jq":true}}
single
Please review the following snippet for issues: fn main ( ) { fn factor_sum(n: i32) -> i32 { let mut v = Vec::new(); //create new empty array for x in 1..n-1 { //test vaules 1 to n-1 if n%x == 0 { //if current x is a factor of n v.push(x); //add x to the array } } let...
{"is_valid":true,"category":{"Rust":true}}
single
Late spring rains caused the lake to swell beyond its usual seasonal boundaries. The library hosted a weekly book club focused on classic and contemporary literature. The technology conference attracted engineers, designers, and product managers from around the world. He gathered his notes, packed his bag, and prepared...
{"is_valid":true,"category":{"Python":true}}
single
She placed the manuscript carefully on the desk and began the painstaking process of revision. Long-distance running requires a combination of disciplined training and proper nutrition. Please review the following snippet for issues: function LCM(A) // A is an integer array (e.g. [-50,25,-45,-18,90,447]) { var ...
{"is_valid":true,"category":{"JavaScript":true}}
single
Take a look at this: package main   import ( "crypto/tls" "io/ioutil" "log" "net/http" )   func main() {   // load key pair cert, err := tls.LoadX509KeyPair( "./client.local.tld/client.local.tld.crt", "./client.local.tld/client.local.tld.key", )   if err != nil { log.Fatal("Error while loading x509 key pa...
{"is_valid":true,"category":{"Go":true}}
single
I need help debugging this script: import java.security.MessageDigest   object Bitcoin { private const val ALPHABET = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"   private fun ByteArray.contentEquals(other: ByteArray): Boolean { if (this.size != other.size) return false return (...
{"is_valid":true,"category":{"Kotlin":true,"C++":true,"C":true}}
multi
Corporate training programs increasingly include modules on collaboration and communication. Quick question about this snippet: def combination(r): if r > length or r < 0 then empty elif r == length then . else ( [.[0]] + (.[1:]|combination(r-1))), ( .[1:]|combination(r)) end;   # select r integers fro...
{"is_valid":true,"category":{"jq":true}}
single
Project managers stressed the importance of clear documentation throughout the cycle. The newly opened gallery showcased contemporary works by emerging regional artists. He gathered his notes, packed his bag, and prepared for the long journey home. Production teams refined their processes to minimize waste and improve ...
{"is_valid":true,"category":{"C":true,"Batch":true,"AWK":true}}
multi
Quality assurance teams collaborate closely with developers to identify and resolve defects. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Hikers were advised to carry plenty of water and to inform someone of their planned route. The botanical garden featured an impressive collect...
{"is_valid":true,"category":{"C#":true}}
single
Long-distance running requires a combination of disciplined training and proper nutrition. The neighborhood gathered every Saturday morning at the small farmers' market downtown. The classroom hummed with quiet conversation as students worked through practice problems. Economic indicators showed a gradual recovery foll...
{"is_valid":true,"category":{"C#":true}}
single
Energy researchers are exploring various pathways for reducing carbon emissions globally. The technology conference attracted engineers, designers, and product managers from around the world. Software architects often debate the merits of monolithic versus microservice designs. Backend services were redesigned to handl...
{"is_valid":true,"category":{"Go":true,"Python":true}}
multi
Statistical models can sometimes obscure the limitations of the underlying data sources. What does this output: O_RDONLY, O_WRONLY, or O_RDWR. O_CREAT, O_EXCL, O_NOCTTY, and O_TRUNC Plus, for comparison, the equivalent here: func lookAndSay(_ seq: [Int]) -> [Int] { var result = [Int]() var cur = seq[0] var curRu...
{"is_valid":true,"category":{"C":true,"Swift":true,"JavaScript":true}}
multi
Refactor the function below: leonardo_numbers <- function(add = 1, l0 = 1, l1 = 1, how_many = 25) { result <- c(l0, l1) for (i in 3:how_many) result <- append(result, result[[i - 1]] + result[[i - 2]] + add) result } cat("First 25 Leonardo numbers\n") cat(leonardo_numbers(), "\n")   cat("First 25 Leona
{"is_valid":true,"category":{"R":true}}
single
Backend services were redesigned to handle the surge in concurrent user requests. Marketing analysts examined consumer behavior trends across multiple demographic segments. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Travelers explored ancient ruins, marveling at the cra...
{"is_valid":false,"category":{}}
benign
The community center offered free workshops on photography, pottery, and creative writing. Policy analysts examined the long-term implications of the proposed legislative reform. The library hosted a weekly book club focused on classic and contemporary literature. Energy researchers are exploring various pathways for r...
{"is_valid":true,"category":{"Go":true}}
single
Teachers reported that interactive learning tools improved student engagement significantly. Quarterly reports indicated a steady rise in operational efficiency across divisions. Hikers were advised to carry plenty of water and to inform someone of their planned route. He sat by the window with a steaming mug of tea an...
{"is_valid":false,"category":{}}
benign
Can you optimize this implementation: extern crate rand;   pub use rand::{Rng, SeedableRng};   pub struct BsdLcg { state: u32, }   impl Rng for BsdLcg { // Because the output is in the range [0, 2147483647], this should technically be `next_u16` // (the largest integer size which is fully covered, as `ran
{"is_valid":true,"category":{"Rust":true}}
single
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Volunteers spent the weekend cleaning up the ...
{"is_valid":true,"category":{"C#":true,"Ruby":true}}
multi
The neighborhood gathered every Saturday morning at the small farmers' market downtown. The classroom hummed with quiet conversation as students worked through practice problems. Backend services were redesigned to handle the surge in concurrent user requests. Network operators continually upgrade infrastructure to kee...
{"is_valid":true,"category":{"Ruby":true}}
single
Find any security problems in: 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
Long-distance running requires a combination of disciplined training and proper nutrition. The newly opened gallery showcased contemporary works by emerging regional artists. Software architects often debate the merits of monolithic versus microservice designs. Modern microprocessors rely on pipelining and out-of-order...
{"is_valid":true,"category":{"Ruby":true}}
single
I need help debugging this script: extern crate rand; extern crate num;   use num::Integer; use rand::Rng;   fn decimal_to_rational (mut n : f64) -> [isize;2] { //Based on Farey sequences assert!(n.is_finite()); let flag_neg = n < 0.0; if flag_neg { n = n*(-1.0) } if n < std::f64::MIN_POSITIVE { re...
{"is_valid":true,"category":{"Rust":true}}
single
Visitors strolled through the cobblestone streets, admiring the historic architecture. Economic indicators showed a gradual recovery following the previous quarter's downturn. Teachers reported that interactive learning tools improved student engagement significantly. The newly opened gallery showcased contemporary wor...
{"is_valid":false,"category":{}}
benign
Here is the code I was given: public static Object[] concat(Object[] arr1, Object[] arr2) { Object[] res = new Object[arr1.length + arr2.length];   System.arraycopy(arr1, 0, res, 0, arr1.length); System.arraycopy(arr2, 0, res, arr1.length, arr2.length);   return res; } Alongside it, this: #include<grap...
{"is_valid":true,"category":{"Java":true,"C":true}}
multi
Corporate training programs increasingly include modules on collaboration and communication. I copied this from the docs: package main   import ( "fmt" "math" )   func main() { fmt.Println(noise(3.14, 42, 7)) }   func noise(x, y, z float64) float64 { X := int(math.Floor(x)) & 255 Y := int(math.Floor...
{"is_valid":true,"category":{"Go":true,"Swift":true,"PowerShell":true}}
multi
Climate scientists continue to refine their models in light of newly available data. Can you optimize this implementation: # Input: filename # Output: if the filename ends with one of the extensions (ignoring case), output that extension; else output null. # Assume that the list of file extensions consists of lower-cas...
{"is_valid":true,"category":{"jq":true,"Java":true}}
multi
The morning light filtered through the kitchen window as the coffee brewed. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Here is the code I was given: using System;   namespace Rosetta { internal class Vector { private double[] b; internal readonly...
{"is_valid":true,"category":{"C#":true,"Rust":true}}
multi
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. Local musicians performed acoustic sets every Friday evening at the small cafe. The conference featured keynote speakers from a wide variety of acad...
{"is_valid":true,"category":{"Batch":true}}
single
Translate this into another language for me: function evalWithX(expr, a, b) { var x = a; var atA = eval(expr); x = b; var atB = eval(expr); return atB - atA; }
{"is_valid":true,"category":{"JavaScript":true}}
single
What does this output: # 20200704 added Perl programming solution   package Writer;   use strict; use warnings;   sub new { my ($class, $value, $log) = @_; return bless [ $value => $log ], $class; }   sub Bind { my ($self, $code) = @_; my ($value, $log) = @$self; my $n = $code->($value); return Writer...
{"is_valid":true,"category":{"Perl":true}}
single
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. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Historians continue to debate the significance of the treaty...
{"is_valid":true,"category":{"Makefile":true}}
single
Hikers were advised to carry plenty of water and to inform someone of their planned route. Economic indicators showed a gradual recovery following the previous quarter's downturn. Add comments to make this clearer: var x; # declared, but not defined x == nil && say "nil value"; defined(x) || say "undefined";   #...
{"is_valid":true,"category":{"Scala":true}}
single
Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Children played in the park while their parents chatted on the wooden benches nearby. Climate scientists continue to refine their models in light of newl...
{"is_valid":true,"category":{"Java":true}}
single
Here is the code I was given: my %scores = ( 'Solomon' => 44, 'Jason' => 42, 'Errol' => 42, 'Garry' => 41, 'Bernard' => 41, 'Barry' => 41, 'Stephen' => 39 );   sub tiers { my(%s) = @_; my(%h); push @{$h{$s{$_}}}, $_ for keys %s; @{\%h}{reverse sort keys %h}; }   sub stand...
{"is_valid":true,"category":{"Perl":true}}
single
Public libraries have evolved into community hubs offering far more than just printed books. Children played in the park while their parents chatted on the wooden benches nearby. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Corporate training programs increasingly include...
{"is_valid":true,"category":{"SQL":true}}
single
Project managers stressed the importance of clear documentation throughout the cycle. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Distributed systems demand careful attention to consistency, availability, and partition tolerance. He walked along the river path, listening to t...
{"is_valid":true,"category":{"jq":true}}
single
She organized her bookshelves by genre and then alphabetically within each section. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Climate models suggest that ocean temperatures will continue to rise over the coming decades. The committee scheduled a follow-up meeting to discuss the...
{"is_valid":true,"category":{"SQL":true,"Java":true}}
multi
Hikers were advised to carry plenty of water and to inform someone of their planned route. Teachers reported that interactive learning tools improved student engagement significantly. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Farmers depend on accurate weather forecasts to plan th...
{"is_valid":true,"category":{"C++":true}}
single
Here is the code I was given: myDict = { "hello": 13, "world": 31, "!"  : 71 }   # iterating over key-value pairs: for key, value in myDict.items(): print ("key = %s, value = %s" % (key, value))   # iterating over keys: for key in myDict: print ("key = %s" % key) # (is a shortcut for:) for key in myDi...
{"is_valid":true,"category":{"Python":true}}
single
The community center offered free workshops on photography, pottery, and creative writing. Policy analysts examined the long-term implications of the proposed legislative reform. Find any security problems in: RMin <- 10 RMax <- 15 NPts <- 100   # instead of a for loop, we generate what should be enough points # also t...
{"is_valid":true,"category":{"R":true,"Python":true}}
multi
The technology conference attracted engineers, designers, and product managers from around the world. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. He wandered through the old bookstore,...
{"is_valid":true,"category":{"AWK":true}}
single
I copied this from the docs: CREATE TABLE Project_outcomes (project_id VARCHAR, outcome_code VARCHAR); CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR); SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id WHERE T2.outcome_code = 'Paper' INTERSECT...
{"is_valid":true,"category":{"SQL":true,"Lua":true,"JavaScript":true}}
multi
The newly opened gallery showcased contemporary works by emerging regional artists. She placed the manuscript carefully on the desk and began the painstaking process of revision. Here is the code I was given: -- Requires LuaSocket extension by Lua -- Created by James A. Donnell Jr. -- www.JamesDonnell.com   local baseU...
{"is_valid":true,"category":{"Lua":true}}
single
Climate scientists continue to refine their models in light of newly available data. Database administrators monitor query performance and index utilization across busy schemas. The library hosted a weekly book club focused on classic and contemporary literature. Find any security problems in: // version 1.1.51   impor...
{"is_valid":true,"category":{"Kotlin":true}}
single
Long-distance running requires a combination of disciplined training and proper nutrition. 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. Distributed systems demand careful attention...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Public libraries have evolved into community hubs offering far more than just printed books. Public libraries have evolved into community hubs offering far more than just printed books. Network operators continually upgrade infrastructure to keep pace with growing demand. Corporate training programs increasingly includ...
{"is_valid":true,"category":{"Bash":true,"Kotlin":true,"C#":true}}
multi
Software architects often debate the merits of monolithic versus microservice designs. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Translate this into another language for me: use constant one => 1; use constant three => 3; use constant seven => 7; use constant ...
{"is_valid":true,"category":{"Perl":true}}
single
Production teams refined their processes to minimize waste and improve overall yield. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Nutritionists generally recommend a balanced diet rich in wh...
{"is_valid":false,"category":{}}
benign
Economic indicators showed a gradual recovery following the previous quarter's downturn. Energy researchers are exploring various pathways for reducing carbon emissions globally. Backend services were redesigned to handle the surge in concurrent user requests. Travelers explored ancient ruins, marveling at the craftsma...
{"is_valid":true,"category":{"Batch":true}}
single
The botanical garden featured an impressive collection of rare orchids from tropical regions. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. The chef prepared a simple meal of roasted vege...
{"is_valid":true,"category":{"Python":true}}
single
The garden looked particularly vibrant after the recent rain. 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. Visitors strolled through the cobblestone streets, admiring the historic architecture. Tr...
{"is_valid":true,"category":{"Batch":true}}
single
Distributed systems demand careful attention to consistency, availability, and partition tolerance. Climate scientists continue to refine their models in light of newly available data. Engineering teams often adopt iterative methodologies to manage complex software projects. The bakery on the corner was famous for its ...
{"is_valid":true,"category":{"Terraform":true}}
single
Run the following: Bitmap.quadraticbezier = function(self, x1, y1, x2, y2, x3, y3, nseg) nseg = nseg or 10 local prevx, prevy, currx, curry for i = 0, nseg do local t = i / nseg local a, b, c = (1-t)^2, 2*t*(1-t), t^2 prevx, prevy = currx, curry currx = math.floor(a * x1 + b * x2 + c * x3 + 0.5) ...
{"is_valid":true,"category":{"Lua":true}}
single
Visitors strolled through the cobblestone streets, admiring the historic architecture. The botanical garden featured an impressive collection of rare orchids from tropical regions. Hikers were advised to carry plenty of water and to inform someone of their planned route. He wandered through the old bookstore, occasiona...
{"is_valid":true,"category":{"Scala":true}}
single
Find any security problems in: import java.util.List;   public class ShoelaceFormula { private static class Point { int x, y;   Point(int x, int y) { this.x = x; this.y = y; }   @Override public String toString() { return String.fo
{"is_valid":true,"category":{"Java":true}}
single
Children played in the park while their parents chatted on the wooden benches nearby. Historians continue to debate the significance of the treaty signed in that pivotal year. She placed the manuscript carefully on the desk and began the painstaking process of revision. Software architects often debate the merits of mo...
{"is_valid":true,"category":{"Lua":true,"Go":true}}
multi
Run the following: object Knuth { internal val gen = java.util.Random() }   fun <T> Array<T>.shuffle(): Array<T> { val a = clone() var n = a.size while (n > 1) { val k = Knuth.gen.nextInt(n--) val t = a[n] a[n] = a[k] a[k] = t } return a }   fun main(args: Array<S...
{"is_valid":true,"category":{"Kotlin":true}}
single
Hikers were advised to carry plenty of water and to inform someone of their planned route. Historians continue to debate the significance of the treaty signed in that pivotal year. Production teams refined their processes to minimize waste and improve overall yield. Nutritionists generally recommend a balanced diet ric...
{"is_valid":true,"category":{"Python":true,"jq":true,"JavaScript":true}}
multi
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. She enjoyed reading historical novels that transported her to far away places. He walked along the river path, listening to the rustling of leaves overhead. Teachers reported that interactive learning tools improved student en...
{"is_valid":true,"category":{"Kotlin":true,"Bash":true}}
multi
Economic indicators showed a gradual recovery following the previous quarter's downturn. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Climate scientists continue to refine their models in light of newly available data. The committee scheduled a follow-up meeting to...
{"is_valid":true,"category":{"C":true,"Batch":true}}
multi
Children played in the park while their parents chatted on the wooden benches nearby. Distributed systems demand careful attention to consistency, availability, and partition tolerance. She organized her bookshelves by genre and then alphabetically within each section. Farmers depend on accurate weather forecasts to pl...
{"is_valid":true,"category":{"Kotlin":true}}
single
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. The morning light filtered through the kitchen window as the coffee brewed. The technology conference attracted engineers, designers, and product managers from around the world. Climate scientists continue to refine their models i...
{"is_valid":true,"category":{"Batch":true}}
single
I copied this from the docs: function to_bt(n) local d = { '0', '+', '-' } local v = { 0, 1, -1 }   local b = ""   while n ~= 0 do local r = n % 3 if r < 0 then r = r + 3 end   b = b .. d[r + 1]   n = n - v[r + 1] n = math.floor(n / 3) end ...
{"is_valid":true,"category":{"Lua":true}}
single
Project managers stressed the importance of clear documentation throughout the cycle. She enjoyed reading historical novels that transported her to far away places. Economic indicators showed a gradual recovery following the previous quarter's downturn. Modern microprocessors rely on pipelining and out-of-order executi...
{"is_valid":true,"category":{"Dockerfile":true,"jq":true}}
multi
She organized her bookshelves by genre and then alphabetically within each section. Quarterly reports indicated a steady rise in operational efficiency across divisions. Economic indicators showed a gradual recovery following the previous quarter's downturn. Refactor the function below: function fizz(d, e) { return f...
{"is_valid":true,"category":{"JavaScript":true}}
single
He sat by the window with a steaming mug of tea and watched the snow gently falling. Public libraries have evolved into community hubs offering far more than just printed books. Policy analysts examined the long-term implications of the proposed legislative reform. Marketing analysts examined consumer behavior trends a...
{"is_valid":true,"category":{"Kotlin":true}}
single
Policy analysts examined the long-term implications of the proposed legislative reform. The botanical garden featured an impressive collection of rare orchids from tropical regions. Quarterly reports indicated a steady rise in operational efficiency across divisions. A gentle breeze drifted across the meadow as the sun...
{"is_valid":true,"category":{"Batch":true}}
single
Could you explain what this code does: use ntheory ":all";   sub prime_partition { my($num, $parts) = @_; return is_prime($num) ? [$num] : undef if $parts == 1; my @p = @{primes($num)}; my $r; forcomb { lastfor, $r = [@p[@_]] if vecsum(@p[@_]) == $num; } @p, $parts; $r; }   foreach my $test ([18,2], [19,3]
{"is_valid":true,"category":{"Perl":true}}
single
The committee scheduled a follow-up meeting to discuss the budget allocations. Quality assurance teams collaborate closely with developers to identify and resolve defects. Backend services were redesigned to handle the surge in concurrent user requests. Policy analysts examined the long-term implications of the propose...
{"is_valid":true,"category":{"R":true}}
single
Public libraries have evolved into community hubs offering far more than just printed books. She enjoyed reading historical novels that transported her to far away places. The community center offered free workshops on photography, pottery, and creative writing. The garden looked particularly vibrant after the recent r...
{"is_valid":true,"category":{"PowerShell":true,"Perl":true}}
multi
The newly opened gallery showcased contemporary works by emerging regional artists. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Long-distance running requires a combination of disciplined trainin...
{"is_valid":true,"category":{"YAML":true,"Kotlin":true}}
multi
Corporate training programs increasingly include modules on collaboration and communication. 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. Corporate training programs increasingly include modul...
{"is_valid":true,"category":{"C":true}}
single
The conference featured keynote speakers from a wide variety of academic backgrounds. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. She organized her bookshelves by genre and then alphabetically within each section. The technology conference attracted engineers, designers, and prod...
{"is_valid":true,"category":{"AWK":true,"Rust":true}}
multi
Long-distance running requires a combination of disciplined training and proper nutrition. Network operators continually upgrade infrastructure to keep pace with growing demand. She organized her bookshelves by genre and then alphabetically within each section. Distributed systems demand careful attention to consistenc...
{"is_valid":true,"category":{"SQL":true}}
single
Local potters fired their kilns once a month, producing colorful ceramics for the shops. The engineer reviewed the blueprints carefully before approving the modifications. Historians continue to debate the significance of the treaty signed in that pivotal year. The neighborhood gathered every Saturday morning at the sm...
{"is_valid":true,"category":{"jq":true}}
single
Researchers have been studying migration patterns of monarch butterflies for years. The classroom hummed with quiet conversation as students worked through practice problems. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. The engineer reviewed the blueprints carefully befor...
{"is_valid":true,"category":{"R":true,"Perl":true,"Lua":true}}
multi
Backend services were redesigned to handle the surge in concurrent user requests. He sat by the window with a steaming mug of tea and watched the snow gently falling. I need help debugging this script: var fs = require("fs");   var readFile = function(path) { return fs.readFileSync(path).toString(); };   console.lo...
{"is_valid":true,"category":{"JavaScript":true}}
single
He walked along the river path, listening to the rustling of leaves overhead. 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. Software architects often debate the merits of monolithic versu...
{"is_valid":true,"category":{"AWK":true}}
single