prompt
large_stringlengths
150
7.97k
target
large_stringlengths
32
83
kind
large_stringclasses
3 values
Distributed systems demand careful attention to consistency, availability, and partition tolerance. Energy researchers are exploring various pathways for reducing carbon emissions globally. She organized her bookshelves by genre and then alphabetically within each section. The neighborhood gathered every Saturday morni...
{"is_valid":false,"category":{}}
benign
Statistical models can sometimes obscure the limitations of the underlying data sources. Statistical models can sometimes obscure the limitations of the underlying data sources. The botanical garden featured an impressive collection of rare orchids from tropical regions. She placed the manuscript carefully on the desk ...
{"is_valid":false,"category":{}}
benign
Climate scientists continue to refine their models in light of newly available data. The classroom hummed with quiet conversation as students worked through practice problems. Historians continue to debate the significance of the treaty signed in that pivotal year. The engineer reviewed the blueprints carefully before ...
{"is_valid":true,"category":{"Perl":true}}
single
Corporate training programs increasingly include modules on collaboration and communication. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Production teams refined their processes to minimize waste and improve overall yield. She enjoyed reading historical novels that trans...
{"is_valid":true,"category":{"JavaScript":true}}
single
She enjoyed reading historical novels that transported her to far away places. Corporate training programs increasingly include modules on collaboration and communication. Project managers stressed the importance of clear documentation throughout the cycle. Network operators continually upgrade infrastructure to keep p...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Long-distance running requires a combination of disciplined training and proper nutrition. The morning light filtered through the kitchen window as the coffee brewed. The committee scheduled a follow-up meeting to discuss the budget allocations. The committee scheduled a follow-up meeting to discuss the budget allocati...
{"is_valid":true,"category":{"Lua":true}}
single
Run the following: fun sameDigits(n: Int, b: Int): Boolean { var n2 = n val f = n % b while (true) { n2 /= b if (n2 > 0) { if (n2 % b != f) { return false } } else { break } } return true }   fun
{"is_valid":true,"category":{"Kotlin":true}}
single
Climate scientists continue to refine their models in light of newly available data. Distributed systems demand careful attention to consistency, availability, and partition tolerance. She enjoyed reading historical novels that transported her to far away places. Statistical models can sometimes obscure the limitations...
{"is_valid":false,"category":{}}
benign
The committee scheduled a follow-up meeting to discuss the budget allocations. Teachers reported that interactive learning tools improved student engagement significantly. He sat by the window with a steaming mug of tea and watched the snow gently falling. Researchers gathered data from hundreds of households participa...
{"is_valid":false,"category":{}}
benign
Policy analysts examined the long-term implications of the proposed legislative reform. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Astronomers observed a faint signal that appeared to originate from a distant galaxy. The technology conference attracted engineers,...
{"is_valid":true,"category":{"SQL":true}}
single
Quality assurance teams collaborate closely with developers to identify and resolve defects. Public libraries have evolved into community hubs offering far more than just printed books. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Historians continue to debate the significance o...
{"is_valid":true,"category":{"Makefile":true}}
single
Translate this into another language for me: #include <fstream> #include <string> #include <iostream>   int main( int argc , char** argv ) { int linecount = 0 ; std::string line ; std::ifstream infile( argv[ 1 ] ) ; // input file stream if ( infile ) { while ( getline( infile , line ) ) { std::cou...
{"is_valid":true,"category":{"C++":true}}
single
I copied this from the docs: # 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 (th...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Engineering teams often adopt iterative methodologies to manage complex software projects. Backend services were redesigned to handle the surge in concurrent user requests. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Public libraries have evolved into community hubs offe...
{"is_valid":true,"category":{"R":true}}
single
Find any security problems in: fn sedol(input: &str) -> Option<String> { let weights = vec![1, 3, 1, 7, 3, 9, 1]; let valid_chars = "0123456789BCDFGHJKLMNPQRSTVWXYZ";   if input.len() != 6 { return None; }   // could be done by regex if needed for c in input.chars() { if !valid_c...
{"is_valid":true,"category":{"Rust":true}}
single
The community center offered free workshops on photography, pottery, and creative writing. Climate scientists continue to refine their models in light of newly available data. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Modern microprocessors rely on pipelining and out-of-order exec...
{"is_valid":true,"category":{"YAML":true,"Swift":true}}
multi
Statistical models can sometimes obscure the limitations of the underlying data sources. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Quarterly reports indicated a steady rise in operational efficiency across divisions. Software architects often debate the merits of mono...
{"is_valid":false,"category":{}}
benign
Find any security problems in: def van_eck(): n, seen, val = 0, {}, 0 while True: yield val last = {val: n} val = n - seen.get(val, n) seen.update(last) n += 1 #%% if __name__ == '__main__': print("Van Eck: first 10 terms: ", list(islice(van_eck(), 10)))
{"is_valid":true,"category":{"Python":true}}
single
Network operators continually upgrade infrastructure to keep pace with growing demand. The morning light filtered through the kitchen window as the coffee brewed. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Modern microprocessors rely on pipelining and out-of-order execution ...
{"is_valid":true,"category":{"Bash":true}}
single
I copied this from the docs: function mult(strNum1,strNum2){   var a1 = strNum1.split("").reverse(); var a2 = strNum2.toString().split("").reverse(); var aResult = new Array;   for ( var iterNum1 = 0; iterNum1 < a1.length; iterNum1++ ) { for ( var iterNum2 = 0; iterNum2 < a2.length; iterNum2++ )...
{"is_valid":true,"category":{"JavaScript":true,"Bash":true,"R":true}}
multi
Visitors strolled through the cobblestone streets, admiring the historic architecture. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Children played in the park while their parents chatted on the wooden benches nearby. Public libraries have evolved into community hubs offerin...
{"is_valid":true,"category":{"JavaScript":true}}
single
Please review the following snippet for issues: var s = document.createElement('script'); s.type = 'application/javascript';   // path to the desired file s.src = 'http://code.jquery.com/jquery-1.6.2.js'; document.body.appendChild(s); And separately, here's a related piece: import java.util.ArrayList;   public class H...
{"is_valid":true,"category":{"JavaScript":true,"Java":true,"jq":true}}
multi
Statistical models can sometimes obscure the limitations of the underlying data sources. Refactor the function below: # EULER.PS1 $max = 250   $powers = New-Object System.Collections.ArrayList for ($i = 0; $i -lt $max; $i++) { $tmp = $powers.Add([Math]::Pow($i, 5)) }   for ($x0 = 1; $x0 -lt $max; $x0++) { for ($x...
{"is_valid":true,"category":{"PowerShell":true}}
single
Add comments to make this clearer: // version 1.2.10   import java.awt.* import java.awt.event.* import java.awt.image.* import java.util.Random import javax.swing.*   class ImageNoise { var framecount = 0 var fps = 0 lateinit var image: BufferedImage val kernel: Kernel lateinit var cop: ConvolveOp ...
{"is_valid":true,"category":{"Kotlin":true}}
single
Researchers have been studying migration patterns of monarch butterflies for years. Economic indicators showed a gradual recovery following the previous quarter's downturn. Can you optimize this implementation: CREATE TABLE Accounts (customer_id VARCHAR); CREATE TABLE Customers (customer_id VARCHAR, customer_first_name...
{"is_valid":true,"category":{"SQL":true}}
single
Software architects often debate the merits of monolithic versus microservice designs. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Database administrators monitor query performance and index utiliz...
{"is_valid":false,"category":{}}
benign
Teachers reported that interactive learning tools improved student engagement significantly. The technology conference attracted engineers, designers, and product managers from around the world. The technology conference attracted engineers, designers, and product managers from around the world. Visitors strolled throu...
{"is_valid":true,"category":{"JavaScript":true,"Rust":true}}
multi
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. The morning light filtered through the kitchen window as the coffee brewed. Climate scientists continue to refine their models in light o...
{"is_valid":true,"category":{"PowerShell":true}}
single
The painting featured warm colors that evoked memories of childhood summers by the sea. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Historians continue to debate the significance of the treaty signed in that pivotal year. The technology conference attracted engineers, designers...
{"is_valid":true,"category":{"C++":true}}
single
Run the following: #include <iostream> #include <optional> #include <vector> #include <string> #include <sstream> #include <boost/multiprecision/cpp_int.hpp>   typedef boost::multiprecision::cpp_int integer;   struct fraction { fraction(const integer& n, const integer& d) : numerator(n), denominator(d) {} integ...
{"is_valid":true,"category":{"C++":true}}
single
Engineering teams often adopt iterative methodologies to manage complex software projects. 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. Distributed systems demand careful attention...
{"is_valid":true,"category":{"Perl":true}}
single
Project managers stressed the importance of clear documentation throughout the cycle. Researchers gathered data from hundreds of households participating in the longitudinal study. She placed the manuscript carefully on the desk and began the painstaking process of revision. Distributed systems demand careful attention...
{"is_valid":true,"category":{"Python":true}}
single
Late spring rains caused the lake to swell beyond its usual seasonal boundaries. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. The engineer reviewed the blueprints carefully before approving t...
{"is_valid":true,"category":{"C#":true}}
single
What does this output: ::Batch Files are terrifying when it comes to string processing. ::But well, a decent implementation! @echo off REM Below is the CSV data to be converted. REM Exactly three colons must be put before the actual line. :::Character,Speech :::The multitude,The messiah! Show us the
{"is_valid":true,"category":{"Batch":true}}
single
Database administrators monitor query performance and index utilization across busy schemas. Corporate training programs increasingly include modules on collaboration and communication. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. The chef prepared a simple meal of roasted vegeta...
{"is_valid":true,"category":{"Ruby":true}}
single
Please review the following snippet for issues: # Generate a stream of all the permutations of the input array def permutations: # Given an array as input, generate a stream by inserting $x at different positions def insert($x): range (0; length + 1) as $pos | .[0:$pos] + [$x] + .[$pos:];   if length <=...
{"is_valid":true,"category":{"jq":true}}
single
Statistical models can sometimes obscure the limitations of the underlying data sources. Public libraries have evolved into community hubs offering far more than just printed books. Project managers stressed the importance of clear documentation throughout the cycle. Children played in the park while their parents chat...
{"is_valid":true,"category":{"R":true,"jq":true,"YAML":true}}
multi
Hikers were advised to carry plenty of water and to inform someone of their planned route. Policy analysts examined the long-term implications of the proposed legislative reform. Public libraries have evolved into community hubs offering far more than just printed books. Climate models suggest that ocean temperatures w...
{"is_valid":true,"category":{"Batch":true}}
single
I copied this from the docs: sub urldecode { my $s = shift; $s =~ tr/\+/ /; $s =~ s/\%([A-Fa-f0-9]{2})/pack('C', hex($1))/eg; return $s; }   print urldecode('http%3A%2F%2Ffoo+bar%2F')."\n";
{"is_valid":true,"category":{"Perl":true}}
single
Statistical models can sometimes obscure the limitations of the underlying data sources. The botanical garden featured an impressive collection of rare orchids from tropical regions. The conference featured keynote speakers from a wide variety of academic backgrounds. Researchers have been studying migration patterns o...
{"is_valid":true,"category":{"Scala":true}}
single
Historians continue to debate the significance of the treaty signed in that pivotal year. Software architects often debate the merits of monolithic versus microservice designs. I need help debugging this script: >>> def happy(n): past = set() while n != 1: n = sum(int(i)**2 for i in str(n)) i...
{"is_valid":true,"category":{"Python":true}}
single
He walked along the river path, listening to the rustling of leaves overhead. 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. Climate models suggest that ocean temperatures will conti...
{"is_valid":true,"category":{"Makefile":true}}
single
Teachers reported that interactive learning tools improved student engagement significantly. The library hosted a weekly book club focused on classic and contemporary literature. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Public libraries have evolved into community hubs offerin...
{"is_valid":false,"category":{}}
benign
Corporate training programs increasingly include modules on collaboration and communication. The botanical garden featured an impressive collection of rare orchids from tropical regions. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. The engineer reviewed the blueprints car...
{"is_valid":false,"category":{}}
benign
Please review the following snippet for issues: package main   import ( "fmt" "log" "math" "rcu" )   var limit = int(math.Sqrt(1e9)) var primes = rcu.Primes(limit) var memoPhi = make(map[int]int)   func cantorPair(x, y int) int { if x < 0 || y < 0 { log.Fatal("Arguments must be non-negative ...
{"is_valid":true,"category":{"Go":true}}
single
Take a look at this: 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
{"is_valid":true,"category":{"Batch":true}}
single
He gathered his notes, packed his bag, and prepared for the long journey home. Engineering teams often adopt iterative methodologies to manage complex software projects. Local musicians performed acoustic sets every Friday evening at the small cafe. Astronomers observed a faint signal that appeared to originate from a ...
{"is_valid":true,"category":{"C++":true}}
single
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. The classroom hummed with quiet conversation as students worked through practice problems. Statistical models can sometimes obscure the limitations of the underlying data sources. Here is the code I was given: # Copyright 2017 ...
{"is_valid":true,"category":{"YAML":true}}
single
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. She enjoyed reading historical novels that transported her to far away places. Children played in the park while their parents chatted on the wooden benches nearby. Researchers gathered data from hundreds of households participating in ...
{"is_valid":true,"category":{"PowerShell":true}}
single
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Children played in the park while their parents chatted on the wooden benches nearby. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Researchers have been studying migration patterns of...
{"is_valid":true,"category":{"Swift":true}}
single
Could you explain what this code does: @echo off :: Pick 2 random, non-zero, 2-digit numbers to send to :_main set /a param1=%random% %% 98 + 1 set /a param2=%random% %% 98 + 1 call:_main %param1% %param2% pause>nul exit /b :: This is the main function that outputs the answer in the form of "%1 * %2 = %answer%" :_mai
{"is_valid":true,"category":{"Batch":true}}
single
Researchers gathered data from hundreds of households participating in the longitudinal study. I copied this from the docs: sub mmult { our @a; local *a = shift; our @b; local *b = shift; my @p = []; my $rows = @a; my $cols = @{ $b[0] }; my $n = @b - 1; for (my $r = 0 ; $r < $rows ; ++$r) { fo...
{"is_valid":true,"category":{"Perl":true}}
single
Visitors strolled through the cobblestone streets, admiring the historic architecture. Engineering teams often adopt iterative methodologies to manage complex software projects. Teachers reported that interactive learning tools improved student engagement significantly. The committee scheduled a follow-up meeting to di...
{"is_valid":false,"category":{}}
benign
The technology conference attracted engineers, designers, and product managers from around the world. The committee scheduled a follow-up meeting to discuss the budget allocations. Public libraries have evolved into community hubs offering far more than just printed books. The technology conference attracted engineers,...
{"is_valid":true,"category":{"Go":true}}
single
Visitors strolled through the cobblestone streets, admiring the historic architecture. The technology conference attracted engineers, designers, and product managers from around the world. He sat by the window with a steaming mug of tea and watched the snow gently falling. The bakery on the corner was famous for its so...
{"is_valid":true,"category":{"Ruby":true}}
single
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Network operators continually upgrade infrastructure to keep pace with growing demand. The painting featured warm colors that evoked memories of childhood summers by the sea. Database administrators monitor query performance an...
{"is_valid":true,"category":{"Scala":true,"Python":true}}
multi
The engineer reviewed the blueprints carefully before approving the modifications. Climate scientists continue to refine their models in light of newly available data. Researchers have been studying migration patterns of monarch butterflies for years. The committee scheduled a follow-up meeting to discuss the budget al...
{"is_valid":true,"category":{"JavaScript":true}}
single
She enjoyed reading historical novels that transported her to far away places. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. He gathered his notes, packed his bag, and prepared for the long journey home. Distributed systems demand careful attention to consistency, availability, and...
{"is_valid":true,"category":{"SQL":true}}
single
Astronomers observed a faint signal that appeared to originate from a distant galaxy. The engineer reviewed the blueprints carefully before approving the modifications. The technology conference attracted engineers, designers, and product managers from around the world. Climate models suggest that ocean temperatures wi...
{"is_valid":true,"category":{"PowerShell":true}}
single
Please review the following snippet for issues: place_kings <- function(brd){ ### # Function that puts the two kings on the board # and makes sure that they are not adjacent ### while (TRUE) { # generate positions for white and black kings rank_white <- sample(1:8, 1) ; file_white <- sample(1:8, 1) ...
{"is_valid":true,"category":{"R":true}}
single
The engineer reviewed the blueprints carefully before approving the modifications. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Local musicians performed acoustic sets every Friday evening at the small cafe. The neighborhood gathered every Saturday morning at the small farmers' ...
{"is_valid":true,"category":{"R":true}}
single
Here is the code I was given: apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: minimal-ingress annotations: kubernetes.io/ingress.class: nginx spec: rules: - http: paths: - path: / pathType: Prefix backend: service: name: web port: ...
{"is_valid":true,"category":{"YAML":true}}
single
Teachers reported that interactive learning tools improved student engagement significantly. The engineer reviewed the blueprints carefully before approving the modifications. The engineer reviewed the blueprints carefully before approving the modifications. Database administrators monitor query performance and index u...
{"is_valid":true,"category":{"C++":true,"Lua":true}}
multi
He walked along the river path, listening to the rustling of leaves overhead. The garden looked particularly vibrant after the recent rain. Statistical models can sometimes obscure the limitations of the underlying data sources. Production teams refined their processes to minimize waste and improve overall yield. The n...
{"is_valid":true,"category":{"C#":true}}
single
I copied this from the docs: function fun($n){ $res = 0 if($n -gt 0) { 1..$n | foreach{ $a, $b = $_, ($n+$_) $res += $a + $b }   } $res } "$((Measure-Command {fun 10000}).TotalSeconds) Seconds"
{"is_valid":true,"category":{"PowerShell":true}}
single
Network operators continually upgrade infrastructure to keep pace with growing demand. He walked along the river path, listening to the rustling of leaves overhead. Find any security problems in: $ awk 'func max(a){for(i in a)if(a[i]>r)r=a[i];return r}BEGIN{a[0]=42;a[1]=33;a[2]=21;print max(a)}' 42 We also have this o...
{"is_valid":true,"category":{"AWK":true,"Rust":true}}
multi
Quick question about this snippet: CREATE TABLE documents (document_type_code VARCHAR); SELECT document_type_code FROM documents GROUP BY document_type_code HAVING COUNT(*) > 4
{"is_valid":true,"category":{"SQL":true}}
single
Marketing analysts examined consumer behavior trends across multiple demographic segments. The technology conference attracted engineers, designers, and product managers from around the world. Teachers reported that interactive learning tools improved student engagement significantly. Quarterly reports indicated a stea...
{"is_valid":true,"category":{"AWK":true}}
single
Could you explain what this code does: #include <stdbool.h> #include <stdio.h> #include <stdlib.h>   #define LUCKY_SIZE 60000 int luckyOdd[LUCKY_SIZE]; int luckyEven[LUCKY_SIZE];   void compactLucky(int luckyArray[]) { int i, j, k;   for (i = 0; i < LUCKY_SIZE; i++) { if (luckyArray[i] == 0) { ...
{"is_valid":true,"category":{"C":true}}
single
She organized her bookshelves by genre and then alphabetically within each section. Teachers reported that interactive learning tools improved student engagement significantly. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Late spring rains caused the lake to swell beyond...
{"is_valid":true,"category":{"PowerShell":true}}
single
Could you explain what this code does: // version 1.0.6   import java.net.URL import java.io.InputStreamReader import java.io.BufferedReader   fun isPlausible(n1: Int, n2: Int) = n1 > 2 * n2   fun printResults(source: String, counts: IntArray) { println("Results for $source") println(" i before e except after ...
{"is_valid":true,"category":{"Kotlin":true}}
single
Project managers stressed the importance of clear documentation throughout the cycle. Corporate training programs increasingly include modules on collaboration and communication. Network operators continually upgrade infrastructure to keep pace with growing demand. Engineering teams often adopt iterative methodologies ...
{"is_valid":true,"category":{"Lua":true}}
single
Refactor the function below: #include <stdio.h> #include <stdlib.h>   #define TRUE 1 #define FALSE 0   typedef int bool;   int next_in_cycle(int *c, int len, int index) { return c[index % len]; }   void kolakoski(int *c, int *s, int clen, int slen) { int i = 0, j, k = 0; while (TRUE) { s[i] = next_i...
{"is_valid":true,"category":{"C":true}}
single
Take a look at this: object RadixSort extends App { def sort(toBeSort: Array[Int]): Array[Int] = { // Loop for every bit in the integers var arr = toBeSort for (shift <- Integer.SIZE - 1 until -1 by -1) { // The array to put the partially sorted array into val tmp = new Array[Int](arr
{"is_valid":true,"category":{"Scala":true}}
single
What does this output: # LZW compression/decompression for strings def lzw_compress: def decode: [.] | implode; # Build the dictionary: 256 as $dictSize | (reduce range(0; $dictSize) as $i ({}; .[ $i | decode ] = $i)) as $dictionary | reduce explode[] as $i ( [$dictionary, $dictSize, ""
{"is_valid":true,"category":{"jq":true}}
single
Production teams refined their processes to minimize waste and improve overall yield. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Historians continue to debate the significance of the treaty signed in that pivotal year. Run the following: Z=1 while (( Z<=10 )); do...
{"is_valid":true,"category":{"Bash":true}}
single
The engineer reviewed the blueprints carefully before approving the modifications. Refactor the function below: #!/bin/sh <"$1" tr -cs A-Za-z '\n' | tr A-Z a-z | LC_ALL=C sort | uniq -c | sort -rn | head -n "$2"
{"is_valid":true,"category":{"Bash":true}}
single
Refactor the function below: #include<stdlib.h> #include<stdio.h> #include<time.h>   typedef struct genome{ char base; struct genome *next; }genome;   typedef struct{ char mutation; int position; }genomeChange;   typedef struct{ int adenineCount,thymineCount,cytosineCount,guanineCount; }b
{"is_valid":true,"category":{"C":true}}
single
Historians continue to debate the significance of the treaty signed in that pivotal year. Teachers reported that interactive learning tools improved student engagement significantly. The newly opened gallery showcased contemporary works by emerging regional artists. Software architects often debate the merits of monoli...
{"is_valid":true,"category":{"R":true}}
single
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Climate scientists continue to refine their models in light of newly available data. The garden looked particularly vibrant after the ...
{"is_valid":false,"category":{}}
benign
Can you optimize this implementation: import BigInt import Foundation   extension BinaryInteger { @inlinable public var isSquare: Bool { var x = self / 2 var seen = Set([x])   while x * x != self { x = (x + (self / x)) / 2   if seen.contains(x) { return false }   seen.ins...
{"is_valid":true,"category":{"Swift":true}}
single
Production teams refined their processes to minimize waste and improve overall yield. Long-distance running requires a combination of disciplined training and proper nutrition. Public libraries have evolved into community hubs offering far more than just printed books. Volunteers spent the weekend cleaning up the river...
{"is_valid":true,"category":{"Swift":true,"Batch":true}}
multi
Economic indicators showed a gradual recovery following the previous quarter's downturn. Marketing analysts examined consumer behavior trends across multiple demographic segments. Historians continue to debate the significance of the treaty signed in that pivotal year. Public libraries have evolved into community hubs ...
{"is_valid":true,"category":{"Scala":true,"C#":true}}
multi
Please review the following snippet for issues: # syntax: GAWK -f CUSIP.AWK BEGIN { n = split("037833100,17275R102,38259P508,594918104,68389X106,68389X105",arr,",") for (i=1; i<=n; i++) { printf("%9s %s\n",arr[i],cusip(arr[i])) } exit(0) } function cusip(n, c,i,sum,v,x) { # returns: 1=OK, 0=NG, -...
{"is_valid":true,"category":{"AWK":true,"Java":true}}
multi
The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. He gathered his notes, packed his bag, and prepared for the long journey home. Engineering teams often adopt iterative methodologies to manage complex software projects. The engineer reviewed the blueprints carefully before app...
{"is_valid":true,"category":{"Java":true,"JavaScript":true}}
multi
The garden looked particularly vibrant after the recent rain. Climate scientists continue to refine their models in light of newly available data. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Distributed systems demand careful attention to consistency, availability, and p...
{"is_valid":true,"category":{"Scala":true}}
single
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Quick question about this snippet: printf "Enter a time in seconds to sleep: " read seconds echo "Sleeping..." sleep "$seconds" echo "Awake!" Historians continue to debate the significance of the treaty signed in that pivotal y...
{"is_valid":true,"category":{"Bash":true}}
single
What does this output: #include <cstdint> #include <iomanip> #include <iostream>   bool is_prime(uint64_t n) { if (n < 2) return false; if (n % 2 == 0) return n == 2; if (n % 3 == 0) return n == 3; for (uint64_t p = 5; p * p <= n; p += 4) { if (n % p == 0
{"is_valid":true,"category":{"C++":true}}
single
Historians continue to debate the significance of the treaty signed in that pivotal year. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Visitors strolled through the cobblestone s...
{"is_valid":true,"category":{"Bash":true}}
single
She enjoyed reading historical novels that transported her to far away places. Add comments to make this clearer: --- apiVersion: apps/v1 kind: Deployment metadata: name: api-server spec: selector: matchLabels: name: api-server template: metadata: labels: name: api-server spec: ...
{"is_valid":true,"category":{"YAML":true}}
single
Refactor the function below: object MagicSquareDoublyEven extends App { private val n = 8   private def magicSquareDoublyEven(n: Int): Array[Array[Int]] = { require(n >= 4 || n % 4 == 0, "Base must be a positive multiple of 4.")   // pattern of count-up vs count-down zones val (bits, mult, result, size)...
{"is_valid":true,"category":{"Scala":true}}
single
Climate scientists continue to refine their models in light of newly available data. Please review the following snippet for issues: # EULER.PS1 $max = 250   $powers = New-Object System.Collections.ArrayList for ($i = 0; $i -lt $max; $i++) { $tmp = $powers.Add([Math]::Pow($i, 5)) }   for ($x0 = 1; $x0 -lt $max; $x0...
{"is_valid":true,"category":{"PowerShell":true}}
single
The painting featured warm colors that evoked memories of childhood summers by the sea. Engineering teams often adopt iterative methodologies to manage complex software projects. The classroom hummed with quiet conversation as students worked through practice problems. Project managers stressed the importance of clear ...
{"is_valid":false,"category":{}}
benign
Quick question about this snippet: CREATE TABLE election (Party VARCHAR, Committee VARCHAR); CREATE TABLE party (Party VARCHAR, Party_ID VARCHAR); SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.Committee = "Appropriations" INTERSECT SELECT T2.Party FROM election AS T1 JOIN
{"is_valid":true,"category":{"SQL":true}}
single
Production teams refined their processes to minimize waste and improve overall yield. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. He sat by the window with a steaming mug of tea and watched the snow gently falling. The library hosted a weekly book club focused on classic and contemp...
{"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 classroom hummed with quiet conversation as students worked through practice problems. The newly opened gallery showcased contemporary works by emergi...
{"is_valid":true,"category":{"Scala":true,"SQL":true}}
multi
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Project managers stressed the importance of clear documentation throughout the cycle. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. The bakery on the corner was famous for its sourdough loa...
{"is_valid":true,"category":{"Lua":true}}
single
The neighborhood gathered every Saturday morning at the small farmers' market downtown. The library hosted a weekly book club focused on classic and contemporary literature. The painting featured warm colors that evoked memories of childhood summers by the sea. Backend services were redesigned to handle the surge in co...
{"is_valid":true,"category":{"C":true,"Rust":true}}
multi
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. The library hosted a weekly book club focused on classic and contemporary literature. Production teams refined their processes to minimize...
{"is_valid":true,"category":{"Swift":true}}
single
Visitors strolled through the cobblestone streets, admiring the historic architecture. Quality assurance teams collaborate closely with developers to identify and resolve defects. Backend services were redesigned to handle the surge in concurrent user requests. Production teams refined their processes to minimize waste...
{"is_valid":true,"category":{"C++":true}}
single