prompt
large_stringlengths
150
7.97k
target
large_stringlengths
32
83
kind
large_stringclasses
3 values
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. The committee scheduled a follow-up meeting to discuss the budget allocations. Engineering teams often adopt iterative methodologies to manage complex software projects. Farmers depend on accurate weather forecasts to plan their plantin...
{"is_valid":true,"category":{"C":true,"Dockerfile":true}}
multi
The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. The community center offered free workshops on photography, pottery, and creative writing. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. The chef prepared a simple meal of roasted ...
{"is_valid":true,"category":{"PowerShell":true}}
single
I copied this from the docs: function longer(s1, s2) while true do s1 = s1:sub(1, -2) s2 = s2:sub(1, -2) if s1:find('^$') and not s2:find('^$') then return false elseif s2:find('^$') then return true end end end   local output = '' local longest = ''...
{"is_valid":true,"category":{"Lua":true}}
single
Researchers have been studying migration patterns of monarch butterflies for years. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Statistical models can sometimes obscure the limitations of the underl...
{"is_valid":true,"category":{"Bash":true}}
single
The conference featured keynote speakers from a wide variety of academic backgrounds. Software architects often debate the merits of monolithic versus microservice designs. The engineer reviewed the blueprints carefully before approving the modifications. Volunteers spent the weekend cleaning up the riverside trail and...
{"is_valid":true,"category":{"Lua":true}}
single
The committee scheduled a follow-up meeting to discuss the budget allocations. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Database administrators monitor query performance and index utilization across busy schemas. Database administrators monitor query performanc...
{"is_valid":true,"category":{"Ruby":true}}
single
The botanical garden featured an impressive collection of rare orchids from tropical regions. I need help debugging this script: sub perf { my $n = shift; my $sum = 0; foreach my $i (1..$n-1) { if ($n % $i == 0) { $sum += $i; } } return $sum == $n; } Researchers have been...
{"is_valid":true,"category":{"Perl":true}}
single
The classroom hummed with quiet conversation as students worked through practice problems. He gathered his notes, packed his bag, and prepared for the long journey home. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. The chef prepared a simple meal of roasted vegetables, fr...
{"is_valid":true,"category":{"C++":true}}
single
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. I copied this from the docs: FROM python:2.7 MAINTAINER Dan Osborne <daniel@projectcalico.org> RUN pip install docopt kazoo flask RUN easy_install http://downloads.mesosphere.io/master/debian/8/mesos-0.26.0-py2.7-linux-x86_64....
{"is_valid":true,"category":{"Dockerfile":true}}
single
The garden looked particularly vibrant after the recent rain. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Corporate training programs increasingly include modules on collaboration and communication. Climate scientists continue to refine their models in light of newly av...
{"is_valid":false,"category":{}}
benign
Run the following: # Copyright 2021 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 copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
{"is_valid":true,"category":{"Dockerfile":true,"AWK":true}}
multi
Add comments to make this clearer: package jfkbits;   import java.io.BufferedReader; import java.io.IOException; import java.io.Reader; import java.io.StreamTokenizer; import java.io.StringReader; import java.util.Iterator;   public class LispTokenizer implements Iterator<Token> { // Instance variables have default...
{"is_valid":true,"category":{"Java":true}}
single
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. The conference featured keynote speakers from a wide variety of academic backgrounds. Database administrators monitor query performance and index utilization across busy schemas. Hikers were advised to carry plenty of water and...
{"is_valid":true,"category":{"Terraform":true}}
single
Take a look at this: --- apiVersion: apps/v1 kind: StatefulSet metadata: name: consul namespace: consul-back spec: selector: matchLabels: app: consul serviceName: consul replicas: 3 updateStrategy: type: RollingUpdate template: metadata: labels: app: consul stor...
{"is_valid":true,"category":{"YAML":true}}
single
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Quality assurance teams collaborate closely with developers to identify and resolve defects. Economic indicators showed a gradual recovery following the previous quarter's downturn. The painting featured warm colors that evoked...
{"is_valid":true,"category":{"jq":true}}
single
Statistical models can sometimes obscure the limitations of the underlying data sources. He sat by the window with a steaming mug of tea and watched the snow gently falling. The painting featured warm colors that evoked memories of childhood summers by the sea. Policy analysts examined the long-term implications of the...
{"is_valid":true,"category":{"C":true}}
single
Here is the code I was given: import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.util.LinkedList;   public class License { public static void main(String[] args) throws FileNotFoundException, IOException{ BufferedReader
{"is_valid":true,"category":{"Java":true}}
single
Take a look at this: /*****************************************************************\ | Expects an angle, an origin unit and a unit to convert to, | | where in/out units are: | | --------------------------------------------------------------- | | 'D'/'d' ..... degrees ...
{"is_valid":true,"category":{"JavaScript":true,"C++":true}}
multi
Refactor the function below: guessANumberPlayer <- function(low, high) { boundryErrorCheck(low, high) repeat { guess <- floor(mean(c(low, high))) #Invalid inputs to this switch will simply cause the repeat loop to run again, breaking nothing. switch(guessResult(guess), l = low <- guess + 1,...
{"is_valid":true,"category":{"R":true}}
single
Find any security problems in: # copy from https://github.com/hholst80/azure-cli/blob/dev/Dockerfile # related PR: https://github.com/Azure/azure-cli/pull/25184 #--------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # L...
{"is_valid":true,"category":{"Dockerfile":true}}
single
The technology conference attracted engineers, designers, and product managers from around the world. Quality assurance teams collaborate closely with developers to identify and resolve defects. Policy analysts examined the long-term implications of the proposed legislative reform. Corporate training programs increasin...
{"is_valid":true,"category":{"Python":true}}
single
Researchers gathered data from hundreds of households participating in the longitudinal study. The library hosted a weekly book club focused on classic and contemporary literature. Network operators continually upgrade infrastructure to keep pace with growing demand. Engineering teams often adopt iterative methodologie...
{"is_valid":true,"category":{"Bash":true}}
single
What does this output: function shuffle(tbl) for i = #tbl, 2, -1 do local j = math.random(i) tbl[i], tbl[j] = tbl[j], tbl[i] end return tbl end   function playOptimal() local secrets = {} for i=1,100 do secrets[i] = i end shuffle(secrets)   for p=1,100 do local success ...
{"is_valid":true,"category":{"Lua":true}}
single
Add comments to make this clearer: # The 1-d cellular automaton: def next: # Conveniently, jq treats null as 0 when it comes to addition # so there is no need to fiddle with the boundaries . as $old | reduce range(0; length) as $i ([]; ($old[$i-1] + $old[$i+1]) as $s | if $s == 0 then .[$i] = ...
{"is_valid":true,"category":{"jq":true}}
single
The library hosted a weekly book club focused on classic and contemporary literature. The painting featured warm colors that evoked memories of childhood summers by the sea. Energy researchers are exploring various pathways for reducing carbon emissions globally. Astronomers observed a faint signal that appeared to ori...
{"is_valid":true,"category":{"JavaScript":true,"Bash":true}}
multi
The library hosted a weekly book club focused on classic and contemporary literature. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Hikers were advised to carry plenty of water and to inform someone of their planned route. She drafted a detailed agenda for the upcoming retreat and ...
{"is_valid":true,"category":{"R":true}}
single
Database administrators monitor query performance and index utilization across busy schemas. Here is the code I was given: #include <stdio.h> #include "_cgo_export.h"   void Run() { char Buffer [1024]; size_t Size = sizeof (Buffer);   if (0 == Query (Buffer, &Size)) ... Then there's this one in anoth...
{"is_valid":true,"category":{"Go":true,"Perl":true,"Ruby":true}}
multi
What does this output: $days = @{ 1 = "first"; 2 = "second"; 3 = "third"; 4 = "fourth"; 5 = "fifth"; 6 = "sixth"; 7 = "seventh"; 8 = "eight"; 9 = "ninth"; 10 = "tenth"; 11 = "eleventh"; 12 = "twelfth"; }   $gifts = @{ 1 = 'A partridge in a pear tree'; 2 = 'Two tur...
{"is_valid":true,"category":{"PowerShell":true}}
single
The committee scheduled a follow-up meeting to discuss the budget allocations. I copied this from the docs: import java.util.Scanner;   public class Sum2 { public static void main(String[] args) { Scanner in = new Scanner(System.in); // Standard input System.out.println(in.nextInt() + in.nextInt());...
{"is_valid":true,"category":{"Java":true}}
single
What does this output: # DO NOT EDIT FILES CALLED 'Dockerfile'; they are automatically # generated. Edit 'Dockerfile.in' and generate the 'Dockerfile' # with the 'rake' command. # The suggested name for this image is: <%= image_name %>. FROM <%= parent %>2 MAINTAINER lg390@cam.ac.uk LABEL status="DEPRECATED" LABEL ...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Add comments to make this clearer: use std::collections::BTreeSet;   struct Chess960 ( BTreeSet<String> );   impl Chess960 { fn invoke(&mut self, b: &str, e: &str) { if e.len() <= 1 { let s = b.to_string() + e; if Chess960::is_valid(&s) { self.0.insert(s); } } else { ...
{"is_valid":true,"category":{"Rust":true,"Dockerfile":true,"C#":true}}
multi
Engineering teams often adopt iterative methodologies to manage complex software projects. 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. Quick question about this snippet: {i:42, count:0} | wh...
{"is_valid":true,"category":{"jq":true}}
single
Energy researchers are exploring various pathways for reducing carbon emissions globally. Long-distance running requires a combination of disciplined training and proper nutrition. Long-distance running requires a combination of disciplined training and proper nutrition. Modern microprocessors rely on pipelining and ou...
{"is_valid":true,"category":{"Java":true}}
single
I need help debugging this script: # 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, Vers
{"is_valid":true,"category":{"Dockerfile":true}}
single
Climate models suggest that ocean temperatures will continue to rise over the coming decades. Project managers stressed the importance of clear documentation throughout the cycle. Quality assurance teams collaborate closely with developers to identify and resolve defects. The neighborhood gathered every Saturday mornin...
{"is_valid":false,"category":{}}
benign
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. Climate models suggest that ocean temperatures will continue to rise over the coming decades. The garden looked particularly vibrant after the recent rain. ...
{"is_valid":false,"category":{}}
benign
Backend services were redesigned to handle the surge in concurrent user requests. She enjoyed reading historical novels that transported her to far away places. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Long-distance running requires a combination of disciplined training and p...
{"is_valid":false,"category":{}}
benign
Marketing analysts examined consumer behavior trends across multiple demographic segments. I copied this from the docs: # "ported" by Adam Miller <maxamillion@fedoraproject.org> from # https://github.com/fedora-cloud/Fedora-Dockerfiles # # Originally written for Fedora-Dockerfiles by # scollier <scollier@redhat.com...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Please review the following snippet for issues: data "template_file" "aws_credentials" { template = <<EOF [default] aws_access_key_id=$${access_key_id} aws_secret_access_key=$${secret_access_key} EOF vars { access_key_id = "${aws_iam_access_key.travis_ci.id}" secret_access_key = "${aws_iam_access_key.t...
{"is_valid":true,"category":{"Terraform":true}}
single
I copied this from the docs: package main   import ( "image" "image/color" "image/png" "log" "os" "sync" )   func main() { const ( width, height = 800.0, 600.0 maxIter = 255 cX, cY = -0.7, 0.27015 fileName = "julia.png" ) img := image.NewNRGBA(image.Rect(0, 0, width, height))   var w...
{"is_valid":true,"category":{"Go":true}}
single
He sat by the window with a steaming mug of tea and watched the snow gently falling. Take a look at this: "a" | explode # => [ 97 ] [97] | implode # => "a"
{"is_valid":true,"category":{"jq":true}}
single
Network operators continually upgrade infrastructure to keep pace with growing demand. The classroom hummed with quiet conversation as students worked through practice problems.
{"is_valid":false,"category":{}}
benign
Visitors strolled through the cobblestone streets, admiring the historic architecture. Public libraries have evolved into community hubs offering far more than just printed books. Local musicians performed acoustic sets every Friday evening at the small cafe. The garden looked particularly vibrant after the recent rain...
{"is_valid":true,"category":{"Bash":true}}
single
He gathered his notes, packed his bag, and prepared for the long journey home. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Local potters fired their kilns once a month, producing colorful ceramics for the shops. He wandered through the old bookstore, occasionally pullin...
{"is_valid":true,"category":{"Batch":true}}
single
Here is the code I was given: # 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, Vers
{"is_valid":true,"category":{"Dockerfile":true}}
single
The community center offered free workshops on photography, pottery, and creative writing. Refactor the function below: // version 1.0.5-2   fun main(args: Array<String>) { var hle: Char var lowest = 1 var highest = 20 var guess = 10 println("Please choose a number between 1 and 20 but don't tel...
{"is_valid":true,"category":{"Kotlin":true}}
single
Teachers reported that interactive learning tools improved student engagement significantly. Run the following: :: Floyd's triangle Task from Rosetta Code :: Batch File Implementation   @echo off rem main thing setlocal enabledelayedexpansion call :floydtriangle 5 echo( call :floydtriangle 14 exit /b 0   :floydtriangle...
{"is_valid":true,"category":{"Batch":true}}
single
Translate this into another language for me: import java.awt._ import java.awt.event.ActionEvent import java.awt.image.BufferedImage   import javax.swing._   import scala.math.{sin, sqrt}   object PlasmaEffect extends App {   SwingUtilities.invokeLater(() => new JFrame("Plasma Effect") {   class PlasmaEffec...
{"is_valid":true,"category":{"Scala":true}}
single
Corporate training programs increasingly include modules on collaboration and communication. 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. The neighborhood gathered every Saturday morning at ...
{"is_valid":true,"category":{"Ruby":true}}
single
Can you optimize this implementation: readconfig() ( # redirect stdin to read from the given filename exec 0<"$1"   declare -l varname while IFS=$' =\t' read -ra words; do # is it a comment or blank line? if [[ ${#words[@]} -eq 0 || ${words[0]} == ["#;"]* ]]; then continue ...
{"is_valid":true,"category":{"Bash":true}}
single
The technology conference attracted engineers, designers, and product managers from around the world. Production teams refined their processes to minimize waste and improve overall yield. Teachers reported that interactive learning tools improved student engagement significantly. She drafted a detailed agenda for the u...
{"is_valid":true,"category":{"Python":true}}
single
Find any security problems in: data "template_file" "service" { template = coalesce(var.service_task_container_definitions, file("${path.module}/container-definitions/service.json.tpl")) vars = { name = var.service_name image = var.service_image command = jsonencode(var.service_command) port = var....
{"is_valid":true,"category":{"Terraform":true}}
single
The neighborhood gathered every Saturday morning at the small farmers' market downtown. Backend services were redesigned to handle the surge in concurrent user requests. Could you explain what this code does: $extra = "little" "Mary had a {0} lamb." -f $extra We also have this other snippet: #include <iostream>   int ...
{"is_valid":true,"category":{"PowerShell":true,"C++":true}}
multi
Engineering teams often adopt iterative methodologies to manage complex software projects. He walked along the river path, listening to the rustling of leaves overhead. Network operators continually upgrade infrastructure to keep pace with growing demand. The community center offered free workshops on photography, pott...
{"is_valid":true,"category":{"Lua":true}}
single
Teachers reported that interactive learning tools improved student engagement significantly. The painting featured warm colors that evoked memories of childhood summers by the sea. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. She placed the manuscript carefully on the de...
{"is_valid":true,"category":{"Ruby":true,"R":true}}
multi
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Take a look at this: print "Give me a number: "; chomp(my $a = <>);   $a == 42 or die "Error message\n";   # Alternatives die "Error message\n" unless $a == 42; die "Error message\n" if not $a == 42; die "Error message\n" if $a != 4...
{"is_valid":true,"category":{"Perl":true,"Swift":true}}
multi
I need help debugging this script: use std::collections::BTreeSet; use std::collections::HashSet; use std::fs::File; use std::io::{self, BufRead}; use std::iter::FromIterator;   fn load_dictionary(filename: &str) -> std::io::Result<BTreeSet<String>> { let file = File::open(filename)?; let mut dict = BTreeSet::n...
{"is_valid":true,"category":{"Rust":true}}
single
The classroom hummed with quiet conversation as students worked through practice problems. I need help debugging this script: package main   import ( "fmt" "os" )   var ( x = []float64{1, 2, 3, 1e11} y = []float64{1, 1.4142135623730951, 1.7320508075688772, 316227.76601683791}   xprecision = 3 yp...
{"is_valid":true,"category":{"Go":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. Please review the following snippet for issues: import Cocoa   var found = false   let randomNum = Int(arc4random_uniform(100) + 1)...
{"is_valid":true,"category":{"Swift":true,"Batch":true}}
multi
She enjoyed reading historical novels that transported her to far away places. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. The chef prepared a simple meal of roasted vegetables, fresh...
{"is_valid":true,"category":{"C#":true}}
single
Corporate training programs increasingly include modules on collaboration and communication. Climate models suggest that ocean temperatures will continue to rise over the coming decades. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Public libraries have evolved into comm...
{"is_valid":true,"category":{"Bash":true}}
single
Children played in the park while their parents chatted on the wooden benches nearby. Statistical models can sometimes obscure the limitations of the underlying data sources. Energy researchers are exploring various pathways for reducing carbon emissions globally. Modern microprocessors rely on pipelining and out-of-or...
{"is_valid":true,"category":{"Lua":true,"Go":true,"Python":true}}
multi
Energy researchers are exploring various pathways for reducing carbon emissions globally. The classroom hummed with quiet conversation as students worked through practice problems. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Historians continue to debate the significance of t...
{"is_valid":true,"category":{"Scala":true}}
single
The engineer reviewed the blueprints carefully before approving the modifications. Researchers gathered data from hundreds of households participating in the longitudinal study. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Climate scientists continue to refine their model...
{"is_valid":true,"category":{"Scala":true,"JavaScript":true}}
multi
Please review the following snippet for issues: package main   import ( "fmt" "math" )   // specification for an integration type spec struct { lower, upper float64 // bounds for integration n int // number of parts exact float64 // exp...
{"is_valid":true,"category":{"Go":true,"C":true}}
multi
Can you optimize this implementation: require 'matrix'   def cramers_rule(a, terms) raise ArgumentError, " Matrix not square" unless a.square? cols = a.to_a.transpose cols.each_index.map do |i| c = cols.dup c[i] = terms Matrix.columns(c).det / a.det end end   matrix = Matrix[ [2, -1, 5, 1], ...
{"is_valid":true,"category":{"Ruby":true}}
single
Climate models suggest that ocean temperatures will continue to rise over the coming decades. Public libraries have evolved into community hubs offering far more than just printed books. Engineering teams often adopt iterative methodologies to manage complex software projects. She organized her bookshelves by genre and...
{"is_valid":true,"category":{"Batch":true,"PowerShell":true}}
multi
Take a look at this: fn main() {   let mut a = vec![vec![1., 2.], vec![3., 4.]]; let mut b = vec![vec![0., 5.], vec![6., 7.]];   let mut a_ref = &mut a; let a_rref = &mut a_ref;   let mut b_ref = &mut b; let b_rref = &mut b_ref;   let ab = kronecker_product(a_rref, b_rref);   println!("K...
{"is_valid":true,"category":{"Rust":true}}
single
Climate scientists continue to refine their models in light of newly available data. Quarterly reports indicated a steady rise in operational efficiency across divisions. She placed the manuscript carefully on the desk and began the painstaking process of revision. Children played in the park while their parents chatte...
{"is_valid":true,"category":{"SQL":true}}
single
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. Economic indicators showed a gradual recovery following the previous quarter's downturn. The conference featured keynote speakers from a ...
{"is_valid":false,"category":{}}
benign
Researchers have been studying migration patterns of monarch butterflies for years. Production teams refined their processes to minimize waste and improve overall yield. Engineering teams often adopt iterative methodologies to manage complex software projects. He wandered through the old bookstore, occasionally pulling...
{"is_valid":true,"category":{"Makefile":true,"Lua":true,"YAML":true}}
multi
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Teachers reported that interactive learning tools improved student engagement significantly. Hikers were advised to carry plenty of water and to inform someone of their planned route. Statistical models can sometimes obscure the limitat...
{"is_valid":true,"category":{"Lua":true}}
single
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Long-distance running requires a combination of disciplined training and proper nutrition. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. The garden looked particularly vibrant afte...
{"is_valid":false,"category":{}}
benign
Quick question about this snippet: function print_floyd(rows) local c = 1 local h = rows*(rows-1)/2 for i=1,rows do local s = "" for j=1,i do for k=1, #tostring(h+j)-#tostring(c) do s = s .. " " end if j ~= 1 then s = s .. " " end s = s .. tostring(c) c = c + 1 end print(s) end end
{"is_valid":true,"category":{"Lua":true}}
single
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Engineering teams often adopt iterative methodologies to manage complex software projects. Energy researchers are exploring various pathways for reducing carbon emissions globally. Teachers reported that interactive learning to...
{"is_valid":true,"category":{"Kotlin":true}}
single
Quarterly reports indicated a steady rise in operational efficiency across divisions. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. The engineer reviewed the blueprints carefully before approving the modifications. The library hosted a weekly book club focused on classic ...
{"is_valid":true,"category":{"Bash":true,"Dockerfile":true,"Kotlin":true}}
multi
Refactor the function below: function BinaryTree(value, left, right) { this.value = value; this.left = left; this.right = right; } BinaryTree.prototype.preorder = function(f) {this.walk(f,['this','left','right'])} BinaryTree.prototype.inorder = function(f) {this.walk(f,['left','this','right'])} BinaryTre...
{"is_valid":true,"category":{"JavaScript":true}}
single
Translate this into another language for me: # config.mk # # Product-specific compile-time definitions. # # The generic product target doesn't have any hardware-specific pieces. TARGET_NO_BOOTLOADER := true TARGET_NO_KERNEL := true TARGET_CPU_ABI := x86 TARGET_ARCH := x86 TARGET_ARCH_VARIANT := x86-atom TARGET_PRELINK...
{"is_valid":true,"category":{"Makefile":true,"Kotlin":true}}
multi
Teachers reported that interactive learning tools improved student engagement significantly. Could you explain what this code does: /** * Copyright 2018 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...
{"is_valid":true,"category":{"Terraform":true}}
single
Public libraries have evolved into community hubs offering far more than just printed books. Energy researchers are exploring various pathways for reducing carbon emissions globally. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. The bakery on the corner was famous for its sou...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Here is the code I was given: #include <stdio.h>   const char DIGITS[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; const int DIGITS_LEN = 64;   void encodeNegativeBase(long n, long base, char *out) { char *ptr = out;   if (base > -1 || base < -62) { /* Bounds check*/ out ...
{"is_valid":true,"category":{"C":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. Here is the code I was given: Array.prototype.pancake_sort = function () { for (var i = this.length - 1; i >= 1; i--) { /...
{"is_valid":true,"category":{"JavaScript":true}}
single
What does this output: def polar(r; angle): [ r*(angle|cos), r*(angle|sin) ];   # If your jq allows multi-arity functions, you may wish to uncomment the following line: # def polar(r): [r, 0];   def polar2vector: polar(.[0]; .[1]);   def vector(x; y): if (x|type) == "number" and (y|type) == "number
{"is_valid":true,"category":{"jq":true}}
single
The botanical garden featured an impressive collection of rare orchids from tropical regions. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Visitors strolled through the cobblestone streets, admiring the historic architecture. The community center offered free workshops on...
{"is_valid":true,"category":{"Lua":true}}
single
Quarterly reports indicated a steady rise in operational efficiency across divisions. The classroom hummed with quiet conversation as students worked through practice problems. Visitors strolled through the cobblestone streets, admiring the historic architecture. Local musicians performed acoustic sets every Friday eve...
{"is_valid":true,"category":{"C#":true}}
single
The garden looked particularly vibrant after the recent rain. 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. Climate scientists continue to refine their models in light of newly availab...
{"is_valid":true,"category":{"Makefile":true}}
single
I copied this from the docs: using System;   namespace VigenereCipher { class VCipher { public string encrypt(string txt, string pw, int d) { int pwi = 0, tmp; string ns = ""; txt = txt.ToUpper(); pw = pw.ToUpper(); foreach (char t in t...
{"is_valid":true,"category":{"C#":true}}
single
Researchers have been studying migration patterns of monarch butterflies for years. Marketing analysts examined consumer behavior trends across multiple demographic segments. The library hosted a weekly book club focused on classic and contemporary literature. Statistical models can sometimes obscure the limitations of...
{"is_valid":true,"category":{"C++":true,"Rust":true,"Bash":true}}
multi
What does this output: #include <iostream> #include <optional> #include <vector> #include <string> #include <sstream> #include <boost/multiprecision/cpp_int.hpp>   typedef boost::multiprecision::cpp_int integer;   struct fraction { fraction(const integer& n, const integer& d) : numerator(n), denominator(d) {} i...
{"is_valid":true,"category":{"C++":true}}
single
The garden looked particularly vibrant after the recent rain. Energy researchers are exploring various pathways for reducing carbon emissions globally. Researchers have been studying migration patterns of monarch butterflies for years. The botanical garden featured an impressive collection of rare orchids from tropical...
{"is_valid":true,"category":{"Scala":true}}
single
Public libraries have evolved into community hubs offering far more than just printed books. Researchers gathered data from hundreds of households participating in the longitudinal study. Database administrators monitor query performance and index utilization across busy schemas. The conference featured keynote speaker...
{"is_valid":true,"category":{"Perl":true}}
single
He gathered his notes, packed his bag, and prepared for the long journey home. 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 morning light filtered through the kitchen window as the c...
{"is_valid":true,"category":{"jq":true}}
single
Marketing analysts examined consumer behavior trends across multiple demographic segments. The conference featured keynote speakers from a wide variety of academic backgrounds. Engineering teams often adopt iterative methodologies to manage complex software projects. A gentle breeze drifted across the meadow as the sun...
{"is_valid":true,"category":{"Perl":true}}
single
The engineer reviewed the blueprints carefully before approving the modifications. She enjoyed reading historical novels that transported her to far away places. Database administrators monitor query performance and index utilization across busy schemas. Can you optimize this implementation: >>> from collections import...
{"is_valid":true,"category":{"Python":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. Network operators continually upgrade infrastructure to keep pace w...
{"is_valid":true,"category":{"SQL":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. Climate scientists continue to refine their models in light of newly available data. Public libraries have evolved into community hubs offering far more th...
{"is_valid":true,"category":{"Makefile":true}}
single
Local potters fired their kilns once a month, producing colorful ceramics for the shops. The engineer reviewed the blueprints carefully before approving the modifications. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. The classroom hummed with quiet conversation as student...
{"is_valid":true,"category":{"jq":true}}
single
The morning light filtered through the kitchen window as the coffee brewed. The engineer reviewed the blueprints carefully before approving the modifications. Production teams refined their processes to minimize waste and improve overall yield. Late spring rains caused the lake to swell beyond its usual seasonal bounda...
{"is_valid":false,"category":{}}
benign
Database administrators monitor query performance and index utilization across busy schemas. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Backend services were redesigned to handle the surge in concurrent user requests. Teachers reported that interactive learning tools im...
{"is_valid":true,"category":{"Lua":true,"Swift":true}}
multi
Here is the code I was given: #include <chrono> #include <csignal> #include <ctime> #include <iostream> #include <thread>   volatile sig_atomic_t gotint = 0;   void handler(int signum) { // Set a flag for handling the signal, as other methods like printf are not safe here gotint = 1; }   int main() { using namespace...
{"is_valid":true,"category":{"C++":true}}
single