prompt
large_stringlengths
150
7.97k
target
large_stringlengths
32
83
kind
large_stringclasses
3 values
Quality assurance teams collaborate closely with developers to identify and resolve defects. She enjoyed reading historical novels that transported her to far away places. Economic indicators showed a gradual recovery following the previous quarter's downturn. A gentle breeze drifted across the meadow as the sun began ...
{"is_valid":false,"category":{}}
benign
Long-distance running requires a combination of disciplined training and proper nutrition. Network operators continually upgrade infrastructure to keep pace with growing demand. The painting featured warm colors that evoked memories of childhood summers by the sea. Network operators continually upgrade infrastructure t...
{"is_valid":false,"category":{}}
benign
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. She enjoyed reading historical novels that transported her to far away places. He walked along the river path, listening to the rustling of leaves overhead. The technology conference attracted engineers, designers, and product...
{"is_valid":true,"category":{"C++":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. Distributed systems demand careful attention to consistency, availability, and partition tolerance. The engineer reviewed the blueprints carefully ...
{"is_valid":true,"category":{"Go":true,"Java":true}}
multi
Distributed systems demand careful attention to consistency, availability, and partition tolerance. Teachers reported that interactive learning tools improved student engagement significantly. Production teams refined their processes to minimize waste and improve overall yield. Policy analysts examined the long-term im...
{"is_valid":true,"category":{"Lua":true}}
single
Researchers gathered data from hundreds of households participating in the longitudinal study. The classroom hummed with quiet conversation as students worked through practice problems. Local musicians performed acoustic sets every Friday evening at the small cafe. The technology conference attracted engineers, designe...
{"is_valid":true,"category":{"C#":true}}
single
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. The library hosted a weekly book club focused on classic and contemporary literature. She enjoyed reading historical novels that transported her t...
{"is_valid":true,"category":{"Makefile":true}}
single
Find any security problems in: values = { 7, 6, 5, 4, 3, 2, 1, 0 } indices = { 6, 1, 7 }   i = 1 -- discard duplicates while i < #indices do j = i + 1 while j < #indices do if indices[i] == indices[j] then table.remove( indices[j] ) end j = j + 1 end i = i + 1 end   for i = 1, #indices d...
{"is_valid":true,"category":{"Lua":true}}
single
Translate this into another language for me: def generate_statistics(n) sum = sum2 = 0.0 hist = Array.new(10, 0) n.times do r = rand sum += r sum2 += r**2 hist[(10*r).to_i] += 1 end mean = sum / n stddev = Math::sqrt((sum2 / n) - mean**2)   puts "size: #{n}" puts "mean: #{mean}" puts...
{"is_valid":true,"category":{"Ruby":true,"Lua":true,"Go":true}}
multi
Corporate training programs increasingly include modules on collaboration and communication. Network operators continually upgrade infrastructure to keep pace with growing demand. Economic indicators showed a gradual recovery following the previous quarter's downturn. Researchers gathered data from hundreds of househol...
{"is_valid":true,"category":{"PowerShell":true,"Go":true}}
multi
Here is the code I was given: ifeq ("$(HCLIB_ROOT)", "") $(error Please set teh HCLIB_ROOT environment variable.) endif PROJECT_BASE_FLAGS := -I$(HCLIB_ROOT)/include $(shell xml2-config --cflags) PROJECT_CFLAGS := -std=c11 $(PROJECT_BASE_FLAGS) PROJECT_CXXFLAGS := -std=c++11 $(PROJECT_BASE_FLAGS) PROJECT_LDFLA...
{"is_valid":true,"category":{"Makefile":true}}
single
Public libraries have evolved into community hubs offering far more than just printed books. Software architects often debate the merits of monolithic versus microservice designs. Project managers stressed the importance of clear documentation throughout the cycle. The botanical garden featured an impressive collection...
{"is_valid":true,"category":{"Kotlin":true,"Ruby":true}}
multi
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. The morning light filtered through the kitchen window as the coffee brewed. The botanical garden featured an impressive collection of rare orchids...
{"is_valid":true,"category":{"Swift":true}}
single
Engineering teams often adopt iterative methodologies to manage complex software projects. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Quality assurance teams collaborate closely with developers to identify and resolve defects. Distributed systems demand careful attenti...
{"is_valid":true,"category":{"Terraform":true,"Bash":true}}
multi
Economic indicators showed a gradual recovery following the previous quarter's downturn. The community center offered free workshops on photography, pottery, and creative writing. Take a look at this: function mult(strNum1,strNum2){   var a1 = strNum1.split("").reverse(); var a2 = strNum2.toString().split("").r...
{"is_valid":true,"category":{"JavaScript":true}}
single
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Run the following: library(rjson) data <- fromJSON('{ "foo": 1, "bar": [10, "apples"] }') data
{"is_valid":true,"category":{"R":true}}
single
The garden looked particularly vibrant after the recent rain. Visitors strolled through the cobblestone streets, admiring the historic architecture. Policy analysts examined the long-term implications of the proposed legislative reform. Production teams refined their processes to minimize waste and improve overall yiel...
{"is_valid":true,"category":{"C":true}}
single
Find any security problems in: @echo off setlocal enabledelayedexpansion   set choice1=rock set choice2=paper set choice3=scissors set freq1=0 set freq2=0 set freq3=0 set games=0 set won=0 set lost=0 set tie=0   :start cls echo Games - %games% : Won - %won% : Lost - %lost% : Ties - %tie% choice /c RPS /n /m "[R]ock, [P...
{"is_valid":true,"category":{"Batch":true}}
single
Climate models suggest that ocean temperatures will continue to rise over the coming decades. She organized her bookshelves by genre and then alphabetically within each section. Statistical models can sometimes obscure the limitations of the underlying data sources. The botanical garden featured an impressive collectio...
{"is_valid":true,"category":{"Go":true}}
single
Public libraries have evolved into community hubs offering far more than just printed books. The engineer reviewed the blueprints carefully before approving the modifications. Project managers stressed the importance of clear documentation throughout the cycle. The committee scheduled a follow-up meeting to discuss the...
{"is_valid":true,"category":{"Go":true}}
single
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. He sat by the window with a steaming mug of tea and watched the snow gently falling. The committee scheduled a follow-up meeting to di...
{"is_valid":true,"category":{"R":true}}
single
Marketing analysts examined consumer behavior trends across multiple demographic segments. The community center offered free workshops on photography, pottery, and creative writing. Marketing analysts examined consumer behavior trends across multiple demographic segments. A gentle breeze drifted across the meadow as th...
{"is_valid":true,"category":{"R":true}}
single
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. 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":{"Terraform":true}}
single
Add comments to make this clearer: function love.load () love.window.setTitle("Polyspiral") incr = 0 end   function love.update (dt) incr = (incr + 0.05) % 360 x1 = love.graphics.getWidth() / 2 y1 = love.graphics.getHeight() / 2 length = 5 angle = incr end   function love.draw () for i =...
{"is_valid":true,"category":{"Lua":true}}
single
Marketing analysts examined consumer behavior trends across multiple demographic segments. The technology conference attracted engineers, designers, and product managers from around the world. Researchers have been studying migration patterns of monarch butterflies for years. Climate models suggest that ocean temperatu...
{"is_valid":true,"category":{"Perl":true}}
single
The conference featured keynote speakers from a wide variety of academic backgrounds. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. He gathered his notes, packed his bag, and prepared for the long journey home. Nutritionists generally recommend a balanced diet rich in who...
{"is_valid":true,"category":{"AWK":true}}
single
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Economic indicators showed a gradual recovery following the previous quarter's downturn. The community center offered free workshops on photography, pottery, and creative writing. I need help debugging this script: >>> "the thr...
{"is_valid":true,"category":{"Python":true}}
single
Can you optimize this implementation: # IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # $Source: src/import/chips/p9/procedures/hwp/ffdc/p9_collect_lpc_regs.mk $ # # OpenPOWER HostBoot Project # # Contributors Listed Below - COPYRIGHT 2018,2019 # [+] International Business Machines Corp. # # # L
{"is_valid":true,"category":{"Makefile":true}}
single
Climate models suggest that ocean temperatures will continue to rise over the coming decades. Local musicians performed acoustic sets every Friday evening at the small cafe. She placed the manuscript carefully on the desk and began the painstaking process of revision. Researchers gathered data from hundreds of househol...
{"is_valid":true,"category":{"Batch":true}}
single
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. The garden looked particularly vibrant after the recent rain. He wandered through the old bookstore, occasionally pulling a worn pape...
{"is_valid":true,"category":{"C++":true}}
single
Historians continue to debate the significance of the treaty signed in that pivotal year. Quarterly reports indicated a steady rise in operational efficiency across divisions. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. The library hosted a weekly book club focused on classic...
{"is_valid":true,"category":{"Batch":true}}
single
Network operators continually upgrade infrastructure to keep pace with growing demand. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Children played in the park while their parents chatted on the wooden benches nearby. Software architects often debate the merits of monolit...
{"is_valid":false,"category":{}}
benign
I copied this from the docs: @echo off setlocal ENABLEDELAYEDEXPANSION set maxrun= 0 set maxstart= set maxend= set notok=0 set inputfile=%1 for /F "tokens=1,*" %%i in (%inputfile%) do ( set date=%%i call :processline %%j )   echo\ echo max false: %maxrun% from %maxstart% until %maxend%   goto :EOF   :proce...
{"is_valid":true,"category":{"Batch":true}}
single
Refactor the function below: // Version 1.2.31   import java.util.Random import java.util.concurrent.locks.Lock import java.util.concurrent.locks.ReentrantLock   val rand = Random()   class Fork(val name: String) { val lock = ReentrantLock()   fun pickUp(philosopher: String) { lock.lock() printl...
{"is_valid":true,"category":{"Kotlin":true}}
single
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Researchers have been studying migration patterns of monarch butterflies for years. Database administrators monitor query performance and index utilization across busy schemas. Hikers were advised to carry plenty of water and t...
{"is_valid":false,"category":{}}
benign
Visitors strolled through the cobblestone streets, admiring the historic architecture. Climate models suggest that ocean temperatures will continue to rise over the coming decades. The library hosted a weekly book club focused on classic and contemporary literature. Quick question about this snippet: $string = Read-Hos...
{"is_valid":true,"category":{"PowerShell":true}}
single
The botanical garden featured an impressive collection of rare orchids from tropical regions. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Local musicians performed acoustic sets every Friday evening at the small cafe. She enjoyed reading historical novels that transport...
{"is_valid":true,"category":{"Lua":true,"Makefile":true}}
multi
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Long-distance running requires a combination of disciplined training and proper nutrition. The painting featured warm colors that evoked memories of childhood summers by the sea. The engineer reviewed the blueprints carefully befo...
{"is_valid":true,"category":{"Java":true}}
single
Refactor the function below: func lookAndSay(_ seq: [Int]) -> [Int] { var result = [Int]() var cur = seq[0] var curRunLength = 1   for i in seq.dropFirst() { if cur == i { curRunLength += 1 } else { result.append(curRunLength) result.append(cur) curRunLength = 1 cur = i ...
{"is_valid":true,"category":{"Swift":true}}
single
Translate this into another language for me: FROM steeve/cross-compiler:base MAINTAINER Steeve Morin "steeve.morin@gmail.com" # Add the cross compiler sources RUN echo "deb http://toolchains.secretsauce.net unstable main" >> /etc/apt/sources.list && \ dpkg --add-architecture armhf && \ curl -L http://toolc...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. He walked along the river path, listening to the rustling of leaves overhead. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Modern microprocessors rely on pipelining and out-of-order ex...
{"is_valid":false,"category":{}}
benign
Historians continue to debate the significance of the treaty signed in that pivotal year. Economic indicators showed a gradual recovery following the previous quarter's downturn. Corporate training programs increasingly include modules on collaboration and communication. Local potters fired their kilns once a month, pr...
{"is_valid":true,"category":{"Bash":true}}
single
The botanical garden featured an impressive collection of rare orchids from tropical regions. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Network operators continually upgrade infrastructur...
{"is_valid":true,"category":{"Lua":true}}
single
Translate this into another language for me: package avl   // AVL tree adapted from Julienne Walker's presentation at // http://eternallyconfuzzled.com/tuts/datastructures/jsw_tut_avl.aspx. // This port uses similar indentifier names.   // The Key interface must be supported by data stored in the AVL tree. type Key int...
{"is_valid":true,"category":{"Go":true}}
single
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. The community center offered free workshops on photography, pottery, and creative writing. Run the following: function getLis(input) { if (input.length === 0) { return []; }   var lisLenPerIndex = []; let max = { i...
{"is_valid":true,"category":{"JavaScript":true}}
single
The garden looked particularly vibrant after the recent rain. Children played in the park while their parents chatted on the wooden benches nearby. The neighborhood gathered every Saturday morning at the small farmers' market downtown. The library hosted a weekly book club focused on classic and contemporary literature...
{"is_valid":true,"category":{"Ruby":true}}
single
Run the following: #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h>   char *list; const char *line = "--------+--------------------\n"; int len = 0;   int irand(int n) { int r, rand_max = RAND_MAX - (RAND_MAX % n); do { r = rand(); } while(r >= rand_max); return r / (rand_max / n); }   ch...
{"is_valid":true,"category":{"C":true}}
single
He walked along the river path, listening to the rustling of leaves overhead. Climate models suggest that ocean temperatures will continue to rise over the coming decades. I copied this from the docs: $ js -e 'print("hello")' hello Production teams refined their processes to minimize waste and improve overall yield. Pr...
{"is_valid":true,"category":{"JavaScript":true}}
single
What does this output: # 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 classroom hummed with quiet conversation as students worked through practice problems. Visitors strolled through the cobblestone streets, admiring the historic architecture. The library hosted a weekly book club focused on classic and contemporary literature. Volunteers spent the weekend cleaning up the riverside t...
{"is_valid":true,"category":{"Batch":true,"AWK":true}}
multi
Can you optimize this implementation: use std::fs::File; use std::fs::OpenOptions; use std::io::BufRead; use std::io::BufReader; use std::io::BufWriter; use std::io::Result; use std::io::Write; use std::path::Path;   /// Password record with all fields #[derive(Eq, PartialEq, Debug)] pub struct PasswordRecord { pub...
{"is_valid":true,"category":{"Rust":true}}
single
The technology conference attracted engineers, designers, and product managers from around the world. Energy researchers are exploring various pathways for reducing carbon emissions globally. He walked along the river path, listening to the rustling of leaves overhead. A gentle breeze drifted across the meadow as the s...
{"is_valid":true,"category":{"C++":true}}
single
Quality assurance teams collaborate closely with developers to identify and resolve defects. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Climate models suggest that ocean temperatures will continue to rise over the coming decades. He wandered through the old bookstore, occasiona...
{"is_valid":true,"category":{"Kotlin":true}}
single
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. He sat by the window with a steaming mug of tea and watched the snow gently falling. The committee scheduled a follow-up meeting to discuss ...
{"is_valid":true,"category":{"Scala":true,"C":true,"PowerShell":true}}
multi
Please review the following snippet for issues: fun turn(base: Int, n: Int): Int { var sum = 0 var n2 = n while (n2 != 0) { val re = n2 % base n2 /= base sum += re } return sum % base }   fun fairShare(base: Int, count: Int) { print(String.format("Base %2d:", base)) f...
{"is_valid":true,"category":{"Kotlin":true,"Ruby":true}}
multi
Here is the code I was given: #include <stdio.h>   #define GRID_SIZE 15 char canvas[GRID_SIZE][GRID_SIZE];   void initN() { int i, j; for (i = 0; i < GRID_SIZE; i++) { for (j = 0; j < GRID_SIZE; j++) { canvas[i][j] = ' '; } canvas[i][5] = 'x'; } }   void horizontal(size_t...
{"is_valid":true,"category":{"C":true}}
single
She placed the manuscript carefully on the desk and began the painstaking process of revision. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. The garden looked particularly vibrant after the recent rain. Local musicians performed acoustic sets every Friday evening at the sm...
{"is_valid":true,"category":{"PowerShell":true}}
single
The garden looked particularly vibrant after the recent rain. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Find any security problems in: FROM steeve/cross-compiler:base MAINTAINER Steeve Morin "steeve.morin@gmail.com" RUN apt-get update && apt-get -y install mingw-w64 ENV C...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Take a look at this: function write_array(a) io.write("[") for i=0,#a do if i>0 then io.write(", ") end io.write(tostring(a[i])) end io.write("]") end   function kosaraju(g) -- 1. For each vertex u of the graph, mark u as unvisited. Let l be empty. local size ...
{"is_valid":true,"category":{"Lua":true}}
single
The committee scheduled a follow-up meeting to discuss the budget allocations. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Marketing analysts examined consumer behavior trends across multiple demographic segments. The newly opened gallery showcased contemporary works by ...
{"is_valid":true,"category":{"AWK":true}}
single
Distributed systems demand careful attention to consistency, availability, and partition tolerance. The morning light filtered through the kitchen window as the coffee brewed. The morning light filtered through the kitchen window as the coffee brewed. The engineer reviewed the blueprints carefully before approving the ...
{"is_valid":true,"category":{"C++":true,"Go":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. Translate this into another language for me: LOCAL_PATH := $(call my-dir) libefivar_src_files := \ efivarfs.c \ guid.c \ lib.c \ vars....
{"is_valid":true,"category":{"Makefile":true,"Batch":true}}
multi
Here is the code I was given: rotate_string <- function(x, forwards) {    nchx <- nchar(x)    if(forwards)    {                                         paste(substr(x, nchx, nchx), substr(x, 1, nchx - 1), sep = "")    } else    {                                                                 paste(substr(x, 2,...
{"is_valid":true,"category":{"R":true}}
single
Take a look at this: function Select-NumberFromString { [CmdletBinding(DefaultParameterSetName="Decimal")] [OutputType([PSCustomObject])] Param ( [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true, P...
{"is_valid":true,"category":{"PowerShell":true}}
single
Take a look at this: import java.math.BigInteger;   public class Isqrt { private static BigInteger isqrt(BigInteger x) { if (x.compareTo(BigInteger.ZERO) < 0) { throw new IllegalArgumentException("Argument cannot be negative"); } var q = BigInteger.ONE; while (q.compareTo...
{"is_valid":true,"category":{"Java":true}}
single
The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Production teams refined their processes to minimize waste and improve overall yield. The engineer reviewed the blueprints carefully before approving the modifications. Historians continue to debate the significance of the trea...
{"is_valid":false,"category":{}}
benign
Energy researchers are exploring various pathways for reducing carbon emissions globally. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Distributed systems demand careful attention to c...
{"is_valid":true,"category":{"C":true,"Go":true}}
multi
Run the following: # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"...
{"is_valid":true,"category":{"Dockerfile":true,"JavaScript":true}}
multi
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Corporate training programs increasingly include modules on collaboration and communication. The engineer reviewed the blueprints careful...
{"is_valid":true,"category":{"PowerShell":true}}
single
He sat by the window with a steaming mug of tea and watched the snow gently falling. He sat by the window with a steaming mug of tea and watched the snow gently falling. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Public libraries have evolved into community hubs offering far mor...
{"is_valid":true,"category":{"C":true,"PowerShell":true}}
multi
Add comments to make this clearer: #include <iostream> using namespace std;   template<class T = double> class Quaternion { public: T w, x, y, z;   // Numerical constructor Quaternion(const T &w, const T &x, const T &y, const T &z): w(w), x(x), y(y), z(z) {}; Quaternion(const T &x, const T &y, const T &z): w(T(...
{"is_valid":true,"category":{"C++":true}}
single
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Run the following: Rename-Item input.txt output.txt   # The Rename-item has the alias ren ren input.txt output.txt Plus, for comparison, the equivalent here: next.perm <- function(a) { n <- length(a) i <- n while (i > 1 ...
{"is_valid":true,"category":{"PowerShell":true,"R":true}}
multi
Translate this into another language for me: # syntax: GAWK -f SEXY_PRIMES.AWK BEGIN { cutoff = 1000034 for (i=1; i<=cutoff; i++) { n1 = i if (is_prime(n1)) { total_primes++ if ((n2 = n1 + 6) > cutoff) { continue } if (is_prime(n2)) { save(2,5,n1 FS n2) if...
{"is_valid":true,"category":{"AWK":true}}
single
Refactor the function below: -- prep: convert given sample text to fixed length "infile.dat" local sample = [[ Line 1...1.........2.........3.........4.........5.........6.........7.........8 Line 2 Line 3 Line 4   Line 6 Line 7 Indented line 8............................................................
{"is_valid":true,"category":{"Lua":true}}
single
Backend services were redesigned to handle the surge in concurrent user requests. Project managers stressed the importance of clear documentation throughout the cycle. The botanical garden featured an impressive collection of rare orchids from tropical regions. Volunteers spent the weekend cleaning up the riverside tra...
{"is_valid":true,"category":{"jq":true}}
single
Marketing analysts examined consumer behavior trends across multiple demographic segments. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Network operators continually upgrade infrastructure to keep pace with growing demand. What does this output: Scanner sc = new Scanner(S...
{"is_valid":true,"category":{"Java":true}}
single
Translate this into another language for me: def count(s): reduce s as $x (0; .+1);   def factorial: reduce range(2;.+1) as $i (1; . * $i);   def permutations: if length == 0 then [] else range(0;length) as $i | [.[$i]] + (del(.[$i])|permutations) end ;
{"is_valid":true,"category":{"jq":true}}
single
Network operators continually upgrade infrastructure to keep pace with growing demand. The botanical garden featured an impressive collection of rare orchids from tropical regions. Production teams refined their processes to minimize waste and improve overall yield. Can you optimize this implementation: const VECTORS: ...
{"is_valid":true,"category":{"Rust":true}}
single
The neighborhood gathered every Saturday morning at the small farmers' market downtown. The committee scheduled a follow-up meeting to discuss the budget allocations. Climate scientists continue to refine their models in light of newly available data. Network operators continually upgrade infrastructure to keep pace wi...
{"is_valid":true,"category":{"R":true,"Batch":true}}
multi
Long-distance running requires a combination of disciplined training and proper nutrition. She placed the manuscript carefully on the desk and began the painstaking process of revision. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Production teams refined their processes ...
{"is_valid":true,"category":{"Batch":true,"Perl":true}}
multi
She organized her bookshelves by genre and then alphabetically within each section. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Researchers have been studying migration patterns of monarch bu...
{"is_valid":true,"category":{"Scala":true,"Rust":true}}
multi
The morning light filtered through the kitchen window as the coffee brewed. Database administrators monitor query performance and index utilization across busy schemas. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Policy analysts examined the long-term implications of the prop...
{"is_valid":false,"category":{}}
benign
Researchers have been studying migration patterns of monarch butterflies for years. The technology conference attracted engineers, designers, and product managers from around the world.
{"is_valid":false,"category":{}}
benign
He sat by the window with a steaming mug of tea and watched the snow gently falling. Translate this into another language for me: let inf = Double.infinity inf.isInfinite //true
{"is_valid":true,"category":{"Swift":true}}
single
The committee scheduled a follow-up meeting to discuss the budget allocations. Visitors strolled through the cobblestone streets, admiring the historic architecture. Network operators continually upgrade infrastructure to keep pace with growing demand. Distributed systems demand careful attention to consistency, availa...
{"is_valid":true,"category":{"jq":true}}
single
The neighborhood gathered every Saturday morning at the small farmers' market downtown. Marketing analysts examined consumer behavior trends across multiple demographic segments. Policy analysts examined the long-term implications of the proposed legislative reform. Distributed systems demand careful attention to consi...
{"is_valid":true,"category":{"Java":true}}
single
The classroom hummed with quiet conversation as students worked through practice problems. Software architects often debate the merits of monolithic versus microservice designs. Energy researchers are exploring various pathways for reducing carbon emissions globally. Production teams refined their processes to minimize...
{"is_valid":true,"category":{"Kotlin":true}}
single
Translate this into another language for me: import math import random   def GammaInc_Q( a, x): a1 = a-1 a2 = a-2 def f0( t ): return t**a1*math.exp(-t)   def df0(t): return (a1-t)*t**a2*math.exp(-t)   y = a1 while f0(y)*(x-y) >2.0e-8 and y < x: y += .3 if y > x: y = x   ...
{"is_valid":true,"category":{"Python":true}}
single
She placed the manuscript carefully on the desk and began the painstaking process of revision. Policy analysts examined the long-term implications of the proposed legislative reform. Climate scientists continue to refine their models in light of newly available data. Production teams refined their processes to minimize...
{"is_valid":false,"category":{}}
benign
Backend services were redesigned to handle the surge in concurrent user requests. Local musicians performed acoustic sets every Friday evening at the small cafe. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. The classroom hummed with quiet conversation as students worked t...
{"is_valid":false,"category":{}}
benign
Add comments to make this clearer: #include <stdio.h> #include <ctype.h> #include <stdlib.h> #include <setjmp.h> #include <time.h>   jmp_buf ctx; const char *msg;   enum { OP_NONE = 0, OP_NUM, OP_ADD, OP_SUB, OP_MUL, OP_DIV };   typedef struct expr_t *expr, expr_t; struct expr_t { int op, val, used; expr left, r
{"is_valid":true,"category":{"C":true}}
single
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Refactor the function below: # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- # # This file is part of the LibreOffice project. # # This Source Code Form is subject to the terms of the Mozilla Public # License,...
{"is_valid":true,"category":{"Makefile":true}}
single
Quick question about this snippet: #include <algorithm> #include <cmath> #include <cstdint> #include <cstdlib> #include <cstring> #include <iostream> #include <string> #include <vector> #include <primesieve.hpp>   class prime_sieve { public: explicit prime_sieve(uint64_t limit); bool is_prime(uint64_t n) const ...
{"is_valid":true,"category":{"C++":true}}
single
Please review the following snippet for issues: // version 1.1.2   const val RAND_MAX = 32768 // big enough for this   val rand = java.util.Random()   fun isSorted(a: IntArray): Boolean { val n = a.size if (n < 2) return true for (i in 1 until n) { if (a[i] < a[i - 1]) return false } return ...
{"is_valid":true,"category":{"Kotlin":true}}
single
Visitors strolled through the cobblestone streets, admiring the historic architecture. Can you optimize this implementation: is.perf <- function(n){ if (n==0|n==1) return(FALSE) s <- seq (1,n-1) x <- n %% s m <- data.frame(s,x) out <- with(m, s[x==0]) return(sum(out)==n) } # Usage - Warning High Memory Usage is....
{"is_valid":true,"category":{"R":true}}
single
The painting featured warm colors that evoked memories of childhood summers by the sea. Researchers have been studying migration patterns of monarch butterflies for years. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Marketing analysts examined consumer behavior trends ac...
{"is_valid":false,"category":{}}
benign
Take a look at this: resource "aws_shield_protection" "shield_for_app_gorouter_alb" { name = "${var.env}-app-gorouter-shield" resource_arn = "${aws_lb.cf_router_app_domain.arn}" } resource "aws_shield_protection" "shield_for_system_gorouter_alb" { name = "${var.env}-system-gorouter-shield" reso...
{"is_valid":true,"category":{"Terraform":true}}
single
The technology conference attracted engineers, designers, and product managers from around the world. The technology conference attracted engineers, designers, and product managers from around the world. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Volunteers spent the w...
{"is_valid":true,"category":{"C++":true}}
single
Marketing analysts examined consumer behavior trends across multiple demographic segments. The library hosted a weekly book club focused on classic and contemporary literature. The library hosted a weekly book club focused on classic and contemporary literature. Backend services were redesigned to handle the surge in c...
{"is_valid":true,"category":{"AWK":true,"Go":true,"JavaScript":true}}
multi
Refactor the function below: # Copyright 2020 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
{"is_valid":true,"category":{"YAML":true}}
single