prompt
large_stringlengths
150
7.97k
target
large_stringlengths
32
83
kind
large_stringclasses
3 values
The garden looked particularly vibrant after the recent rain. Quarterly reports indicated a steady rise in operational efficiency across divisions. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. He walked along the river path, listening to the rustling of leaves overhead. The ch...
{"is_valid":true,"category":{"Kotlin":true,"Scala":true}}
multi
Please review the following snippet for issues: use strict; use utf8; binmode STDOUT, ":utf8";   sub auto_abbreviate { my($string) = @_; my @words = split ' ', $string; my $max = 0; return '' unless @words; map { $max = length($_) if length($_) > $max } @words; for $i (1..$max) { my %see...
{"is_valid":true,"category":{"Perl":true}}
single
Quality assurance teams collaborate closely with developers to identify and resolve defects. Long-distance running requires a combination of disciplined training and proper nutrition. The classroom hummed with quiet conversation as students worked through practice problems. She organized her bookshelves by genre and th...
{"is_valid":true,"category":{"Python":true}}
single
Software architects often debate the merits of monolithic versus microservice designs. Can you optimize this implementation: puts <<EOS ---------- Ice and Fire ------------   fire, in end will world the say Some ice. in say Some desire of tasted I've what From fire. favor who those with hold I   ... elided paragraph la...
{"is_valid":true,"category":{"Ruby":true}}
single
She placed the manuscript carefully on the desk and began the painstaking process of revision. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. The chef prepared a simple meal of roasted vegetabl...
{"is_valid":true,"category":{"C":true}}
single
The conference featured keynote speakers from a wide variety of academic backgrounds. Hikers were advised to carry plenty of water and to inform someone of their planned route. Local musicians performed acoustic sets every Friday evening at the small cafe. Statistical models can sometimes obscure the limitations of the...
{"is_valid":true,"category":{"R":true,"Python":true,"PowerShell":true}}
multi
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Researchers have been studying migration patterns of monarch butterflies for years. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Database administrators monitor query performance ...
{"is_valid":true,"category":{"JavaScript":true}}
single
The garden looked particularly vibrant after the recent rain. 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. Corporate training programs increasingly include modules on collaboration and commun...
{"is_valid":true,"category":{"Makefile":true}}
single
Can you optimize this implementation: @echo off ::set "var" as a blank string. set var= ::check if "var" is a blank string. if not defined var echo Var is a blank string. ::Alternatively, if %var%@ equ @ echo Var is a blank string. ::check if "var" is not a blank string. if defined var echo Var is defined. ::Alterna...
{"is_valid":true,"category":{"Batch":true}}
single
Database administrators monitor query performance and index utilization across busy schemas. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Translate this into another language for me: typeset -T Summation_t=( integer sum   # the constructor function create { ...
{"is_valid":true,"category":{"Bash":true}}
single
Take a look at this: $PROGRAM = '\'   MY @START_DOW = (3, 6, 6, 2, 4, 0, 2, 5, 1, 3, 6, 1); MY @DAYS = (31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);   MY @MONTHS; FOREACH MY $M (0 .. 11) { FOREACH MY $R (0 .. 5) { $MONTHS[$M][$R] = JOIN " ", MAP { $_ < 1 || $_ >...
{"is_valid":true,"category":{"Perl":true}}
single
I need help debugging this script: math.randomseed(os.time())   local function shuffle(t) for i = #t, 2, -1 do local j = math.random(i) t[i], t[j] = t[j], t[i] end end   local function bestshuffle(s, r) local order, shufl, count = {}, {}, 0 for ch in s:gmatch(".") do order[#order+1], shufl[#shufl+1] = c...
{"is_valid":true,"category":{"Lua":true}}
single
She enjoyed reading historical novels that transported her to far away places. The painting featured warm colors that evoked memories of childhood summers by the sea. Network operators continually upgrade infrastructure to keep pace with growing demand. Historians continue to debate the significance of the treaty signe...
{"is_valid":true,"category":{"Python":true,"PowerShell":true}}
multi
Here is the code I was given: # Input: an array of strings # Output: a stream of arrays def anagrams: reduce .[] as $word ( {table: {}, max: 0}; # state ($word | explode | sort | implode) as $hash | .table[$hash] += [ $word ] | .max = ([ .max, ( .table[$hash] | length) ] | max ) ) | .t
{"is_valid":true,"category":{"jq":true}}
single
Distributed systems demand careful attention to consistency, availability, and partition tolerance. Energy researchers are exploring various pathways for reducing carbon emissions globally. The garden looked particularly vibrant after the recent rain. Astronomers observed a faint signal that appeared to originate from ...
{"is_valid":true,"category":{"Batch":true,"Python":true}}
multi
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Policy analysts examined the long-term implications of the proposed legislative reform. Distributed systems demand careful attention to consis...
{"is_valid":false,"category":{}}
benign
Engineering teams often adopt iterative methodologies to manage complex software projects. He walked along the river path, listening to the rustling of leaves overhead. Project managers stressed the importance of clear documentation throughout the cycle. Public libraries have evolved into community hubs offering far mo...
{"is_valid":true,"category":{"YAML":true}}
single
Translate this into another language for me: N = 13   def method1(N=N): squares = [x**2 for x in range(0, N+1)] sqrset = set(squares) tri90, tri60, tri120 = (set() for _ in range(3)) for a in range(1, N+1): a2 = squares[a] for b in range(1, a + 1): b2 = squares[b] ...
{"is_valid":true,"category":{"Python":true}}
single
The morning light filtered through the kitchen window as the coffee brewed. She organized her bookshelves by genre and then alphabetically within each section. The committee scheduled a follow-up meeting to discuss the budget allocations. Economic indicators showed a gradual recovery following the previous quarter's do...
{"is_valid":true,"category":{"Ruby":true}}
single
Local musicians performed acoustic sets every Friday evening at the small cafe. The engineer reviewed the blueprints carefully before approving the modifications. Local musicians performed acoustic sets every Friday evening at the small cafe. Distributed systems demand careful attention to consistency, availability, an...
{"is_valid":true,"category":{"Batch":true}}
single
Add comments to make this clearer: from pprint import pprint as pp   class Template(): def __init__(self, structure): self.structure = structure self.used_payloads, self.missed_payloads = [], []   def inject_payload(self, id2data):   def _inject_payload(substruct, i2d, used, missed): ...
{"is_valid":true,"category":{"Python":true,"SQL":true,"C++":true}}
multi
Here is the code I was given: #include <stdio.h> #include <stdlib.h> #include <ctype.h>   /* BNFesque rangelist := (range | number) [',' rangelist] range := number '-' number */   int get_list(const char *, char **); int get_rnge(const char *, char **);   /* parser only parses; what to do with parsed items is up to *...
{"is_valid":true,"category":{"C":true}}
single
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. The committee scheduled a follow-up meeting to discuss the budget allocations. Teachers reported that interactive learning tools impr...
{"is_valid":true,"category":{"Kotlin":true,"C#":true}}
multi
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. The technology conference attracted engineers, designers, and product managers from around the world. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. The community center offered fre...
{"is_valid":true,"category":{"jq":true}}
single
The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Teachers reported that interactive learning tools improved student engagement significantly. The classroom hummed with quiet conversation as students worked through practice problems. The library hosted a weekly book club focus...
{"is_valid":true,"category":{"Lua":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. Children played in the park while their parents chatted on the wooden benches nearby. She enjoyed reading historical novels that transported he...
{"is_valid":true,"category":{"jq":true}}
single
The morning light filtered through the kitchen window as the coffee brewed. She enjoyed reading historical novels that transported her to far away places. Add comments to make this clearer: $d = [int] (Read-Host Duration in seconds) Write-Host Sleeping ... Start-Sleep $d Write-Host Awake! Alongside it, this: #include ...
{"is_valid":true,"category":{"PowerShell":true,"C":true}}
multi
The neighborhood gathered every Saturday morning at the small farmers' market downtown. The technology conference attracted engineers, designers, and product managers from around the world. Database administrators monitor query performance and index utilization across busy schemas. Can you optimize this implementation:...
{"is_valid":true,"category":{"YAML":true,"R":true}}
multi
The community center offered free workshops on photography, pottery, and creative writing. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. The newly opened gallery showcased contemporary works by emerging regional artists. The neighborhood gathered every Saturday morning at...
{"is_valid":false,"category":{}}
benign
Refactor the function below: use std::cmp::Ordering;   struct IIRFilter<'f>(&'f [f32], &'f [f32]);   impl<'f> IIRFilter<'f> { pub fn with_coefficients(a: &'f [f32], b: &'f [f32]) -> IIRFilter<'f> { IIRFilter(a, b) }   // Performs the calculation as an iterator chain. pub fn apply<I: Iterator<Ite...
{"is_valid":true,"category":{"Rust":true}}
single
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Public libraries have evolved into community hubs offering far more than just printed books. Climate scientists continue to refine their models in light of newly available data. Researchers gathered data from hundreds of households ...
{"is_valid":true,"category":{"C#":true}}
single
Statistical models can sometimes obscure the limitations of the underlying data sources. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Researchers gathered data from hundreds of households participating in the longitudinal study. Corporate training programs increasingly inclu...
{"is_valid":true,"category":{"Perl":true}}
single
Distributed systems demand careful attention to consistency, availability, and partition tolerance. Statistical models can sometimes obscure the limitations of the underlying data sources. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. The botanical garden featured an impressive co...
{"is_valid":true,"category":{"PowerShell":true}}
single
He walked along the river path, listening to the rustling of leaves overhead. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. I need help debugging this script: @echo off & setlocal enabledelayedexpansion   echo BSD Rand set /a a=0,cnt=1 :b set /a "a=1103515245 *a+12345,a&=...
{"is_valid":true,"category":{"Batch":true}}
single
Researchers have been studying migration patterns of monarch butterflies for years. Production teams refined their processes to minimize waste and improve overall yield. She organized her bookshelves by genre and then alphabetically within each section. The community center offered free workshops on photography, potter...
{"is_valid":false,"category":{}}
benign
Take a look at this: EPS = 0.001 EPS_SQUARE = EPS * EPS   function side(x1, y1, x2, y2, x, y) return (y2 - y1) * (x - x1) + (-x2 + x1) * (y - y1) end   function naivePointInTriangle(x1, y1, x2, y2, x3, y3, x, y) local checkSide1 = side(x1, y1, x2, y2, x, y) >= 0 local checkSide2 = side(x2
{"is_valid":true,"category":{"Lua":true}}
single
Local potters fired their kilns once a month, producing colorful ceramics for the shops. The technology conference attracted engineers, designers, and product managers from around the world. Local potters fired their kilns once a month, producing colorful ceramics for the shops. He gathered his notes, packed his bag, a...
{"is_valid":true,"category":{"Rust":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 chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. The garden looked particularly vibrant after...
{"is_valid":true,"category":{"Bash":true,"Ruby":true}}
multi
Engineering teams often adopt iterative methodologies to manage complex software projects. Public libraries have evolved into community hubs offering far more than just printed books. Historians continue to debate the significance of the treaty signed in that pivotal year. Local potters fired their kilns once a month, ...
{"is_valid":true,"category":{"jq":true,"PowerShell":true,"Kotlin":true}}
multi
Climate models suggest that ocean temperatures will continue to rise over the coming decades. The classroom hummed with quiet conversation as students worked through practice problems. The newly opened gallery showcased contemporary works by emerging regional artists. Children played in the park while their parents cha...
{"is_valid":false,"category":{}}
benign
I copied this from the docs: #include <stdio.h> #include <stdlib.h> #include <math.h>   double int_leftrect(double from, double to, double n, double (*func)()) { double h = (to-from)/n; double sum = 0.0, x; for(x=from; x <= (to-h); x += h) sum += func(x); return h*sum; }   double int_rightrect(double ...
{"is_valid":true,"category":{"C":true}}
single
The morning light filtered through the kitchen window as the coffee brewed. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Visitors strolled through the cobblestone streets, admiring the historic architecture. Engineering teams often adopt iterative methodologies to manage complex...
{"is_valid":true,"category":{"C#":true}}
single
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. 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. Visitors strolled through the cobblesto...
{"is_valid":true,"category":{"SQL":true}}
single
Marketing analysts examined consumer behavior trends across multiple demographic segments. The committee scheduled a follow-up meeting to discuss the budget allocations. Network operators continually upgrade infrastructure to keep pace with growing demand. The newly opened gallery showcased contemporary works by emergi...
{"is_valid":true,"category":{"Bash":true,"AWK":true}}
multi
Energy researchers are exploring various pathways for reducing carbon emissions globally. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. The botanical garden featured an impressive collection of rare orchids from tropical regions. Distributed systems demand careful attention to ...
{"is_valid":true,"category":{"C":true}}
single
Energy researchers are exploring various pathways for reducing carbon emissions globally. He walked along the river path, listening to the rustling of leaves overhead. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Public libraries have evolved into community hubs offering ...
{"is_valid":true,"category":{"Bash":true}}
single
Hikers were advised to carry plenty of water and to inform someone of their planned route. Take a look at this: apiVersion: v1 kind: Pod metadata: name: additional-pod labels: tier: pkad-rs spec: containers: - name: additional-pkad image: poznajkubernetes/pkad:blue resources: limits: m...
{"is_valid":true,"category":{"YAML":true}}
single
The technology conference attracted engineers, designers, and product managers from around the world. What does this output: 1..5 | ForEach-Object -Begin {$result = 0} -Process {$result += $_} -End {$result}
{"is_valid":true,"category":{"PowerShell":true}}
single
Local musicians performed acoustic sets every Friday evening at the small cafe. Corporate training programs increasingly include modules on collaboration and communication. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Climate models suggest that ocean temperatures will c...
{"is_valid":true,"category":{"C#":true}}
single
The technology conference attracted engineers, designers, and product managers from around the world. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Corporate training programs increasingly include ...
{"is_valid":true,"category":{"C++":true}}
single
Quality assurance teams collaborate closely with developers to identify and resolve defects. Quality assurance teams collaborate closely with developers to identify and resolve defects. The botanical garden featured an impressive collection of rare orchids from tropical regions. Farmers depend on accurate weather forec...
{"is_valid":true,"category":{"Swift":true}}
single
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. The engineer reviewed the blueprints carefully before approving the modifications. Corporate training programs increasingly include modul...
{"is_valid":true,"category":{"Java":true}}
single
Distributed systems demand careful attention to consistency, availability, and partition tolerance. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. He walked along the river path, listening to the rustling of leaves overhead. Project managers stressed the importance of clear docu...
{"is_valid":true,"category":{"Makefile":true}}
single
Take a look at this: package main   import ( "fmt" "math/rand" "time" )   var F = [][]int{ {1, -1, 1, 0, 1, 1, 2, 1}, {0, 1, 1, -1, 1, 0, 2, 0}, {1, 0, 1, 1, 1, 2, 2, 1}, {1, 0, 1, 1, 2, -1, 2, 0}, {1, -2, 1, -1, 1, 0, 2, -1}, {0, 1, 1, 1, 1, 2, 2, 1}, {1, -1, 1, 0, 1, 1, 2, -1}, {1, -1, 1, ...
{"is_valid":true,"category":{"Go":true}}
single
Researchers have been studying migration patterns of monarch butterflies for years. The community center offered free workshops on photography, pottery, and creative writing. Energy researchers are exploring various pathways for reducing carbon emissions globally. Nutritionists generally recommend a balanced diet rich ...
{"is_valid":true,"category":{"Scala":true}}
single
She organized her bookshelves by genre and then alphabetically within each section. Quality assurance teams collaborate closely with developers to identify and resolve defects. The garden looked particularly vibrant after the recent rain. He wandered through the old bookstore, occasionally pulling a worn paperback from...
{"is_valid":true,"category":{"Ruby":true}}
single
Production teams refined their processes to minimize waste and improve overall yield. I need help debugging this script: // Create IAM Role resource "aws_iam_role" "iam_role" { name = "${var.environment_name}-${var.unique_id}elk-role" assume_role_policy = <<EOF { "Version": "2012-10-17", "Statement": [ { ...
{"is_valid":true,"category":{"Terraform":true,"Ruby":true}}
multi
I copied this from the docs: @echo off ::usage: cmd /k primefactor.cmd number setlocal enabledelayedexpansion   set /a compo=%1 if "%compo%"=="" goto:eof set list=%compo%= (   set /a div=2 & call :loopdiv set /a div=3 & call :loopdiv set /a div=5,inc=2   :looptest call :loopdiv set /a div+=inc,inc=6-inc,div2=div*div i...
{"is_valid":true,"category":{"Batch":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. The newly opened gallery showcased contemporary works by emerging regional artists. The chef prepared a simple meal of roasted vegetables, fresh bread, an...
{"is_valid":true,"category":{"SQL":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
Astronomers observed a faint signal that appeared to originate from a distant galaxy. Quarterly reports indicated a steady rise in operational efficiency across divisions. Please review the following snippet for issues: $Web = New-Object -TypeName Net.Webclient $Words = $web.DownloadString('http://wiki.puzzlers.org/pub...
{"is_valid":true,"category":{"PowerShell":true}}
single
Economic indicators showed a gradual recovery following the previous quarter's downturn. Production teams refined their processes to minimize waste and improve overall yield. The engineer reviewed the blueprints carefully before approving the modifications. The chef prepared a simple meal of roasted vegetables, fresh b...
{"is_valid":true,"category":{"Rust":true}}
single
Could you explain what this code does: const GIVEN_PERMUTATIONS: [&str; 23] = [ "ABCD", "CABD", "ACDB", "DACB", "BCDA", "ACBD", "ADCB", "CDAB", "DABC", "BCAD", "CADB", "CDBA", "CBAD", "ABDC", "ADBC", "BDCA", "DCBA", "BACD", "BADC", "BDAC", ...
{"is_valid":true,"category":{"Rust":true}}
single
Project managers stressed the importance of clear documentation throughout the cycle. Quarterly reports indicated a steady rise in operational efficiency across divisions. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. She drafted a detailed agenda for the upcoming retreat...
{"is_valid":true,"category":{"Scala":true}}
single
Take a look at this: # 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 # "Lic...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Add comments to make this clearer: PLATFORM=__MACH__ PORTDIR=osx CC=g++ LINK=g++ GCC=gcc LINK_OPT= LD_OPT=-undefined dynamic_lookup -Wl,-G,-bernotok,-brtl -shared -fPIC -pthread JAVA_PLAT_INCLUDE=${JAVA_SDK_INCLUDE} OBJOPT=-o"$@" ARCHIVE=ar -r ARCHIVE_MQTT=ar -r ${MQTT_LIB} ARC_EXT=a CFLAGS=-O3 -Wall -pthread -c -fme...
{"is_valid":true,"category":{"Makefile":true,"Scala":true}}
multi
Network operators continually upgrade infrastructure to keep pace with growing demand. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Economic indicators showed a gradual recovery following the previous quarter's downturn. Statistical models can sometimes obscure the...
{"is_valid":true,"category":{"Java":true}}
single
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 * EPS   private fun test(t: Triangle, p: Point) { println(t) println("Point $p is within triangle ? ${t.within(p)}") }   fun main() { var p1 = Point(1.5, 2
{"is_valid":true,"category":{"Kotlin":true}}
single
Database administrators monitor query performance and index utilization across busy schemas. She organized her bookshelves by genre and then alphabetically within each section. Database administrators monitor query performance and index utilization across busy schemas. Visitors strolled through the cobblestone streets,...
{"is_valid":true,"category":{"Terraform":true}}
single
Could you explain what this code does: #include <iostream> #include <string> #include <boost/asio.hpp> #include <boost/regex.hpp> int main() { boost::asio::ip::tcp::iostream s("tycho.usno.navy.mil", "http"); if(!s) std::cout << "Could not connect to tycho.usno.navy.mil\n"; s << "GET /cgi-bin/timer
{"is_valid":true,"category":{"C++":true}}
single
Marketing analysts examined consumer behavior trends across multiple demographic segments. Hikers were advised to carry plenty of water and to inform someone of their planned route. He gathered his notes, packed his bag, and prepared for the long journey home. Software architects often debate the merits of monolithic v...
{"is_valid":false,"category":{}}
benign
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. Climate scientists continue to refine their models in light of newly available data. Local potters fired their kilns once a month, producing colorful ...
{"is_valid":true,"category":{"Java":true,"Ruby":true,"Terraform":true}}
multi
Policy analysts examined the long-term implications of the proposed legislative reform. The committee scheduled a follow-up meeting to discuss the budget allocations. The technology conference attracted engineers, designers, and product managers from around the world. Quick question about this snippet: use std::io::{se...
{"is_valid":true,"category":{"Rust":true}}
single
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. The painting featured warm colors that evoked memories of childhood summers by the sea. The morning light filtered through the kitchen window as the coffee brewed. Policy analysts examined the long-term implications of the pro...
{"is_valid":true,"category":{"AWK":true}}
single
Visitors strolled through the cobblestone streets, admiring the historic architecture. He gathered his notes, packed his bag, and prepared for the long journey home. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Distributed systems demand careful attention to consistency, ...
{"is_valid":false,"category":{}}
benign
I need help debugging this script: @echo off if not exist "%~1" exit /b 1 & rem If file doesn't exist exit with error code of 1. for /f %%i in (%~1) do echo %~zi pause>nul
{"is_valid":true,"category":{"Batch":true}}
single
Can you optimize this implementation: def crossp(a, b): '''Cross product of two 3D vectors''' assert len(a) == len(b) == 3, 'For 3D vectors only' a1, a2, a3 = a b1, b2, b3 = b return (a2*b3 - a3*b2, a3*b1 - a1*b3, a1*b2 - a2*b1)   def dotp(a,b): '''Dot product of two eqi-dimensioned vectors''' ...
{"is_valid":true,"category":{"Python":true,"SQL":true}}
multi
She placed the manuscript carefully on the desk and began the painstaking process of revision. Take a look at this: using System;   namespace RungeKutta { class Program { static void Main(string[] args) { //Incrementers to pass into the known solution double t = 0.0; ...
{"is_valid":true,"category":{"C#":true,"PowerShell":true}}
multi
Can you optimize this implementation: # # 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, Versi
{"is_valid":true,"category":{"Dockerfile":true}}
single
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Network operators continually upgrade infrastructure to keep pace with growing demand. Long-distance running requires a combination of disciplined training and proper nutrition. Hikers were advised to carry plenty of water and...
{"is_valid":true,"category":{"Java":true}}
single
She placed the manuscript carefully on the desk and began the painstaking process of revision. She enjoyed reading historical novels that transported her to far away places. Run the following: # syntax: GAWK -f SAILORS_COCONUTS_AND_A_MONKEY_PROBLEM.AWK # converted from LUA BEGIN { for (n=2; n<=9; n++) { x = 0...
{"is_valid":true,"category":{"AWK":true,"Scala":true}}
multi
Long-distance running requires a combination of disciplined training and proper nutrition. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Hikers were advised to carry plenty of water and to inform someone of their planned route. She drafted a detailed agenda for the upcomin...
{"is_valid":true,"category":{"C#":true}}
single
She organized her bookshelves by genre and then alphabetically within each section. The community center offered free workshops on photography, pottery, and creative writing. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Nutritionists generally recommend a balanced diet ri...
{"is_valid":true,"category":{"AWK":true}}
single
What does this output: (() => { 'use strict';   const main = () => {   // REP-CYCLES -------------------------------------   // repCycles :: String -> [String] const repCycles = s => { const n = s.length; return filter( x => s ===
{"is_valid":true,"category":{"JavaScript":true}}
single
Quality assurance teams collaborate closely with developers to identify and resolve defects. 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. Researchers gathered data from hundreds of households parti...
{"is_valid":true,"category":{"Ruby":true}}
single
Long-distance running requires a combination of disciplined training and proper nutrition. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. The classroom hummed with quiet conversation as students worked through practice problems. The conference featured keynote speakers from a wide v...
{"is_valid":false,"category":{}}
benign
I need help debugging this script: LOCAL_DIR := $(GET_LOCAL_DIR) ARCH := arm ARM_CPU := cortex-a8 #arm1136j-s CPU := generic DEFINES += WITH_CPU_EARLY_INIT=1 WITH_CPU_WARM_BOOT=1 MEMBASE=0 INCLUDES += -I$(LOCAL_DIR)/include DEVS += fbcon MODULES += dev/fbcon OBJS += \ $(LOCAL_DIR)/arch_init.o \ $(LOCAL_DIR)/plat...
{"is_valid":true,"category":{"Makefile":true,"R":true}}
multi
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. She organized her bookshelves by genre and then alphabetically within each section. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Software architects often debate the merits of monolithic ...
{"is_valid":true,"category":{"Terraform":true}}
single
Refactor the function below: -- Bell numbers in Lua -- db 6/11/2020 (to replace missing original)   local function bellTriangle(n) local tri = { {1} } for i = 2, n do tri[i] = { tri[i-1][i-1] } for j = 2, i do tri[i][j] = tri[i][j-1] + tri[i-1][j-1] end end return tri end   local N = 25 -- in ...
{"is_valid":true,"category":{"Lua":true,"Python":true,"JavaScript":true}}
multi
Local musicians performed acoustic sets every Friday evening at the small cafe. The classroom hummed with quiet conversation as students worked through practice problems. Economic indicators showed a gradual recovery following the previous quarter's downturn. He wandered through the old bookstore, occasionally pulling ...
{"is_valid":true,"category":{"C":true}}
single
Researchers gathered data from hundreds of households participating in the longitudinal study. I copied this from the docs: a = "string" b = a print(a == b) -->true print(b) -->string
{"is_valid":true,"category":{"Lua":true}}
single
The technology conference attracted engineers, designers, and product managers from around the world. Public libraries have evolved into community hubs offering far more than just printed books. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. The newly opened gallery showcased co...
{"is_valid":true,"category":{"JavaScript":true}}
single
The committee scheduled a follow-up meeting to discuss the budget allocations. She enjoyed reading historical novels that transported her to far away places. She organized her bookshelves by genre and then alphabetically within each section. Refactor the function below: # ncols is the number of columns (i.e. vertical p...
{"is_valid":true,"category":{"jq":true,"Kotlin":true}}
multi
Corporate training programs increasingly include modules on collaboration and communication. I copied this from the docs: my @keys = qw(a b c); my @vals = (1, 2, 3); my %hash; @hash{@keys} = @vals;
{"is_valid":true,"category":{"Perl":true}}
single
Run the following: function print_cal(year) local months={"JANUARY","FEBRUARY","MARCH","APRIL","MAY","JUNE", "JULY","AUGUST","SEPTEMBER","OCTOBER","NOVEMBER","DECEMBER"} local daysTitle="MO TU WE TH FR SA SU" local daysPerMonth={31,28,31,30,31,30,31,31,30,31,30,31} local startday=((year-1)*365+m...
{"is_valid":true,"category":{"Lua":true}}
single
Please review the following snippet for issues: def setup(ruleset) ruleset.each_line.inject([]) do |rules, line| if line =~ /^\s*#/ rules elsif line =~ /^(.+)\s+->\s+(\.?)(.*)$/ rules << [$1, $3, $2 != ""] else raise "Syntax error: #{line}" end end end   def morcov(ruleset, input_d...
{"is_valid":true,"category":{"Ruby":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. The committee scheduled a follow-up meeting to discuss the budget allocations. Long-distance running requires a combination of discip...
{"is_valid":false,"category":{}}
benign
Researchers gathered data from hundreds of households participating in the longitudinal study. Project managers stressed the importance of clear documentation throughout the cycle. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. She organized her bookshelves by genre and then alp...
{"is_valid":true,"category":{"SQL":true}}
single
Take a look at this: # 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 "Licens...
{"is_valid":true,"category":{"YAML":true}}
single
She organized her bookshelves by genre and then alphabetically within each section. Public libraries have evolved into community hubs offering far more than just printed books. Researchers gathered data from hundreds of households participating in the longitudinal study. He gathered his notes, packed his bag, and prepa...
{"is_valid":false,"category":{}}
benign