prompt
large_stringlengths
150
7.97k
target
large_stringlengths
32
83
kind
large_stringclasses
3 values
Policy analysts examined the long-term implications of the proposed legislative reform. Network operators continually upgrade infrastructure to keep pace with growing demand. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. The painting featured warm colors that evoked memories ...
{"is_valid":true,"category":{"PowerShell":true,"C":true}}
multi
Researchers gathered data from hundreds of households participating in the longitudinal study. The committee scheduled a follow-up meeting to discuss the budget allocations. Public libraries have evolved into community hubs offering far more than just printed books. Economic indicators showed a gradual recovery followi...
{"is_valid":true,"category":{"Lua":true}}
single
The botanical garden featured an impressive collection of rare orchids from tropical regions. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. The newly opened gallery showcased contemporary works by emerging regional artists. The neighborhood gathered every Saturday morning ...
{"is_valid":false,"category":{}}
benign
Here is the code I was given: #include <stdio.h> #include <stdlib.h> #include <math.h>   double int_leftrect(double from, double to, double n, double (*func)()) { double h = (to-from)/n; double sum = 0.0, x; for(x=from; x <= (to-h); x += h) sum += func(x); return h*sum; }   double int_rightrect(double...
{"is_valid":true,"category":{"C":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. Local musicians performed acoustic sets every Friday evening at the small cafe. She placed the manuscript carefully on the desk and began the pains...
{"is_valid":true,"category":{"Go":true}}
single
Local potters fired their kilns once a month, producing colorful ceramics for the shops. Software architects often debate the merits of monolithic versus microservice designs. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Quality assurance teams collaborate closely with de...
{"is_valid":true,"category":{"C#":true}}
single
Software architects often debate the merits of monolithic versus microservice designs. Could you explain what this code does: # input should be a non-negative integer def commatize: def digits: tostring | explode | reverse; [foreach digits[] as $d (-1; .+1; (select(. > 0 and . % 3 == 0)|44), $d)] # "," is ...
{"is_valid":true,"category":{"jq":true,"Dockerfile":true}}
multi
She enjoyed reading historical novels that transported her to far away places. The morning light filtered through the kitchen window as the coffee brewed. The morning light filtered through the kitchen window as the coffee brewed. Distributed systems demand careful attention to consistency, availability, and partition ...
{"is_valid":true,"category":{"Batch":true}}
single
He sat by the window with a steaming mug of tea and watched the snow gently falling. Climate scientists continue to refine their models in light of newly available data. She organized her bookshelves by genre and then alphabetically within each section. The morning light filtered through the kitchen window as the coffe...
{"is_valid":true,"category":{"Kotlin":true}}
single
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Modern microprocessors rely on pipelining and ...
{"is_valid":true,"category":{"C":true}}
single
The morning light filtered through the kitchen window as the coffee brewed. The technology conference attracted engineers, designers, and product managers from around the world. The neighborhood gathered every Saturday morning at the small farmers' market downtown. The technology conference attracted engineers, designe...
{"is_valid":true,"category":{"Scala":true,"Ruby":true}}
multi
The library hosted a weekly book club focused on classic and contemporary literature. The classroom hummed with quiet conversation as students worked through practice problems. Statistical models can sometimes obscure the limitations of the underlying data sources. Historians continue to debate the significance of the ...
{"is_valid":true,"category":{"C++":true}}
single
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Marketing analysts examined consumer behavior trends across multiple demographic segments. The bakery on the corner was famous for its sourdough loaves...
{"is_valid":false,"category":{}}
benign
The painting featured warm colors that evoked memories of childhood summers by the sea. Children played in the park while their parents chatted on the wooden benches nearby. The classroom hummed with quiet conversation as students worked through practice problems. Long-distance running requires a combination of discipl...
{"is_valid":true,"category":{"PowerShell":true}}
single
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. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Policy analysts examined the long-term implications...
{"is_valid":true,"category":{"Rust":true}}
single
Local musicians performed acoustic sets every Friday evening at the small cafe. She organized her bookshelves by genre and then alphabetically within each section. Add comments to make this clearer: CREATE TABLE wrestler (Name VARCHAR, Days_held VARCHAR); SELECT Name FROM wrestler ORDER BY Days_held LIMIT 1 Quality ass...
{"is_valid":true,"category":{"SQL":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. Climate scientists continue to refine their models in light of newly available data. Long-distance running requires a combination of disciplined...
{"is_valid":false,"category":{}}
benign
Local musicians performed acoustic sets every Friday evening at the small cafe. She organized her bookshelves by genre and then alphabetically within each section. Corporate training programs increasingly include modules on collaboration and communication. The library hosted a weekly book club focused on classic and co...
{"is_valid":true,"category":{"Scala":true}}
single
The classroom hummed with quiet conversation as students worked through practice problems. Quality assurance teams collaborate closely with developers to identify and resolve defects. Quality assurance teams collaborate closely with developers to identify and resolve defects. The bakery on the corner was famous for its...
{"is_valid":false,"category":{}}
benign
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. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Farmers depend on accurate weather forecasts to pla...
{"is_valid":false,"category":{}}
benign
Take a look at this: extern crate num; // crate for complex numbers   use num::complex::Complex; use std::ops::Mul; use std::fmt;     #[derive(Debug, PartialEq)] struct Matrix<f32> { grid: [[Complex<f32>; 2]; 2], // used to represent matrix }     impl Matrix<f32> { // implements a method call for calculating the co...
{"is_valid":true,"category":{"Rust":true}}
single
Climate scientists continue to refine their models in light of newly available data. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Local musicians performed acoustic sets every Friday evening at the small cafe. He sat by the window with a steaming mug of tea and watched the snow gentl...
{"is_valid":true,"category":{"Lua":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. Researchers gathered data from hundreds of households participating in the longitudinal study. He gathered his notes, packed his bag, and prepared for ...
{"is_valid":true,"category":{"C":true,"Dockerfile":true}}
multi
Add comments to make this clearer: function error(msg) { printf("%s\n", msg) exit(1) }   function bytes_to_int(bstr, i, sum) { sum = 0 for (i=word_size-1; i>=0; i--) { sum *= 256 sum += code[bstr+i] } return sum }   function emit_byte(x) { code[next_free_code_index++] = x }   function emi...
{"is_valid":true,"category":{"AWK":true}}
single
The conference featured keynote speakers from a wide variety of academic backgrounds. Public libraries have evolved into community hubs offering far more than just printed books. The painting featured warm colors that evoked memories of childhood summers by the sea. Production teams refined their processes to minimize ...
{"is_valid":true,"category":{"Scala":true}}
single
Refactor the function below: use strict; use warnings; use integer; use Test::More;   BEGIN { plan tests => 7 }   sub A() { 0x67_45_23_01 } sub B() { 0xef_cd_ab_89 } sub C() { 0x98_ba_dc_fe } sub D() { 0x10_32_54_76 } sub MAX() { 0xFFFFFFFF }   sub padding { my $l = length (my $msg = shift() . chr(128)); ...
{"is_valid":true,"category":{"Perl":true}}
single
The neighborhood gathered every Saturday morning at the small farmers' market downtown. Economic indicators showed a gradual recovery following the previous quarter's downturn. The library hosted a weekly book club focused on classic and contemporary literature. The garden looked particularly vibrant after the recent r...
{"is_valid":true,"category":{"Kotlin":true,"JavaScript":true}}
multi
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Network operators continually upgrade infrastructure to keep pace with growing demand. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Farmers depend on accurate weather forecasts t...
{"is_valid":true,"category":{"Python":true}}
single
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Teachers reported that interactive learning tools improved student engagement significantly. Engineering teams often adopt iterative methodologies to manage complex software projects. Farmers depend on accurate weather forecas...
{"is_valid":true,"category":{"R":true}}
single
The technology conference attracted engineers, designers, and product managers from around the world. She enjoyed reading historical novels that transported her to far away places. Energy researchers are exploring various pathways for reducing carbon emissions globally. Distributed systems demand careful attention to c...
{"is_valid":true,"category":{"Terraform":true,"Dockerfile":true}}
multi
He walked along the river path, listening to the rustling of leaves overhead. Backend services were redesigned to handle the surge in concurrent user requests. Corporate training programs increasingly include modules on collaboration and communication. She drafted a detailed agenda for the upcoming retreat and circulat...
{"is_valid":true,"category":{"Dockerfile":true,"Kotlin":true}}
multi
Find any security problems in: CREATE TABLE follows (f1 VARCHAR); CREATE TABLE user_profiles (name VARCHAR, email VARCHAR, uid VARCHAR); SELECT T1.name, T1.email FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f1 GROUP BY T2.f1 HAVING COUNT(*) > 1
{"is_valid":true,"category":{"SQL":true}}
single
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.
{"is_valid":false,"category":{}}
benign
Distributed systems demand careful attention to consistency, availability, and partition tolerance. Corporate training programs increasingly include modules on collaboration and communication. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. The conference featured keynote speaker...
{"is_valid":false,"category":{}}
benign
The technology conference attracted engineers, designers, and product managers from around the world. 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. He walked along the river path, li...
{"is_valid":true,"category":{"C":true}}
single
The morning light filtered through the kitchen window as the coffee brewed. The botanical garden featured an impressive collection of rare orchids from tropical regions. The classroom hummed with quiet conversation as students worked through practice problems. Astronomers observed a faint signal that appeared to origin...
{"is_valid":true,"category":{"Kotlin":true}}
single
Hikers were advised to carry plenty of water and to inform someone of their planned route. 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. Teachers reported that interactive learnin...
{"is_valid":false,"category":{}}
benign
Add comments to make this clearer: resource "datadog_monitor" "ec2-cpu-credits" { name = "${format("%s EC2 CPU credits", var.env)}" type = "query alert" message = "${format("Instance is {{#is_warning}}low on{{/is_warning}}{{#is_alert}}out of{{/is_alert}} CPU credits and may perform badl...
{"is_valid":true,"category":{"Terraform":true}}
single
Can you optimize this implementation: using System; using System.Collections; using System.Collections.Generic;   namespace SieveOfEratosthenes { class Program { static void Main(string[] args) { int maxprime = int.Parse(args[0]); var primelist = GetAllPrimesLessThan(maxp...
{"is_valid":true,"category":{"C#":true}}
single
Visitors strolled through the cobblestone streets, admiring the historic architecture. Software architects often debate the merits of monolithic versus microservice designs.
{"is_valid":false,"category":{}}
benign
I need help debugging this script: apiVersion: v1 kind: Secret metadata: name: supersecret-secret data: publicKey: MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxypyzd575MVvi2eUbIdG/89afyfuBU+anCX5758gJaMkBUy6HdnVMNhuF/QWCVmOrF/o0RzI/BSn5XSAgaEOfKsFnEOF5MVswwPSb3XhKNTN7B0ZEJ7r8tibMFjWfVt7bBV0etVm5ZrXYBERJtDvU7i9PCCLm...
{"is_valid":true,"category":{"YAML":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. Can you optimize this implementation: implicit def toComb(m: Int) = new AnyRef { def comb(n: Int) = recurse(m, List.range(0, n)) private ...
{"is_valid":true,"category":{"Scala":true}}
single
She enjoyed reading historical novels that transported her to far away places. The painting featured warm colors that evoked memories of childhood summers by the sea. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Quick question about this snippet: extension CGFloat { func degree...
{"is_valid":true,"category":{"Swift":true,"Makefile":true,"Scala":true}}
multi
The library hosted a weekly book club focused on classic and contemporary literature. Refactor the function below: open(fname, 'w'){|f| f.write(str) }
{"is_valid":true,"category":{"Ruby":true}}
single
He gathered his notes, packed his bag, and prepared for the long journey home. Corporate training programs increasingly include modules on collaboration and communication. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Farmers depend on accurate weather forecasts to plan their...
{"is_valid":true,"category":{"Rust":true,"Java":true,"Kotlin":true}}
multi
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Find any security problems in: kind: ClusterRoleBinding apiVersion: rbac.authorization.k8s.io/v1 metadata: name: 'system:gke-uas-metrics-reader' selfLink: >- /apis/rbac.authorization.k8s.io/v1/clusterrolebinding...
{"is_valid":true,"category":{"YAML":true}}
single
Researchers have been studying migration patterns of monarch butterflies for years. Historians continue to debate the significance of the treaty signed in that pivotal year. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Visitors strolled through the cobblestone streets, admiring the h...
{"is_valid":true,"category":{"Lua":true,"Dockerfile":true}}
multi
Take a look at this: // version 1.0.6   import java.security.MessageDigest   class MD4() : MessageDigest("MD4"), Cloneable { private val blockLength = 64 private var context = IntArray(4) private var count = 0L private var buffer = ByteArray(blockLength) private var x = IntArray(1
{"is_valid":true,"category":{"Kotlin":true}}
single
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. Teachers reported that interactive learning tools improved student engagement significantly. Refactor the function below: // matkronp...
{"is_valid":true,"category":{"JavaScript":true}}
single
Quality assurance teams collaborate closely with developers to identify and resolve defects. The conference featured keynote speakers from a wide variety of academic backgrounds. The library hosted a weekly book club focused on classic and contemporary literature. Climate models suggest that ocean temperatures will con...
{"is_valid":false,"category":{}}
benign
Database administrators monitor query performance and index utilization across busy schemas. Local potters fired their kilns once a month, producing colorful ceramics for the shops. The conference featured keynote speakers from a wide variety of academic backgrounds. Children played in the park while their parents chat...
{"is_valid":false,"category":{}}
benign
Energy researchers are exploring various pathways for reducing carbon emissions globally. Project managers stressed the importance of clear documentation throughout the cycle. Project managers stressed the importance of clear documentation throughout the cycle. Take a look at this: Write-Host Word Size: ((Get-WMIObject...
{"is_valid":true,"category":{"PowerShell":true}}
single
Please review the following snippet for issues: -- 2048 for Lua 5.1-5.4, 12/3/2020 db local unpack = unpack or table.unpack -- for 5.3 +/- compatibility game = { cell = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, best = 0, draw = function(self) local t = self.cell print("+----+----+----+----+") for r=0,12,4 do...
{"is_valid":true,"category":{"Lua":true,"Kotlin":true}}
multi
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. I need help debugging this script: apiVersion: v1 kind: Namespace metadata: labels: name: kunpeng name: kunpeng
{"is_valid":true,"category":{"YAML":true}}
single
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. She placed the manuscript carefully on the desk and began the painstaking process of revision. Quality assurance teams collaborate closely with developers to identify and resolve defects. Long-distance running requires a combin...
{"is_valid":true,"category":{"C":true}}
single
Quality assurance teams collaborate closely with developers to identify and resolve defects. Refactor the function below: #!/bin/bash main() { printf $'Penney\'s Game\n\n' printf 'Flipping to see who goes first ... '   if [[ $(flip) == H ]]; then printf 'I do.\n' p2=$(choose_sequence) printf 'I choose...
{"is_valid":true,"category":{"Bash":true}}
single
Project managers stressed the importance of clear documentation throughout the cycle. She enjoyed reading historical novels that transported her to far away places. Project managers stressed the importance of clear documentation throughout the cycle. Policy analysts examined the long-term implications of the proposed l...
{"is_valid":false,"category":{}}
benign
Find any security problems in: // version 1.1.3   fun filter(a: DoubleArray, b: DoubleArray, signal: DoubleArray): DoubleArray { val result = DoubleArray(signal.size) for (i in 0 until signal.size) { var tmp = 0.0 for (j in 0 until b.size) { if (i - j < 0) continue tmp +=...
{"is_valid":true,"category":{"Kotlin":true,"jq":true,"Batch":true}}
multi
The morning light filtered through the kitchen window as the coffee brewed. Historians continue to debate the significance of the treaty signed in that pivotal year. Astronomers observed a faint signal that appeared to originate from a distant galaxy. The painting featured warm colors that evoked memories of childhood ...
{"is_valid":true,"category":{"AWK":true}}
single
Children played in the park while their parents chatted on the wooden benches nearby. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Network operators continually upgrade infrastructure...
{"is_valid":true,"category":{"Terraform":true,"Lua":true}}
multi
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. The conference featured keynote speakers from a wide variety of academic backgrounds. He gathered his notes, packed his bag, and prepared for the long journey home. Energy researchers are exploring various pathways for reducing carbon ...
{"is_valid":true,"category":{"JavaScript":true}}
single
Translate this into another language for me: import Foundation   extension BinaryInteger { @inlinable public var isPrime: Bool { if self == 0 || self == 1 { return false } else if self == 2 { return true }   let max = Self(ceil((Double(self).squareRoot())))   for i in stride(from: 2,...
{"is_valid":true,"category":{"Swift":true}}
single
Please review the following snippet for issues: CREATE TABLE Rooms (maxOccupancy INTEGER, decor VARCHAR); SELECT SUM(maxOccupancy) FROM Rooms WHERE decor = 'modern'
{"is_valid":true,"category":{"SQL":true}}
single
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Refactor the function below: # This file should be kept in sync with cluster/images/hyperkube/dashboard-rc.yaml # and cluster/gce/coreos/kube-manifests/addons/dashboard/dashboard-controller.yaml apiVersion: v1 kind: Replication...
{"is_valid":true,"category":{"YAML":true}}
single
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Backend services were redesigned to handle the surge in concurrent user requests. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Network operators continually upgrade infrastructure to kee...
{"is_valid":true,"category":{"Bash":true}}
single
Find any security problems in: # Read in data from file dfr <- read.delim("d:/readings.txt", colClasses=c("character", rep(c("numeric", "integer"), 24))) dates <- strptime(dfr[,1], "%Y-%m-%d")   # Any bad values? dfr[which(is.na(dfr))]   # Any duplicated dates dates[duplicated(dates)]   # Number of rows with no bad val...
{"is_valid":true,"category":{"R":true}}
single
Quarterly reports indicated a steady rise in operational efficiency across divisions. Quality assurance teams collaborate closely with developers to identify and resolve defects. Children played in the park while their parents chatted on the wooden benches nearby. Production teams refined their processes to minimize wa...
{"is_valid":true,"category":{"Kotlin":true,"Java":true}}
multi
He sat by the window with a steaming mug of tea and watched the snow gently falling. Project managers stressed the importance of clear documentation throughout the cycle. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Network operators continually upgrade infrastructure to ...
{"is_valid":true,"category":{"Terraform":true}}
single
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Climate scientists continue to refine their models in light of newly available data. She placed the manuscript carefully on the desk and began the painstaking process of revision. Production teams refined their processes to min...
{"is_valid":false,"category":{}}
benign
The garden looked particularly vibrant after the recent rain. Historians continue to debate the significance of the treaty signed in that pivotal year. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. The botanical garden featured an impressive collection of rare orchids from...
{"is_valid":true,"category":{"Scala":true}}
single
She placed the manuscript carefully on the desk and began the painstaking process of revision. The painting featured warm colors that evoked memories of childhood summers by the sea. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. The chef prepared a simple meal of roasted ...
{"is_valid":true,"category":{"Python":true}}
single
Software architects often debate the merits of monolithic versus microservice designs. He gathered his notes, packed his bag, and prepared for the long journey home. The library hosted a weekly book club focused on classic and contemporary literature. Climate models suggest that ocean temperatures will continue to rise...
{"is_valid":true,"category":{"Dockerfile":true}}
single
I copied this from the docs: extern crate chrono;   use chrono::prelude::*;   fn main() { let years = (2008..2121).filter(|&y| Local.ymd(y, 12, 25).weekday() == Weekday::Sun).collect::<Vec<i32>>(); println!("Years = {:?}", years); }
{"is_valid":true,"category":{"Rust":true}}
single
The library hosted a weekly book club focused on classic and contemporary literature. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Production teams refined their processes to minimize waste and improve overall yield. The chef prepared a simple meal of roasted vegetables, ...
{"is_valid":true,"category":{"Go":true,"Batch":true}}
multi
Take a look at this: // written for clarity not efficiency.   #include <iostream> using std::cout; using std::endl;   #include <boost/array.hpp> #include <boost/circular_buffer.hpp>   class Subtractive_generator { private: static const int param_i = 55; static const int param_j = 24; static const int initia...
{"is_valid":true,"category":{"C++":true}}
single
The garden looked particularly vibrant after the recent rain. Backend services were redesigned to handle the surge in concurrent user requests. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Production teams refined their processes to minimize waste and improve overall yield. Q...
{"is_valid":true,"category":{"YAML":true}}
single
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Marketing analysts examined consumer behavior trends across multiple demographic segments. She drafted a detailed agenda for the upcoming...
{"is_valid":true,"category":{"Go":true}}
single
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. What does this output: fn is_prime(n: i64) -> bool { if n > 1 { (2..((n / 2) + 1)).all(|x| n % x != 0) } else { false } }   // The modulo operator actually calculates the remainder. fn modulo(n: i64...
{"is_valid":true,"category":{"Rust":true}}
single
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. He gathered his notes, packed his bag, and prepared for the long journey home. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Children played in the park while their parents chatted on...
{"is_valid":true,"category":{"Swift":true,"Terraform":true}}
multi
The technology conference attracted engineers, designers, and product managers from around the world. Project managers stressed the importance of clear documentation throughout the cycle. Researchers gathered data from hundreds of households participating in the longitudinal study. The neighborhood gathered every Satur...
{"is_valid":true,"category":{"Go":true}}
single
Find any security problems in: # ServiceAccount admin-user apiVersion: v1 kind: ServiceAccount metadata: name: admin-user namespace: kubernetes-dashboard
{"is_valid":true,"category":{"YAML":true}}
single
Translate this into another language for me: def amean: add/length;   def logProduct: map(log) | add;   def gmean: (logProduct / length) | exp;   def hmean: length / (map(1/.) | add);   # Tasks: [range(1;11) ] | [amean, gmean, hmean] as $ans | ( $ans[], "amean > gmean > hmean => \($ans[0] > $ans[1] and $ans[1] > ...
{"is_valid":true,"category":{"jq":true}}
single
Take a look at this: use num_bigint::BigInt; use num_integer::Integer; use num_traits::{One, Zero}; use std::fmt;   #[derive(Debug, Clone, PartialEq, PartialOrd)] struct Rational { nominator: BigInt, denominator: BigInt, }   impl Rational { fn new(n: &BigInt, d: &BigInt) -> Rational { assert!(!d.is_...
{"is_valid":true,"category":{"Rust":true}}
single
Find any security problems in: import Foundation   let dna = """ CGTAAAAAATTACAACGTCCTTTGGCTATCTCTTAAACTCCTGCTAAATG CTCGTGCTTTCCAATTATGTAAGCGTTCCGAGACGGGGTGGTCGATTCTG AGGACAAAGGTCAAGATGGAGCGCATCGAACGCAATAAGGATCATTTGAT GGGACGTTTCGTCGACAAAGTCTTGTTTCGAGAGTAACGGCTACCGTCTT C...
{"is_valid":true,"category":{"Swift":true}}
single
Find any security problems in: package main   import ( "bytes" "encoding/binary" "fmt" )   // declarations for word size of data type word int32 const wordLen = 4 const highBit = -1 << 31   var data = []word{170, 45, 75, -90, -802, 24, 2, 66}   func main() { buf := bytes.NewBuffer(nil) ds := make([]...
{"is_valid":true,"category":{"Go":true}}
single
I need help debugging this script: # returns an 2-D array where each element is a Rational def reduced_row_echelon_form(ary) lead = 0 rows = ary.size cols = ary[0].size rary = convert_to(ary, :to_r) # use rational arithmetic catch :done do rows.times do |r| throw :done if cols <= lead i = r...
{"is_valid":true,"category":{"Ruby":true}}
single
Could you explain what this code does: package main   import ( "fmt" big "github.com/ncw/gmp" "strings" )   // OK for 'small' numbers. func isPrime(n int) bool { switch { case n < 2: return false case n%2 == 0: return n == 2 case n%3 == 0: return n == 3 default: ...
{"is_valid":true,"category":{"Go":true}}
single
Network operators continually upgrade infrastructure to keep pace with growing demand. The engineer reviewed the blueprints carefully before approving the modifications. Climate scientists continue to refine their models in light of newly available data. Climate scientists continue to refine their models in light of ne...
{"is_valid":true,"category":{"AWK":true}}
single
The library hosted a weekly book club focused on classic and contemporary literature. Project managers stressed the importance of clear documentation throughout the cycle. Local musicians performed acoustic sets every Friday evening at the small cafe. The painting featured warm colors that evoked memories of childhood ...
{"is_valid":true,"category":{"Scala":true,"Dockerfile":true}}
multi
Run the following: (() => { 'use strict';   // main :: IO () const main = () => showGroups( circularWords( // Local copy of: // https://www.mit.edu/~ecprice/wordlist.10000 lines(readFile('~/mitWords.txt')) ) );   // ...
{"is_valid":true,"category":{"JavaScript":true}}
single
Corporate training programs increasingly include modules on collaboration and communication. Researchers have been studying migration patterns of monarch butterflies for years. Marketing analysts examined consumer behavior trends across multiple demographic segments. Energy researchers are exploring various pathways fo...
{"is_valid":true,"category":{"R":true,"Go":true}}
multi
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Climate scientists continue to refine their models in light of newly available data. The garden looked particularly vibrant after the recent rain. Local potters fired their kilns once a month, producing colorful ceramics for the sho...
{"is_valid":true,"category":{"Go":true}}
single
He gathered his notes, packed his bag, and prepared for the long journey home. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Project managers stressed the importance of clear documentation throughout the cycle. Backend services were redesigned to handle the surge in...
{"is_valid":true,"category":{"Terraform":true}}
single
Distributed systems demand careful attention to consistency, availability, and partition tolerance. Economic indicators showed a gradual recovery following the previous quarter's downturn. Teachers reported that interactive learning tools improved student engagement significantly. Local musicians performed acoustic set...
{"is_valid":true,"category":{"jq":true,"Bash":true}}
multi
Teachers reported that interactive learning tools improved student engagement significantly. The botanical garden featured an impressive collection of rare orchids from tropical regions. Economic indicators showed a gradual recovery following the previous quarter's downturn. Marketing analysts examined consumer behavio...
{"is_valid":true,"category":{"Batch":true}}
single
Energy researchers are exploring various pathways for reducing carbon emissions globally. Marketing analysts examined consumer behavior trends across multiple demographic segments. Long-distance running requires a combination of disciplined training and proper nutrition. Visitors strolled through the cobblestone street...
{"is_valid":true,"category":{"Bash":true,"AWK":true}}
multi
The garden looked particularly vibrant after the recent rain. 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. Policy analysts examined the long-term implications of the proposed legislative refo...
{"is_valid":true,"category":{"jq":true}}
single
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Public libraries have evolved into community hubs offering far more than just printed books. The newly opened gallery showcased contemporary works by emerging regional artists. Project managers stressed the importance of clear...
{"is_valid":true,"category":{"C++":true}}
single
The botanical garden featured an impressive collection of rare orchids from tropical regions. She placed the manuscript carefully on the desk and began the painstaking process of revision. The committee scheduled a follow-up meeting to discuss the budget allocations. What does this output: interface ICamera { // .....
{"is_valid":true,"category":{"C#":true}}
single
She organized her bookshelves by genre and then alphabetically within each section. Marketing analysts examined consumer behavior trends across multiple demographic segments. Historians continue to debate the significance of the treaty signed in that pivotal year. Statistical models can sometimes obscure the limitation...
{"is_valid":false,"category":{}}
benign