prompt
large_stringlengths
150
7.97k
target
large_stringlengths
32
83
kind
large_stringclasses
3 values
Software architects often debate the merits of monolithic versus microservice designs. Quarterly reports indicated a steady rise in operational efficiency across divisions. Quick question about this snippet: fn main() { // Rust contains a single boolean type: `bool`, represented by the keywords `true` and `false`. ...
{"is_valid":true,"category":{"Ruby":true}}
single
He gathered his notes, packed his bag, and prepared for the long journey home. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Visitors strolled through the cobblestone streets, admiring th...
{"is_valid":true,"category":{"Batch":true}}
single
Hikers were advised to carry plenty of water and to inform someone of their planned route. Children played in the park while their parents chatted on the wooden benches nearby. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. The engineer reviewed the blueprints carefully before appro...
{"is_valid":false,"category":{}}
benign
I copied this from the docs: # -*- coding: utf-8 -*-   from itertools import izip   def degree(poly): while poly and poly[-1] == 0: poly.pop() # normalize return len(poly)-1   def poly_div(N, D): dD = degree(D) dN = degree(N) if dD < 0: raise ZeroDivisionError if dN >= dD:
{"is_valid":true,"category":{"Python":true}}
single
Database administrators monitor query performance and index utilization across busy schemas. Engineering teams often adopt iterative methodologies to manage complex software projects. Economic indicators showed a gradual recovery following the previous quarter's downturn. Local potters fired their kilns once a month, p...
{"is_valid":false,"category":{}}
benign
Refactor the function below: module "mirror" { source = "../host" base_configuration = var.base_configuration name = "mirror" use_os_released_updates = var.use_os_released_updates additional_repos = var.additional_repos additional_packages = var.additional_packages swap...
{"is_valid":true,"category":{"Terraform":true}}
single
She placed the manuscript carefully on the desk and began the painstaking process of revision. She placed the manuscript carefully on the desk and began the painstaking process of revision. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. The chef prepared a simple meal of ro...
{"is_valid":true,"category":{"Rust":true,"Makefile":true}}
multi
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Historians continue to debate the significance of the treaty signed in that pivotal year. Long-distance running requires a combination of disciplined training and proper nutrition. Long-distance running requires a combination of discipl...
{"is_valid":true,"category":{"Go":true}}
single
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Network operators continually upgrade infrastructure to keep pace with growing demand. Network operators continually upgrade infrastructure to keep pace with growing demand. Climate scientists continue to refine their models in...
{"is_valid":true,"category":{"YAML":true,"Lua":true}}
multi
Take a look at this: # syntax=docker/dockerfile:1 # Copyright 2021 cli-docs-tool 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 # #...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Refactor the function below: LD_FILE = boards/samd21x18-bootloader-external-flash.ld USB_VID = 0x239A USB_PID = 0x8023 USB_PRODUCT = "Feather M0 Express" USB_MANUFACTURER = "Adafruit Industries LLC" SPI_FLASH_FILESYSTEM = 1 EXTERNAL_FLASH_DEVICE_COUNT = 2 EXTERNAL_FLASH_DEVICES = "S25FL216K, GD25Q16C" LONGINT_IMPL = M...
{"is_valid":true,"category":{"Makefile":true,"PowerShell":true}}
multi
Researchers have been studying migration patterns of monarch butterflies for years. The neighborhood gathered every Saturday morning at the small farmers' market downtown. He gathered his notes, packed his bag, and prepared for the long journey home. She drafted a detailed agenda for the upcoming retreat and circulated...
{"is_valid":false,"category":{}}
benign
Translate this into another language for me: ################################################################################ # 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 # regardin...
{"is_valid":true,"category":{"Dockerfile":true,"jq":true}}
multi
Please review the following snippet for issues: @echo off setlocal enabledelayedexpansion   %==Sample list==% set "data=foo, bar, baz, quux, quuux, quuuux, bazola, ztesch, foo, bar, thud, grunt" set "data=%data% foo, bar, bletch, foo, bar, fum, fred, jim, sheila, barney, flarp, zxc" set "data=%data% spqr, wombat, shme...
{"is_valid":true,"category":{"Batch":true}}
single
Researchers gathered data from hundreds of households participating in the longitudinal study. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Climate scientists continue to refine their...
{"is_valid":false,"category":{}}
benign
Marketing analysts examined consumer behavior trends across multiple demographic segments. Can you optimize this implementation: public static String reverseString(String s) { return new StringBuffer(s).reverse().toString(); }
{"is_valid":true,"category":{"Java":true}}
single
Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Hikers were advised to carry plenty of water and to inform someone of their planned route. Researchers gathered data from hundreds of households participating in the longitudinal study. Can you optimize this implementation: puz15<-function...
{"is_valid":true,"category":{"R":true}}
single
Add comments to make this clearer: # syntax: GAWK -f FUSC_SEQUENCE.AWK # converted from C BEGIN { for (i=0; i<61; i++) { printf("%d ",fusc(i)) } printf("\n") print("fusc numbers whose length is greater than any previous fusc number length") printf("%9s %9s\n","fusc","index") for (i=0; i<=7...
{"is_valid":true,"category":{"AWK":true,"Go":true}}
multi
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Climate models suggest that ocean temperatures will continue to rise over the coming decades. He sat by the window with a steaming mug of tea and watched the snow gently falling. Network operators continually upgrade infrastru...
{"is_valid":true,"category":{"Go":true,"jq":true}}
multi
Refactor the function below: // [dependencies] // primal = "0.3"   fn main() { use std::collections::HashMap;   let mut primes = primal::Primes::all(); let mut last_prime = primes.next().unwrap(); let mut gap_starts = HashMap::new();   let mut find_gap_start = move |gap: usize| -> usize { if...
{"is_valid":true,"category":{"Rust":true}}
single
Astronomers observed a faint signal that appeared to originate from a distant galaxy. Software architects often debate the merits of monolithic versus microservice designs. 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 co...
{"is_valid":true,"category":{"JavaScript":true,"Swift":true,"SQL":true}}
multi
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}}
single
The garden looked particularly vibrant after the recent rain. Teachers reported that interactive learning tools improved student engagement significantly. Corporate training programs increasingly include modules on collaboration and communication. Climate models suggest that ocean temperatures will continue to rise ove...
{"is_valid":true,"category":{"Lua":true}}
single
The garden looked particularly vibrant after the recent rain. The garden looked particularly vibrant after the recent rain. Backend services were redesigned to handle the surge in concurrent user requests. Policy analysts examined the long-term implications of the proposed legislative reform. Nutritionists generally re...
{"is_valid":true,"category":{"Makefile":true}}
single
Here is the code I was given: using static System.Console; using System.Collections.Generic; using System.Linq;   public static class AbundantOddNumbers { public static void Main() { WriteLine("First 25 abundant odd numbers:"); foreach (var x in AbundantNumbers().Take(25)) WriteLine(x.Format()); ...
{"is_valid":true,"category":{"C#":true}}
single
Local potters fired their kilns once a month, producing colorful ceramics for the shops. Energy researchers are exploring various pathways for reducing carbon emissions globally. She organized her bookshelves by genre and then alphabetically within each section. He gathered his notes, packed his bag, and prepared for t...
{"is_valid":true,"category":{"Kotlin":true}}
single
Could you explain what this code does: use strict; use warnings;   while( <DATA> ) { print "\n$_", tr/\n/=/cr; my ($cells, @blocks) = split; my $letter = 'A'; $_ = join '.', map { $letter++ x $_ } @blocks; $cells < length and print("no solution\n"), next; $_ .= '.' x ($cells - length) . "\n"; 1 while p
{"is_valid":true,"category":{"Perl":true}}
single
The painting featured warm colors that evoked memories of childhood summers by the sea. Could you explain what this code does: file.exists("input.txt") file.exists("/input.txt") file.exists("docs") file.exists("/docs")   # or file.exists("input.txt", "/input.txt", "docs", "/docs") Teachers reported that interactive lea...
{"is_valid":true,"category":{"R":true}}
single
Energy researchers are exploring various pathways for reducing carbon emissions globally. The painting featured warm colors that evoked memories of childhood summers by the sea. Project managers stressed the importance of clear documentation throughout the cycle. Find any security problems in: class Program { stati...
{"is_valid":true,"category":{"C#":true,"JavaScript":true,"Makefile":true}}
multi
Hikers were advised to carry plenty of water and to inform someone of their planned route. Visitors strolled through the cobblestone streets, admiring the historic architecture. Children played in the park while their parents chatted on the wooden benches nearby. The neighborhood gathered every Saturday morning at the ...
{"is_valid":true,"category":{"SQL":true}}
single
The garden looked particularly vibrant after the recent rain. Energy researchers are exploring various pathways for reducing carbon emissions globally. Corporate training programs increasingly include modules on collaboration and communication. Policy analysts examined the long-term implications of the proposed legisla...
{"is_valid":true,"category":{"Perl":true}}
single
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Run the following: use Scalar::Util qw(refaddr); print refaddr(\my $v), "\n"; # 140502490125712 Visitors strolled through the cobblestone streets, admiring the historic architecture. Historians continue to debate the signific...
{"is_valid":true,"category":{"Perl":true}}
single
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Network operators continually upgrade infrastructure to keep pace with growing demand. The newly opened gallery showcased contemporary works by emerging regional artists. Project managers stressed the importance of clear documentation t...
{"is_valid":true,"category":{"jq":true}}
single
The classroom hummed with quiet conversation as students worked through practice problems. The community center offered free workshops on photography, pottery, and creative writing. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. The library hosted a weekly book club focused...
{"is_valid":true,"category":{"Perl":true,"AWK":true,"Go":true}}
multi
The conference featured keynote speakers from a wide variety of academic backgrounds. Climate scientists continue to refine their models in light of newly available data. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. She enjoyed reading historical novels that transported h...
{"is_valid":true,"category":{"Python":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. Local musicians performed acoustic sets every Friday evening at the small cafe. The neighborhood gathered every Saturday morning at the small far...
{"is_valid":true,"category":{"C#":true}}
single
I need help debugging this script: >>> def popcount(n): return bin(n).count("1")   >>> primes = {2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61} >>> p, i = [], 0 >>> while len(p) < 25: if popcount(i) in primes: p.append(i) i += 1     >>> p [3, 5, 6, 7, 9, 10, 11, 12, 13, 14, 17, 18, ...
{"is_valid":true,"category":{"Python":true}}
single
The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Here is the code I was given: FROM sentry: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 ins...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Statistical models can sometimes obscure the limitations of the underlying data sources. Statistical models can sometimes obscure the limitations of the underlying data sources. Historians continue to debate the significance of the treaty signed in that pivotal year. Climate models suggest that ocean temperatures will ...
{"is_valid":true,"category":{"R":true}}
single
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Production teams refined their processes to minimize waste and improve overall yield. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Quality assurance teams collaborate closely with develop...
{"is_valid":false,"category":{}}
benign
Production teams refined their processes to minimize waste and improve overall yield. Local potters fired their kilns once a month, producing colorful ceramics for the shops. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Energy researchers are exploring various pathways fo...
{"is_valid":true,"category":{"R":true}}
single
Quarterly reports indicated a steady rise in operational efficiency across divisions. 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. Public libraries have evolved into community hubs offerin...
{"is_valid":true,"category":{"Scala":true,"Swift":true,"R":true}}
multi
I need help debugging this script: # syntax=docker/dockerfile:1 ARG GO_VERSION=1.24 ARG ALPINE_VERSION=3.21 ARG XX_VERSION=1.6.1 # for testing ARG DOCKER_VERSION=28.2.2 ARG DOCKER_VERSION_ALT_27=27.5.1 ARG DOCKER_VERSION_ALT_26=26.1.3 ARG DOCKER_CLI_VERSION=${DOCKER_VERSION} ARG GOTESTSUM_VERSION=v1.12.0 ARG REGISTRY...
{"is_valid":true,"category":{"Dockerfile":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. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Energy researchers are exploring various pathways fo...
{"is_valid":true,"category":{"Dockerfile":true,"C++":true}}
multi
Climate models suggest that ocean temperatures will continue to rise over the coming decades. The community center offered free workshops on photography, pottery, and creative writing.
{"is_valid":false,"category":{}}
benign
Find any security problems in: import java.math.BigInteger ;   public class Pi { final BigInteger TWO = BigInteger.valueOf(2) ; final BigInteger THREE = BigInteger.valueOf(3) ; final BigInteger FOUR = BigInteger.valueOf(4) ; final BigInteger SEVEN = BigInteger.valueOf(7) ;   BigInteger q = BigInteger.ONE ; ...
{"is_valid":true,"category":{"Java":true,"C":true,"C++":true}}
multi
She placed the manuscript carefully on the desk and began the painstaking process of revision. Refactor the function below: # Copyright 2020 The Kubernetes 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 c...
{"is_valid":true,"category":{"Dockerfile":true,"Swift":true}}
multi
Hikers were advised to carry plenty of water and to inform someone of their planned route. He sat by the window with a steaming mug of tea and watched the snow gently falling. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. The botanical garden featured an impressive collect...
{"is_valid":false,"category":{}}
benign
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Historians continue to debate the significance o...
{"is_valid":false,"category":{}}
benign
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Can you optimize this implementation: resource "aws_iam_user" "argyris_galamatis" { name = "argyrisgalamatis" force_destroy = ...
{"is_valid":true,"category":{"Terraform":true}}
single
Software architects often debate the merits of monolithic versus microservice designs. Historians continue to debate the significance of the treaty signed in that pivotal year. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Database administrators monitor query performance ...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Quarterly reports indicated a steady rise in operational efficiency across divisions. The morning light filtered through the kitchen window as the coffee brewed. Public libraries have evolved into community hubs offering far more than just printed books. The chef prepared a simple meal of roasted vegetables, fresh brea...
{"is_valid":true,"category":{"PowerShell":true,"Bash":true}}
multi
The garden looked particularly vibrant after the recent rain. Production teams refined their processes to minimize waste and improve overall yield. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. The newly opened gallery showcased contemporary works by emerging regional arti...
{"is_valid":true,"category":{"C":true}}
single
Take a look at this: // version 1.1.4-3   typealias List2D<T> = List<List<T>>   const val S = 10   class Node(var v: Double, var fixed: Int)   fun setBoundary(m: List2D<Node>) { m[1][1].v = 1.0; m[1][1].fixed = 1 m[6][7].v = -1.0; m[6][7].fixed = -1 }   fun calcDiff(m: List2D<Node>, d: List2D<Node>, w: Int, h...
{"is_valid":true,"category":{"Kotlin":true}}
single
Climate models suggest that ocean temperatures will continue to rise over the coming decades. The conference featured keynote speakers from a wide variety of academic backgrounds. The garden looked particularly vibrant after the recent rain. The technology conference attracted engineers, designers, and product managers...
{"is_valid":true,"category":{"Terraform":true}}
single
Add comments to make this clearer: package main   import "fmt"   func circleSort(a []int, lo, hi, swaps int) int { if lo == hi { return swaps } high, low := hi, lo mid := (hi - lo) / 2 for lo < hi { if a[lo] > a[hi] { a[lo], a[hi] = a[hi], a[lo] swaps++
{"is_valid":true,"category":{"Go":true}}
single
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Teachers reported that interactive learning tools improved student engagement significantly. She enjoyed reading historical novels that transported her to far away places. He sat by the window with a steaming mug of tea and wat...
{"is_valid":true,"category":{"Terraform":true,"Perl":true}}
multi
Could you explain what this code does: function join(array, start, end, sep, result, i) { result = array[start] for (i = start + 1; i <= end; i++) result = result sep array[i] return result }   function trim(str) { gsub(/^[[:blank:]]+|[[:blank:]\n]+$/, "", str) ret...
{"is_valid":true,"category":{"AWK":true}}
single
Quarterly reports indicated a steady rise in operational efficiency across divisions. The committee scheduled a follow-up meeting to discuss the budget allocations. Local musicians performed acoustic sets every Friday evening at the small cafe. Visitors strolled through the cobblestone streets, admiring the historic ar...
{"is_valid":true,"category":{"Dockerfile":true}}
single
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. She enjoyed reading historical novels that transported her to far away places. He gathered his notes, packed his bag, and prepared for...
{"is_valid":true,"category":{"Scala":true}}
single
The newly opened gallery showcased contemporary works by emerging regional artists. The committee scheduled a follow-up meeting to discuss the budget allocations. Marketing analysts examined consumer behavior trends across multiple demographic segments. Backend services were redesigned to handle the surge in concurrent...
{"is_valid":true,"category":{"Perl":true,"YAML":true}}
multi
Researchers gathered data from hundreds of households participating in the longitudinal study. Astronomers observed a faint signal that appeared to originate from a distant galaxy. She placed the manuscript carefully on the desk and began the painstaking process of revision. The chef prepared a simple meal of roasted v...
{"is_valid":true,"category":{"Perl":true}}
single
Climate scientists continue to refine their models in light of newly available data. Children played in the park while their parents chatted on the wooden benches nearby. Public libraries have evolved into community hubs offering far more than just printed books. Teachers reported that interactive learning tools improv...
{"is_valid":true,"category":{"JavaScript":true}}
single
Long-distance running requires a combination of disciplined training and proper nutrition. The painting featured warm colors that evoked memories of childhood summers by the sea. Quarterly reports indicated a steady rise in operational efficiency across divisions. A gentle breeze drifted across the meadow as the sun be...
{"is_valid":true,"category":{"Rust":true}}
single
Energy researchers are exploring various pathways for reducing carbon emissions globally. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Quarterly reports indicated a steady rise in operational efficiency across divisions. Hikers were advised to carry plenty of water and to...
{"is_valid":true,"category":{"Perl":true}}
single
What does this output: function printVerse(name) local sb = string.lower(name) sb = sb:gsub("^%l", string.upper) local x = sb local x0 = x:sub(1,1)   local y if x0 == 'A' or x0 == 'E' or x0 == 'I' or x0 == 'O' or x0 == 'U' then y = string.lower(x) else y = x:sub(2) end   ...
{"is_valid":true,"category":{"Lua":true,"Python":true}}
multi
The library hosted a weekly book club focused on classic and contemporary literature. Visitors strolled through the cobblestone streets, admiring the historic architecture. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Find any security problems in: function Reverse-String...
{"is_valid":true,"category":{"PowerShell":true}}
single
Historians continue to debate the significance of the treaty signed in that pivotal year. Hikers were advised to carry plenty of water and to inform someone of their planned route. Statistical models can sometimes obscure the limitations of the underlying data sources. Corporate training programs increasingly include m...
{"is_valid":true,"category":{"R":true}}
single
Economic indicators showed a gradual recovery following the previous quarter's downturn. Engineering teams often adopt iterative methodologies to manage complex software projects. Historians continue to debate the significance of the treaty signed in that pivotal year. Economic indicators showed a gradual recovery foll...
{"is_valid":true,"category":{"JavaScript":true}}
single
He gathered his notes, packed his bag, and prepared for the long journey home. Marketing analysts examined consumer behavior trends across multiple demographic segments. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Children played in the park while their parents chatted ...
{"is_valid":true,"category":{"PowerShell":true}}
single
Engineering teams often adopt iterative methodologies to manage complex software projects. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Distributed systems demand careful attention...
{"is_valid":true,"category":{"R":true}}
single
Can you optimize this implementation: $lines = @( 'fly/' 'spider/That wiggled and jiggled and tickled inside her,' 'bird/How absurd, to swallow a bird,' 'cat/Imagine that. She swallowed a cat,' 'dog/What a hog to swallow a dog,' 'goat/She just opened her throat and swallowed that goat,' 'cow...
{"is_valid":true,"category":{"PowerShell":true}}
single
Add comments to make this clearer: var fizzBuzz = function () { var i, output; for (i = 1; i < 101; i += 1) { output = ''; if (!(i % 3)) { output += 'Fizz'; } if (!(i % 5)) { output += 'Buzz'; } console.log(output || i);//empty string is false, so we short-circuit } };
{"is_valid":true,"category":{"JavaScript":true}}
single
Here is the code I was given: package dogs   import "fmt"   // Three variables, three different names. // (It wouldn't compile if the compiler saw the variable names as the same.) var dog = "Salt" var Dog = "Pepper" var DOG = "Mustard"   func PackageSees() map[*string]int { // Print dogs visible from here. fmt....
{"is_valid":true,"category":{"Go":true,"Lua":true}}
multi
Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Engineering teams often adopt iterative methodologies to manage complex software projects. Researchers have been studying migration patterns of monarch butterflies for years. The newly opened gallery showcased contemporary works by emergin...
{"is_valid":true,"category":{"Swift":true}}
single
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Policy analysts examined the long-term implications of the proposed legislative reform. The engineer reviewed the blueprints carefully before appro...
{"is_valid":true,"category":{"Rust":true,"Lua":true}}
multi
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Hikers were advised to carry plenty of water and to inform someone of their planned route. Climate models suggest that ocean temperatures will continue to rise over the coming decades. The botanical garden featured an impressiv...
{"is_valid":true,"category":{"Ruby":true}}
single
The garden looked particularly vibrant after the recent rain. He walked along the river path, listening to the rustling of leaves overhead. The morning light filtered through the kitchen window as the coffee brewed. Network operators continually upgrade infrastructure to keep pace with growing demand. The technology co...
{"is_valid":true,"category":{"Java":true}}
single
Here is the code I was given: #include <iostream> #include <vector>   std::vector<long> TREE_LIST; std::vector<int> OFFSET;   void init() { for (size_t i = 0; i < 32; i++) { if (i == 1) { OFFSET.push_back(1); } else { OFFSET.push_back(0); } } }   void append(long ...
{"is_valid":true,"category":{"C++":true}}
single
Network operators continually upgrade infrastructure to keep pace with growing demand. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. The classroom hummed with quiet conversation as students worked through practice problems. She placed the manuscript carefully on the desk ...
{"is_valid":true,"category":{"JavaScript":true}}
single
Refactor the function below: import math   dxs = [-0.533, 0.27, 0.859, -0.043, -0.205, -0.127, -0.071, 0.275, 1.251, -0.231, -0.401, 0.269, 0.491, 0.951, 1.15, 0.001, -0.382, 0.161, 0.915, 2.08, -2.337, 0.034, -0.126, 0.014, 0.709, 0.129, -1.093, -0.483, -1.193, 0.02, -0.051, 0.047, -0.095, 0.695...
{"is_valid":true,"category":{"Python":true}}
single
Engineering teams often adopt iterative methodologies to manage complex software projects. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Climate scientists continue to refine their models in light of newly available data. He wandered through the old bookstore, occasionall...
{"is_valid":true,"category":{"Go":true}}
single
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. I need help debugging this script: $ARGS.positional contains an array of the positional arguments as JSON strings
{"is_valid":true,"category":{"jq":true}}
single
The painting featured warm colors that evoked memories of childhood summers by the sea. Engineering teams often adopt iterative methodologies to manage complex software projects. The morning light filtered through the kitchen window as the coffee brewed. The botanical garden featured an impressive collection of rare or...
{"is_valid":true,"category":{"Scala":true}}
single
Late spring rains caused the lake to swell beyond its usual seasonal boundaries. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Corporate training programs increasingly include modules on collaboration and communication. She organized her bookshelves by genre and then alphabetic...
{"is_valid":true,"category":{"Lua":true,"Go":true}}
multi
Teachers reported that interactive learning tools improved student engagement significantly. Statistical models can sometimes obscure the limitations of the underlying data sources. Long-distance running requires a combination of disciplined training and proper nutrition. The neighborhood gathered every Saturday mornin...
{"is_valid":true,"category":{"Swift":true}}
single
The morning light filtered through the kitchen window as the coffee brewed. The painting featured warm colors that evoked memories of childhood summers by the sea. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Distributed systems demand careful attention to consistency, av...
{"is_valid":true,"category":{"Makefile":true}}
single
The technology conference attracted engineers, designers, and product managers from around the world. Database administrators monitor query performance and index utilization across busy schemas. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Database administrators monitor...
{"is_valid":true,"category":{"Kotlin":true}}
single
Distributed systems demand careful attention to consistency, availability, and partition tolerance. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Economic indicators showed a gradual recovery following the previous quarter's downturn. He walked along the river path, listening t...
{"is_valid":true,"category":{"Swift":true}}
single
Climate models suggest that ocean temperatures will continue to rise over the coming decades. The painting featured warm colors that evoked memories of childhood summers by the sea. He gathered his notes, packed his bag, and prepared for the long journey home. Public libraries have evolved into community hubs offering ...
{"is_valid":false,"category":{}}
benign
Refactor the function below: class DListNode < ListNode attr_accessor :prev # accessors :succ and :value are inherited   def initialize(value, prev=nil, succ=nil) @value = value @prev = prev @prev.succ = self if prev @succ = succ @succ.prev = self if succ end   def self.from_val
{"is_valid":true,"category":{"Ruby":true}}
single
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. 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. The newly opened gallery showcased contemporary works by em...
{"is_valid":true,"category":{"Lua":true}}
single
Hikers were advised to carry plenty of water and to inform someone of their planned route. He walked along the river path, listening to the rustling of leaves overhead. Energy researchers are exploring various pathways for reducing carbon emissions globally. He adjusted the telescope and waited patiently for the clouds...
{"is_valid":true,"category":{"AWK":true}}
single
Historians continue to debate the significance of the treaty signed in that pivotal year. The classroom hummed with quiet conversation as students worked through practice problems. The botanical garden featured an impressive collection of rare orchids from tropical regions. Visitors strolled through the cobblestone str...
{"is_valid":true,"category":{"Rust":true}}
single
Researchers have been studying migration patterns of monarch butterflies for years. The committee scheduled a follow-up meeting to discuss the budget allocations. Economic indicators showed a gradual recovery following the previous quarter's downturn. Travelers explored ancient ruins, marveling at the craftsmanship of ...
{"is_valid":true,"category":{"Scala":true}}
single
Could you explain what this code does: package main   import ( "container/heap" "fmt" )   type HuffmanTree interface { Freq() int }   type HuffmanLeaf struct { freq int value rune }   type HuffmanNode struct { freq int left, right HuffmanTree }   func (self HuffmanLeaf) Freq() int { ...
{"is_valid":true,"category":{"Go":true}}
single
Find any security problems in: #include <stdio.h> //printf() #include <stdlib.h> //srand(), rand(), RAND_MAX, qsort() #include <stdbool.h> //true, false #include <time.h> //time()   #define NUMBALLS 5 //NUMBALLS>1   int compar(const void *a, const void *b){ char c1=*(const char*)a, c2=*(const char*)b; //first cast voi...
{"is_valid":true,"category":{"C":true}}
single
Visitors strolled through the cobblestone streets, admiring the historic architecture. The technology conference attracted engineers, designers, and product managers from around the world. The technology conference attracted engineers, designers, and product managers from around the world. Production teams refined thei...
{"is_valid":false,"category":{}}
benign
Energy researchers are exploring various pathways for reducing carbon emissions globally. The committee scheduled a follow-up meeting to discuss the budget allocations. Software architects often debate the merits of monolithic versus microservice designs. The community center offered free workshops on photography, pott...
{"is_valid":true,"category":{"Batch":true,"C#":true}}
multi
Historians continue to debate the significance of the treaty signed in that pivotal year. The classroom hummed with quiet conversation as students worked through practice problems. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Modern microprocessors rely on pipelining and ...
{"is_valid":true,"category":{"YAML":true}}
single