prompt
large_stringlengths
150
7.97k
target
large_stringlengths
32
83
kind
large_stringclasses
3 values
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. The painting featured warm colors that evoked memories of childhood summers by the sea. Researchers gathered data from hundreds of households participating in the longitudinal study. The chef prepared a simple meal of roasted vege...
{"is_valid":true,"category":{"jq":true}}
single
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. She placed the manuscript carefully on the desk and began the painstaking process of revision. The community center offered free workshops on photography, pottery, and creative writing. The garden looked particularly vibrant a...
{"is_valid":true,"category":{"Rust":true,"YAML":true}}
multi
The community center offered free workshops on photography, pottery, and creative writing. Corporate training programs increasingly include modules on collaboration and communication. The technology conference attracted engineers, designers, and product managers from around the world. Local potters fired their kilns on...
{"is_valid":true,"category":{"Ruby":true,"Scala":true}}
multi
The library hosted a weekly book club focused on classic and contemporary literature. 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. Project managers stressed the importance of clear docu...
{"is_valid":false,"category":{}}
benign
Refactor the function below: # 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, Vers
{"is_valid":true,"category":{"Dockerfile":true}}
single
Local musicians performed acoustic sets every Friday evening at the small cafe. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. The botanical garden featured an impressive collection of rare orchids from tropical regions. The classroom hummed with quiet conversation as stude...
{"is_valid":false,"category":{}}
benign
What does this output: import Foundation   typealias PrimitiveHeronianTriangle = (s1:Int, s2:Int, s3:Int, p:Int, a:Int)   func heronianArea(side1 s1:Int, side2 s2:Int, side3 s3:Int) -> Int? { let d1 = Double(s1) let d2 = Double(s2) let d3 = Double(s3)   let s = (d1 + d2 + d3) / 2.0
{"is_valid":true,"category":{"Swift":true}}
single
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Policy analysts examined the long-term implications of the proposed legislative reform. Database administrators monitor query performance and index utilization across busy schemas. She placed the manuscript carefully on the de...
{"is_valid":true,"category":{"jq":true,"Python":true}}
multi
Distributed systems demand careful attention to consistency, availability, and partition tolerance. Researchers gathered data from hundreds of households participating in the longitudinal study. Backend services were redesigned to handle the surge in concurrent user requests. The neighborhood gathered every Saturday mo...
{"is_valid":false,"category":{}}
benign
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Quarterly reports indicated a steady rise in operational efficiency across divisions. Researchers gathered data from hundreds of households participat...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Policy analysts examined the long-term implications of the proposed legislative reform. He walked along the river path, listening to the rustling of leaves overhead. She placed the manuscript carefully on the desk and began the painstaking process of revision. Children played in the park while their parents chatted on ...
{"is_valid":true,"category":{"Swift":true}}
single
Refactor the function below: require 'prime'   prime_array, sppair2, sppair3, sppair4, sppair5 = Array.new(5) {Array.new()} # arrays for prime numbers and index number to array for each pair. unsexy, i, start = [2], 0, Time.now Prime.each(1_000_100) {|prime| prime_array.push prime}   while prime_array[i] < 1
{"is_valid":true,"category":{"Ruby":true}}
single
Local potters fired their kilns once a month, producing colorful ceramics for the shops. The committee scheduled a follow-up meeting to discuss the budget allocations. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Energy researchers are exploring various pathways for reduc...
{"is_valid":true,"category":{"Perl":true,"Makefile":true,"C++":true}}
multi
Distributed systems demand careful attention to consistency, availability, and partition tolerance. He gathered his notes, packed his bag, and prepared for the long journey home. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Travelers explored ancient ruins, marveling at ...
{"is_valid":true,"category":{"Terraform":true}}
single
Climate models suggest that ocean temperatures will continue to rise over the coming decades. Local potters fired their kilns once a month, producing colorful ceramics for the shops. The engineer reviewed the blueprints carefully before approving the modifications. Nutritionists generally recommend a balanced diet rich...
{"is_valid":true,"category":{"Terraform":true}}
single
The community center offered free workshops on photography, pottery, and creative writing. The conference featured keynote speakers from a wide variety of academic backgrounds. Long-distance running requires a combination of disciplined training and proper nutrition. The garden looked particularly vibrant after the rec...
{"is_valid":true,"category":{"SQL":true}}
single
Energy researchers are exploring various pathways for reducing carbon emissions globally. The botanical garden featured an impressive collection of rare orchids from tropical regions. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. The bakery on the corner was famous for its sour...
{"is_valid":true,"category":{"YAML":true}}
single
The botanical garden featured an impressive collection of rare orchids from tropical regions. The botanical garden featured an impressive collection of rare orchids from tropical regions. Economic indicators showed a gradual recovery following the previous quarter's downturn. Modern microprocessors rely on pipelining a...
{"is_valid":true,"category":{"Batch":true,"R":true}}
multi
Production teams refined their processes to minimize waste and improve overall yield. I need help debugging this script: CREATE TABLE catalog_contents (catalog_entry_name VARCHAR, height VARCHAR); SELECT catalog_entry_name FROM catalog_contents ORDER BY height DESC LIMIT 1 The bakery on the corner was famous for its so...
{"is_valid":true,"category":{"SQL":true}}
single
Network operators continually upgrade infrastructure to keep pace with growing demand. Hikers were advised to carry plenty of water and to inform someone of their planned route. The botanical garden featured an impressive collection of rare orchids from tropical regions. Public libraries have evolved into community hub...
{"is_valid":true,"category":{"C#":true}}
single
Engineering teams often adopt iterative methodologies to manage complex software projects. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Researchers gathered data from hundreds of house...
{"is_valid":false,"category":{}}
benign
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Production teams refined their processes to minimize waste and improve overall yield. Climate scientists continue to refine their models in light of newly available data. The newly opened gallery showcased contemporary works by emer...
{"is_valid":false,"category":{}}
benign
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Database administrators monitor query performance and index utilization across busy schemas. Project managers stressed the importance of clear documentation throughout the cycle. Can you optimize this implementation: for(j in ...
{"is_valid":true,"category":{"R":true}}
single
Teachers reported that interactive learning tools improved student engagement significantly. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Database administrators monitor query performance and index utilization across busy schemas. Researchers gathered data from hundreds o...
{"is_valid":true,"category":{"Kotlin":true}}
single
The classroom hummed with quiet conversation as students worked through practice problems. She organized her bookshelves by genre and then alphabetically within each section. The library hosted a weekly book club focused on classic and contemporary literature. Network operators continually upgrade infrastructure to kee...
{"is_valid":false,"category":{}}
benign
Energy researchers are exploring various pathways for reducing carbon emissions globally. Take a look at this: import java.util.Properties   import javax.mail.internet.{ InternetAddress, MimeMessage } import javax.mail.Message.RecipientType import javax.mail.{ Session, Transport }   /** Mail constructor. * @construct...
{"is_valid":true,"category":{"Scala":true}}
single
Distributed systems demand careful attention to consistency, availability, and partition tolerance. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Researchers have been studying migration patterns of monarch butterflies for years. I need help debugging this script: functio...
{"is_valid":true,"category":{"Lua":true}}
single
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. The committee scheduled a follow-up meeting to discuss the budget allocations. The newly opened gallery showcased contemporary works by emergi...
{"is_valid":true,"category":{"Rust":true}}
single
Refactor the function below: const bottle = " bottle" const plural = "s" const ofbeer = " of beer" const wall = " on the wall" const sep = ", " const takedown = "Take one down and pass it around, " const u_no = "No" const l_no = "no" const more = " more bottles of beer" const store = "Go to the store and buy some more,...
{"is_valid":true,"category":{"Batch":true}}
single
Astronomers observed a faint signal that appeared to originate from a distant galaxy. Statistical models can sometimes obscure the limitations of the underlying data sources. Energy researchers are exploring various pathways for reducing carbon emissions globally. I need help debugging this script: CREATE TABLE shop (O...
{"is_valid":true,"category":{"SQL":true}}
single
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. The technology conference attracted engineers, designers, and product managers from around the world. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Volunteers spent the weekend clean...
{"is_valid":true,"category":{"Makefile":true}}
single
Marketing analysts examined consumer behavior trends across multiple demographic segments. She enjoyed reading historical novels that transported her to far away places. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Late spring rains caused the lake to swell beyond its usu...
{"is_valid":true,"category":{"C#":true}}
single
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. The botanical garden featured an impres...
{"is_valid":true,"category":{"Lua":true,"C":true}}
multi
Public libraries have evolved into community hubs offering far more than just printed books. Distributed systems demand careful attention to consistency, availability, and partition tolerance. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Take a look at this: resource "aws...
{"is_valid":true,"category":{"Terraform":true}}
single
Distributed systems demand careful attention to consistency, availability, and partition tolerance. Network operators continually upgrade infrastructure to keep pace with growing demand. Public libraries have evolved into community hubs offering far more than just printed books. Volunteers spent the weekend cleaning up...
{"is_valid":true,"category":{"SQL":true}}
single
She enjoyed reading historical novels that transported her to far away places. Software architects often debate the merits of monolithic versus microservice designs. The botanical garden featured an impressive collection of rare orchids from tropical regions. Quarterly reports indicated a steady rise in operational eff...
{"is_valid":true,"category":{"Rust":true}}
single
Astronomers observed a faint signal that appeared to originate from a distant galaxy. Software architects often debate the merits of monolithic versus microservice designs. Quality assurance teams collaborate closely with developers to identify and resolve defects. Researchers gathered data from hundreds of households ...
{"is_valid":true,"category":{"Makefile":true}}
single
Quarterly reports indicated a steady rise in operational efficiency across divisions. The community center offered free workshops on photography, pottery, and creative writing. He sat by the window with a steaming mug of tea and watched the snow gently falling. He sat by the window with a steaming mug of tea and watche...
{"is_valid":true,"category":{"Lua":true}}
single
Quarterly reports indicated a steady rise in operational efficiency across divisions. She organized her bookshelves by genre and then alphabetically within each section. Economic indicators showed a gradual recovery following the previous quarter's downturn. Historians continue to debate the significance of the treaty ...
{"is_valid":true,"category":{"Ruby":true}}
single
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Run the following: def sort(xs: List[Int]): List[Int] = xs match { case Nil => Nil case head :: tail => val (less, notLess) = tail.partition(_ < head) // Arbitrarily partition list in two sort(less) ++ (hea...
{"is_valid":true,"category":{"Scala":true}}
single
I need help debugging this script: // File digit.go   package digit   import ( "math/big" "strconv" )   func SumString(n string, base int) (int, error) { i, ok := new(big.Int).SetString(n, base) if !ok { return 0, strconv.ErrSyntax } if i.Sign() < 0 { return 0, strconv.ErrRange } if i.BitLen() <= 64 {
{"is_valid":true,"category":{"Go":true}}
single
The library hosted a weekly book club focused on classic and contemporary literature. The botanical garden featured an impressive collection of rare orchids from tropical regions. Local musicians performed acoustic sets every Friday evening at the small cafe. Historians continue to debate the significance of the treaty...
{"is_valid":true,"category":{"C++":true}}
single
Local musicians performed acoustic sets every Friday evening at the small cafe. Climate scientists continue to refine their models in light of newly available data. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Network operators continually upgrade infrastructure to keep ...
{"is_valid":true,"category":{"Batch":true}}
single
Quality assurance teams collaborate closely with developers to identify and resolve defects. Network operators continually upgrade infrastructure to keep pace with growing demand. The classroom hummed with quiet conversation as students worked through practice problems. Late spring rains caused the lake to swell beyond...
{"is_valid":true,"category":{"Scala":true}}
single
Refactor the function below: #[derive(Copy, Clone, Debug)] struct Point { x: f64, y: f64, }   impl Point { pub fn new(x: f64, y: f64) -> Self { Point { x, y } } }   #[derive(Copy, Clone, Debug)] struct Line(Point, Point);   impl Line { pub fn intersect(self, other: Self) -> Option<Point> { ...
{"is_valid":true,"category":{"Rust":true,"JavaScript":true}}
multi
The painting featured warm colors that evoked memories of childhood summers by the sea. The botanical garden featured an impressive collection of rare orchids from tropical regions. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Network operators continually upgrade infrastructu...
{"is_valid":true,"category":{"Perl":true,"AWK":true}}
multi
Refactor the function below: replace() { local search=$1 replace=$2 local file lines line shift 2 for file in "$@"; do lines=() while IFS= read -r line; do lines+=( "${line//$search/$replace}" ) done < "$file" printf "%s\n" "${lines[@]}" > "$file" done } r...
{"is_valid":true,"category":{"Bash":true,"JavaScript":true,"Rust":true}}
multi
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Climate scientists continue to refine their models in light of newly available data. Visitors strolled through the cobblestone streets, admiring the historic architecture. A gentle breeze drifted across the meadow as the sun began...
{"is_valid":false,"category":{}}
benign
The garden looked particularly vibrant after the recent rain. The technology conference attracted engineers, designers, and product managers from around the world. Add comments to make this clearer: require"iuplua" l = iup.label{title="There have been no clicks yet."} b = iup.button{title="Click me!"} clicks = 0 functi...
{"is_valid":true,"category":{"Lua":true}}
single
I need help debugging this script: fn sum_of_divisors(val: u32) -> u32 { (1..val/2+1).filter(|n| val % n == 0) .fold(0, |sum, n| sum + n) }   fn main() { let iter = (1..20_000).map(|i| (i, sum_of_divisors(i))) .filter(|&(i, div_sum)| i > div_sum);   for (i, sum
{"is_valid":true,"category":{"Rust":true}}
single
Astronomers observed a faint signal that appeared to originate from a distant galaxy. 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. The committee scheduled a follow-up meeting to discuss ...
{"is_valid":true,"category":{"Ruby":true}}
single
Run the following: # 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.0 (the # "Licen...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Find any security problems in: # Find Mian-Chowla numbers: an # where: ai = 1, # and: an = smallest integer such that ai + aj is unique # for all i, j in 1 .. n && i <= j # BEGIN \ {   FALSE = 0; TRUE = 1;
{"is_valid":true,"category":{"AWK":true}}
single
Climate scientists continue to refine their models in light of newly available data. Please review the following snippet for issues: CREATE TABLE useracct (name VARCHAR, u_id VARCHAR); CREATE TABLE review (u_id VARCHAR); SELECT T1.name, COUNT(*) FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id GROUP BY T2.u_i...
{"is_valid":true,"category":{"SQL":true}}
single
Astronomers observed a faint signal that appeared to originate from a distant galaxy. Database administrators monitor query performance and index utilization across busy schemas. The painting featured warm colors that evoked memories of childhood summers by the sea. The committee scheduled a follow-up meeting to discus...
{"is_valid":true,"category":{"R":true}}
single
Take a look at this: object DataMunging2 { import scala.io.Source import scala.collection.immutable.{TreeMap => Map}   val pattern = """^(\d+-\d+-\d+)""" + """\s+(\d+\.\d+)\s+(-?\d+)""" * 24 + "$" r;   def main(args: Array[String]) { val files = args map (new java.io.File(_)) filter (file => file.isFile && ...
{"is_valid":true,"category":{"Scala":true}}
single
Late spring rains caused the lake to swell beyond its usual seasonal boundaries. I need help debugging this script: function recurse(depth) { try { return recurse(depth + 1); } catch(ex) { return depth; } }   var maxRecursion = recurse(1); document.write("Recursion depth on this system is " + maxRecursion); L...
{"is_valid":true,"category":{"JavaScript":true}}
single
Researchers gathered data from hundreds of households participating in the longitudinal study. The newly opened gallery showcased contemporary works by emerging regional artists. Network operators continually upgrade infrastructure to keep pace with growing demand. Late spring rains caused the lake to swell beyond its ...
{"is_valid":true,"category":{"Python":true}}
single
I copied this from the docs: # query.rb require 'fiddle'   # Look for a C variable named QueryPointer. # Raise an error if it is missing. c_var = Fiddle.dlopen(nil)['QueryPointer']   int = Fiddle::TYPE_INT voidp = Fiddle::TYPE_VOIDP sz_voidp = Fiddle::SIZEOF_VOIDP   # Implement the C function # int Query(void *data, ...
{"is_valid":true,"category":{"Ruby":true,"Kotlin":true,"C":true}}
multi
The committee scheduled a follow-up meeting to discuss the budget allocations. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Run the following: 0x2d7==727 # TRUE ident...
{"is_valid":true,"category":{"R":true}}
single
The library hosted a weekly book club focused on classic and contemporary literature. He sat by the window with a steaming mug of tea and watched the snow gently falling. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Distributed systems demand careful attention to consistency, ...
{"is_valid":true,"category":{"C++":true,"C":true,"Python":true}}
multi
Please review the following snippet for issues: // version 1.2.10   import java.util.Random   val rand = Random() const val RAND_MAX = 32767   // cell states const val FILL = 1 const val RWALL = 2 // right wall const val BWALL = 4 // bottom wall   val x = 10 val y = 10 var grid = IntArray(x * (y + 2)) var cells = 0 ...
{"is_valid":true,"category":{"Kotlin":true}}
single
Marketing analysts examined consumer behavior trends across multiple demographic segments. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. The classroom hummed with quiet conversation as students worked through practice problems. Policy analysts examined the long-term impli...
{"is_valid":true,"category":{"R":true}}
single
Researchers gathered data from hundreds of households participating in the longitudinal study. Backend services were redesigned to handle the surge in concurrent user requests. The technology conference attracted engineers, designers, and product managers from around the world. She organized her bookshelves by genre an...
{"is_valid":true,"category":{"Java":true}}
single
The painting featured warm colors that evoked memories of childhood summers by the sea. Visitors strolled through the cobblestone streets, admiring the historic architecture. Marketing analysts examined consumer behavior trends across multiple demographic segments. She enjoyed reading historical novels that transported...
{"is_valid":true,"category":{"Scala":true}}
single
Here is the code I was given: # Start with a pool large enough to meet the requirements $Pool = [System.Collections.ArrayList]( 2..22000 )   # Start with 1, because it's grandfathered in $Ludic = @( 1 )   # While the size of the pool is still larger than the next Ludic number... While ( $Pool.Count -gt $Pool[0] ) ...
{"is_valid":true,"category":{"PowerShell":true}}
single
Children played in the park while their parents chatted on the wooden benches nearby. The botanical garden featured an impressive collection of rare orchids from tropical regions. He walked along the river path, listening to the rustling of leaves overhead. I copied this from the docs: using System;   class Program { ...
{"is_valid":true,"category":{"C#":true}}
single
Here is the code I was given: using System; using System.Collections.Generic;   namespace prog { class MainClass { const int n_iter = 10; static int[] f = { 0, 1, 1, 1, 0, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 0 };   public static void Main (string[] args) { for( int i=0; i<f.Length; i++ ) Console...
{"is_valid":true,"category":{"C#":true}}
single
Economic indicators showed a gradual recovery following the previous quarter's downturn. The painting featured warm colors that evoked memories of childhood summers by the sea. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Farmers depend on accurate weather forecasts to pl...
{"is_valid":true,"category":{"Scala":true}}
single
Local potters fired their kilns once a month, producing colorful ceramics for the shops. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. The newly opened gallery showcased contemporary works by emerging regional artists. Researchers have been studying migration patterns of mona...
{"is_valid":false,"category":{}}
benign
Find any security problems in: local socket = require "socket" local headers = "HTTP/1.1 200 OK\r\nContent-Type: text/html; charset=UTF-8\r\nContent-Length: %d\r\n\r\n%s" local content = "<!doctype html><html><title>Goodbye, World!</title><h1>Goodbye, World!" local server = assert(socket.bind("localhost", 8080)) repeat...
{"is_valid":true,"category":{"Lua":true}}
single
Researchers have been studying migration patterns of monarch butterflies for years. Researchers have been studying migration patterns of monarch butterflies for years. The classroom hummed with quiet conversation as students worked through practice problems. He gathered his notes, packed his bag, and prepared for the l...
{"is_valid":true,"category":{"Ruby":true,"YAML":true}}
multi
The newly opened gallery showcased contemporary works by emerging regional artists. Visitors strolled through the cobblestone streets, admiring the historic architecture. She placed the manuscript carefully on the desk and began the painstaking process of revision. He gathered his notes, packed his bag, and prepared fo...
{"is_valid":true,"category":{"YAML":true,"Python":true}}
multi
Visitors strolled through the cobblestone streets, admiring the historic architecture. Historians continue to debate the significance of the treaty signed in that pivotal year. Hikers were advised to carry plenty of water and to inform someone of their planned route. Hikers were advised to carry plenty of water and to ...
{"is_valid":true,"category":{"Batch":true,"AWK":true}}
multi
She placed the manuscript carefully on the desk and began the painstaking process of revision. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Children played in the park while their parents ch...
{"is_valid":false,"category":{}}
benign
The botanical garden featured an impressive collection of rare orchids from tropical regions. The morning light filtered through the kitchen window as the coffee brewed. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. A gentle breeze drifted across the meadow as the sun bega...
{"is_valid":true,"category":{"Lua":true}}
single
Translate this into another language for me: function frequency ($string) { $arr = $string.ToUpper().ToCharArray() |where{$_ -match '[A-KL-Z]'} $n = $arr.count $arr | group | foreach{ [pscustomobject]@{letter = "$($_.name)"; frequency = "$([math]::round($($_.Count/$n),5))"; count = "$($_.count)"} ...
{"is_valid":true,"category":{"PowerShell":true}}
single
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. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. He gathered his notes, packed his bag, and prepa...
{"is_valid":false,"category":{}}
benign
Here is the code I was given: from functools import total_ordering from bisect import bisect_left from heapq import merge   @total_ordering class Pile(list): def __lt__(self, other): return self[-1] < other[-1] def __eq__(self, other): return self[-1] == other[-1]   def patience_sort(n): piles = [
{"is_valid":true,"category":{"Python":true}}
single
She placed the manuscript carefully on the desk and began the painstaking process of revision. 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 new saplings. Quarterly reports indicated a steady rise in operational e...
{"is_valid":true,"category":{"PowerShell":true}}
single
What does this output: apiVersion: v1 kind: Secret metadata: name: github-hook-secret type: Opaque stringData: # accessToken needs to have the admin:org_hook scope. accessToken: <YOUR PERSONAL ACCESS TOKEN FROM GITHUB> secretToken: <YOUR RANDOM STRING> On a related note, this block: !ExternalBytes class method...
{"is_valid":true,"category":{"YAML":true,"Scala":true,"C++":true}}
multi
The classroom hummed with quiet conversation as students worked through practice problems. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Quick question about this snippet: provider "google" { project = "steam-strategy-174408" region = "europe-west1" } resource "google_compute_in...
{"is_valid":true,"category":{"Terraform":true,"AWK":true}}
multi
Project managers stressed the importance of clear documentation throughout the cycle. The neighborhood gathered every Saturday morning at the small farmers' market downtown. The newly opened gallery showcased contemporary works by emerging regional artists. Please review the following snippet for issues: // prints the ...
{"is_valid":true,"category":{"Go":true}}
single
Statistical models can sometimes obscure the limitations of the underlying data sources. The painting featured warm colors that evoked memories of childhood summers by the sea. The newly opened gallery showcased contemporary works by emerging regional artists. Hikers were advised to carry plenty of water and to inform ...
{"is_valid":true,"category":{"JavaScript":true}}
single
Quarterly reports indicated a steady rise in operational efficiency across divisions. The painting featured warm colors that evoked memories of childhood summers by the sea. Climate scientists continue to refine their models in light of newly available data. Add comments to make this clearer: package main   import ( ...
{"is_valid":true,"category":{"Go":true}}
single
Can you optimize this implementation: // version 1.1   fun divideByZero(x: Int, y:Int): Boolean = try { x / y false } catch(e: ArithmeticException) { true }   fun main(args: Array<String>) { val x = 1 val y = 0 if (divideByZero(x, y)) { println("Attempted to div
{"is_valid":true,"category":{"Kotlin":true}}
single
Climate scientists continue to refine their models in light of newly available data. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Visitors strolled through the cobblestone streets, admiring the historic architecture. Climate scientists continue to refine their models in light of...
{"is_valid":true,"category":{"Ruby":true}}
single
Add comments to make this clearer: function binomial(n,k) if n<0 or k<0 or n<k then return -1 end if n==0 or k==0 then return 1 end   local num = 1 for i=k+1,n do num = num * i end   local denom = 1 for i=2,n-k do denom = denom * i end   return num / denom end   funct...
{"is_valid":true,"category":{"Lua":true}}
single
Historians continue to debate the significance of the treaty signed in that pivotal year. 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. Network operators continually upgrade infrastruc...
{"is_valid":true,"category":{"R":true}}
single
The neighborhood gathered every Saturday morning at the small farmers' market downtown. Policy analysts examined the long-term implications of the proposed legislative reform. Find any security problems in: import kotlin.math.max import kotlin.math.min   private const val EPS = 0.001 private const val EPS_SQUARE = EPS ...
{"is_valid":true,"category":{"Kotlin":true}}
single
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Researchers have been studying migration patterns o...
{"is_valid":false,"category":{}}
benign
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Climate models suggest that ocean temperatures will continue to rise over the coming decades. The morning light filtered through the kitchen window as the coffee brewed. Late spring rains caused the lake to swell beyond its usual seaso...
{"is_valid":false,"category":{}}
benign
I copied this from the docs: -- Four is magic, in Lua, 6/16/2020 db local oneslist = { [0]="", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine" } local teenlist = { [0]="ten", "eleven", "twelve", "thirteen", "fourteen", "fifteen", "sixteen", "seventeen", "eighteen", "nineteen" } local tenslist = {...
{"is_valid":true,"category":{"Lua":true,"PowerShell":true,"C++":true}}
multi
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. The morning light filtered through the kitchen window as the coffee brewed. The committee scheduled a follow-up meeting to discuss the bud...
{"is_valid":true,"category":{"Ruby":true}}
single
Climate models suggest that ocean temperatures will continue to rise over the coming decades. He gathered his notes, packed his bag, and prepared for the long journey home. Researchers gathered data from hundreds of households participating in the longitudinal study. Engineering teams often adopt iterative methodologie...
{"is_valid":true,"category":{"AWK":true}}
single
The library hosted a weekly book club focused on classic and contemporary literature. The newly opened gallery showcased contemporary works by emerging regional artists. Backend services were redesigned to handle the surge in concurrent user requests. The garden looked particularly vibrant after the recent rain. He gat...
{"is_valid":true,"category":{"Perl":true}}
single
Quick question about this snippet: # kubectl apply -f helm/staking-ledger-cron/mainnet-dump-staking-ledger-cronjob.yaml # the above command, with this accompanying file, needs only be run once. it does not get run in CI. this file is provided here for future reference apiVersion: batch/v1beta1 kind: CronJob metadata:...
{"is_valid":true,"category":{"YAML":true,"C#":true}}
multi
Astronomers observed a faint signal that appeared to originate from a distant galaxy. She enjoyed reading historical novels that transported her to far away places. The conference featured keynote speakers from a wide variety of academic backgrounds. Long-distance running requires a combination of disciplined training ...
{"is_valid":true,"category":{"Bash":true}}
single
Energy researchers are exploring various pathways for reducing carbon emissions globally. Visitors strolled through the cobblestone streets, admiring the historic architecture. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Policy analysts examined the long-term implication...
{"is_valid":true,"category":{"Makefile":true}}
single
Add comments to make this clearer: provider "aws" { region = "eu-west-1" } resource "aws_instance" "jenkins2" { ami = "ami-785db401" instance_type = "t2.large" iam_instance_profile = "${aws_iam_instance_profile.jenkins.name}" key_name = "${aws_key_pair.jenkins
{"is_valid":true,"category":{"Terraform":true}}
single