prompt
large_stringlengths
150
7.97k
target
large_stringlengths
32
83
kind
large_stringclasses
3 values
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. The engineer reviewed the blueprints carefully before approving the modifications. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. The committee scheduled a follow-up meeting to di...
{"is_valid":true,"category":{"YAML":true}}
single
Economic indicators showed a gradual recovery following the previous quarter's downturn. Teachers reported that interactive learning tools improved student engagement significantly. Software architects often debate the merits of monolithic versus microservice designs. He sat by the window with a steaming mug of tea and...
{"is_valid":false,"category":{}}
benign
Can you optimize this implementation: require 'bigdecimal' require 'bigdecimal/util' # String#to_d   def safe_add(a, b, prec) a, b = a.to_d, b.to_d rm = BigDecimal::ROUND_MODE orig = BigDecimal.mode(rm)   BigDecimal.mode(rm, BigDecimal::ROUND_FLOOR) low = a.add(b, prec)   BigDecimal.mode(rm, BigDecimal::RO...
{"is_valid":true,"category":{"Ruby":true}}
single
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. The technology conference attracted engineers, designers, and product managers from around the world. Network operators continually upgrade infrastructure to keep pace with growing demand. Late spring rains caused the lake to s...
{"is_valid":true,"category":{"C++":true,"Python":true}}
multi
What does this output: >>> def jortsort(sequence): return list(sequence) == sorted(sequence) >>> for data in [(1,2,4,3), (14,6,8), ['a', 'c'], ['s', 'u', 'x'], 'CVGH', 'PQRST']: print(f'jortsort({repr(data)}) is {jortsort(data)}') jortsort((1, 2, 4, 3)) is False jortsort((14, 6, 8)) is False jortsort
{"is_valid":true,"category":{"Python":true}}
single
She enjoyed reading historical novels that transported her to far away places. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Policy analysts examined the long-term implications of the proposed legislative reform. Please review the following snippet for issues: C:\>scala -...
{"is_valid":true,"category":{"Scala":true,"C++":true}}
multi
Run the following: FROM registry.centos.org/centos7/sentry-sso:8.22 WORKDIR /usr/src/sentry # Add WORKDIR to PYTHONPATH so local python files don't need to be installed ENV PYTHONPATH /usr/src/sentry ONBUILD COPY . /usr/src/sentry # Hook for installing additional plugins ONBUILD RUN if [ -s requirements.txt ]; then ...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Take a look at this: #include <iostream> #include <cstdint> #include <vector> #include "prime_sieve.hpp"   using integer = uint32_t; using vector = std::vector<integer>;   void print_vector(const vector& vec) { if (!vec.empty()) { auto i = vec.begin(); std::cout << '(' << *i;
{"is_valid":true,"category":{"C++":true}}
single
Add comments to make this clearer: using System;   class Program { static void Main(string[] args) { for (int i = 1; ; i++) { Console.Write(i); if (i == 10) break; Console.Write(", "); } Console.WriteLine(); } }
{"is_valid":true,"category":{"C#":true}}
single
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Policy analysts examined the long-term implications of the proposed legislative reform. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Climate models suggest that ocean temperatur...
{"is_valid":true,"category":{"AWK":true}}
single
Can you optimize this implementation: # "ported" by Adam Miller <maxamillion@fedoraproject.org> from # https://github.com/fedora-cloud/Fedora-Dockerfiles # # Originally written for Fedora-Dockerfiles by # "Maciej Lasyk" <maciek@lasyk.info> FROM centos:centos7 MAINTAINER The CentOS Project <cloud-ops@centos.org> #...
{"is_valid":true,"category":{"Dockerfile":true}}
single
The morning light filtered through the kitchen window as the coffee brewed. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Nutritionists generally recommend a balanced diet rich in whole grains ...
{"is_valid":true,"category":{"Go":true}}
single
Add comments to make this clearer: 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(double[...
{"is_valid":true,"category":{"C#":true,"Lua":true}}
multi
The committee scheduled a follow-up meeting to discuss the budget allocations. Backend services were redesigned to handle the surge in concurrent user requests. Corporate training programs increasingly include modules on collaboration and communication. The classroom hummed with quiet conversation as students worked th...
{"is_valid":false,"category":{}}
benign
Take a look at this: >>> from array import array >>> argslist = [('l', []), ('c', 'hello world'), ('u', u'hello \u2641'), ('l', [1, 2, 3, 4, 5]), ('d', [1.0, 2.0, 3.14])] >>> for typecode, initializer in argslist: a = array(typecode, initializer) print a del a     array('l') array('c', 'hello wor
{"is_valid":true,"category":{"Python":true}}
single
Quick question about this snippet: from sys import stdout neighbours = [[-1, 0], [0, -1], [1, 0], [0, 1]] exists = [] lastNumber = 0 wid = 0 hei = 0     def find_next(pa, x, y, z): for i in range(4): a = x + neighbours[i][0] b = y + neighbours[i][1] if wid > a > -1 and hei > b > -1: ...
{"is_valid":true,"category":{"Python":true,"jq":true}}
multi
The newly opened gallery showcased contemporary works by emerging regional artists. Climate scientists continue to refine their models in light of newly available data. Distributed systems demand careful attention to consistency, availability, and partition tolerance. The community center offered free workshops on phot...
{"is_valid":true,"category":{"C++":true,"PowerShell":true}}
multi
The neighborhood gathered every Saturday morning at the small farmers' market downtown. Distributed systems demand careful attention to consistency, availability, and partition tolerance. The morning light filtered through the kitchen window as the coffee brewed. He adjusted the telescope and waited patiently for the c...
{"is_valid":true,"category":{"SQL":true}}
single
Project managers stressed the importance of clear documentation throughout the cycle. Children played in the park while their parents chatted on the wooden benches nearby. Researchers gathered data from hundreds of households participating in the longitudinal study. He adjusted the telescope and waited patiently for th...
{"is_valid":true,"category":{"Kotlin":true}}
single
Production teams refined their processes to minimize waste and improve overall yield. Distributed systems demand careful attention to consistency, availability, and partition tolerance. She enjoyed reading historical novels that transported her to far away places. The chef prepared a simple meal of roasted vegetables, ...
{"is_valid":true,"category":{"PowerShell":true,"C#":true}}
multi
She enjoyed reading historical novels that transported her to far away places. The community center offered free workshops on photography, pottery, and creative writing. Find any security problems in: // version 1.0.6   import java.security.MessageDigest   class MD4() : MessageDigest("MD4"), Cloneable { private val...
{"is_valid":true,"category":{"Kotlin":true,"R":true}}
multi
I need help debugging this script: import Foundation   struct Circle { let center:[Double]! let radius:Double!   init(center:[Double], radius:Double) { self.center = center self.radius = radius }   func toString() -> String { return "Circle[x=\(center[0]),y=\(center[1]),r=\(r...
{"is_valid":true,"category":{"Swift":true,"Lua":true}}
multi
Teachers reported that interactive learning tools improved student engagement significantly. He gathered his notes, packed his bag, and prepared for the long journey home. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Please review the following snippet for issues: BEGIN { n = ...
{"is_valid":true,"category":{"AWK":true}}
single
Climate models suggest that ocean temperatures will continue to rise over the coming decades. Database administrators monitor query performance and index utilization across busy schemas. She enjoyed reading historical novels that transported her to far away places. Climate models suggest that ocean temperatures will co...
{"is_valid":true,"category":{"Scala":true}}
single
The conference featured keynote speakers from a wide variety of academic backgrounds. What does this output: CREATE TABLE publication (Publisher VARCHAR, Price INTEGER); SELECT DISTINCT Publisher FROM publication WHERE Price > 5000000
{"is_valid":true,"category":{"SQL":true}}
single
Translate this into another language for me: FLOAT  : '.' DIGITS (Exponent)? | DIGITS '.' Exponent | DIGITS ('.' (DIGITS (Exponent)?)? | Exponent)  ;   DIGITS : ( '0' .. '9' )+ ;   Exponent  : ('e' | 'E') ( '+' | '-' )? DIGITS  ;
{"is_valid":true,"category":{"Python":true}}
single
The garden looked particularly vibrant after the recent rain. The neighborhood gathered every Saturday morning at the small farmers' market downtown. The classroom hummed with quiet conversation as students worked through practice problems. Quality assurance teams collaborate closely with developers to identify and res...
{"is_valid":false,"category":{}}
benign
I copied this from the docs: @echo off :: Supports all ASCII characters and codes from 34-126 with the exceptions of: :: 38 & :: 60 < :: 62 > :: 94 ^ :: 124 |   :_main call:_toCode a call:_toChar 97 pause>nul exit /b   :_toCode setlocal enabledelayedexpansion set codecount=32   for /l %%i in (33,1,126) do ( set ...
{"is_valid":true,"category":{"Batch":true}}
single
Climate models suggest that ocean temperatures will continue to rise over the coming decades. Quality assurance teams collaborate closely with developers to identify and resolve defects. The morning light filtered through the kitchen window as the coffee brewed. Late spring rains caused the lake to swell beyond its usu...
{"is_valid":true,"category":{"Lua":true,"Java":true}}
multi
She enjoyed reading historical novels that transported her to far away places. Software architects often debate the merits of monolithic versus microservice designs. Quarterly reports indicated a steady rise in operational efficiency across divisions. The painting featured warm colors that evoked memories of childhood ...
{"is_valid":true,"category":{"JavaScript":true}}
single
Add comments to make this clearer: import java.util.*;   class Hofstadter { private static List<Integer> getSequence(int rlistSize, int slistSize) { List<Integer> rlist = new ArrayList<Integer>(); List<Integer> slist = new ArrayList<Integer>(); Collections.addAll(rlist, 1, 3, 7); Collections.ad
{"is_valid":true,"category":{"Java":true}}
single
Quick question about this snippet: FROM bats/bats:1.11.0-no-faccessat2@sha256:4d5765d3eea98ecff9e2420ca6ca648539388b825615f994cc3544beb0cbc4f1 RUN apk --no-cache add ncurses curl jq # Expose BATS_LIB_PATH so people can easily use load.bash ENV BATS_PLUGIN_PATH=/usr/lib/bats # Install our fork of bats-mock RUN mkdir ...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. 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. Astronomers observed a faint signal that appe...
{"is_valid":true,"category":{"Python":true,"C#":true}}
multi
Translate this into another language for me: using System; using System.Linq;   static class Program { static bool IsPangram(this string text, string alphabet = "abcdefghijklmnopqrstuvwxyz") { return alphabet.All(text.ToLower().Contains); }   static void Main(string[] arguments) { Co...
{"is_valid":true,"category":{"C#":true}}
single
Run the following: foo = "global" -- global scope print(foo) local foo = "local module" -- local to the current block (which is the module) print(foo) -- local obscures the global print(_G.foo) -- but global still exists do -- create a new block print(foo) -- outer module-level scope still visible local foo = "loca...
{"is_valid":true,"category":{"Lua":true}}
single
The neighborhood gathered every Saturday morning at the small farmers' market downtown. The community center offered free workshops on photography, pottery, and creative writing. He gathered his notes, packed his bag, and prepared for the long journey home. Database administrators monitor query performance and index ut...
{"is_valid":true,"category":{"Java":true}}
single
The community center offered free workshops on photography, pottery, and creative writing. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Engineering teams often adopt iterative methodologies to manage complex software projects. Public libraries have evolved into community hubs off...
{"is_valid":true,"category":{"Swift":true,"Python":true}}
multi
Can you optimize this implementation: use strict; use warnings;   my ($w, $h) = (9, 9); my @v = map([ (0) x ($w + 1) ], 0 .. $h); # voltage my @f = map([ (0) x ($w + 1) ], 0 .. $h); # fixed condition my @d = map([ (0) x ($w + 1) ], 0 .. $h); # diff   my @n; # neighbors for my $i (0 .. $h) { push @{$n[$i][$_]}, [$i,
{"is_valid":true,"category":{"Perl":true}}
single
Project managers stressed the importance of clear documentation throughout the cycle. Researchers gathered data from hundreds of households participating in the longitudinal study. He sat by the window with a steaming mug of tea and watched the snow gently falling. Database administrators monitor query performance and ...
{"is_valid":true,"category":{"AWK":true}}
single
Visitors strolled through the cobblestone streets, admiring the historic architecture. He walked along the river path, listening to the rustling of leaves overhead. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Energy researchers are exploring various pathways for reducin...
{"is_valid":true,"category":{"Swift":true,"PowerShell":true}}
multi
I copied this from the docs: # syntax: GAWK -f NTH.AWK BEGIN { prn(0,25) prn(250,265) prn(1000,1025) exit(0) } function prn(start,stop, i) { printf("%d-%d: ",start,stop) for (i=start; i<=stop; i++) { printf("%d%s ",i,nth(i)) } printf("\n") } function nth(yearday, nthda
{"is_valid":true,"category":{"AWK":true}}
single
Find any security problems in: // [dependencies] // primal = "0.3" // num-format = "0.4"   use num_format::{Locale, ToFormattedString};   fn twin_prime_count_for_powers_of_ten(max_power: u32) { let mut count = 0; let mut previous = 0; let mut power = 1; let mut limit = 10; for prime in primal::Prime...
{"is_valid":true,"category":{"Rust":true,"Python":true}}
multi
Quality assurance teams collaborate closely with developers to identify and resolve defects. Statistical models can sometimes obscure the limitations of the underlying data sources. Children played in the park while their parents chatted on the wooden benches nearby. Climate scientists continue to refine their models i...
{"is_valid":false,"category":{}}
benign
Policy analysts examined the long-term implications of the proposed legislative reform. Local potters fired their kilns once a month, producing colorful ceramics for the shops. The botanical garden featured an impressive collection of rare orchids from tropical regions. The newly opened gallery showcased contemporary w...
{"is_valid":true,"category":{"Java":true}}
single
Could you explain what this code does: #!/usr/bin/perl   use strict; # https://rosettacode.org/wiki/Random_sentence_from_book use warnings;   my $book = do { local (@ARGV, $/) = 'waroftheworlds.txt'; <> }; my (%one, %two);   s/^.*?START OF THIS\N*\n//s, s/END OF THIS.*//s, tr/a-zA-Z.!?/ /c, tr/ / /s for $book;   my $...
{"is_valid":true,"category":{"Perl":true,"YAML":true}}
multi
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. The morning light filtered through the kitchen window as the coffee brewed. The neighborhood gathered every Saturday morning at the small farmers' market downtown. The botanical garden featured an impressive collection of rare orchids f...
{"is_valid":true,"category":{"jq":true}}
single
Could you explain what this code does: apiVersion: apps/v1 kind: Deployment metadata: name: hapi-fhir-mysql-deployment labels: package: core spec: replicas: 1 selector: matchLabels: component: hapi-fhir-mysql strategy: type: Recreate template: metadata: labels: component:...
{"is_valid":true,"category":{"YAML":true}}
single
Local potters fired their kilns once a month, producing colorful ceramics for the shops. She organized her bookshelves by genre and then alphabetically within each section. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Long-distance running requires a combination of discip...
{"is_valid":true,"category":{"YAML":true}}
single
Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Teachers reported that interactive learning tools improved student engagement significantly. What does this output: CREATE TABLE injury_accident (play...
{"is_valid":true,"category":{"SQL":true}}
single
Translate this into another language for me: func maxSubseq(sequence: [Int]) -> (Int, Int, Int) { var maxSum = 0, thisSum = 0, i = 0 var start = 0, end = -1 for (j, seq) in sequence.enumerated() { thisSum += seq if thisSum < 0 { i = j + 1 thisSum = 0 } else if...
{"is_valid":true,"category":{"Swift":true}}
single
The community center offered free workshops on photography, pottery, and creative writing. She enjoyed reading historical novels that transported her to far away places. The conference featured keynote speakers from a wide variety of academic backgrounds. He sat by the window with a steaming mug of tea and watched the ...
{"is_valid":true,"category":{"SQL":true}}
single
Can you optimize this implementation: #include <vector> #include <string> #include <algorithm> #include <iostream> #include <sstream> using namespace std;   #if 1 // optimized for 64-bit architecture typedef unsigned long usingle; typedef unsigned long long udouble; const int word_len = 32; #else // optimized for 32-bi...
{"is_valid":true,"category":{"C++":true}}
single
Please review the following snippet for issues: FROM gssapiproxy/fedora-gssapi-kerberos ENV CLIENT CLIENT_HAS_LIBS_IS_CONFIGURED RUN sed -i.bak1 -e "s/\[realms\]/\[realms\]\n${REALM} = {\n kdc = ${HOST}\n admin_server = ${HOST}\n default_domain = ${HOST}\n}/" /etc/krb5.conf && \ sed -i.bak2 -e "s/\[domain_realm\]...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Can you optimize this implementation: // version 1.2.10   import kotlin.math.sqrt   class Writer<T : Any> private constructor(val value: T, s: String) { var log = " ${s.padEnd(17)}: $value\n" private set   fun bind(f: (T) -> Writer<T>): Writer<T> { val new = f(this.value) new.log = this...
{"is_valid":true,"category":{"Kotlin":true}}
single
Quarterly reports indicated a steady rise in operational efficiency across divisions. 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. Take a look at this: @echo off set number=0 :loo...
{"is_valid":true,"category":{"Batch":true}}
single
Database administrators monitor query performance and index utilization across busy schemas. Policy analysts examined the long-term implications of the proposed legislative reform. She placed the manuscript carefully on the desk and began the painstaking process of revision. Local musicians performed acoustic sets ever...
{"is_valid":true,"category":{"Makefile":true}}
single
He sat by the window with a steaming mug of tea and watched the snow gently falling. 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. Translate this into another language for me: fn horner(v: &[f64], x: f...
{"is_valid":true,"category":{"Rust":true}}
single
The community center offered free workshops on photography, pottery, and creative writing. Marketing analysts examined consumer behavior trends across multiple demographic segments. Backend services were redesigned to handle the surge in concurrent user requests. Travelers explored ancient ruins, marveling at the craft...
{"is_valid":true,"category":{"Python":true}}
single
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Engineering teams often adopt iterative methodologies to manage complex software projects. Marketing analysts examined consumer behav...
{"is_valid":true,"category":{"C#":true}}
single
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Statistical models can sometimes obscure the limitations of the underlying data sources. Researchers gathered data from hundreds of households participating in the longitudinal study. Local potters fired their kilns once a mont...
{"is_valid":true,"category":{"Terraform":true}}
single
Here is the code I was given: # Copyright 2017-2019 The FIAAS Authors # # 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
{"is_valid":true,"category":{"YAML":true}}
single
I copied this from the docs: function split(line) local wa = {} for i in string.gmatch(line, "%S+") do table.insert(wa, i) end return wa end   -- main local file = assert(io.open("days_of_week.txt", "r")) io.input(file)   local line_num = 0 while true do local line = io.read()
{"is_valid":true,"category":{"Lua":true}}
single
Energy researchers are exploring various pathways for reducing carbon emissions globally. Children played in the park while their parents chatted on the wooden benches nearby. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. She enjoyed reading historical novels that transpor...
{"is_valid":true,"category":{"PowerShell":true}}
single
He sat by the window with a steaming mug of tea and watched the snow gently falling. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Take a look at this: cat /dev/urandom | tr -cd '0-9' | fold -w 10 | jq -nRr -f normal-distribution.jq He sat by the window with a steaming mug o...
{"is_valid":true,"category":{"jq":true}}
single
Policy analysts examined the long-term implications of the proposed legislative reform. The library hosted a weekly book club focused on classic and contemporary literature. Local musicians performed acoustic sets every Friday evening at the small cafe. The library hosted a weekly book club focused on classic and conte...
{"is_valid":true,"category":{"Swift":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. He gathered his notes, packed his bag, and prepared for the long journey home. The engineer reviewed the blueprints carefully before approving the mo...
{"is_valid":false,"category":{}}
benign
Local musicians performed acoustic sets every Friday evening at the small cafe. Marketing analysts examined consumer behavior trends across multiple demographic segments. Teachers reported that interactive learning tools improved student engagement significantly. The chef prepared a simple meal of roasted vegetables, f...
{"is_valid":true,"category":{"Swift":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. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Production teams refined their processes to minimi...
{"is_valid":true,"category":{"Makefile":true}}
single
The library hosted a weekly book club focused on classic and contemporary literature. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Volunteers spent the weekend cleaning up the riverside t...
{"is_valid":true,"category":{"C#":true}}
single
Quick question about this snippet: # syntax: GAWK -f TOP_RANK_PER_GROUP.AWK [n] # # sorting: # PROCINFO["sorted_in"] is used by GAWK # SORTTYPE is used by Thompson Automation's TAWK # BEGIN { arrA[++n] = "Employee Name,Employee ID,Salary,Department" # raw data arrA[++n] = "Tyler Bennett,E10297,32000,D1
{"is_valid":true,"category":{"AWK":true}}
single
Historians continue to debate the significance of the treaty signed in that pivotal year. The library hosted a weekly book club focused on classic and contemporary literature. Quality assurance teams collaborate closely with developers to identify and resolve defects. The painting featured warm colors that evoked memor...
{"is_valid":false,"category":{}}
benign
Could you explain what this code does: #include <iostream> #include <iomanip> #include <cmath>   namespace Rosetta {   /*! Implementation of Gauss-Legendre quadrature * http://en.wikipedia.org/wiki/Gaussian_quadrature * http://rosettacode.org/wiki/Numerical_integration/Gauss-Legendre_Quadrature *
{"is_valid":true,"category":{"C++":true}}
single
The neighborhood gathered every Saturday morning at the small farmers' market downtown. Please review the following snippet for issues: FROM gradle:8.12-jdk21 AS builder COPY --chown=gradle:gradle . /home/gradle/src/ WORKDIR /home/gradle/src/ RUN gradle clean distZip -Pdistribution FROM eclipse-temurin:21-jre RUN ap...
{"is_valid":true,"category":{"Dockerfile":true,"Ruby":true}}
multi
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Public libraries have evolved into community hubs offering ...
{"is_valid":true,"category":{"Scala":true}}
single
Quick question about this snippet: import java.util.Arrays;   public class Example { public static void main(String[] args) { int[] nums = {2,4,3,1,2}; Arrays.sort(nums); } }
{"is_valid":true,"category":{"Java":true}}
single
Researchers gathered data from hundreds of households participating in the longitudinal study. Engineering teams often adopt iterative methodologies to manage complex software projects. Marketing analysts examined consumer behavior trends across multiple demographic segments. The newly opened gallery showcased contempo...
{"is_valid":true,"category":{"Kotlin":true}}
single
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. The neighborhood gathered every Saturday morning at the small farmers' market downtown. What does this output: function narcissistic { integer n=$...
{"is_valid":true,"category":{"Bash":true}}
single
Researchers gathered data from hundreds of households participating in the longitudinal study. Marketing analysts examined consumer behavior trends across multiple demographic segments. The morning light filtered through the kitchen window as the coffee brewed. He sat by the window with a steaming mug of tea and watche...
{"is_valid":true,"category":{"Dockerfile":true,"C++":true}}
multi
Teachers reported that interactive learning tools improved student engagement significantly. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. The library hosted a weekly book club focused on classic and contemporary literature. Climate scientists continue to refine their mod...
{"is_valid":true,"category":{"Kotlin":true}}
single
Project managers stressed the importance of clear documentation throughout the cycle. Researchers have been studying migration patterns of monarch butterflies for years. Children played in the park while their parents chatted on the wooden benches nearby. She enjoyed reading historical novels that transported her to fa...
{"is_valid":true,"category":{"R":true,"Kotlin":true}}
multi
Translate this into another language for me: fn merge<T: Copy + PartialOrd>(x1: &[T], x2: &[T], y: &mut [T]) { assert_eq!(x1.len() + x2.len(), y.len()); let mut i = 0; let mut j = 0; let mut k = 0; while i < x1.len() && j < x2.len() { if x1[i] < x2[j] { y[k] = x1[i]; k += 1; i += 1; } else { y[k] =...
{"is_valid":true,"category":{"Rust":true}}
single
Take a look at this: // version 1.1.2   val tri = intArrayOf( 55, 94, 48, 95, 30, 96, 77, 71, 26, 67, 97, 13, 76, 38, 45, 7, 36, 79, 16, 37, 68, 48, 7, 9, 18, 70, 26, 6, 18, 72, 79, 46, 59, 79, 29, 90, 20, 76, 87, 11, 32, 7, 7, 49, 18, 27, 83, 58, 35, 71, 11, 25, 57, 29, 85...
{"is_valid":true,"category":{"Kotlin":true}}
single
Quick question about this snippet: function dice5() { return 1 + Math.floor(5 * Math.random()); }   function dice7() { while (true) { var dice55 = 5 * dice5() + dice5() - 6; if (dice55 < 21) return dice55 % 7 + 1; } }   distcheck(dice5, 1000000); print(); distcheck(dice7, 1000000);
{"is_valid":true,"category":{"JavaScript":true}}
single
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. The community center offered free workshops on photography, pottery, and creative writing. The bakery on the corner was famous for its sourdoug...
{"is_valid":true,"category":{"R":true}}
single
Long-distance running requires a combination of disciplined training and proper nutrition. What does this output: local example = { } function example:foo (x) return 42 + x end   local name = "foo" example[name](example, 5) --> 47 We also have this other snippet: >set r=Rosetta   >set c=Code   >set s=:   >echo %r%%s%%...
{"is_valid":true,"category":{"Lua":true,"Batch":true,"Kotlin":true}}
multi
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Backend services were redesigned to handle the surge in concurrent user requests. The conference featured keynote speakers from a wide variety of academic backgrounds. Modern microprocessors rely on pipelining and out-of-order exe...
{"is_valid":true,"category":{"Perl":true}}
single
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. The morning light filtered through the kitchen window as the coffee brewed. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Quality assurance teams collaborate closely with developers t...
{"is_valid":true,"category":{"Makefile":true}}
single
The painting featured warm colors that evoked memories of childhood summers by the sea. Corporate training programs increasingly include modules on collaboration and communication. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Late spring rains caused the lake to sw...
{"is_valid":false,"category":{}}
benign
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. Software architects often debate the merits of monolithic versus microservice designs. Researchers gathered data from hundreds of households ...
{"is_valid":true,"category":{"Batch":true}}
single
The garden looked particularly vibrant after the recent rain. Distributed systems demand careful attention to consistency, availability, and partition tolerance. The conference featured keynote speakers from a wide variety of academic backgrounds. Take a look at this: --- apiVersion: v1 kind: PersistentVolumeClaim meta...
{"is_valid":true,"category":{"YAML":true}}
single
Statistical models can sometimes obscure the limitations of the underlying data sources. Quality assurance teams collaborate closely with developers to identify and resolve defects. Researchers gathered data from hundreds of households participating in the longitudinal study. Marketing analysts examined consumer behavi...
{"is_valid":true,"category":{"YAML":true}}
single
Add comments to make this clearer: #include<stdlib.h> #include<stdio.h> #include<math.h>   typedef struct{ double x,y; }point;   double shoelace(char* inputFile){ int i,numPoints; double leftSum = 0,rightSum = 0;   point* pointSet; FILE* fp = fopen(inputFile,"r");   fscanf(fp,"%d",&numPoints);   pointSet = (poin...
{"is_valid":true,"category":{"C":true}}
single
Corporate training programs increasingly include modules on collaboration and communication. Astronomers observed a faint signal that appeared to originate from a distant galaxy. The engineer reviewed the blueprints carefully before approving the modifications. The chef prepared a simple meal of roasted vegetables, fre...
{"is_valid":true,"category":{"Rust":true}}
single
Marketing analysts examined consumer behavior trends across multiple demographic segments. Could you explain what this code does: def thueMorse: 0, ({sb0: "0", sb1: "1", n:1 } | while( true; {n: (.sb0|length), sb0: (.sb0 + .sb1), sb1: (.sb1 + .sb0)} ) | .sb0[.n:] | explode[] | . - 48...
{"is_valid":true,"category":{"jq":true}}
single
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Researchers gathered data from hundreds of households participating in the longitudinal study. He sat by the window with a steaming mug of tea and watched the snow gently falling. Late spring rains caused the lake to swell bey...
{"is_valid":true,"category":{"C":true,"YAML":true}}
multi
Statistical models can sometimes obscure the limitations of the underlying data sources. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Long-distance running requires a combination of disciplined training and proper nutrition. Late spring rains caused the lake to swell beyond its usual...
{"is_valid":true,"category":{"SQL":true}}
single
The morning light filtered through the kitchen window as the coffee brewed. Teachers reported that interactive learning tools improved student engagement significantly. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. The painting featured warm colors that evoked memories of ...
{"is_valid":false,"category":{}}
benign
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Quick question about this snippet: #include <stdio.h>   /* always assuming int is at least 32 bits */ int rand(); int rseed = 0;   inline void srand(int x) { rseed = x; }   #ifndef MS_RAND #define RAND_MAX ((1U << 31) - 1)   i...
{"is_valid":true,"category":{"C":true}}
single
Production teams refined their processes to minimize waste and improve overall yield. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Marketing analysts examined consumer behavior trends across multiple demographic segments. A gentle breeze drifted across the meadow a...
{"is_valid":true,"category":{"Python":true}}
single
Can you optimize this implementation: /** * 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 r...
{"is_valid":true,"category":{"Terraform":true}}
single