prompt
large_stringlengths
150
7.97k
target
large_stringlengths
32
83
kind
large_stringclasses
3 values
Teachers reported that interactive learning tools improved student engagement significantly. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Network operators continually upgrade infrastructure to keep pace with growing demand. The committee scheduled a follow-up meeting to discuss the ...
{"is_valid":true,"category":{"Java":true}}
single
Run the following: # syntax: GAWK -f NUMBER_NAMES.AWK BEGIN { init_numtowords() n = split("-10 0 .1 8 100 123 1001 99999 100000 9123456789 111000000111",arr," ") for (i=1; i<=n; i++) { printf("%s = %s\n",arr[i],numtowords(arr[i])) } exit(0) } # source: The AWK Programming Language, page 75 fun...
{"is_valid":true,"category":{"AWK":true}}
single
The committee scheduled a follow-up meeting to discuss the budget allocations. Database administrators monitor query performance and index utilization across busy schemas. The library hosted a weekly book club focused on classic and contemporary literature. The newly opened gallery showcased contemporary works by emerg...
{"is_valid":true,"category":{"YAML":true,"PowerShell":true}}
multi
Economic indicators showed a gradual recovery following the previous quarter's downturn. Climate scientists continue to refine their models in light of newly available data. Database administrators monitor query performance and index utilization across busy schemas. The committee scheduled a follow-up meeting to discus...
{"is_valid":false,"category":{}}
benign
The newly opened gallery showcased contemporary works by emerging regional artists. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Production teams refined their processes to minimize waste and improve overall yield. Production teams refined their processes to minimize waste and improv...
{"is_valid":true,"category":{"Go":true,"Dockerfile":true}}
multi
Take a look at this: /** * Copyright 2018 Google LLC * * 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 applic...
{"is_valid":true,"category":{"Terraform":true}}
single
Here is the code I was given: function Test-FileLock { Param ( [parameter(Mandatory=$true)] [string] $Path )   $outFile = New-Object System.IO.FileInfo $Path   if (-not(Test-Path -Path $Path)) { return $false }   try { $outStream = $outFile.Ope...
{"is_valid":true,"category":{"PowerShell":true}}
single
Astronomers observed a faint signal that appeared to originate from a distant galaxy. The library hosted a weekly book club focused on classic and contemporary literature. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. The chef prepared a simple meal of roasted vegetables, ...
{"is_valid":true,"category":{"Python":true}}
single
The community center offered free workshops on photography, pottery, and creative writing. Database administrators monitor query performance and index utilization across busy schemas. I copied this from the docs: # usage: gawk -f Idiomatically_determine_all_the_characters_that_can_be_used_for_symbols.awk   function is_...
{"is_valid":true,"category":{"AWK":true}}
single
I need help debugging this script: # # 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....
{"is_valid":true,"category":{"Dockerfile":true}}
single
Quick question about this snippet: using System; using System.Text; using System.Collections.Generic;   public class TokenizeAStringWithEscaping { public static void Main() { string testcase = "one^|uno||three^^^^|four^^^|^cuatro|"; foreach (var token in testcase.Tokenize(separator: '|', escape: '^'...
{"is_valid":true,"category":{"C#":true}}
single
Can you optimize this implementation: #include <gmpxx.h>   #include <algorithm> #include <cassert> #include <functional> #include <iostream> #include <vector>   using big_int = mpz_class;   const unsigned int small_primes[] = {2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, ...
{"is_valid":true,"category":{"C++":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. Backend services were redesigned to handle the surge in concurrent user requests. Researchers gathered data from hundreds of househol...
{"is_valid":true,"category":{"Makefile":true,"Lua":true}}
multi
Quick question about this snippet: import func Darwin.sqrt   func sqrt(x:Int) -> Int { return Int(sqrt(Double(x))) }   func properDivs(n: Int) -> [Int] {   if n == 1 { return [] }   var result = [Int]()   for div in filter (1...sqrt(n), { n % $0 == 0 }) {   result.append(div)   if n/div != d...
{"is_valid":true,"category":{"Swift":true}}
single
Historians continue to debate the significance of the treaty signed in that pivotal year. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Researchers gathered data from hundreds of households participating in the longitudinal study. He sat by the window with a steaming mug of tea a...
{"is_valid":true,"category":{"Terraform":true,"R":true}}
multi
The garden looked particularly vibrant after the recent rain. Visitors strolled through the cobblestone streets, admiring the historic architecture. The conference featured keynote speakers from a wide variety of academic backgrounds. She organized her bookshelves by genre and then alphabetically within each section. P...
{"is_valid":true,"category":{"Terraform":true}}
single
Run the following: // Node 5.4.1 tested implementation (ES6) "use strict";   let arr = [4, 9, 0, 3, 1, 5]; let isSorted = true; while (isSorted){ for (let i = 0; i< arr.length - 1;i++){ if (arr[i] > arr[i + 1]) { let temp = arr[i]; arr[i] = arr[i + 1]; ...
{"is_valid":true,"category":{"JavaScript":true}}
single
Take a look at this: fruit["apple"]=1; fruit["banana"]=2; fruit["cherry"]=3 fruit[1]="apple"; fruit[2]="banana"; fruit[3]="cherry" i=0; apple=++i; banana=++i; cherry=++i;
{"is_valid":true,"category":{"AWK":true}}
single
Local potters fired their kilns once a month, producing colorful ceramics for the shops. Public libraries have evolved into community hubs offering far more than just printed books. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. The chef prepared a simple meal of roasted ve...
{"is_valid":true,"category":{"Go":true}}
single
Statistical models can sometimes obscure the limitations of the underlying data sources. 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. He gathered his notes, packed his bag, and prepared for th...
{"is_valid":true,"category":{"AWK":true}}
single
Energy researchers are exploring various pathways for reducing carbon emissions globally. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. She enjoyed reading historical novels that transported her to far away places. Software architects often debate the merits of monolithic ...
{"is_valid":true,"category":{"Swift":true}}
single
She enjoyed reading historical novels that transported her to far away places. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. The garden looked particularly vibrant after the recent rain. Public libraries have evolved into community hubs offering far more than just printed...
{"is_valid":true,"category":{"JavaScript":true,"Kotlin":true}}
multi
Here is the code I was given: <script>   setTimeout(function () { document.write('Awake!') }, prompt("Number of milliseconds to sleep"));   document.write('Sleeping... ');   </script>
{"is_valid":true,"category":{"JavaScript":true}}
single
The morning light filtered through the kitchen window as the coffee brewed. Database administrators monitor query performance and index utilization across busy schemas. Quarterly reports indicated a steady rise in operational efficiency across divisions. Production teams refined their processes to minimize waste and im...
{"is_valid":true,"category":{"C++":true}}
single
He gathered his notes, packed his bag, and prepared for the long journey home. Refactor the function below: function binary_search(array, value, left, right, middle) { if (right < left) return 0 middle = int((right + left) / 2) if (value == array[middle]) return 1 if (value < array[middle]) ...
{"is_valid":true,"category":{"AWK":true,"R":true,"jq":true}}
multi
Energy researchers are exploring various pathways for reducing carbon emissions globally. Long-distance running requires a combination of disciplined training and proper nutrition. Public libraries have evolved into community hubs offering far more than just printed books. He adjusted the telescope and waited patiently...
{"is_valid":true,"category":{"PowerShell":true}}
single
The garden looked particularly vibrant after the recent rain. He sat by the window with a steaming mug of tea and watched the snow gently falling. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf....
{"is_valid":true,"category":{"YAML":true}}
single
The engineer reviewed the blueprints carefully before approving the modifications. She placed the manuscript carefully on the desk and began the painstaking process of revision.
{"is_valid":false,"category":{}}
benign
Corporate training programs increasingly include modules on collaboration and communication. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. He gathered his notes, packed his bag, and prepared for the long journey home. He walked along the river path, listening to the rustli...
{"is_valid":false,"category":{}}
benign
She placed the manuscript carefully on the desk and began the painstaking process of revision. Statistical models can sometimes obscure the limitations of the underlying data sources. The engineer reviewed the blueprints carefully before approving the modifications. Backend services were redesigned to handle the surge ...
{"is_valid":false,"category":{}}
benign
Software architects often debate the merits of monolithic versus microservice designs. 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 the snow gently falling. Database administrators monitor query performance and index ut...
{"is_valid":true,"category":{"Terraform":true}}
single
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Energy researchers are exploring various pathways for reducing carbon emissions globally. Teachers reported that interactive learning tools imp...
{"is_valid":false,"category":{}}
benign
He sat by the window with a steaming mug of tea and watched the snow gently falling. Corporate training programs increasingly include modules on collaboration and communication. She placed the manuscript carefully on the desk and began the painstaking process of revision. Climate models suggest that ocean temperatures ...
{"is_valid":false,"category":{}}
benign
I need help debugging this script: function Get-ChineseZodiac { [CmdletBinding()] [OutputType([PSCustomObject])] Param ( [Parameter(Mandatory=$false, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true, Position=0)] [Val...
{"is_valid":true,"category":{"PowerShell":true,"Perl":true,"Ruby":true}}
multi
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Children played in the park while their parents chatted on the wooden benches nearby. Project managers stressed the importance of clear ...
{"is_valid":true,"category":{"Swift":true}}
single
Visitors strolled through the cobblestone streets, admiring the historic architecture. Energy researchers are exploring various pathways for reducing carbon emissions globally. Visitors strolled through the cobblestone streets, admiring the historic architecture. The newly opened gallery showcased contemporary works by...
{"is_valid":true,"category":{"Batch":true}}
single
I copied this from the docs: package main   import ( "fmt" "os" )   var ( x = []float64{1, 2, 3, 1e11} y = []float64{1, 1.4142135623730951, 1.7320508075688772, 316227.76601683791}   xprecision = 3 yprecision = 5 )   func main() { if len(x) != len(y) { fmt.Println("x, y different leng...
{"is_valid":true,"category":{"Go":true,"Swift":true}}
multi
Engineering teams often adopt iterative methodologies to manage complex software projects. Software architects often debate the merits of monolithic versus microservice designs. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Add comments to make this clearer: library(digest) h...
{"is_valid":true,"category":{"R":true}}
single
Find any security problems in: -- Take decimal number, return binary string function dec2bin (n) local bin, bit = "" while n > 0 do bit = n % 2 n = math.floor(n / 2) bin = bit .. bin end return bin end   -- Take decimal number, return population count as number function popCount ...
{"is_valid":true,"category":{"Lua":true,"JavaScript":true,"Java":true}}
multi
He sat by the window with a steaming mug of tea and watched the snow gently falling. He walked along the river path, listening to the rustling of leaves overhead. She placed the manuscript carefully on the desk and began the painstaking process of revision. The chef prepared a simple meal of roasted vegetables, fresh b...
{"is_valid":true,"category":{"Go":true,"AWK":true}}
multi
The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Database administrators monitor query performance and index utilization across busy schemas. Project managers stressed the importance of clear documentation throughout the cycle. Teachers reported that interactive learning tool...
{"is_valid":true,"category":{"AWK":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. Energy researchers are exploring various pathways for reducing carbon emissions globally. The morning light filtered through the kitchen wind...
{"is_valid":false,"category":{}}
benign
Refactor the function below: #!perl use 5.010; use strict; use warnings qw(FATAL all);   my $balanced = qr{([^<>,]++|<(?-1),(?-1),(?-1),(?-1)>)}; my ($a, $b, $c, $d, $x, $y, $z) = map +qr((?<$_>$balanced)), 'a'..'d', 'x'..'z'; my $col = qr{(?<col>[RB])};   sub balance { local $_ = shift; if( /^<B,<R,<R,$a,$x,$b>,$y,...
{"is_valid":true,"category":{"Perl":true,"C++":true}}
multi
Take a look at this: package main   import "fmt"   func enc(b int) int { return b ^ b>>1 }   func dec(g int) (b int) { for ; g != 0; g >>= 1 { b ^= g } return }   func main() { fmt.Println("decimal binary gray decoded") for b := 0; b < 32; b++ { g := enc(b) d := dec...
{"is_valid":true,"category":{"Go":true}}
single
The painting featured warm colors that evoked memories of childhood summers by the sea. Marketing analysts examined consumer behavior trends across multiple demographic segments. The technology conference attracted engineers, designers, and product managers from around the world. Policy analysts examined the long-term ...
{"is_valid":false,"category":{}}
benign
The botanical garden featured an impressive collection of rare orchids from tropical regions. Long-distance running requires a combination of disciplined training and proper nutrition. Climate scientists continue to refine their models in light of newly available data. He sat by the window with a steaming mug of tea an...
{"is_valid":true,"category":{"Perl":true,"Ruby":true}}
multi
Astronomers observed a faint signal that appeared to originate from a distant galaxy. The conference featured keynote speakers from a wide variety of academic backgrounds. Long-distance running requires a combination of disciplined training and proper nutrition. The community center offered free workshops on photograph...
{"is_valid":true,"category":{"Lua":true,"Batch":true}}
multi
The engineer reviewed the blueprints carefully before approving the modifications. He walked along the river path, listening to the rustling of leaves overhead. Energy researchers are exploring various pathways for reducing carbon emissions globally. The bakery on the corner was famous for its sourdough loaves and seas...
{"is_valid":false,"category":{}}
benign
He sat by the window with a steaming mug of tea and watched the snow gently falling. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Researchers gathered data from hundreds of house...
{"is_valid":true,"category":{"Bash":true,"Lua":true}}
multi
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Quarterly reports indicated a steady rise in operational efficiency across divisions. The morning light filtered through the kitchen window as the coffee brewed. Engineering teams often adopt iterative methodologies to manage complex s...
{"is_valid":true,"category":{"Lua":true}}
single
I copied this from the docs: function isEven { param ([int]$value) return [bool]($value % 2 -eq 0) }   function doubleValue { param ([int]$value) return [int]($value * 2) }   function halveValue { param ([int]$value) return [int]($value / 2) }   function multiplyValues { param ( [int]$plier, [int]$plicand, ...
{"is_valid":true,"category":{"PowerShell":true}}
single
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Could you explain what this code does: # 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 ob...
{"is_valid":true,"category":{"Dockerfile":true,"Makefile":true,"Bash":true}}
multi
The committee scheduled a follow-up meeting to discuss the budget allocations. Here is the code I was given: use ntheory qw/divisors powmod is_prime/;   sub is_long_prime { my($p) = @_; return 0 unless is_prime($p); for my $d (divisors($p-1)) { return $d+1 == $p if powmod(10, $d, $p) == 1; } ...
{"is_valid":true,"category":{"Perl":true,"C++":true,"Python":true}}
multi
Researchers have been studying migration patterns of monarch butterflies for years. Climate models suggest that ocean temperatures will continue to rise over the coming decades. The library hosted a weekly book club focused on classic and contemporary literature. Production teams refined their processes to minimize was...
{"is_valid":true,"category":{"Terraform":true,"Rust":true}}
multi
Here is the code I was given: import random   def partition(vector, left, right, pivotIndex): pivotValue = vector[pivotIndex] vector[pivotIndex], vector[right] = vector[right], vector[pivotIndex] # Move pivot to end storeIndex = left for i in range(left, right): if vector[i] < pivotValue: ...
{"is_valid":true,"category":{"Python":true}}
single
Astronomers observed a faint signal that appeared to originate from a distant galaxy. Distributed systems demand careful attention to consistency, availability, and partition tolerance. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Find any security problems in: local Y = funct...
{"is_valid":true,"category":{"Lua":true,"C++":true}}
multi
Quick question about this snippet: func duration (_ secs:Int) -> String { if secs <= 0 { return "" } let units = [(604800,"wk"), (86400,"d"), (3600,"hr"), (60,"min")] var secs = secs var result = "" for (period, unit) in units { if secs >= period { result += "\(secs/period) \(u...
{"is_valid":true,"category":{"Swift":true,"Perl":true,"Terraform":true}}
multi
The neighborhood gathered every Saturday morning at the small farmers' market downtown. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Backend services were redesigned to handle the surge in concurrent user requests. Database administrators monitor query performance and index util...
{"is_valid":true,"category":{"YAML":true}}
single
The classroom hummed with quiet conversation as students worked through practice problems. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. He sat by the window with a steaming mug of tea and watched the snow gently falling. Climate scientists continue to refine their models ...
{"is_valid":true,"category":{"Perl":true}}
single
The classroom hummed with quiet conversation as students worked through practice problems. Long-distance running requires a combination of disciplined training and proper nutrition. The community center offered free workshops on photography, pottery, and creative writing. Public libraries have evolved into community hu...
{"is_valid":true,"category":{"SQL":true}}
single
Could you explain what this code does: # 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,"Java":true}}
multi
I need help debugging this script: ::NOTE #1: This implementation might crash, or might not work properly if ::you put some of the CMD special characters (ex. %,!, etc) inside the strings. :: ::NOTE #2: The comparisons here are case-SENSITIVE. ::NOTE #3: Spaces in strings are considered.   @echo off setlocal enabledela...
{"is_valid":true,"category":{"Batch":true}}
single
Climate models suggest that ocean temperatures will continue to rise over the coming decades. Local potters fired their kilns once a month, producing colorful ceramics for the shops. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Database administrators monitor query performance an...
{"is_valid":false,"category":{}}
benign
The neighborhood gathered every Saturday morning at the small farmers' market downtown. Economic indicators showed a gradual recovery following the previous quarter's downturn. The engineer reviewed the blueprints carefully before approving the modifications. Children played in the park while their parents chatted on t...
{"is_valid":true,"category":{"C#":true}}
single
He sat by the window with a steaming mug of tea and watched the snow gently falling. Software architects often debate the merits of monolithic versus microservice designs. Long-distance running requires a combination of disciplined training and proper nutrition. Statistical models can sometimes obscure the limitations ...
{"is_valid":true,"category":{"Lua":true,"Java":true}}
multi
Translate this into another language for me: from random import shuffle, randrange   def make_maze(w = 16, h = 8): vis = [[0] * w + [1] for _ in range(h)] + [[1] * (w + 1)] ver = [["| "] * w + ['|'] for _ in range(h)] + [[]] hor = [["+--"] * w + ['+'] for _ in range(h + 1)]   def walk(x, y): vi...
{"is_valid":true,"category":{"Python":true}}
single
Run the following: var args = process.argv.slice(2);   function time_to_seconds( hms ) { var parts = hms.split(':'); var h = parseInt(parts[0]); var m = parseInt(parts[1]); var s = parseInt(parts[2]); if ( h < 12 ) { h += 24; } var seconds = parseInt(parts[0]) * 60 * 60 + parseInt(p...
{"is_valid":true,"category":{"JavaScript":true}}
single
I copied this from the docs: /* Demonstrate toupper and tolower for standard C strings. This does not work for multibyte character sets. */ #include <ctype.h> #include <stdio.h>   /* upper-cases s in place */ void str_toupper(char *s) { while(*s) { *s=toupper(*s); s++; } }     /* lowe...
{"is_valid":true,"category":{"C":true}}
single
Economic indicators showed a gradual recovery following the previous quarter's downturn. Researchers have been studying migration patterns of monarch butterflies for years. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. The community center offered free workshops on photography, po...
{"is_valid":true,"category":{"Rust":true,"Go":true}}
multi
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Project managers stressed the importance of clear documentation throughout the cycle. Network operators continually upgrade infrastructure to keep pace with growing demand. Corporate training programs increasingly include modul...
{"is_valid":true,"category":{"Python":true}}
single
Could you explain what this code does: # DO NOT EDIT FILES CALLED 'Dockerfile'; they are automatically # generated. Edit 'Dockerfile.in' and generate the 'Dockerfile' # with the 'rake' command. # The suggested name for this image is: <%= image_name %>. FROM <%= parent %>2 MAINTAINER sneumann@ipb-halle.de LABEL stat...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Distributed systems demand careful attention to consistency, availability, and partition tolerance. Find any security problems in: class Camera: pass #functions go here...
{"is_valid":true,"category":{"Python":true}}
single
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Could you explain what this code does: object TopicVar extends App { class SuperString(val org: String){ def it(): Unit = println(o...
{"is_valid":true,"category":{"Scala":true}}
single
Translate this into another language for me: using static System.Console; using System; using System.Linq; using System.Collections.Generic;   public class Program { public static void Main() { const int limit = 1_000_000; WriteLine("First 20:"); WriteLine(FindEmirpPrimes(limit).Take(20).Del...
{"is_valid":true,"category":{"C#":true}}
single
Policy analysts examined the long-term implications of the proposed legislative reform. Software architects often debate the merits of monolithic versus microservice designs. Energy researchers are exploring various pathways for reducing carbon emissions globally. She enjoyed reading historical novels that transported ...
{"is_valid":false,"category":{}}
benign
The newly opened gallery showcased contemporary works by emerging regional artists. Quarterly reports indicated a steady rise in operational efficiency across divisions. Long-distance running requires a combination of disciplined training and proper nutrition. The community center offered free workshops on photography,...
{"is_valid":true,"category":{"Ruby":true,"Go":true}}
multi
He sat by the window with a steaming mug of tea and watched the snow gently falling. She enjoyed reading historical novels that transported her to far away places. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Run the following: var fso = new ActiveXObject("Scripting.FileSystemObject"...
{"is_valid":true,"category":{"JavaScript":true}}
single
Project managers stressed the importance of clear documentation throughout the cycle. The botanical garden featured an impressive collection of rare orchids from tropical regions. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Quality assurance teams collaborate closely wit...
{"is_valid":true,"category":{"Rust":true}}
single
Local musicians performed acoustic sets every Friday evening at the small cafe. The garden looked particularly vibrant after the recent rain. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Researchers gathered data from hundreds of households participating in the longitudinal study. He...
{"is_valid":false,"category":{}}
benign
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. Take a look at this: $ syntax expr: .(). + .() is -> 7; Policy analysts examined the long-term implications of the proposed legisla...
{"is_valid":true,"category":{"Ruby":true}}
single
The library hosted a weekly book club focused on classic and contemporary literature. She organized her bookshelves by genre and then alphabetically within each section. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. The garden looked particularly vibrant after the recent rain. Loc...
{"is_valid":true,"category":{"Go":true,"YAML":true,"Python":true}}
multi
The classroom hummed with quiet conversation as students worked through practice problems. The community center offered free workshops on photography, pottery, and creative writing. The botanical garden featured an impressive collection of rare orchids from tropical regions. Marketing analysts examined consumer behavio...
{"is_valid":true,"category":{"Java":true}}
single
Visitors strolled through the cobblestone streets, admiring the historic architecture. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Policy analysts examined the long-term implications of the ...
{"is_valid":true,"category":{"C++":true,"Rust":true}}
multi
Find any security problems in: #include <array> #include <iostream> #include <fstream> #include <map> #include <string> #include <vector> #include <boost/program_options.hpp>   // A multiset specialized for strings consisting of lowercase // letters ('a' to 'z'). class letterset { public: letterset() {
{"is_valid":true,"category":{"C++":true}}
single
Quick question about this snippet: def print_verse(n): l = ['b', 'f', 'm'] s = n[1:] if str.lower(n[0]) in l: l[l.index(str.lower(n[0]))] = '' elif n[0] in ['A', 'E', 'I', 'O', 'U']: s = str.lower(n) print('{0}, {0}, bo-{2}{1}\nBanana-fana fo-{3}{1}\nFee-fi-mo-{4}{1}\n{0}!\n'.format(...
{"is_valid":true,"category":{"Python":true}}
single
Take a look at this: ######################################################################## # conf/googlebenchmark.mk # # ========================= # # # # Depen...
{"is_valid":true,"category":{"Makefile":true}}
single
Here is the code I was given: #!/usr/bin/perl   use strict; # https://rosettacode.org/wiki/Minimal_steps_down_to_1 use warnings; no warnings 'recursion'; use List::Util qw( first ); use Data::Dump 'dd';   for ( [ 2000, [2, 3], [1] ], [ 2000, [2, 3], [2] ] ) { my ( $n, $div, $sub ) = @$_; print "\n", '-'
{"is_valid":true,"category":{"Perl":true}}
single
She organized her bookshelves by genre and then alphabetically within each section. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Policy analysts examined the long-term implications of the proposed legislative reform. The library hosted a weekly book club focused on classic and co...
{"is_valid":true,"category":{"Terraform":true}}
single
She organized her bookshelves by genre and then alphabetically within each section. Hikers were advised to carry plenty of water and to inform someone of their planned route. Production teams refined their processes to minimize waste and improve overall yield. Translate this into another language for me: #!/usr/bin/per...
{"is_valid":true,"category":{"Perl":true}}
single
The morning light filtered through the kitchen window as the coffee brewed. Researchers gathered data from hundreds of households participating in the longitudinal study. Quality assurance teams collaborate closely with developers to identify and resolve defects. Quality assurance teams collaborate closely with develop...
{"is_valid":true,"category":{"AWK":true}}
single
Public libraries have evolved into community hubs offering far more than just printed books. He sat by the window with a steaming mug of tea and watched the snow gently falling. I copied this from the docs: apiVersion: v1 data: mysql-password: enkwQm9XcGN3bQ== mysql-root-password: YUFFRlNFWmtYMg== kind: Secret meta...
{"is_valid":true,"category":{"YAML":true}}
single
Project managers stressed the importance of clear documentation throughout the cycle. Could you explain what this code does: #include <stdio.h> #include <ctype.h> #include <string.h> #include <stdlib.h>   #define TRUE 1 #define FALSE 0   #define FACES "23456789tjqka" #define SUITS "shdc"   typedef int bool;   typedef s...
{"is_valid":true,"category":{"C":true}}
single
Distributed systems demand careful attention to consistency, availability, and partition tolerance. Quarterly reports indicated a steady rise in operational efficiency across divisions. Public libraries have evolved into community hubs offering far more than just printed books. The neighborhood gathered every Saturday ...
{"is_valid":true,"category":{"AWK":true}}
single
The technology conference attracted engineers, designers, and product managers from around the world. Could you explain what this code does: var R = [null, 1]; var S = [null, 2];   var extend_sequences = function (n) { var current = Math.max(R[R.length-1],S[S.length-1]); var i; while (R.length <= n || S.length <= n)...
{"is_valid":true,"category":{"JavaScript":true,"C++":true}}
multi
Project managers stressed the importance of clear documentation throughout the cycle. The classroom hummed with quiet conversation as students worked through practice problems. Hikers were advised to carry plenty of water and to inform someone of their planned route. Climate scientists continue to refine their models i...
{"is_valid":true,"category":{"Batch":true}}
single
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Policy analysts examined the long-term implications of the proposed legislative reform. Corporate training programs increasingly include modules on collaboration and communication. Local potters fired their kilns once a month, producin...
{"is_valid":true,"category":{"C":true,"Lua":true}}
multi
Economic indicators showed a gradual recovery following the previous quarter's downturn. Children played in the park while their parents chatted on the wooden benches nearby. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Local potters fired their kilns once a month, produc...
{"is_valid":true,"category":{"Perl":true}}
single
The garden looked particularly vibrant after the recent rain. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Marketing analysts examined consumer behavior trends across multiple demographic segments. Marketing analysts examined consumer behavior trends across multiple demog...
{"is_valid":false,"category":{}}
benign
The neighborhood gathered every Saturday morning at the small farmers' market downtown. Run the following: package main   import "fmt"   func main() { fmt.Println("Police Sanitation Fire") fmt.Println("------ ---------- ----") count := 0 for i := 2; i < 7; i += 2 { for j := 1; j < 8; j++ { ...
{"is_valid":true,"category":{"Go":true}}
single
What does this output: class Task : Comparable, CustomStringConvertible { var priority : Int var name: String init(priority: Int, name: String) { self.priority = priority self.name = name } var description: String { return "\(priority), \(name)" } } func ==(t1: Task, t2: Task) -> Bool { return...
{"is_valid":true,"category":{"Swift":true}}
single