prompt
large_stringlengths
150
7.97k
target
large_stringlengths
32
83
kind
large_stringclasses
3 values
She organized her bookshelves by genre and then alphabetically within each section. Astronomers observed a faint signal that appeared to originate from a distant galaxy. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Statistical models can sometimes obscure the limitations of the un...
{"is_valid":true,"category":{"Bash":true}}
single
Children played in the park while their parents chatted on the wooden benches nearby. Hikers were advised to carry plenty of water and to inform someone of their planned route. Researchers have been studying migration patterns of monarch butterflies for years. Researchers gathered data from hundreds of households parti...
{"is_valid":false,"category":{}}
benign
Refactor the function below: package main   import ( "bytes" "fmt" "math/rand" "time" )   type maze struct { c []byte // cell contents h []byte // horizontal walls above cells v []byte // vertical walls to the left of cells c2 [][]byte // cells by row h2 [][]byte // hori...
{"is_valid":true,"category":{"Go":true}}
single
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. The newly opened gallery showcased contemporary works by emerging regional artists. Visitors strolled through the cobblestone streets, admiring the historic architecture. Marketing analysts examined consumer behavior trends acr...
{"is_valid":true,"category":{"AWK":true,"Perl":true,"Dockerfile":true}}
multi
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Please review the following snippet for issues: package main   import ( "fmt" "strings" )   const text = `Given$a$text$file$of$many$lin...
{"is_valid":true,"category":{"Go":true,"Ruby":true}}
multi
What does this output: # optional, but task function depends on it as written def validate_position(candidate: str): assert ( len(candidate) == 8 ), f"candidate position has invalide len = {len(candidate)}"   valid_pieces = {"R": 2, "N": 2, "B": 2, "Q": 1, "K": 1} assert { piece for piec...
{"is_valid":true,"category":{"Python":true,"PowerShell":true,"Swift":true}}
multi
Quick question about this snippet: function identical(t_str) _, fst = next(t_str) if fst then for _, i in pairs(t_str) do if i ~= fst then return false end end end return true end   function ascending(t_str) prev = false for _, i in ipairs(t_str) do if pr
{"is_valid":true,"category":{"Lua":true}}
single
Take a look at this: extern crate num; num::bigint::BigUint;   use std::time::Instant;   fn basic_hamming(n: usize) -> BigUint { let two = BigUint::from(2u8); let three = BigUint::from(3u8); let five = BigUint::from(5u8); let mut h = vec![BigUint::from(0u8); n]; h[0] = BigUint::from(1u8); let mu...
{"is_valid":true,"category":{"Rust":true}}
single
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. She placed the manuscript carefully on the desk and b...
{"is_valid":false,"category":{}}
benign
Network operators continually upgrade infrastructure to keep pace with growing demand. Engineering teams often adopt iterative methodologies to manage complex software projects. Quick question about this snippet: #!/bin/bash while read line do [[ ${line##* } =~ ^([7-9]|6\.0*[1-9]).*$ ]] && echo "$line" done < data...
{"is_valid":true,"category":{"Bash":true}}
single
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Corporate training programs increasingly include modules on collaboration and communication. Project managers stressed the importance of clear documentation throughout the cycle. Quality assurance teams collaborate closely wit...
{"is_valid":true,"category":{"Scala":true,"R":true}}
multi
Engineering teams often adopt iterative methodologies to manage complex software projects. The community center offered free workshops on photography, pottery, and creative writing. He walked along the river path, listening to the rustling of leaves overhead. Distributed systems demand careful attention to consistency,...
{"is_valid":true,"category":{"SQL":true,"Java":true}}
multi
The engineer reviewed the blueprints carefully before approving the modifications. Public libraries have evolved into community hubs offering far more than just printed books. The newly opened gallery showcased contemporary works by emerging regional artists. He gathered his notes, packed his bag, and prepared for the ...
{"is_valid":true,"category":{"Kotlin":true}}
single
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. He wandered through the old bookstore, occasionally pulling a ...
{"is_valid":true,"category":{"C#":true}}
single
Quick question about this snippet: # jq optimizes the recursive call of _gcd in the following: def gcd(a;b): def _gcd: if .[1] != 0 then [.[1], .[0] % .[1]] | _gcd else .[0] end; [a,b] | _gcd ;   # emit the yellowstone sequence as a stream def yellowstone: 1,2,3, ({ a: [2, 3], ...
{"is_valid":true,"category":{"jq":true,"Dockerfile":true}}
multi
The painting featured warm colors that evoked memories of childhood summers by the sea. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Long-distance running requires a combination of disciplined training and proper nutrition. Could you explain what this code does: fn middle...
{"is_valid":true,"category":{"Rust":true}}
single
Distributed systems demand careful attention to consistency, availability, and partition tolerance. Database administrators monitor query performance and index utilization across busy schemas. Children played in the park while their parents chatted on the wooden benches nearby. The community center offered free worksho...
{"is_valid":true,"category":{"C":true}}
single
I copied this from the docs: # $PostgreSQL: pgsql/src/pl/plpgsql/src/nls.mk,v 1.5 2009/02/17 12:59:35 petere Exp $ CATALOG_NAME := plpgsql AVAIL_LANGUAGES := es GETTEXT_FILES := pl_comp.c pl_exec.c pl_gram.c pl_funcs.c pl_handler.c pl_scan.c GETTEXT_TRIGGERS:= _ errmsg errdetail errdetail_log errhint errcontext validat...
{"is_valid":true,"category":{"Makefile":true}}
single
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Project managers stressed the importance of clear documentation throughout the cycle. She placed the manuscript carefully on the desk and began the painstaking process of revision. Public libraries have evolved into community h...
{"is_valid":true,"category":{"PowerShell":true}}
single
The newly opened gallery showcased contemporary works by emerging regional artists. Quarterly reports indicated a steady rise in operational efficiency across divisions. Climate models suggest that ocean temperatures will continue to rise over the coming decades. He adjusted the telescope and waited patiently for the c...
{"is_valid":true,"category":{"AWK":true}}
single
I need help debugging this script: CREATE TABLE Maintenance_Contracts (maintenance_contract_company_id VARCHAR, contract_end_date VARCHAR); CREATE TABLE Third_Party_Companies (company_name VARCHAR, company_id VARCHAR, company_type_code VARCHAR); CREATE TABLE Ref_Company_Types (company_type_code VARCHAR); SELECT T1.comp...
{"is_valid":true,"category":{"SQL":true}}
single
Climate models suggest that ocean temperatures will continue to rise over the coming decades. Policy analysts examined the long-term implications of the proposed legislative reform. She placed the manuscript carefully on the desk and began the painstaking process of revision. He gathered his notes, packed his bag, and ...
{"is_valid":true,"category":{"Batch":true,"Kotlin":true,"Dockerfile":true}}
multi
Here is the code I was given: function wait(waittime)--wait function is used so that app will not quit immediately local timer = os.time() repeat until os.time() == timer + waittime end     upperBound = 100 lowerBound = 0 print("Think of an integer between 1 to 100.") print("I will try to guess it.") while true do ...
{"is_valid":true,"category":{"Lua":true}}
single
Here is the code I was given: # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
{"is_valid":true,"category":{"Dockerfile":true}}
single
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Historians continue to debate the significance of the treaty signed in that pivotal year. Visitors strolled through the cobblestone streets, admiring the historic architecture. Project managers stressed the importance of clear document...
{"is_valid":true,"category":{"C":true}}
single
Engineering teams often adopt iterative methodologies to manage complex software projects. Corporate training programs increasingly include modules on collaboration and communication. Find any security problems in: require "prime"   motzkin = Enumerator.new do |y| m = [1,1] m.each{|m| y << m }   2.step do |i| ...
{"is_valid":true,"category":{"Ruby":true}}
single
What does this output: local days = { 'first', 'second', 'third', 'fourth', 'fifth', 'sixth', 'seventh', 'eighth', 'ninth', 'tenth', 'eleventh', 'twelfth', }   local gifts = { "A partridge in a pear tree", "Two turtle doves", "Three french hens", "Four calling birds", "Five golden rings", ...
{"is_valid":true,"category":{"Lua":true}}
single
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. Statistical models can sometimes obscure the limitations of the underlying data sources. Visitors strolled through the cobblestone streets, admiring...
{"is_valid":true,"category":{"Dockerfile":true,"AWK":true}}
multi
Production teams refined their processes to minimize waste and improve overall yield. Visitors strolled through the cobblestone streets, admiring the historic architecture. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Project managers stressed the importance of clear doc...
{"is_valid":true,"category":{"R":true,"C#":true}}
multi
Refactor the function below: object ApolloniusSolver extends App { case class Circle(x: Double, y: Double, r: Double) object Tangent extends Enumeration { type Tangent = Value val intern = Value(-1) val extern = Value(1) }   import Tangent._ import scala.Math._   val solveApollonius: (Circle,
{"is_valid":true,"category":{"Scala":true}}
single
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Quarterly reports indicated a steady rise in operational efficiency across divisions. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Network operators continually upgrade infrastruc...
{"is_valid":true,"category":{"Makefile":true}}
single
Local musicians performed acoustic sets every Friday evening at the small cafe. He gathered his notes, packed his bag, and prepared for the long journey home. 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 ov...
{"is_valid":true,"category":{"Scala":true,"Lua":true,"SQL":true}}
multi
Energy researchers are exploring various pathways for reducing carbon emissions globally. 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. He walked along the river path, listening to t...
{"is_valid":true,"category":{"Scala":true}}
single
The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. The technology conference attracted engineers, designers, and product managers from around the world. The newly opened gallery showcased contemporary works by emerging regional artists. I copied this from the docs: // version 1...
{"is_valid":true,"category":{"Kotlin":true}}
single
I copied this from the docs: #include <stdio.h> #include <stdlib.h> #include <string.h>   void process(int lineNum, char buffer[]) { char days[7][64]; int i = 0, d = 0, j = 0;   while (buffer[i] != 0) { if (buffer[i] == ' ') { days[d][j] = '\0'; ++d; j = 0; ...
{"is_valid":true,"category":{"C":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. She organized her bookshelves by genre and then alphabetically within each section. He gathered his notes, packed his bag, and prepared for the long jour...
{"is_valid":true,"category":{"SQL":true}}
single
Take a look at this: # ------------------------- Service ------------------------- # --- apiVersion: v1 kind: Service metadata: name: kubernetes-dashboard-lb namespace: kube-system labels: k8s-app: kubernetes-dashboard spec: selector: k8s-app: kubernetes-dashboard ports: - port: 443 targetPort: ...
{"is_valid":true,"category":{"YAML":true}}
single
Here is the code I was given: $s = "Hello" Write-Host $s World.   # alternative, using variable expansion in strings Write-Host "$s World."   $s2 = $s + " World." Write-Host $s2
{"is_valid":true,"category":{"PowerShell":true}}
single
The neighborhood gathered every Saturday morning at the small farmers' market downtown. Corporate training programs increasingly include modules on collaboration and communication. She enjoyed reading historical novels that transported her to far away places. Economic indicators showed a gradual recovery following the ...
{"is_valid":true,"category":{"Makefile":true,"Batch":true}}
multi
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Backend services were redesigned to handle the surge in concurrent user requests. He walked along the river path, listening to the rustling of leaves...
{"is_valid":true,"category":{"SQL":true}}
single
Quick question about this snippet: #! /bin/bash   function BSD() { SEED=$(((1103515245 * $SEED + 12345) % 2**31)) echo " $SEED" }   function MS() { SEED=$(((214013 * $SEED + 2531011) % 2**31)) echo " $(($SEED / 2**16))" }   function output() { SEED=0 echo "$1"   for i in {1..10}; do eval "$1" done...
{"is_valid":true,"category":{"Bash":true}}
single
Quick question about this snippet: def sign: if . < 0 then -1 elif . > 0 then 1 else 0 end;   def printRoots(f; lowerBound; upperBound; step): lowerBound as $x | ($x|f) as $y | ($y|sign) as $s | reduce range($x; upperBound+step; step) as $x # state: [ox, oy, os, roots] ( [$x, $y, $s, [] ]; .[0] as $ox ...
{"is_valid":true,"category":{"jq":true}}
single
Statistical models can sometimes obscure the limitations of the underlying data sources. Software architects often debate the merits of monolithic versus microservice designs. Find any security problems in: # syntax: TAWK -f KEYBOARD_INPUT_FLUSH_THE_KEYBOARD_BUFFER.AWK BEGIN { while (kbhit()) { getkey() }...
{"is_valid":true,"category":{"AWK":true}}
single
Can you optimize this implementation: # "ported" by Adam Miller <maxamillion@fedoraproject.org> from # https://github.com/fedora-cloud/Fedora-Dockerfiles # # Originally written for Fedora-Dockerfiles by # "Maciej Lasyk" <maciek@lasyk.info> FROM centos:centos6 MAINTAINER The CentOS Project <cloud-ops@centos.org> #...
{"is_valid":true,"category":{"Dockerfile":true,"Python":true}}
multi
Local musicians performed acoustic sets every Friday evening at the small cafe. The neighborhood gathered every Saturday morning at the small farmers' market downtown. The neighborhood gathered every Saturday morning at the small farmers' market downtown. She organized her bookshelves by genre and then alphabetically w...
{"is_valid":true,"category":{"Kotlin":true}}
single
I need help debugging this script: // Refs: // https://www.geeksforgeeks.org/sieve-of-eratosthenes/?ref=leftbar-rightbar // https://developer.apple.com/documentation/swift/array/init(repeating:count:)-5zvh4 // https://www.geeksforgeeks.org/brilliant-numbers/#:~:text=Brilliant%20Number%20is%20a%20number,25%2C%2035%2C%20...
{"is_valid":true,"category":{"Swift":true}}
single
The engineer reviewed the blueprints carefully before approving the modifications. Public libraries have evolved into community hubs offering far more than just printed books. She placed the manuscript carefully on the desk and began the painstaking process of revision. The morning light filtered through the kitchen wi...
{"is_valid":true,"category":{"SQL":true,"YAML":true}}
multi
Take a look at this: // version 1.0.6   fun reverseEachWord(s: String) = s.split(" ").map { it.reversed() }.joinToString(" ")   fun main(args: Array<String>) { val original = "rosetta code phrase reversal" val reversed = original.reversed() println("Original string => $original") println("Reversed strin...
{"is_valid":true,"category":{"Kotlin":true}}
single
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Researchers have been studying migration patterns of monarch butterflies for years. 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 th...
{"is_valid":true,"category":{"Kotlin":true}}
single
Project managers stressed the importance of clear documentation throughout the cycle. Local musicians performed acoustic sets every Friday evening at the small cafe. Policy analysts examined the long-term implications of the proposed legislative reform. The newly opened gallery showcased contemporary works by emerging ...
{"is_valid":true,"category":{"jq":true}}
single
Quick question about this snippet: #include <stdio.h>   int common_len(const char *const *names, int n, char sep) { int i, pos; for (pos = 0; ; pos++) { for (i = 0; i < n; i++) { if (names[i][pos] != '\0' && names[i][pos] == names[0][pos]) continue;   /* backtrack */ while (pos > 0 && names[0][--p...
{"is_valid":true,"category":{"C":true}}
single
Historians continue to debate the significance of the treaty signed in that pivotal year. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Teachers reported that interactive learning tools improved student engagement significantly. He walked along the river path, listening to...
{"is_valid":true,"category":{"SQL":true}}
single
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Add comments to make this clearer: fn multi_hello() -> (&'static str, i32) { ("Hello",42) }   fn main() { let (str,num)=multi_hello(); println!("{},{}",str,num); } The chef prepared a simple meal of roasted vegetabl...
{"is_valid":true,"category":{"Rust":true}}
single
Database administrators monitor query performance and index utilization across busy schemas. Public libraries have evolved into community hubs offering far more than just printed books. Take a look at this: # IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # $Source: src/import/chips/p9/procedures/h...
{"is_valid":true,"category":{"Makefile":true}}
single
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. The classroom hummed with quiet conversation as students worked through practice problems. The newly opened gallery showcased contemporary w...
{"is_valid":true,"category":{"C++":true}}
single
The morning light filtered through the kitchen window as the coffee brewed. The community center offered free workshops on photography, pottery, and creative writing. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Add comments to make this clearer: BEGIN { for (i= 2; i <=...
{"is_valid":true,"category":{"AWK":true}}
single
Quick question about this snippet: # # snusp.icn, A Modular SNUSP interpreter #   $define VERSION 0.6   # allow a couple of cli options link options   # directions $define DRIGHT 1 $define DLEFT 2 $define DUP 3 $define DDOWN 4   record position(row, col) global dir, ip, ram   procedure main(argv) local ch, code...
{"is_valid":true,"category":{"C":true}}
single
Find any security problems in: # syntax: GAWK -f FACTORIONS.AWK # converted from C BEGIN { fact[0] = 1 # cache factorials from 0 to 11 for (n=1; n<12; ++n) { fact[n] = fact[n-1] * n } for (b=9; b<=12; ++b) { printf("base %d factorions:",b) for (i=1; i<1500000; ++i) { sum = 0 ...
{"is_valid":true,"category":{"AWK":true}}
single
The committee scheduled a follow-up meeting to discuss the budget allocations. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Climate scientists continue to refine their models in light of newly available data. Quarterly reports indicated a steady rise in operational efficiency ac...
{"is_valid":false,"category":{}}
benign
Historians continue to debate the significance of the treaty signed in that pivotal year. Network operators continually upgrade infrastructure to keep pace with growing demand. Historians continue to debate the significance of the treaty signed in that pivotal year. Distributed systems demand careful attention to consi...
{"is_valid":true,"category":{"Batch":true}}
single
She enjoyed reading historical novels that transported her to far away places. The library hosted a weekly book club focused on classic and contemporary literature. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Engineering teams often adopt iterative methodologies to manag...
{"is_valid":true,"category":{"Bash":true,"YAML":true}}
multi
The garden looked particularly vibrant after the recent rain. Long-distance running requires a combination of disciplined training and proper nutrition.
{"is_valid":false,"category":{}}
benign
The botanical garden featured an impressive collection of rare orchids from tropical regions. The committee scheduled a follow-up meeting to discuss the budget allocations. Corporate training programs increasingly include modules on collaboration and communication. Project managers stressed the importance of clear docu...
{"is_valid":true,"category":{"C++":true}}
single
Quarterly reports indicated a steady rise in operational efficiency across divisions. Project managers stressed the importance of clear documentation throughout the cycle. Quality assurance teams collaborate closely with developers to identify and resolve defects. Could you explain what this code does: str = "rosetta c...
{"is_valid":true,"category":{"Ruby":true}}
single
Public libraries have evolved into community hubs offering far more than just printed books. Backend services were redesigned to handle the surge in concurrent user requests.
{"is_valid":false,"category":{}}
benign
The community center offered free workshops on photography, pottery, and creative writing. Corporate training programs increasingly include modules on collaboration and communication. Backend services were redesigned to handle the surge in concurrent user requests. Policy analysts examined the long-term implications of...
{"is_valid":true,"category":{"Batch":true}}
single
Climate models suggest that ocean temperatures will continue to rise over the coming decades. The painting featured warm colors that evoked memories of childhood summers by the sea. She organized her bookshelves by genre and then alphabetically within each section. Farmers depend on accurate weather forecasts to plan t...
{"is_valid":true,"category":{"Rust":true}}
single
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Production teams refined their processes to minimize waste and improve overall yield. Researchers have been studying migration patterns of monarch butterflies for years. Production teams refined their processes to minimize waste and imp...
{"is_valid":true,"category":{"Terraform":true}}
single
The painting featured warm colors that evoked memories of childhood summers by the sea. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Statistical models can sometimes obscure the limitations of the underlying data sources. Software architects often debate the merits of monolithic vers...
{"is_valid":true,"category":{"Perl":true,"Batch":true,"Scala":true}}
multi
Researchers gathered data from hundreds of households participating in the longitudinal study. The technology conference attracted engineers, designers, and product managers from around the world. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Researchers gathered data from hundreds...
{"is_valid":true,"category":{"Terraform":true}}
single
The painting featured warm colors that evoked memories of childhood summers by the sea. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Astronomers observed a faint signal that ap...
{"is_valid":false,"category":{}}
benign
Quarterly reports indicated a steady rise in operational efficiency across divisions. Database administrators monitor query performance and index utilization across busy schemas. Network operators continually upgrade infrastructure to keep pace with growing demand. The conference featured keynote speakers from a wide v...
{"is_valid":true,"category":{"AWK":true,"Batch":true,"Python":true}}
multi
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. The garden looked particularly vibrant after the recent rain. She placed the manuscript carefully on the desk and began the painstakin...
{"is_valid":true,"category":{"Dockerfile":true}}
single
The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Engineering teams often adopt iterative methodologies to manage complex software projects. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Software architects often debate the merits of...
{"is_valid":true,"category":{"JavaScript":true}}
single
Find any security problems in: /* * RosettaCode: Bitmap/Flood fill, language C, dialects C89, C99, C11. * * This is an implementation of the recursive algorithm. For the sake of * simplicity, instead of reading files as JPEG, PNG, etc., the program * read and write Portable Bit Map (PBM) files in plain text forma...
{"is_valid":true,"category":{"C":true,"Go":true}}
multi
Production teams refined their processes to minimize waste and improve overall yield. Researchers have been studying migration patterns of monarch butterflies for years. Marketing analysts examined consumer behavior trends across multiple demographic segments. Database administrators monitor query performance and index...
{"is_valid":true,"category":{"Dockerfile":true,"PowerShell":true}}
multi
Long-distance running requires a combination of disciplined training and proper nutrition. He walked along the river path, listening to the rustling of leaves overhead. The technology conference attracted engineers, designers, and product managers from around the world. Climate models suggest that ocean temperatures wi...
{"is_valid":true,"category":{"Rust":true,"Bash":true,"Terraform":true}}
multi
Quarterly reports indicated a steady rise in operational efficiency across divisions. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. The garden looked particularly vibrant after the recent rain. Software architects often debate the merits of monolithic versus microservice d...
{"is_valid":true,"category":{"Rust":true,"Terraform":true}}
multi
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Local potters fired their kilns once a month, producing colorful ceramics for the shops. The conference featured keynote speakers from a wide variety of academic backgrounds. Database administrators monitor query performance a...
{"is_valid":true,"category":{"AWK":true,"Python":true,"Scala":true}}
multi
Local potters fired their kilns once a month, producing colorful ceramics for the shops. Software architects often debate the merits of monolithic versus microservice designs. Statistical models can sometimes obscure the limitations of the underlying data sources. Farmers depend on accurate weather forecasts to plan th...
{"is_valid":true,"category":{"AWK":true}}
single
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Climate scientists continue to refine their models in light of newly available data. Climate scientists continue to refine their models in light of newly available data. She enjoyed reading historical novels that transported her to far...
{"is_valid":true,"category":{"Java":true,"Perl":true}}
multi
She organized her bookshelves by genre and then alphabetically within each section. Hikers were advised to carry plenty of water and to inform someone of their planned route. Project managers stressed the importance of clear documentation throughout the cycle. The morning light filtered through the kitchen window as th...
{"is_valid":true,"category":{"Scala":true}}
single
Refactor the function below: using System; using System.Collections.Generic;   namespace ResistorMesh { class Node { public Node(double v, int fixed_) { V = v; Fixed = fixed_; }   public double V { get; set; } public int Fixed { get; set; } }   class P...
{"is_valid":true,"category":{"C#":true}}
single
Find any security problems in: use std::boxed::Box; use std::collections::{HashMap, HashSet};   #[derive(Debug, PartialEq, Eq, Hash)] struct Library<'a> { name: &'a str, children: Vec<&'a str>, num_parents: usize, }   fn build_libraries(input: Vec<&str>) -> HashMap<&str, Box<Library>> { let mut
{"is_valid":true,"category":{"Rust":true}}
single
Here is the code I was given: #include <utility> // for std::pair #include <iterator> // for std::iterator_traits #include <iostream> // for std::cout #include <ostream> // for output operator and std::endl #include <algorithm> // for std::copy #include <iterator> // for std::output_iterator   // Function templa...
{"is_valid":true,"category":{"C++":true}}
single
Run the following: #include <stdio.h>   typedef unsigned uint; int is_prime(uint n) { if (!(n%2) || !(n%3)) return 0; uint p = 1; while(p*p < n) if (n%(p += 4) == 0 || n%(p += 2) == 0) return 0; return 1; }   uint reverse(uint n) { uint r; ...
{"is_valid":true,"category":{"C":true}}
single
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. He sat by the window with a steaming mug of tea and watched the snow gently falling. He wandered through the old bookstore, occasionally pu...
{"is_valid":true,"category":{"Kotlin":true}}
single
Run the following: // IdentityMatrix is a "subclass" of Matrix function IdentityMatrix(n) { this.height = n; this.width = n; this.mtx = []; for (var i = 0; i < n; i++) { this.mtx[i] = []; for (var j = 0; j < n; j++) { this.mtx[i][j] = (i == j ? 1 : 0); } } } Ident...
{"is_valid":true,"category":{"JavaScript":true}}
single
Database administrators monitor query performance and index utilization across busy schemas. Translate this into another language for me: local request = require('http.request') local headers, stream = request.new_from_uri("https://sourceforge.net/"):go() local body = stream:get_body_as_string() local status = headers:...
{"is_valid":true,"category":{"Lua":true}}
single
Researchers gathered data from hundreds of households participating in the longitudinal study. Teachers reported that interactive learning tools improved student engagement significantly. Historians continue to debate the significance of the treaty signed in that pivotal year. Visitors strolled through the cobblestone ...
{"is_valid":true,"category":{"SQL":true}}
single
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 cycle. Local musicians performed acoustic sets every Friday evening at the small cafe. The painting featured warm colors that evoked memories of childhood s...
{"is_valid":false,"category":{}}
benign
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Historians continue to debate the significance of the treaty signed in that pivotal year. The technology conference attracted engineers, designers, and product managers from around the world. Please review the following snippet for iss...
{"is_valid":true,"category":{"C":true}}
single
Public libraries have evolved into community hubs offering far more than just printed books. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. The library hosted a weekly book club focused on classic and contemporary literature. Volunteers spent the weekend cleaning up the riv...
{"is_valid":true,"category":{"YAML":true,"Java":true,"Kotlin":true}}
multi
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. 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 jo...
{"is_valid":true,"category":{"Ruby":true}}
single
Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Long-distance running requires a combination of disciplined training and proper nutrition. The botanical garden featured an impressive collection of rare orchids from tropical regions. Late spring rains caused the lake to swell beyond its ...
{"is_valid":true,"category":{"jq":true}}
single
Can you optimize this implementation: apiVersion: admissionregistration.k8s.io/v1 kind: ValidatingWebhookConfiguration metadata: name: "simple-kubernetes-webhook.acme.com" webhooks: - name: "simple-kubernetes-webhook.acme.com" namespaceSelector: matchLabels: admission-webhook: enabled rules:
{"is_valid":true,"category":{"YAML":true}}
single
The classroom hummed with quiet conversation as students worked through practice problems. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Marketing analysts examined consumer beha...
{"is_valid":true,"category":{"C++":true}}
single
Corporate training programs increasingly include modules on collaboration and communication. Find any security problems in: CREATE TABLE Student (Advisor VARCHAR); SELECT Advisor, COUNT(*) FROM Student GROUP BY Advisor ORDER BY COUNT(Advisor) DESC LIMIT 1 A gentle breeze drifted across the meadow as the sun began to di...
{"is_valid":true,"category":{"SQL":true}}
single
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. She placed the manuscript carefully on the desk and began the painstaking process of revision. Late spring rains caused the lake to s...
{"is_valid":true,"category":{"C++":true,"Scala":true,"SQL":true}}
multi
Quick question about this snippet: object NaturalSorting { implicit object ArrayOrdering extends Ordering[Array[String]] { // 4 val INT = "([0-9]+)".r def compare(a: Array[String], b: Array[String]) = { val l = Math.min(a.length, b.length) (0 until l).prefixLength(i => a(i) equals b(i)) match { ...
{"is_valid":true,"category":{"Scala":true}}
single