prompt
large_stringlengths
150
7.97k
target
large_stringlengths
32
83
kind
large_stringclasses
3 values
He sat by the window with a steaming mug of tea and watched the snow gently falling. I copied this from the docs: #!/bin/sh num=0 while true; do echo $num num=`echo "obase=8;ibase=8;$num+1"|bc` done
{"is_valid":true,"category":{"Bash":true}}
single
Find any security problems in: # -*- makefile -*- # Copyright 2019 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # # RISC-V core OS files build # # Select RISC-V bare-metal toolchain $(call set-option,CROSS_COMPILE,$(...
{"is_valid":true,"category":{"Makefile":true}}
single
Run the following: function stdev() local sum, sumsq, k = 0,0,0 return function(n) sum, sumsq, k = sum + n, sumsq + n^2, k+1 return math.sqrt((sumsq / k) - (sum/k)^2) end end   ldev = stdev() for i, v in ipairs{2,4,4,4,5,5,7,9} do print(ldev(v)) end
{"is_valid":true,"category":{"Lua":true}}
single
Climate models suggest that ocean temperatures will continue to rise over the coming decades. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette.
{"is_valid":false,"category":{}}
benign
The committee scheduled a follow-up meeting to discuss the budget allocations. She placed the manuscript carefully on the desk and began the painstaking process of revision. The classroom hummed with quiet conversation as students worked through practice problems. Local musicians performed acoustic sets every Friday ev...
{"is_valid":true,"category":{"Perl":true,"Java":true}}
multi
The newly opened gallery showcased contemporary works by emerging regional artists. Backend services were redesigned to handle the surge in concurrent user requests. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Policy analysts examined the long-term implications of the p...
{"is_valid":true,"category":{"SQL":true}}
single
Project managers stressed the importance of clear documentation throughout the cycle. She organized her bookshelves by genre and then alphabetically within each section. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Local musicians performed acoustic sets every Friday even...
{"is_valid":true,"category":{"Kotlin":true}}
single
Backend services were redesigned to handle the surge in concurrent user requests. Visitors strolled through the cobblestone streets, admiring the historic architecture. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. The newly opened gallery showcased contemporary works by emergi...
{"is_valid":false,"category":{}}
benign
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Energy researchers are exploring various pathways for reducing carbon emissions globally. Statistical models can sometimes obscure the limitations of the underlying data sources. Researchers have been studying migration patter...
{"is_valid":true,"category":{"Go":true}}
single
The engineer reviewed the blueprints carefully before approving the modifications. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. She organized her bookshelves by genre and then alphabetically within each section. He sat by the window with a steaming mug of tea and watched ...
{"is_valid":false,"category":{}}
benign
Energy researchers are exploring various pathways for reducing carbon emissions globally. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Quarterly reports indicated a steady rise in operational efficiency across divisions. Economic indicators showed a gradual recovery follo...
{"is_valid":true,"category":{"Java":true,"SQL":true}}
multi
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Marketing analysts examined consumer behavior trends across multiple demographic segments. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Energy researchers are exploring various pathways for...
{"is_valid":true,"category":{"PowerShell":true}}
single
Quality assurance teams collaborate closely with developers to identify and resolve defects. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Corporate training programs increasingly inc...
{"is_valid":true,"category":{"C#":true}}
single
The technology conference attracted engineers, designers, and product managers from around the world. I need help debugging this script: #include <stdio.h> #include <stdbool.h>   bool a(bool in) { printf("I am a\n"); return in; }   bool b(bool in) { printf("I am b\n"); return in; }   #define TEST(X,Y,O) \ ...
{"is_valid":true,"category":{"C":true}}
single
Public libraries have evolved into community hubs offering far more than just printed books. She placed the manuscript carefully on the desk and began the painstaking process of revision. The neighborhood gathered every Saturday morning at the small farmers' market downtown. The morning light filtered through the kitch...
{"is_valid":true,"category":{"JavaScript":true,"Lua":true}}
multi
Here is the code I was given: @echo off   call:horners a:-19 b:7 c:-4 d:6 x:3 call:horners x:3 a:-19 c:-4 d:6 b:7 pause>nul exit /b   :horners setlocal enabledelayedexpansion set a=0 set b=0 set c=0 set d=0 set x=0   for %%i in (%*) do ( for /f "tokens=1,2 delims=:" %%j in ("%%i") do ( set %%j=%%k ) ) set /a re...
{"is_valid":true,"category":{"Batch":true,"C++":true}}
multi
Energy researchers are exploring various pathways for reducing carbon emissions globally. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Translate this into another language for me: @echo off setlocal enabledelayedexpansion   set Count=0 :loop if not "%1"=="" ( set /a count+=1 ...
{"is_valid":true,"category":{"Batch":true}}
single
She placed the manuscript carefully on the desk and began the painstaking process of revision. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Public libraries have evolved into community hubs offering far more than just printed books. He adjusted the telescope and waited p...
{"is_valid":false,"category":{}}
benign
Distributed systems demand careful attention to consistency, availability, and partition tolerance. Astronomers observed a faint signal that appeared to originate from a distant galaxy. The morning light filtered through the kitchen window as the coffee brewed. Engineering teams often adopt iterative methodologies to m...
{"is_valid":true,"category":{"Perl":true,"Kotlin":true}}
multi
She placed the manuscript carefully on the desk and began the painstaking process of revision. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Can you optimize this implementation: math.randomseed(os.time())   local n = 10 local trials = 1000000   function one(n) local chosen...
{"is_valid":true,"category":{"Lua":true,"jq":true,"SQL":true}}
multi
What does this output: variable "name_prefix" { default = "tf-consul-module-test-" } module "vpc" { source = "github.com/gbergere/tf-vpc-test-module" name_prefix = "${var.name_prefix}" } module "consul" { source = "../" name_prefix = "${var.name_prefix}" vpc_id = "${module.vpc.vpc_id}" subnet_id =...
{"is_valid":true,"category":{"Terraform":true}}
single
Economic indicators showed a gradual recovery following the previous quarter's downturn. Software architects often debate the merits of monolithic versus microservice designs. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Researchers gathered data from hundreds of househol...
{"is_valid":false,"category":{}}
benign
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Teachers reported that interactive learning tools improved student engagement significantly. Economic indicators showed a gradual recovery foll...
{"is_valid":true,"category":{"JavaScript":true}}
single
Quality assurance teams collaborate closely with developers to identify and resolve defects. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. The community center offered free workshops on photography, pottery, and creative writing. The committee scheduled a follow-up meeting to discu...
{"is_valid":true,"category":{"Ruby":true,"C#":true}}
multi
Distributed systems demand careful attention to consistency, availability, and partition tolerance. Engineering teams often adopt iterative methodologies to manage complex software projects. Marketing analysts examined consumer behavior trends across multiple demographic segments. I need help debugging this script: # -...
{"is_valid":true,"category":{"Terraform":true}}
single
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. The committee scheduled a follow-up meeting to discuss the budget allocations. Researchers gathered data from hundreds of households participating in the longitudinal study. She placed the manuscript carefully on the desk and began the...
{"is_valid":true,"category":{"AWK":true}}
single
Children played in the park while their parents chatted on the wooden benches nearby. Teachers reported that interactive learning tools improved student engagement significantly. Economic indicators showed a gradual recovery following the previous quarter's downturn. Take a look at this: doors = Array.new(101,0) print ...
{"is_valid":true,"category":{"Ruby":true}}
single
Researchers gathered data from hundreds of households participating in the longitudinal study. Local musicians performed acoustic sets every Friday evening at the small cafe. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Policy analysts examined the long-term implications ...
{"is_valid":false,"category":{}}
benign
Software architects often debate the merits of monolithic versus microservice designs. Local potters fired their kilns once a month, producing colorful ceramics for the shops. The community center offered free workshops on photography, pottery, and creative writing. The morning light filtered through the kitchen window...
{"is_valid":true,"category":{"C#":true}}
single
Energy researchers are exploring various pathways for reducing carbon emissions globally. Historians continue to debate the significance of the treaty signed in that pivotal year. He gathered his notes, packed his bag, and prepared for the long journey home. Volunteers spent the weekend cleaning up the riverside trail ...
{"is_valid":true,"category":{"PowerShell":true}}
single
Climate models suggest that ocean temperatures will continue to rise over the coming decades. I need help debugging this script: # input: array of "h:m:s" def mean_time_of_day: def pi: 4 * (1|atan); def to_radians: pi * . /(12*60*60); def from_radians: (. * 12*60*60) / pi;   def secs2time: # produce "hh:mm:s...
{"is_valid":true,"category":{"jq":true,"Bash":true}}
multi
Astronomers observed a faint signal that appeared to originate from a distant galaxy. Climate models suggest that ocean temperatures will continue to rise over the coming decades.
{"is_valid":false,"category":{}}
benign
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Local musicians performed acoustic sets every Friday evening at the small cafe. Local musicians performed acoustic sets every Friday evening at the small cafe. The chef prepared a simple meal of roasted vegetables, fresh bread, an...
{"is_valid":true,"category":{"Rust":true}}
single
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. 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. The morning light filtered through the ki...
{"is_valid":true,"category":{"Bash":true}}
single
Refactor the function below: import java.awt.Color; import java.awt.Point; import java.awt.image.BufferedImage; import java.util.Deque; import java.util.LinkedList;   public class FloodFill { public void floodFill(BufferedImage image, Point node, Color targetColor, Color replacementColor) { int width = image.getW...
{"is_valid":true,"category":{"Java":true}}
single
What does this output: # syntax: GAWK -f ORDER_TWO_NUMERICAL_LISTS.AWK BEGIN { split("1,2,1,5,2",list1,",") split("1,2,1,5,2,2",list2,",") split("1,2,3,4,5",list3,",") split("1,2,3,4,5",list4,",") x = compare_array(list1,list2) ? "<" : ">=" ; printf("list1%slist2\n",x) x = compare_array(list2,li...
{"is_valid":true,"category":{"AWK":true,"Dockerfile":true}}
multi
Quarterly reports indicated a steady rise in operational efficiency across divisions. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. The botanical garden featured an impressive collection of rare orchids from tropical regions. Quality assurance teams collaborate closely wi...
{"is_valid":true,"category":{"C":true}}
single
Quarterly reports indicated a steady rise in operational efficiency across divisions. Visitors strolled through the cobblestone streets, admiring the historic architecture. Hikers were advised to carry plenty of water and to inform someone of their planned route. Translate this into another language for me: #include <t...
{"is_valid":true,"category":{"C++":true,"C#":true,"R":true}}
multi
Could you explain what this code does: sub zip { my @a = @{shift()}; my @b = @{shift()}; my @l; push @l, shift @a, shift @b while @a and @b; return @l; }   sub uniq { my %h; grep {!$h{$_}++} @_; }   my @data = map {{ zip [qw(name id salary dept)], [split ','] }} split "\n", <<'EO...
{"is_valid":true,"category":{"Perl":true}}
single
Quick question about this snippet: import java.util.*;   public class TopologicalSort {   public static void main(String[] args) { String s = "std, ieee, des_system_lib, dw01, dw02, dw03, dw04, dw05," + "dw06, dw07, dware, gtech, ramlib, std_cell_lib, synopsys";   Graph g = new Graph...
{"is_valid":true,"category":{"Java":true}}
single
Corporate training programs increasingly include modules on collaboration and communication. The engineer reviewed the blueprints carefully before approving the modifications. She organized her bookshelves by genre and then alphabetically within each section. Travelers explored ancient ruins, marveling at the craftsman...
{"is_valid":true,"category":{"Go":true}}
single
Astronomers observed a faint signal that appeared to originate from a distant galaxy. Researchers gathered data from hundreds of households participating in the longitudinal study. Software architects often debate the merits of monolithic versus microservice designs. Energy researchers are exploring various pathways fo...
{"is_valid":true,"category":{"Terraform":true}}
single
Add comments to make this clearer: public class McNuggets {   public static void main(String... args) { int[] SIZES = new int[] { 6, 9, 20 }; int MAX_TOTAL = 100; // Works like Sieve of Eratosthenes int numSizes = SIZES.length; int[] counts = new int[numSizes]; i
{"is_valid":true,"category":{"Java":true}}
single
Translate this into another language for me: # syntax: GAWK -f TRUNCATE_A_FILE.AWK BEGIN { main("NOTHERE",100) main("FILENAME.TMP",-1) main("FILENAME.TMP",500) exit(0) } function main(filename,size, ret) { ret = truncate_file(filename,size) if (ret != "") { printf("error: FILENAME=%s, %s\...
{"is_valid":true,"category":{"AWK":true}}
single
Statistical models can sometimes obscure the limitations of the underlying data sources. I copied this from the docs: CREATE TABLE College (Id VARCHAR); SELECT COUNT(*) FROM College Quarterly reports indicated a steady rise in operational efficiency across divisions. Teachers reported that interactive learning tools im...
{"is_valid":true,"category":{"SQL":true}}
single
I copied this from the docs: my @heading = qw(X Y Z); my $rows = 5; print '<table><thead><td>', (map { "<th>$_</th>" } @heading), "</thead><tbody>";   for (1 .. $rows) { print "<tr><th>$_</th>", (map { "<td>".int(rand(10000))."</td>" } @heading), "</tr>"; } ...
{"is_valid":true,"category":{"Perl":true,"C#":true}}
multi
Refactor the function below: Gecos = Struct.new :fullname, :office, :extension, :homephone, :email class Gecos def to_s "%s,%s,%s,%s,%s" % to_a end end   # Another way define 'to_s' method Passwd = Struct.new(:account, :password, :uid, :gid, :gecos, :directory, :shell) do def to_s to_a.join(':') end en...
{"is_valid":true,"category":{"Ruby":true}}
single
Network operators continually upgrade infrastructure to keep pace with growing demand. Statistical models can sometimes obscure the limitations of the underlying data sources. Could you explain what this code does: // version 1.1.3   fun binomial(n: Int, k: Int): Int { if (n < k) return 0 if (n == 0 || k == 0)...
{"is_valid":true,"category":{"Kotlin":true,"Batch":true}}
multi
Climate models suggest that ocean temperatures will continue to rise over the coming decades. Production teams refined their processes to minimize waste and improve overall yield. Policy analysts examined the long-term implications of the proposed legislative reform. Historians continue to debate the significance of th...
{"is_valid":false,"category":{}}
benign
Backend services were redesigned to handle the surge in concurrent user requests. Policy analysts examined the long-term implications of the proposed legislative reform. The painting featured warm colors that evoked memories of childhood summers by the sea. She organized her bookshelves by genre and then alphabetically...
{"is_valid":true,"category":{"Rust":true}}
single
The botanical garden featured an impressive collection of rare orchids from tropical regions. Find any security problems in: #include <algorithm> #include <iostream> #include <string> #include <vector>   static void printVerse(const std::string& name) { std::string x = name; std::transform(x.begin(), x.end(), x...
{"is_valid":true,"category":{"C++":true}}
single
Add comments to make this clearer: items = { {"map", 9, 150}, {"compass", 13, 35}, {"water", 153, 200}, {"sandwich", 50, 160}, {"glucose", 15, 60}, {"tin", 68, 45}, {"banana", 27, 60}, {"apple", 39, 40}, {"cheese", 23, 30}, {"beer", 52, 10}, {"suntan cream", 11, 70}, {"c...
{"is_valid":true,"category":{"Lua":true,"Swift":true}}
multi
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Translate this into another language for me: template<typename Number> Number power(Number base, int exponent) { int zerodir; Number factor; if (exponent < 0) { zerodir = 1; factor = Number(1)/base; } else ...
{"is_valid":true,"category":{"C++":true}}
single
Policy analysts examined the long-term implications of the proposed legislative reform. Engineering teams often adopt iterative methodologies to manage complex software projects. I need help debugging this script: @echo off for /f %%. in ('forfiles /m "%~nx0" /c "cmd /c echo 0x07"') do set bell=%%. echo %bell% The tech...
{"is_valid":true,"category":{"Batch":true}}
single
What does this output: // version 1.0.6   import java.util.*   fun main(args: Array<String>) { val calendar = GregorianCalendar(1900, 0, 1) val months31 = arrayOf(1, 3, 5, 7, 8, 10, 12) val monthsWithFive = mutableListOf<String>() val yearsWithNone = mutableListOf<Int>() for (year
{"is_valid":true,"category":{"Kotlin":true}}
single
She enjoyed reading historical novels that transported her to far away places. Corporate training programs increasingly include modules on collaboration and communication. Climate scientists continue to refine their models in light of newly available data. The neighborhood gathered every Saturday morning at the small f...
{"is_valid":true,"category":{"Go":true,"Bash":true}}
multi
Local potters fired their kilns once a month, producing colorful ceramics for the shops. He walked along the river path, listening to the rustling of leaves overhead. Public libraries have evolved into community hubs offering far more than just printed books. Network operators continually upgrade infrastructure to keep...
{"is_valid":false,"category":{}}
benign
She placed the manuscript carefully on the desk and began the painstaking process of revision. Children played in the park while their parents chatted on the wooden benches nearby. Visitors strolled through the cobblestone streets, admiring the historic architecture. Energy researchers are exploring various pathways fo...
{"is_valid":false,"category":{}}
benign
Add comments to make this clearer: from itertools import groupby   def soundex(word): codes = ("bfpv","cgjkqsxz", "dt", "l", "mn", "r") soundDict = dict((ch, str(ix+1)) for ix,cod in enumerate(codes) for ch in cod) cmap2 = lambda kar: soundDict.get(kar, '9') sdx = ''.join(cmap2(kar) for kar in word.lower()...
{"is_valid":true,"category":{"Python":true}}
single
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. The committee scheduled a follow-up meeting to discuss the budget allocations. The morning light filtered through the kitchen window as the coffee brewed. Researchers gathered data from hundreds of households participating in the lo...
{"is_valid":true,"category":{"Makefile":true}}
single
Visitors strolled through the cobblestone streets, admiring the historic architecture. Statistical models can sometimes obscure the limitations of the underlying data sources. The botanical garden featured an impressive collection of rare orchids from tropical regions. The conference featured keynote speakers from a wi...
{"is_valid":true,"category":{"YAML":true}}
single
Refactor the function below: /** * 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 a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required b...
{"is_valid":true,"category":{"Terraform":true}}
single
Statistical models can sometimes obscure the limitations of the underlying data sources. Researchers have been studying migration patterns of monarch butterflies for years. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Database administrators monitor query performance and...
{"is_valid":true,"category":{"YAML":true}}
single
The newly opened gallery showcased contemporary works by emerging regional artists. Researchers have been studying migration patterns of monarch butterflies for years. Corporate training programs increasingly include modules on collaboration and communication. Economic indicators showed a gradual recovery following the...
{"is_valid":true,"category":{"Rust":true,"Scala":true,"C++":true}}
multi
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Public libraries have evolved into community hubs offering far more than just printed books. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Database administrators monitor query performance and index...
{"is_valid":true,"category":{"Ruby":true}}
single
I need help debugging this script: use utf8; binmode STDOUT, ":utf8";   use constant π => 3.14159265;   sub d2r { $_[0] * π / 180 } # degrees to radians sub r2d { $_[0] * 180 / π } # radians to degrees   print 'Enter latitude => '; $latitude = <>; print 'Enter longitude => '; $longitude = <>; print 'Enter l...
{"is_valid":true,"category":{"Perl":true}}
single
Refactor the function below: # Is the input integer a prime? def is_prime: if . == 2 then true else 2 < . and . % 2 == 1 and . as $in | (($in + 1) | sqrt) as $m | (((($m - 1) / 2) | floor) + 1) as $max | all( range(1; $max) ; $in % ((2 * .) + 1) > 0 ) end;   # Is the input integer a pr...
{"is_valid":true,"category":{"jq":true}}
single
He sat by the window with a steaming mug of tea and watched the snow gently falling. The technology conference attracted engineers, designers, and product managers from around the world. Could you explain what this code does: '1234'.succ #=> '1235' '99'.succ #=> '100' Alongside it, this: Number.prototype.isPrime = fun...
{"is_valid":true,"category":{"Ruby":true,"JavaScript":true}}
multi
Public libraries have evolved into community hubs offering far more than just printed books. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Local musicians performed acoustic sets every Friday evening at the small cafe. The bakery on the corner was famous for its sourdough ...
{"is_valid":true,"category":{"Batch":true}}
single
What does this output: // version 1.2.0   import java.net.Authenticator import java.net.PasswordAuthentication import javax.net.ssl.HttpsURLConnection import java.net.URL import java.io.InputStreamReader import java.io.BufferedReader   object PasswordAuthenticator : Authenticator() { override fun getPasswordAuthent...
{"is_valid":true,"category":{"Kotlin":true}}
single
The engineer reviewed the blueprints carefully before approving the modifications. Project managers stressed the importance of clear documentation throughout the cycle. Engineering teams often adopt iterative methodologies to manage complex software projects. He gathered his notes, packed his bag, and prepared for the ...
{"is_valid":true,"category":{"JavaScript":true}}
single
The engineer reviewed the blueprints carefully before approving the modifications. Climate scientists continue to refine their models in light of newly available data. Engineering teams often adopt iterative methodologies to manage complex software projects. He adjusted the telescope and waited patiently for the clouds...
{"is_valid":true,"category":{"Batch":true}}
single
Hikers were advised to carry plenty of water and to inform someone of their planned route. 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. She drafted a detailed agenda for the upcoming retre...
{"is_valid":true,"category":{"R":true,"C++":true,"Python":true}}
multi
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Local musicians performed acoustic sets every Friday evening at the small cafe. Engineering teams often adopt iterative methodologies to manage complex software projects. Engineering teams often adopt iterative methodologies t...
{"is_valid":true,"category":{"PowerShell":true}}
single
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. He adjusted the telescope and waited pat...
{"is_valid":false,"category":{}}
benign
Quick question about this snippet: FROM golang:1.12-alpine3.9 as builder WORKDIR /go/src/github.com/pelletier/go-toml COPY . . ENV CGO_ENABLED=0 ENV GOOS=linux RUN go install ./... FROM scratch COPY --from=builder /go/bin/tomll /usr/bin/tomll COPY --from=builder /go/bin/tomljson /usr/bin/tomljson COPY --from=buil
{"is_valid":true,"category":{"Dockerfile":true}}
single
Take a look at this: package main   import ( "fmt" "sort" )   func getBins(limits, data []int) []int { n := len(limits) bins := make([]int, n+1) for _, d := range data { index := sort.SearchInts(limits, d) // uses binary search if index < len(limits) && d == limits[index] { ...
{"is_valid":true,"category":{"Go":true,"Java":true}}
multi
Please review the following snippet for issues: module Distances   RATIOS = {arshin: 0.7112, centimeter: 0.01, diuym: 0.0254, fut: 0.3048, kilometer: 1000.0, liniya: 0.00254, meter: 1.0, milia: 7467.6, piad: 0.1778, sazhen: 2.1336, tochka: 0.000254, vershok: 0.04445, vers...
{"is_valid":true,"category":{"Ruby":true}}
single
She organized her bookshelves by genre and then alphabetically within each section. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Network operators continually upgrade infrastructure to keep pace with growing demand. He adjusted the telescope and waited patiently for the clou...
{"is_valid":true,"category":{"Kotlin":true}}
single
Could you explain what this code does: function divisorCount(n) local total = 1 -- Deal with powers of 2 first while (n & 1) == 0 do total = total + 1 n = math.floor(n / 2) end -- Odd prime factors up tot eh square root local p = 3 while p * p <= n do local count = 1 ...
{"is_valid":true,"category":{"Lua":true}}
single
Translate this into another language for me: package main   import "fmt"   type node struct { value int left, right *node }   func (n *node) iterPreorder(visit func(int)) { if n == nil { return } visit(n.value) n.left.iterPreorder(visit) n.right.iterPreorder(visit) }   func (n ...
{"is_valid":true,"category":{"Go":true}}
single
The community center offered free workshops on photography, pottery, and creative writing. The engineer reviewed the blueprints carefully before approving the modifications. Find any security problems in: #!/usr/bin/perl   use strict; # https://rosettacode.org/wiki/Rare_numbers use warnings; use integer;   my $count = ...
{"is_valid":true,"category":{"Perl":true,"JavaScript":true}}
multi
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Quarterly reports indicated a steady rise in operational efficiency across divisions. The engineer reviewed the blueprints carefully before approvin...
{"is_valid":true,"category":{"AWK":true}}
single
Find any security problems in: $wc = New-Object Net.WebClient $html = $wc.DownloadString('http://tycho.usno.navy.mil/cgi-bin/timer.pl') $html -match ', (.*) UTC' | Out-Null Write-Host $Matches[1]
{"is_valid":true,"category":{"PowerShell":true}}
single
He gathered his notes, packed his bag, and prepared for the long journey home. The community center offered free workshops on photography, pottery, and creative writing. He walked along the river path, listening to the rustling of leaves overhead. The neighborhood gathered every Saturday morning at the small farmers' m...
{"is_valid":true,"category":{"Terraform":true}}
single
She enjoyed reading historical novels that transported her to far away places. Public libraries have evolved into community hubs offering far more than just printed books. Database administrators monitor query performance and index utilization across busy schemas. Software architects often debate the merits of monolith...
{"is_valid":true,"category":{"Go":true}}
single
Take a look at this: var filename = 'readings.txt'; var show_lines = 5; var file_stats = { 'num_readings': 0, 'total': 0, 'reject_run': 0, 'reject_run_max': 0, 'reject_run_date': '' };   var fh = new ActiveXObject("Scripting.FileSystemObject").openTextFile(filename, 1); // 1 = for reading while ( ! ...
{"is_valid":true,"category":{"JavaScript":true}}
single
Engineering teams often adopt iterative methodologies to manage complex software projects. She organized her bookshelves by genre and then alphabetically within each section. Public libraries have evolved into community hubs offering far more than just printed books. Children played in the park while their parents chat...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Can you optimize this implementation: #include <iostream> #include <cctype> #include <functional>   using namespace std;   bool odd() { function<void ()> prev = []{}; while(true) { int c = cin.get(); if (!isalpha(c)) { prev(); cout.put(c); return c != '.'; } prev = [=] { cout.put(c...
{"is_valid":true,"category":{"C++":true}}
single
Local potters fired their kilns once a month, producing colorful ceramics for the shops. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Historians continue to debate the significance of the...
{"is_valid":true,"category":{"R":true}}
single
She organized her bookshelves by genre and then alphabetically within each section. The garden looked particularly vibrant after the recent rain. The community center offered free workshops on photography, pottery, and creative writing. The conference featured keynote speakers from a wide variety of academic background...
{"is_valid":true,"category":{"PowerShell":true}}
single
She enjoyed reading historical novels that transported her to far away places. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Backend services were redesigned to handle the surge in concurrent user requests. Teachers reported that interactive learning tools improved studen...
{"is_valid":true,"category":{"Python":true}}
single
Corporate training programs increasingly include modules on collaboration and communication. Researchers have been studying migration patterns of monarch butterflies for years. Researchers have been studying migration patterns of monarch butterflies for years. Distributed systems demand careful attention to consistency...
{"is_valid":false,"category":{}}
benign
Can you optimize this implementation: my @langs = qw(ada cpp-qt pascal lscript z80 visualprolog html4strict cil objc asm progress teraterm hq9plus genero tsql email pic16 tcl apt_sources io apache vhdl avisynth winbatch vbnet ini scilab ocaml-brief sas actionscript3 qbasic perl bnf cobol powershell php kixtart visualfo...
{"is_valid":true,"category":{"Perl":true,"YAML":true,"C#":true}}
multi
Children played in the park while their parents chatted on the wooden benches nearby. Please review the following snippet for issues: $Date = Get-Date $Date.AddDays( 1 ) [System.Math]::Sqrt( 2 )
{"is_valid":true,"category":{"PowerShell":true}}
single
Project managers stressed the importance of clear documentation throughout the cycle. Project managers stressed the importance of clear documentation throughout the cycle. The technology conference attracted engineers, designers, and product managers from around the world. He walked along the river path, listening to t...
{"is_valid":true,"category":{"YAML":true,"Bash":true}}
multi
Production teams refined their processes to minimize waste and improve overall yield. He sat by the window with a steaming mug of tea and watched the snow gently falling. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Nutritionists generally recommend a balanced diet rich ...
{"is_valid":true,"category":{"C":true}}
single
Climate models suggest that ocean temperatures will continue to rise over the coming decades. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Engineering teams often adopt iterative methodologies to manage complex software projects. The botanical garden featured an impressive co...
{"is_valid":true,"category":{"R":true}}
single
Add comments to make this clearer: using System;   namespace cipher {   static class Cipher {   // external results static uint[] randrsl = new uint[256]; static uint randcnt; // internal state static uint[] mm = new uint[256]; static uint aa=0, bb=0, cc=0;     static void isaac() { uint i,x,y; cc++; // cc j...
{"is_valid":true,"category":{"C#":true}}
single
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. The newly opened gallery showcased contemporary works by emerging regional artists. He wandered through the old bookstore, occasionally pull...
{"is_valid":true,"category":{"Python":true}}
single