prompt
large_stringlengths
150
7.97k
target
large_stringlengths
32
83
kind
large_stringclasses
3 values
Project managers stressed the importance of clear documentation throughout the cycle. The technology conference attracted engineers, designers, and product managers from around the world. The committee scheduled a follow-up meeting to discuss the budget allocations. The botanical garden featured an impressive collectio...
{"is_valid":true,"category":{"JavaScript":true}}
single
Economic indicators showed a gradual recovery following the previous quarter's downturn. 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 newly opened gallery showcased contemporary works by emerging...
{"is_valid":true,"category":{"AWK":true}}
single
Take a look at this: # 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 (the # "Lic...
{"is_valid":true,"category":{"Dockerfile":true}}
single
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. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. She enjoyed reading historical novels that trans...
{"is_valid":true,"category":{"Scala":true,"JavaScript":true,"SQL":true}}
multi
Energy researchers are exploring various pathways for reducing carbon emissions globally. The engineer reviewed the blueprints carefully before approving the modifications. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. The technology conference attracted engineers, designers, a...
{"is_valid":true,"category":{"Bash":true,"YAML":true}}
multi
The botanical garden featured an impressive collection of rare orchids from tropical regions. Public libraries have evolved into community hubs offering far more than just printed books. Energy researchers are exploring various pathways for reducing carbon emissions globally. Statistical models can sometimes obscure th...
{"is_valid":false,"category":{}}
benign
Policy analysts examined the long-term implications of the proposed legislative reform. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Production teams refined their processes to minimize waste and improve overall yield. Modern microprocessors rely on pipelining and out-of-...
{"is_valid":true,"category":{"C":true,"C++":true}}
multi
Quality assurance teams collaborate closely with developers to identify and resolve defects. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Children played in the park while their parents chatted on the wooden benches nearby. Economic indicators showed a gradual recovery follo...
{"is_valid":true,"category":{"PowerShell":true}}
single
Marketing analysts examined consumer behavior trends across multiple demographic segments. 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. The classroom hummed with quiet conversation as students worked thr...
{"is_valid":true,"category":{"Perl":true}}
single
Translate this into another language for me: package main import "fmt"   type Delegator struct { delegate interface{} // the delegate may be any type }   // interface that represents anything that supports thing() type Thingable interface { thing() string }   func (self Delegator) operation() string { if v,...
{"is_valid":true,"category":{"Go":true}}
single
I copied this from the docs: #include <stdio.h>   int main() { int i, j; double degrees[] = { 0.0, 16.87, 16.88, 33.75, 50.62, 50.63, 67.5, 84.37, 84.38, 101.25, 118.12, 118.13, 135.0, 151.87, 151.88, 168.75, 185.62, 185.63, 202.5, 219.37, 219.38, 236.25, 253.12, ...
{"is_valid":true,"category":{"C":true}}
single
The technology conference attracted engineers, designers, and product managers from around the world. Run the following: fib2 <- function(n) { (n >= 0) || stop("bad argument") ( function(n) if (n <= 1) 1 else Recall(n-1)+Recall(n-2) )(n) }
{"is_valid":true,"category":{"R":true}}
single
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. The garden looked particularly vibrant after the recent rain. She organized her bookshelves by genre and then alphabetically within each ...
{"is_valid":true,"category":{"Ruby":true}}
single
Please review the following snippet for issues: CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR, instid VARCHAR, authorder VARCHAR); CREATE TABLE authors (authid VARCHAR, lname VARCHAR); CREATE TABLE papers (title VARCHAR, paperid VARCHAR); CREATE TABLE inst (instid VARCHAR, country VARCHAR); SELECT t3.title F...
{"is_valid":true,"category":{"SQL":true}}
single
Visitors strolled through the cobblestone streets, admiring the historic architecture. She enjoyed reading historical novels that transported her to far away places. Add comments to make this clearer: typeset -T Point=( typeset x typeset y ) Point p p.x=1 p.y=2 echo $p echo ${p.x} ${p.y} Point q=(x=3 y=4) echo ${q....
{"is_valid":true,"category":{"Bash":true}}
single
What does this output: #include <windows.h> #include <iostream> #include <string>   //-------------------------------------------------------------------------------------------------- using namespace std;   //-------------------------------------------------------------------------------------------------- const int P...
{"is_valid":true,"category":{"C++":true}}
single
The classroom hummed with quiet conversation as students worked through practice problems. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. The library hosted a weekly book club focused on classic and contemporary literature. The conference featured keynote speakers from a wide variet...
{"is_valid":true,"category":{"C#":true,"Terraform":true}}
multi
Project managers stressed the importance of clear documentation throughout the cycle. Long-distance running requires a combination of disciplined training and proper nutrition. Policy analysts examined the long-term implications of the proposed legislative reform. Researchers gathered data from hundreds of households p...
{"is_valid":true,"category":{"C#":true,"Scala":true,"Dockerfile":true}}
multi
Engineering teams often adopt iterative methodologies to manage complex software projects. Researchers gathered data from hundreds of households participating in the longitudinal study. Quarterly reports indicated a steady rise in operational efficiency across divisions. Quality assurance teams collaborate closely with...
{"is_valid":true,"category":{"Perl":true,"Rust":true}}
multi
The engineer reviewed the blueprints carefully before approving the modifications. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. The garden looked particularly vibrant after the recent rain. Long-distance running requires a combination of disciplined training and proper nu...
{"is_valid":true,"category":{"PowerShell":true}}
single
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. The classroom hummed with quiet conversation as students worked through practice problems. He sat by the window with a steaming mug of tea and ...
{"is_valid":true,"category":{"jq":true,"Makefile":true,"Perl":true}}
multi
Climate models suggest that ocean temperatures will continue to rise over the coming decades. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Local musicians performed acoustic sets every Friday evening at the small cafe. She organized her bookshelves by genre and then alphabetic...
{"is_valid":true,"category":{"Rust":true,"Go":true,"Dockerfile":true}}
multi
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. 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. He sat by the window with a steaming mug of tea a...
{"is_valid":false,"category":{}}
benign
Public libraries have evolved into community hubs offering far more than just printed books. Run the following: #include <iostream>   int main() { int undefined; if (undefined == 42) { std::cout << "42"; }   if (undefined != 42) { std::cout << "not 42"; } } Production teams ...
{"is_valid":true,"category":{"C++":true}}
single
Software architects often debate the merits of monolithic versus microservice designs. Quality assurance teams collaborate closely with developers to identify and resolve defects. Climate scientists continue to refine their models in light of newly available data. Historians continue to debate the significance of the t...
{"is_valid":true,"category":{"SQL":true}}
single
Project managers stressed the importance of clear documentation throughout the cycle. Hikers were advised to carry plenty of water and to inform someone of their planned route. Please review the following snippet for issues: CREATE TABLE party (Location VARCHAR, Party_ID VARCHAR); CREATE TABLE HOST (Name VARCHAR, Host_...
{"is_valid":true,"category":{"SQL":true}}
single
Add comments to make this clearer: // MD4, based on RFC 1186 and RFC 1320. // // https://www.ietf.org/rfc/rfc1186.txt // https://tools.ietf.org/html/rfc1320 //   use std::fmt::Write; use std::mem;   // Let not(X) denote the bit-wise complement of X. // Let X v Y denote the bit-wise OR of X and Y. // Let X xor Y denote ...
{"is_valid":true,"category":{"Rust":true}}
single
Visitors strolled through the cobblestone streets, admiring the historic architecture. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. He adjusted the telescope and waited patiently for the clou...
{"is_valid":true,"category":{"Kotlin":true}}
single
He walked along the river path, listening to the rustling of leaves overhead. Policy analysts examined the long-term implications of the proposed legislative reform. Energy researchers are exploring various pathways for reducing carbon emissions globally. The community center offered free workshops on photography, pott...
{"is_valid":true,"category":{"Perl":true}}
single
The library hosted a weekly book club focused on classic and contemporary literature. Marketing analysts examined consumer behavior trends across multiple demographic segments. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. She enjoyed reading historical novels that transported her...
{"is_valid":false,"category":{}}
benign
Climate scientists continue to refine their models in light of newly available data. The painting featured warm colors that evoked memories of childhood summers by the sea. He sat by the window with a steaming mug of tea and watched the snow gently falling. The community center offered free workshops on photography, po...
{"is_valid":true,"category":{"Kotlin":true}}
single
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Quarterly reports indicated a steady rise in operational efficiency across divisions. Researchers gathered data from hundreds of households p...
{"is_valid":true,"category":{"C#":true}}
single
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Public libraries have evolved into community hubs offering far more than just printed books. Climate scientists continue to refine their models in light of...
{"is_valid":true,"category":{"R":true}}
single
Distributed systems demand careful attention to consistency, availability, and partition tolerance. Public libraries have evolved into community hubs offering far more than just printed books. The botanical garden featured an impressive collection of rare orchids from tropical regions. Quality assurance teams collabora...
{"is_valid":true,"category":{"C#":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. Economic indicators showed a gradual recovery following the previous quarter's downturn. Local musicians performed acoustic sets every ...
{"is_valid":true,"category":{"C#":true,"Ruby":true}}
multi
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Researchers have been studying migration patterns of monarch butterflies for years. Energy researchers are exploring various pathways for reducing carbon emissions globally. Modern microprocessors rely on pipelining and out-of...
{"is_valid":true,"category":{"Lua":true,"Terraform":true}}
multi
Production teams refined their processes to minimize waste and improve overall yield. 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. Find any security problems in: # input: [m,n] def ack: .[0] as $m |...
{"is_valid":true,"category":{"jq":true}}
single
The newly opened gallery showcased contemporary works by emerging regional artists. Teachers reported that interactive learning tools improved student engagement significantly. Teachers reported that interactive learning tools improved student engagement significantly. The bakery on the corner was famous for its sourdo...
{"is_valid":true,"category":{"Kotlin":true}}
single
She enjoyed reading historical novels that transported her to far away places. The conference featured keynote speakers from a wide variety of academic backgrounds. Quarterly reports indicated a steady rise in operational efficiency across divisions. Distributed systems demand careful attention to consistency, availabi...
{"is_valid":true,"category":{"Ruby":true,"jq":true}}
multi
What does this output: const FACES = ['2', '3', '4', '5', '6', '7', '8', '9', '10', 'j', 'q', 'k', 'a']; const SUITS = ['♥', '♦', '♣', '♠'];   function analyzeHand(hand){ let cards = hand.split(' ').filter(x => x !== 'joker'); let jokers = hand.split(' ').length - cards.length;   let faces = cards.map( card => FACE...
{"is_valid":true,"category":{"JavaScript":true,"AWK":true}}
multi
Add comments to make this clearer: import java.util.Arrays; import java.util.List;   public class Cistercian { private static final int SIZE = 15; private final char[][] canvas = new char[SIZE][SIZE];   public Cistercian(int n) { initN(); draw(n); }   public void initN() { fo...
{"is_valid":true,"category":{"Java":true}}
single
Could you explain what this code does: using System;   namespace Rosetta { internal class Vector { private double[] b; internal readonly int rows;   internal Vector(int rows) { this.rows = rows; b = new double[rows]; }   internal Vector(dou...
{"is_valid":true,"category":{"C#":true}}
single
What does this output: // version 1.0.6   fun initMovingAverage(p: Int): (Double) -> Double { if (p < 1) throw IllegalArgumentException("Period must be a positive integer") val list = mutableListOf<Double>() return { list.add(it) if (list.size > p) list.removeAt(0) list.average() ...
{"is_valid":true,"category":{"Kotlin":true,"Lua":true}}
multi
Database administrators monitor query performance and index utilization across busy schemas. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Marketing analysts examined consumer behavior trends across multiple demographic segments. Quality assurance teams collaborate closely with d...
{"is_valid":false,"category":{}}
benign
I copied this from the docs: const Associativity = { /** a / b / c = (a / b) / c */ left: 0, /** a ^ b ^ c = a ^ (b ^ c) */ right: 1, /** a + b + c = (a + b) + c = a + (b + c) */ both: 2, }; const operators = { '+': { precedence: 2, associativity: Associativity.both }, '-': { precedence:...
{"is_valid":true,"category":{"JavaScript":true}}
single
Long-distance running requires a combination of disciplined training and proper nutrition. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. The bakery on the corner was famous for its sour...
{"is_valid":true,"category":{"SQL":true,"Swift":true}}
multi
Translate this into another language for me: max.subseq <- function(x) { cumulative <- cumsum(x) min.cumulative.so.far <- Reduce(min, cumulative, accumulate=TRUE) end <- which.max(cumulative-min.cumulative.so.far) begin <- which.min(c(0, cumulative[1:end])) if (end >= begin) x[begin:end] else x[c()] }
{"is_valid":true,"category":{"R":true}}
single
He walked along the river path, listening to the rustling of leaves overhead. Refactor the function below: ((xmin=-8601)) # int(-2.1*4096) ((xmax=2867)) # int( 0.7*4096)   ((ymin=-4915)) # int(-1.2*4096) ((ymax=4915)) # int( 1.2*4096)   ((maxiter=30))   ((dx=(xmax-xmin)/72)) ((dy=(ymax-ymin)/24))   C='0123456789'...
{"is_valid":true,"category":{"Bash":true}}
single
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. Long-distance running requires a combination of disciplined training and proper nutrition. Network operators continually upgrade infrastructure to...
{"is_valid":true,"category":{"SQL":true}}
single
Run the following: import java.net.URI; import java.net.http.HttpClient; import java.net.http.HttpRequest; import java.net.http.HttpResponse; import java.nio.charset.Charset;   public class Main { public static void main(String[] args) { var request = HttpRequest.newBuilder(URI.create("
{"is_valid":true,"category":{"Java":true}}
single
The technology conference attracted engineers, designers, and product managers from around the world. Production teams refined their processes to minimize waste and improve overall yield. Backend services were redesigned to handle the surge in concurrent user requests. Engineering teams often adopt iterative methodolog...
{"is_valid":true,"category":{"jq":true,"PowerShell":true}}
multi
Distributed systems demand careful attention to consistency, availability, and partition tolerance. Translate this into another language for me: resource "aws_sfn_state_machine" "check_in" { name = "check-in" role_arn = "${aws_iam_role.state_machine.arn}" definition = <<EOF { "Comment": "Checks in a Southw...
{"is_valid":true,"category":{"Terraform":true}}
single
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. She enjoyed reading historical novels that transported her to far away places. Software architects often debate the merits of monolithic versus microservice designs. Public libraries have evolved into community hubs offering far mor...
{"is_valid":true,"category":{"C#":true,"JavaScript":true}}
multi
I copied this from the docs: public class ModularArithmetic { private interface Ring<T> { Ring<T> plus(Ring<T> rhs);   Ring<T> times(Ring<T> rhs);   int value();   Ring<T> one();   default Ring<T> pow(int p) { if (p < 0) { throw new Ille
{"is_valid":true,"category":{"Java":true}}
single
Corporate training programs increasingly include modules on collaboration and communication. Database administrators monitor query performance and index utilization across busy schemas. Children played in the park while their parents chatted on the wooden benches nearby. Policy analysts examined the long-term implicati...
{"is_valid":true,"category":{"YAML":true}}
single
Local potters fired their kilns once a month, producing colorful ceramics for the shops. Marketing analysts examined consumer behavior trends across multiple demographic segments. Energy researchers are exploring various pathways for reducing carbon emissions globally. The painting featured warm colors that evoked memo...
{"is_valid":true,"category":{"Lua":true}}
single
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Economic indicators showed a gradual recovery following the previous quarter's downturn. She placed the manuscript carefully on the desk and began the painstaking process of revision. Backend services were redesigned to handle ...
{"is_valid":true,"category":{"Swift":true}}
single
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Network operators continually upgrade infrastructure...
{"is_valid":true,"category":{"Batch":true}}
single
Quarterly reports indicated a steady rise in operational efficiency across divisions. Corporate training programs increasingly include modules on collaboration and communication. Researchers have been studying migration patterns of monarch butterflies for years. Database administrators monitor query performance and ind...
{"is_valid":true,"category":{"Perl":true,"Scala":true}}
multi
Historians continue to debate the significance of the treaty signed in that pivotal year. Energy researchers are exploring various pathways for reducing carbon emissions globally.
{"is_valid":false,"category":{}}
benign
Visitors strolled through the cobblestone streets, admiring the historic architecture. Climate scientists continue to refine their models in light of newly available data. Climate scientists continue to refine their models in light of newly available data. Database administrators monitor query performance and index uti...
{"is_valid":true,"category":{"Batch":true}}
single
Refactor the function below: @echo off setlocal enabledelayedexpansion set /p yr= Enter year: echo. call:monthdays %yr% list set mm=1 for %%i in (!list!) do ( call:calcdow !yr! !mm! %%i dow set/a lsu=%%i-dow set mf=0!mm! echo !yr!-!mf:~-2!-!lsu! set /a mm+=1 ) pause exit /b   :monthdays yr &list setlocal c...
{"is_valid":true,"category":{"Batch":true}}
single
What does this output: (() => { 'use strict';   // --------------------- CRC-32 ----------------------   // crc32 :: String -> Int const crc32 = str => { // table :: [Int] const table = enumFromTo(0)(255).map( n => take(9)( iterate( x => ( ...
{"is_valid":true,"category":{"JavaScript":true}}
single
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Take a look at this: extern void*stdin;main(){ char*p = "extern void*stdin;main(){ char*p = %c%s%c,a[300],b[300];sprintf(a,p,34,p,34);fgets(b,300,stdin);putchar(48+!strcmp(a,b)); }",a[300],b[300];sprintf(a,p,34,p,34);fgets(b,30...
{"is_valid":true,"category":{"C":true}}
single
Here is the code I was given: import java.io.File   object `package` { def walkTree(file: File): Iterable[File] = { val children = new Iterable[File] { def iterator = if (file.isDirectory) file.listFiles.iterator else Iterator.empty } Seq(file) ++: children.flatMap(walkTree(_)) } }   ob
{"is_valid":true,"category":{"Scala":true}}
single
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. He walked along the river path, listenin...
{"is_valid":false,"category":{}}
benign
Distributed systems demand careful attention to consistency, availability, and partition tolerance. Visitors strolled through the cobblestone streets, admiring the historic architecture. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. The neighborhood gathered every Saturday...
{"is_valid":false,"category":{}}
benign
Translate this into another language for me: import bitops, sequtils, strutils   type Square = seq[seq[int]]   func magicSquareDoublyEven(n: int): Square = ## Build a magic square of doubly even order.   assert n >= 4 and (n and 3) == 0, "base must be a positive multiple of 4." result = newSeqWith(n, newSeq[int](...
{"is_valid":true,"category":{"Lua":true}}
single
He sat by the window with a steaming mug of tea and watched the snow gently falling. Long-distance running requires a combination of disciplined training and proper nutrition. The morning light filtered through the kitchen window as the coffee brewed. The conference featured keynote speakers from a wide variety of acad...
{"is_valid":true,"category":{"C++":true,"Kotlin":true}}
multi
Network operators continually upgrade infrastructure to keep pace with growing demand. Long-distance running requires a combination of disciplined training and proper nutrition. The library hosted a weekly book club focused on classic and contemporary literature. Corporate training programs increasingly include modules...
{"is_valid":true,"category":{"Rust":true}}
single
Economic indicators showed a gradual recovery following the previous quarter's downturn. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Add comments to make this clearer: #!/usr/bin/perl   use strict; # https://rosettacode.org/wiki/Minimum_multiple_of_m_where_digital_sum_e...
{"is_valid":true,"category":{"Perl":true}}
single
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. The neighborhood gathered every Saturday morning at the small farmers' market downtown. A gentle breeze drifted across the meadow ...
{"is_valid":true,"category":{"Kotlin":true}}
single
Statistical models can sometimes obscure the limitations of the underlying data sources. Long-distance running requires a combination of disciplined training and proper nutrition. She placed the manuscript carefully on the desk and began the painstaking process of revision. Local musicians performed acoustic sets every...
{"is_valid":false,"category":{}}
benign
She organized her bookshelves by genre and then alphabetically within each section. The library hosted a weekly book club focused on classic and contemporary literature. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. The conference featured keynote speakers from a wide variety of acade...
{"is_valid":true,"category":{"Go":true,"Makefile":true}}
multi
Late spring rains caused the lake to swell beyond its usual seasonal boundaries. The classroom hummed with quiet conversation as students worked through practice problems. Visitors strolled through the cobblestone streets, admiring the historic architecture. Economic indicators showed a gradual recovery following the p...
{"is_valid":true,"category":{"JavaScript":true}}
single
Statistical models can sometimes obscure the limitations of the underlying data sources. Refactor the function below: 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
Astronomers observed a faint signal that appeared to originate from a distant galaxy. Climate scientists continue to refine their models in light of newly available data. Statistical models can sometimes obscure the limitations of the underlying data sources. Quality assurance teams collaborate closely with developers ...
{"is_valid":true,"category":{"Kotlin":true}}
single
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Climate scientists continue to refine their models in light of newly available data. The morning light filtered through the kitchen window as the coffee brewed. She organized her bookshelves by genre and then alphabetically wit...
{"is_valid":true,"category":{"Go":true,"Terraform":true}}
multi
Here is the code I was given: use std::{env, fmt, fs, process}; use std::io::{self, Write}; use std::path::Path;   fn main() { let cur = env::current_dir().unwrap_or_else(|e| exit_err(e, 1)); let arg = env::args().nth(1); print_files(arg.as_ref().map_or(cur.as_path(), |p| Path::new(p))) .unwrap_or_e...
{"is_valid":true,"category":{"Rust":true,"Dockerfile":true}}
multi
Climate scientists continue to refine their models in light of newly available data. She enjoyed reading historical novels that transported her to far away places. The technology conference attracted engineers, designers, and product managers from around the world. Volunteers spent the weekend cleaning up the riverside...
{"is_valid":true,"category":{"Ruby":true}}
single
Distributed systems demand careful attention to consistency, availability, and partition tolerance. Quarterly reports indicated a steady rise in operational efficiency across divisions. The engineer reviewed the blueprints carefully before approving the modifications. He gathered his notes, packed his bag, and prepared...
{"is_valid":true,"category":{"SQL":true,"AWK":true}}
multi
The neighborhood gathered every Saturday morning at the small farmers' market downtown. She enjoyed reading historical novels that transported her to far away places. The garden looked particularly vibrant after the recent rain. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. He ...
{"is_valid":true,"category":{"Lua":true}}
single
Project managers stressed the importance of clear documentation throughout the cycle. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. He walked along the river path, listening to the rustling of leaves overhead. The newly opened gallery showcased contemporary works by emerging ...
{"is_valid":true,"category":{"Python":true}}
single
I need help debugging this script: # syntax: GAWK -f SUMMARIZE_PRIMES.AWK BEGIN { start = 1 stop = 999 for (i=start; i<=stop; i++) { if (is_prime(i)) { count1++ sum += i if (is_prime(sum)) { printf("the sum of %3d primes from primes 2-%-3s is %5d which is also pr
{"is_valid":true,"category":{"AWK":true}}
single
Astronomers observed a faint signal that appeared to originate from a distant galaxy. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Can you optimize this implementation: func func1(f:...
{"is_valid":true,"category":{"Swift":true}}
single
The committee scheduled a follow-up meeting to discuss the budget allocations. Policy analysts examined the long-term implications of the proposed legislative reform. Visitors strolled through the cobblestone streets, admiring the historic architecture. Network operators continually upgrade infrastructure to keep pace ...
{"is_valid":true,"category":{"Perl":true}}
single
Quarterly reports indicated a steady rise in operational efficiency across divisions. Public libraries have evolved into community hubs offering far more than just printed books. Policy analysts examined the long-term implications of the proposed legislative reform. Travelers explored ancient ruins, marveling at the cr...
{"is_valid":true,"category":{"Python":true}}
single
Long-distance running requires a combination of disciplined training and proper nutrition. Researchers have been studying migration patterns of monarch butterflies for years. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Corporate training programs increasingly include modules on c...
{"is_valid":true,"category":{"Kotlin":true}}
single
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Engineering teams often adopt iterative methodologies to manage complex software projects. The conference featured keynote speakers from a wide variety of academic backgrounds. Local musicians performed acoustic sets every Fri...
{"is_valid":true,"category":{"PowerShell":true}}
single
He sat by the window with a steaming mug of tea and watched the snow gently falling. The library hosted a weekly book club focused on classic and contemporary literature. Researchers gathered data from hundreds of households participating in the longitudinal study. Late spring rains caused the lake to swell beyond its ...
{"is_valid":true,"category":{"Ruby":true}}
single
Add comments to make this clearer: /* * File extension is in extensions list (dots allowed). * * This problem is trivial because the so-called extension is simply the end * part of the name. */   #define _CRT_SECURE_NO_WARNINGS   #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <locale.h> #i
{"is_valid":true,"category":{"C":true}}
single
What does this output: # Generate the first n Fibonacci numbers: 1, 1, ... # Numerical accuracy is insufficient beyond about 1450. def fibonacci(n): # input: [f(i-2), f(i-1), countdown] def fib: (.[0] + .[1]) as $sum | if .[2] <= 0 then empty elif .[2] == 1 then $sum else $sum, ...
{"is_valid":true,"category":{"jq":true,"Terraform":true}}
multi
Translate this into another language for me: 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_MODU...
{"is_valid":true,"category":{"Makefile":true}}
single
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. The garden looked particularly vibrant after the recent rain. Long-distance running requires a combination of disciplined training an...
{"is_valid":true,"category":{"AWK":true}}
single
Visitors strolled through the cobblestone streets, admiring the historic architecture. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Project managers stressed the importance of clear documentation throughout the cycle. A gentle breeze drifted across the meadow as the sun b...
{"is_valid":true,"category":{"Makefile":true,"SQL":true,"Rust":true}}
multi
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. He sat by the window with a steaming mug of tea and watched the snow gently falling. Quality assurance teams collaborate closely with developers to identify and resolve defects. Find any security problems in: is.luhn <- function(cc){ ...
{"is_valid":true,"category":{"R":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. The morning light filtered through the kitchen window as the coffee brewed. Local musicians performed acoustic sets every Friday evening at the small ...
{"is_valid":true,"category":{"Perl":true}}
single
Researchers have been studying migration patterns of monarch butterflies for years. 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. Please review the following snippet for issues: $ ...
{"is_valid":true,"category":{"Bash":true}}
single
The engineer reviewed the blueprints carefully before approving the modifications. Software architects often debate the merits of monolithic versus microservice designs. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. The engineer reviewed the blueprints carefully before app...
{"is_valid":false,"category":{}}
benign
The newly opened gallery showcased contemporary works by emerging regional artists. The morning light filtered through the kitchen window as the coffee brewed. Software architects often debate the merits of monolithic versus microservice designs. The garden looked particularly vibrant after the recent rain. The newly o...
{"is_valid":true,"category":{"Swift":true}}
single