prompt
large_stringlengths
150
7.97k
target
large_stringlengths
32
83
kind
large_stringclasses
3 values
Historians continue to debate the significance of the treaty signed in that pivotal year. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Researchers gathered data from hundreds of households participating in the longitudinal study. Policy analysts examined the long-term imp...
{"is_valid":true,"category":{"Scala":true,"Dockerfile":true}}
multi
Run the following: #include <math.h> #include <stdio.h>   double f(double x) { return x*x*x-3.0*x*x +2.0*x; }   double secant( double xA, double xB, double(*f)(double) ) { double e = 1.0e-12; double fA, fB; double d; int i; int limit = 50;   fA=(*f)(xA); for (i=0; i<limit; i++) { ...
{"is_valid":true,"category":{"C":true,"Swift":true}}
multi
Here is the code I was given: import Foundation   /* Reads from a file and returns the content as a String */ func readFromFile(fileName file:String) -> String{   var ret:String = ""   let path = Foundation.URL(string: "file://"+file)   do { ret = try String(contentsOf: path!, encoding: St
{"is_valid":true,"category":{"Swift":true}}
single
Energy researchers are exploring various pathways for reducing carbon emissions globally. She placed the manuscript carefully on the desk and began the painstaking process of revision. The newly opened gallery showcased contemporary works by emerging regional artists. Distributed systems demand careful attention to con...
{"is_valid":true,"category":{"Bash":true}}
single
He gathered his notes, packed his bag, and prepared for the long journey home. The garden looked particularly vibrant after the recent rain. 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. A gentle br...
{"is_valid":true,"category":{"AWK":true}}
single
What does this output: DIST ?= jessie DISTS ?= Debian Bluefalls DIST_ARCH ?= armhf ifeq ($(findstring armel,$(DIST_ARCH)),armel) ARCH := rpi else ifeq ($(findstring arm64,$(DIST_ARCH)),arm64) ARCH := rpi3 else ARCH := rpi2 endif U-BOOT ?= false ifeq ($(findstring true,$(U-BOOT)),true) ARCH := rpi2 DIST_ARCH := a...
{"is_valid":true,"category":{"Makefile":true}}
single
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. 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. Late spring rains caused the lake to swell beyond its usual se...
{"is_valid":true,"category":{"Kotlin":true,"jq":true}}
multi
The classroom hummed with quiet conversation as students worked through practice problems. Astronomers observed a faint signal that appeared to originate from a distant galaxy. What does this output: comb.sort<-function(a){ gap<-length(a) swaps<-1 while(gap>1 & swaps==1){ gap=floor(gap/1.3) if(gap<1){ ...
{"is_valid":true,"category":{"R":true}}
single
Run the following: use std::net::Ipv4Addr;   fn canonical_cidr(cidr: &str) -> Result<String, &str> { let mut split = cidr.splitn(2, '/'); if let (Some(addr), Some(mask)) = (split.next(), split.next()) { let addr = addr.parse::<Ipv4Addr>().map(u32::from).map_err(|_| cidr)?; let mask = mask.parse:...
{"is_valid":true,"category":{"Rust":true}}
single
The neighborhood gathered every Saturday morning at the small farmers' market downtown. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Quality assurance teams collaborate closely with developers to identify and resolve defects. The community center offered free workshops on...
{"is_valid":true,"category":{"Makefile":true}}
single
Teachers reported that interactive learning tools improved student engagement significantly. Run the following: # Emit null if there is no duplicate, else [c, [ix1, ix2]] def firstDuplicate: label $out | foreach explode[] as $i ({ix: -1}; .ix += 1 | .ix as $ix | .iu = ([$i] | implode) | .[.iu] += [...
{"is_valid":true,"category":{"jq":true}}
single
Production teams refined their processes to minimize waste and improve overall yield. Network operators continually upgrade infrastructure to keep pace with growing demand. Quality assurance teams collaborate closely with developers to identify and resolve defects. The technology conference attracted engineers, designe...
{"is_valid":true,"category":{"JavaScript":true}}
single
Statistical models can sometimes obscure the limitations of the underlying data sources. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Network operators continually upgrade infrastructure to keep pace with growing demand. Farmers depend on accurate weather forecasts to pla...
{"is_valid":true,"category":{"jq":true}}
single
Astronomers observed a faint signal that appeared to originate from a distant galaxy. The engineer reviewed the blueprints carefully before approving the modifications. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. A gentle breeze drifted across the meadow as the sun began to...
{"is_valid":true,"category":{"R":true}}
single
Teachers reported that interactive learning tools improved student engagement significantly. Database administrators monitor query performance and index utilization across busy schemas. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. The community center offered free worksho...
{"is_valid":true,"category":{"jq":true,"Ruby":true,"Makefile":true}}
multi
What does this output: #include <iostream> #include <string> #include <vector> #include <algorithm>   struct city { std::string name; float population; };   int main() { std::vector<city> cities = { { "Lagos", 21 }, { "Cairo", 15.2 }, { "Kinshasa-Brazzaville", 11.3 }, { "Grea...
{"is_valid":true,"category":{"C++":true}}
single
The neighborhood gathered every Saturday morning at the small farmers' market downtown. Take a look at this: import Foundation   let process = Process()   process.launchPath = "/usr/bin/env" process.arguments = ["pwd"]   let pipe = Pipe() process.standardOutput = pipe   process.launch()   let data = pipe.fileHandleForR...
{"is_valid":true,"category":{"Swift":true}}
single
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Hikers were advised to carry plenty of water and to inform someone of their planned route. Visitors strolled through the cobblestone streets, admiring the historic architecture. The painting featured warm colors that evoked me...
{"is_valid":true,"category":{"Go":true}}
single
He sat by the window with a steaming mug of tea and watched the snow gently falling. Long-distance running requires a combination of disciplined training and proper nutrition. Project managers stressed the importance of clear documentation throughout the cycle. She enjoyed reading historical novels that transported her...
{"is_valid":true,"category":{"C++":true}}
single
Add comments to make this clearer: #include<stdio.h>   int main() { FILE* fp = fopen("TAPE.FILE","w");   fprintf(fp,"This code should be able to write a file to magnetic tape.\n"); fprintf(fp,"The Wikipedia page on Magnetic tape data storage shows that magnetic tapes are still in use.\n"); fprintf(fp,"In fact, the ...
{"is_valid":true,"category":{"C":true,"Rust":true,"SQL":true}}
multi
Children played in the park while their parents chatted on the wooden benches nearby. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Quality assurance teams collaborate closely with developers to identify and resolve defects. The garden looked particularly vibrant after the recent ...
{"is_valid":true,"category":{"Kotlin":true,"Batch":true}}
multi
Corporate training programs increasingly include modules on collaboration and communication. The morning light filtered through the kitchen window as the coffee brewed. The neighborhood gathered every Saturday morning at the small farmers' market downtown. The library hosted a weekly book club focused on classic and co...
{"is_valid":true,"category":{"R":true}}
single
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Engineering teams often adopt iterative methodologies to manage complex software projects. The bakery on the corner was famous for its so...
{"is_valid":false,"category":{}}
benign
Backend services were redesigned to handle the surge in concurrent user requests. Astronomers observed a faint signal that appeared to originate from a distant galaxy. He walked along the river path, listening to the rustling of leaves overhead. The classroom hummed with quiet conversation as students worked through pr...
{"is_valid":true,"category":{"Perl":true,"Makefile":true,"Lua":true}}
multi
What does this output: prob = c(aleph=1/5, beth=1/6, gimel=1/7, daleth=1/8, he=1/9, waw=1/10, zayin=1/11, heth=1759/27720) # Note that R doesn't actually require the weights # vector for rmultinom to sum to 1. hebrew = c(rmultinom(1, 1e6, prob)) d = data.frame( Requested = prob, Obtained =
{"is_valid":true,"category":{"R":true}}
single
Quick question about this snippet: function guess { [[ -n $BASH_VERSION ]] && shopt -s extglob [[ -n $ZSH_VERSION ]] && set -o KSH_GLOB local -i max=${1:-100} local -i number=RANDOM%max+1 local -i guesses=0   local guess while true; do echo -n "Guess my number! (range 1 - $max): " read guess
{"is_valid":true,"category":{"Bash":true}}
single
Translate this into another language for me: provider "github" { token = "${var.github_token}" organization = "${var.github_organization}" } resource "github_repository" "ansible_role_mongodb" { name = "ansible-role-mongodb" description = "Ansible Role for MongoDB (https://www.mongo...
{"is_valid":true,"category":{"Terraform":true}}
single
Policy analysts examined the long-term implications of the proposed legislative reform. Quick question about this snippet: // version 1.1.0   fun countingSort(array: IntArray) { if (array.isEmpty()) return val min = array.min()!! val max = array.max()!! val count = IntArray(max - min + 1) // all eleme...
{"is_valid":true,"category":{"Kotlin":true}}
single
Please review the following snippet for issues: @echo off set res=Factors of %1: for /L %%i in (1,1,%1) do call :fac %1 %%i echo %res% goto :eof   :fac set /a test = %1 %% %2 if %test% equ 0 set res=%res% %2
{"is_valid":true,"category":{"Batch":true}}
single
Find any security problems in: # Generate the hailstone sequence as a stream to save space (and time) when counting def hailstone: recurse( if . > 1 then if . % 2 == 0 then ./2|floor else 3*. + 1 end else empty end );   def count(g): reduce g as $i (0; .+1);   # return [i, length] ...
{"is_valid":true,"category":{"jq":true}}
single
Climate scientists continue to refine their models in light of newly available data. Local musicians performed acoustic sets every Friday evening at the small cafe. Researchers gathered data from hundreds of households participating in the longitudinal study. Could you explain what this code does: function filter(t, fu...
{"is_valid":true,"category":{"Lua":true}}
single
Take a look at this: bash$ a='apples, pears ; and bananas' bash$ b='apples, pears # and bananas' bash$ echo ${a%%;*} apples, pears bash$ echo ${b%%#*} apples, pears bash$ And separately, here's a related piece: extern crate rand;   use rand::Rng;   const POINTS_N: usize = 100;   fn generate_point<R: Rng>(rng: &mut R) ...
{"is_valid":true,"category":{"Bash":true,"Rust":true}}
multi
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Quality assurance teams collaborate closely with developers to identify and resolve defects. Energy researchers are exploring v...
{"is_valid":true,"category":{"Lua":true}}
single
Translate this into another language for me: def m: { ul: "╔", uc: "╦", ur: "╗", ll: "╚", lc: "╩", lr: "╝", hb: "═", vb: "║",   m0: " Θ ", m5: "────" };   def mayan: [ " ", " ∙ ", " ∙∙ ", "∙∙∙ ", "∙∙∙∙" ];   # decimal number to base-20 array, most significant digit first def ...
{"is_valid":true,"category":{"jq":true}}
single
Policy analysts examined the long-term implications of the proposed legislative reform. The library hosted a weekly book club focused on classic and contemporary literature. Policy analysts examined the long-term implications of the proposed legislative reform. I need help debugging this script: library(Matrix) A <- ma...
{"is_valid":true,"category":{"R":true}}
single
The neighborhood gathered every Saturday morning at the small farmers' market downtown. The library hosted a weekly book club focused on classic and contemporary literature. Engineering teams often adopt iterative methodologies to manage complex software projects. The bakery on the corner was famous for its sourdough l...
{"is_valid":true,"category":{"AWK":true}}
single
Please review the following snippet for issues: # Copyright 2018 The Kubernetes Authors. # # 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 # #...
{"is_valid":true,"category":{"Dockerfile":true}}
single
I copied this from the docs: CLS   Function isNumeric ($x) { $x2 = 0 $isNum = [System.Int32]::TryParse($x,[ref]$x2) Return $isNum }   $NumberArray = @() While( $NumberArray.Count -lt 4 ){ $NumberArray += Random -Minimum 1 -Maximum 10 }   Write-Host @" Welcome to the 24 game!   Here are your numbers: $($...
{"is_valid":true,"category":{"PowerShell":true}}
single
Run the following: #include <stdio.h> #include <stdlib.h>   #define S 10 typedef struct { double v; int fixed; } node;   #define each(i, x) for(i = 0; i < x; i++) node **alloc2(int w, int h) { int i; node **a = calloc(1, sizeof(node*)*h + sizeof(node)*w*h); each(i, h) a[i] = i ? a[i-1] + w : (node*)(a + h); return ...
{"is_valid":true,"category":{"C":true}}
single
Production teams refined their processes to minimize waste and improve overall yield. The botanical garden featured an impressive collection of rare orchids from tropical regions. The garden looked particularly vibrant after the recent rain. The bakery on the corner was famous for its sourdough loaves and seasonal past...
{"is_valid":true,"category":{"Kotlin":true,"jq":true}}
multi
The engineer reviewed the blueprints carefully before approving the modifications. Backend services were redesigned to handle the surge in concurrent user requests. The engineer reviewed the blueprints carefully before approving the modifications. Visitors strolled through the cobblestone streets, admiring the historic...
{"is_valid":true,"category":{"Python":true}}
single
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Researchers gathered data from hundreds of households participating in the longitudinal study. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Hikers were advised to carry plenty of...
{"is_valid":true,"category":{"Lua":true}}
single
The botanical garden featured an impressive collection of rare orchids from tropical regions. Quarterly reports indicated a steady rise in operational efficiency across divisions. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Network operators continually upgrade infrastr...
{"is_valid":true,"category":{"Terraform":true,"Makefile":true,"Go":true}}
multi
She organized her bookshelves by genre and then alphabetically within each section. Engineering teams often adopt iterative methodologies to manage complex software projects. Researchers have been studying migration patterns of monarch butterflies for years. The botanical garden featured an impressive collection of rar...
{"is_valid":true,"category":{"Terraform":true}}
single
He gathered his notes, packed his bag, and prepared for the long journey home. The morning light filtered through the kitchen window as the coffee brewed. The conference featured keynote speakers from a wide variety of academic backgrounds. Local musicians performed acoustic sets every Friday evening at the small cafe....
{"is_valid":true,"category":{"C":true}}
single
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Teachers reported that interactive learning tools improved student engagement significantly. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Statistical models can sometimes obscure th...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Refactor the function below: @echo off setlocal enabledelayedexpansion   call:commonpath /home/user1/tmp/coverage/test /home/user1/tmp/covert/operator /home/user1/tmp/coven/members pause>nul exit /b   :commonpath setlocal enabledelayedexpansion   for %%i in (%*) do ( set /a args+=1 set arg!args!=%%i set fullarg!a...
{"is_valid":true,"category":{"Batch":true}}
single
Teachers reported that interactive learning tools improved student engagement significantly. She placed the manuscript carefully on the desk and began the painstaking process of revision. Here is the code I was given: library(tidyverse) library(rvest)   task_html= read_html("http://rosettacode.org/wiki/Knapsack_problem...
{"is_valid":true,"category":{"R":true}}
single
Find any security problems in: function isNumeric(n) { return !isNaN(parseFloat(n)) && isFinite(n); } var value = "123.45e7"; // Assign string literal to value if (isNumeric(value)) { // value is a number } //Or, in web browser in address field: // javascript:function isNumeric(n) {return !isNaN(parseFloat(n)) && ...
{"is_valid":true,"category":{"JavaScript":true}}
single
The neighborhood gathered every Saturday morning at the small farmers' market downtown. Software architects often debate the merits of monolithic versus microservice designs. Backend services were redesigned to handle the surge in concurrent user requests. Travelers explored ancient ruins, marveling at the craftsmanshi...
{"is_valid":true,"category":{"R":true}}
single
Find any security problems in: resource "aws_vpc" "qa" { cidr_block = "10.101.0.0/16" tags { Name = "FacetQaVpc" CreatedBy = "Terraform" Contact = "${var.contact_info}" Supports = "FACET" } }
{"is_valid":true,"category":{"Terraform":true}}
single
Late spring rains caused the lake to swell beyond its usual seasonal boundaries. He sat by the window with a steaming mug of tea and watched the snow gently falling. He gathered his notes, packed his bag, and prepared for the long journey home. She placed the manuscript carefully on the desk and began the painstaking p...
{"is_valid":true,"category":{"SQL":true,"Dockerfile":true}}
multi
Software architects often debate the merits of monolithic versus microservice designs. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Nutritionists generally recommend a balanced diet rich i...
{"is_valid":true,"category":{"Bash":true,"C#":true}}
multi
Astronomers observed a faint signal that appeared to originate from a distant galaxy. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Backend services were redesigned to handle the surge ...
{"is_valid":true,"category":{"Perl":true}}
single
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. She enjoyed reading historical novels that transported her to far away places.
{"is_valid":false,"category":{}}
benign
Astronomers observed a faint signal that appeared to originate from a distant galaxy. Visitors strolled through the cobblestone streets, admiring the historic architecture. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Researchers gathered data from hundreds of households par...
{"is_valid":false,"category":{}}
benign
Hikers were advised to carry plenty of water and to inform someone of their planned route. Please review the following snippet for issues: CREATE TABLE COURSE (CName VARCHAR, Credits VARCHAR, Hours VARCHAR); SELECT CName FROM COURSE WHERE Credits = 3 UNION SELECT CName FROM COURSE WHERE Credits = 1 AND Hours = 4 We al...
{"is_valid":true,"category":{"SQL":true,"Rust":true}}
multi
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Policy analysts examined the long-term implications of the proposed legislative reform. The morning light filtered through the kitchen window as the coffee brewed. He adjusted the telescope and waited patiently for the clouds t...
{"is_valid":true,"category":{"YAML":true}}
single
Engineering teams often adopt iterative methodologies to manage complex software projects. Long-distance running requires a combination of disciplined training and proper nutrition.
{"is_valid":false,"category":{}}
benign
The neighborhood gathered every Saturday morning at the small farmers' market downtown. Researchers have been studying migration patterns of monarch butterflies for years. Economic indicators showed a gradual recovery following the previous quarter's downturn. She organized her bookshelves by genre and then alphabetica...
{"is_valid":true,"category":{"Kotlin":true}}
single
He gathered his notes, packed his bag, and prepared for the long journey home. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Production teams refined their processes to minimize waste and improve overall yield. The committee scheduled a follow-up meeting to discuss the bu...
{"is_valid":true,"category":{"C":true,"Makefile":true}}
multi
Could you explain what this code does: package main   import( "fmt" "strings" "unicode/utf8" )   type Mode int   const( Encrypt Mode = iota Decrypt )   const( lAlphabet = "HXUCZVAMDSLKPEFJRIGTWOBNYQ" rAlphabet = "PTLNBQDEOYSFAVZKGJRIHWXUMC" )   func Chao(text string, mode Mode, showSteps boo...
{"is_valid":true,"category":{"Go":true}}
single
Production teams refined their processes to minimize waste and improve overall yield. Network operators continually upgrade infrastructure to keep pace with growing demand. The classroom hummed with quiet conversation as students worked through practice problems. The committee scheduled a follow-up meeting to discuss t...
{"is_valid":true,"category":{"SQL":true}}
single
Software architects often debate the merits of monolithic versus microservice designs. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Please review the following snippet for issues: function median(ary) { if (ary.length == 0) return null; ary.sort(function (a,b){...
{"is_valid":true,"category":{"JavaScript":true}}
single
The neighborhood gathered every Saturday morning at the small farmers' market downtown. He walked along the river path, listening to the rustling of leaves overhead. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Database administrators monitor query performance and index u...
{"is_valid":true,"category":{"jq":true}}
single
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. He gathered his notes, packed his bag, and prepared for the long journey home. Researchers have been studying migration patterns of monarch butterflies for years. Long-distance running requires a combination of disciplined tra...
{"is_valid":true,"category":{"AWK":true}}
single
Policy analysts examined the long-term implications of the proposed legislative reform. Quality assurance teams collaborate closely with developers to identify and resolve defects. Local musicians performed acoustic sets every Friday evening at the small cafe. Statistical models can sometimes obscure the limitations of...
{"is_valid":true,"category":{"Batch":true,"AWK":true}}
multi
Energy researchers are exploring various pathways for reducing carbon emissions globally. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Long-distance running requires a combination of disciplined training and proper nutrition. Software architects often debate the merits of...
{"is_valid":true,"category":{"Java":true}}
single
Teachers reported that interactive learning tools improved student engagement significantly. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Project managers stressed the importance of clear documentation throughout the cycle. Hikers were advised to carry plenty of water and...
{"is_valid":true,"category":{"YAML":true}}
single
Climate scientists continue to refine their models in light of newly available data. Add comments to make this clearer: if let x = [4,3,5,9,2,3].maxElement() { print(x) // prints 9 } And separately, here's a related piece: resource "aws_s3_bucket" "dev_uploads_s3_bucket" { bucket = "digitalmarketplace-dev-uploads"...
{"is_valid":true,"category":{"Swift":true,"Terraform":true}}
multi
Add comments to make this clearer: function Get-StandardDeviation { begin { $avg = 0 $nums = @() } process { $nums += $_ $avg = ($nums | Measure-Object -Average).Average $sum = 0; $nums | ForEach-Object { $sum += ($avg - $_) * ($avg - $_) } [Math]::Sqr...
{"is_valid":true,"category":{"PowerShell":true}}
single
I copied this from the docs: object Ulam { fun generate(n: Int, i: Int = 1, c: Char = '*') { require(n > 1) val s = Array(n) { Array(n, { "" }) } var dir = Direction.RIGHT var y = n / 2 var x = if (n % 2 == 0) y - 1 else y // shift left for even n's for (j
{"is_valid":true,"category":{"Kotlin":true}}
single
The newly opened gallery showcased contemporary works by emerging regional artists. Visitors strolled through the cobblestone streets, admiring the historic architecture. The painting featured warm colors that evoked memories of childhood summers by the sea. She organized her bookshelves by genre and then alphabeticall...
{"is_valid":true,"category":{"Kotlin":true}}
single
The conference featured keynote speakers from a wide variety of academic backgrounds. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. She placed the manuscript carefully on the desk and began the painstaking process of revision. The classroom hummed with quiet conversation as s...
{"is_valid":true,"category":{"R":true}}
single
Please review the following snippet for issues: #!/usr/bin/awk -f BEGIN { print "<table>\n <thead align = \"right\">" printf " <tr><th></th><td>X</td><td>Y</td><td>Z</td></tr>\n </thead>\n <tbody align = \"right\">\n" for (i=1; i<=10; i++) { printf " <tr><td>%2i</td><td>%5i</td><td>%5i</td><td...
{"is_valid":true,"category":{"AWK":true}}
single
Refactor the function below: function Get-DigitalRoot ($n) { function Get-Digitalsum ($n) { if ($n -lt 10) {$n} else { ($n % 10) + (Get-DigitalSum ([math]::Floor($n / 10))) } }   $ap = 0 do {$n = Get-DigitalSum $n; $ap++} until ($n -lt 10) $Digi
{"is_valid":true,"category":{"PowerShell":true}}
single
He sat by the window with a steaming mug of tea and watched the snow gently falling. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Teachers reported that interactive learning too...
{"is_valid":true,"category":{"Perl":true,"R":true}}
multi
The painting featured warm colors that evoked memories of childhood summers by the sea. Researchers have been studying migration patterns of monarch butterflies for years. Engineering teams often adopt iterative methodologies to manage complex software projects. Quality assurance teams collaborate closely with develope...
{"is_valid":true,"category":{"C#":true}}
single
The morning light filtered through the kitchen window as the coffee brewed. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. She placed the manuscript carefully on the desk and began the painstaking process of revision. Public libraries have evolved into community hubs offering ...
{"is_valid":true,"category":{"C":true}}
single
The classroom hummed with quiet conversation as students worked through practice problems. Quick question about this snippet: # # Copyright 2008 The Android Open Source Project # # Zip alignment tool # LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_SRC_FILES := \ ZipAlign.cpp \ ZipEntry.cpp \ ZipFile.cpp...
{"is_valid":true,"category":{"Makefile":true}}
single
The community center offered free workshops on photography, pottery, and creative writing. Researchers gathered data from hundreds of households participating in the longitudinal study. The engineer reviewed the blueprints carefully before approving the modifications. Modern microprocessors rely on pipelining and out-o...
{"is_valid":true,"category":{"Scala":true}}
single
Astronomers observed a faint signal that appeared to originate from a distant galaxy. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Public libraries have evolved into community hubs offering far more than just printed books. Teachers reported that interactive learning tools i...
{"is_valid":true,"category":{"Perl":true,"C++":true}}
multi
Here is the code I was given: from sys import argv   unit2mult = {"arshin": 0.7112, "centimeter": 0.01, "diuym": 0.0254, "fut": 0.3048, "kilometer": 1000.0, "liniya": 0.00254, "meter": 1.0, "milia": 7467.6, "piad": 0.1778, "sazhen": 2.1336, "tochka": ...
{"is_valid":true,"category":{"Python":true}}
single
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Run the following: import Foundation   let monthDays = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334] let seasons = ["Chaos", "...
{"is_valid":true,"category":{"Swift":true}}
single
He sat by the window with a steaming mug of tea and watched the snow gently falling. Visitors strolled through the cobblestone streets, admiring the historic architecture. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Corporate training programs increasingly include module...
{"is_valid":true,"category":{"PowerShell":true}}
single
Project managers stressed the importance of clear documentation throughout the cycle. Production teams refined their processes to minimize waste and improve overall yield. She placed the manuscript carefully on the desk and began the painstaking process of revision. Teachers reported that interactive learning tools imp...
{"is_valid":true,"category":{"JavaScript":true}}
single
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. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Could you explain what this code does: us...
{"is_valid":true,"category":{"C#":true}}
single
The community center offered free workshops on photography, pottery, and creative writing. What does this output: object PrimaryMain extends App { Console.println("Hello World: " + (args mkString ", ")) }   object MainTheSecond extends App { Console.println("Goodbye, World: " + (args mkString ", ")) } Local musicians p...
{"is_valid":true,"category":{"Scala":true}}
single
Production teams refined their processes to minimize waste and improve overall yield. Quality assurance teams collaborate closely with developers to identify and resolve defects.
{"is_valid":false,"category":{}}
benign
Statistical models can sometimes obscure the limitations of the underlying data sources. Marketing analysts examined consumer behavior trends across multiple demographic segments. The committee scheduled a follow-up meeting to discuss the budget allocations. Modern microprocessors rely on pipelining and out-of-order ex...
{"is_valid":true,"category":{"Go":true}}
single
Visitors strolled through the cobblestone streets, admiring the historic architecture. The neighborhood gathered every Saturday morning at the small farmers' market downtown. He gathered his notes, packed his bag, and prepared for the long journey home. The newly opened gallery showcased contemporary works by emerging ...
{"is_valid":true,"category":{"C#":true}}
single
Quick question about this snippet: #include <stdlib.h> #include <string.h> #include <stdio.h>   double* fwd_diff(double* x, unsigned int len, unsigned int order) { unsigned int i, j; double* y;   /* handle two special cases */ if (order >= len) return 0;   y = malloc(sizeof(double) * len); if (!order) { me
{"is_valid":true,"category":{"C":true}}
single
Corporate training programs increasingly include modules on collaboration and communication. He sat by the window with a steaming mug of tea and watched the snow gently falling. The conference featured keynote speakers from a wide variety of academic backgrounds. He wandered through the old bookstore, occasionally pull...
{"is_valid":true,"category":{"Scala":true}}
single
Historians continue to debate the significance of the treaty signed in that pivotal year. Project managers stressed the importance of clear documentation throughout the cycle. Production teams refined their processes to minimize waste and improve overall yield. Children played in the park while their parents chatted on...
{"is_valid":true,"category":{"C":true}}
single
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Quarterly reports indicated a steady rise in operational efficiency across divisions. The engineer reviewed the blueprints carefully ...
{"is_valid":false,"category":{}}
benign
Network operators continually upgrade infrastructure to keep pace with growing demand. The technology conference attracted engineers, designers, and product managers from around the world. He walked along the river path, listening to the rustling of leaves overhead. The newly opened gallery showcased contemporary works...
{"is_valid":true,"category":{"C#":true,"Bash":true,"PowerShell":true}}
multi
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Project managers stressed the importance of clear documentation throughout the cycle. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. She organized her bookshelves by genre and the...
{"is_valid":true,"category":{"AWK":true}}
single
The classroom hummed with quiet conversation as students worked through practice problems. Refactor the function below: import Foundation   func lastSundays(of year: Int) -> [Date] {   let calendar = Calendar.current var dates = [Date]()   for month in 1...12 {   var dateComponents = DateComponents(calendar: calen...
{"is_valid":true,"category":{"Swift":true,"Rust":true}}
multi
Researchers gathered data from hundreds of households participating in the longitudinal study. Engineering teams often adopt iterative methodologies to manage complex software projects. Project managers stressed the importance of clear documentation throughout the cycle. She drafted a detailed agenda for the upcoming r...
{"is_valid":false,"category":{}}
benign
I copied this from the docs: # syntax: GAWK -f FEIGENBAUM_CONSTANT_CALCULATION.AWK BEGIN { a1 = 1 a2 = 0 d1 = 3.2 max_i = 13 max_j = 10 print(" i d") for (i=2; i<=max_i; i++) { a = a1 + (a1 - a2) / d1 for (j=1; j<=max_j; j++) { x = y = 0 for (k=1; k<=2^
{"is_valid":true,"category":{"AWK":true}}
single