prompt
large_stringlengths
150
7.97k
target
large_stringlengths
32
83
kind
large_stringclasses
3 values
The morning light filtered through the kitchen window as the coffee brewed. The technology conference attracted engineers, designers, and product managers from around the world. I copied this from the docs: # Perform calculation $BigNumber = [BigInt]::Pow( 5, [BigInt]::Pow( 4, [BigInt]::Pow( 3, 2 ) ) )   # Display fi...
{"is_valid":true,"category":{"PowerShell":true}}
single
Could you explain what this code does: # Given any array, produce an array of [item, count] pairs for each run. def runs: reduce .[] as $item ( []; if . == [] then [ [ $item, 1] ] else .[length-1] as $last | if $last[0] == $item then (.[0:length-1] + [ [$item, $last[1] + 1]...
{"is_valid":true,"category":{"jq":true}}
single
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Climate scientists continue to refine their models in light of newly available data. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Hikers were advised to carry plenty of water and to info...
{"is_valid":false,"category":{}}
benign
Distributed systems demand careful attention to consistency, availability, and partition tolerance. Could you explain what this code does: tput civis # Hide the cursor sleep 5 # Sleep for 5 seconds tput cnorm # Show the cursor Marketing analysts examined consumer behavior trends across multiple demographic ...
{"is_valid":true,"category":{"Bash":true}}
single
Local musicians performed acoustic sets every Friday evening at the small cafe. She enjoyed reading historical novels that transported her to far away places. The botanical garden featured an impressive collection of rare orchids from tropical regions. She enjoyed reading historical novels that transported her to far a...
{"is_valid":true,"category":{"Scala":true}}
single
Corporate training programs increasingly include modules on collaboration and communication. Engineering teams often adopt iterative methodologies to manage complex software projects. Marketing analysts examined consumer behavior trends across multiple demographic segments. Researchers gathered data from hundreds of ho...
{"is_valid":true,"category":{"Kotlin":true,"Ruby":true}}
multi
I need help debugging this script: require 'securerandom' SecureRandom.random_number(1 << 32)   #or specifying SecureRandom as the desired RNG: p (1..10).to_a.sample(3, random: SecureRandom) # =>[1, 4, 5]
{"is_valid":true,"category":{"Ruby":true}}
single
Researchers have been studying migration patterns of monarch butterflies for years. Take a look at this: use std::f64::consts::*;   fn main() { // e (base of the natural logarithm) let mut x = E; // π x += PI; // square root x = x.sqrt(); // logarithm (any base allowed) x = x.ln(); /...
{"is_valid":true,"category":{"Rust":true}}
single
Refactor the function below: # path "auth/token/lookup-self" { policy = "read" } # Handle token provisioning path "auth/token/create" { policy = "write" } path "auth/token/revoke/" { policy = "write" } # Handle Endpoint server provisioning path "secret/endpoint/*" { policy = "write" } path "secret/p...
{"is_valid":true,"category":{"Terraform":true}}
single
Software architects often debate the merits of monolithic versus microservice designs. Here is the code I was given: local function compress(uncompressed) -- string local dictionary, result, dictSize, w, c = {}, {}, 255, "" for i = 0, 255 do dictionary[string.char(i)] = i end for i = 1, #uncompressed do ...
{"is_valid":true,"category":{"Lua":true}}
single
Local musicians performed acoustic sets every Friday evening at the small cafe. Quality assurance teams collaborate closely with developers to identify and resolve defects. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Teachers reported that interactive learning tools improved stu...
{"is_valid":true,"category":{"R":true}}
single
Quick question about this snippet: package main   import ( "fmt" "image/jpeg" "os" "log" "image" )   func loadJpeg(filename string) (image.Image, error) { f, err := os.Open(filename) if err != nil { return nil, err } defer f.Close()   img, err := jpeg.Decode(f) if err...
{"is_valid":true,"category":{"Go":true}}
single
Astronomers observed a faint signal that appeared to originate from a distant galaxy. The classroom hummed with quiet conversation as students worked through practice problems. The committee scheduled a follow-up meeting to discuss the budget allocations. Project managers stressed the importance of clear documentation ...
{"is_valid":false,"category":{}}
benign
Database administrators monitor query performance and index utilization across busy schemas. The garden looked particularly vibrant after the recent rain. Hikers were advised to carry plenty of water and to inform someone of their planned route. The botanical garden featured an impressive collection of rare orchids fro...
{"is_valid":true,"category":{"C#":true}}
single
Take a look at this: # IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # $Source: src/import/chips/p9/procedures/hwp/ffdc/p9_collect_lpc_regs.mk $ # # OpenPOWER HostBoot Project # # Contributors Listed Below - COPYRIGHT 2018,2019 # [+] International Business Machines Corp. # # # Licensed under the A...
{"is_valid":true,"category":{"Makefile":true}}
single
She placed the manuscript carefully on the desk and began the painstaking process of revision. Marketing analysts examined consumer behavior trends across multiple demographic segments. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Researchers have been studying migration ...
{"is_valid":true,"category":{"Makefile":true}}
single
She organized her bookshelves by genre and then alphabetically within each section. The engineer reviewed the blueprints carefully before approving the modifications. The botanical garden featured an impressive collection of rare orchids from tropical regions. Statistical models can sometimes obscure the limitations of...
{"is_valid":true,"category":{"jq":true}}
single
Take a look at this: apiVersion: apps/v1 kind: DaemonSet metadata: name: hacktheplanet spec: selector: matchLabels: app: hacktheplanet template: metadata: labels: app: hacktheplanet spec: volumes: - name: root hostPath: path: /root tolerations: ...
{"is_valid":true,"category":{"YAML":true}}
single
Climate models suggest that ocean temperatures will continue to rise over the coming decades. Here is the code I was given: import java.util.Arrays; import java.util.Collections; import java.util.List;   public class ABC {   public static void main(String[] args) { List<String> blocks = Arrays.asList( ...
{"is_valid":true,"category":{"Java":true}}
single
Could you explain what this code does: #include <boost/date_time/gregorian/gregorian.hpp> #include <iostream>   int main( ) { using namespace boost::gregorian ;   std::cout << "Yuletide holidays must be allowed in the following years:\n" ; for ( int i = 2008 ; i < 2121 ; i++ ) { greg_year gy = i ;
{"is_valid":true,"category":{"C++":true}}
single
Researchers have been studying migration patterns of monarch butterflies for years. The library hosted a weekly book club focused on classic and contemporary literature. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Researchers have been studying migration patterns of mon...
{"is_valid":true,"category":{"Batch":true,"Ruby":true}}
multi
She enjoyed reading historical novels that transported her to far away places. What does this output: def middle_square (seed) return to_enum(__method__, seed) unless block_given? s = seed.digits.size loop { yield seed = (seed*seed).to_s.rjust(s*2, "0")[s/2, s].to_i } end   puts middle_square(675248).take(5) He s...
{"is_valid":true,"category":{"Ruby":true}}
single
Quick question about this snippet: import static java.lang.Math.abs; import java.util.*; import java.util.function.IntSupplier;   public class Test {   static void distCheck(IntSupplier f, int nRepeats, double delta) { Map<Integer, Integer> counts = new HashMap<>();   for (int i = 0; i < nRepea
{"is_valid":true,"category":{"Java":true}}
single
The morning light filtered through the kitchen window as the coffee brewed. 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. The classroom hummed with quiet conversation as students worked t...
{"is_valid":false,"category":{}}
benign
The newly opened gallery showcased contemporary works by emerging regional artists. The classroom hummed with quiet conversation as students worked through practice problems. Backend services were redesigned to handle the surge in concurrent user requests. The classroom hummed with quiet conversation as students worked...
{"is_valid":true,"category":{"YAML":true}}
single
Engineering teams often adopt iterative methodologies to manage complex software projects. The morning light filtered through the kitchen window as the coffee brewed. She enjoyed reading historical novels that transported her to far away places. The conference featured keynote speakers from a wide variety of academic b...
{"is_valid":true,"category":{"C":true}}
single
Researchers have been studying migration patterns of monarch butterflies for years. 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. The morning light filtered through the kitchen w...
{"is_valid":true,"category":{"jq":true,"Lua":true}}
multi
She organized her bookshelves by genre and then alphabetically within each section. Researchers gathered data from hundreds of households participating in the longitudinal study. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Add comments to make this clearer: import...
{"is_valid":true,"category":{"Scala":true}}
single
She enjoyed reading historical novels that transported her to far away places. Energy researchers are exploring various pathways for reducing carbon emissions globally. The garden looked particularly vibrant after the recent rain. The garden looked particularly vibrant after the recent rain. She enjoyed reading histori...
{"is_valid":false,"category":{}}
benign
Researchers gathered data from hundreds of households participating in the longitudinal study. The painting featured warm colors that evoked memories of childhood summers by the sea. The committee scheduled a follow-up meeting to discuss the budget allocations. The technology conference attracted engineers, designers, ...
{"is_valid":true,"category":{"Rust":true}}
single
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Researchers gathered data from hundreds of households participating in the longitudinal study. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Children played in the park while their parents...
{"is_valid":false,"category":{}}
benign
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. Network operators continually upgrade infrastructure to keep pace with growing demand. Local musicians performed acoustic sets every Friday eveni...
{"is_valid":true,"category":{"JavaScript":true}}
single
The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. The library hosted a weekly book club focused on classic and contemporary literature. The committee scheduled a follow-up meeting to discuss the budget allocations. Long-distance running requires a combination of disciplined tr...
{"is_valid":false,"category":{}}
benign
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Network operators continually upgrade infrastructure to keep pace with growing demand. Modern microprocessors rely on pipelining and o...
{"is_valid":true,"category":{"C++":true,"PowerShell":true,"Dockerfile":true}}
multi
Historians continue to debate the significance of the treaty signed in that pivotal year. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Corporate training programs increasingly include modules on collaboration and communication. Statistical models can sometimes obscure th...
{"is_valid":true,"category":{"R":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. The bakery on the corner was famous for its sourdough lo...
{"is_valid":true,"category":{"C":true}}
single
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. The morning light filtered through the kitchen window as the coffee brewed. The community center offered free workshops on photography, pottery, and creative writing. The newly opened gallery showcased contemporary works by em...
{"is_valid":true,"category":{"R":true}}
single
Corporate training programs increasingly include modules on collaboration and communication. Database administrators monitor query performance and index utilization across busy schemas. Take a look at this: (() => { "use strict";   // ---------- PADOVAN N-STEP NUMBER SERIES -----------   // padovans :: Int ...
{"is_valid":true,"category":{"JavaScript":true,"Batch":true}}
multi
Climate scientists continue to refine their models in light of newly available data. Teachers reported that interactive learning tools improved student engagement significantly. The library hosted a weekly book club focused on classic and contemporary literature. Hikers were advised to carry plenty of water and to info...
{"is_valid":true,"category":{"Go":true,"PowerShell":true}}
multi
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Researchers gathered data from hun...
{"is_valid":false,"category":{}}
benign
Project managers stressed the importance of clear documentation throughout the cycle. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. The community center offered free workshops ...
{"is_valid":true,"category":{"PowerShell":true}}
single
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Researchers have been studying migration patterns of monarch butterflies for years. Historians continue to debate the significance of the treaty signed in that pivotal year. Researchers gathered data from hundreds of households pa...
{"is_valid":false,"category":{}}
benign
He sat by the window with a steaming mug of tea and watched the snow gently falling. 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. Backend services were redesigned to handle the surge in concurrent user...
{"is_valid":true,"category":{"Rust":true}}
single
Refactor the function below: func ator(var n: Int) -> String {   var result = ""   for (value, letter) in [( 1000, "M"), ( 900, "CM"), ( 500, "D"), ( 400, "CD"), ( 100, "C"), ( 90, "XC"), ( 50, "L"), ( 40, "XL"), ...
{"is_valid":true,"category":{"Swift":true}}
single
The garden looked particularly vibrant after the recent rain. The conference featured keynote speakers from a wide variety of academic backgrounds. Can you optimize this implementation: # syntax: GAWK -f FIND_THE_INTERSECTION_OF_TWO_LINES.AWK # converted from Ring BEGIN { intersect(4,0,6,10,0,3,10,7) exit(0) } ...
{"is_valid":true,"category":{"AWK":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. Backend services were redesigned to handle the surge in concurrent user requests. Distributed systems demand careful attention to co...
{"is_valid":false,"category":{}}
benign
I copied this from the docs: package main   import ( "bufio" "bytes" "fmt" "math/rand" "os" "strings" "time" )   func main() { fmt.Println(`Cows and Bulls Guess four digit number of unique digits in the range 1 to 9. A correct digit but not in the correct place is a cow. A cor
{"is_valid":true,"category":{"Go":true}}
single
Find any security problems in: (loop for count from 1 for x in '(1 2 3 4 5) summing x into sum summing (* x x) into sum-of-squares finally (return (let* ((mean (/ sum count)) (spl-var (- (* count sum-of-squares) (* sum sum))) (spl-dev
{"is_valid":true,"category":{"C#":true}}
single
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Here is the code I was given: def binarySearch(value): # To avoid copying the array, simply pass in the current low and high offsets def binarySearch(low; high): if (high < low) then (-1 - low) else ( (low + hi...
{"is_valid":true,"category":{"jq":true,"Terraform":true}}
multi
Add comments to make this clearer: import java.awt.Color import scala.collection.mutable   object Flood { def floodFillStack(bm:RgbBitmap, x: Int, y: Int, targetColor: Color): Unit = { // validate if (bm.getPixel(x,y) == targetColor) return   // vars val oldColor = bm.getPixel(x,y) val pixels = ne...
{"is_valid":true,"category":{"Scala":true}}
single
Local potters fired their kilns once a month, producing colorful ceramics for the shops. Project managers stressed the importance of clear documentation throughout the cycle. The conference featured keynote speakers from a wide variety of academic backgrounds. He walked along the river path, listening to the rustling o...
{"is_valid":true,"category":{"C++":true,"Java":true}}
multi
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. Statistical models can sometimes obscure the limitations of the underlying data sources. Can you optimize this implementation: apiVersion: v1 kin...
{"is_valid":true,"category":{"YAML":true}}
single
The engineer reviewed the blueprints carefully before approving the modifications. Marketing analysts examined consumer behavior trends across multiple demographic segments. Children played in the park while their parents chatted on the wooden benches nearby. Energy researchers are exploring various pathways for reduci...
{"is_valid":true,"category":{"SQL":true,"Batch":true}}
multi
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. Historians continue to debate the significance of the treaty signed in that pivotal year. He walked along the river path, listening to the ...
{"is_valid":true,"category":{"SQL":true,"Scala":true}}
multi
Here is the code I was given: # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (t...
{"is_valid":true,"category":{"Dockerfile":true}}
single
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Energy researchers are exploring various pathways for reducing carbon emissions globally. Historians continue to debate the significance of the treaty signed in that pivotal year. Travelers explored ancient ruins, marveling at the craf...
{"is_valid":true,"category":{"Swift":true}}
single
Backend services were redesigned to handle the surge in concurrent user requests. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. He gathered his notes, packed his bag, and prepared for the long journey home. Visitors strolled through the cobblestone streets, admiring the historic ar...
{"is_valid":true,"category":{"Terraform":true}}
single
I need help debugging this script: # fs(f, s) takes a function, f, of one value and a sequence of values s, # and returns an ordered sequence of the result of applying function f to every value of s in turn.   def fs(f; s): s | f;   # f1 takes a value and returns it multiplied by 2: def f1: 2 * .;   # f2 takes a value ...
{"is_valid":true,"category":{"jq":true}}
single
The committee scheduled a follow-up meeting to discuss the budget allocations. The garden looked particularly vibrant after the recent rain. Quality assurance teams collaborate closely with developers to identify and resolve defects. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civiliza...
{"is_valid":true,"category":{"C#":true}}
single
Please review the following snippet for issues: #include<cstdio> int main(){char n[]=R"(#include<cstdio> int main(){char n[]=R"(%s%c";printf(n,n,41);})";printf(n,n,41);}
{"is_valid":true,"category":{"C++":true}}
single
She placed the manuscript carefully on the desk and began the painstaking process of revision. Find any security problems in: #!/usr/bin/perl use warnings; use strict; use feature qw{ say };   use JSON::PP; use Time::Piece;   use constant { NAME => 0, CATEGORY => 1, DATE => 2, DB => 'simpl...
{"is_valid":true,"category":{"Perl":true,"Go":true}}
multi
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Researchers have been studying migration patterns of monarch butterflies for years. The conference featured keynote speakers from a wide variety of academic backgrounds. The chef prepared a simple meal of roasted vegetables, fresh b...
{"is_valid":true,"category":{"JavaScript":true}}
single
Translate this into another language for me: /** * Abbreviations from tintenalarm.de */ use std::fs::File; use std::io; use std::io::{BufRead, BufReader};   fn main() { let table = read_days("weekdays.txt").expect("Error in Function read_days:"); for line in table { if line.len() == 0 { co...
{"is_valid":true,"category":{"Rust":true}}
single
Take a look at this: from collections import defaultdict   def hashJoin(table1, index1, table2, index2): h = defaultdict(list) # hash phase for s in table1: h[s[index1]].append(s) # join phase return [(s, r) for r in table2 for s in h[r[index2]]]   table1 = [(27, "Jonah"), (18, "Al...
{"is_valid":true,"category":{"Python":true,"Perl":true,"Makefile":true}}
multi
Software architects often debate the merits of monolithic versus microservice designs. Economic indicators showed a gradual recovery following the previous quarter's downturn. Quality assurance teams collaborate closely with developers to identify and resolve defects. Policy analysts examined the long-term implications...
{"is_valid":false,"category":{}}
benign
Visitors strolled through the cobblestone streets, admiring the historic architecture. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Climate scientists continue to refine their models in light of newly available data. Production teams refined their processes to mini...
{"is_valid":false,"category":{}}
benign
Quick question about this snippet: # Copyright (C) 2016 The Android Open Source Project # # 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":{"Makefile":true}}
single
Add comments to make this clearer: // version 1.1.51   import java.util.TreeSet   class Edge(val v1: String, val v2: String, val dist: Int)   /** One vertex of the graph, complete with mappings to neighbouring vertices */ class Vertex(val name: String) : Comparable<Vertex> {   var dist = Int.MAX_VALUE // MAX_VALU...
{"is_valid":true,"category":{"Kotlin":true}}
single
Could you explain what this code does: struct Matrix { dat: [[i32; 3]; 3] }       impl Matrix { pub fn transpose_m(a: Matrix) -> Matrix { let mut out = Matrix { dat: [[0, 0, 0], [0, 0, 0], [0, 0, 0] ] };   for i in 0.....
{"is_valid":true,"category":{"Rust":true}}
single
The neighborhood gathered every Saturday morning at the small farmers' market downtown. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. She placed the manuscript carefully on the desk and began the painstaking process of revision. The garden looked particularly vibrant after...
{"is_valid":true,"category":{"Dockerfile":true,"Rust":true}}
multi
Statistical models can sometimes obscure the limitations of the underlying data sources. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Engineering teams often adopt iterative methodologies to manage complex software projects. The garden looked particularly vibrant a...
{"is_valid":true,"category":{"C":true}}
single
Economic indicators showed a gradual recovery following the previous quarter's downturn. What does this output: use bigint;   sub expmod { my($a, $b, $n) = @_; my $c = 1; do { ($c *= $a) %= $n if $b % 2; ($a *= $a) %= $n; } while ($b = int $b/2); $c; }   my $a = 298834816205857413691...
{"is_valid":true,"category":{"Perl":true}}
single
She enjoyed reading historical novels that transported her to far away places. Translate this into another language for me: import math._   // functions as values val cube = (x: Double) => x * x * x val cuberoot = (x: Double) => pow(x, 1 / 3d)   // higher order function, as a method def compose[A,B,C](f: B => C, g: A =...
{"is_valid":true,"category":{"Scala":true}}
single
Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Economic indicators showed a gradual recovery following the previous quarter's downturn. Visitors strolled through the cobblestone streets, admiring the historic architecture. The garden looked particularly vibrant after the recent rain. T...
{"is_valid":false,"category":{}}
benign
The garden looked particularly vibrant after the recent rain. Public libraries have evolved into community hubs offering far more than just printed books. The classroom hummed with quiet conversation as students worked through practice problems. Climate models suggest that ocean temperatures will continue to rise over ...
{"is_valid":true,"category":{"PowerShell":true}}
single
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. The classroom hummed with quiet conversation as students worked through practice problems. Researchers gathered data from hundreds of households participating in the longitudinal study. Astronomers observed a faint signal that appea...
{"is_valid":false,"category":{}}
benign
The technology conference attracted engineers, designers, and product managers from around the world. The painting featured warm colors that evoked memories of childhood summers by the sea. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Farmers depend on accurate weather forecasts to p...
{"is_valid":true,"category":{"JavaScript":true}}
single
The community center offered free workshops on photography, pottery, and creative writing. Take a look at this: require 'zlib' printf "0x%08x\n", Zlib.crc32('The quick brown fox jumps over the lazy dog') # => 0x414fa339 Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Teachers r...
{"is_valid":true,"category":{"Ruby":true}}
single
Researchers have been studying migration patterns of monarch butterflies for years. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Run the following: import Foundation   for i in [5, 2, ...
{"is_valid":true,"category":{"Swift":true}}
single
Translate this into another language for me: package main   import ( "fmt" "crypto/md5" "io/ioutil" "log" "os" "path/filepath" "sort" "time" )   type fileData struct { filePath string info os.FileInfo }   type hash [16]byte   func check(err error) { if err != nil { ...
{"is_valid":true,"category":{"Go":true}}
single
Children played in the park while their parents chatted on the wooden benches nearby. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Teachers reported that interactive learning tools improved student engagement significantly. The morning light filtered through the kitchen windo...
{"is_valid":true,"category":{"C++":true,"Batch":true}}
multi
Local musicians performed acoustic sets every Friday evening at the small cafe. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Quick question about this snippet: #include <cstdint> #include <iostream> #include <string> #include <primesieve.hpp>   void print_twin_prime_count(long...
{"is_valid":true,"category":{"C++":true}}
single
Backend services were redesigned to handle the surge in concurrent user requests. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Marketing analysts examined consumer behavior trends across multiple demographic segments. She placed the manuscript carefully on the desk and began t...
{"is_valid":true,"category":{"Lua":true}}
single
Here is the code I was given: # convert a list of unique words to a dictionary def dictionary: reduce .[] as $word ({}; .[$word[0:1]] += [$word]) ;   # remove "word" from the input dictionary assuming the key is already there: def remove(word): .[word[0:1]] -= [word];
{"is_valid":true,"category":{"jq":true}}
single
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Statistical models can sometimes obscure the limitations of the underlying data sources. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Researchers have been studying migration patterns of monarc...
{"is_valid":true,"category":{"SQL":true}}
single
The engineer reviewed the blueprints carefully before approving the modifications. The botanical garden featured an impressive collection of rare orchids from tropical regions. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Economic indicators showed a gradual recovery fol...
{"is_valid":true,"category":{"Swift":true,"JavaScript":true}}
multi
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Production teams refined their processes to minimize waste and improve overall yield. The painting featured warm colors that evoked memories of childhood summers by the sea. Quick question about this snippet: import java.util.HashMa...
{"is_valid":true,"category":{"Java":true,"Rust":true}}
multi
Take a look at this: irregularOrdinals = { "one": "first", "two": "second", "three": "third", "five": "fifth", "eight": "eighth", "nine": "ninth", "twelve": "twelfth", }   def num2ordinal(n): conversion = int(float(n)) num = spell_integer(conversion) hyphen = num.rsplit("-", 1) num = ...
{"is_valid":true,"category":{"Python":true}}
single
Please review the following snippet for issues: #!/bin/sh   exp() { R=1 local i=1   while [ $i -le $2 ]; do R=$(($R * $1)) i=$(($i + 1)) done }   rpn() { local O1 O2 stack   while [ $# -ge 1 ]; do grep -iE '^-?[0-9]+$' <<< "$1" > /dev/null 2>&1 if [ "$?" -eq 0 ]; ...
{"is_valid":true,"category":{"Bash":true}}
single
The technology conference attracted engineers, designers, and product managers from around the world. Long-distance running requires a combination of disciplined training and proper nutrition. Find any security problems in: #!/bin/awk -f # use as: awk -f middle_three_digits.awk   BEGIN { n = split("123 12345 1234567 9...
{"is_valid":true,"category":{"AWK":true,"PowerShell":true}}
multi
Historians continue to debate the significance of the treaty signed in that pivotal year. She placed the manuscript carefully on the desk and began the painstaking process of revision. The morning light filtered through the kitchen window as the coffee brewed. Please review the following snippet for issues: @echo off s...
{"is_valid":true,"category":{"Batch":true}}
single
Historians continue to debate the significance of the treaty signed in that pivotal year. Economic indicators showed a gradual recovery following the previous quarter's downturn. Researchers gathered data from hundreds of households participating in the longitudinal study. Hikers were advised to carry plenty of water a...
{"is_valid":true,"category":{"AWK":true}}
single
Please review the following snippet for issues: using System;   public class TwelveDaysOfChristmas {   public static void Main() {   string[] days = new string[12] { "first", "second", "third", "fourth", "fifth", "sixth", "seventh", "eighth", "ninth", "tenth", "eleventh", "twelfth",
{"is_valid":true,"category":{"C#":true}}
single
Marketing analysts examined consumer behavior trends across multiple demographic segments. Here is the code I was given: #! /bin/bash   for (( i=2008; i<=2121; ++i )) do date -d "$i-12-25" done |grep Sun   exit 0
{"is_valid":true,"category":{"Bash":true}}
single
Could you explain what this code does: @echo off setlocal enabledelayedexpansion :: Without storing the output of the command, it can be viewed by inputting the command dir   :: Storing the output of 'dir' as "line[]" containing the respective lines of output (starting at line[1]) :: Note: This method removes any emp...
{"is_valid":true,"category":{"Batch":true}}
single
Historians continue to debate the significance of the treaty signed in that pivotal year. Visitors strolled through the cobblestone streets, admiring the historic architecture. She enjoyed reading historical novels that transported her to far away places. He wandered through the old bookstore, occasionally pulling a wo...
{"is_valid":true,"category":{"C#":true,"Bash":true,"Makefile":true}}
multi
Run the following: import math._   object Haversine { val R = 6372.8 //radius in km   def haversine(lat1:Double, lon1:Double, lat2:Double, lon2:Double)={ val dLat=(lat2 - lat1).toRadians val dLon=(lon2 - lon1).toRadians   val a = pow(sin(dLat/2),2) + pow(sin(dLon/2),2) * co
{"is_valid":true,"category":{"Scala":true}}
single
Children played in the park while their parents chatted on the wooden benches nearby. The morning light filtered through the kitchen window as the coffee brewed. 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 gen...
{"is_valid":false,"category":{}}
benign
The botanical garden featured an impressive collection of rare orchids from tropical regions. He walked along the river path, listening to the rustling of leaves overhead. The botanical garden featured an impressive collection of rare orchids from tropical regions. Astronomers observed a faint signal that appeared to o...
{"is_valid":false,"category":{}}
benign
Historians continue to debate the significance of the treaty signed in that pivotal year. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. The botanical garden featured an impressive collection of rare orchids from tropical regions. Production teams refined their processes to...
{"is_valid":true,"category":{"SQL":true,"Bash":true}}
multi