prompt
large_stringlengths
150
7.97k
target
large_stringlengths
32
83
kind
large_stringclasses
3 values
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. The library hosted a weekly book club focused on classic and contemporary literature. Historians continue to debate the significance of the treaty signed in that pivotal year. Volunteers spent the weekend cleaning up the rivers...
{"is_valid":true,"category":{"Makefile":true}}
single
I copied this from the docs: #adding the below function to the previous users submission to prevent the small #chance of getting an array that is in ascending order.   #Full disclosure: I am an infrastructure engineer, not a dev. My code is likely #bad.   function generateArray{ $fArray = 1..9 | Get-Random -Count ...
{"is_valid":true,"category":{"PowerShell":true}}
single
Quick question about this snippet: $file = @' >Rosetta_Example_1 THERECANBENOSPACE >Rosetta_Example_2 THERECANBESEVERAL LINESBUTTHEYALLMUST BECONCATENATED '@   $lines = $file.Replace("`n","~").Split(">").ForEach({$_.TrimEnd("~").Split("`n",2,[StringSplitOptions]::RemoveEmptyEntries)})   $output = New-Object -TypeName P...
{"is_valid":true,"category":{"PowerShell":true}}
single
Statistical models can sometimes obscure the limitations of the underlying data sources. Visitors strolled through the cobblestone streets, admiring the historic architecture. Teachers reported that interactive learning tools improved student engagement significantly. Here is the code I was given: // Defines a generic ...
{"is_valid":true,"category":{"Rust":true}}
single
The community center offered free workshops on photography, pottery, and creative writing. Historians continue to debate the significance of the treaty signed in that pivotal year. Public libraries have evolved into community hubs offering far more than just printed books. The technology conference attracted engineers,...
{"is_valid":true,"category":{"Scala":true}}
single
Researchers gathered data from hundreds of households participating in the longitudinal study. Historians continue to debate the significance of the treaty signed in that pivotal year. Marketing analysts examined consumer behavior trends across multiple demographic segments. The engineer reviewed the blueprints careful...
{"is_valid":true,"category":{"Rust":true}}
single
Take a look at this: point_in_polygon <- function(polygon, p) { count <- 0 for(side in polygon) { if ( ray_intersect_segment(p, side) ) { count <- count + 1 } } if ( count %% 2 == 1 ) "INSIDE" else "OUTSIDE" }   ray_intersect_segment <- function(p, side) { eps <- 0.0
{"is_valid":true,"category":{"R":true}}
single
He walked along the river path, listening to the rustling of leaves overhead. Take a look at this: const determinant = arr => arr.length === 1 ? ( arr[0][0] ) : arr[0].reduce( (sum, v, i) => sum + v * (-1) ** i * determinant( arr.slice(1) .map(x => x.filter((_, j) => i !=...
{"is_valid":true,"category":{"JavaScript":true}}
single
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. Here is the code I was given: >>> def strcat(sequence): return '{%s}' % ', '.join(sequence)[::-1].replace(',', 'dna ', 1)[::-1]   >>> for seq in ([], ["AB...
{"is_valid":true,"category":{"Python":true}}
single
Policy analysts examined the long-term implications of the proposed legislative reform. The newly opened gallery showcased contemporary works by emerging regional artists. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. The botanical garden featured an impressive collection...
{"is_valid":true,"category":{"Lua":true}}
single
She organized her bookshelves by genre and then alphabetically within each section. Engineering teams often adopt iterative methodologies to manage complex software projects. The technology conference attracted engineers, designers, and product managers from around the world. Historians continue to debate the significa...
{"is_valid":true,"category":{"YAML":true}}
single
Database administrators monitor query performance and index utilization across busy schemas. Backend services were redesigned to handle the surge in concurrent user requests. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Nutritionists generally recommend a balanced ...
{"is_valid":true,"category":{"Lua":true,"Terraform":true,"SQL":true}}
multi
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. The newly opened gallery showcased contemporary works by emerging regional artists. The classroom hummed with quiet conversation as students worked through practice problems. Local potters fired their kilns once a month, producing...
{"is_valid":true,"category":{"Bash":true}}
single
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Can you optimize this implementation: CREATE TABLE Addresses (Address_ID VARCHAR, City_Town VARCHAR); CREATE TABLE Drama_Workshop_Groups (Store_Name VARCHAR, Address_ID VARCHAR); SELECT T2.Store_Name FROM Addresses AS T1 JOIN Drama_Wor...
{"is_valid":true,"category":{"SQL":true}}
single
The neighborhood gathered every Saturday morning at the small farmers' market downtown. Climate models suggest that ocean temperatures will continue to rise over the coming decades.
{"is_valid":false,"category":{}}
benign
Researchers gathered data from hundreds of households participating in the longitudinal study. The committee scheduled a follow-up meeting to discuss the budget allocations. The garden looked particularly vibrant after the recent rain. Volunteers spent the weekend cleaning up the riverside trail and planting new saplin...
{"is_valid":true,"category":{"C++":true}}
single
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 morning light filtered through the kitchen window as the coffee brewed. Public libraries have evolved into community hubs offering far more th...
{"is_valid":true,"category":{"Swift":true,"Java":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. Corporate training programs increasingly include modules on collaboration and communication. Astronomers observed a faint signal that appeared to origi...
{"is_valid":true,"category":{"Python":true}}
single
Quality assurance teams collaborate closely with developers to identify and resolve defects. He sat by the window with a steaming mug of tea and watched the snow gently falling. Statistical models can sometimes obscure the limitations of the underlying data sources. Quality assurance teams collaborate closely with deve...
{"is_valid":true,"category":{"Batch":true}}
single
The garden looked particularly vibrant after the recent rain. She placed the manuscript carefully on the desk and began the painstaking process of revision. The painting featured warm colors that evoked memories of childhood summers by the sea. The botanical garden featured an impressive collection of rare orchids from...
{"is_valid":true,"category":{"Ruby":true,"YAML":true}}
multi
Database administrators monitor query performance and index utilization across busy schemas. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. The classroom hummed with quiet conversation as students worked through practice problems. He wandered through the old bookstore, occasionally...
{"is_valid":true,"category":{"JavaScript":true}}
single
Translate this into another language for me: #! /bin/bash # very simple way to detect a palindrome in Bash # output of bash --version -> GNU bash, version 4.4.7(1)-release x86_64 ...   echo "enter a string" read input   size=${#input} count=0   while (($count < $size)) do array[$count]=${input:$count:1} (( coun...
{"is_valid":true,"category":{"Bash":true,"Swift":true}}
multi
Researchers have been studying migration patterns of monarch butterflies for years. Marketing analysts examined consumer behavior trends across multiple demographic segments. Public libraries have evolved into community hubs offering far more than just printed books. Refactor the function below: int gray_encode(int n) ...
{"is_valid":true,"category":{"C":true}}
single
The conference featured keynote speakers from a wide variety of academic backgrounds. 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. Quarterly reports indicated a steady rise in o...
{"is_valid":true,"category":{"SQL":true}}
single
Teachers reported that interactive learning tools improved student engagement significantly. Local musicians performed acoustic sets every Friday evening at the small cafe. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. She organized her bookshelves by genre and then alphabetically...
{"is_valid":true,"category":{"Perl":true}}
single
The morning light filtered through the kitchen window as the coffee brewed. Could you explain what this code does: #include <iostream> #include <vector> using namespace std; typedef unsigned int uint;   class NarcissisticDecs { public: void makeList( int mx ) { uint st = 0, tl; int pwr = 0, len; while(...
{"is_valid":true,"category":{"C++":true}}
single
Policy analysts examined the long-term implications of the proposed legislative reform. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Policy analysts examined the long-term implica...
{"is_valid":true,"category":{"Bash":true}}
single
Find any security problems in: # This resource waits till GKE creates Istio rule for tracing resource "null_resource" "istio_tracing_wait" { triggers = { nonce = "${var.nonce}" } provisioner "local-exec" { command = <<EOF COUNT=1 MAX_RETRIES=60 SLEEP_SEC=5 READY=false while...
{"is_valid":true,"category":{"Terraform":true,"C":true,"YAML":true}}
multi
She placed the manuscript carefully on the desk and began the painstaking process of revision. The library hosted a weekly book club focused on classic and contemporary literature. Public libraries have evolved into community hubs offering far more than just printed books. She drafted a detailed agenda for the upcoming...
{"is_valid":true,"category":{"C":true}}
single
Take a look at this: package main   import "fmt"   func isPrime(n int) bool { switch { case n < 2: return false case n%2 == 0: return n == 2 case n%3 == 0: return n == 3 default: d := 5 for d*d <= n { if n%d == 0 { return false ...
{"is_valid":true,"category":{"Go":true}}
single
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Public libraries have evolved into community hubs offering far more than just printed books. Local potters fired their kilns once a month, p...
{"is_valid":true,"category":{"Rust":true}}
single
Quarterly reports indicated a steady rise in operational efficiency across divisions. The committee scheduled a follow-up meeting to discuss the budget allocations. Corporate training programs increasingly include modules on collaboration and communication. Climate scientists continue to refine their models in light of...
{"is_valid":true,"category":{"Scala":true,"Java":true,"PowerShell":true}}
multi
Quarterly reports indicated a steady rise in operational efficiency across divisions. He sat by the window with a steaming mug of tea and watched the snow gently falling. Production teams refined their processes to minimize waste and improve overall yield. Economic indicators showed a gradual recovery following the pre...
{"is_valid":true,"category":{"C":true,"Java":true}}
multi
Take a look at this: function isMunchausen (n) local sum, nStr, digit = 0, tostring(n) for pos = 1, #nStr do digit = tonumber(nStr:sub(pos, pos)) sum = sum + digit ^ digit end return sum == n end   -- alternative, faster version based on the C version, -- avoiding str
{"is_valid":true,"category":{"Lua":true}}
single
The neighborhood gathered every Saturday morning at the small farmers' market downtown. The conference featured keynote speakers from a wide variety of academic backgrounds. Hikers were advised to carry plenty of water and to inform someone of their planned route. Modern microprocessors rely on pipelining and out-of-or...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Project managers stressed the importance of clear documentation throughout the cycle. Production teams refined their processes to minimize waste and improve overall yield. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Engineering teams often adopt iterative methodologies to man...
{"is_valid":true,"category":{"Ruby":true,"Java":true}}
multi
Hikers were advised to carry plenty of water and to inform someone of their planned route. He walked along the river path, listening to the rustling of leaves overhead. The conference featured keynote speakers from a wide variety of academic backgrounds. She organized her bookshelves by genre and then alphabetically wi...
{"is_valid":true,"category":{"Bash":true}}
single
Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Please review the following snippet for issues: object CsvToHTML extends App { val header = <head> <title>CsvToHTML</title> <style type="text/css"> td {{background-color:#ddddff; }} thead td {{background-color:#ddffdd; text...
{"is_valid":true,"category":{"Scala":true}}
single
Researchers gathered data from hundreds of households participating in the longitudinal study. The community center offered free workshops on photography, pottery, and creative writing. Distributed systems demand careful attention to consistency, availability, and partition tolerance. She organized her bookshelves by g...
{"is_valid":true,"category":{"Ruby":true}}
single
Translate this into another language for me: def derangements(n) ary = (1 .. n).to_a ary.permutation.select do |perm| ary.zip(perm).all? {|a,b| a != b} end end   def subfact(n) case n when 0 then 1 when 1 then 0 else (n-1)*(subfact(n-1) + subfact(n-2)) end end   puts "derangements for n = 4" derange...
{"is_valid":true,"category":{"Ruby":true}}
single
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Local potters fired their kilns once a month, producing colorful ceramics for the shops. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Astronomers observed a faint signal that appeared to originate ...
{"is_valid":true,"category":{"Rust":true,"Go":true}}
multi
Quick question about this snippet: @echo off setlocal enabledelayedexpansion   for /l %%i in (1,1,9999) do ( title Processing - %%i call:kaprekar %%i )   pause>nul exit /b   :kaprekar set num=%1 if %num% leq 0 exit /b set /a num2=%num%*%num%   if %num2% leq 9 ( if %num2%==%num% ( echo %num% exit /b ) el...
{"is_valid":true,"category":{"Batch":true}}
single
The conference featured keynote speakers from a wide variety of academic backgrounds. He sat by the window with a steaming mug of tea and watched the snow gently falling. She enjoyed reading historical novels that transported her to far away places. Local potters fired their kilns once a month, producing colorful ceram...
{"is_valid":true,"category":{"Terraform":true}}
single
Engineering teams often adopt iterative methodologies to manage complex software projects. Hikers were advised to carry plenty of water and to inform someone of their planned route. Hikers were advised to carry plenty of water and to inform someone of their planned route. Corporate training programs increasingly includ...
{"is_valid":true,"category":{"Batch":true,"Dockerfile":true,"R":true}}
multi
Climate scientists continue to refine their models in light of newly available data. 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. Researchers gathered data from hundreds of households parti...
{"is_valid":true,"category":{"Batch":true}}
single
The classroom hummed with quiet conversation as students worked through practice problems. Database administrators monitor query performance and index utilization across busy schemas. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Could you explain what this code does: package mai...
{"is_valid":true,"category":{"Go":true}}
single
Engineering teams often adopt iterative methodologies to manage complex software projects. Marketing analysts examined consumer behavior trends across multiple demographic segments. Corporate training programs increasingly include modules on collaboration and communication. The library hosted a weekly book club focused...
{"is_valid":true,"category":{"Scala":true}}
single
Statistical models can sometimes obscure the limitations of the underlying data sources. Project managers stressed the importance of clear documentation throughout the cycle. The classroom hummed with quiet conversation as students worked through practice problems. Historians continue to debate the significance of the ...
{"is_valid":true,"category":{"Terraform":true}}
single
The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Can you optimize this implementation: FROM ubuntu:24.04 ARG docker_version="27.3.1" ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update \ && apt-get install -y ca-certificates curl gnupg lsb-release \ && mkdir -p /e...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Researchers have been studying migration patterns of monarch butterflies for years. Network operators continually upgrade infrastructure to keep pace with growing demand. Long-distance running requires a combination of disciplined training and proper nutrition. The community center offered free workshops on photography...
{"is_valid":false,"category":{}}
benign
Children played in the park while their parents chatted on the wooden benches nearby. Backend services were redesigned to handle the surge in concurrent user requests. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. She placed the manuscript carefully on the desk and began t...
{"is_valid":true,"category":{"Terraform":true,"Batch":true,"Perl":true}}
multi
Run the following: from itertools import product, islice     def expr(p): return "{}1{}2{}3{}4{}5{}6{}7{}8{}9".format(*p)     def gen_expr(): op = ['+', '-', ''] return [expr(p) for p in product(op, repeat=9) if p[0] != '+']     def all_exprs(): values = {} for expr in gen_expr(): val = eval...
{"is_valid":true,"category":{"Python":true,"Dockerfile":true}}
multi
She enjoyed reading historical novels that transported her to far away places. 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. Children played in the park while their parents chatted on the wooden be...
{"is_valid":false,"category":{}}
benign
Add comments to make this clearer: object AtomicUpdates {   class Buckets(ns: Int*) {   import scala.actors.Actor._   val buckets = ns.toArray   case class Get(index: Int) case class Transfer(fromIndex: Int, toIndex: Int, amount: Int) case object GetAll   val handler = actor { loop { ...
{"is_valid":true,"category":{"Scala":true}}
single
Refactor the function below: assert(math.type~=nil, "Lua 5.3+ required for this test.") minint, maxint = math.mininteger, math.maxinteger print("min, max int64 = " .. minint .. ", " .. maxint) print("min-1 underflow = " .. (minint-1) .. " equals max? " .. tostring(minint-1==maxint)) print("max+1 overflow = " .. (ma...
{"is_valid":true,"category":{"Lua":true}}
single
Local potters fired their kilns once a month, producing colorful ceramics for the shops. Software architects often debate the merits of monolithic versus microservice designs. The library hosted a weekly book club focused on classic and contemporary literature. He gathered his notes, packed his bag, and prepared for th...
{"is_valid":true,"category":{"Terraform":true}}
single
Researchers gathered data from hundreds of households participating in the longitudinal study. The garden looked particularly vibrant after the recent rain. Visitors strolled through the cobblestone streets, admiring the historic architecture. She drafted a detailed agenda for the upcoming retreat and circulated it to ...
{"is_valid":true,"category":{"Perl":true,"Go":true,"Scala":true}}
multi
Project managers stressed the importance of clear documentation throughout the cycle. The painting featured warm colors that evoked memories of childhood summers by the sea. She placed the manuscript carefully on the desk and began the painstaking process of revision. Local musicians performed acoustic sets every Frida...
{"is_valid":true,"category":{"Scala":true}}
single
I need help debugging this script: str = " \t \r \n String with spaces \t \r \n "   print( string.format( "Leading whitespace removed: %s", str:match( "^%s*(.+)" ) ) ) print( string.format( "Trailing whitespace removed: %s", str:match( "(.-)%s*$" ) ) ) print( string.format( "Leading and trailing whitespace removed:...
{"is_valid":true,"category":{"Lua":true}}
single
The painting featured warm colors that evoked memories of childhood summers by the sea. Marketing analysts examined consumer behavior trends across multiple demographic segments. Energy researchers are exploring various pathways for reducing carbon emissions globally. The painting featured warm colors that evoked memor...
{"is_valid":true,"category":{"C++":true}}
single
I need help debugging this script: package main   import ( "fmt" "math" )   // type requested by task type interval struct { lower, upper float64 }   // a constructor func stepAway(x float64) interval { return interval { math.Nextafter(x, math.Inf(-1)), math.Nextafter(x, math.Inf(1)
{"is_valid":true,"category":{"Go":true}}
single
Take a look at this: public struct Complex {   public let real : Double public let imaginary : Double   public init(real inReal:Double, imaginary inImaginary:Double) { real = inReal imaginary = inImaginary }   public static var i : Complex = Complex(real:0, imaginary: 1) public s...
{"is_valid":true,"category":{"Swift":true,"Python":true}}
multi
She placed the manuscript carefully on the desk and began the painstaking process of revision. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. She enjoyed reading historical novels that transported her to far away places. The engineer reviewed the blueprints carefully before...
{"is_valid":true,"category":{"SQL":true}}
single
Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. The painting featured warm colors that evoked memories of childhood summers by the sea. Historians continue to debate the significance of the treaty si...
{"is_valid":true,"category":{"R":true,"Kotlin":true}}
multi
Long-distance running requires a combination of disciplined training and proper nutrition. Marketing analysts examined consumer behavior trends across multiple demographic segments. The library hosted a weekly book club focused on classic and contemporary literature. The community center offered free workshops on photo...
{"is_valid":true,"category":{"Terraform":true}}
single
Here is the code I was given: #!/usr/bin/awk -f BEGIN { FS=" "; split(" Add ALTer BAckup Bottom CAppend Change SCHANGE CInsert CLAst COMPress COpy" \ " COUnt COVerlay CURsor DELete CDelete Down DUPlicate Xedit EXPand EXTract Find" \ " NFind NFINDUp NFUp CFind FINdup FUp FOrward GET Help HEXType Inp...
{"is_valid":true,"category":{"AWK":true}}
single
What does this output: use List::Util qw(min max first);   sub sufficate { my($val, $type, $round) = @_; $type //= 'M'; if ($type =~ /^\d$/) { $round = $type; $type = 'M' }   my $s = ''; if (substr($val,0,1) eq '-') { $s = '-'; $val = substr $val, 1 } $val =~ s/,//g; if ($val =~ m/e/i) { ...
{"is_valid":true,"category":{"Perl":true}}
single
Children played in the park while their parents chatted on the wooden benches nearby. 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. The garden looked particularly vibrant after the recent rain....
{"is_valid":false,"category":{}}
benign
Quick question about this snippet: resource "datadog_timeboard" "concourse-jobs" { title = "${format("%s job runtime difference", var.env) }" description = "vs previous hour" read_only = false graph { title = "Runtime changes vs hour ago" viz = "change" request { q = "${format("avg:concours...
{"is_valid":true,"category":{"Terraform":true}}
single
The technology conference attracted engineers, designers, and product managers from around the world. 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. Database administrators monitor query...
{"is_valid":true,"category":{"Java":true,"C":true}}
multi
Translate this into another language for me: public IEnumerable<IEnumerable<T>> GetPowerSet<T>(List<T> list) { return from m in Enumerable.Range(0, 1 << list.Count) select from i in Enumerable.Range(0, list.Count) where (m & (1 << i)) != 0 ...
{"is_valid":true,"category":{"C#":true,"YAML":true}}
multi
Hikers were advised to carry plenty of water and to inform someone of their planned route. Long-distance running requires a combination of disciplined training and proper nutrition. Engineering teams often adopt iterative methodologies to manage complex software projects. The chef prepared a simple meal of roasted vege...
{"is_valid":false,"category":{}}
benign
I need help debugging this script: # Emit the k-th smallest item in the input array, # or nothing if k is too small or too large. # The smallest corresponds to k==1. # The input array may hold arbitrary JSON entities, including null. def quickselect(k):   def partition(pivot): reduce .[] as $x # state: [les...
{"is_valid":true,"category":{"jq":true,"Perl":true}}
multi
Public libraries have evolved into community hubs offering far more than just printed books. He walked along the river path, listening to the rustling of leaves overhead. The morning light filtered through the kitchen window as the coffee brewed. The library hosted a weekly book club focused on classic and contemporary...
{"is_valid":false,"category":{}}
benign
She enjoyed reading historical novels that transported her to far away places. Can you optimize this implementation: #!/bin/bash MAX=1000   m[1]=1 for n in `seq 2 $MAX` do m[n]=1 for k in `seq 2 $n` do m[n]=$((m[n]-m[n/k])) done done   echo 'The first 99 Mertens numbers are:' echo -n ' ' for n...
{"is_valid":true,"category":{"Bash":true}}
single
Researchers have been studying migration patterns of monarch butterflies for years. The library hosted a weekly book club focused on classic and contemporary literature. Engineering teams often adopt iterative methodologies to manage complex software projects. Astronomers observed a faint signal that appeared to origin...
{"is_valid":true,"category":{"R":true}}
single
Please review the following snippet for issues: // version 1.1.51   typealias Matrix = Array<DoubleArray>   /* changes the matrix to RREF 'in place' */ fun Matrix.toReducedRowEchelonForm() { var lead = 0 val rowCount = this.size val colCount = this[0].size for (r in 0 until rowCount) { if (colCo...
{"is_valid":true,"category":{"Kotlin":true}}
single
He walked along the river path, listening to the rustling of leaves overhead. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Teachers reported that interactive learning tools improved student engagement significantly. Children played in the park while their parents chatted on t...
{"is_valid":true,"category":{"Makefile":true}}
single
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Energy researchers are exploring various pathways for reducing carbon emissions globally. He gathered his notes, packed his bag, and prepared...
{"is_valid":true,"category":{"AWK":true}}
single
Quick question about this snippet: /** * 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 requ...
{"is_valid":true,"category":{"Terraform":true}}
single
Corporate training programs increasingly include modules on collaboration and communication. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Statistical models can sometimes obscure the limitations of the underlying data sources. Corporate training programs increasing...
{"is_valid":true,"category":{"Perl":true,"Ruby":true}}
multi
Climate models suggest that ocean temperatures will continue to rise over the coming decades. Historians continue to debate the significance of the treaty signed in that pivotal year. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Teachers reported that interactive learning...
{"is_valid":false,"category":{}}
benign
Statistical models can sometimes obscure the limitations of the underlying data sources. Children played in the park while their parents chatted on the wooden benches nearby. Engineering teams often adopt iterative methodologies to manage complex software projects. The neighborhood gathered every Saturday morning at th...
{"is_valid":true,"category":{"SQL":true}}
single
She organized her bookshelves by genre and then alphabetically within each section. Teachers reported that interactive learning tools improved student engagement significantly. Climate scientists continue to refine their models in light of newly available data. Teachers reported that interactive learning tools improved...
{"is_valid":true,"category":{"Makefile":true,"Kotlin":true}}
multi
The engineer reviewed the blueprints carefully before approving the modifications. 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. Astronomers observed a faint signal that appeared to originate fro...
{"is_valid":true,"category":{"PowerShell":true}}
single
The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Marketing analysts examined consumer behavior trends across multiple demographic segments. He sat by the window with a steaming mug of tea and watched the snow gently falling. He gathered his notes, packed his bag, and prepared...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Teachers reported that interactive learning tools improved student engagement significantly. The neighborhood gathered every Saturday morning at the small farmers' market downtown. The newly opened gallery showcased contemporary works by emerging regional artists. Hikers were advised to carry plenty of water and to inf...
{"is_valid":true,"category":{"Perl":true,"Makefile":true}}
multi
The classroom hummed with quiet conversation as students worked through practice problems. Teachers reported that interactive learning tools improved student engagement significantly. Refactor the function below: use strict; use warnings; use ntheory 'divisor_sum';   sub comma { reverse ((reverse shift) =~ s/(.{3})/$1,...
{"is_valid":true,"category":{"Perl":true}}
single
Run the following: import java.lang.Long.parseLong import java.lang.Long.toString   fun String.splitAt(idx: Int): Array<String> { val ans = arrayOf(substring(0, idx), substring(idx)) if (ans.first() == "") ans[0] = "0" // parsing "" throws an exception return ans }   fun Long.getKaprekarParts(sqrStr: Strin...
{"is_valid":true,"category":{"Kotlin":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. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. He adjusted the telescope and waited patiently for the cl...
{"is_valid":true,"category":{"Makefile":true}}
single
Please review the following snippet for issues: #include <iostream> #include <sstream>   int main(int argc, char *argv[]) { using namespace std;   #if _WIN32 if (argc != 5) { cout << "Usage : " << argv[0] << " (type) (id) (source string) (description>)\n"; cout << " Valid types: SUCCESS, ER...
{"is_valid":true,"category":{"C++":true}}
single
Project managers stressed the importance of clear documentation throughout the cycle. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Production teams refined their processes to minimize waste and improve overall yield. Climate scientists continue to refine their models in light of newl...
{"is_valid":true,"category":{"R":true}}
single
Production teams refined their processes to minimize waste and improve overall yield. Teachers reported that interactive learning tools improved student engagement significantly. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Distributed systems demand careful attention to...
{"is_valid":true,"category":{"Scala":true}}
single
The conference featured keynote speakers from a wide variety of academic backgrounds. Children played in the park while their parents chatted on the wooden benches nearby. Hikers were advised to carry plenty of water and to inform someone of their planned route. Policy analysts examined the long-term implications of th...
{"is_valid":true,"category":{"JavaScript":true,"Ruby":true}}
multi
Quick question about this snippet: from __future__ import print_function import sys   # following two must remain in the same order   tk_EOI, tk_Mul, tk_Div, tk_Mod, tk_Add, tk_Sub, tk_Negate, tk_Not, tk_Lss, tk_Leq, tk_Gtr, \ tk_Geq, tk_Eq, tk_Neq, tk_Assign, tk_And, tk_Or, tk_If, tk_Else, tk_While, tk_Print, \ ...
{"is_valid":true,"category":{"Python":true}}
single
Researchers gathered data from hundreds of households participating in the longitudinal study. Here is the code I was given: function Get-CheckDigitCUSIP { [CmdletBinding()] [OutputType([int])] Param ( # Validate input [Parameter(Mandatory=$true, Position=0)] [ValidatePattern( '^[A-Z0-9@#*]...
{"is_valid":true,"category":{"PowerShell":true,"jq":true,"Ruby":true}}
multi
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. The morning light filtered through the kitchen window as the coffee brewed. Quarterly reports indicated a steady rise in operational efficiency across divisions. The newly opened gallery showcased contemporary works by emerging regiona...
{"is_valid":true,"category":{"jq":true}}
single
The painting featured warm colors that evoked memories of childhood summers by the sea. Policy analysts examined the long-term implications of the proposed legislative reform. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Could you explain what this code does: import java....
{"is_valid":true,"category":{"Java":true}}
single
She organized her bookshelves by genre and then alphabetically within each section. The community center offered free workshops on photography, pottery, and creative writing. Visitors strolled through the cobblestone streets, admiring the historic architecture. She drafted a detailed agenda for the upcoming retreat and...
{"is_valid":true,"category":{"Bash":true}}
single
The painting featured warm colors that evoked memories of childhood summers by the sea. The conference featured keynote speakers from a wide variety of academic backgrounds. Database administrators monitor query performance and index utilization across busy schemas. Researchers have been studying migration patterns of ...
{"is_valid":true,"category":{"C#":true,"C":true,"YAML":true}}
multi