prompt
large_stringlengths
150
7.97k
target
large_stringlengths
32
83
kind
large_stringclasses
3 values
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Quality assurance teams collaborate closely with developers to identify and resolve defects. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. The painting featured warm colors that ev...
{"is_valid":true,"category":{"jq":true}}
single
Marketing analysts examined consumer behavior trends across multiple demographic segments. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Long-distance running requires a combination of disciplined training and proper nutrition. Travelers explored ancient ruins, marv...
{"is_valid":true,"category":{"Go":true,"Swift":true}}
multi
Add comments to make this clearer: import swing._ import java.awt.{RenderingHints, BasicStroke, Color}   object FractalTree extends SimpleSwingApplication { val DEPTH = 9   def top = new MainFrame { contents = new Panel { preferredSize = new Dimension(600, 500)   override def paintComponent(g: Graph...
{"is_valid":true,"category":{"Scala":true,"Makefile":true,"C++":true}}
multi
Please review the following snippet for issues: require 'uri' require 'net/http'   uri = URI.parse('https://www.example.com') pem = File.read("/path/to/my.pem") cert = OpenSSL::X509::Certificate.new(pem) key = OpenSSL::PKey::RSA.new(pem) response = Net::HTTP.start(uri.host, uri.port, use_ssl: true, ...
{"is_valid":true,"category":{"Ruby":true}}
single
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Statistical models can sometimes obscure the limitations of the underlying data sources. Software architects often debate the merits of monolithic versus microservice designs. Distributed systems demand careful attention to consiste...
{"is_valid":true,"category":{"SQL":true}}
single
The engineer reviewed the blueprints carefully before approving the modifications. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Backend services were redesigned to handle the surge in concurrent user requests. Energy researchers are exploring various pathways for reducing car...
{"is_valid":false,"category":{}}
benign
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. 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 from a distant galaxy. Researchers gathered data from hundreds of households partici...
{"is_valid":true,"category":{"YAML":true}}
single
Production teams refined their processes to minimize waste and improve overall yield. Researchers gathered data from hundreds of households participating in the longitudinal study. Quick question about this snippet: This version uses number->string then string->number conversions to create palindromes. Statistical mode...
{"is_valid":true,"category":{"Rust":true}}
single
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. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. The conference featured keynote speakers fro...
{"is_valid":true,"category":{"Scala":true,"Rust":true}}
multi
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. Climate scientists continue to refine their models in light of newly available data. The conference featured keynote speakers from a wide vari...
{"is_valid":true,"category":{"Go":true,"jq":true}}
multi
Engineering teams often adopt iterative methodologies to manage complex software projects. Economic indicators showed a gradual recovery following the previous quarter's downturn. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Quality assurance teams collaborate closely wit...
{"is_valid":true,"category":{"Lua":true}}
single
The library hosted a weekly book club focused on classic and contemporary literature. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Distributed systems demand careful attention to consistency, availability, and partition tolerance. The painting featured warm colors that evoked...
{"is_valid":true,"category":{"PowerShell":true,"Perl":true}}
multi
The newly opened gallery showcased contemporary works by emerging regional artists. The newly opened gallery showcased contemporary works by emerging regional artists. The garden looked particularly vibrant after the recent rain. Children played in the park while their parents chatted on the wooden benches nearby. The ...
{"is_valid":true,"category":{"jq":true,"Scala":true,"C++":true}}
multi
The classroom hummed with quiet conversation as students worked through practice problems. Can you optimize this implementation: # Copyright 2021 The Kubernetes Authors All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the Lice...
{"is_valid":true,"category":{"YAML":true,"Ruby":true}}
multi
Climate models suggest that ocean temperatures will continue to rise over the coming decades. Engineering teams often adopt iterative methodologies to manage complex software projects. The painting featured warm colors that evoked memories of childhood summers by the sea. Modern microprocessors rely on pipelining and o...
{"is_valid":true,"category":{"Java":true,"Terraform":true}}
multi
Climate scientists continue to refine their models in light of newly available data. Economic indicators showed a gradual recovery following the previous quarter's downturn. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Climate models suggest that ocean temperatures will continue to r...
{"is_valid":true,"category":{"Ruby":true,"Perl":true,"Terraform":true}}
multi
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. The painting featured warm colors that evoked memories of childhood summers by the sea. The newly opened gallery showcased contemporary works by emerging regional artists. Researchers gathered data from hundreds of households ...
{"is_valid":true,"category":{"Scala":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. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. A gentle breeze drifted across the meadow as the...
{"is_valid":true,"category":{"SQL":true,"Ruby":true}}
multi
The library hosted a weekly book club focused on classic and contemporary literature. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. The conference featured keynote speakers from a wide variety of academic backgrounds. Please review the following snippet for issues: for (container_t...
{"is_valid":true,"category":{"C++":true}}
single
Network operators continually upgrade infrastructure to keep pace with growing demand. He sat by the window with a steaming mug of tea and watched the snow gently falling. Find any security problems in: # this is file narc.pl local $/; print do { open 0; <0> } eq <> ? "accept" : "reject"; Historians continue to debate ...
{"is_valid":true,"category":{"Perl":true}}
single
Teachers reported that interactive learning tools improved student engagement significantly. Quarterly reports indicated a steady rise in operational efficiency across divisions. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Backend services were redesigned to handle the ...
{"is_valid":true,"category":{"AWK":true,"Lua":true}}
multi
Quick question about this snippet: variable "bar" { type = "string" } variable "one" { type = "string" } provider "null" { alias = "aliased" } resource "null_resource" "foo" { triggers = { foo = "bar" } } resource "null_resource" "aliased" { provider = "null.aliased" }
{"is_valid":true,"category":{"Terraform":true}}
single
Take a look at this: # Results are system dependent num <- c(1, 3, 6, 10) object.size(num) # e.g. 56 bytes   #Allocating vectors using ':' results in less memory being (reportedly) used num2 <- 1:4 object.size(num2) # e.g. 40 bytes   #Memory shared by objects isn't always counted l <- list(a=c(1, 3,
{"is_valid":true,"category":{"R":true}}
single
She organized her bookshelves by genre and then alphabetically within each section. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Network operators continually upgrade infrastructure to keep pace with growing demand. He gathered his notes, packed his bag, and prepared for...
{"is_valid":true,"category":{"Makefile":true,"JavaScript":true}}
multi
Please review the following snippet for issues: THETA = Math::PI * 2 / 5 SCALE_FACTOR = (3 - Math.sqrt(5)) / 2 MARGIN = 20   attr_reader :pentagons, :renderer def settings size(400, 400) end   def setup sketch_title 'Pentaflake' radius = width / 2 - 2 * MARGIN center = Vec2D.new(radius - 2 * MARGIN, 3 * MARGIN)...
{"is_valid":true,"category":{"Ruby":true}}
single
Hikers were advised to carry plenty of water and to inform someone of their planned route. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. The botanical garden featured an impressiv...
{"is_valid":true,"category":{"Scala":true}}
single
Can you optimize this implementation: using System; using System.Collections.Generic; using System.IO; using System.Linq;   namespace RosettaRecursiveDirectory { class Program { static IEnumerable<FileInfo> TraverseDirectory(string rootPath, Func<FileInfo, bool> Pattern) { var dire
{"is_valid":true,"category":{"C#":true}}
single
She enjoyed reading historical novels that transported her to far away places. She enjoyed reading historical novels that transported her to far away places. Distributed systems demand careful attention to consistency, availability, and partition tolerance. The conference featured keynote speakers from a wide variety o...
{"is_valid":true,"category":{"SQL":true}}
single
She organized her bookshelves by genre and then alphabetically within each section. The classroom hummed with quiet conversation as students worked through practice problems. Climate scientists continue to refine their models in light of newly available data. The neighborhood gathered every Saturday morning at the smal...
{"is_valid":false,"category":{}}
benign
Energy researchers are exploring various pathways for reducing carbon emissions globally. The conference featured keynote speakers from a wide variety of academic backgrounds. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Network operators continually upgrade infrastructure to keep...
{"is_valid":true,"category":{"R":true}}
single
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Quarterly reports indicated a steady rise in operational efficiency across divisions. Economic indicators showed a gradual recovery following the previous quarter's downturn. The committee scheduled a follow-up meeting to discuss ...
{"is_valid":true,"category":{"SQL":true}}
single
I copied this from the docs: extern crate rand;   trait Balanced { /// Returns true if the brackets are balanced fn is_balanced(&self) -> bool; }   impl<'a> Balanced for str { fn is_balanced(&self) -> bool { let mut count = 0;   for bracket in self.chars() { let change = match br...
{"is_valid":true,"category":{"Rust":true,"YAML":true}}
multi
What does this output: DIFF_THRESHOLD = 1e-40   class Fixed: FREE = 0 A = 1 B = 2   class Node: __slots__ = ["voltage", "fixed"] def __init__(self, v=0.0, f=Fixed.FREE): self.voltage = v self.fixed = f   def set_boundary(m): m[1][1] = Node( 1.0, Fixed.A) m[6]
{"is_valid":true,"category":{"Python":true}}
single
Find any security problems in: # Find Mian-Chowla numbers: an # where: ai = 1, # and: an = smallest integer such that ai + aj is unique # for all i, j in 1 .. n && i <= j # BEGIN \ {   FALSE = 0; TRUE = 1;   mcCoun...
{"is_valid":true,"category":{"AWK":true}}
single
The community center offered free workshops on photography, pottery, and creative writing. She enjoyed reading historical novels that transported her to far away places. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Children played in the park while their parents chatted on t...
{"is_valid":true,"category":{"Bash":true}}
single
Public libraries have evolved into community hubs offering far more than just printed books. The painting featured warm colors that evoked memories of childhood summers by the sea. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Energy researchers are exploring various pathways for r...
{"is_valid":true,"category":{"AWK":true}}
single
Children played in the park while their parents chatted on the wooden benches nearby. Network operators continually upgrade infrastructure to keep pace with growing demand. Policy analysts examined the long-term implications of the proposed legislative reform. Quality assurance teams collaborate closely with developers...
{"is_valid":true,"category":{"JavaScript":true}}
single
She placed the manuscript carefully on the desk and began the painstaking process of revision. Production teams refined their processes to minimize waste and improve overall yield. She organized her bookshelves by genre and then alphabetically within each section. Long-distance running requires a combination of discipl...
{"is_valid":false,"category":{}}
benign
She organized her bookshelves by genre and then alphabetically within each section. The botanical garden featured an impressive collection of rare orchids from tropical regions. Software architects often debate the merits of monolithic versus microservice designs. Public libraries have evolved into community hubs offer...
{"is_valid":false,"category":{}}
benign
Historians continue to debate the significance of the treaty signed in that pivotal year. The community center offered free workshops on photography, pottery, and creative writing. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Quick question about this snippet: #!/b...
{"is_valid":true,"category":{"Bash":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. Astronomers observed a faint signal that appeared to originate from a distant galaxy. She placed the manuscript carefully on the desk and...
{"is_valid":false,"category":{}}
benign
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. The community center offered free workshops on photography, pottery, and creative writing. Children played in the park while their parents chatted on...
{"is_valid":false,"category":{}}
benign
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. Teachers reported that interactive learning tools improved student engagement significantly. The conference featured keynote speakers from a wide ...
{"is_valid":true,"category":{"Perl":true}}
single
Take a look at this: for (var n = 0; n < 1e14; n++) { // arbitrary limit that's not too big document.writeln(n.toString(8)); // not sure what's the best way to output it in JavaScript }
{"is_valid":true,"category":{"JavaScript":true}}
single
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Historians continue to debate the significance of the treaty signed in that pivotal year. Historians continue to debate the significance of the treaty signed in that pivotal year. Engineering teams often adopt iterative method...
{"is_valid":true,"category":{"Lua":true}}
single
Statistical models can sometimes obscure the limitations of the underlying data sources. The garden looked particularly vibrant after the recent rain. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Climate models suggest that ocean temperatures will continue to rise over the comin...
{"is_valid":true,"category":{"C++":true,"Go":true}}
multi
Database administrators monitor query performance and index utilization across busy schemas. Production teams refined their processes to minimize waste and improve overall yield. Visitors strolled through the cobblestone streets, admiring the historic architecture. Database administrators monitor query performance and ...
{"is_valid":true,"category":{"Bash":true}}
single
Climate scientists continue to refine their models in light of newly available data. 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. Distributed systems demand careful attention to consistency, av...
{"is_valid":true,"category":{"C":true}}
single
Could you explain what this code does: #include<iostream> #include<math.h> #include<stdlib.h> #include<time.h>   using namespace std; int main(){ int jmax=1000; // maximum value of HIT number. (Length of output file) int imax=1000; // maximum value of random numbers for producing HITs. double x,y; // Coo...
{"is_valid":true,"category":{"C++":true}}
single
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. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. The garden looked particularly vibrant after the recent...
{"is_valid":true,"category":{"C#":true}}
single
Please review the following snippet for issues: using System;   namespace ApolloniusProblemCalc { class Program { static float rs = 0; static float xs = 0; static float ys = 0;   public static void Main(string[] args) { float gx1; float gy1; ...
{"is_valid":true,"category":{"C#":true}}
single
The garden looked particularly vibrant after the recent rain. Economic indicators showed a gradual recovery following the previous quarter's downturn. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. The conference featured keynote speakers from a wide variety of academic bac...
{"is_valid":true,"category":{"R":true}}
single
Please review the following snippet for issues: #include <iostream> #include <string> #include <boost/asio.hpp> #include <boost/regex.hpp> int main() { boost::asio::ip::tcp::iostream s("tycho.usno.navy.mil", "http"); if(!s) std::cout << "Could not connect to tycho.usno.navy.mil\n"; s << "GET /cgi-b...
{"is_valid":true,"category":{"C++":true}}
single
The garden looked particularly vibrant after the recent rain. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Economic indicators showed a gradual recovery following the previous quart...
{"is_valid":true,"category":{"C#":true}}
single
Add comments to make this clearer: using System; using System.Collections.Generic;   namespace HumbleNumbers { class Program { static bool IsHumble(int i) { if (i <= 1) return true; if (i % 2 == 0) return IsHumble(i / 2); if (i % 3 == 0) return IsHumble(i / 3); ...
{"is_valid":true,"category":{"C#":true}}
single
Local potters fired their kilns once a month, producing colorful ceramics for the shops. Network operators continually upgrade infrastructure to keep pace with growing demand. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Researchers have been studying migration patterns of monarc...
{"is_valid":true,"category":{"YAML":true}}
single
Climate models suggest that ocean temperatures will continue to rise over the coming decades. What does this output: use std::collections::HashMap;   fn main() { println!("{}\n", mcm_display(vec![5, 6, 3, 1])); println!( "{}\n", mcm_display(vec![1, 5, 25, 30, 100, 70, 2, 1, 100, 250, 1, 1000, 2]...
{"is_valid":true,"category":{"Rust":true}}
single
She placed the manuscript carefully on the desk and began the painstaking process of revision. Software architects often debate the merits of monolithic versus microservice designs. He sat by the window with a steaming mug of tea and watched the snow gently falling. What does this output: # write this in file <program....
{"is_valid":true,"category":{"PowerShell":true}}
single
Policy analysts examined the long-term implications of the proposed legislative reform. Can you optimize this implementation: // version 1.1.2   const val ESC = "\u001B"   fun main(args: Array<String>) { print("$ESC[?1049h$ESC[H") println("Alternate screen buffer") for(i in 5 downTo 1) { print("\rGo...
{"is_valid":true,"category":{"Kotlin":true}}
single
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Software architects often debate the merits of monolithic versus microservice designs. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Volunteers spent the weekend cleaning up the riverside tr...
{"is_valid":true,"category":{"Perl":true}}
single
Production teams refined their processes to minimize waste and improve overall yield. She enjoyed reading historical novels that transported her to far away places. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. The community center offered free workshops on photography, po...
{"is_valid":true,"category":{"Bash":true}}
single
Statistical models can sometimes obscure the limitations of the underlying data sources. The morning light filtered through the kitchen window as the coffee brewed. Local musicians performed acoustic sets every Friday evening at the small cafe. He sat by the window with a steaming mug of tea and watched the snow gently...
{"is_valid":true,"category":{"Batch":true,"Swift":true}}
multi
He sat by the window with a steaming mug of tea and watched the snow gently falling. Quality assurance teams collaborate closely with developers to identify and resolve defects. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. The morning light filtered through the kitchen wi...
{"is_valid":true,"category":{"Dockerfile":true,"Scala":true}}
multi
Historians continue to debate the significance of the treaty signed in that pivotal year. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. The garden looked particularly vibrant afte...
{"is_valid":true,"category":{"Go":true,"Swift":true,"Lua":true}}
multi
Corporate training programs increasingly include modules on collaboration and communication. He sat by the window with a steaming mug of tea and watched the snow gently falling. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. The morning light filtered through the kitchen wi...
{"is_valid":true,"category":{"Bash":true,"Terraform":true}}
multi
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. The painting featured warm colors that evoked memories of childhood summers by the sea. Corporate training programs increasingly incl...
{"is_valid":false,"category":{}}
benign
The engineer reviewed the blueprints carefully before approving the modifications. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. He sat by the window with a steaming mug of tea and watched the...
{"is_valid":true,"category":{"Perl":true}}
single
I copied this from the docs: use strict; use warnings;   sub det2D { my $p1 = shift or die "4 Missing first point\n"; my $p2 = shift or die "Missing second point\n"; my $p3 = shift or die "Missing third point\n";   return $p1->{x} * ($p2->{y} - $p3->{y}) + $p2->{x} * ($p3->{y} - $p1->{y}) ...
{"is_valid":true,"category":{"Perl":true}}
single
She placed the manuscript carefully on the desk and began the painstaking process of revision. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. The garden looked particularly vibrant after the recent rain. The conference featured keynote speakers from a wide variety of academ...
{"is_valid":false,"category":{}}
benign
Researchers gathered data from hundreds of households participating in the longitudinal study. Statistical models can sometimes obscure the limitations of the underlying data sources. Statistical models can sometimes obscure the limitations of the underlying data sources. The painting featured warm colors that evoked m...
{"is_valid":true,"category":{"Java":true}}
single
Researchers gathered data from hundreds of households participating in the longitudinal study. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Climate scientists continue to refine their models i...
{"is_valid":true,"category":{"R":true}}
single
Production teams refined their processes to minimize waste and improve overall yield. Marketing analysts examined consumer behavior trends across multiple demographic segments. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Engineering teams often adopt iterative methodolog...
{"is_valid":true,"category":{"Bash":true}}
single
Here is the code I was given: FROM golang:1.16-alpine3.13 AS builder ARG VERSION RUN apk add --no-cache git gcc musl-dev make WORKDIR /go/src/github.com/golang-migrate/migrate ENV GO111MODULE=on COPY go.mod go.sum ./ RUN go mod download COPY . ./ RUN make build-docker FROM alpine:3.13 RUN apk add --no-cache ca...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Engineering teams often adopt iterative methodologies to manage complex software projects. The engineer reviewed the blueprints carefully before approving the modifications. Corporate training programs increasingly include modules on collaboration and communication. Children played in the park while their parents chatt...
{"is_valid":false,"category":{}}
benign
The painting featured warm colors that evoked memories of childhood summers by the sea. I need help debugging this script: EPS = 0.001 EPS_SQUARE = EPS * EPS   def side(x1, y1, x2, y2, x, y) return (y2 - y1) * (x - x1) + (-x2 + x1) * (y - y1) end   def naivePointInTriangle(x1, y1, x2, y2, x3, y3, x, y) checkSid...
{"is_valid":true,"category":{"Ruby":true,"JavaScript":true}}
multi
The community center offered free workshops on photography, pottery, and creative writing. Researchers gathered data from hundreds of households participating in the longitudinal study. Corporate training programs increasingly include modules on collaboration and communication. Children played in the park while their p...
{"is_valid":true,"category":{"C#":true,"PowerShell":true}}
multi
Economic indicators showed a gradual recovery following the previous quarter's downturn. Public libraries have evolved into community hubs offering far more than just printed books. Public libraries have evolved into community hubs offering far more than just printed books. Climate scientists continue to refine their m...
{"is_valid":true,"category":{"C":true}}
single
The neighborhood gathered every Saturday morning at the small farmers' market downtown. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Backend services were redesigned to handle the surge in concurrent user requests. Quarterly reports indicated a steady rise in operational ...
{"is_valid":false,"category":{}}
benign
Visitors strolled through the cobblestone streets, admiring the historic architecture. Take a look at this: function isodd(x) { return (x%2)!=0; }   function iseven(x) { return (x%2)==0; }
{"is_valid":true,"category":{"AWK":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!
{"is_valid":true,"category":{"Batch":true}}
single
The painting featured warm colors that evoked memories of childhood summers by the sea. Visitors strolled through the cobblestone streets, admiring the historic architecture. Network operators continually upgrade infrastructure to keep pace with growing demand. The technology conference attracted engineers, designers, ...
{"is_valid":true,"category":{"jq":true}}
single
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Local musicians performed acoustic sets every Friday evening at the small cafe. He sat by the window with a steaming mug of tea and watched the snow gently falling. Economic indicators showed a gradual recovery following the pr...
{"is_valid":false,"category":{}}
benign
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. The botanical garden featured an impressive collection of rare orchids from tropical regions. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Long-distance running requires a combin...
{"is_valid":false,"category":{}}
benign
She enjoyed reading historical novels that transported her to far away places. Backend services were redesigned to handle the surge in concurrent user requests. Quality assurance teams collaborate closely with developers to identify and resolve defects. Modern microprocessors rely on pipelining and out-of-order executi...
{"is_valid":true,"category":{"Terraform":true}}
single
Children played in the park while their parents chatted on the wooden benches nearby. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Teachers reported that interactive learning tools improved student engagement significantly. Local musicians performed acoustic sets every Friday...
{"is_valid":true,"category":{"Python":true}}
single
Researchers have been studying migration patterns of monarch butterflies for years. Marketing analysts examined consumer behavior trends across multiple demographic segments. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Visitors strolled through the cobblestone streets, admir...
{"is_valid":true,"category":{"jq":true,"Batch":true}}
multi
What does this output: var globalAudioContext = new webkitAudioContext();   function morsecode(text, unit, freq) { 'use strict';   // defaults unit = unit ? unit : 0.05; freq = freq ? freq : 700; var cont = globalAudioContext; var time = cont.currentTime;   // morsecode var code = { a: '._', b: '_...', c:...
{"is_valid":true,"category":{"JavaScript":true}}
single
Corporate training programs increasingly include modules on collaboration and communication. Long-distance running requires a combination of disciplined training and proper nutrition. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. She placed the manuscript carefully on the desk and ...
{"is_valid":true,"category":{"Rust":true}}
single
Climate scientists continue to refine their models in light of newly available data. Could you explain what this code does: -- Variadic, first argument is the value with which to populate the array. function multiArray (initVal, ...) local function copy (t) local new = {} for k, v in pairs(t) do ...
{"is_valid":true,"category":{"Lua":true}}
single
The newly opened gallery showcased contemporary works by emerging regional artists. 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 morning light filtered through the kitchen window as ...
{"is_valid":true,"category":{"Dockerfile":true}}
single
The technology conference attracted engineers, designers, and product managers from around the world. Researchers gathered data from hundreds of households participating in the longitudinal study. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Astronomers observed a faint signal tha...
{"is_valid":true,"category":{"Go":true,"Rust":true}}
multi
Long-distance running requires a combination of disciplined training and proper nutrition. Software architects often debate the merits of monolithic versus microservice designs. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. He walked along the river path, listening to the rustl...
{"is_valid":true,"category":{"JavaScript":true}}
single
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. Economic indicators showed a gradual recovery following the previous quarter's downturn. Climate scientists continue to refine their models i...
{"is_valid":true,"category":{"Terraform":true}}
single
The community center offered free workshops on photography, pottery, and creative writing. Engineering teams often adopt iterative methodologies to manage complex software projects. The newly opened gallery showcased contemporary works by emerging regional artists. She drafted a detailed agenda for the upcoming retreat...
{"is_valid":true,"category":{"Scala":true}}
single
Run the following: package main   import "fmt"   // Define set as a type to hold a set of complex numbers. A type // could be defined similarly to hold other types of elements. A common // variation is to make a map of interface{} to represent a set of // mixed types. Also here the map value is
{"is_valid":true,"category":{"Go":true}}
single
She placed the manuscript carefully on the desk and began the painstaking process of revision. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Researchers have been studying migration patterns of monarch butterflies for years. He wandered through the old bookstore, occasion...
{"is_valid":true,"category":{"Scala":true}}
single
The newly opened gallery showcased contemporary works by emerging regional artists. Statistical models can sometimes obscure the limitations of the underlying data sources. The morning light filtered through the kitchen window as the coffee brewed. He sat by the window with a steaming mug of tea and watched the snow ge...
{"is_valid":true,"category":{"Swift":true,"Ruby":true}}
multi
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Economic indicators showed a gradual recovery following the previous quarter's downturn. Historians continue to debate the significance o...
{"is_valid":true,"category":{"Bash":true}}
single
Run the following: ack() { local m=$1 local n=$2 if [ $m -eq 0 ]; then echo -n $((n+1)) elif [ $n -eq 0 ]; then ack $((m-1)) 1 else ack $((m-1)) $(ack $m $((n-1))) fi } And separately, here's a related piece: (() => { 'use strict';   // concatMap :: (a -> [b]) -> [a] -> [b] const co...
{"is_valid":true,"category":{"Bash":true,"JavaScript":true}}
multi
Database administrators monitor query performance and index utilization across busy schemas. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Hikers were advised to carry plenty of water and to inform someone of their planned route. Climate scientists continue to refine their mode...
{"is_valid":true,"category":{"YAML":true}}
single