prompt
large_stringlengths
150
7.97k
target
large_stringlengths
32
83
kind
large_stringclasses
3 values
Network operators continually upgrade infrastructure to keep pace with growing demand. She enjoyed reading historical novels that transported her to far away places. Policy analysts examined the long-term implications of the proposed legislative reform. Software architects often debate the merits of monolithic versus m...
{"is_valid":true,"category":{"Python":true}}
single
Quality assurance teams collaborate closely with developers to identify and resolve defects. Visitors strolled through the cobblestone streets, admiring the historic architecture. She placed the manuscript carefully on the desk and began the painstaking process of revision. Quality assurance teams collaborate closely w...
{"is_valid":true,"category":{"Terraform":true}}
single
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. He walked along the river path, listening to the rustling of leaves overhead. He adjusted the telescope and waited patiently for the clouds to ...
{"is_valid":true,"category":{"Java":true}}
single
The engineer reviewed the blueprints carefully before approving the modifications. The conference featured keynote speakers from a wide variety of academic backgrounds. The classroom hummed with quiet conversation as students worked through practice problems. Corporate training programs increasingly include modules on ...
{"is_valid":true,"category":{"R":true,"Dockerfile":true,"JavaScript":true}}
multi
Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Climate scientists continue to refine their models in light of newly available data. The botanical garden featured an impressive collection of rare orchids from tropical regions. She placed the manuscript carefully on the desk and began th...
{"is_valid":true,"category":{"Rust":true,"Swift":true}}
multi
Quarterly reports indicated a steady rise in operational efficiency across divisions. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Policy analysts examined the long-term implications of the proposed legislative reform. Modern microprocessors rely on pipelining and out-of-...
{"is_valid":true,"category":{"Perl":true}}
single
Refactor the function below: extension BinaryInteger { @inlinable public func factors(sorted: Bool = true) -> [Self] { let maxN = Self(Double(self).squareRoot()) var res = Set<Self>()   for factor in stride(from: 1, through: maxN, by: 1) where self % factor == 0 { res.insert(factor) res.inse...
{"is_valid":true,"category":{"Swift":true,"Batch":true}}
multi
Visitors strolled through the cobblestone streets, admiring the historic architecture. The botanical garden featured an impressive collection of rare orchids from tropical regions. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Climate scientists continue to refine their models in...
{"is_valid":true,"category":{"Scala":true}}
single
Translate this into another language for me: apiVersion: v1 kind: Pod metadata: name: restrictedvolumes10 spec: containers: - image: k8s.gcr.io/pause name: container1 securityContext: allowPrivilegeEscalation: false initContainers: - image: k8s.gcr.io/pause name: initcontainer1 securityC...
{"is_valid":true,"category":{"YAML":true}}
single
Long-distance running requires a combination of disciplined training and proper nutrition. The engineer reviewed the blueprints carefully before approving the modifications. Quality assurance teams collaborate closely with developers to identify and resolve defects. I copied this from the docs: func factors(n: Int) -> ...
{"is_valid":true,"category":{"Swift":true}}
single
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. Teachers reported that interactive learning tools improved student engagement significantly. The bakery on the corner was famous for its...
{"is_valid":true,"category":{"R":true}}
single
Software architects often debate the merits of monolithic versus microservice designs. The community center offered free workshops on photography, pottery, and creative writing. Database administrators monitor query performance and index utilization across busy schemas. Public libraries have evolved into community hubs...
{"is_valid":true,"category":{"Scala":true,"Perl":true}}
multi
Researchers have been studying migration patterns of monarch butterflies for years. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Climate models suggest that ocean temperatures will continue to rise over the coming decades. The classroom hummed with quiet conversation as studen...
{"is_valid":true,"category":{"YAML":true}}
single
I copied this from the docs: # syntax=docker/dockerfile:1 # Copyright 2021 cli-docs-tool authors # # 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...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Add comments to make this clearer: # -*- coding: utf-8 -*- # Not Python 3.x (Can't compare str and int)     from itertools import groupby from unicodedata import decomposition, name from pprint import pprint as pp   commonleaders = ['the'] # lowercase leading words to ignore replacements = {u'ß': 'ss', # Map single ch...
{"is_valid":true,"category":{"Python":true,"Java":true,"jq":true}}
multi
The community center offered free workshops on photography, pottery, and creative writing. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Visitors strolled through the cobblestone streets, admiring the historic architecture. Hikers were advised to carry plenty of wat...
{"is_valid":true,"category":{"Lua":true}}
single
Engineering teams often adopt iterative methodologies to manage complex software projects. Refactor the function below: def sort_range($a;$b): [range($a;$b)] | sort_by(tostring);   # Example # jq's index origin is 0, so ... sort_range(1;14) He walked along the river path, listening to the rustling of leaves overhead. T...
{"is_valid":true,"category":{"jq":true}}
single
Visitors strolled through the cobblestone streets, admiring the historic architecture. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. The engineer reviewed the blueprints carefully ...
{"is_valid":true,"category":{"C":true}}
single
Translate this into another language for me: s <- ''   if (s == '') cat('Empty\n') #or if (nchar(s) == 0) cat('Empty\n')   if (s != '') cat('Not empty\n') #or if (nchar(s) > 0) cat('Not empty\n')
{"is_valid":true,"category":{"R":true}}
single
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Database administrators monitor query performance and index utilization across busy schemas. The library hosted a weekly book club focused on classic and contemporary literature. Hikers were advised to carry plenty of water and...
{"is_valid":true,"category":{"jq":true}}
single
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. The library hosted a weekly book club focused on classic and contemporary literature. Local potters fired their kilns once a month, pr...
{"is_valid":true,"category":{"Swift":true}}
single
The classroom hummed with quiet conversation as students worked through practice problems. Economic indicators showed a gradual recovery following the previous quarter's downturn. Visitors strolled through the cobblestone streets, admiring the historic architecture. He sat by the window with a steaming mug of tea and w...
{"is_valid":true,"category":{"Swift":true,"Rust":true,"PowerShell":true}}
multi
Researchers gathered data from hundreds of households participating in the longitudinal study. Project managers stressed the importance of clear documentation throughout the cycle. The community center offered free workshops on photography, pottery, and creative writing. The botanical garden featured an impressive coll...
{"is_valid":true,"category":{"Python":true}}
single
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. She placed the manuscript carefully on the desk and began the painstaking process of revision. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Economic indicators showed a gradual r...
{"is_valid":true,"category":{"R":true}}
single
Corporate training programs increasingly include modules on collaboration and communication. Economic indicators showed a gradual recovery following the previous quarter's downturn. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. A gentle breeze drifted across the meadow as the s...
{"is_valid":true,"category":{"Bash":true}}
single
Run the following: # Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
{"is_valid":true,"category":{"Makefile":true,"Perl":true}}
multi
She enjoyed reading historical novels that transported her to far away places. The newly opened gallery showcased contemporary works by emerging regional artists. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Corporate training programs increasingly include modules on coll...
{"is_valid":true,"category":{"Terraform":true}}
single
Refactor the function below: import java.util.Collections; import java.util.LinkedList; import java.util.List;   /** * A class for an "Integer with a history". * <p> * Note that it is not possible to create an empty Variable (so there is no "null") with this type. This is a design * choice, because if "empty" varia...
{"is_valid":true,"category":{"Java":true}}
single
The botanical garden featured an impressive collection of rare orchids from tropical regions. Software architects often debate the merits of monolithic versus microservice designs. Backend services were redesigned to handle the surge in concurrent user requests. The engineer reviewed the blueprints carefully before app...
{"is_valid":true,"category":{"Makefile":true,"Scala":true}}
multi
I need help debugging this script: // version 1.0.6   fun expandRange(s: String): MutableList<Int> { val list = mutableListOf<Int>() val items = s.split(',') var first: Int var last: Int for (item in items) { val count = item.count { it == '-' } if (count == 0 || (count ==
{"is_valid":true,"category":{"Kotlin":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. Here is the code I was given: var val = 0; do { print(++val); } while (val % 6); Distributed systems demand careful attention to consistency, avail...
{"is_valid":true,"category":{"JavaScript":true}}
single
Hikers were advised to carry plenty of water and to inform someone of their planned route. Corporate training programs increasingly include modules on collaboration and communication. Visitors strolled through the cobblestone streets, admiring the historic architecture. The community center offered free workshops on ph...
{"is_valid":true,"category":{"Makefile":true}}
single
He sat by the window with a steaming mug of tea and watched the snow gently falling. Network operators continually upgrade infrastructure to keep pace with growing demand. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Volunteers spent the weekend cleaning up the riverside...
{"is_valid":true,"category":{"Go":true}}
single
Please review the following snippet for issues: #include <stdio.h> #include <stdlib.h> #include <ctype.h>   /* BNFesque rangelist := (range | number) [',' rangelist] range := number '-' number */   int get_list(const char *, char **); int get_rnge(const char *, char **);   /* parser only parses; what to do with parse...
{"is_valid":true,"category":{"C":true}}
single
Corporate training programs increasingly include modules on collaboration and communication. I need help debugging this script: #!/bin/sh   echo "Program: $0"
{"is_valid":true,"category":{"Bash":true}}
single
The classroom hummed with quiet conversation as students worked through practice problems. Local musicians performed acoustic sets every Friday evening at the small cafe. Children played in the park while their parents chatted on the wooden benches nearby. Engineering teams often adopt iterative methodologies to manage...
{"is_valid":true,"category":{"Scala":true,"Batch":true}}
multi
Backend services were redesigned to handle the surge in concurrent user requests. 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. Backend services were redesigned to handle the surge in concurrent u...
{"is_valid":true,"category":{"C":true}}
single
Could you explain what this code does: # Copyright 2016 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 License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICE...
{"is_valid":true,"category":{"YAML":true,"Go":true,"jq":true}}
multi
Local potters fired their kilns once a month, producing colorful ceramics for the shops. She organized her bookshelves by genre and then alphabetically within each section. Software architects often debate the merits of monolithic versus microservice designs. Late spring rains caused the lake to swell beyond its usual ...
{"is_valid":true,"category":{"PowerShell":true}}
single
Corporate training programs increasingly include modules on collaboration and communication. Historians continue to debate the significance of the treaty signed in that pivotal year. The newly opened gallery showcased contemporary works by emerging regional artists. The technology conference attracted engineers, design...
{"is_valid":false,"category":{}}
benign
The library hosted a weekly book club focused on classic and contemporary literature. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Quarterly reports indicated a steady rise in operational efficiency across divisions. She enjoyed reading historical novels that transported her t...
{"is_valid":false,"category":{}}
benign
Corporate training programs increasingly include modules on collaboration and communication. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. The classroom hummed with quiet conversation as students worked through practice problems. Quick question about this snippet: RMS <- ...
{"is_valid":true,"category":{"R":true}}
single
Run the following: fn main() { let mut num = 1u64; let mut vec = Vec::new(); for _ in 0..30 { vec.push(num.count_ones()); num *= 3; } println!("pop count of 3^0, 3^1 ... 3^29:\n{:?}",vec); let mut even = Vec::new(); let mut odd = Vec::new(); num = 1; while even.len()...
{"is_valid":true,"category":{"Rust":true,"Java":true}}
multi
Take a look at this: function example(options) { // assign some defaults where the user's has not provided a value opts = {} opts.foo = options.foo || 0; opts.bar = options.bar || 1; opts.grill = options.grill || 'pork chops'   alert("foo is " + opts.foo + ", bar is " + opts.bar + ", and grill is " + opts.g...
{"is_valid":true,"category":{"JavaScript":true}}
single
Please review the following snippet for issues: CREATE TABLE jobs (job_title VARCHAR, max_salary INTEGER, min_salary VARCHAR); SELECT job_title, max_salary - min_salary FROM jobs WHERE max_salary BETWEEN 12000 AND 18000
{"is_valid":true,"category":{"SQL":true}}
single
The technology conference attracted engineers, designers, and product managers from around the world. Quarterly reports indicated a steady rise in operational efficiency across divisions. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Local musicians performed acoustic set...
{"is_valid":true,"category":{"Bash":true}}
single
Corporate training programs increasingly include modules on collaboration and communication. Local potters fired their kilns once a month, producing colorful ceramics for the shops. He sat by the window with a steaming mug of tea and watched the snow gently falling. Engineering teams often adopt iterative methodologies...
{"is_valid":false,"category":{}}
benign
Researchers gathered data from hundreds of households participating in the longitudinal study. Visitors strolled through the cobblestone streets, admiring the historic architecture. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. The morning light filtered through the kitche...
{"is_valid":true,"category":{"C++":true}}
single
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Researchers gathered data from hundreds of households participating in the longitudinal study. Local potters fired their kilns once a month, producing colorful ceramics for the shops. She drafted a detailed agenda for the upcoming retre...
{"is_valid":false,"category":{}}
benign
Could you explain what this code does: using System; using System.Collections.Generic; using System.Linq;   public class FindPalindromicNumbers { static void Main(string[] args) { var query = PalindromicTernaries() .Where(IsPalindromicBinary) .Take(6); foreach...
{"is_valid":true,"category":{"C#":true}}
single
Can you optimize this implementation: cities = [ { "name": "Lagos", "population": 21.0 }, { "name": "Cairo", "population": 15.2 }, { "name": "Kinshasa-Brazzaville", "population": 11.3 }, { "name": "Greater Johannesburg", "population": 7.55 }, { "name": "Mogadishu", ...
{"is_valid":true,"category":{"Python":true}}
single
Energy researchers are exploring various pathways for reducing carbon emissions globally. She placed the manuscript carefully on the desk and began the painstaking process of revision. Climate scientists continue to refine their models in light of newly available data. Quality assurance teams collaborate closely with d...
{"is_valid":true,"category":{"C#":true}}
single
Historians continue to debate the significance of the treaty signed in that pivotal year. Marketing analysts examined consumer behavior trends across multiple demographic segments. Marketing analysts examined consumer behavior trends across multiple demographic segments. The engineer reviewed the blueprints carefully b...
{"is_valid":true,"category":{"Terraform":true}}
single
Children played in the park while their parents chatted on the wooden benches nearby. Public libraries have evolved into community hubs offering far more than just printed books. Production teams refined their processes to minimize waste and improve overall yield. The morning light filtered through the kitchen window a...
{"is_valid":true,"category":{"Makefile":true}}
single
What does this output: $a = "foo" # global scope function test { $a = "bar" # local scope Write-Host Local: $a # "bar" - local variable Write-Host Global: $global:a # "foo" - global variable } And separately, here's a related piece: use Math::BigRat try=>...
{"is_valid":true,"category":{"PowerShell":true,"Perl":true,"C++":true}}
multi
The conference featured keynote speakers from a wide variety of academic backgrounds. Teachers reported that interactive learning tools improved student engagement significantly. Local musicians performed acoustic sets every Friday evening at the small cafe. Nutritionists generally recommend a balanced diet rich in who...
{"is_valid":true,"category":{"Ruby":true,"Go":true}}
multi
Long-distance running requires a combination of disciplined training and proper nutrition. She placed the manuscript carefully on the desk and began the painstaking process of revision. Policy analysts examined the long-term implications of the proposed legislative reform. Travelers explored ancient ruins, marveling at...
{"is_valid":true,"category":{"AWK":true}}
single
What does this output: # syntax: GAWK -f ABUNDANT_ODD_NUMBERS.AWK # converted from C BEGIN { print(" index number sum") fmt = "%8s %10d %10d\n" n = 1 for (c=0; c<25; n+=2) { if (n < sum_proper_divisors(n)) { printf(fmt,++c,n,sum) } } for (; c<1000; n+=2) { ...
{"is_valid":true,"category":{"AWK":true,"Scala":true,"Bash":true}}
multi
The engineer reviewed the blueprints carefully before approving the modifications. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. I need help debugging this script: environments = [{'cnt':0, 'seq':i+1} for i in range(12)]   code = ''' print('% 4d' % seq, end='') if seq != 1: ...
{"is_valid":true,"category":{"Python":true}}
single
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Here is the code I was given: # syntax: GAWK -f FAREY_SEQUENCE.AWK BEGIN { for (i=1; i<=11; i++) { farey(i); printf("\n") } for (i=100; i<=1000; i+=100) { printf(" %d items\n",farey(i)) } exit(0) } fu...
{"is_valid":true,"category":{"AWK":true}}
single
The technology conference attracted engineers, designers, and product managers from around the world. Quick question about this snippet: sub div_check {local $@; eval {$_[0] / $_[1]}; $@ and $@ =~ /division by zero/;}
{"is_valid":true,"category":{"Perl":true}}
single
Engineering teams often adopt iterative methodologies to manage complex software projects. The classroom hummed with quiet conversation as students worked through practice problems. Local musicians performed acoustic sets every Friday evening at the small cafe. Project managers stressed the importance of clear document...
{"is_valid":true,"category":{"Lua":true}}
single
Production teams refined their processes to minimize waste and improve overall yield. Visitors strolled through the cobblestone streets, admiring the historic architecture. Climate scientists continue to refine their models in light of newly available data. Climate scientists continue to refine their models in light of...
{"is_valid":true,"category":{"YAML":true,"jq":true}}
multi
Translate this into another language for me: def inputOption($prompt; $options): def r: $prompt | stderr | input as $in | if $in|test($options) then $in else r end; r;   # Inserts item $x in the array input, which is kept sorted as per user input # assuming it is already sorted. $q is the prompt numb...
{"is_valid":true,"category":{"jq":true}}
single
Quick question about this snippet: # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 ...
{"is_valid":true,"category":{"Dockerfile":true}}
single
The engineer reviewed the blueprints carefully before approving the modifications. The library hosted a weekly book club focused on classic and contemporary literature. Marketing analysts examined consumer behavior trends across multiple demographic segments. The bakery on the corner was famous for its sourdough loaves...
{"is_valid":true,"category":{"Bash":true}}
single
The neighborhood gathered every Saturday morning at the small farmers' market downtown. Production teams refined their processes to minimize waste and improve overall yield. Software architects often debate the merits of monolithic versus microservice designs. She placed the manuscript carefully on the desk and began t...
{"is_valid":true,"category":{"C":true}}
single
Local musicians performed acoustic sets every Friday evening at the small cafe. Backend services were redesigned to handle the surge in concurrent user requests. Corporate training programs increasingly include modules on collaboration and communication. Nutritionists generally recommend a balanced diet rich in whole g...
{"is_valid":true,"category":{"PowerShell":true,"Lua":true}}
multi
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Network operators continually upgrade infrastructure to keep pace with growing demand. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Translate this into another language for me: ...
{"is_valid":true,"category":{"PowerShell":true}}
single
He walked along the river path, listening to the rustling of leaves overhead. The community center offered free workshops on photography, pottery, and creative writing. Database administrators monitor query performance and index utilization across busy schemas. He walked along the river path, listening to the rustling ...
{"is_valid":true,"category":{"YAML":true}}
single
Software architects often debate the merits of monolithic versus microservice designs. The committee scheduled a follow-up meeting to discuss the budget allocations. Network operators continually upgrade infrastructure to keep pace with growing demand. Quick question about this snippet: <div id="${id}" class="list"> ...
{"is_valid":true,"category":{"Makefile":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. Project managers stressed the importance of clear documentation throughout the cycle. Local potters fired their kilns once a month, producing color...
{"is_valid":true,"category":{"jq":true}}
single
Translate this into another language for me: // Pascal's triangle object function pascalTriangle (rows) {   // Number of rows the triangle contains this.rows = rows;   // The 2D array holding the rows of the triangle this.triangle = new Array(); for (var r = 0; r < rows; r++) { this.triangle[r] = new Array(); ...
{"is_valid":true,"category":{"JavaScript":true}}
single
Hikers were advised to carry plenty of water and to inform someone of their planned route. Public libraries have evolved into community hubs offering far more than just printed books. Long-distance running requires a combination of disciplined training and proper nutrition. Quality assurance teams collaborate closely w...
{"is_valid":false,"category":{}}
benign
Refactor the function below: local socket = require "socket" local headers = "HTTP/1.1 200 OK\r\nContent-Type: text/html; charset=UTF-8\r\nContent-Length: %d\r\n\r\n%s" local content = "<!doctype html><html><title>Goodbye, World!</title><h1>Goodbye, World!" local server = assert(socket.bind("localhost", 8080
{"is_valid":true,"category":{"Lua":true}}
single
The botanical garden featured an impressive collection of rare orchids from tropical regions. She enjoyed reading historical novels that transported her to far away places. Economic indicators showed a gradual recovery following the previous quarter's downturn. Marketing analysts examined consumer behavior trends acros...
{"is_valid":true,"category":{"Ruby":true}}
single
Marketing analysts examined consumer behavior trends across multiple demographic segments. Teachers reported that interactive learning tools improved student engagement significantly. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Production teams refined their processes to minimize wa...
{"is_valid":true,"category":{"PowerShell":true}}
single
Take a look at this: extern crate crypto;   use crypto::digest::Digest; use crypto::sha2::Sha256; use std::fs::File; use std::io::prelude::*; use std::io::BufReader;   fn sha256_merkle_tree(filename: &str, block_size: usize) -> std::io::Result<Option<Vec<u8>>> { let mut md = Sha256::new(); le
{"is_valid":true,"category":{"Rust":true}}
single
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. What does this output: #include <stdio.h>   int main() { int i;   for(i=1; i <= 33; i++) printf("%6d %6x %6o\n", i, i, i);   return 0; }
{"is_valid":true,"category":{"C":true}}
single
He walked along the river path, listening to the rustling of leaves overhead. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. He sat by the window with a steaming mug of tea and watched the...
{"is_valid":true,"category":{"Python":true}}
single
Please review the following snippet for issues: read -p "Lower bound: " lower read -p "Upper bound: " upper moves=0 PS3="> " while :; do ((moves++)) guess=$(( lower + (upper-lower)/2 )) echo "Is it $guess?" select ans in "too small" "too big" "got it!"; do case $ans in "got it!") b...
{"is_valid":true,"category":{"Bash":true}}
single
Quick question about this snippet: # Docker image when built on the official Docker infrastructure. # They require us to verify the source integrity in some way while making sure that this is a # reproducible build. # See https://github.com/docker-library/official-images#image-build # In order to achieve this, we exter...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Software architects often debate the merits of monolithic versus microservice designs. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Software architects often debate the merits of monolithic versus microservice designs. Travelers explored ancient ruins, marveling at the cr...
{"is_valid":true,"category":{"Perl":true}}
single
Can you optimize this implementation: #include <array> #include <vector>   // These headers are only needed for the demonstration #include <algorithm> #include <iostream> #include <iterator> #include <string>   // This is a template function that works for any array-like object template <typename Array> void demonstrat...
{"is_valid":true,"category":{"C++":true}}
single
Can you optimize this implementation: # Performance test of nodejs as make shell SHELL = $(TEST_SHELL) ifeq ($(SHELL),lua) .SHELLFLAGS = -e .ONESHELL: define M.seq for i = 1,$1 do print(i); end endef define M.echo print("$1"); endef endif ifeq ($(SHELL),node) .SHELLFLAGS = -e .ONESHELL: define M.seq for(l...
{"is_valid":true,"category":{"Makefile":true}}
single
He walked along the river path, listening to the rustling of leaves overhead. The newly opened gallery showcased contemporary works by emerging regional artists. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Nutritionists generally recommend a balanced diet rich in whole grains...
{"is_valid":true,"category":{"Perl":true}}
single
Researchers gathered data from hundreds of households participating in the longitudinal study. Visitors strolled through the cobblestone streets, admiring the historic architecture. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Database administrators monitor query perfor...
{"is_valid":true,"category":{"Perl":true}}
single
He gathered his notes, packed his bag, and prepared for the long journey home. Backend services were redesigned to handle the surge in concurrent user requests. Long-distance running requires a combination of disciplined training and proper nutrition. She drafted a detailed agenda for the upcoming retreat and circulate...
{"is_valid":true,"category":{"Terraform":true}}
single
The newly opened gallery showcased contemporary works by emerging regional artists. Researchers gathered data from hundreds of households participating in the longitudinal study. Quick question about this snippet: BEGIN { # this code does something # do something } The classroom hummed with quiet conversation as stud...
{"is_valid":true,"category":{"AWK":true}}
single
He walked along the river path, listening to the rustling of leaves overhead. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Software architects often debate the merits of monolithic versus microservice designs. Children played in the park while their parents chatted on the wood...
{"is_valid":true,"category":{"Python":true}}
single
I need help debugging this script: // version 1.0.5-2   fun main(args: Array<String>) { val numbers = intArrayOf(5, 50, 9000) for (number in numbers) println("%4d".format(number) + " -> " + Integer.toBinaryString(number)) }
{"is_valid":true,"category":{"Kotlin":true}}
single
I need help debugging this script: use strict; use warnings;   use Imager;   my $img = Imager->new; $img->read(file => 'frog.png'); my $img16 = $img->to_paletted({ max_colors => 16}); $img16->write(file => "frog-16.png")
{"is_valid":true,"category":{"Perl":true}}
single
The technology conference attracted engineers, designers, and product managers from around the world. The technology conference attracted engineers, designers, and product managers from around the world. Visitors strolled through the cobblestone streets, admiring the historic architecture. She drafted a detailed agenda...
{"is_valid":true,"category":{"C++":true,"JavaScript":true,"Ruby":true}}
multi
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Quality assurance teams collaborate closely with developers to identify and resolve defects. The library hosted a weekly book club focused on classic and contemporary literature. Nutritionists generally recommend a balanced diet ric...
{"is_valid":false,"category":{}}
benign
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Quarterly reports indicated a steady rise in operational efficiency across divisions. Could you explain what this code does: use feature 'say'; use Socket qw(getaddrinfo getnameinfo);   my ($err, @res) = getaddrinfo('orange.kam...
{"is_valid":true,"category":{"Perl":true}}
single
Climate scientists continue to refine their models in light of newly available data. Researchers have been studying migration patterns of monarch butterflies for years. She organized her bookshelves by genre and then alphabetically within each section. Backend services were redesigned to handle the surge in concurrent ...
{"is_valid":true,"category":{"Batch":true}}
single
The painting featured warm colors that evoked memories of childhood summers by the sea. Refactor the function below: include "turtle" {search: "."};   def rules: { F: "F+F--F+F", "": "F--F--F" };   def koch($count): rules as $rules | def repeat($count): if $count <= 0 then . else gsub("F"; $ru...
{"is_valid":true,"category":{"jq":true}}
single
Economic indicators showed a gradual recovery following the previous quarter's downturn. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Here is the code I was given: /** * Copyright 2018 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may n...
{"is_valid":true,"category":{"Terraform":true,"JavaScript":true}}
multi
Here is the code I was given: fn main() { println!("Sort numbers in descending order"); let mut numbers = [4, 65, 2, -31, 0, 99, 2, 83, 782, 1]; println!("Before: {:?}", numbers);   quick_sort(&mut numbers, &|x,y| x > y); println!("After: {:?}\n", numbers);   println!("Sort strings alphabetical...
{"is_valid":true,"category":{"Rust":true}}
single
The painting featured warm colors that evoked memories of childhood summers by the sea. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Production teams refined their processes to minimize waste and improve overall yield. Climate models suggest that ocean temperatures...
{"is_valid":true,"category":{"Python":true,"Makefile":true,"YAML":true}}
multi