prompt
large_stringlengths
150
7.97k
target
large_stringlengths
32
83
kind
large_stringclasses
3 values
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. He walked along the river path, listening to the rustling of leaves overhead. Researchers gathered data from hundreds of households participating in the longitudinal study. Project managers stressed the importance of clear docu...
{"is_valid":true,"category":{"Makefile":true}}
single
Refactor the function below: // 20210212 Rust programming solution   fn nthRoot(n: f64, A: f64) -> f64 {   let p = 1e-9_f64 ; let mut x0 = A / n ;   loop { let mut x1 = ( (n-1.0) * x0 + A / f64::powf(x0, n-1.0) ) / n; if (x1-x0).abs() < (x0*p).abs() { return x1 }; x0 = x1 } }  ...
{"is_valid":true,"category":{"Rust":true}}
single
Project managers stressed the importance of clear documentation throughout the cycle. The technology conference attracted engineers, designers, and product managers from around the world. Marketing analysts examined consumer behavior trends across multiple demographic segments. The painting featured warm colors that ev...
{"is_valid":true,"category":{"Lua":true}}
single
The neighborhood gathered every Saturday morning at the small farmers' market downtown. Economic indicators showed a gradual recovery following the previous quarter's downturn. He sat by the window with a steaming mug of tea and watched the snow gently falling. Network operators continually upgrade infrastructure to ke...
{"is_valid":true,"category":{"PowerShell":true}}
single
Can you optimize this implementation: apiVersion: v1 kind: ConfigMap metadata: name: mariadb-config namespace: libki data: PUID: "1000" PGID: "1000" MARIADB_USER: maria-user MARIADB_ROOT_PASSWORD: pLV03aD65mt MARIADB_PASSWORD: pLV03aD65mt MYSQL_ROOT_PASSWORD: pLV03aD65mt MYSQL_PASSWORD: pLV03aD65mt
{"is_valid":true,"category":{"YAML":true}}
single
Take a look at this: import Foundation   struct Quaternion { var a, b, c, d: Double   static let i = Quaternion(a: 0, b: 1, c: 0, d: 0) static let j = Quaternion(a: 0, b: 0, c: 1, d: 0) static let k = Quaternion(a: 0, b: 0, c: 0, d: 1) } extension Quaternion: Equatable { static func ==(lhs: Quaternion, rhs: Q...
{"is_valid":true,"category":{"Swift":true}}
single
Can you optimize this implementation: @echo off setlocal enabledelayedexpansion   call :push 10 "item ten" call :push 2 "item two" call :push 100 "item one hundred" call :push 5 "item five"   call :pop & echo !order! !item! call :pop & echo !order! !item! call :pop & echo !order! !item! call :pop & echo !order! !i...
{"is_valid":true,"category":{"Batch":true,"Terraform":true}}
multi
Policy analysts examined the long-term implications of the proposed legislative reform. She enjoyed reading historical novels that transported her to far away places. 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 ...
{"is_valid":false,"category":{}}
benign
Refactor the function below: package main   import ( "bufio" "flag" "fmt" "io" "log" "os" "strings" "unicode" )   func main() { log.SetFlags(0) log.SetPrefix("textonyms: ")   wordlist := flag.String("wordlist", "wordlist", "file containing the list of words to check") flag.Parse() if flag.NArg() != 0 { f...
{"is_valid":true,"category":{"Go":true}}
single
Find any security problems in: #include <stdio.h> #include <stdlib.h> #include <wchar.h> #include <wctype.h> #include <string.h> #include <locale.h>   typedef struct wstr { wchar_t *s; int n, alloc; } wstr;   #define w_del(w) { free(w->s); free(w); } #define forchars(i, c, w) for(i = 0, c = w->s[0]; i < w->n && c; c ...
{"is_valid":true,"category":{"C":true}}
single
The painting featured warm colors that evoked memories of childhood summers by the sea. Run the following: class LinkedListNode { public int Value { get; set; } public LinkedListNode Next { get; set; }   // A constructor is not necessary, but could be useful. public Link(int value, LinkedListNode next =...
{"is_valid":true,"category":{"C#":true}}
single
Add comments to make this clearer: def perfect_shuffle: . as $a | if (length % 2) == 1 then "cannot perform perfect shuffle on odd-length array" | error else (length / 2) as $mid | reduce range(0; $mid) as $i (null; .[2*$i] = $a[$i] | .[2*$i + 1] = $a[$mid+$i] ) end;   # How many iteratio...
{"is_valid":true,"category":{"jq":true}}
single
Production teams refined their processes to minimize waste and improve overall yield. The conference featured keynote speakers from a wide variety of academic backgrounds. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Public libraries have evolved into community hubs offer...
{"is_valid":true,"category":{"Lua":true,"Bash":true}}
multi
He walked along the river path, listening to the rustling of leaves overhead. Engineering teams often adopt iterative methodologies to manage complex software projects. Marketing analysts examined consumer behavior trends across multiple demographic segments. Visitors strolled through the cobblestone streets, admiring ...
{"is_valid":false,"category":{}}
benign
Run the following: function error(msg) { printf("%s\n", msg) exit(1) }   function bytes_to_int(bstr, i, sum) { sum = 0 for (i=word_size-1; i>=0; i--) { sum *= 256 sum += code[bstr+i] } return sum }   function emit_byte(x) { code[next_free_code_index++] = x }   function emit_word(x, ...
{"is_valid":true,"category":{"AWK":true}}
single
Quarterly reports indicated a steady rise in operational efficiency across divisions. 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. Children played in the park while their parents chatted on the wooden ...
{"is_valid":true,"category":{"PowerShell":true,"Rust":true}}
multi
He sat by the window with a steaming mug of tea and watched the snow gently falling. Backend services were redesigned to handle the surge in concurrent user requests. 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...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Run the following: function range-extraction($arr) { if($arr.Count -gt 2) { $a, $b, $c, $arr = $arr $d = $e = $c if((($a + 1) -eq $b) -and (($b + 1) -eq $c)) { $test = $true while($arr -and $test) { $d = $e $e, $arr = $arr ...
{"is_valid":true,"category":{"PowerShell":true}}
single
Quick question about this snippet: (ns goodbye-world.handler (:require [compojure.core :refer :all] [compojure.handler :as handler] [compojure.route :as route]))   (defroutes app-routes (GET "/" [] "Goodbye, World!") (route/resources "/") (route/not-found "Not Found"))   (def app (hand...
{"is_valid":true,"category":{"C++":true,"Terraform":true,"Swift":true}}
multi
I need help debugging this script: # syntax: GAWK -f MENU.AWK BEGIN { print("you picked:",menu("")) print("you picked:",menu("fee fie:huff and puff:mirror mirror:tick tock")) exit(0) } function menu(str, ans,arr,i,n) { if (str == "") { return } n = split(str,arr,":") while (1) { ...
{"is_valid":true,"category":{"AWK":true}}
single
Run the following: i <- 42 primeCount <- 0 while(primeCount < 42) { if(gmp::isprime(i) == 2)#1 means "probably prime" and won't come up for numbers this small, 2 is what we want. { primeCount <- primeCount + 1 extraCredit <- format(i, big.mark=",", scientific = FALSE) cat("Prime count:", paste0(primeCou...
{"is_valid":true,"category":{"R":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, Version 2...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Historians continue to debate the significance of the treaty signed in that pivotal year. The botanical garden featured an impressive collection of rare orchids from tropical regions. Please review the following snippet for issues: %w[ 1.3.6.1.4.1.11.2.17.19.3.4.0.10 1.3.6.1.4.1.11.2.17.5.2.0.79 1.3.6.1.4.1.11.2....
{"is_valid":true,"category":{"Ruby":true,"PowerShell":true}}
multi
The garden looked particularly vibrant after the recent rain. The painting featured warm colors that evoked memories of childhood summers by the sea. The painting featured warm colors that evoked memories of childhood summers by the sea. He sat by the window with a steaming mug of tea and watched the snow gently fallin...
{"is_valid":false,"category":{}}
benign
Local musicians performed acoustic sets every Friday evening at the small cafe. Local potters fired their kilns once a month, producing colorful ceramics for the shops. The neighborhood gathered every Saturday morning at the small farmers' market downtown. The neighborhood gathered every Saturday morning at the small f...
{"is_valid":true,"category":{"R":true}}
single
Take a look at this: func polynomialCoeffs(n: Int) -> [Int] { var result = [Int](count : n+1, repeatedValue : 0)   result[0]=1 for i in 1 ..< n/2+1 { //Progress up, until reaching the middle value result[i] = result[i-1] * (n-i+1)/i; } for i in n/2+1 ..< n+1 { //Copy the inverse of the first...
{"is_valid":true,"category":{"Swift":true}}
single
Can you optimize this implementation: # # 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, Ver...
{"is_valid":true,"category":{"Dockerfile":true}}
single
What does this output: resource "aws_elb" "cf_router" { name = "${var.env}-cf-router" subnets = ["${split(",", var.infra_subnet_ids)}"] idle_timeout = "${var.elb_idle_timeout}" cross_zone_load_balancing = "true" security_groups = [ "${aws_security_group.web.id}", "${aws_security_group
{"is_valid":true,"category":{"Terraform":true}}
single
Late spring rains caused the lake to swell beyond its usual seasonal boundaries. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Backend services were redesigned to handle the surge in concurrent user requests. Marketing analysts examined consumer behavior trends across multiple ...
{"is_valid":true,"category":{"Terraform":true}}
single
Economic indicators showed a gradual recovery following the previous quarter's downturn. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Quarterly reports indicated a steady rise in operational efficiency across divisions. Marketing analysts examined consumer behavior trends acr...
{"is_valid":true,"category":{"Scala":true,"Kotlin":true,"JavaScript":true}}
multi
Astronomers observed a faint signal that appeared to originate from a distant galaxy. Run the following: fn strip_comment<'a>(input: &'a str, markers: &[char]) -> &'a str { input .find(markers) .map(|idx| &input[..idx]) .unwrap_or(input) .trim() }   fn main() { println!("{:?}", s...
{"is_valid":true,"category":{"Rust":true,"Kotlin":true}}
multi
Database administrators monitor query performance and index utilization across busy schemas. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Could you explain what this code does: #!/bin/sh   read string read integer read -p 'Enter a number: ' number echo "The number is $num...
{"is_valid":true,"category":{"Bash":true,"YAML":true,"C#":true}}
multi
Policy analysts examined the long-term implications of the proposed legislative reform. Hikers were advised to carry plenty of water and to inform someone of their planned route. Project managers stressed the importance of clear documentation throughout the cycle. Network operators continually upgrade infrastructure to...
{"is_valid":true,"category":{"Scala":true,"PowerShell":true,"AWK":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. Historians continue to debate the significance of t...
{"is_valid":true,"category":{"SQL":true}}
single
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. The garden looked particularly vibrant after the recent rain. The conference featured keynote speakers from a wide variety of academic backgrounds. Climate models suggest that ocean temperatures will continue to rise over the coming...
{"is_valid":true,"category":{"C++":true}}
single
Please review the following snippet for issues: # # This terraform plan defines the resources necessary to host the Terraform # remote state in Azure Blob Storage as described here: # <https://www.terraform.io/docs/state/remote/azure.html> resource "azurerm_resource_group" "tfstate" { name = "${var.prefix}tfst...
{"is_valid":true,"category":{"Terraform":true}}
single
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Engineering teams often adopt iterative method...
{"is_valid":true,"category":{"Bash":true}}
single
Researchers have been studying migration patterns of monarch butterflies for years. 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. Public libraries have evolved into community hubs offering far m...
{"is_valid":true,"category":{"Lua":true}}
single
Public libraries have evolved into community hubs offering far more than just printed books. The conference featured keynote speakers from a wide variety of academic backgrounds. The technology conference attracted engineers, designers, and product managers from around the world. He gathered his notes, packed his bag, ...
{"is_valid":false,"category":{}}
benign
Astronomers observed a faint signal that appeared to originate from a distant galaxy. 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. The library hosted a weekly book club focused on classic and cont...
{"is_valid":true,"category":{"Bash":true}}
single
I need help debugging this script: using System; using System.Collections.Generic; using System.Linq;   class ReturnMultipleValues { static void Main() { var values = new[] { 4, 51, 1, -3, 3, 6, 8, 26, 2, 4 }; int max, min; MinMaxNum(values, out max, out min);   Console.WriteLine...
{"is_valid":true,"category":{"C#":true}}
single
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Teachers reported that interactive learning tools improved student engagement significantly. He walked along the river path, listening to the r...
{"is_valid":true,"category":{"Perl":true}}
single
Translate this into another language for me: package main   import ( "fmt" "rcu" "strconv" )   func isColorful(n int) bool { if n < 0 { return false } if n < 10 { return true } digits := rcu.Digits(n, 10) for _, d := range digits { if d == 0 || d == 1 { ...
{"is_valid":true,"category":{"Go":true}}
single
What does this output: FROM centos:7 MAINTAINER Mohammed Zeeshan Ahmed <moahmed@redhat.com> ENV PGWEB_VERSION "0.9.6" RUN yum -y update && yum clean all RUN yum -y install unzip && \ curl -L https://github.com/sosedoff/pgweb/releases/download/v${PGWEB_VERSION}/pgweb_linux_amd64.zip > /tmp/pgweb.zip && \ u...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Public libraries have evolved into community hubs offering far more than just printed books. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. The chef prepared a simple meal of roast...
{"is_valid":true,"category":{"R":true}}
single
Could you explain what this code does: #include <stdio.h> #include <stdlib.h>   typedef unsigned uint; typedef struct { uint i, v; } filt_t;   // ludics with at least so many elements and reach at least such value uint* ludic(uint min_len, uint min_val, uint *len) { uint cap, i, v, active = 1, nf = 0; filt_t *f = cal...
{"is_valid":true,"category":{"C":true}}
single
Economic indicators showed a gradual recovery following the previous quarter's downturn. 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. The bakery on the corner was famous for its...
{"is_valid":true,"category":{"C++":true}}
single
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Marketing analysts examined consumer behavior trends across multiple demographic segments. The committee scheduled a follow-up meeting to discuss the budget allocations. Modern microprocessors rely on pipelining and out-of-order execut...
{"is_valid":true,"category":{"JavaScript":true,"Scala":true}}
multi
Quick question about this snippet: // For a class N which implements Zeckendorf numbers: // I define an increment operation ++() // I define a comparison operation <=(other N) // I define an addition operation +=(other N) // I define a subtraction operation -=(other N) // Nigel Galloway October 28th., 2012 #include <io...
{"is_valid":true,"category":{"C++":true}}
single
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. The garden looked particularly vibrant after the recent rain. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Teachers reported that interactive learning tools improved student engag...
{"is_valid":true,"category":{"Go":true,"SQL":true}}
multi
Hikers were advised to carry plenty of water and to inform someone of their planned route. Refactor the function below: var roman = { map: [ 1000, 'M', 900, 'CM', 500, 'D', 400, 'CD', 100, 'C', 90, 'XC', 50, 'L', 40, 'XL', 10, 'X', 9, 'IX', 5, 'V', 4, 'IV', 1, 'I', ], int_to_roman: function(...
{"is_valid":true,"category":{"JavaScript":true}}
single
The newly opened gallery showcased contemporary works by emerging regional artists. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Economic indicators showed a gradual recovery fol...
{"is_valid":true,"category":{"C++":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. Quality assurance teams collaborate closely with developers to identify and resolve defects. Database administrators monitor query performan...
{"is_valid":true,"category":{"jq":true,"Rust":true}}
multi
Long-distance running requires a combination of disciplined training and proper nutrition. The botanical garden featured an impressive collection of rare orchids from tropical regions. Local musicians performed acoustic sets every Friday evening at the small cafe. Corporate training programs increasingly include module...
{"is_valid":true,"category":{"AWK":true,"C++":true}}
multi
Can you optimize this implementation: expected <- function(size) { result <- 0 for (i in 1:size) { result <- result + factorial(size) / size^i / factorial(size -i) } result }   knuth <- function(size) { v <- sample(1:size, size, replace = TRUE)   visit <- vector('logical',size) place <- 1 visit[[1]]...
{"is_valid":true,"category":{"R":true}}
single
Policy analysts examined the long-term implications of the proposed legislative reform. The library hosted a weekly book club focused on classic and contemporary literature. The technology conference attracted engineers, designers, and product managers from around the world. Climate scientists continue to refine their ...
{"is_valid":false,"category":{}}
benign
Children played in the park while their parents chatted on the wooden benches nearby. Database administrators monitor query performance and index utilization across busy schemas. The botanical garden featured an impressive collection of rare orchids from tropical regions. Historians continue to debate the significance ...
{"is_valid":true,"category":{"YAML":true}}
single
What does this output: package object tictactoe { val Human = 'X' val Computer = 'O' val BaseBoard = ('1' to '9').toList val WinnerLines = List((0,1,2), (3,4,5), (6,7,8), (0,3,6), (1,4,7), (2,5,8), (0,4,8), (2,4,6)) val randomGen = new util.Random(System.currentTimeMillis) }   package tictactoe {   class Bo...
{"is_valid":true,"category":{"Scala":true}}
single
I need help debugging this script: function error(msg) { printf("%s\n", msg) exit(1) }   function bytes_to_int(bstr, i, sum) { sum = 0 for (i=word_size-1; i>=0; i--) { sum *= 256 sum += code[bstr+i] } return sum }   function make_node(oper, left, right, value) { node_type [next_free_node_...
{"is_valid":true,"category":{"AWK":true}}
single
Policy analysts examined the long-term implications of the proposed legislative reform. Astronomers observed a faint signal that appeared to originate from a distant galaxy. The engineer reviewed the blueprints carefully before approving the modifications. The painting featured warm colors that evoked memories of child...
{"is_valid":false,"category":{}}
benign
Local musicians performed acoustic sets every Friday evening at the small cafe. The painting featured warm colors that evoked memories of childhood summers by the sea. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Farmers depend on accurate weather forecasts to plan their ...
{"is_valid":true,"category":{"Makefile":true}}
single
The botanical garden featured an impressive collection of rare orchids from tropical regions. Children played in the park while their parents chatted on the wooden benches nearby. Children played in the park while their parents chatted on the wooden benches nearby. Here is the code I was given: def diversitytheorem($ac...
{"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 garden looked particularly vibrant after the recent rain. 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. ...
{"is_valid":true,"category":{"Swift":true,"R":true,"Ruby":true}}
multi
Software architects often debate the merits of monolithic versus microservice designs. Production teams refined their processes to minimize waste and improve overall yield. Here is the code I was given: // version 1.1   fun divideByZero(x: Int, y:Int): Boolean = try { x / y false } catch(e: Arit...
{"is_valid":true,"category":{"Kotlin":true}}
single
Statistical models can sometimes obscure the limitations of the underlying data sources. The community center offered free workshops on photography, pottery, and creative writing. What does this output: let text = "Hello,How,Are,You,Today" let tokens = text.components(separatedBy: ",") // for single or multi-character ...
{"is_valid":true,"category":{"Swift":true,"Rust":true,"R":true}}
multi
Translate this into another language for me: #include <iomanip> #include <iostream> #include <tuple>   std::tuple<uint64_t, uint64_t> solvePell(int n) { int x = (int)sqrt(n);   if (x * x == n) { // n is a perfect square - no solution other than 1,0 return std::make_pair(1, 0); }   // the...
{"is_valid":true,"category":{"C++":true}}
single
Energy researchers are exploring various pathways for reducing carbon emissions globally. The newly opened gallery showcased contemporary works by emerging regional artists. Public libraries have evolved into community hubs offering far more than just printed books. Climate scientists continue to refine their models in...
{"is_valid":true,"category":{"Swift":true}}
single
Add comments to make this clearer: package main   import "fmt"   func main() { coconuts := 11 outer: for ns := 2; ns < 10; ns++ { hidden := make([]int, ns) coconuts = (coconuts/ns)*ns + 1 for { nc := coconuts for s := 1; s <= ns; s++ { if nc%ns == ...
{"is_valid":true,"category":{"Go":true,"Rust":true}}
multi
Astronomers observed a faint signal that appeared to originate from a distant galaxy. Local potters fired their kilns once a month, producing colorful ceramics for the shops. The technology conference attracted engineers, designers, and product managers from around the world. Engineering teams often adopt iterative met...
{"is_valid":true,"category":{"Perl":true}}
single
Teachers reported that interactive learning tools improved student engagement significantly. Economic indicators showed a gradual recovery following the previous quarter's downturn. The garden looked particularly vibrant after the recent rain. Find any security problems in: # nice but not suitable for big samples! mont...
{"is_valid":true,"category":{"R":true}}
single
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. Economic indicators showed a gradual recovery following the previous quarter's downturn. He sat by the window with a steaming mug of tea and wat...
{"is_valid":true,"category":{"Makefile":true,"SQL":true}}
multi
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Local potters fired their kilns once a month, produc...
{"is_valid":true,"category":{"Swift":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. Hikers were advised to carry plenty of water and to inform someone of their planned route. Project managers stressed the importance of clear doc...
{"is_valid":true,"category":{"Terraform":true}}
single
The conference featured keynote speakers from a wide variety of academic backgrounds. Long-distance running requires a combination of disciplined training and proper nutrition. Project managers stressed the importance of clear documentation throughout the cycle. Climate scientists continue to refine their models in lig...
{"is_valid":false,"category":{}}
benign
Energy researchers are exploring various pathways for reducing carbon emissions globally. The committee scheduled a follow-up meeting to discuss the budget allocations. Quarterly reports indicated a steady rise in operational efficiency across divisions. Policy analysts examined the long-term implications of the propos...
{"is_valid":true,"category":{"C++":true}}
single
He walked along the river path, listening to the rustling of leaves overhead. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Researchers have been studying migration patterns of monarch butterflies for years. The technology conference attracted engineers, designers, and produc...
{"is_valid":true,"category":{"Ruby":true}}
single
Corporate training programs increasingly include modules on collaboration and communication. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. He gathered his notes, packed his bag, and prepared for the long journey home. The morning light filtered through the kitchen window a...
{"is_valid":true,"category":{"Ruby":true}}
single
Quarterly reports indicated a steady rise in operational efficiency across divisions. Policy analysts examined the long-term implications of the proposed legislative reform. Quick question about this snippet: apiVersion: apps/v1 kind: Deployment metadata: name: bookstore-addbook labels: app: add-book spec: re...
{"is_valid":true,"category":{"YAML":true}}
single
Network operators continually upgrade infrastructure to keep pace with growing demand. Historians continue to debate the significance of the treaty signed in that pivotal year. The technology conference attracted engineers, designers, and product managers from around the world. The chef prepared a simple meal of roaste...
{"is_valid":true,"category":{"Scala":true,"Dockerfile":true}}
multi
Take a look at this: LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) # This will build the client static library for the Google Services Framework LOCAL_MODULE := oauth # Includes all the java files, and explicitly declares any aidl files LOCAL_SRC_FILES := \ $(call all-java-files-under, net)
{"is_valid":true,"category":{"Makefile":true}}
single
Marketing analysts examined consumer behavior trends across multiple demographic segments. 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. Historians continue to debate the significance of the ...
{"is_valid":true,"category":{"JavaScript":true,"SQL":true}}
multi
Can you optimize this implementation: import java.util.Scanner; import java.util.ArrayList;   public class Sub{ private static int[] indices;   public static void main(String[] args){ ArrayList<Long> array= new ArrayList<Long>(); //the main set Scanner in = new Scanner(System.in); while(...
{"is_valid":true,"category":{"Java":true}}
single
The morning light filtered through the kitchen window as the coffee brewed. Climate scientists continue to refine their models in light of newly available data. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Engineering teams often adopt iterative methodologies to ma...
{"is_valid":false,"category":{}}
benign
Refactor the function below: using System; using System.Collections.Generic; using System.Linq;   class Program { static IEnumerable<int> EquilibriumIndices(IEnumerable<int> sequence) { var left = 0; var right = sequence.Sum(); var index = 0; foreach (var element in sequence) ...
{"is_valid":true,"category":{"C#":true,"Dockerfile":true}}
multi
He sat by the window with a steaming mug of tea and watched the snow gently falling. Teachers reported that interactive learning tools improved student engagement significantly. Climate scientists continue to refine their models in light of newly available data. The botanical garden featured an impressive collection of...
{"is_valid":true,"category":{"Bash":true,"AWK":true}}
multi
He walked along the river path, listening to the rustling of leaves overhead. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Production teams refined their processes to minimize waste and improve overall yield. Researchers have been studying migration patterns of monarch b...
{"is_valid":true,"category":{"Go":true}}
single
Please review the following snippet for issues: fn format_with_radix(mut n: u32, radix: u32) -> String { assert!(2 <= radix && radix <= 36);   let mut result = String::new();   loop { result.push(std::char::from_digit(n % radix, radix).unwrap()); n /= radix; if n == 0 { b...
{"is_valid":true,"category":{"Rust":true}}
single
I copied this from the docs: # sinit version VERSION = 0.9.1 # paths PREFIX = /usr/local MANPREFIX = $(PREFIX)/share/man CC = cc LD = $(CC) CPPFLAGS = CFLAGS = -Wextra -Wall -Os $(CPPFLAGS) LDFLAGS = -s -static Then there's this one in another language: /* Copyright 2022 The Kubernetes Authors. Licensed under th...
{"is_valid":true,"category":{"Makefile":true,"Terraform":true,"Go":true}}
multi
Distributed systems demand careful attention to consistency, availability, and partition tolerance. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Teachers reported that interactive learning tools...
{"is_valid":false,"category":{}}
benign
Software architects often debate the merits of monolithic versus microservice designs. 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. Climate scientists continue to refine their models in light of newly ...
{"is_valid":true,"category":{"C#":true}}
single
Corporate training programs increasingly include modules on collaboration and communication. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. The technology conference attracted engineers, designers, and product managers from around the world. Project managers stressed the im...
{"is_valid":false,"category":{}}
benign
The committee scheduled a follow-up meeting to discuss the budget allocations. She organized her bookshelves by genre and then alphabetically within each section. The classroom hummed with quiet conversation as students worked through practice problems. Teachers reported that interactive learning tools improved student...
{"is_valid":true,"category":{"C++":true}}
single
Visitors strolled through the cobblestone streets, admiring the historic architecture. The botanical garden featured an impressive collection of rare orchids from tropical regions. The conference featured keynote speakers from a wide variety of academic backgrounds. The painting featured warm colors that evoked memorie...
{"is_valid":true,"category":{"Swift":true}}
single
Run the following: use utf8;   my @names = ( "North", "North by east", "North-northeast", "Northeast by north", "Northeast", "Northeast by east", "East-northeast", "East by north", "East", "East by south", "East-southeast", "Southeast by east", "Southeast", "Southeast by south", "Sou
{"is_valid":true,"category":{"Perl":true}}
single
Here is the code I was given: func usage(_ e:String) { print("error: \(e)") print("./caeser -e 19 a-secret-string") print("./caeser -d 19 tskxvjxlskljafz") }   func charIsValid(_ c:Character) -> Bool { return c.isASCII && ( c.isLowercase || 45 == c.asciiValue ) // '-' = 45 }   func charRotate(_ c:Character, _ b...
{"is_valid":true,"category":{"Swift":true}}
single
The neighborhood gathered every Saturday morning at the small farmers' market downtown. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Quick question about this snippet: --- apiVersio...
{"is_valid":true,"category":{"YAML":true}}
single
The morning light filtered through the kitchen window as the coffee brewed. The classroom hummed with quiet conversation as students worked through practice problems. Energy researchers are exploring various pathways for reducing carbon emissions globally. He gathered his notes, packed his bag, and prepared for the lon...
{"is_valid":true,"category":{"YAML":true,"jq":true,"Bash":true}}
multi
She organized her bookshelves by genre and then alphabetically within each section. Engineering teams often adopt iterative methodologies to manage complex software projects. Researchers gathered data from hundreds of households participating in the longitudinal study. He adjusted the telescope and waited patiently for...
{"is_valid":true,"category":{"Swift":true}}
single
Refactor the function below: static string ReverseString(string input) { char[] inputChars = input.ToCharArray(); Array.Reverse(inputChars); return new string(inputChars); }
{"is_valid":true,"category":{"C#":true}}
single
He sat by the window with a steaming mug of tea and watched the snow gently falling. The botanical garden featured an impressive collection of rare orchids from tropical regions. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Translate this into another language for me: api...
{"is_valid":true,"category":{"YAML":true}}
single