prompt
large_stringlengths
150
7.97k
target
large_stringlengths
32
83
kind
large_stringclasses
3 values
Late spring rains caused the lake to swell beyond its usual seasonal boundaries. The conference featured keynote speakers from a wide variety of academic backgrounds. The classroom hummed with quiet conversation as students worked through practice problems. He sat by the window with a steaming mug of tea and watched th...
{"is_valid":true,"category":{"Makefile":true}}
single
Production teams refined their processes to minimize waste and improve overall yield. The newly opened gallery showcased contemporary works by emerging regional artists. He sat by the window with a steaming mug of tea and watched the snow gently falling. The morning light filtered through the kitchen window as the coff...
{"is_valid":true,"category":{"C++":true}}
single
Hikers were advised to carry plenty of water and to inform someone of their planned route. 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. He walked along the river path, listening to the rust...
{"is_valid":true,"category":{"C":true}}
single
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. 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. Energy researchers are exploring various pathways ...
{"is_valid":true,"category":{"R":true}}
single
Can you optimize this implementation: function emit_table { nameref d=$1 typeset -i idx=0 echo "<table>" emit_row th "" "${d[idx++][@]}" for (( ; idx<${#d[@]}; idx++ )); do emit_row td $idx "${d[idx][@]}" done echo "</table>" }   function emit_row { typeset tag=$1; shift type...
{"is_valid":true,"category":{"Bash":true}}
single
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. Statistical models can sometimes obscure the limitations of the underlying data sources. He gathered his notes, packed his bag, and prepared for th...
{"is_valid":true,"category":{"SQL":true,"YAML":true}}
multi
Visitors strolled through the cobblestone streets, admiring the historic architecture. Translate this into another language for me: CREATE TABLE product_suppliers (supplier_id VARCHAR, product_id VARCHAR); CREATE TABLE suppliers (supplier_name VARCHAR, supplier_phone VARCHAR, supplier_id VARCHAR); CREATE TABLE products...
{"is_valid":true,"category":{"SQL":true}}
single
The neighborhood gathered every Saturday morning at the small farmers' market downtown. Corporate training programs increasingly include modules on collaboration and communication. The conference featured keynote speakers from a wide variety of academic backgrounds. Visitors strolled through the cobblestone streets, ad...
{"is_valid":true,"category":{"Perl":true}}
single
I need help debugging this script: function Get-NumberName { <# .SYNOPSIS Spells out a number in English. .DESCRIPTION Spells out a number in English in the range of 0 to 999,999,999. .NOTES The code for this function was copied (almost word for word) from the C# example on...
{"is_valid":true,"category":{"PowerShell":true}}
single
Take a look at this: import java.awt._ import java.awt.event.ActionEvent   import javax.swing._   object PolySpiral extends App {   SwingUtilities.invokeLater(() => new JFrame("PolySpiral") {   class PolySpiral extends JPanel { private var inc = 0.0   override def paintComponent(gg: Graphics...
{"is_valid":true,"category":{"Scala":true}}
single
Software architects often debate the merits of monolithic versus microservice designs. 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. Researchers gathered data from hundreds of households participati...
{"is_valid":true,"category":{"Rust":true,"PowerShell":true}}
multi
Here is the code I was given: WIDTH = 81 HEIGHT = 5   lines=[] def cantor(start, len, index): seg = len / 3 if seg == 0: return None for it in xrange(HEIGHT-index): i = index + it for jt in xrange(seg): j = start + seg + jt pos = i * WIDTH + j line...
{"is_valid":true,"category":{"Python":true,"Terraform":true}}
multi
The neighborhood gathered every Saturday morning at the small farmers' market downtown. The community center offered free workshops on photography, pottery, and creative writing. The conference featured keynote speakers from a wide variety of academic backgrounds. Travelers explored ancient ruins, marveling at the craf...
{"is_valid":true,"category":{"C#":true,"jq":true}}
multi
Researchers have been studying migration patterns of monarch butterflies for years. Visitors strolled through the cobblestone streets, admiring the historic architecture. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. The conference featured keynote speakers from a wide variet...
{"is_valid":true,"category":{"Scala":true,"Terraform":true}}
multi
Public libraries have evolved into community hubs offering far more than just printed books. Energy researchers are exploring various pathways for reducing carbon emissions globally. Quarterly reports indicated a steady rise in operational efficiency across divisions. Researchers have been studying migration patterns o...
{"is_valid":true,"category":{"Python":true}}
single
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. Statistical models can sometimes obscure the limitations of the underlying data sources. The conference featured keynote speakers from a wide ...
{"is_valid":true,"category":{"Swift":true}}
single
The committee scheduled a follow-up meeting to discuss the budget allocations. Add comments to make this clearer: #lang racket render-game-state send-message-to-client traverse-forest
{"is_valid":true,"category":{"PowerShell":true}}
single
Here is the code I was given: # # Copyright (C) 2007 The Android Open Source Project # # 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":{"Makefile":true}}
single
Late spring rains caused the lake to swell beyond its usual seasonal boundaries. The committee scheduled a follow-up meeting to discuss the budget allocations. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Backend services were redesigned to handle the surge in concurrent...
{"is_valid":true,"category":{"Ruby":true}}
single
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Climate scientists continue to refine their models in light of newly available data. Researchers have been studying migration patterns of monarch butterflies for years. The library hosted a weekly book club focused on classic a...
{"is_valid":true,"category":{"PowerShell":true,"Makefile":true}}
multi
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Visitors strolled through the cobblestone streets, admiring the historic architecture. Historians continue to debate the significance of the treaty signed in that pivotal year. Corporate training programs increasingly include module...
{"is_valid":true,"category":{"Go":true,"Ruby":true}}
multi
Statistical models can sometimes obscure the limitations of the underlying data sources. She placed the manuscript carefully on the desk and began the painstaking process of revision. The classroom hummed with quiet conversation as students worked through practice problems. The committee scheduled a follow-up meeting t...
{"is_valid":false,"category":{}}
benign
Distributed systems demand careful attention to consistency, availability, and partition tolerance. Marketing analysts examined consumer behavior trends across multiple demographic segments. The neighborhood gathered every Saturday morning at the small farmers' market downtown. The garden looked particularly vibrant af...
{"is_valid":true,"category":{"Terraform":true}}
single
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. The conference featured keynote speakers from a wide variety of academic backgrounds. Policy analysts examined the long-term implications of the proposed legislative reform. Quarterly reports indicated a steady rise in operatio...
{"is_valid":true,"category":{"Ruby":true}}
single
What does this output: import Foundation   typealias TwoIntsOneInt = @convention(c) (Int, Int) -> Int   let code = [ 144, // Align 144, 106, 12, // Prepare stack 184, 7, 0, 0, 0, 72, 193, 224, 32, 80, 139, 68, 36, 4, 3, 68, 36, 8, // Rosetta task code 76, 137, 227, // Get result 137, 195, 72, 193, 2...
{"is_valid":true,"category":{"Swift":true}}
single
She enjoyed reading historical novels that transported her to far away places. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Historians continue to debate the significance of the treaty signed in ...
{"is_valid":false,"category":{}}
benign
Public libraries have evolved into community hubs offering far more than just printed books. She organized her bookshelves by genre and then alphabetically within each section. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Late spring rains caused the lake to swell beyond...
{"is_valid":false,"category":{}}
benign
Engineering teams often adopt iterative methodologies to manage complex software projects. Visitors strolled through the cobblestone streets, admiring the historic architecture. Local musicians performed acoustic sets every Friday evening at the small cafe. He adjusted the telescope and waited patiently for the clouds ...
{"is_valid":true,"category":{"Swift":true}}
single
Here is the code I was given: variable name { default = "mantl" } variable subnet_cidr {} variable ip_version { default = "4" } variable external_net_uuid {} variable admin_state_up { default = "true" } resource "openstack_networking_network_v2" "network" { name = "${var.name}-network" admin_state_up = "${var.adm...
{"is_valid":true,"category":{"Terraform":true,"Batch":true}}
multi
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. She enjoyed reading historical novels that transported her to far away places. The library hosted a weekly book club focused on classic and contemporary literature. Local potters fired their kilns once a month, producing color...
{"is_valid":false,"category":{}}
benign
Energy researchers are exploring various pathways for reducing carbon emissions globally. Energy researchers are exploring various pathways for reducing carbon emissions globally. Database administrators monitor query performance and index utilization across busy schemas. Travelers explored ancient ruins, marveling at ...
{"is_valid":true,"category":{"SQL":true}}
single
Long-distance running requires a combination of disciplined training and proper nutrition. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Here is the code I was given: resource "digitalocean_domain" "domain" { name = "unguiculus.io" ip_address = "${digitalocean_droplet.jenk...
{"is_valid":true,"category":{"Terraform":true}}
single
What does this output: import java.awt.*; import java.awt.event.*; import java.awt.image.*; import static java.awt.image.BufferedImage.*; import static java.lang.Math.*; import javax.swing.*;   public class PlasmaEffect extends JPanel { float[][] plasma; float hueShift = 0; BufferedImage img;   public P...
{"is_valid":true,"category":{"Java":true}}
single
I need help debugging this script: # Emit . and stop as soon as "condition" is true. def until(condition; next): def u: if condition then . else (next|u) end; u;   def url_decode: # The helper function converts the input string written in the given # "base" to an integer def to_i(base): explode |
{"is_valid":true,"category":{"jq":true}}
single
Quick question about this snippet: using System; using System.Collections.Generic; using System.Linq; using System.Text;   namespace Zeckendorf { class Program { private static uint Fibonacci(uint n) { if (n < 2) { return n; } else ...
{"is_valid":true,"category":{"C#":true}}
single
Climate models suggest that ocean temperatures will continue to rise over the coming decades. Could you explain what this code does: alert( "Hello,How,Are,You,Today".split(",").join(".") );
{"is_valid":true,"category":{"JavaScript":true}}
single
Quality assurance teams collaborate closely with developers to identify and resolve defects. Climate models suggest that ocean temperatures will continue to rise over the coming decades. What does this output: # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See th...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Add comments to make this clearer: $string = 'alphaBETA' $lower = $string.ToLower() $upper = $string.ToUpper() $title = (Get-Culture).TextInfo.ToTitleCase($string)   $lower, $upper, $title
{"is_valid":true,"category":{"PowerShell":true}}
single
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. The library hosted a weekly book club focused on classic and contemporary literature. He sat by the window with a steaming mug of tea...
{"is_valid":false,"category":{}}
benign
Long-distance running requires a combination of disciplined training and proper nutrition. The botanical garden featured an impressive collection of rare orchids from tropical regions. Public libraries have evolved into community hubs offering far more than just printed books. The technology conference attracted engine...
{"is_valid":true,"category":{"Go":true}}
single
Database administrators monitor query performance and index utilization across busy schemas. Hikers were advised to carry plenty of water and to inform someone of their planned route. Find any security problems in: # VARIABLES # # Define the path to the executable to list installed package dependencies: LIST_INSTALLED...
{"is_valid":true,"category":{"Makefile":true}}
single
Database administrators monitor query performance and index utilization across busy schemas. She enjoyed reading historical novels that transported her to far away places. Please review the following snippet for issues: public class RN {   enum Numeral { I(1), IV(4), V(5), IX(9), X(10), XL(40), L(50), XC(90...
{"is_valid":true,"category":{"Java":true}}
single
The technology conference attracted engineers, designers, and product managers from around the world. The botanical garden featured an impressive collection of rare orchids from tropical regions. Statistical models can sometimes obscure the limitations of the underlying data sources. Policy analysts examined the long-t...
{"is_valid":true,"category":{"Rust":true}}
single
The painting featured warm colors that evoked memories of childhood summers by the sea. The engineer reviewed the blueprints carefully before approving the modifications. Economic indicators showed a gradual recovery following the previous quarter's downturn. Engineering teams often adopt iterative methodologies to man...
{"is_valid":true,"category":{"Java":true}}
single
I copied this from the docs: def ipart(n); n.truncate; end def fpart(n); n - ipart(n); end def rfpart(n); 1.0 - fpart(n); end   class Pixmap def draw_line_antialised(p1, p2, colour) x1, y1 = p1.x, p1.y x2, y2 = p2.x, p2.y   steep = (y2 - y1).abs > (x2 - x1).abs if steep x1, y1 = y1, x1 x2,...
{"is_valid":true,"category":{"Ruby":true}}
single
Policy analysts examined the long-term implications of the proposed legislative reform. Here is the code I was given: serde = { version = "1.0.89", features = ["derive"] } bincode = "1.1.2"
{"is_valid":true,"category":{"Rust":true}}
single
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. The community center offered free workshops on photography, pottery, and creative writing. Database administrators monitor query perfo...
{"is_valid":true,"category":{"Java":true}}
single
Here is the code I was given: def lpad($len): tostring | ($len - length) as $l | (" " * $l)[:$l] + .;   # Input: {computed} (the cache) # Output: {computed, result} def stirling2($n; $k): "\($n),\($k)" as $key | if .computed[$key] then .result = .computed[$key] elif ($n == 0 and $k == 0) then .result
{"is_valid":true,"category":{"jq":true}}
single
Translate this into another language for me: ::assocarrays.cmd @echo off setlocal ENABLEDELAYEDEXPANSION set array.dog=1 set array.cat=2 set array.wolf=3 set array.cow=4 for %%i in (dog cat wolf cow) do call :showit array.%%i !array.%%i! set c=-27 call :mkarray sicko flu 5 measles 6 mumps 7 bromodrosis 8 for %%i in (fl...
{"is_valid":true,"category":{"Batch":true}}
single
Engineering teams often adopt iterative methodologies to manage complex software projects. Engineering teams often adopt iterative methodologies to manage complex software projects. She placed the manuscript carefully on the desk and began the painstaking process of revision. Local potters fired their kilns once a mont...
{"is_valid":true,"category":{"Perl":true}}
single
The engineer reviewed the blueprints carefully before approving the modifications. Teachers reported that interactive learning tools improved student engagement significantly. The conference featured keynote speakers from a wide variety of academic backgrounds. Long-distance running requires a combination of discipline...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Late spring rains caused the lake to swell beyond its usual seasonal boundaries. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Modern microprocessors rely on pipelining and out-of-o...
{"is_valid":true,"category":{"Go":true,"JavaScript":true}}
multi
Hikers were advised to carry plenty of water and to inform someone of their planned route. Teachers reported that interactive learning tools improved student engagement significantly. Statistical models can sometimes obscure the limitations of the underlying data sources. Marketing analysts examined consumer behavior t...
{"is_valid":true,"category":{"Makefile":true,"C#":true}}
multi
Run the following: #include <stdio.h> #include <stdlib.h> #include <string.h>   int width = 80, year = 1969; int cols, lead, gap;   const char *wdays[] = { "Su", "Mo", "Tu", "We", "Th", "Fr", "Sa" }; struct months { const char *name; int days, start_wday, at; } months[12] = { { "January", 31, 0,
{"is_valid":true,"category":{"C":true}}
single
Project managers stressed the importance of clear documentation throughout the cycle. Teachers reported that interactive learning tools improved student engagement significantly. Network operators continually upgrade infrastructure to keep pace with growing demand. Network operators continually upgrade infrastructure t...
{"is_valid":true,"category":{"Terraform":true,"C++":true}}
multi
Hikers were advised to carry plenty of water and to inform someone of their planned route. Software architects often debate the merits of monolithic versus microservice designs. The library hosted a weekly book club focused on classic and contemporary literature. The library hosted a weekly book club focused on classic...
{"is_valid":true,"category":{"Python":true}}
single
The library hosted a weekly book club focused on classic and contemporary literature. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Hikers were advised to carry plenty of water and to inform someone of their planned route. Can you optimize this implementation: stoogesort =...
{"is_valid":true,"category":{"R":true,"Go":true}}
multi
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. The garden looked particularly vibrant after the recent rain. Corporate training programs increasingly include modules on collaboration and commu...
{"is_valid":true,"category":{"Lua":true}}
single
Local musicians performed acoustic sets every Friday evening at the small cafe. Climate scientists continue to refine their models in light of newly available data. Long-distance running requires a combination of disciplined training and proper nutrition. Astronomers observed a faint signal that appeared to originate f...
{"is_valid":true,"category":{"YAML":true}}
single
Could you explain what this code does: using System; using System.Collections.Generic; using System.Linq;   public class Interval { public Interval(double leftEndpoint, double size) { LeftEndpoint = leftEndpoint; RightEndpoint = leftEndpoint + size; }   public double LeftEndpoint { ...
{"is_valid":true,"category":{"C#":true,"Java":true,"Kotlin":true}}
multi
Children played in the park while their parents chatted on the wooden benches nearby. What does this output: fn is_prime(n: i32) -> bool { for i in 2..n { if i * i > n { return true; } if n % i == 0 { return false; } } n > 1 }   fn is_safe_prime(n: i32) -> bool { is_prime(n) && is_prime((n - 1) / 2) }...
{"is_valid":true,"category":{"Rust":true}}
single
The engineer reviewed the blueprints carefully before approving the modifications. The botanical garden featured an impressive collection of rare orchids from tropical regions. Researchers gathered data from hundreds of households participating in the longitudinal study. Please review the following snippet for issues: ...
{"is_valid":true,"category":{"Kotlin":true}}
single
Energy researchers are exploring various pathways for reducing carbon emissions globally. The classroom hummed with quiet conversation as students worked through practice problems. He walked along the river path, listening to the rustling of leaves overhead. The technology conference attracted engineers, designers, and...
{"is_valid":false,"category":{}}
benign
The technology conference attracted engineers, designers, and product managers from around the world. Astronomers observed a faint signal that appeared to originate from a distant galaxy. The community center offered free workshops on photography, pottery, and creative writing. Historians continue to debate the signifi...
{"is_valid":true,"category":{"C#":true}}
single
The garden looked particularly vibrant after the recent rain. 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. Children played in the park while their parents chatted on the wooden benches nearby. P...
{"is_valid":true,"category":{"YAML":true}}
single
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Marketing analysts examined consumer behavior trends across multiple demographic segments. Local musicians performed acoustic sets e...
{"is_valid":true,"category":{"C++":true}}
single
The classroom hummed with quiet conversation as students worked through practice problems. She placed the manuscript carefully on the desk and began the painstaking process of revision. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Modern microprocessors rely on pipelining and out-of-...
{"is_valid":true,"category":{"C":true}}
single
The garden looked particularly vibrant after the recent rain. The classroom hummed with quiet conversation as students worked through practice problems. Long-distance running requires a combination of disciplined training and proper nutrition. He walked along the river path, listening to the rustling of leaves overhead...
{"is_valid":true,"category":{"YAML":true,"Terraform":true}}
multi
Economic indicators showed a gradual recovery following the previous quarter's downturn. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. She enjoyed reading historical novels that transpor...
{"is_valid":true,"category":{"Lua":true}}
single
Climate models suggest that ocean temperatures will continue to rise over the coming decades. Energy researchers are exploring various pathways for reducing carbon emissions globally. The morning light filtered through the kitchen window as the coffee brewed. Corporate training programs increasingly include modules on ...
{"is_valid":true,"category":{"Java":true}}
single
Hikers were advised to carry plenty of water and to inform someone of their planned route. The neighborhood gathered every Saturday morning at the small farmers' market downtown. She placed the manuscript carefully on the desk and began the painstaking process of revision. The classroom hummed with quiet conversation a...
{"is_valid":true,"category":{"Go":true}}
single
I need help debugging this script: ARG BASE_IMAGE="ubuntu" ARG TAG="22.04" FROM ${BASE_IMAGE}:${TAG} WORKDIR /ardupilot ARG DEBIAN_FRONTEND=noninteractive ARG USER_NAME=ardupilot ARG USER_UID=1000 ARG USER_GID=1000 ARG SKIP_AP_EXT_ENV=0 ARG SKIP_AP_GRAPHIC_ENV=1 ARG SKIP_AP_COV_ENV=1 ARG SKIP_AP_GIT_CHECK=1 ARG DO_AP_...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Here is the code I was given: import java.io.*; import java.util.*;   public class JaroWinkler { public static void main(String[] args) { try { List<String> words = loadDictionary("linuxwords.txt"); String[] strings = { "accomodate", "definately", "goverment", "occure...
{"is_valid":true,"category":{"Java":true}}
single
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. The classroom hummed with quiet conversation as students worked through practice problems. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. He gathered his notes, packed his bag, and ...
{"is_valid":true,"category":{"Go":true}}
single
The committee scheduled a follow-up meeting to discuss the budget allocations. Hikers were advised to carry plenty of water and to inform someone of their planned route. Refactor the function below: @echo off set /p var= echo %var% 75000 The library hosted a weekly book club focused on classic and contemporary literatu...
{"is_valid":true,"category":{"Batch":true}}
single
The morning light filtered through the kitchen window as the coffee brewed. Climate scientists continue to refine their models in light of newly available data. Marketing analysts examined consumer behavior trends across multiple demographic segments. She drafted a detailed agenda for the upcoming retreat and circulate...
{"is_valid":true,"category":{"AWK":true}}
single
I copied this from the docs: using System; using System.Collections.Generic; using System.Linq;   public class Program { class Employee { public Employee(string name, string id, int salary, string department) { Name = name; Id = id; Salary = salary; ...
{"is_valid":true,"category":{"C#":true,"Kotlin":true,"Rust":true}}
multi
Find any security problems in: package permute   // Iter takes a slice p and returns an iterator function. The iterator // permutes p in place and returns the sign. After all permutations have // been generated, the iterator returns 0 and p is left in its initial order. func Iter(p []int) func() int { f := pf(len...
{"is_valid":true,"category":{"Go":true}}
single
The morning light filtered through the kitchen window as the coffee brewed. Climate scientists continue to refine their models in light of newly available data. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Teachers reported that interactive learning tools improved student...
{"is_valid":true,"category":{"SQL":true}}
single
What does this output: use std::f64::consts::PI;   #[derive(Debug, PartialEq, Eq)] struct Time { h: u8, m: u8, s: u8, }   impl Time { /// Create a Time from equivalent radian measure fn from_radians(mut rads: f64) -> Time { rads %= 2.0 * PI; if rads < 0.0 { rads += 2.0 * ...
{"is_valid":true,"category":{"Rust":true}}
single
Quarterly reports indicated a steady rise in operational efficiency across divisions. Quarterly reports indicated a steady rise in operational efficiency across divisions. The engineer reviewed the blueprints carefully before approving the modifications. Travelers explored ancient ruins, marveling at the craftsmanship ...
{"is_valid":true,"category":{"Swift":true}}
single
The engineer reviewed the blueprints carefully before approving the modifications. I need help debugging this script: # If your jq includes all/2 then comment out the following definition, # which is slightly less efficient: def all(generator; condition): reduce generator as $i (true; if . then $i | condition else ....
{"is_valid":true,"category":{"jq":true}}
single
Find any security problems in: // 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(); for (var i = 0...
{"is_valid":true,"category":{"JavaScript":true,"C++":true,"YAML":true}}
multi
Take a look at this: extern crate rand; // 0.5.5 use rand::Rng; use std::iter::repeat;   #[derive(Debug, Eq, PartialEq, Clone)] enum Colour { Black, Red, } use Colour::*;   fn main() { let mut rng = rand::thread_rng();   //Create our deck. let mut deck: Vec<_> = repeat(Black).take(26) .chain...
{"is_valid":true,"category":{"Rust":true}}
single
What does this output: sub zodiac { my $year = shift; my @animals = qw/Rat Ox Tiger Rabbit Dragon Snake Horse Goat Monkey Rooster Dog Pig/; my @elements = qw/Wood Fire Earth Metal Water/; my @terrestrial_han = qw/子 丑 寅 卯 辰 巳 午 未 申 酉 戌 亥/; my @terrestrial_pinyin = qw/zĭ chŏu yín măo chén sì wŭ
{"is_valid":true,"category":{"Perl":true}}
single
Database administrators monitor query performance and index utilization across busy schemas. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Researchers gathered data from hundreds of households participating in the longitudinal study. Local musicians performed acoustic set...
{"is_valid":true,"category":{"Perl":true}}
single
The newly opened gallery showcased contemporary works by emerging regional artists. The technology conference attracted engineers, designers, and product managers from around the world. Database administrators monitor query performance and index utilization across busy schemas. Economic indicators showed a gradual reco...
{"is_valid":true,"category":{"PowerShell":true}}
single
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. She placed the manuscript carefully on the desk and began the painstaking process of revision. The botanical garden featured an impressive collection o...
{"is_valid":true,"category":{"AWK":true}}
single
The library hosted a weekly book club focused on classic and contemporary literature. Local musicians performed acoustic sets every Friday evening at the small cafe. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. The newly opened gallery showcased contemporary works by emerging regiona...
{"is_valid":true,"category":{"jq":true}}
single
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Researchers have been studying migration patterns of monarch butterflies for years. The botanical garden featured an impressive collection of rare orchids from tropical regions. The engineer reviewed the blueprints carefully be...
{"is_valid":true,"category":{"Kotlin":true,"Go":true}}
multi
Children played in the park while their parents chatted on the wooden benches nearby. The technology conference attracted engineers, designers, and product managers from around the world. Production teams refined their processes to minimize waste and improve overall yield. She drafted a detailed agenda for the upcoming...
{"is_valid":true,"category":{"Kotlin":true,"Java":true}}
multi
Refactor the function below: # Create an m x n matrix def matrix(m; n; init): if m == 0 then [] elif m == 1 then [range(0;n) | init] elif m > 0 then matrix(1;n;init) as $row | [range(0;m) | $row ] else error("matrix\(m);_;_) invalid") end;   def set(i;j; value): setpath([i,j]; value);
{"is_valid":true,"category":{"jq":true}}
single
Refactor the function below: function love.load( ) love.math.setRandomSeed( os.time( ) ) --set the random seed keys = { } --an empty table where we will store key presses number_cells = 50 --the number of cells we want in our diagram --draw the voronoi diagram to a canvas voronoiDiagram = generateVorono
{"is_valid":true,"category":{"Lua":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. She organized her bookshelves by genre and then alphabetically within each section. Distributed systems demand careful attention to consistency, ...
{"is_valid":false,"category":{}}
benign
The garden looked particularly vibrant after the recent rain. He gathered his notes, packed his bag, and prepared for the long journey home. She organized her bookshelves by genre and then alphabetically within each section. The morning light filtered through the kitchen window as the coffee brewed. Marketing analysts ...
{"is_valid":true,"category":{"AWK":true}}
single
Refactor the function below: #include <string> #include <algorithm> #include <iostream> #include <set> #include <vector>   auto collectSubStrings( const std::string& s, int maxSubLength ) { int l = s.length(); auto res = std::set<std::string>(); for ( int start = 0; start < l; start++ ) { int m ...
{"is_valid":true,"category":{"C++":true,"C#":true,"Kotlin":true}}
multi
I copied this from the docs: import java.util.Arrays; import java.util.LinkedList; import java.util.List;   public class Fire { private static final char BURNING = 'w'; //w looks like fire, right? private static final char TREE = 'T'; private static final char EMPTY = '.'; private static final double F = 0.2; priv...
{"is_valid":true,"category":{"Java":true}}
single
Policy analysts examined the long-term implications of the proposed legislative reform. Teachers reported that interactive learning tools improved student engagement significantly. 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":{"jq":true}}
single
Take a look at this: #!/usr/bin/env bash   numbers=(627615 39390 588225 393900588225 55) declare root   for number in "${numbers[@]}"; do declare -i iterations root="${number}" while [[ "${#root}" -ne 1 ]]; do root="$(( $(fold -w1 <<<"${root}" | xargs | sed 's/ /+/g') ))"
{"is_valid":true,"category":{"Bash":true}}
single
She enjoyed reading historical novels that transported her to far away places. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Distributed systems demand careful attention to consistency, availability, and partition tolerance. He adjusted the telescope and waited patiently ...
{"is_valid":true,"category":{"PowerShell":true}}
single