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. Quality assurance teams collaborate closely with developers to identify and resolve defects. Long-distance running requires a combination of disciplined training and proper nutrition. The newly opened gallery showcased contemporary wo...
{"is_valid":false,"category":{}}
benign
Local musicians performed acoustic sets every Friday evening at the small cafe. Network operators continually upgrade infrastructure to keep pace with growing demand.
{"is_valid":false,"category":{}}
benign
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Hikers were advised to carry plenty of water and to inform someone of their planned route. Network operators continually upgrade infra...
{"is_valid":true,"category":{"Lua":true}}
single
The library hosted a weekly book club focused on classic and contemporary literature. Public libraries have evolved into community hubs offering far more than just printed books. Quarterly reports indicated a steady rise in operational efficiency across divisions. Project managers stressed the importance of clear docum...
{"is_valid":true,"category":{"PowerShell":true}}
single
Researchers have been studying migration patterns of monarch butterflies for years. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. The newly opened gallery showcased contemporary works ...
{"is_valid":true,"category":{"jq":true,"Scala":true}}
multi
The engineer reviewed the blueprints carefully before approving the modifications. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Refactor the function below: CREATE TABLE building (Id VARCHAR); SELECT COUNT(*) FROM building He walked along the river path, listening to the rustling ...
{"is_valid":true,"category":{"SQL":true}}
single
Quick question about this snippet: # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Please review the following snippet for issues: // version 1.2.10   import kotlin.math.ceil   class Complex(val real: Double, val imag: Double) {   constructor(r: Int, i: Int) : this(r.toDouble(), i.toDouble())   operator fun plus(other: Complex) = Complex(real + other.real, imag + other.imag)   operator fu...
{"is_valid":true,"category":{"Kotlin":true}}
single
Local musicians performed acoustic sets every Friday evening at the small cafe. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. The conference featured keynote speakers from a wide variety of academic backgrounds. The library hosted a weekly book club focused on classic and contempo...
{"is_valid":true,"category":{"Python":true,"AWK":true}}
multi
Teachers reported that interactive learning tools improved student engagement significantly. Please review the following snippet for issues: nums = [-5, 5] pows = [2, 3] nums.product(pows) do |x, p| puts "x = #{x} p = #{p}\t-x**p #{-x**p}\t-(x)**p #{-(x)**p}\t(-x)**p #{ (-x)**p}\t-(x**p) #{-(x**p)}" end Then there...
{"is_valid":true,"category":{"Ruby":true,"Python":true,"Batch":true}}
multi
Can you optimize this implementation: class Card include Comparable attr_accessor :ordinal attr_reader :suit, :face   SUITS = %i(♥ ♦ ♣ ♠) FACES = %i(2 3 4 5 6 7 8 9 10 j q k a)   def initialize(str) @face, @suit = parse(str) @ordinal = FACES.index(@face) end   def <=> (other) #used for sorting ...
{"is_valid":true,"category":{"Ruby":true}}
single
The committee scheduled a follow-up meeting to discuss the budget allocations. Long-distance running requires a combination of disciplined training and proper nutrition. The conference featured keynote speakers from a wide variety of academic backgrounds. Backend services were redesigned to handle the surge in concurre...
{"is_valid":true,"category":{"R":true}}
single
Project managers stressed the importance of clear documentation throughout the cycle. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Here is the code I was given: function logic(a,b) { print("a AND b: " + (a && b)); print("a OR b: " + (a || b)); print("NOT a: " + (!a...
{"is_valid":true,"category":{"JavaScript":true,"C":true}}
multi
The neighborhood gathered every Saturday morning at the small farmers' market downtown. The newly opened gallery showcased contemporary works by emerging regional artists. Researchers gathered data from hundreds of households participating in the longitudinal study. The chef prepared a simple meal of roasted vegetables...
{"is_valid":true,"category":{"YAML":true}}
single
Translate this into another language for me: from pprint import pprint as pp   class Template(): def __init__(self, structure): self.structure = structure self.used_payloads, self.missed_payloads = [], []   def inject_payload(self, id2data):   def _inject_payload(substruct, i2d, used, mi...
{"is_valid":true,"category":{"Python":true,"Lua":true}}
multi
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. She placed the manuscript carefully on the desk and began the painstaking process of revision. I copied this from the docs: J_n_S <- function(stones ="aAAbbbb", jewels = "aA") { stones <- unlist(strsplit(stones, split = "")) # obtai...
{"is_valid":true,"category":{"R":true}}
single
Project managers stressed the importance of clear documentation throughout the cycle. Quarterly reports indicated a steady rise in operational efficiency across divisions. Marketing analysts examined consumer behavior trends across multiple demographic segments. Here is the code I was given: local function validate(dia...
{"is_valid":true,"category":{"Lua":true,"SQL":true}}
multi
The neighborhood gathered every Saturday morning at the small farmers' market downtown. The engineer reviewed the blueprints carefully before approving the modifications. Corporate training programs increasingly include modules on collaboration and communication. Public libraries have evolved into community hubs offeri...
{"is_valid":false,"category":{}}
benign
Researchers have been studying migration patterns of monarch butterflies for years. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. The garden looked particularly vibrant after the recent rain. He adjusted the telescope and waited patiently for the clouds to clear over the obse...
{"is_valid":true,"category":{"Java":true,"C#":true}}
multi
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. The community center offered free workshops on photography, pottery, and creative writing. Energy researchers are exploring various pathways for reducing carbon emissions globally. Late spring rains caused the lake to swell beyond its ...
{"is_valid":true,"category":{"Kotlin":true,"PowerShell":true}}
multi
Project managers stressed the importance of clear documentation throughout the cycle. Corporate training programs increasingly include modules on collaboration and communication. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. What does this output: SVG = "inkscape" SVGFLAG...
{"is_valid":true,"category":{"Makefile":true,"jq":true}}
multi
Economic indicators showed a gradual recovery following the previous quarter's downturn. Hikers were advised to carry plenty of water and to inform someone of their planned route. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Modern microprocessors rely on pipelining and out-of-or...
{"is_valid":true,"category":{"JavaScript":true}}
single
Run the following: 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 --setopt=tsflags=nodocs ma...
{"is_valid":true,"category":{"Dockerfile":true,"Ruby":true}}
multi
Public libraries have evolved into community hubs offering far more than just printed books. Statistical models can sometimes obscure the limitations of the underlying data sources. Researchers have been studying migration patterns of monarch butterflies for years. He sat by the window with a steaming mug of tea and wa...
{"is_valid":true,"category":{"Perl":true}}
single
He gathered his notes, packed his bag, and prepared for the long journey home. Project managers stressed the importance of clear documentation throughout the cycle. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. She drafted a detailed agenda for the upcoming retreat and ci...
{"is_valid":false,"category":{}}
benign
Researchers have been studying migration patterns of monarch butterflies for years. The technology conference attracted engineers, designers, and product managers from around the world. The newly opened gallery showcased contemporary works by emerging regional artists. He walked along the river path, listening to the r...
{"is_valid":true,"category":{"Batch":true}}
single
Marketing analysts examined consumer behavior trends across multiple demographic segments. Engineering teams often adopt iterative methodologies to manage complex software projects. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Database administrators monitor query performance...
{"is_valid":false,"category":{}}
benign
Backend services were redesigned to handle the surge in concurrent user requests. Take a look at this: class Node<T>{ var data:T?=nil var next:Node?=nil init(input:T){ data=input next=nil } }
{"is_valid":true,"category":{"Swift":true}}
single
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Long-distance running requires a combination of disciplined training and proper nutrition. Here is the code I was given: while (true)...
{"is_valid":true,"category":{"C++":true}}
single
Energy researchers are exploring various pathways for reducing carbon emissions globally. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. What does this output: import java.io.BufferedOutputStream; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import ...
{"is_valid":true,"category":{"Java":true}}
single
The newly opened gallery showcased contemporary works by emerging regional artists. Software architects often debate the merits of monolithic versus microservice designs. The morning light filtered through the kitchen window as the coffee brewed. The neighborhood gathered every Saturday morning at the small farmers' ma...
{"is_valid":true,"category":{"Python":true}}
single
Project managers stressed the importance of clear documentation throughout the cycle. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Project managers stressed the importance of clear documentation throughout the cycle. Teachers reported that interactive learning tools improved...
{"is_valid":true,"category":{"Rust":true}}
single
The community center offered free workshops on photography, pottery, and creative writing. Backend services were redesigned to handle the surge in concurrent user requests. Long-distance running requires a combination of disciplined training and proper nutrition. The technology conference attracted engineers, designers...
{"is_valid":true,"category":{"Dockerfile":true}}
single
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Find any security problems in: static void Main(string[] args) { Console.WriteLine(DotProduct(new decimal[] { 1, 3, -5 }, new decimal[] { 4, -2, -1 })); Console.Read(); }   private static decimal DotProduct(decimal[] vec1, de...
{"is_valid":true,"category":{"C#":true}}
single
Can you optimize this implementation: ##Amazon Infrastructure provider "aws" { region = "${var.aws_region}" } ##Create applications security group resource "aws_security_group" "app_sg" { name = "app_sg" vpc_id = "${var.aws_vpc_id}" description = "Allow all inbound traffic necessary for Halo ...
{"is_valid":true,"category":{"Terraform":true,"Rust":true}}
multi
Run the following: using System;   namespace Narcissistic { class Narcissistic { public bool isNarcissistic(int z) { if (z < 0) return false; string n = z.ToString(); int t = 0, l = n.Length; foreach (char c in n) t += Convert.ToInt...
{"is_valid":true,"category":{"C#":true,"Kotlin":true}}
multi
The morning light filtered through the kitchen window as the coffee brewed. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Quarterly reports indicated a steady rise in operational efficiency across divisions. He walked along the river path, listening to the rustling of lea...
{"is_valid":true,"category":{"Ruby":true}}
single
She organized her bookshelves by genre and then alphabetically within each section. Marketing analysts examined consumer behavior trends across multiple demographic segments. Children played in the park while their parents chatted on the wooden benches nearby. Local potters fired their kilns once a month, producing col...
{"is_valid":false,"category":{}}
benign
Quality assurance teams collaborate closely with developers to identify and resolve defects. Marketing analysts examined consumer behavior trends across multiple demographic segments. Children played in the park while their parents chatted on the wooden benches nearby. Distributed systems demand careful attention to co...
{"is_valid":true,"category":{"jq":true}}
single
Engineering teams often adopt iterative methodologies to manage complex software projects. She enjoyed reading historical novels that transported her to far away places. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Quality assurance teams collaborate closely with developers to id...
{"is_valid":false,"category":{}}
benign
Find any security problems in: def order[T](input: Seq[T], using: Seq[T], used: Seq[T] = Seq()): Seq[T] = if (input.isEmpty || used.size >= using.size) input else if (using diff used contains input.head) using(used.size) +: order(input.tail, using, used :+ input.head) else input.head +: order(input.t
{"is_valid":true,"category":{"Scala":true}}
single
Local potters fired their kilns once a month, producing colorful ceramics for the shops. 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. Researchers gathered data from hundreds of households ...
{"is_valid":true,"category":{"Go":true}}
single
Marketing analysts examined consumer behavior trends across multiple demographic segments. Researchers gathered data from hundreds of households participating in the longitudinal study. He walked along the river path, listening to the rustling of leaves overhead. She organized her bookshelves by genre and then alphabet...
{"is_valid":true,"category":{"Python":true,"Bash":true}}
multi
Energy researchers are exploring various pathways for reducing carbon emissions globally. Teachers reported that interactive learning tools improved student engagement significantly. The classroom hummed with quiet conversation as students worked through practice problems. The botanical garden featured an impressive co...
{"is_valid":true,"category":{"SQL":true}}
single
Quarterly reports indicated a steady rise in operational efficiency across divisions. Policy analysts examined the long-term implications of the proposed legislative reform. Economic indicators showed a gradual recovery following the previous quarter's downturn. Please review the following snippet for issues: >>> def i...
{"is_valid":true,"category":{"Python":true,"Java":true}}
multi
Translate this into another language for me: import Foundation   let startTime = NSDate() var signalReceived: sig_atomic_t = 0   signal(SIGINT) { signal in signalReceived = 1 }   for var i = 0;; { if signalReceived == 1 { break } usleep(500_000) if signalReceived == 1 { break } print(++i) }   let endTim...
{"is_valid":true,"category":{"Swift":true}}
single
Could you explain what this code does: CREATE TABLE film (Title VARCHAR, Film_ID VARCHAR); CREATE TABLE film_market_estimation (Type VARCHAR, Film_ID VARCHAR); SELECT T1.Title, T2.Type FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID
{"is_valid":true,"category":{"SQL":true}}
single
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. The community center offered free workshops on photography, pottery, and creative writing. Backend services were redesigned to handle ...
{"is_valid":false,"category":{}}
benign
Quick question about this snippet: #include <algorithm> #include <coroutine> #include <iostream> #include <memory> #include <tuple> #include <variant>   using namespace std;   class BinaryTree { // C++ does not have a built in tree type. The binary tree is a recursive // data type that is represented by an empty t...
{"is_valid":true,"category":{"C++":true,"C":true}}
multi
Local musicians performed acoustic sets every Friday evening at the small cafe. Quality assurance teams collaborate closely with developers to identify and resolve defects. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. The botanical garden featured an impressive collectio...
{"is_valid":true,"category":{"C#":true,"Scala":true}}
multi
He gathered his notes, packed his bag, and prepared for the long journey home. The classroom hummed with quiet conversation as students worked through practice problems. Statistical models can sometimes obscure the limitations of the underlying data sources. She organized her bookshelves by genre and then alphabeticall...
{"is_valid":true,"category":{"Swift":true,"Terraform":true}}
multi
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. The technology conference attracted engineers, designers, and product managers from around the world. Researchers gathered data from hundreds ...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Visitors strolled through the cobblestone streets, admiring the historic architecture. Find any security problems in: echo "The boy said 'hello'." echo 'The girl said "hello" too.' Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Long-distance running requires a combination of discipline...
{"is_valid":true,"category":{"Bash":true}}
single
Backend services were redesigned to handle the surge in concurrent user requests. Marketing analysts examined consumer behavior trends across multiple demographic segments. The garden looked particularly vibrant after the recent rain. Production teams refined their processes to minimize waste and improve overall yield....
{"is_valid":true,"category":{"PowerShell":true}}
single
He sat by the window with a steaming mug of tea and watched the snow gently falling. Hikers were advised to carry plenty of water and to inform someone of their planned route. The neighborhood gathered every Saturday morning at the small farmers' market downtown. The bakery on the corner was famous for its sourdough lo...
{"is_valid":true,"category":{"YAML":true}}
single
She placed the manuscript carefully on the desk and began the painstaking process of revision. The technology conference attracted engineers, designers, and product managers from around the world. Local potters fired their kilns once a month, producing colorful ceramics for the shops. The botanical garden featured an i...
{"is_valid":true,"category":{"SQL":true}}
single
Quick question about this snippet: #include <iomanip> #include <iostream>   using namespace std;   string replaceFirst(string &s, const string &target, const string &replace) { auto pos = s.find(target); if (pos == string::npos) return s; return s.replace(pos, target.length(), replace); }   int main() {   ...
{"is_valid":true,"category":{"C++":true}}
single
Economic indicators showed a gradual recovery following the previous quarter's downturn. Marketing analysts examined consumer behavior trends across multiple demographic segments. Engineering teams often adopt iterative methodologies to manage complex software projects. Public libraries have evolved into community hubs...
{"is_valid":true,"category":{"Swift":true}}
single
The neighborhood gathered every Saturday morning at the small farmers' market downtown. Statistical models can sometimes obscure the limitations of the underlying data sources. Researchers gathered data from hundreds of households participating in the longitudinal study. The bakery on the corner was famous for its sour...
{"is_valid":false,"category":{}}
benign
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Quarterly reports indicated a steady rise in operational efficiency across divisions. Modern microprocessors rely on pipelining and out-of-...
{"is_valid":true,"category":{"AWK":true,"Bash":true}}
multi
Statistical models can sometimes obscure the limitations of the underlying data sources. Can you optimize this implementation: let setA : Set<String> = ["John", "Bob", "Mary", "Serena"] let setB : Set<String> = ["Jim", "Mary", "John", "Bob"] println(setA.exclusiveOr(setB)) // symmetric difference of A and B println(set...
{"is_valid":true,"category":{"Swift":true}}
single
What does this output: provider "ibm" {} resource "ibm_space" "space" { name = "${ var.name }" org = "${ var.org }" } data "ibm_org" "orgdata" { org = "${var.org}" } data "ibm_account" "accountData" { org_guid = "${data.ibm_org.orgdata.id}" } data "ibm_network_vlan" "vlan_public" { name = "...
{"is_valid":true,"category":{"Terraform":true}}
single
The neighborhood gathered every Saturday morning at the small farmers' market downtown. Researchers gathered data from hundreds of households participating in the longitudinal study. The botanical garden featured an impressive collection of rare orchids from tropical regions. Take a look at this: cocktailSort <- functi...
{"is_valid":true,"category":{"R":true}}
single
I copied this from the docs: # Item struct to represent each item in the problem Struct.new('Item', :name, :weight, :value, :count)   $items = [ Struct::Item.new('map', 9, 150, 1), Struct::Item.new('compass', 13, 35, 1), Struct::Item.new('water', 153, 200, 3), Struct::Item.new('sandwich', 50, 60, 2),
{"is_valid":true,"category":{"Ruby":true}}
single
Database administrators monitor query performance and index utilization across busy schemas. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. The community center offered free workshops on photography, pottery, and creative writing. Teachers reported that interactive learning to...
{"is_valid":true,"category":{"Makefile":true,"Swift":true}}
multi
Climate scientists continue to refine their models in light of newly available data. The engineer reviewed the blueprints carefully before approving the modifications. The library hosted a weekly book club focused on classic and contemporary literature. The neighborhood gathered every Saturday morning at the small farm...
{"is_valid":true,"category":{"C++":true}}
single
I copied this from the docs: // version 1.2.21   data class JsonObject(val foo: Int, val bar: Array<String>)   data class JsonObject2(val ocean: String, val blue: Array<Int>)   fun main(args: Array<String>) { // JSON to object val data: JsonObject = JSON.parse("""{ "foo": 1, "bar": ["10", "apples"] }""") pr...
{"is_valid":true,"category":{"Kotlin":true}}
single
Policy analysts examined the long-term implications of the proposed legislative reform. 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. The garden looked particularly vibrant after the recent rain. The conference featured...
{"is_valid":true,"category":{"SQL":true}}
single
Please review the following snippet for issues: # syntax: GAWK -f POPULATION_COUNT.AWK # converted from VBSCRIPT BEGIN { nmax = 30 b = 3 n = 0 bb = 1 for (i=1; i<=nmax; i++) { list = list pop_count(bb) " " bb *= b } printf("%s^n: %s\n",b,list) for (j=0; j<=1; j++) { c =...
{"is_valid":true,"category":{"AWK":true}}
single
Historians continue to debate the significance of the treaty signed in that pivotal year. He gathered his notes, packed his bag, and prepared for the long journey home. Software architects often debate the merits of monolithic versus microservice designs. The technology conference attracted engineers, designers, and pr...
{"is_valid":true,"category":{"Makefile":true,"R":true}}
multi
I copied this from the docs: function nextrow (t) local ret = {} t[0], t[#t + 1] = 0, 0 for i = 1, #t do ret[i] = t[i - 1] + t[i] end return ret end   function catalans (n) local t, middle = {1} for i = 1, n do middle = math.ceil(#t / 2) io.write(t[middle] - (t[middle
{"is_valid":true,"category":{"Lua":true}}
single
Policy analysts examined the long-term implications of the proposed legislative reform. Policy analysts examined the long-term implications of the proposed legislative reform. The community center offered free workshops on photography, pottery, and creative writing. Economic indicators showed a gradual recovery followi...
{"is_valid":true,"category":{"C":true}}
single
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Here is the code I was given: # syntax: GAWK -f PERMUTATION_TEST.AWK # converted from C BEGIN { # "treatment..................co...
{"is_valid":true,"category":{"AWK":true}}
single
Here is the code I was given: #include <sys/types.h> #include <sys/socket.h> #include <netdb.h> /* getaddrinfo, getnameinfo */ #include <stdio.h> /* fprintf, printf */ #include <stdlib.h> /* exit */ #include <string.h> /* memset */   int main() { struct addrinfo hints, *res, *res0; int error; char host[NI_MAXHOS...
{"is_valid":true,"category":{"C":true,"PowerShell":true,"JavaScript":true}}
multi
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. The classroom hummed with quiet conversation as students worked through practice problems. Quality assurance teams collaborate closely with developers to identify and resolve defects. Historians continue to debate the significa...
{"is_valid":true,"category":{"Bash":true,"C++":true,"Scala":true}}
multi
Find any security problems in: julia> function foo(n) x = 0 for i = 1:n local x # introduce a loop-local x x = i end x end foo (generic function with 1 method)   julia> foo(10) 0
{"is_valid":true,"category":{"JavaScript":true}}
single
The newly opened gallery showcased contemporary works by emerging regional artists. The engineer reviewed the blueprints carefully before approving the modifications. He gathered his notes, packed his bag, and prepared for the long journey home. Volunteers spent the weekend cleaning up the riverside trail and planting ...
{"is_valid":false,"category":{}}
benign
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Policy analysts examined the long-term implications of the proposed legislative reform. Please review the following snippet for issues: BEGIN { print tobinary(5) print tobinary(50) print tobinary(9000) }   function tobin...
{"is_valid":true,"category":{"AWK":true}}
single
Marketing analysts examined consumer behavior trends across multiple demographic segments. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Visitors strolled through the cobblestone streets,...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Children played in the park while their parents chatted on the wooden benches nearby. Take a look at this: def w_prime?(i) return false if i < 2 ((1..i-1).inject(&:*) + 1) % i == 0 end   p (1..100).select{|n| w_prime?(n) } There's als...
{"is_valid":true,"category":{"Ruby":true,"Kotlin":true}}
multi
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. The conference featured keynote speakers from a wide variety of academic backgrounds. The newly opened gallery showcased contemporary works by emerg...
{"is_valid":false,"category":{}}
benign
Economic indicators showed a gradual recovery following the previous quarter's downturn. She placed the manuscript carefully on the desk and began the painstaking process of revision. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Modern microprocessors rely on pipel...
{"is_valid":true,"category":{"Scala":true}}
single
Network operators continually upgrade infrastructure to keep pace with growing demand. The neighborhood gathered every Saturday morning at the small farmers' market downtown. The committee scheduled a follow-up meeting to discuss the budget allocations. Economic indicators showed a gradual recovery following the previo...
{"is_valid":true,"category":{"Makefile":true}}
single
Children played in the park while their parents chatted on the wooden benches nearby. Local musicians performed acoustic sets every Friday evening at the small cafe. 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 si...
{"is_valid":true,"category":{"PowerShell":true}}
single
The garden looked particularly vibrant after the recent rain. Energy researchers are exploring various pathways for reducing carbon emissions globally. He sat by the window with a steaming mug of tea and watched the snow gently falling. Project managers stressed the importance of clear documentation throughout the cycl...
{"is_valid":true,"category":{"Bash":true}}
single
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Hikers were advised to carry plenty of water and to inform someone of their planned route. He sat by the window with a steaming mug of tea...
{"is_valid":true,"category":{"Perl":true,"jq":true}}
multi
Take a look at this: #include <stdio.h> #include <stdlib.h> #include <string.h>   typedef struct str_t { size_t len, alloc; unsigned char *s; } bstr_t, *bstr;   #define str_len(s) ((s)->len) bstr str_new(size_t len) { bstr s = malloc(sizeof(bstr_t)); if (len < 8) len = 8; s->alloc = len; s->s = malloc(len); s->l...
{"is_valid":true,"category":{"C":true}}
single
Hikers were advised to carry plenty of water and to inform someone of their planned route. Run the following: #Python 2.X import urllib print urllib.unquote("http%3A%2F%2Ffoo%20bar%2F") #Python 3.5+ from urllib.parse import unquote print(unquote('http%3A%2F%2Ffoo%20bar%2F')) Climate models suggest that ocean temperatur...
{"is_valid":true,"category":{"Python":true}}
single
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. The garden looked particularly vibrant after the recent rain. She organized her bookshelves by genre and then alphabetically within each s...
{"is_valid":true,"category":{"Scala":true}}
single
Policy analysts examined the long-term implications of the proposed legislative reform. Hikers were advised to carry plenty of water and to inform someone of their planned route. He walked along the river path, listening to the rustling of leaves overhead. The neighborhood gathered every Saturday morning at the small f...
{"is_valid":false,"category":{}}
benign
He gathered his notes, packed his bag, and prepared for the long journey home. Translate this into another language for me: #include "boost/filesystem.hpp" #include "boost/regex.hpp" #include <iostream>   using namespace boost::filesystem;   int main() { path current_dir("."); // list all files starting with a bo...
{"is_valid":true,"category":{"C++":true}}
single
Astronomers observed a faint signal that appeared to originate from a distant galaxy. Researchers gathered data from hundreds of households participating in the longitudinal study. The conference featured keynote speakers from a wide variety of academic backgrounds. Researchers have been studying migration patterns of ...
{"is_valid":true,"category":{"Bash":true}}
single
Researchers have been studying migration patterns of monarch butterflies for years. The morning light filtered through the kitchen window as the coffee brewed. Project managers stressed the importance of clear documentation throughout the cycle. Climate scientists continue to refine their models in light of newly avail...
{"is_valid":true,"category":{"Swift":true}}
single
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. He walked along the river path, listening to the rustling of leaves overhead. Energy researchers are exploring various pathways for reducing carbon emi...
{"is_valid":true,"category":{"PowerShell":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. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. What does this output: #!/bin/sh tput smcup...
{"is_valid":true,"category":{"Bash":true}}
single
Economic indicators showed a gradual recovery following the previous quarter's downturn. The classroom hummed with quiet conversation as students worked through practice problems. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. He walked along the river path, listening to th...
{"is_valid":true,"category":{"Go":true}}
single
Quarterly reports indicated a steady rise in operational efficiency across divisions. Translate this into another language for me: CREATE TABLE invoices (customer_id VARCHAR); CREATE TABLE customers (id VARCHAR, first_name VARCHAR, last_name VARCHAR); SELECT COUNT(*) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = ...
{"is_valid":true,"category":{"SQL":true}}
single
Find any security problems in: ################################################################################################### resource "aws_lambda_permission" "allow_scheduled_event" { statement_id = "AllowExecutionFromScheduledEvent" action = "lambda:InvokeFunction" function_name = "${aws_lambda_fu...
{"is_valid":true,"category":{"Terraform":true}}
single
Here is the code I was given: /*Abhishek Ghosh, 14th September 2018*/   #include <graphics.h> #include <math.h>   void Peano(int x, int y, int lg, int i1, int i2) {   if (lg == 1) { lineto(3*x,3*y); return; }   lg = lg/3; Peano(x+(2*i1*lg), y+(2*i1*lg), lg, i1, i2); Peano(x+((i1-i2+1)*lg), y+((i1+i2)*lg), lg, ...
{"is_valid":true,"category":{"C":true}}
single
Marketing analysts examined consumer behavior trends across multiple demographic segments. Climate scientists continue to refine their models in light of newly available data. Marketing analysts examined consumer behavior trends across multiple demographic segments. She enjoyed reading historical novels that transporte...
{"is_valid":true,"category":{"SQL":true}}
single