prompt
large_stringlengths
150
7.97k
target
large_stringlengths
32
83
kind
large_stringclasses
3 values
Local musicians performed acoustic sets every Friday evening at the small cafe. Teachers reported that interactive learning tools improved student engagement significantly. Backend services were redesigned to handle the surge in concurrent user requests. Climate models suggest that ocean temperatures will continue to r...
{"is_valid":true,"category":{"Ruby":true}}
single
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. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Database administrators monitor query performance and i...
{"is_valid":true,"category":{"JavaScript":true}}
single
She enjoyed reading historical novels that transported her to far away places. Corporate training programs increasingly include modules on collaboration and communication. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. The botanical garden featured an impressive collection ...
{"is_valid":true,"category":{"JavaScript":true,"R":true,"Ruby":true}}
multi
Project managers stressed the importance of clear documentation throughout the cycle. He walked along the river path, listening to the rustling of leaves overhead. The morning light filtered through the kitchen window as the coffee brewed. Farmers depend on accurate weather forecasts to plan their planting and harvesti...
{"is_valid":true,"category":{"C#":true}}
single
Project managers stressed the importance of clear documentation throughout the cycle. He walked along the river path, listening to the rustling of leaves overhead. Production teams refined their processes to minimize waste and improve overall yield. Project managers stressed the importance of clear documentation throug...
{"is_valid":true,"category":{"Ruby":true}}
single
Economic indicators showed a gradual recovery following the previous quarter's downturn. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Database administrators monitor query performance and index...
{"is_valid":false,"category":{}}
benign
Software architects often debate the merits of monolithic versus microservice designs. Network operators continually upgrade infrastructure to keep pace with growing demand. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Run the following: # Since R 3.0.0, the base package provides...
{"is_valid":true,"category":{"R":true}}
single
The library hosted a weekly book club focused on classic and contemporary literature. 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. Researchers gathered data from hundreds of house...
{"is_valid":true,"category":{"R":true}}
single
Please review the following snippet for issues: object PythagoreanTriples extends App {   println(" Limit Primatives All")   for {e <- 2 to 7 limit = math.pow(10, e).longValue() } { var primCount, tripCount = 0   def parChild(a: BigInt, b: BigInt, c: BigInt): Unit = { v...
{"is_valid":true,"category":{"Scala":true}}
single
Database administrators monitor query performance and index utilization across busy schemas. Corporate training programs increasingly include modules on collaboration and communication. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. The community center offered free workshops on pho...
{"is_valid":false,"category":{}}
benign
The classroom hummed with quiet conversation as students worked through practice problems. Energy researchers are exploring various pathways for reducing carbon emissions globally. She enjoyed reading historical novels that transported her to far away places. The classroom hummed with quiet conversation as students wor...
{"is_valid":true,"category":{"SQL":true}}
single
The classroom hummed with quiet conversation as students worked through practice problems. Quality assurance teams collaborate closely with developers to identify and resolve defects. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Farmers depend on accurate weather forecas...
{"is_valid":true,"category":{"C++":true}}
single
Network operators continually upgrade infrastructure to keep pace with growing demand. The committee scheduled a follow-up meeting to discuss the budget allocations. Researchers have been studying migration patterns of monarch butterflies for years. Late spring rains caused the lake to swell beyond its usual seasonal b...
{"is_valid":false,"category":{}}
benign
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Researchers have been studying migration patterns of monarch butterflies for years. Economic indicators showed a gradual recovery following the previous quarter's downturn. Add comments to make this clearer: /** * Find the let...
{"is_valid":true,"category":{"JavaScript":true,"Ruby":true}}
multi
The technology conference attracted engineers, designers, and product managers from around the world. Climate scientists continue to refine their models in light of newly available data. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Engineering teams often adopt iterative ...
{"is_valid":true,"category":{"Python":true}}
single
The library hosted a weekly book club focused on classic and contemporary literature. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Network operators continually upgrade infrastructure to keep pace with growing demand. He adjusted the telescope and waited patiently for the clouds t...
{"is_valid":true,"category":{"Kotlin":true}}
single
The garden looked particularly vibrant after the recent rain. Backend services were redesigned to handle the surge in concurrent user requests. Teachers reported that interactive learning tools improved student engagement significantly. Modern microprocessors rely on pipelining and out-of-order execution to maximize th...
{"is_valid":true,"category":{"C#":true}}
single
Network operators continually upgrade infrastructure to keep pace with growing demand. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. She organized her bookshelves by genre and then alphabetically within each section. Engineering teams often adopt iterative methodologies to manage comp...
{"is_valid":true,"category":{"C++":true}}
single
Engineering teams often adopt iterative methodologies to manage complex software projects. 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. Quarterly reports indicated a steady rise in ...
{"is_valid":true,"category":{"SQL":true}}
single
The morning light filtered through the kitchen window as the coffee brewed. Climate scientists continue to refine their models in light of newly available data. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. She placed the manuscript carefully on the desk and began the painstaki...
{"is_valid":true,"category":{"YAML":true}}
single
He gathered his notes, packed his bag, and prepared for the long journey home. 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 ...
{"is_valid":true,"category":{"Batch":true}}
single
Statistical models can sometimes obscure the limitations of the underlying data sources. Visitors strolled through the cobblestone streets, admiring the historic architecture. Project managers stressed the importance of clear documentation throughout the cycle. Economic indicators showed a gradual recovery following th...
{"is_valid":true,"category":{"PowerShell":true}}
single
I need help debugging this script: RIGHT, LEFT, UP, DOWN = 1, 2, 4, 8 function drawFractals( w ) love.graphics.setCanvas( canvas ) love.graphics.clear() love.graphics.setColor( 255, 255, 255 ) local dir, facing, lineLen, px, py, c = RIGHT, UP, 1, 10, love.graphics.getHeight() - 20, 1 local x, y = 0,...
{"is_valid":true,"category":{"Lua":true,"Go":true,"Kotlin":true}}
multi
The newly opened gallery showcased contemporary works by emerging regional artists. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Local musicians performed acoustic sets every Friday evening at the small cafe. A gentle breeze drifted across the meadow as the sun began to d...
{"is_valid":false,"category":{}}
benign
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. He walked along the river path, listening to the rustling of leaves overhead. A gentle breeze drifted across the meadow as the sun began to...
{"is_valid":true,"category":{"C":true,"Python":true,"Batch":true}}
multi
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 requests. Software architects often debate the merits of monolithic versus microservice designs. Researchers gathered data from hundreds of households participating in t...
{"is_valid":true,"category":{"Terraform":true}}
single
He gathered his notes, packed his bag, and prepared for the long journey home. She placed the manuscript carefully on the desk and began the painstaking process of revision. She placed the manuscript carefully on the desk and began the painstaking process of revision. Volunteers spent the weekend cleaning up the rivers...
{"is_valid":true,"category":{"JavaScript":true}}
single
Refactor the function below: # syntax: GAWK -f SUDOKU_RC.AWK BEGIN { # row1 row2 row3 row4 row5 row6 row7 row8 row9 # puzzle = "111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111" # NG duplicate hints # puzzle = "1........ .....
{"is_valid":true,"category":{"AWK":true}}
single
Can you optimize this implementation: # Denoting the input by $n, which is assumed to be a positive integer, # eratosthenes/0 produces an array of primes less than or equal to $n: def eratosthenes:   # erase(i) sets .[i*j] to false for integral j > 1 def erase(i): if .[i] then reduce range(2; (1 + length) / i) ...
{"is_valid":true,"category":{"jq":true,"Bash":true}}
multi
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Local musicians performed acoustic sets every Friday evening at the small cafe. Volunteers spent the weekend cleaning up the riverside trail and plan...
{"is_valid":true,"category":{"AWK":true,"Swift":true}}
multi
Find any security problems in: const libs = `des_system_lib std synopsys std_cell_lib des_system_lib dw02 dw01 ramlib ieee dw01 ieee dw01 dware gtech dw02 ieee dw02 dware dw03 std synopsys dware dw03 dw02 dw01 ieee gtech dw04 dw04 ieee dw01 dware gtec
{"is_valid":true,"category":{"JavaScript":true}}
single
Children played in the park while their parents chatted on the wooden benches nearby. Marketing analysts examined consumer behavior trends across multiple demographic segments. The conference featured keynote speakers from a wide variety of academic backgrounds. Researchers have been studying migration patterns of mona...
{"is_valid":true,"category":{"Scala":true}}
single
He sat by the window with a steaming mug of tea and watched the snow gently falling. Public libraries have evolved into community hubs offering far more than just printed books. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. The botanical garden featured an impressive collection...
{"is_valid":true,"category":{"C":true}}
single
She organized her bookshelves by genre and then alphabetically within each section. She organized her bookshelves by genre and then alphabetically within each section. Can you optimize this implementation: class Demo #public methods here   protected #protect methods here   private #private methods end Climate...
{"is_valid":true,"category":{"Ruby":true}}
single
What does this output: object CircularPrimes { def main(args: Array[String]): Unit = { println("First 19 circular primes:") var p = 2 var count = 0 while (count < 19) { if (isCircularPrime(p)) { if (count > 0) { print(", ") } print(p) count += 1 } ...
{"is_valid":true,"category":{"Scala":true}}
single
Take a look at this: #include <stdio.h> #include <termios.h> #include <unistd.h> #include <fcntl.h> #include <sys/time.h>   void set_mode(int want_key) { static struct termios old, new; if (!want_key) { tcsetattr(STDIN_FILENO, TCSANOW, &old); return; }   tcgetattr(STDIN_FILENO, &old); new =
{"is_valid":true,"category":{"C":true}}
single
Find any security problems in: import java.io.{File, FileWriter, IOException} import scala.io.Source   object RecordAppender extends App { val rawDataIt = Source.fromString(rawData).getLines()   def writeStringToFile(file: File, data: String, appending: Boolean = false) = using(new FileWriter(file, appending))(...
{"is_valid":true,"category":{"Scala":true}}
single
The technology conference attracted engineers, designers, and product managers from around the world. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Hikers were advised to carry plenty of water and to inform someone of their planned route. Farmers depend on accurate weathe...
{"is_valid":true,"category":{"Kotlin":true,"AWK":true}}
multi
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. 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. Policy analysts examined the long-term implic...
{"is_valid":true,"category":{"Python":true}}
single
Add comments to make this clearer: object MorseCode extends App {   private val code = Map( ('A', ".- "), ('B', "-... "), ('C', "-.-. "), ('D', "-.. "), ('E', ". "), ('F', "..-. "), ('G', "--. "), ('H', ".... "), ('I', ".. "), ('J', ".--- "), ('K', "-.- "), ('L', ".-.. ")...
{"is_valid":true,"category":{"Scala":true}}
single
Teachers reported that interactive learning tools improved student engagement significantly. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. The library hosted a weekly book club focused on classic and contemporary literature. Historians continue to debate the significance of the tr...
{"is_valid":true,"category":{"SQL":true}}
single
I need help debugging this script: # Define a function to output binary digits tobinary() { # We use the bench calculator for our conversion echo "obase=2;$1"|bc }   # Call the function with each of our values tobinary 5 tobinary 50
{"is_valid":true,"category":{"Bash":true}}
single
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. I copied this from the docs: // version 1.1.0   fun main(args: Array<String>) { val i: Int = 3 // non-nullable Int type - can't be assigned null println(i) val j: Int? = null // nullable Int type ...
{"is_valid":true,"category":{"Kotlin":true}}
single
Corporate training programs increasingly include modules on collaboration and communication. Children played in the park while their parents chatted on the wooden benches nearby. Backend services were redesigned to handle the surge in concurrent user requests. Corporate training programs increasingly include modules on...
{"is_valid":true,"category":{"JavaScript":true}}
single
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. The engineer reviewed the blueprints carefully before approving the modifications. She enjoyed reading historical novels that transported her to far away places. Software architects often debate the merits of monolithic versus...
{"is_valid":true,"category":{"Bash":true}}
single
What does this output: using System.Data.Sql; using System.Data.SqlClient;   namespace ConsoleApplication1 { class Program { static void Main(string[] args) { SqlConnection tConn = new SqlConnection("ConnectionString");   SqlCommand tCommand = new SqlCommand(); ...
{"is_valid":true,"category":{"C#":true,"JavaScript":true}}
multi
Public libraries have evolved into community hubs offering far more than just printed books. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Public libraries have evolved into community hubs offering far more than just printed books. Distributed systems demand careful attent...
{"is_valid":true,"category":{"JavaScript":true,"C#":true,"jq":true}}
multi
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Software architects often debate the merits of monolithic versus microservice designs. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Distributed systems demand careful attention to consist...
{"is_valid":true,"category":{"Makefile":true}}
single
Local musicians performed acoustic sets every Friday evening at the small cafe. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Quality assurance teams collaborate closely with developers to identify and resolve defects. Climate models suggest that ocean temperatures will continue ...
{"is_valid":false,"category":{}}
benign
Public libraries have evolved into community hubs offering far more than just printed books. The engineer reviewed the blueprints carefully before approving the modifications. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Production teams refined their processes to minimize w...
{"is_valid":true,"category":{"SQL":true,"Swift":true}}
multi
Economic indicators showed a gradual recovery following the previous quarter's downturn. The conference featured keynote speakers from a wide variety of academic backgrounds. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Quality assurance teams collaborate closely with developers t...
{"is_valid":false,"category":{}}
benign
Take a look at this: LOCAL_PATH := $(call my-dir) PROJECT_ROOT_FROM_JNI:= ../../../.. PROJECT_ROOT:= $(call my-dir)/../../../.. include $(CLEAR_VARS) OPENCV_INSTALL_MODULES:=on OPENCV_CAMERA_MODULES:=off OPENCV_LIB_TYPE:=STATIC include $(PROJECT_ROOT)/OpenCV_sdk_native/jni/OpenCV.mk LOCAL_MODULE := tango_ros_nativ...
{"is_valid":true,"category":{"Makefile":true}}
single
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Network operators continually upgrade infrastructure to keep pace with growing demand. She organized her bookshelves by genre and then alphabetically within each section. Distributed systems demand careful attention to consiste...
{"is_valid":true,"category":{"PowerShell":true,"C#":true}}
multi
Take a look at this: object PermutationTest extends App { private val data = Array(85, 88, 75, 66, 25, 29, 83, 39, 97, 68, 41, 10, 49, 16, 65, 32, 92, 28, 98) private var (total, treat) = (1.0, 0)   private def pick(at: Int, remain: Int, accu: Int, treat: Int): Int = { if (remain == 0) return if (accu > t...
{"is_valid":true,"category":{"Scala":true}}
single
Local musicians performed acoustic sets every Friday evening at the small cafe. Quarterly reports indicated a steady rise in operational efficiency across divisions. Climate scientists continue to refine their models in light of newly available data. He gathered his notes, packed his bag, and prepared for the long jour...
{"is_valid":true,"category":{"Perl":true}}
single
Children played in the park while their parents chatted on the wooden benches nearby. Can you optimize this implementation: sub generate { my $n = shift; my $str = '[' x $n; substr($str, rand($n + $_), 0) = ']' for 1..$n; return $str; }   sub balanced { shift =~ /^ (\[ (?1)* \])* $/x; }   for (0..8)...
{"is_valid":true,"category":{"Perl":true}}
single
She organized her bookshelves by genre and then alphabetically within each section. Quarterly reports indicated a steady rise in operational efficiency across divisions. Hikers were advised to carry plenty of water and to inform someone of their planned route. Visitors strolled through the cobblestone streets, admiring...
{"is_valid":false,"category":{}}
benign
Quick question about this snippet: # sinit version VERSION = 0.9.1 # paths PREFIX = /usr/local MANPREFIX = $(PREFIX)/share/man CC = cc LD = $(CC) CPPFLAGS = CFLAGS = -Wextra -Wall -Os $(CPPFLAGS) LDFLAGS = -s -static
{"is_valid":true,"category":{"Makefile":true}}
single
Find any security problems in: func disjointOrder<T: Hashable>(m: [T], n: [T]) -> [T] { let replaceCounts = n.reduce(into: [T: Int](), { $0[$1, default: 0] += 1 }) let reduced = m.reduce(into: ([T](), n, replaceCounts), {cur, el in cur.0.append(cur.2[el, default: 0] > 0 ? cur.1.removeFirst() : el)
{"is_valid":true,"category":{"Swift":true}}
single
Please review the following snippet for issues: #Declaring variables $intIterations = 10000 $intKept = 0 $intSwitched = 0   #Creating a function Function Play-MontyHall() { #Using a .NET object for randomization $objRandom = New-Object -TypeName System.Random   #Generating the winning door number $i...
{"is_valid":true,"category":{"PowerShell":true}}
single
Economic indicators showed a gradual recovery following the previous quarter's downturn. Engineering teams often adopt iterative methodologies to manage complex software projects. The garden looked particularly vibrant after the recent rain. The engineer reviewed the blueprints carefully before approving the modificati...
{"is_valid":true,"category":{"Terraform":true}}
single
Production teams refined their processes to minimize waste and improve overall yield. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Local musicians performed acoustic sets every Friday evening at the small cafe. Find any security problems in: package main   import ( "fmt" ...
{"is_valid":true,"category":{"Go":true,"Bash":true,"Terraform":true}}
multi
Find any security problems in: object ApolloniusSolver extends App { case class Circle(x: Double, y: Double, r: Double) object Tangent extends Enumeration { type Tangent = Value val intern = Value(-1) val extern = Value(1) }   import Tangent._ import scala.Math._   val solveApollonius: (Circle, Circle, C...
{"is_valid":true,"category":{"Scala":true}}
single
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. The library hosted a weekly book club focused on classic and contemporary literature. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Travelers explored ancient ruins, marveling at t...
{"is_valid":true,"category":{"Lua":true,"Terraform":true}}
multi
Quarterly reports indicated a steady rise in operational efficiency across divisions. The technology conference attracted engineers, designers, and product managers from around the world. Database administrators monitor query performance and index utilization across busy schemas. Find any security problems in: # fs(f, ...
{"is_valid":true,"category":{"jq":true}}
single
The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Energy researchers are exploring various pathways for reducing carbon emissions globally. He walked along the river path, listening to the rustling of leaves overhead. Volunteers spent the weekend cleaning up the riverside trai...
{"is_valid":true,"category":{"YAML":true}}
single
Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Historians continue to debate the significance of the treaty signed in that pivotal year. Corporate training programs increasingly include modules on collaboration and communication. The garden looked particularly vibrant after the recent ...
{"is_valid":true,"category":{"Go":true}}
single
Energy researchers are exploring various pathways for reducing carbon emissions globally. Researchers have been studying migration patterns of monarch butterflies for years. Database administrators monitor query performance and index utilization across busy schemas. Find any security problems in: CREATE TABLE station (...
{"is_valid":true,"category":{"SQL":true,"Swift":true}}
multi
The painting featured warm colors that evoked memories of childhood summers by the sea. The committee scheduled a follow-up meeting to discuss the budget allocations. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Quality assurance teams collaborate closely with developers...
{"is_valid":true,"category":{"Terraform":true}}
single
The botanical garden featured an impressive collection of rare orchids from tropical regions. Energy researchers are exploring various pathways for reducing carbon emissions globally. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Teachers reported that interactive learnin...
{"is_valid":true,"category":{"Lua":true,"C":true}}
multi
Quality assurance teams collaborate closely with developers to identify and resolve defects. Production teams refined their processes to minimize waste and improve overall yield. Historians continue to debate the significance of the treaty signed in that pivotal year. Backend services were redesigned to handle the surg...
{"is_valid":true,"category":{"R":true}}
single
Hikers were advised to carry plenty of water and to inform someone of their planned route. Can you optimize this implementation: apiVersion: v1 kind: Service metadata: name: vote namespace: default spec: ports: - port: 80 protocol: TCP targetPort: 80 selector: component: vote sessionAffinity: No...
{"is_valid":true,"category":{"YAML":true}}
single
Public libraries have evolved into community hubs offering far more than just printed books. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. The technology conference attracted engineers, des...
{"is_valid":true,"category":{"Perl":true}}
single
Engineering teams often adopt iterative methodologies to manage complex software projects. Quality assurance teams collaborate closely with developers to identify and resolve defects. Network operators continually upgrade infrastructure to keep pace with growing demand. The library hosted a weekly book club focused on ...
{"is_valid":true,"category":{"Go":true}}
single
Network operators continually upgrade infrastructure to keep pace with growing demand. Project managers stressed the importance of clear documentation throughout the cycle. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Run the following: CREATE TABLE customer (cust_name VARCHAR, ...
{"is_valid":true,"category":{"SQL":true}}
single
The botanical garden featured an impressive collection of rare orchids from tropical regions. Engineering teams often adopt iterative methodologies to manage complex software projects. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Please review the following snippet for i...
{"is_valid":true,"category":{"Makefile":true}}
single
Could you explain what this code does: # # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. # # Copyright 2015 Jyri J. Virkki. All rights reserved. # # THE BSD LICENSE # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are...
{"is_valid":true,"category":{"Makefile":true,"Terraform":true,"Java":true}}
multi
The conference featured keynote speakers from a wide variety of academic backgrounds. Network operators continually upgrade infrastructure to keep pace with growing demand. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Farmers depend on accurate weather forecasts to plan ...
{"is_valid":true,"category":{"Scala":true}}
single
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. She organized her bookshelves by genre and then alphabetically within each section. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Children played in the park while their parents chatted ...
{"is_valid":true,"category":{"Bash":true}}
single
Local potters fired their kilns once a month, producing colorful ceramics for the shops. 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. Hikers were advised to carry plenty of water ...
{"is_valid":false,"category":{}}
benign
Add comments to make this clearer: #include <iostream> #include <sstream> #include <algorithm> #include <vector>   using namespace std;   class poker { public: poker() { face = "A23456789TJQK"; suit = "SHCD"; } string analyze( string h ) { memset( faceCnt, 0, 13 ); memset( suitCnt, 0, 4 ); vector<string> h...
{"is_valid":true,"category":{"C++":true}}
single
Add comments to make this clearer: use strict 'vars'; use warnings; use feature 'say'; use bigint;   my @b = 1; my @Aitkens = [1];   push @Aitkens, do { my @c = $b[-1]; push @c, $b[$_] + $c[$_] for 0..$#b; @b = @c; [@c] } until (@Aitkens == 50);   my @Bell_numbers = map { @$_[0] } @Aitkens;   say 'First...
{"is_valid":true,"category":{"Perl":true}}
single
Researchers have been studying migration patterns of monarch butterflies for years. 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 owne...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Could you explain what this code does: #include <vector> #include <iostream> #include <numeric> #include <iterator> #include <memory> #include <string> #include <algorithm> #include <iomanip>   std::vector<int> nacci ( const std::vector<int> & start , int arity ) { std::vector<int> result ( start ) ; int sumstart...
{"is_valid":true,"category":{"C++":true}}
single
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. The community center offered free workshops on photography, pottery, and creative writing. Engineering teams often adopt iterative methodologies to ...
{"is_valid":true,"category":{"Makefile":true}}
single
The painting featured warm colors that evoked memories of childhood summers by the sea. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Could you explain what this code does: $string = "a!===b=!=c" $separators = [regex]"(==|!=|=)"   $matchInfo = $separators.Matches($string) | Se...
{"is_valid":true,"category":{"PowerShell":true}}
single
The neighborhood gathered every Saturday morning at the small farmers' market downtown. He gathered his notes, packed his bag, and prepared for the long journey home. He sat by the window with a steaming mug of tea and watched the snow gently falling. The painting featured warm colors that evoked memories of childhood ...
{"is_valid":true,"category":{"Bash":true}}
single
I copied this from the docs: ########################################### ## A thin wrapper around BUILD_EXECUTABLE ## Common flags for native tests are added. ########################################### LOCAL_CFLAGS += -DGTEST_OS_LINUX -DGTEST_HAS_STD_STRING LOCAL_C_INCLUDES += bionic \
{"is_valid":true,"category":{"Makefile":true}}
single
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. The bakery on the corner was famous for its s...
{"is_valid":true,"category":{"Bash":true}}
single
Project managers stressed the importance of clear documentation throughout the cycle. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Marketing analysts examined consumer behavior t...
{"is_valid":true,"category":{"Makefile":true}}
single
Find any security problems in: package main   import ( "log" "time"   "github.com/gdamore/tcell" )   const ( msg = "Hello World! " x0, y0 = 8, 3 shiftsPerSecond = 4 clicksToExit = 5 )   func main() { s, err := tcell.NewScreen() if err != nil { log.Fata...
{"is_valid":true,"category":{"Go":true}}
single
The classroom hummed with quiet conversation as students worked through practice problems. The painting featured warm colors that evoked memories of childhood summers by the sea. Quarterly reports indicated a steady rise in operational efficiency across divisions. The newly opened gallery showcased contemporary works b...
{"is_valid":true,"category":{"Go":true}}
single
He gathered his notes, packed his bag, and prepared for the long journey home. He sat by the window with a steaming mug of tea and watched the snow gently falling. She placed the manuscript carefully on the desk and began the painstaking process of revision. Quality assurance teams collaborate closely with developers t...
{"is_valid":true,"category":{"PowerShell":true}}
single
Please review the following snippet for issues: open("outfile.dat", "w") do |out_f| open("infile.dat") do |in_f| while record = in_f.read(80) out_f << record.reverse end end end # both files automatically closed
{"is_valid":true,"category":{"Ruby":true}}
single
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. Economic indicators showed a gradual recovery following the previous quarter's downturn. Travelers explored ancient ruins, marveling at th...
{"is_valid":true,"category":{"Scala":true}}
single
Long-distance running requires a combination of disciplined training and proper nutrition. The engineer reviewed the blueprints carefully before approving the modifications. Researchers have been studying migration patterns of monarch butterflies for years. Refactor the function below: sub nonsqr { my $n = shift; $n +...
{"is_valid":true,"category":{"Perl":true}}
single
Public libraries have evolved into community hubs offering far more than just printed books. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Historians continue to debate the signif...
{"is_valid":true,"category":{"Swift":true}}
single
Can you optimize this implementation: # syntax: GAWK -f PICK_RANDOM_ELEMENT.AWK BEGIN { n = split("Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday",day_of_week,",") srand() x = int(n*rand()) + 1 printf("%s\n",day_of_week[x]) exit(0) }
{"is_valid":true,"category":{"AWK":true}}
single
The community center offered free workshops on photography, pottery, and creative writing. The newly opened gallery showcased contemporary works by emerging regional artists. Astronomers observed a faint signal that appeared to originate from a distant galaxy. She organized her bookshelves by genre and then alphabetica...
{"is_valid":false,"category":{}}
benign
Take a look at this: # FROM oven/bun:1.2.2 # # WORKDIR /app # COPY package.json bun.lock ./ # # RUN bun install # # COPY . . # # EXPOSE 4321 # # CMD ["bun", "run", "dev"] # There's a bug that prevents us from using bun for this: # https://github.com/oven-sh/bun/issues/17022 FROM node:22 WORKDIR /app COPY packag...
{"is_valid":true,"category":{"Dockerfile":true}}
single