prompt
large_stringlengths
150
7.97k
target
large_stringlengths
32
83
kind
large_stringclasses
3 values
Quick question about this snippet: use strict; use warnings;   sub stern_brocot { my @list = (1, 1); sub { push @list, $list[0] + $list[1], $list[1]; shift @list; } }   { my $generator = stern_brocot; print join ' ', map &$generator, 1 .. 15; print "\n"; }   for (1 .. 10, 100) { my $index...
{"is_valid":true,"category":{"Perl":true,"PowerShell":true}}
multi
Can you optimize this implementation: extern crate rand;   trait Balanced { /// Returns true if the brackets are balanced fn is_balanced(&self) -> bool; }   impl<'a> Balanced for str { fn is_balanced(&self) -> bool { let mut count = 0;   for bracket in self.chars() { let change
{"is_valid":true,"category":{"Rust":true}}
single
Engineering teams often adopt iterative methodologies to manage complex software projects. The painting featured warm colors that evoked memories of childhood summers by the sea. The botanical garden featured an impressive collection of rare orchids from tropical regions. Backend services were redesigned to handle the ...
{"is_valid":true,"category":{"Bash":true}}
single
Historians continue to debate the significance of the treaty signed in that pivotal year. Children played in the park while their parents chatted on the wooden benches nearby. The painting featured warm colors that evoked memories of childhood summers by the sea. Translate this into another language for me: # SPDX-Lice...
{"is_valid":true,"category":{"YAML":true}}
single
She organized her bookshelves by genre and then alphabetically within each section. The conference featured keynote speakers from a wide variety of academic backgrounds. Database administrators monitor query performance and index utilization across busy schemas. Local musicians performed acoustic sets every Friday even...
{"is_valid":true,"category":{"Kotlin":true}}
single
He walked along the river path, listening to the rustling of leaves overhead. Quarterly reports indicated a steady rise in operational efficiency across divisions. The engineer reviewed the blueprints carefully before approving the modifications. Farmers depend on accurate weather forecasts to plan their planting and h...
{"is_valid":true,"category":{"Batch":true}}
single
Hikers were advised to carry plenty of water and to inform someone of their planned route. Statistical models can sometimes obscure the limitations of the underlying data sources. Researchers gathered data from hundreds of households participating in the longitudinal study. Astronomers observed a faint signal that appe...
{"is_valid":true,"category":{"AWK":true}}
single
Quarterly reports indicated a steady rise in operational efficiency across divisions. Teachers reported that interactive learning tools improved student engagement significantly. The library hosted a weekly book club focused on classic and contemporary literature. Volunteers spent the weekend cleaning up the riverside ...
{"is_valid":true,"category":{"Perl":true,"Go":true}}
multi
She placed the manuscript carefully on the desk and began the painstaking process of revision. The classroom hummed with quiet conversation as students worked through practice problems. Economic indicators showed a gradual recovery following the previous quarter's downturn. Production teams refined their processes to m...
{"is_valid":true,"category":{"Java":true}}
single
Take a look at this: // version 1.1.3   import javax.xml.parsers.DocumentBuilderFactory import org.xml.sax.InputSource import java.io.StringReader import javax.xml.xpath.XPathFactory import javax.xml.xpath.XPathConstants import org.w3c.dom.Node import org.w3c.dom.NodeList   val xml = """ <inventory title="OmniCorp Sto...
{"is_valid":true,"category":{"Kotlin":true}}
single
The neighborhood gathered every Saturday morning at the small farmers' market downtown. Can you optimize this implementation: sub urlencode { my $s = shift; $s =~ s/([^-A-Za-z0-9_.!~*'() ])/sprintf("%%%02X", ord($1))/eg; $s =~ tr/ /+/; return $s; }   print urlencode('http://foo bar/')."\n"; Network oper...
{"is_valid":true,"category":{"Perl":true}}
single
I need help debugging this script: from itertools import count from pprint import pformat import re import heapq     def pal_part_gen(odd=True): for i in count(1): fwd = str(i) rev = fwd[::-1][1:] if odd else fwd[::-1] yield int(fwd + rev)   def pal_ordered_gen(): yield from heapq.merge(...
{"is_valid":true,"category":{"Python":true,"Dockerfile":true}}
multi
Marketing analysts examined consumer behavior trends across multiple demographic segments. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. The morning light filtered through the kitchen window as the coffee brewed. The community center offered free workshops on photography, ...
{"is_valid":true,"category":{"YAML":true}}
single
The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Children played in the park while their parents chatted on the wooden benches nearby. Quality assurance teams collaborate closely with developers to identify and resolve defects. Distributed systems demand careful attention to ...
{"is_valid":true,"category":{"Python":true}}
single
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Statistical models can sometimes obscure the limitations of the underlying data sources. Climate scientists continue to refine their models in light of newly available data. Distributed systems demand careful attention to consiste...
{"is_valid":true,"category":{"Makefile":true}}
single
Can you optimize this implementation: package avl   // AVL tree adapted from Julienne Walker's presentation at // http://eternallyconfuzzled.com/tuts/datastructures/jsw_tut_avl.aspx. // This port uses similar indentifier names.   // The Key interface must be supported by data stored in the AVL tree. type Key interface ...
{"is_valid":true,"category":{"Go":true}}
single
Run the following: --could be done with a coroutine, but a simple closure works just as well. local function powgen(m) local count = 0 return function() count = count + 1 return count^m end end   local squares = powgen(2) local cubes = powgen(3)   local cowrap,coyield = coroutine.wrap, coroutine.yield   l...
{"is_valid":true,"category":{"Lua":true,"C++":true}}
multi
She enjoyed reading historical novels that transported her to far away places. Production teams refined their processes to minimize waste and improve overall yield. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. The chef prepared a simple meal of roasted vegetables, fresh b...
{"is_valid":true,"category":{"Makefile":true}}
single
The engineer reviewed the blueprints carefully before approving the modifications. Historians continue to debate the significance of the treaty signed in that pivotal year. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Could you explain what this code does: #include<stdio.h> ...
{"is_valid":true,"category":{"C":true}}
single
The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Researchers gathered data from hundreds of households participating in the longitudinal study. Quick question about this snippet: // version 1.1.2   import java.net.URLDecoder   fun main(args: Array<String>) { val encoded =...
{"is_valid":true,"category":{"Kotlin":true,"Terraform":true}}
multi
The engineer reviewed the blueprints carefully before approving the modifications. I copied this from the docs: /** * Copyright 2019 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 Licen...
{"is_valid":true,"category":{"Terraform":true}}
single
Please review the following snippet for issues: function range-expansion($array) { function expansion($arr) { if($arr) { $arr = $arr.Split(',') $arr | foreach{ $a = $_ $b, $c, $d, $e = $a.Split('-') switch($a) { $b...
{"is_valid":true,"category":{"PowerShell":true}}
single
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Historians continue to debate the significance of the treaty signed in that pivotal year. Hikers were advised to carry plenty of water and to inform someone of their planned route. Here is the code I was given: Math.E; //e Math...
{"is_valid":true,"category":{"Java":true}}
single
Here is the code I was given: import java.math.BigInteger; import static java.math.BigInteger.ONE;   public class PythTrip{   public static void main(String[] args){ long tripCount = 0, primCount = 0;   //change this to whatever perimeter limit you want;the RAM's the limit BigInteger periLim...
{"is_valid":true,"category":{"Java":true}}
single
The technology conference attracted engineers, designers, and product managers from around the world. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce.
{"is_valid":false,"category":{}}
benign
Take a look at this: using System; using System.Collections.Generic;   public class KaprekarNumbers {   /// <summary> /// The entry point of the program, where the program control starts and ends. /// </summary> public static void Main() { int count = 0;   foreach ( ulong i in _kaprekarG...
{"is_valid":true,"category":{"C#":true}}
single
The morning light filtered through the kitchen window as the coffee brewed. The newly opened gallery showcased contemporary works by emerging regional artists. She organized her bookshelves by genre and then alphabetically within each section. The neighborhood gathered every Saturday morning at the small farmers' marke...
{"is_valid":true,"category":{"Dockerfile":true,"Makefile":true}}
multi
Engineering teams often adopt iterative methodologies to manage complex software projects. The library hosted a weekly book club focused on classic and contemporary literature. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Production teams refined their processes to minimize waste...
{"is_valid":true,"category":{"Go":true,"Swift":true}}
multi
What does this output: // version 1.1   fun gss(seq: IntArray): Triple<Int, Int, Int> { if (seq.isEmpty()) throw IllegalArgumentException("Array cannot be empty") var sum: Int var maxSum = seq[0] var first = 0 var last = 0 for (i in 1 until seq.size) { sum = 0 fo
{"is_valid":true,"category":{"Kotlin":true}}
single
Please review the following snippet for issues: use std::{ collections::BTreeMap, fs::{read_dir, File}, hash::Hasher, io::Read, path::{Path, PathBuf}, };   type Duplicates = BTreeMap<(u64, u64), Vec<PathBuf>>;   struct DuplicateFinder { found: Duplicates, min_size: u64, }   impl DuplicateFin...
{"is_valid":true,"category":{"Rust":true}}
single
What does this output: package main   import ( "fmt" "math/rand" "time" )   // translation of pseudo-code func cocktailShakerSort(a []int) { var begin = 0 var end = len(a) - 2 for begin <= end { newBegin := end newEnd := begin for i := begin; i <= end; i++ { i...
{"is_valid":true,"category":{"Go":true,"Dockerfile":true}}
multi
Here is the code I was given: using System; using static System.Linq.Enumerable;   public class Program { static void Main() { string[] input = { "", "The better the 4-wheel drive, the further you'll be from help when ya get stuck!", "headmistressship", "\...
{"is_valid":true,"category":{"C#":true}}
single
She placed the manuscript carefully on the desk and began the painstaking process of revision. Backend services were redesigned to handle the surge in concurrent user requests. Project managers stressed the importance of clear documentation throughout the cycle. He wandered through the old bookstore, occasionally pulli...
{"is_valid":true,"category":{"JavaScript":true,"Python":true}}
multi
Historians continue to debate the significance of the treaty signed in that pivotal year. The morning light filtered through the kitchen window as the coffee brewed. Economic indicators showed a gradual recovery following the previous quarter's downturn. Statistical models can sometimes obscure the limitations of the u...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Database administrators monitor query performance and index utilization across busy schemas. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. The morning light filtered through the kitchen window as the coffee brewed. Researchers have been studying migration patterns of monar...
{"is_valid":true,"category":{"jq":true}}
single
Translate this into another language for me: :: Bulls and Cows Task from Rosetta Code :: Batch File Implementation   @echo off setlocal enabledelayedexpansion :: initialization :begin set "list_chars=123456789" set "list_length=9" set "code=" set "code_length=4" %== this should be less than 10 ==% set "tries=0" %=...
{"is_valid":true,"category":{"Batch":true}}
single
Please review the following snippet for issues: CREATE TABLE Detention (datetime_detention_start VARCHAR, teacher_id VARCHAR); CREATE TABLE Teachers (teacher_id VARCHAR, last_name VARCHAR); SELECT T1.datetime_detention_start, datetime_detention_end FROM Detention AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_...
{"is_valid":true,"category":{"SQL":true}}
single
He sat by the window with a steaming mug of tea and watched the snow gently falling. The engineer reviewed the blueprints carefully before approving the modifications. Can you optimize this implementation: public static boolean infinity(double numer, double denom){ return Double.isInfinite(numer/denom); } Travelers ex...
{"is_valid":true,"category":{"Java":true}}
single
The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. The morning light filtered through the kitchen window as the coffee brewed.
{"is_valid":false,"category":{}}
benign
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Quick question about this snippet: use strict; use warnings; use List::Util qw(min max);   sub jaro { my($s, $t) = @_; my(@s_matches, @t_matches, $matches);   return 1 if $s eq $t;   my($s_len, @s) = (length $s,...
{"is_valid":true,"category":{"Perl":true,"Lua":true}}
multi
Please review the following snippet for issues: @echo off setlocal enabledelayedexpansion   %===The Main Thing===% call :pangram "The quick brown fox jumps over the lazy dog." call :pangram "The quick brown fox jumped over the lazy dog." echo. pause exit /b 0   %===The Function===% :pangram set letters=abcdefgihjklmn...
{"is_valid":true,"category":{"Batch":true,"Rust":true}}
multi
What does this output: class Pixmap def draw_bezier_curve(points, colour) # ensure the points are increasing along the x-axis points = points.sort_by {|p| [p.x, p.y]} xmin = points[0].x xmax = points[-1].x increment = 2 prev = points[0] ((xmin + increment) .. xmax).step(increment) do |x| ...
{"is_valid":true,"category":{"Ruby":true}}
single
Backend services were redesigned to handle the surge in concurrent user requests. Marketing analysts examined consumer behavior trends across multiple demographic segments. Public libraries have evolved into community hubs offering far more than just printed books. Children played in the park while their parents chatte...
{"is_valid":true,"category":{"AWK":true}}
single
Can you optimize this implementation: # Input: a string # Output: a stream of sentence type indicators def sentenceTypes: def trim: sub("^ +";"") | sub(" +$";""); def parse: capture("(?<s>[^?!.]*)(?<p>[?!.])(?<remainder>.*)" ) // {p:"", remainder:""}; def encode: if . == "?" then "Q" elif . == "...
{"is_valid":true,"category":{"jq":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. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Find any security problems in: Console....
{"is_valid":true,"category":{"Scala":true}}
single
Refactor the function below: #!/usr/bin/awk -f   function clamp(val, a, b) { return (val<a) ? a : (val>b) ? b : val }   ## return a timestamp with centisecond precision function timex() { getline < "/proc/uptime" close("/proc/uptime") return $1 }   ## draw image to terminal function draw(src, xpos, ypos, w,h, ...
{"is_valid":true,"category":{"AWK":true}}
single
Take a look at this: BEGIN { # square size s = 256 # the PPM image header needs 3 lines: # P3 # width height # max colors number (per channel) print("P3\n", s, s, "\n", s - 1) # and now we generate pixels as a RGB pair in a relaxed # form "R G B\n" for (x = 0; x < s; x++) { ...
{"is_valid":true,"category":{"AWK":true}}
single
Project managers stressed the importance of clear documentation throughout the cycle. Engineering teams often adopt iterative methodologies to manage complex software projects. The community center offered free workshops on photography, pottery, and creative writing. Volunteers spent the weekend cleaning up the riversi...
{"is_valid":true,"category":{"R":true}}
single
He sat by the window with a steaming mug of tea and watched the snow gently falling. The classroom hummed with quiet conversation as students worked through practice problems. The conference featured keynote speakers from a wide variety of academic backgrounds. The bakery on the corner was famous for its sourdough loav...
{"is_valid":true,"category":{"Bash":true}}
single
Hikers were advised to carry plenty of water and to inform someone of their planned route. Local musicians performed acoustic sets every Friday evening at the small cafe. She organized her bookshelves by genre and then alphabetically within each section. Economic indicators showed a gradual recovery following the previ...
{"is_valid":true,"category":{"Bash":true}}
single
The library hosted a weekly book club focused on classic and contemporary literature. Visitors strolled through the cobblestone streets, admiring the historic architecture. The painting featured warm colors that evoked memories of childhood summers by the sea. He adjusted the telescope and waited patiently for the clou...
{"is_valid":true,"category":{"Java":true}}
single
The botanical garden featured an impressive collection of rare orchids from tropical regions. Network operators continually upgrade infrastructure to keep pace with growing demand. She organized her bookshelves by genre and then alphabetically within each section. He sat by the window with a steaming mug of tea and wat...
{"is_valid":true,"category":{"JavaScript":true}}
single
The community center offered free workshops on photography, pottery, and creative writing. Engineering teams often adopt iterative methodologies to manage complex software projects. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. The library hosted a weekly book club focused on classic ...
{"is_valid":true,"category":{"JavaScript":true,"Python":true}}
multi
Run the following: // Kotlin/Native Technology Preview   import kotlinx.cinterop.*   fun main(args: Array<String>) { val intVar = nativeHeap.alloc<IntVar>().apply { value = 42 } with(intVar) { println("Value is $value, address is $rawPtr") } intVar.value = 52 // create new value at thi
{"is_valid":true,"category":{"Kotlin":true}}
single
I copied this from the docs: # a and b are assumed to be non-zero integers def gcd(a; b): # subfunction expects [a,b] as input # i.e. a ~ .[0] and b ~ .[1] def rgcd: if .[1] == 0 then .[0] else [.[1], .[0] % .[1]] | rgcd end; [a,b] | rgcd;   # To take advantage of gojq's support for accurate ...
{"is_valid":true,"category":{"jq":true}}
single
Quick question about this snippet: import inspect   # Sample classes for inspection class Super(object): def __init__(self, name): self.name = name   def __str__(self): return "Super(%s)" % (self.name,)   def doSup(self): return 'did super stuff'   @classmethod def cls(cls): return 'cls method...
{"is_valid":true,"category":{"Python":true}}
single
The community center offered free workshops on photography, pottery, and creative writing. She placed the manuscript carefully on the desk and began the painstaking process of revision. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Energy researchers are exploring various ...
{"is_valid":true,"category":{"JavaScript":true}}
single
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Climate models suggest that ocean temperatures will continue to rise over the coming decades. The morning light filtered through the kitchen window as the coffee brewed. Visitors strolled through the cobblestone streets, admir...
{"is_valid":true,"category":{"Rust":true,"Swift":true}}
multi
Historians continue to debate the significance of the treaty signed in that pivotal year. Researchers gathered data from hundreds of households participating in the longitudinal study. Here is the code I was given: def is_ext(filename, extensions) if filename.respond_to?(:each) filename.each do |fn| is_ext...
{"is_valid":true,"category":{"Ruby":true}}
single
Backend services were redesigned to handle the surge in concurrent user requests. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. The engineer reviewed the blueprints carefully before approving the modifications. He adjusted the telescope and waited patiently for the clouds ...
{"is_valid":true,"category":{"Ruby":true,"Lua":true}}
multi
The morning light filtered through the kitchen window as the coffee brewed. Researchers gathered data from hundreds of households participating in the longitudinal study. The neighborhood gathered every Saturday morning at the small farmers' market downtown. The newly opened gallery showcased contemporary works by emer...
{"is_valid":true,"category":{"SQL":true}}
single
Economic indicators showed a gradual recovery following the previous quarter's downturn. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Volunteers spent the weekend cleaning up the...
{"is_valid":true,"category":{"Swift":true,"Bash":true,"AWK":true}}
multi
Local musicians performed acoustic sets every Friday evening at the small cafe. Translate this into another language for me: #include <stdio.h>   int main(int argc, char **argv) { printf("Executable: %s\n", argv[0]);   return 0; } He gathered his notes, packed his bag, and prepared for the long journey home. He sat b...
{"is_valid":true,"category":{"C":true}}
single
Refactor the function below: def is_prime: . as $n | if ($n < 2) then false elif ($n % 2 == 0) then $n == 2 elif ($n % 3 == 0) then $n == 3 elif ($n % 5 == 0) then $n == 5 elif ($n % 7 == 0) then $n == 7 elif ($n % 11 == 0) then $n == 11 elif ($n % 13 == 0) then $n == 13 elif...
{"is_valid":true,"category":{"jq":true}}
single
Statistical models can sometimes obscure the limitations of the underlying data sources. Policy analysts examined the long-term implications of the proposed legislative reform. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Find any security problems in: import java.util.stream...
{"is_valid":true,"category":{"Java":true}}
single
The morning light filtered through the kitchen window as the coffee brewed. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Researchers gathered data from hundreds of households part...
{"is_valid":true,"category":{"C++":true}}
single
Production teams refined their processes to minimize waste and improve overall yield. Here is the code I was given: // version 1.2.31   const val INDENT = 2   fun String.parseSExpr(): List<String>? { val r = Regex("""\s*("[^"]*"|\(|\)|"|[^\s()"]+)""") val t = r.findAll(this).map { it.value }.toMutableList() ...
{"is_valid":true,"category":{"Kotlin":true,"JavaScript":true}}
multi
Translate this into another language for me: def is_prime: . as $n | if ($n < 2) then false elif ($n % 2 == 0) then $n == 2 elif ($n % 3 == 0) then $n == 3 elif ($n % 5 == 0) then $n == 5 elif ($n % 7 == 0) then $n == 7 elif ($n % 11 == 0) then $n == 11 elif ($n % 13 == 0) then $...
{"is_valid":true,"category":{"jq":true,"Go":true,"Java":true}}
multi
The painting featured warm colors that evoked memories of childhood summers by the sea. 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. Travelers explored ancient ruins, marveling at the cr...
{"is_valid":true,"category":{"C++":true}}
single
Please review the following snippet for issues: package main   import ( "errors" "fmt" "strconv" "strings" )   func main() { rf, err := rangeFormat([]int{ 0, 1, 2, 4, 6, 7, 8, 11, 12, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 27, 28, 29, 30, 31, 32, 33, 35, 36, ...
{"is_valid":true,"category":{"Go":true}}
single
Run the following: // [dependencies] // radix_fmt = "1.0"   fn digit_product(base: u32, mut n: u32) -> u32 { let mut product = 1; while n != 0 { product *= n % base; n /= base; } product }   fn prime_factor_sum(mut n: u32) -> u32 { let mut sum = 0; while (n &
{"is_valid":true,"category":{"Rust":true}}
single
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Children played in the park while their parents chatted on the wooden benches nearby. Find any security problems in: def is_isbn13(n): n = n.replace('-','').replace(' ', '') if len(n) != 13: return False pro...
{"is_valid":true,"category":{"Python":true}}
single
Quality assurance teams collaborate closely with developers to identify and resolve defects. Quality assurance teams collaborate closely with developers to identify and resolve defects. Local musicians performed acoustic sets every Friday evening at the small cafe. The library hosted a weekly book club focused on class...
{"is_valid":true,"category":{"SQL":true,"Bash":true,"Lua":true}}
multi
Climate scientists continue to refine their models in light of newly available data. I need help debugging this script: # syntax: GAWK -f ALMOST_PRIME.AWK BEGIN { for (k=1; k<=5; k++) { printf("%d:",k) c = 0 i = 1 while (c < 10) { if (kprime(++i,k)) { printf(" %d",i) ...
{"is_valid":true,"category":{"AWK":true,"Go":true,"Kotlin":true}}
multi
I need help debugging this script: def Leonardo(L_Zero, L_One, Add, Amount): terms = [L_Zero,L_One] while len(terms) < Amount: new = terms[-1] + terms[-2] new += Add terms.append(new) return terms   out = "" print "First 25 Leonardo numbers:" for term in Leonardo(1,1,1,25): out +...
{"is_valid":true,"category":{"Python":true}}
single
Database administrators monitor query performance and index utilization across busy schemas. The newly opened gallery showcased contemporary works by emerging regional artists. She enjoyed reading historical novels that transported her to far away places. The painting featured warm colors that evoked memories of childh...
{"is_valid":true,"category":{"Go":true}}
single
Hikers were advised to carry plenty of water and to inform someone of their planned route. Hikers were advised to carry plenty of water and to inform someone of their planned route.
{"is_valid":false,"category":{}}
benign
She enjoyed reading historical novels that transported her to far away places. Network operators continually upgrade infrastructure to keep pace with growing demand. Add comments to make this clearer: function proper-divisor ($n) { if($n -ge 2) { $lim = [Math]::Floor([Math]::Sqrt($n)) $less, $greate...
{"is_valid":true,"category":{"PowerShell":true}}
single
Run the following: #!/usr/bin/python   def isDisarium(n): digitos = len(str(n)) suma = 0 x = n while x != 0: suma += (x % 10) ** digitos digitos -= 1 x //= 10 if suma == n: return True else: return False   if __name__ == '__main__': limite = 19 con...
{"is_valid":true,"category":{"Python":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. Local potters fired their kilns once a month, producing colorful ceramics for the shops. The engineer reviewed the blueprints carefully before a...
{"is_valid":false,"category":{}}
benign
Researchers have been studying migration patterns of monarch butterflies for years. Project managers stressed the importance of clear documentation throughout the cycle. Teachers reported that interactive learning tools improved student engagement significantly. He gathered his notes, packed his bag, and prepared for t...
{"is_valid":true,"category":{"R":true}}
single
She organized her bookshelves by genre and then alphabetically within each section. Network operators continually upgrade infrastructure to keep pace with growing demand. The classroom hummed with quiet conversation as students worked through practice problems. Climate scientists continue to refine their models in ligh...
{"is_valid":false,"category":{}}
benign
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. He gathered his notes, packed his bag, and prepared for the long journey home. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. She placed the manuscript carefully on the desk and began the pain...
{"is_valid":true,"category":{"YAML":true}}
single
The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Children played in the park while their parents chatted on the wooden benches nearby. Project managers stressed the importance of clear documentation throughout the cycle. Refactor the function below: <!-- ArchiSpiral.html --> ...
{"is_valid":true,"category":{"JavaScript":true}}
single
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. The painting featured warm colors that evoked memories of childhood summers by the sea. He walked along the river path, listening to the rustling of leaves overhead. The painting featured warm colors that evoked memories of chi...
{"is_valid":false,"category":{}}
benign
Project managers stressed the importance of clear documentation throughout the cycle. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings.
{"is_valid":false,"category":{}}
benign
Statistical models can sometimes obscure the limitations of the underlying data sources. The morning light filtered through the kitchen window as the coffee brewed. Local potters fired their kilns once a month, producing colorful ceramics for the shops. He adjusted the telescope and waited patiently for the clouds to c...
{"is_valid":true,"category":{"Ruby":true}}
single
I need help debugging this script: items = [ [:beef , 3.8, 36], [:pork , 5.4, 43], [:ham , 3.6, 90], [:greaves, 2.4, 45], [:flitch , 4.0, 30], [:brawn , 2.5, 56], [:welt , 3.7, 67], [:salami , 3.0, 95], [:sausage, 5.9, 98] ].
{"is_valid":true,"category":{"Ruby":true}}
single
The committee scheduled a follow-up meeting to discuss the budget allocations. She enjoyed reading historical novels that transported her to far away places. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. The chef prepared a simple meal of roasted vegetables, fresh bread, a...
{"is_valid":true,"category":{"C":true}}
single
Project managers stressed the importance of clear documentation throughout the cycle. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Network operators continually upgrade infrastructure to keep pace with growing demand. The painting featured warm colors that evoked memories...
{"is_valid":true,"category":{"Lua":true}}
single
Production teams refined their processes to minimize waste and improve overall yield. Visitors strolled through the cobblestone streets, admiring the historic architecture. The committee scheduled a follow-up meeting to discuss the budget allocations. The neighborhood gathered every Saturday morning at the small farmer...
{"is_valid":true,"category":{"Lua":true}}
single
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Please review the following snippet for issues: sub quick_sort { return @_ if @_ < 2; my $p = splice @_, int rand @_, 1; quick_s...
{"is_valid":true,"category":{"Perl":true}}
single
Software architects often debate the merits of monolithic versus microservice designs. I need help debugging this script: def isKPrime(n: Int, k: Int, d: Int = 2): Boolean = (n, k, d) match { case (n, k, _) if n == 1 => k == 0 case (n, _, d) if n % d == 0 => isKPrime(n / d, k - 1, d) case (_, _, _) => isKPr...
{"is_valid":true,"category":{"Scala":true}}
single
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Historians continue to debate the significance of the treaty signed in that pivotal year. Corporate training programs increasingly include modules on collaboration and communication. Corporate training programs increasingly inc...
{"is_valid":true,"category":{"C#":true}}
single
Researchers gathered data from hundreds of households participating in the longitudinal study. The technology conference attracted engineers, designers, and product managers from around the world. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. He walked along the river path...
{"is_valid":true,"category":{"SQL":true}}
single
The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. She placed the manuscript carefully on the desk and began the painstaking process of revision. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Quarterly reports indicated a steady rise i...
{"is_valid":true,"category":{"Ruby":true,"C++":true,"Bash":true}}
multi
The committee scheduled a follow-up meeting to discuss the budget allocations. The garden looked particularly vibrant after the recent rain. Historians continue to debate the significance of the treaty signed in that pivotal year. He walked along the river path, listening to the rustling of leaves overhead. Statistical...
{"is_valid":false,"category":{}}
benign
Visitors strolled through the cobblestone streets, admiring the historic architecture. Climate scientists continue to refine their models in light of newly available data. Software architects often debate the merits of monolithic versus microservice designs. Nutritionists generally recommend a balanced diet rich in who...
{"is_valid":true,"category":{"Swift":true}}
single
Please review the following snippet for issues: from functools import reduce from operator import mul from decimal import *   getcontext().prec = MAX_PREC   def expand(num): suffixes = [ # (name, min_abbreviation_length, base, exponent) ('greatgross', 7, 12, 3), ('gross', 2, 12, 2), ...
{"is_valid":true,"category":{"Python":true,"Terraform":true,"Ruby":true}}
multi
Energy researchers are exploring various pathways for reducing carbon emissions globally. Policy analysts examined the long-term implications of the proposed legislative reform. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. The botanical garden featured an impressive colle...
{"is_valid":true,"category":{"SQL":true}}
single