prompt
large_stringlengths
150
7.97k
target
large_stringlengths
32
83
kind
large_stringclasses
3 values
I need help debugging this script: /** * 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 License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requ...
{"is_valid":true,"category":{"Terraform":true,"SQL":true,"Perl":true}}
multi
Visitors strolled through the cobblestone streets, admiring the historic architecture. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Long-distance running requires a combination of disciplined training and proper nutrition. Quarterly reports indicated a steady rise in ope...
{"is_valid":true,"category":{"Makefile":true}}
single
Network operators continually upgrade infrastructure to keep pace with growing demand. He walked along the river path, listening to the rustling of leaves overhead. Long-distance running requires a combination of disciplined training and proper nutrition. Teachers reported that interactive learning tools improved stude...
{"is_valid":true,"category":{"Scala":true}}
single
Take a look at this: public class CubanPrimes {   private static int MAX = 1_400_000; private static boolean[] primes = new boolean[MAX];   public static void main(String[] args) { preCompute(); cubanPrime(200, true); for ( int i = 1 ; i <= 5 ; i++ ) {
{"is_valid":true,"category":{"Java":true}}
single
Take a look at this: price_fraction <- function(x) { stopifnot(all(x >= 0 & x <= 1)) breaks <- seq(0.06, 1.01, 0.05) values <- c(.1, .18, .26, .32, .38, .44, .5, .54, .58, .62, .66, .7, .74, .78, .82, .86, .9, .94, .98, 1) indices <- sapply(x, function(x) which(x < breaks)[1]) values[indices] }   #Example usa...
{"is_valid":true,"category":{"R":true}}
single
Software architects often debate the merits of monolithic versus microservice designs. Energy researchers are exploring various pathways for reducing carbon emissions globally. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Marketing analysts examined consumer behavior trends ...
{"is_valid":true,"category":{"jq":true}}
single
The community center offered free workshops on photography, pottery, and creative writing. Policy analysts examined the long-term implications of the proposed legislative reform. Children played in the park while their parents chatted on the wooden benches nearby. Statistical models can sometimes obscure the limitation...
{"is_valid":true,"category":{"JavaScript":true}}
single
Policy analysts examined the long-term implications of the proposed legislative reform. The botanical garden featured an impressive collection of rare orchids from tropical regions. Network operators continually upgrade infrastructure to keep pace with growing demand. Energy researchers are exploring various pathways f...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Run the following: import Foundation   // Using arrays for both stack and queue struct Stack<T> { private(set) var elements = [T]() var isEmpty: Bool { return elements.isEmpty }   mutating func push(newElement: T) { elements.append(newElement) }   mutating func pop() -> T { return el...
{"is_valid":true,"category":{"Swift":true}}
single
Project managers stressed the importance of clear documentation throughout the cycle. Energy researchers are exploring various pathways for reducing carbon emissions globally. Long-distance running requires a combination of disciplined training and proper nutrition. Distributed systems demand careful attention to consi...
{"is_valid":true,"category":{"PowerShell":true,"R":true,"JavaScript":true}}
multi
Researchers have been studying migration patterns of monarch butterflies for years. Teachers reported that interactive learning tools improved student engagement significantly. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. The botanical garden featured an impressive collec...
{"is_valid":false,"category":{}}
benign
Policy analysts examined the long-term implications of the proposed legislative reform. Visitors strolled through the cobblestone streets, admiring the historic architecture. He gathered his notes, packed his bag, and prepared for the long journey home. The library hosted a weekly book club focused on classic and conte...
{"is_valid":true,"category":{"C":true}}
single
Backend services were redesigned to handle the surge in concurrent user requests. I need help debugging this script: public static String reverseString(String s) { return new StringBuffer(s).reverse().toString(); }
{"is_valid":true,"category":{"Java":true}}
single
Climate models suggest that ocean temperatures will continue to rise over the coming decades. Climate scientists continue to refine their models in light of newly available data. The garden looked particularly vibrant after the recent rain. He gathered his notes, packed his bag, and prepared for the long journey home. ...
{"is_valid":true,"category":{"Go":true,"PowerShell":true}}
multi
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. Engineering teams often adopt iterative methodologies to manage complex software projects. The bakery on the corner was famous for i...
{"is_valid":true,"category":{"Python":true}}
single
What does this output: # jq optimizes the recursive call of _gcd in the following: def gcd(a;b): def _gcd: if .[1] != 0 then [.[1], .[0] % .[1]] | _gcd else .[0] end; [a,b] | _gcd ;   def count(s): reduce s as $x (0; .+1);   # A perfect totient number is an integer that is equal to the sum of its iterated totie...
{"is_valid":true,"category":{"jq":true,"Java":true,"Terraform":true}}
multi
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Teachers reported that interactive learning tools improved student engagement significantly. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Network operators continually upgrade infrastructure to...
{"is_valid":true,"category":{"AWK":true,"Rust":true}}
multi
Refactor the function below: # kubectl apply -f helm/staking-ledger-cron/mainnet-dump-staking-ledger-cronjob.yaml # the above command, with this accompanying file, needs only be run once. it does not get run in CI. this file is provided here for future reference apiVersion: batch/v1beta1 kind: CronJob metadata: nam...
{"is_valid":true,"category":{"YAML":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. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. The conference featured keynote speakers from a wide...
{"is_valid":true,"category":{"Java":true}}
single
Astronomers observed a faint signal that appeared to originate from a distant galaxy. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Project managers stressed the importance of clear documentation throughout the cycle. Software architects often debate the merits of monolithic versu...
{"is_valid":true,"category":{"YAML":true}}
single
The committee scheduled a follow-up meeting to discuss the budget allocations. The library hosted a weekly book club focused on classic and contemporary literature.
{"is_valid":false,"category":{}}
benign
Production teams refined their processes to minimize waste and improve overall yield. Researchers have been studying migration patterns of monarch butterflies for years. 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 bo...
{"is_valid":true,"category":{"AWK":true}}
single
Backend services were redesigned to handle the surge in concurrent user requests. Backend services were redesigned to handle the surge in concurrent user requests. Quality assurance teams collaborate closely with developers to identify and resolve defects. The morning light filtered through the kitchen window as the co...
{"is_valid":true,"category":{"jq":true}}
single
Marketing analysts examined consumer behavior trends across multiple demographic segments. Researchers have been studying migration patterns of monarch butterflies for years. Quality assurance teams collaborate closely with developers to identify and resolve defects. Marketing analysts examined consumer behavior trends...
{"is_valid":true,"category":{"Terraform":true}}
single
She placed the manuscript carefully on the desk and began the painstaking process of revision. 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. Take a look at this: class Node<T>{ var data...
{"is_valid":true,"category":{"Swift":true}}
single
The morning light filtered through the kitchen window as the coffee brewed. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. She organized her bookshelves by genre and then alphabetically within...
{"is_valid":false,"category":{}}
benign
She placed the manuscript carefully on the desk and began the painstaking process of revision. Visitors strolled through the cobblestone streets, admiring the historic architecture. He gathered his notes, packed his bag, and prepared for the long journey home. Project managers stressed the importance of clear documenta...
{"is_valid":true,"category":{"Makefile":true}}
single
The classroom hummed with quiet conversation as students worked through practice problems. Here is the code I was given: x <- c(1, 3, -5) y <- c(4, -2, -1)   sum(x*y) # compute products, then do the sum x %*% y # inner product   # loop implementation dotp <- function(x, y) { n <- length(x) if(length(y) != n) stop(...
{"is_valid":true,"category":{"R":true}}
single
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. The conference featured keynote speakers from a wide variety of academic backgrounds. Network operators continually upgrade infrastructure to keep pace with growing demand. The engineer reviewed the blueprints carefully before...
{"is_valid":false,"category":{}}
benign
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Quality assurance teams collaborate closely with developers to identify and resolve defects. Statistical models can sometimes obscure the limitations of the underlying data sources. Climate models suggest that ocean temperatures will c...
{"is_valid":true,"category":{"R":true}}
single
The community center offered free workshops on photography, pottery, and creative writing. Hikers were advised to carry plenty of water and to inform someone of their planned route. Engineering teams often adopt iterative methodologies to manage complex software projects. The technology conference attracted engineers, ...
{"is_valid":false,"category":{}}
benign
Please review the following snippet for issues: #include <windows.h>   //-------------------------------------------------------------------------------------------------- class pinstripe { public: pinstripe() { createColors(); } void setDimensions( int x, int y ) { _mw = x; _mh = y; } ...
{"is_valid":true,"category":{"C++":true}}
single
Here is the code I was given: var output = ""; for (var i = 1; i <= 10; i++) { output += i; if (i % 5 == 0) { print(output); output = ""; continue; } output += ", "; }
{"is_valid":true,"category":{"JavaScript":true}}
single
The neighborhood gathered every Saturday morning at the small farmers' market downtown. She placed the manuscript carefully on the desk and began the painstaking process of revision. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. The conference featured keynote speakers from a wide var...
{"is_valid":true,"category":{"C":true}}
single
The morning light filtered through the kitchen window as the coffee brewed. Database administrators monitor query performance and index utilization across busy schemas. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. The morning light filtered through the kitchen window as t...
{"is_valid":true,"category":{"Kotlin":true}}
single
Engineering teams often adopt iterative methodologies to manage complex software projects. Run the following: #include <stdio.h> ...   const char *list[] = {"Red","Green","Blue","Black","White"}; #define LIST_SIZE (sizeof(list)/sizeof(list[0]))   int ix; for(ix=0; ix<LIST_SIZE; ix++) { printf("%s\n", list[ix]); } He...
{"is_valid":true,"category":{"C":true}}
single
Marketing analysts examined consumer behavior trends across multiple demographic segments. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Translate this into another language for me: function C...
{"is_valid":true,"category":{"PowerShell":true}}
single
The community center offered free workshops on photography, pottery, and creative writing. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Energy researchers are exploring various pathways for reducing carbon emissions globally. Backend services were redesigned to handle the surg...
{"is_valid":true,"category":{"Swift":true,"Scala":true}}
multi
Please review the following snippet for issues: package main   import ( "bufio" "fmt" "os" "strconv" )   func showTokens(tokens int) { fmt.Println("Tokens remaining", tokens, "\n") }   func main() { tokens := 12 scanner := bufio.NewScanner(os.Stdin) for { showTokens(tokens) ...
{"is_valid":true,"category":{"Go":true}}
single
Engineering teams often adopt iterative methodologies to manage complex software projects. Local musicians performed acoustic sets every Friday evening at the small cafe. Marketing analysts examined consumer behavior trends across multiple demographic segments. Economic indicators showed a gradual recovery following th...
{"is_valid":false,"category":{}}
benign
Find any security problems in: use num_bigint::BigInt;   fn main() { calc_pi(); }   fn calc_pi() { let mut q = BigInt::from(1); let mut r = BigInt::from(0); let mut t = BigInt::from(1); let mut k = BigInt::from(1); let mut n = BigInt::from(3); let mut l = BigInt::from(3); let mut first =...
{"is_valid":true,"category":{"Rust":true}}
single
What does this output: var fso = new ActiveXObject("Scripting.FileSystemObject");   fso.FileExists('input.txt'); fso.FileExists('c:/input.txt'); fso.FolderExists('docs'); fso.FolderExists('c:/docs'); There's also this version: # IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # $Source: src/import/...
{"is_valid":true,"category":{"JavaScript":true,"Makefile":true}}
multi
Public libraries have evolved into community hubs offering far more than just printed books. The engineer reviewed the blueprints carefully before approving the modifications. Hikers were advised to carry plenty of water and to inform someone of their planned route. Distributed systems demand careful attention to consi...
{"is_valid":true,"category":{"Scala":true}}
single
Refactor the function below: #!/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 => 'simple-db', };   my $operation = shift // "";   my %dispatch = ( n => \&add_new, l => \&print_...
{"is_valid":true,"category":{"Perl":true}}
single
Run the following: package main   import ( "fmt" "math" "math/cmplx" )   func ditfft2(x []float64, y []complex128, n, s int) { if n == 1 { y[0] = complex(x[0], 0) return } ditfft2(x, y, n/2, 2*s) ditfft2(x[s:], y[n/2:], n/2, 2*s) for k := 0; k < n/2; k++ { tf := c...
{"is_valid":true,"category":{"Go":true}}
single
Here is the code I was given: function qr([double[][]]$A) { $m,$n = $A.count, $A[0].count $pm,$pn = ($m-1), ($n-1) [double[][]]$Q = 0..($m-1) | foreach{$row = @(0) * $m; $row[$_] = 1; ,$row} [double[][]]$R = $A | foreach{$row = $_; ,@(0..$pn | foreach{$row[$_]})} foreach ($h in 0..$pn) { [...
{"is_valid":true,"category":{"PowerShell":true,"jq":true}}
multi
Translate this into another language for me: use std::fmt::{Display, Formatter, Result}; use std::process::exit;   struct Coefficient(usize, f64);   impl Display for Coefficient { fn fmt(&self, f: &mut Formatter<'_>) -> Result { let i = self.0; let c = self.1;   if c == 0. { retu...
{"is_valid":true,"category":{"Rust":true}}
single
Add comments to make this clearer: # # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2....
{"is_valid":true,"category":{"Dockerfile":true,"Go":true}}
multi
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Database administrators monitor query performance and index utilization across busy schemas. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Late spring rains caused the lake to swell beyond its...
{"is_valid":true,"category":{"C++":true}}
single
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Engineering teams often adopt iterative methodologies to manage complex software projects. Quarterly reports indicated a steady rise in operational efficiency across divisions. Translate this into another language for me: // Co...
{"is_valid":true,"category":{"Terraform":true}}
single
Climate models suggest that ocean temperatures will continue to rise over the coming decades. Network operators continually upgrade infrastructure to keep pace with growing demand. Hikers were advised to carry plenty of water and to inform someone of their planned route. Production teams refined their processes to mini...
{"is_valid":true,"category":{"Terraform":true,"Python":true,"JavaScript":true}}
multi
Local potters fired their kilns once a month, producing colorful ceramics for the shops. Run the following: object Sailors extends App { var x = 0   private def valid(n: Int, _nuts: Int): Boolean = { var nuts = _nuts for (k <- n until 0 by -1) { if (nuts % n != 1) return false nuts -= 1 + nuts /...
{"is_valid":true,"category":{"Scala":true,"Kotlin":true}}
multi
Can you optimize this implementation: def spiral($zero; $turns; $step):   def pi: 1 | atan * 4; def p2: (. * 100 | round) / 100;   def svg: 400 as $width | 400 as $height | 2 as $swidth # stroke | "blue" as $stroke | (range($zero; $turns * 2 * pi; $step) as $theta | (((($theta)|cos) * 2...
{"is_valid":true,"category":{"jq":true,"Dockerfile":true,"Scala":true}}
multi
Here is the code I was given: using System;   namespace GapfulNumbers { class Program { static void Main(string[] args) { Console.WriteLine("The first 30 gapful numbers are: "); /* Starting at 100, find 30 gapful numbers */ FindGap(100, 30);   Cons...
{"is_valid":true,"category":{"C#":true}}
single
Here is the code I was given: def longest_increasing_subsequence(X): """Returns the Longest Increasing Subsequence in the Given List/Array""" N = len(X) P = [0] * N M = [0] * (N+1) L = 0 for i in range(N): lo = 1 hi = L while lo <= hi: mid = (lo+hi)//2 ...
{"is_valid":true,"category":{"Python":true}}
single
Here is the code I was given: import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map;   public class PalindromicGapfulNumbers {   public static void main(String[] args) { System.out.println("First 20 palindromic gapful numbers ending in:"); displayMap(getPa...
{"is_valid":true,"category":{"Java":true}}
single
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. 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. What does this output: package main   import ( "fmt" "math/big"...
{"is_valid":true,"category":{"Go":true}}
single
Here is the code I was given: ''' Note that this code is broken, e.g., it won't work when blocks = [("A", "B"), ("A","C")] and the word is "AB", where the answer should be True, but the code returns False. ''' blocks = [("B", "O"), ("X", "K"), ("D", "Q"), ("C", "P"), ("N", "A"),...
{"is_valid":true,"category":{"Python":true}}
single
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. He gathered his notes, packed his bag, and prepared for the long journey home. Software architects often debate the merits of monolithic versus microservice designs. He gathered his notes, packed his bag, and prepared for the l...
{"is_valid":true,"category":{"R":true}}
single
The conference featured keynote speakers from a wide variety of academic backgrounds. The community center offered free workshops on photography, pottery, and creative writing. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. He sat by the window with a steaming mug of tea a...
{"is_valid":true,"category":{"Batch":true}}
single
Policy analysts examined the long-term implications of the proposed legislative reform. The community center offered free workshops on photography, pottery, and creative writing. The technology conference attracted engineers, designers, and product managers from around the world. Teachers reported that interactive lear...
{"is_valid":true,"category":{"AWK":true}}
single
The neighborhood gathered every Saturday morning at the small farmers' market downtown. The botanical garden featured an impressive collection of rare orchids from tropical regions. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Local potters fired their kilns once a month, prod...
{"is_valid":true,"category":{"Makefile":true}}
single
Marketing analysts examined consumer behavior trends across multiple demographic segments. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Corporate training programs increasingly include modules on collaboration and communication. Translate this into another language for m...
{"is_valid":true,"category":{"Terraform":true}}
single
Local potters fired their kilns once a month, producing colorful ceramics for the shops. Production teams refined their processes to minimize waste and improve overall yield. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Late spring rains caused the lake to swell beyond its usu...
{"is_valid":true,"category":{"Rust":true}}
single
Policy analysts examined the long-term implications of the proposed legislative reform. Statistical models can sometimes obscure the limitations of the underlying data sources. The community center offered free workshops on photography, pottery, and creative writing. The morning light filtered through the kitchen windo...
{"is_valid":true,"category":{"Makefile":true,"Go":true,"Bash":true}}
multi
Climate scientists continue to refine their models in light of newly available data. He walked along the river path, listening to the rustling of leaves overhead. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. The botanical garden featured an impressive collection of rare orch...
{"is_valid":true,"category":{"Perl":true}}
single
The library hosted a weekly book club focused on classic and contemporary literature. Take a look at this: import Foundation   let wordsURL = NSURL(string: "http://wiki.puzzlers.org/pub/wordlists/unixdict.txt")!   let wordsstring = try NSString(contentsOfURL:wordsURL , encoding: NSUTF8StringEncoding) let allwords = wor...
{"is_valid":true,"category":{"Swift":true}}
single
Public libraries have evolved into community hubs offering far more than just printed books. The committee scheduled a follow-up meeting to discuss the budget allocations. Project managers stressed the importance of clear documentation throughout the cycle. A gentle breeze drifted across the meadow as the sun began to ...
{"is_valid":false,"category":{}}
benign
I need help debugging this script: #include <QImage> #include <cstdlib> #include <QColor> #include <iostream>   int main( int argc , char *argv[ ] ) { if ( argc != 3 ) { std::cout << "Call this with imagecompare <file of image 1>" << " <file of image 2>\n" ; return 1 ; } QImage firstImage ( argv...
{"is_valid":true,"category":{"C++":true}}
single
The conference featured keynote speakers from a wide variety of academic backgrounds. 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. The community center offered free workshops on phot...
{"is_valid":true,"category":{"Go":true}}
single
He walked along the river path, listening to the rustling of leaves overhead. 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. She placed the manuscript carefully on the desk and began the painstaking proc...
{"is_valid":true,"category":{"Ruby":true}}
single
The morning light filtered through the kitchen window as the coffee brewed. Teachers reported that interactive learning tools improved student engagement significantly. Refactor the function below: @echo off setlocal enableDelayedExpansion :: 0 = closed :: 1 = open :: SET /A treats undefined variable as 0 :: Negation o...
{"is_valid":true,"category":{"Batch":true}}
single
Take a look at this: #!/bin/sh n=5; k=3; calculate_factorial(){ partial_factorial=1; for (( i=1; i<="$1"; i++ )) do factorial=$(expr $i \* $partial_factorial) partial_fact...
{"is_valid":true,"category":{"Bash":true}}
single
Run the following: library(urltools)   urls <- c("foo://example.com:8042/over/there?name=ferret#nose", "urn:example:animal:ferret:nose", "jdbc:mysql://test_user:ouupppssss@localhost:3306/sakila?profileSQL=true", "ftp://ftp.is.co.za/rfc/rfc1808.txt", "http://www.ietf.org/rfc/rfc23...
{"is_valid":true,"category":{"R":true,"Ruby":true}}
multi
Engineering teams often adopt iterative methodologies to manage complex software projects. Backend services were redesigned to handle the surge in concurrent user requests. Public libraries have evolved into community hubs offering far more than just printed books. Corporate training programs increasingly include modul...
{"is_valid":true,"category":{"JavaScript":true,"Bash":true}}
multi
Children played in the park while their parents chatted on the wooden benches nearby. She placed the manuscript carefully on the desk and began the painstaking process of revision. The garden looked particularly vibrant after the recent rain. Children played in the park while their parents chatted on the wooden benches...
{"is_valid":true,"category":{"Lua":true}}
single
He gathered his notes, packed his bag, and prepared for the long journey home. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations.
{"is_valid":false,"category":{}}
benign
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Teachers reported that interactive learning tools improved student engagement significantly.
{"is_valid":false,"category":{}}
benign
Local potters fired their kilns once a month, producing colorful ceramics for the shops. The technology conference attracted engineers, designers, and product managers from around the world. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. The chef prepared a simple meal of roasted v...
{"is_valid":true,"category":{"Java":true}}
single
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Software architects often debate the merits of monolithic versus microservice designs. He walked along the river path, listening to the rustling of leaves overhead. Hikers were advised to carry plenty of water and to inform so...
{"is_valid":true,"category":{"Kotlin":true}}
single
Local musicians performed acoustic sets every Friday evening at the small cafe. Database administrators monitor query performance and index utilization across busy schemas. Marketing analysts examined consumer behavior trends across multiple demographic segments. Historians continue to debate the significance of the tr...
{"is_valid":true,"category":{"jq":true}}
single
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Take a look at this: ls -d *.c # *.c files in current directory (cd mydir && ls -d *.c) # *.c files in mydir
{"is_valid":true,"category":{"Bash":true}}
single
Can you optimize this implementation: import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.URL; import java.net.URLConnection;     public class WebTime{ public static void main(String[] args){ try{ URL address = new URL( "http://tycho.usno.
{"is_valid":true,"category":{"Java":true}}
single
The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Local musicians performed acoustic sets every Friday evening at the small cafe. Energy researchers are exploring various pathways for reducing ...
{"is_valid":true,"category":{"C#":true}}
single
Policy analysts examined the long-term implications of the proposed legislative reform. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. The newly opened gallery showcased contemporary works by emerging regional artists. Database administrators monitor query performance and index uti...
{"is_valid":true,"category":{"PowerShell":true}}
single
Add comments to make this clearer: import java.util.*;   public class TokenizeStringWithEscaping {   public static void main(String[] args) { String sample = "one^|uno||three^^^^|four^^^|^cuatro|"; char separator = '|'; char escape = '^';   System.out.println(sample); try { ...
{"is_valid":true,"category":{"Java":true}}
single
Take a look at this: #include <cmath> #include <iostream> #include <numeric> #include <tuple> #include <vector>   using namespace std;   auto CountTriplets(unsigned long long maxPerimeter) { unsigned long long totalCount = 0; unsigned long long primitveCount = 0; auto max_M = (unsigned long long)sqrt(maxPer...
{"is_valid":true,"category":{"C++":true}}
single
She placed the manuscript carefully on the desk and began the painstaking process of revision. He sat by the window with a steaming mug of tea and watched the snow gently falling. Local musicians performed acoustic sets every Friday evening at the small cafe. Public libraries have evolved into community hubs offering f...
{"is_valid":true,"category":{"Bash":true,"YAML":true,"Rust":true}}
multi
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. What does this output: $ kotlinc Welcome to Kotlin version 1.2.31 (JRE 1.8.0_162-8u162-b12-0ubuntu0.16.04.2-b12) Type :help for help, :quit for quit >>> 20 + 22 42 >>> 5 * Math.sqrt(81.0) 45.0 >>> fun triple(x: Int) = x * 3 >>...
{"is_valid":true,"category":{"Kotlin":true}}
single
Researchers gathered data from hundreds of households participating in the longitudinal study. Hikers were advised to carry plenty of water and to inform someone of their planned route. Project managers stressed the importance of clear documentation throughout the cycle. Visitors strolled through the cobblestone street...
{"is_valid":true,"category":{"SQL":true}}
single
Engineering teams often adopt iterative methodologies to manage complex software projects. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Project managers stressed the importance of clear documentation throughout the cycle. A gentle breeze drifted across the meadow as the ...
{"is_valid":true,"category":{"Python":true,"JavaScript":true}}
multi
Statistical models can sometimes obscure the limitations of the underlying data sources. 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. The classroom hummed with quiet conversation as stude...
{"is_valid":true,"category":{"SQL":true,"jq":true,"Bash":true}}
multi
Climate scientists continue to refine their models in light of newly available data. 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. Hikers were advised to carry plenty of water and to inform someone of...
{"is_valid":true,"category":{"PowerShell":true}}
single
The conference featured keynote speakers from a wide variety of academic backgrounds. Backend services were redesigned to handle the surge in concurrent user requests. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Public libraries have evolved into community hubs offering...
{"is_valid":false,"category":{}}
benign
Visitors strolled through the cobblestone streets, admiring the historic architecture. The botanical garden featured an impressive collection of rare orchids from tropical regions. Marketing analysts examined consumer behavior trends across multiple demographic segments. Public libraries have evolved into community hub...
{"is_valid":true,"category":{"Lua":true}}
single
He gathered his notes, packed his bag, and prepared for the long journey home. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. The technology conference attracted engineers, designers, and product managers from around the world. Astronomers observed a faint signal that appea...
{"is_valid":true,"category":{"Swift":true,"PowerShell":true}}
multi
Software architects often debate the merits of monolithic versus microservice designs. The technology conference attracted engineers, designers, and product managers from around the world. Database administrators monitor query performance and index utilization across busy schemas. Distributed systems demand careful att...
{"is_valid":true,"category":{"Makefile":true}}
single
The classroom hummed with quiet conversation as students worked through practice problems. Could you explain what this code does: require 'prime' PRIMES = Prime.each(1_000_000).to_a difs = [[2], [1], [2,2], [2,4], [4,2], [6,4,2]]   difs.each do |ar| res = PRIMES.each_cons(ar.size+1).select do |slice| slice.each_c...
{"is_valid":true,"category":{"Ruby":true}}
single
Astronomers observed a faint signal that appeared to originate from a distant galaxy. Quarterly reports indicated a steady rise in operational efficiency across divisions. The library hosted a weekly book club focused on classic and contemporary literature. She enjoyed reading historical novels that transported her to ...
{"is_valid":true,"category":{"jq":true}}
single
I copied this from the docs: package main   import ( "fmt" "strings" )   func main() { level := ` ####### # # # # #. # # #. $$ # #.$$ # #.# @# #######` fmt.Printf("level:%s\n", level) fmt.Printf("solution:\n%s\n", solve(level)) }   func solve(board string) string { buffer = make([]...
{"is_valid":true,"category":{"Go":true}}
single