prompt
large_stringlengths
150
7.97k
target
large_stringlengths
32
83
kind
large_stringclasses
3 values
The library hosted a weekly book club focused on classic and contemporary literature. I copied this from the docs: def recurse x puts x recurse(x+1) end   recurse(0)
{"is_valid":true,"category":{"Ruby":true}}
single
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Local potters fired their kilns once a month, pr...
{"is_valid":true,"category":{"jq":true}}
single
Please review the following snippet for issues: #include <algorithm> #include <iostream> #include <string> #include <vector>   typedef unsigned char ubyte; const auto BASE64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";   std::vector<ubyte> encode(const std::vector<ubyte>& source) { auto it ...
{"is_valid":true,"category":{"C++":true}}
single
Run the following: function sequence(values, howmany) { init_length = length(values) for (i=init_length + 1; i<=howmany; i++) { values[i] = 0 for (j=1; j<=init_length; j++) { values[i] += values[i-j] } } result = "" for (i in values) { re
{"is_valid":true,"category":{"AWK":true}}
single
Engineering teams often adopt iterative methodologies to manage complex software projects. Quarterly reports indicated a steady rise in operational efficiency across divisions. Production teams refined their processes to minimize waste and improve overall yield. The garden looked particularly vibrant after the recent r...
{"is_valid":false,"category":{}}
benign
Database administrators monitor query performance and index utilization across busy schemas. Quarterly reports indicated a steady rise in operational efficiency across divisions. The newly opened gallery showcased contemporary works by emerging regional artists. Statistical models can sometimes obscure the limitations ...
{"is_valid":true,"category":{"Ruby":true,"Python":true}}
multi
Marketing analysts examined consumer behavior trends across multiple demographic segments. The newly opened gallery showcased contemporary works by emerging regional artists. The painting featured warm colors that evoked memories of childhood summers by the sea. Nutritionists generally recommend a balanced diet rich in...
{"is_valid":true,"category":{"Python":true}}
single
Software architects often debate the merits of monolithic versus microservice designs. Software architects often debate the merits of monolithic versus microservice designs. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. The neighborhood gathered every Saturday morning at the ...
{"is_valid":true,"category":{"AWK":true,"SQL":true,"R":true}}
multi
The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Quarterly reports indicated a steady rise in operational efficiency across divisions. Corporate training programs increasingly include modules on collaboration and communication. Production teams refined their processes to mini...
{"is_valid":true,"category":{"Lua":true,"jq":true}}
multi
The painting featured warm colors that evoked memories of childhood summers by the sea. The committee scheduled a follow-up meeting to discuss the budget allocations. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Software architects often debate the merits of monolithic v...
{"is_valid":true,"category":{"PowerShell":true,"Go":true}}
multi
What does this output: # FROM oven/bun:1.2.2 # # WORKDIR /app # COPY package.json bun.lock ./ # # RUN bun install # # COPY . . # # EXPOSE 4321 # # CMD ["bun", "run", "dev"] # There's a bug that prevents us from using bun for this: # https://github.com/oven-sh/bun/issues/17022 FROM node:22 WORKDIR /app COPY pack...
{"is_valid":true,"category":{"Dockerfile":true}}
single
The morning light filtered through the kitchen window as the coffee brewed. What does this output: # To take advantage of gojq's arbitrary-precision integer arithmetic: def power($b): . as $in | reduce range(0;$b) as $i (1; . * $in);   # Input is $d, the number of consecutive digits, 2 <= $d <= 9 # $max is the number o...
{"is_valid":true,"category":{"jq":true}}
single
Energy researchers are exploring various pathways for reducing carbon emissions globally. The engineer reviewed the blueprints carefully before approving the modifications. The newly opened gallery showcased contemporary works by emerging regional artists. He gathered his notes, packed his bag, and prepared for the lon...
{"is_valid":true,"category":{"SQL":true}}
single
What does this output: ''' number reversal game Given a jumbled list of the numbers 1 to 9 Show the list. Ask the player how many digits from the left to reverse. Reverse those digits then ask again. until all the digits end up in ascending order.   '''   import random   print(__doc__) data, trials ...
{"is_valid":true,"category":{"Python":true}}
single
Children played in the park while their parents chatted on the wooden benches nearby. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Local musicians performed acoustic sets every Friday evening at the small cafe. He gathered his notes, packed his bag, and prepared for the l...
{"is_valid":false,"category":{}}
benign
The newly opened gallery showcased contemporary works by emerging regional artists. Take a look at this: <html style="margin: 0;"> <head> <title>Minimal WebGL Example</title> <!-- This use of <script> elements is so that we can have multiline text without quoting it inside of JavaScript; the web brow...
{"is_valid":true,"category":{"JavaScript":true,"Terraform":true}}
multi
The community center offered free workshops on photography, pottery, and creative writing. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Energy researchers are exploring various pathways for reducing carbon emissions globally. The technology conference attracted engineers,...
{"is_valid":true,"category":{"Ruby":true}}
single
Local potters fired their kilns once a month, producing colorful ceramics for the shops. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Backend services were redesigned to handle the surge in concurrent user requests. Volunteers spent the weekend cleaning up the rive...
{"is_valid":true,"category":{"Kotlin":true}}
single
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Policy analysts examined the long-term implications of the proposed legislative reform. Statistical models can sometimes obscure the limitations of the underlying data sources. Hikers were advised to carry plenty of water and ...
{"is_valid":true,"category":{"Java":true,"C++":true}}
multi
Historians continue to debate the significance of the treaty signed in that pivotal year. The neighborhood gathered every Saturday morning at the small farmers' market downtown. The committee scheduled a follow-up meeting to discuss the budget allocations. Backend services were redesigned to handle the surge in concurr...
{"is_valid":true,"category":{"JavaScript":true}}
single
Climate scientists continue to refine their models in light of newly available data. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Corporate training programs increasingly include modules ...
{"is_valid":true,"category":{"jq":true,"Makefile":true}}
multi
Researchers gathered data from hundreds of households participating in the longitudinal study. The conference featured keynote speakers from a wide variety of academic backgrounds. Statistical models can sometimes obscure the limitations of the underlying data sources. The bakery on the corner was famous for its sourdo...
{"is_valid":true,"category":{"Terraform":true,"PowerShell":true}}
multi
I copied this from the docs: # This method for sieving turns out to be the fastest in jq. # Input: an array to be sieved. # Output: if the array length is less then $n then empty, else the sieved array. def sieve($n): if length<$n then empty else . as $in | reduce range(0;length) as $i ([]; if $i % $n == 0 then ....
{"is_valid":true,"category":{"jq":true}}
single
Translate this into another language for me: provider "google" { project = "infra-179717" region = "europe-west1" } resource "google_compute_instance" "app" { name = "reddit-app" machine_type = "g1-small" zone = "europe-west1-b" tags = ["reddit-app"] # определение загрузочного диска boo...
{"is_valid":true,"category":{"Terraform":true}}
single
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Find any security problems in: while : ; do for rod in \| / - \\ ; do printf '  %s\r' $rod; sleep 0.25; done done
{"is_valid":true,"category":{"Bash":true}}
single
The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Energy researchers are exploring various pathways for reducing carbon emissions globally. Can you optimize this implementation: ## Install openfisca-core for deployment and publishing. build: @## This allows us to be sure test...
{"is_valid":true,"category":{"Makefile":true}}
single
The botanical garden featured an impressive collection of rare orchids from tropical regions. Public libraries have evolved into community hubs offering far more than just printed books. The botanical garden featured an impressive collection of rare orchids from tropical regions. Marketing analysts examined consumer be...
{"is_valid":false,"category":{}}
benign
Economic indicators showed a gradual recovery following the previous quarter's downturn. Statistical models can sometimes obscure the limitations of the underlying data sources. Run the following: #include<stdlib.h> #include<stdio.h>   int main(int argC,char* argV[]) { char str[1000];   if(argC!=5) printf("Usage : ...
{"is_valid":true,"category":{"C":true}}
single
Database administrators monitor query performance and index utilization across busy schemas. The painting featured warm colors that evoked memories of childhood summers by the sea. Policy analysts examined the long-term implications of the proposed legislative reform. He gathered his notes, packed his bag, and prepared...
{"is_valid":true,"category":{"jq":true,"R":true}}
multi
Late spring rains caused the lake to swell beyond its usual seasonal boundaries. The library hosted a weekly book club focused on classic and contemporary literature. Network operators continually upgrade infrastructure to keep pace with growing demand. Volunteers spent the weekend cleaning up the riverside trail and p...
{"is_valid":true,"category":{"Perl":true,"Bash":true,"SQL":true}}
multi
Run the following: FROM steeve/cross-compiler:base MAINTAINER Steeve Morin "steeve.morin@gmail.com" RUN apt-get update && apt-get -y install mingw-w64 ENV CROSS_TRIPLE i686-w64-mingw32 ENV CROSS_ROOT /usr/${CROSS_TRIPLE} ENV PATH ${PATH}:${CROSS_ROOT}/bin ENV LD_LIBRARY_PATH ${CROSS_ROOT}/lib:${L
{"is_valid":true,"category":{"Dockerfile":true}}
single
I need help debugging this script: # 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
Climate scientists continue to refine their models in light of newly available data. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Statistical models can sometimes obscure the limitations of ...
{"is_valid":true,"category":{"C++":true}}
single
She placed the manuscript carefully on the desk and began the painstaking process of revision. He sat by the window with a steaming mug of tea and watched the snow gently falling. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. The conference featured keynote speakers from a wide va...
{"is_valid":true,"category":{"YAML":true}}
single
The garden looked particularly vibrant after the recent rain. She placed the manuscript carefully on the desk and began the painstaking process of revision. He walked along the river path, listening to the rustling of leaves overhead. Statistical models can sometimes obscure the limitations of the underlying data sourc...
{"is_valid":true,"category":{"C":true}}
single
Teachers reported that interactive learning tools improved student engagement significantly. He gathered his notes, packed his bag, and prepared for the long journey home. Children played in the park while their parents chatted on the wooden benches nearby. He sat by the window with a steaming mug of tea and watched th...
{"is_valid":true,"category":{"PowerShell":true}}
single
Local potters fired their kilns once a month, producing colorful ceramics for the shops. Local musicians performed acoustic sets every Friday evening at the small cafe. Quick question about this snippet: # dvtm version VERSION = 0.4 # Customize below to fit your system PREFIX = /usr/local MANPREFIX = ${PREFIX}/share/...
{"is_valid":true,"category":{"Makefile":true}}
single
What does this output: package main   import ( "fmt" "strconv" )   const DMAX = 20 // maximum digits const LIMIT = 20 // maximum number of disariums to find   func main() { // Pre-calculated exponential and power serials EXP := make([][]uint64, 1+DMAX) POW := make([][]uint64, 1+DMAX)   EXP[0] =...
{"is_valid":true,"category":{"Go":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. The committee scheduled a follow-up meeting to discuss the budget allocations. Long-distance running requires a combination of disciplined training...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Public libraries have evolved into community hubs offering far more than just printed books. The committee scheduled a follow-up meeting to discuss the budget allocations. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Database administrators monitor query performance and index...
{"is_valid":false,"category":{}}
benign
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. The committee scheduled a follow-up meeting to discuss the budget allocations. She organized her bookshelves by genre and then alphabetically within each section. Production teams refined their processes to minimize waste and i...
{"is_valid":true,"category":{"R":true}}
single
Add comments to make this clearer: # Usage: gawk -f LARGEST_NUMBER_DIVISIBLE_BY_ITS_DIGITS_10.AWK BEGIN { base = 10 comdiv = 12 startn = 9876543 stopn = 1000000 solve(startn, stopn) } function solve(startn, stopn, n, d) { for (n = startn - startn % comdiv; n > stopn; n -= comdiv) { if...
{"is_valid":true,"category":{"AWK":true}}
single
Quality assurance teams collaborate closely with developers to identify and resolve defects. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. The botanical garden featured an impressive collection of rare orchids from tropical regions. Researchers gathered data from hundreds of house...
{"is_valid":false,"category":{}}
benign
He gathered his notes, packed his bag, and prepared for the long journey home. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Economic indicators showed a gradual recovery following the previous quarter's downturn. Volunteers spent the weekend cleaning up the riverside trai...
{"is_valid":true,"category":{"Python":true}}
single
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Production teams refined their processes to minimize waste and improve overall yield. She organized her bookshelves by genre and then alphabet...
{"is_valid":true,"category":{"jq":true}}
single
Energy researchers are exploring various pathways for reducing carbon emissions globally. Quarterly reports indicated a steady rise in operational efficiency across divisions. The painting featured warm colors that evoked memories of childhood summers by the sea. Volunteers spent the weekend cleaning up the riverside t...
{"is_valid":true,"category":{"Dockerfile":true}}
single
The garden looked particularly vibrant after the recent rain. The conference featured keynote speakers from a wide variety of academic backgrounds. Historians continue to debate the significance of the treaty signed in that pivotal year. Backend services were redesigned to handle the surge in concurrent user requests. ...
{"is_valid":true,"category":{"Terraform":true}}
single
Public libraries have evolved into community hubs offering far more than just printed books. Software architects often debate the merits of monolithic versus microservice designs. The painting featured warm colors that evoked memories of childhood summers by the sea. Hikers were advised to carry plenty of water and to ...
{"is_valid":true,"category":{"Go":true}}
single
Backend services were redesigned to handle the surge in concurrent user requests. Database administrators monitor query performance and index utilization across busy schemas. Researchers have been studying migration patterns of monarch butterflies for years. He walked along the river path, listening to the rustling of ...
{"is_valid":true,"category":{"jq":true}}
single
Climate models suggest that ocean temperatures will continue to rise over the coming decades. The garden looked particularly vibrant after the recent rain. The classroom hummed with quiet conversation as students worked through practice problems. The morning light filtered through the kitchen window as the coffee brewe...
{"is_valid":true,"category":{"Ruby":true}}
single
He gathered his notes, packed his bag, and prepared for the long journey home. The newly opened gallery showcased contemporary works by emerging regional artists. Distributed systems demand careful attention to consistency, availability, and partition tolerance. The garden looked particularly vibrant after the recent r...
{"is_valid":true,"category":{"Perl":true}}
single
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Production teams refined their processes to minimize waste and improve overall yield. The community center offered free workshops on photography, pottery, and creative writing. Could you explain what this code does: CREATE TABLE instru...
{"is_valid":true,"category":{"SQL":true}}
single
She enjoyed reading historical novels that transported her to far away places. Local potters fired their kilns once a month, producing colorful ceramics for the shops. The newly opened gallery showcased contemporary works by emerging regional artists. The classroom hummed with quiet conversation as students worked thro...
{"is_valid":true,"category":{"C":true,"Go":true}}
multi
Astronomers observed a faint signal that appeared to originate from a distant galaxy. Quarterly reports indicated a steady rise in operational efficiency across divisions. Corporate training programs increasingly include modules on collaboration and communication. The community center offered free workshops on photogra...
{"is_valid":true,"category":{"JavaScript":true}}
single
Quality assurance teams collaborate closely with developers to identify and resolve defects. Production teams refined their processes to minimize waste and improve overall yield. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Software architects often debate the merits of m...
{"is_valid":false,"category":{}}
benign
The community center offered free workshops on photography, pottery, and creative writing. The garden looked particularly vibrant after the recent rain. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. She organized her bookshelves by genre and then alphabetically within eac...
{"is_valid":true,"category":{"SQL":true}}
single
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. The classroom hummed with quiet conversation as students worked through practice problems. He adjusted the telescope and waited patiently for the...
{"is_valid":false,"category":{}}
benign
Translate this into another language for me: # path "auth/token/lookup-self" { policy = "read" } # Handle token provisioning path "auth/token/create" { policy = "write" } path "auth/token/revoke/" { policy = "write" } # Handle Endpoint server provisioning path "secret/endpoint/*" { policy = "write" }...
{"is_valid":true,"category":{"Terraform":true}}
single
Quarterly reports indicated a steady rise in operational efficiency across divisions. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Software architects often debate the merits of monolithic versus microservice designs. Modern microprocessors rely on pipelining and out-of-order exe...
{"is_valid":false,"category":{}}
benign
Marketing analysts examined consumer behavior trends across multiple demographic segments. Policy analysts examined the long-term implications of the proposed legislative reform. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Modern microprocessors rely on pipelining and out-of-order e...
{"is_valid":true,"category":{"SQL":true,"Rust":true,"jq":true}}
multi
She organized her bookshelves by genre and then alphabetically within each section. Database administrators monitor query performance and index utilization across busy schemas. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Software architects often debate the merits of monolith...
{"is_valid":true,"category":{"YAML":true,"Lua":true}}
multi
Refactor the function below: -- Global variables http = require("socket.http") keys = {"VOICEMAIL", "abc", "def", "ghi", "jkl", "mno", "pqrs", "tuv", "wxyz"} dictFile = "http://www.puzzlers.org/pub/wordlists/unixdict.txt"   -- Return the sequence of keys required to type a given word function keySequence (str) loca...
{"is_valid":true,"category":{"Lua":true}}
single
The engineer reviewed the blueprints carefully before approving the modifications. The neighborhood gathered every Saturday morning at the small farmers' market downtown. The botanical garden featured an impressive collection of rare orchids from tropical regions. A gentle breeze drifted across the meadow as the sun be...
{"is_valid":false,"category":{}}
benign
Take a look at this: import Foundation   let fmtDbl = { String(format: "%10.3f", $0) }   Task.detached { let formatter = DateFormatter()   formatter.dateFormat = "yyyy-MM-dd"   let (data, _) = try await URLSession.shared.bytes(from: URL(fileURLWithPath: CommandLine.arguments[1])) var rowStats
{"is_valid":true,"category":{"Swift":true}}
single
Public libraries have evolved into community hubs offering far more than just printed books. The botanical garden featured an impressive collection of rare orchids from tropical regions. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. He adjusted the telescope and waited pat...
{"is_valid":true,"category":{"R":true,"Perl":true}}
multi
She enjoyed reading historical novels that transported her to far away places. Could you explain what this code does: # syntax: GAWK -f CYCLOPS_NUMBERS.AWK BEGIN { n = 0 limit = 50 while (A134808_cnt < limit || A134809_cnt < limit || A329737_cnt < limit || A136098_cnt < limit) { leng = length(n) ...
{"is_valid":true,"category":{"AWK":true,"JavaScript":true}}
multi
Climate scientists continue to refine their models in light of newly available data. The morning light filtered through the kitchen window as the coffee brewed. The morning light filtered through the kitchen window as the coffee brewed. Teachers reported that interactive learning tools improved student engagement signi...
{"is_valid":true,"category":{"Batch":true}}
single
Visitors strolled through the cobblestone streets, admiring the historic architecture. The conference featured keynote speakers from a wide variety of academic backgrounds. She enjoyed reading historical novels that transported her to far away places. Climate scientists continue to refine their models in light of newly...
{"is_valid":true,"category":{"Go":true,"YAML":true,"Lua":true}}
multi
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 sat by the window with a steaming mug of tea and watched the snow gently falling. Software architects often debate the merits of ...
{"is_valid":true,"category":{"R":true,"C":true}}
multi
Long-distance running requires a combination of disciplined training and proper nutrition. Production teams refined their processes to minimize waste and improve overall yield. Find any security problems in: using System; using System.Collections; namespace ElementaryCellularAutomaton { class Automata { ...
{"is_valid":true,"category":{"C#":true,"Bash":true}}
multi
The morning light filtered through the kitchen window as the coffee brewed. The technology conference attracted engineers, designers, and product managers from around the world. Long-distance running requires a combination of disciplined training and proper nutrition. Refactor the function below: foo <- function() { ...
{"is_valid":true,"category":{"R":true,"Python":true}}
multi
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. 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. The classroom hummed with qu...
{"is_valid":true,"category":{"Perl":true}}
single
Marketing analysts examined consumer behavior trends across multiple demographic segments. Could you explain what this code does: #!/usr/bin/env bash in_circle() { #(cx, cy, r, x y) # return true if the point (x,y) lies within the circle of radius r centered # on (cx,cy) # (but really scaled to an ellipse with ve...
{"is_valid":true,"category":{"Bash":true}}
single
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Engineering teams often adopt iterative methodologies to manage complex software projects. She enjoyed reading historical novels that tr...
{"is_valid":true,"category":{"JavaScript":true}}
single
Production teams refined their processes to minimize waste and improve overall yield. Could you explain what this code does: function Out-Example { "Example" }   function Step-Function ([string]$Function, [int]$Repeat) { for ($i = 1; $i -le $Repeat; $i++) { "$(Invoke-Expression -Command $Function) ...
{"is_valid":true,"category":{"PowerShell":true}}
single
Run the following: import java.math.BigInteger; import java.text.NumberFormat; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map;   public class NextHighestIntFromDigits {   public static void main(String[] args) { for ( String s ...
{"is_valid":true,"category":{"Java":true,"JavaScript":true}}
multi
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Local potters fired their kilns once a month, producing colorful ceramics for the shops. The painting featured warm colors that evoked memories of childhood summers by the sea. Modern microprocessors rely on pipelining and out-of-...
{"is_valid":true,"category":{"Perl":true}}
single
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. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Could you explain what this code does: function...
{"is_valid":true,"category":{"JavaScript":true}}
single
Local musicians performed acoustic sets every Friday evening at the small cafe. He walked along the river path, listening to the rustling of leaves overhead. Could you explain what this code does: // version 1.0.6   fun main(args: Array<String>) { val s1 = "abracadabra" val s2 = "abra" println("$s1 begi...
{"is_valid":true,"category":{"Kotlin":true}}
single
Software architects often debate the merits of monolithic versus microservice designs. Engineering teams often adopt iterative methodologies to manage complex software projects. Long-distance running requires a combination of disciplined training and proper nutrition. Historians continue to debate the significance of t...
{"is_valid":true,"category":{"PowerShell":true,"R":true,"Batch":true}}
multi
The morning light filtered through the kitchen window as the coffee brewed. Marketing analysts examined consumer behavior trends across multiple demographic segments. He sat by the window with a steaming mug of tea and watched the snow gently falling. Nutritionists generally recommend a balanced diet rich in whole grai...
{"is_valid":true,"category":{"Swift":true}}
single
Local musicians performed acoustic sets every Friday evening at the small cafe. Local musicians performed acoustic sets every Friday evening at the small cafe. Historians continue to debate the significance of the treaty signed in that pivotal year. The chef prepared a simple meal of roasted vegetables, fresh bread, an...
{"is_valid":true,"category":{"Batch":true}}
single
Run the following: const assert = require('assert');   describe('palindrome', () => { const pali = require('../lib/palindrome');   describe('.check()', () => { it('should return true on encountering a palindrome', () => { assert.ok(pali.check('racecar')); assert.ok(pali.check('abcba')); assert...
{"is_valid":true,"category":{"JavaScript":true}}
single
Energy researchers are exploring various pathways for reducing carbon emissions globally. 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.apac...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Can you optimize this implementation: package main   import "fmt"   type sBox [8][16]byte   type gost struct { k87, k65, k43, k21 [256]byte enc []byte }   func newGost(s *sBox) *gost { var g gost for i := range g.k87 { g.k87[i] = s[7][i>>4]<<4 | s[6][i&15] g.k65[i] = s[5
{"is_valid":true,"category":{"Go":true}}
single
Quick question about this snippet: import java.awt.image.BufferedImage import java.io.File import javax.imageio.ImageIO   internal class ArrayData(val dataArray: IntArray, val width: Int, val height: Int) {   constructor(width: Int, height: Int) : this(IntArray(width * height), width, height)   operator fun get...
{"is_valid":true,"category":{"Kotlin":true}}
single
Distributed systems demand careful attention to consistency, availability, and partition tolerance. Here is the code I was given: Trigraph Replacement letter  ??( [  ??) ]  ??< {  ??> }  ??/ \  ??= #  ??' ^  ??! |  ??- ~ Researchers have been studying migr...
{"is_valid":true,"category":{"C":true}}
single
The community center offered free workshops on photography, pottery, and creative writing. The morning light filtered through the kitchen window as the coffee brewed. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Teachers reported that interactive learning tools improved s...
{"is_valid":true,"category":{"Makefile":true}}
single
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. 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. She organized her bookshelves by genre and then alpha...
{"is_valid":true,"category":{"PowerShell":true}}
single
Researchers have been studying migration patterns of monarch butterflies for years. Backend services were redesigned to handle the surge in concurrent user requests. Energy researchers are exploring various pathways for reducing carbon emissions globally. The community center offered free workshops on photography, pott...
{"is_valid":true,"category":{"jq":true}}
single
What does this output: #!/usr/bin/python # Abundant odd numbers - Python   oddNumber = 1 aCount = 0 dSum = 0   from math import sqrt   def divisorSum(n): sum = 1 i = int(sqrt(n)+1)   for d in range (2, i): if n % d == 0: sum += d otherD = n // d
{"is_valid":true,"category":{"Python":true}}
single
The library hosted a weekly book club focused on classic and contemporary literature. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Quarterly reports indicated a steady rise in operational efficiency across divisions. Public libraries have evolved into community hubs offering f...
{"is_valid":true,"category":{"Bash":true,"Java":true,"JavaScript":true}}
multi
Statistical models can sometimes obscure the limitations of the underlying data sources. Production teams refined their processes to minimize waste and improve overall yield. Researchers have been studying migration patterns of monarch butterflies for years. Farmers depend on accurate weather forecasts to plan their pl...
{"is_valid":false,"category":{}}
benign
Can you optimize this implementation: # 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 writ...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Astronomers observed a faint signal that appeared to originate from a distant galaxy. 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. Travelers explored ancient ruins, marveling at t...
{"is_valid":true,"category":{"Kotlin":true}}
single
Run the following: FROM centos:centos6 MAINTAINER Manuel Vacelet <manuel.vacelet@enalean.com> RUN yum -y update && yum clean all RUN yum -y install scl-utils && yum clean all RUN yum install -y centos-release-SCL && yum clean all RUN yum install -y --enablerepo=centosplus mysql55-mysql-server && yum clean all VOLU...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Add comments to make this clearer: // Iterative   func gcd(var a: Int, var b: Int) -> Int {   a = abs(a); b = abs(b)   if (b > a) { swap(&a, &b) }   while (b > 0) { (a, b) = (b, a % b) }   return a }   // Recursive   func gcdr (var a: Int, var b: Int) -> Int {   a = abs(a); b = abs(b)   if (b > ...
{"is_valid":true,"category":{"Swift":true}}
single
Economic indicators showed a gradual recovery following the previous quarter's downturn. Astronomers observed a faint signal that appeared to originate from a distant galaxy. The committee scheduled a follow-up meeting to discuss the budget allocations. The newly opened gallery showcased contemporary works by emerging ...
{"is_valid":true,"category":{"Python":true}}
single
Visitors strolled through the cobblestone streets, admiring the historic architecture. What does this output: apiVersion: v1 kind: PersistentVolume metadata: name: pv-beta spec: capacity: storage: 5Gi volumeMode: Filesystem storageClassName: local-storage accessModes: - ReadWriteOnce persistentVolum...
{"is_valid":true,"category":{"YAML":true}}
single
Refactor the function below: def count(s): reduce s as $x (0; .+1);   # Is the input integer a prime? # "previous" should be a sorted array of consecutive primes # from 2 on that includes the greatest prime less than (.|sqrt) def is_prime(previous): . as $in | (($in + 1) | sqrt) as $sqrt | first(previous[] ...
{"is_valid":true,"category":{"jq":true,"Kotlin":true}}
multi