prompt large_stringlengths 150 7.97k | target large_stringlengths 32 83 | kind large_stringclasses 3
values |
|---|---|---|
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. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Quality assurance teams collaborate closely with d... | {"is_valid":true,"category":{"jq":true}} | single |
Refactor the function below:
# "first" is the first triple,
# e.g. [1,a,b]; count specifies the number of terms to use.
def continued_fraction( first; next; count ):
# input: [i, a, b]]
def cf:
if .[0] == count then 0
else next as $ab
| .[1] + (.[2] / ($ab | cf))
end ;
first | c | {"is_valid":true,"category":{"jq":true}} | single |
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Policy analysts examined the long-term impl... | {"is_valid":true,"category":{"Java":true}} | single |
Here is the code I was given:
func A(_ k: Int,
_ x1: @escaping () -> Int,
_ x2: @escaping () -> Int,
_ x3: @escaping () -> Int,
_ x4: @escaping () -> Int,
_ x5: @escaping () -> Int) -> Int {
var k1 = k ... | {"is_valid":true,"category":{"Swift":true}} | single |
He sat by the window with a steaming mug of tea and watched the snow gently falling. She enjoyed reading historical novels that transported her to far away places. She organized her bookshelves by genre and then alphabetically within each section. Long-distance running requires a combination of disciplined training and... | {"is_valid":true,"category":{"Scala":true}} | single |
The morning light filtered through the kitchen window as the coffee brewed. Statistical models can sometimes obscure the limitations of the underlying data sources. Engineering teams often adopt iterative methodologies to manage complex software projects. Distributed systems demand careful attention to consistency, ava... | {"is_valid":true,"category":{"Python":true}} | single |
Children played in the park while their parents chatted on the wooden benches nearby. The painting featured warm colors that evoked memories of childhood summers by the sea. Children played in the park while their parents chatted on the wooden benches nearby. Nutritionists generally recommend a balanced diet rich in wh... | {"is_valid":true,"category":{"Ruby":true,"jq":true}} | multi |
Visitors strolled through the cobblestone streets, admiring the historic architecture. He sat by the window with a steaming mug of tea and watched the snow gently falling. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Engineering teams often adopt iterative methodologies ... | {"is_valid":true,"category":{"Scala":true}} | single |
Energy researchers are exploring various pathways for reducing carbon emissions globally. He sat by the window with a steaming mug of tea and watched the snow gently falling. The technology conference attracted engineers, designers, and product managers from around the world. Researchers have been studying migration pa... | {"is_valid":true,"category":{"Swift":true}} | single |
Long-distance running requires a combination of disciplined training and proper nutrition. Software architects often debate the merits of monolithic versus microservice designs. Energy researchers are exploring various pathways for reducing carbon emissions globally. Modern microprocessors rely on pipelining and out-of... | {"is_valid":true,"category":{"C":true}} | single |
I need help debugging this script:
function Update-ConfigurationFile
{
[CmdletBinding()]
Param
(
[Parameter(Mandatory=$false,
Position=0)]
[ValidateScript({Test-Path $_})]
[string]
$Path = ".\config.txt",
[Parameter(Mandatory=$false)]
[str... | {"is_valid":true,"category":{"PowerShell":true,"Java":true}} | multi |
Here is the code I was given:
@set @dummy=0 /*
::Batch File section
@echo off
cscript //e:jscript //nologo "%~f0" "%~1"
exit /b
::*/
//The JScript section
var objVoice = new ActiveXObject("SAPI.SpVoice");
objVoice.speak(WScript.Arguments(0)); | {"is_valid":true,"category":{"Batch":true}} | single |
She organized her bookshelves by genre and then alphabetically within each section. The morning light filtered through the kitchen window as the coffee brewed. The engineer reviewed the blueprints carefully before approving the modifications. Long-distance running requires a combination of disciplined training and prop... | {"is_valid":true,"category":{"PowerShell":true}} | single |
She enjoyed reading historical novels that transported her to far away places. 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 gently falling. I copied this from the docs:
/* Query.scala */
object Query {
def call(data: A... | {"is_valid":true,"category":{"Scala":true}} | single |
Network operators continually upgrade infrastructure to keep pace with growing demand. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. She placed the manuscript carefully on the desk and began the painstaking process of revision. Production teams refined their processes to minimi... | {"is_valid":true,"category":{"Bash":true}} | single |
The community center offered free workshops on photography, pottery, and creative writing. 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. The morning light filtered through the kitchen windo... | {"is_valid":true,"category":{"Perl":true}} | single |
The painting featured warm colors that evoked memories of childhood summers by the sea. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Production teams refined their processes to minimize waste and improve overall yield. Visitors strolled through the cobblestone streets, ad... | {"is_valid":true,"category":{"Swift":true}} | single |
Translate this into another language for me:
var set = new Set();
set.add(0);
set.add(1);
set.add('two');
set.add('three');
set.has(0); //=> true
set.has(3); //=> false
set.has('two'); // true
set.has(Math.sqrt(4)); //=> false
set.has('TWO'.toLowerCase()); //=> true
set.size; //=> 4
set.delete('two');
set.has('... | {"is_valid":true,"category":{"JavaScript":true}} | single |
Quarterly reports indicated a steady rise in operational efficiency across divisions. The morning light filtered through the kitchen window as the coffee brewed. Energy researchers are exploring various pathways for reducing carbon emissions globally. Volunteers spent the weekend cleaning up the riverside trail and pla... | {"is_valid":true,"category":{"YAML":true}} | single |
She enjoyed reading historical novels that transported her to far away places. Find any security problems in:
fn make_bins(limits: &Vec<usize>, data: &Vec<usize>) -> Vec<Vec<usize>> {
let mut bins: Vec<Vec<usize>> = Vec::with_capacity(limits.len() + 1);
for _ in 0..=limits.len() {bins.push(Vec::new());}
l... | {"is_valid":true,"category":{"Rust":true,"Perl":true}} | multi |
The classroom hummed with quiet conversation as students worked through practice problems. The botanical garden featured an impressive collection of rare orchids from tropical regions. Network operators continually upgrade infrastructure to keep pace with growing demand. A gentle breeze drifted across the meadow as the... | {"is_valid":true,"category":{"Swift":true}} | single |
The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Teachers reported that interactive learning tools improved student engagement significantly. Can you optimize this implementation:
const patienceSort = (nums) => {
const piles = []
for (let i = 0; i < nums.length; i++) {
... | {"is_valid":true,"category":{"JavaScript":true}} | single |
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Network operators continually upgrade infrastructure to keep pace with growing demand. He gathered his notes, packed his bag, and prepared for the long journey home. Distributed systems demand careful attention to consistency, availabil... | {"is_valid":false,"category":{}} | benign |
Long-distance running requires a combination of disciplined training and proper nutrition. Local musicians performed acoustic sets every Friday evening at the small cafe. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Astronomers observed a faint signal that appeared to ori... | {"is_valid":true,"category":{"R":true}} | single |
Take a look at this:
// version 1.2.31
const val INDENT = 2
fun String.parseSExpr(): List<String>? {
val r = Regex("""\s*("[^"]*"|\(|\)|"|[^\s()"]+)""")
val t = r.findAll(this).map { it.value }.toMutableList()
if (t.size == 0) return null
var o = false
var c = 0
for (i in t.size - 1 downTo 0... | {"is_valid":true,"category":{"Kotlin":true}} | single |
He walked along the river path, listening to the rustling of leaves overhead. I need help debugging this script:
multiloop <- function(...)
{
# Retrieve inputs and convert to a list of character strings
arguments <- lapply(list(...), as.character)
# Get length of each input
lengths <- sapply(arguments, ... | {"is_valid":true,"category":{"R":true}} | single |
She placed the manuscript carefully on the desk and began the painstaking process of revision. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Production teams refined their processes to minimize waste and improve overall yield. Farmers depend on accurate weather forecasts ... | {"is_valid":true,"category":{"Dockerfile":true}} | single |
Project managers stressed the importance of clear documentation throughout the cycle. Climate scientists continue to refine their models in light of newly available data. What does this output:
abstract class X {
type A
var B: A
val C: A
def D(a: A): A
}
trait Y {
val x: X
} He adjusted the telescope and wa... | {"is_valid":true,"category":{"Scala":true}} | single |
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. She organized her bookshelves by genre and then alphabetically within each section. Production teams refined their processes to minimize waste and improve overall yield. Farmers depend on accurate weather forecasts to plan thei... | {"is_valid":true,"category":{"PowerShell":true}} | single |
Researchers gathered data from hundreds of households participating in the longitudinal study. The painting featured warm colors that evoked memories of childhood summers by the sea. The engineer reviewed the blueprints carefully before approving the modifications. The conference featured keynote speakers from a wide v... | {"is_valid":false,"category":{}} | benign |
Database administrators monitor query performance and index utilization across busy schemas. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Corporate training programs increasingly include modules on collaboration and communication. She organized her bookshelves by genre a... | {"is_valid":true,"category":{"Terraform":true,"Scala":true}} | multi |
The painting featured warm colors that evoked memories of childhood summers by the sea. Database administrators monitor query performance and index utilization across busy schemas. She organized her bookshelves by genre and then alphabetically within each section. Climate scientists continue to refine their models in l... | {"is_valid":true,"category":{"jq":true}} | single |
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Production teams refined their processes to minimize waste and improve overall yield. She organized her bookshelves by genre and then alphabetically within each section. Engineering teams often adopt iterative methodologies to ... | {"is_valid":false,"category":{}} | benign |
Local musicians performed acoustic sets every Friday evening at the small cafe. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. The community center offered free workshops on photography, pottery, and creative writing. Late spring rains caused the lake to swell beyond its u... | {"is_valid":false,"category":{}} | benign |
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. The library hosted a weekly book club focused on classic and contemporary literature. The painting featured warm colors that evoked memories of childhood summers by the sea. Local potters fired their kilns once a month, produci... | {"is_valid":true,"category":{"C#":true}} | single |
Can you optimize this implementation:
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
environment: prod
region: eu-central-1
name: app
namespace: apps
spec:
selector:
matchLabels:
app: app
template:
metadata:
annotations:
prometheus.io/port: "9797"
promethe | {"is_valid":true,"category":{"YAML":true}} | single |
Project managers stressed the importance of clear documentation throughout the cycle. Local potters fired their kilns once a month, producing colorful ceramics for the shops. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. The garden looked particularly vibrant after the recent rain... | {"is_valid":true,"category":{"C":true}} | single |
Researchers have been studying migration patterns of monarch butterflies for years. 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. Children played in the park while their parents ch... | {"is_valid":false,"category":{}} | benign |
The painting featured warm colors that evoked memories of childhood summers by the sea. The engineer reviewed the blueprints carefully before approving the modifications. Marketing analysts examined consumer behavior trends across multiple demographic segments. Economic indicators showed a gradual recovery following th... | {"is_valid":true,"category":{"C++":true,"Scala":true}} | multi |
He sat by the window with a steaming mug of tea and watched the snow gently falling. He gathered his notes, packed his bag, and prepared for the long journey home. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Teachers reported that interactive learning tools improved stud... | {"is_valid":true,"category":{"C++":true}} | single |
Can you optimize this implementation:
# syntax: TAWK -f KEYBOARD_INPUT_KEYPRESS_CHECK.AWK
BEGIN {
arr["\b"] = "BACKSPACE"
arr["\t"] = "TAB"
arr["\x0D"] = "ENTER"
printf("%s Press any key; ESC to exit\n",ctime())
while (1) {
nkeys++
key = getkey()
if (key in arr) { key = arr[key] }... | {"is_valid":true,"category":{"AWK":true}} | single |
Could you explain what this code does:
fn rpn(text: &str) -> f64 {
let tokens = text.split_whitespace();
let mut stack: Vec<f64> = vec![];
println!("input operation stack");
for token in tokens {
print!("{:^5} ", token);
match token.parse() {
Ok(num) => {
st... | {"is_valid":true,"category":{"Rust":true}} | single |
Researchers gathered data from hundreds of households participating in the longitudinal study. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. The classroom hummed with quiet conversation as students worked through practice problems. Network operators continually upgrade inf... | {"is_valid":true,"category":{"Makefile":true}} | single |
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Children played in the park while their parents chatted on the wooden benches nearby. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Energy researchers are exploring various pathways for reducin... | {"is_valid":true,"category":{"PowerShell":true,"Python":true}} | multi |
Database administrators monitor query performance and index utilization across busy schemas. Researchers have been studying migration patterns of monarch butterflies for years. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Astronomers observed a faint signal that appeared to orig... | {"is_valid":true,"category":{"AWK":true}} | single |
Local potters fired their kilns once a month, producing colorful ceramics for the shops. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Energy researchers are exploring various pathways fo... | {"is_valid":true,"category":{"Go":true,"C":true}} | multi |
Distributed systems demand careful attention to consistency, availability, and partition tolerance. Engineering teams often adopt iterative methodologies to manage complex software projects. He walked along the river path, listening to the rustling of leaves overhead. Long-distance running requires a combination of dis... | {"is_valid":true,"category":{"SQL":true}} | single |
Long-distance running requires a combination of disciplined training and proper nutrition. 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 library hosted a weekly book club focused on cla... | {"is_valid":true,"category":{"Rust":true}} | single |
Climate models suggest that ocean temperatures will continue to rise over the coming decades. Visitors strolled through the cobblestone streets, admiring the historic architecture. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Nutritionists generally recommend a balanced ... | {"is_valid":true,"category":{"Perl":true}} | single |
He walked along the river path, listening to the rustling of leaves overhead. Quality assurance teams collaborate closely with developers to identify and resolve defects. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Local potters fired their kilns once a month, producing colorful cer... | {"is_valid":true,"category":{"Bash":true,"Go":true}} | multi |
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Project managers stressed the importance of clear documentation throughout the cycle. He walked along the river path, listening to the rustling of leaves overhead. Economic indicators showed a gradual recovery following the previous qu... | {"is_valid":true,"category":{"Scala":true,"Makefile":true}} | multi |
Corporate training programs increasingly include modules on collaboration and communication. Run the following:
import BigInt
func modPow<T: BinaryInteger>(n: T, e: T, m: T) -> T {
guard e != 0 else {
return 1
}
var res = T(1)
var base = n % m
var exp = e
while true {
if exp & 1 == 1 {
r... | {"is_valid":true,"category":{"Swift":true}} | single |
Public libraries have evolved into community hubs offering far more than just printed books. 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. Corporate training programs increasingly include module... | {"is_valid":true,"category":{"PowerShell":true}} | single |
Could you explain what this code does:
#! /usr/bin/awk -f
BEGIN {
# create the array, using the word as index...
words="Zig Zag Wally Ronald Bush Krusty Charlie Bush Bozo";
split(words, haystack_byorder, " ");
j=0;
for(idx in haystack_byorder) {
haystack[haystack_byorder[idx]] = j;
j++;
}
... | {"is_valid":true,"category":{"AWK":true}} | single |
The committee scheduled a follow-up meeting to discuss the budget allocations. Production teams refined their processes to minimize waste and improve overall yield. Researchers gathered data from hundreds of households participating in the longitudinal study. Historians continue to debate the significance of the treaty... | {"is_valid":true,"category":{"Scala":true}} | single |
Quality assurance teams collaborate closely with developers to identify and resolve defects. Researchers gathered data from hundreds of households participating in the longitudinal study. Astronomers observed a faint signal that appeared to originate from a distant galaxy. The committee scheduled a follow-up meeting to... | {"is_valid":false,"category":{}} | benign |
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. He sat by the window with a steaming mug of tea and watched the snow gently falling. Hikers were advised to carry plenty of water and to inform... | {"is_valid":true,"category":{"Java":true}} | single |
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Astronomers observed a faint signal that appeared to originate from a distant galaxy. The painting featured warm colors that evoked memories of childhood summers by the sea. Climate models suggest that ocean temperatures will c... | {"is_valid":true,"category":{"JavaScript":true}} | single |
Long-distance running requires a combination of disciplined training and proper nutrition. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Production teams refined their processes to minimize waste and improve overall yield. The technology conference attracted engineers, designers,... | {"is_valid":true,"category":{"Lua":true}} | single |
Run the following:
#include <iostream>
#include <functional>
#include <vector>
#include <cstdlib>
#include <ctime>
template <typename T>
std::function<std::vector<T>(T)> s_of_n_creator(int n) {
std::vector<T> sample;
int i = 0;
return [=](T item) mutable {
i++;
if (i <= n) {
sample.push_back(item)... | {"is_valid":true,"category":{"C++":true}} | single |
Energy researchers are exploring various pathways for reducing carbon emissions globally. I need help debugging this script:
#include <stdio.h>
#include <math.h>
#define max(x,y) ((x) > (y) ? (x) : (y))
int tri[] = {
55,
94, 48,
95, 30, 96,
77, 71, 26, 67,
97, 13, 76, 38, 45,
7, 36, 79, 16, 37, 68,
4... | {"is_valid":true,"category":{"C":true}} | single |
Take a look at this:
#include <stdio.h>
#include <stdlib.h>
int dot_product(int *, int *, size_t);
int
main(void)
{
int a[3] = {1, 3, -5};
int b[3] = {4, -2, -1};
printf("%d\n", dot_product(a, b, sizeof(a) / sizeof(a[0])));
return EXIT_SUCCESS;
}
int
dot_product(int *a, int *b,... | {"is_valid":true,"category":{"C":true}} | single |
Translate this into another language for me:
utils/haddock_USES_CABAL = YES
utils/haddock_PACKAGE = haddock
utils/haddock_CONFIGURE_OPTS = --flag in-ghc-tree
# XXX This is a temporary hack:
utils/haddock_HC_OPTS += -Wwarn
utils/haddock_dist_SHELL_WRAPPER = YES
utils/haddock_dist_PROG = haddock
# XXX Is this a hack? Sho... | {"is_valid":true,"category":{"Makefile":true}} | single |
The neighborhood gathered every Saturday morning at the small farmers' market downtown. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. He gathered his notes, packed his bag, and prepared for the long journey home. The engineer reviewed the blueprints carefully before approv... | {"is_valid":false,"category":{}} | benign |
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. Translate this into another language for me:
package rosetta
import scala.annotation.tailrec
object MoveToFront {
/**
* Default ra... | {"is_valid":true,"category":{"Scala":true,"Python":true}} | multi |
Engineering teams often adopt iterative methodologies to manage complex software projects. Take a look at this:
function print_floyd(rows)
local c = 1
local h = rows*(rows-1)/2
for i=1,rows do
local s = ""
for j=1,i do
for k=1, #tostring(h+j)-#tostring(c) do
s = s .. " "
end
if j ~= 1 then s = s .. ... | {"is_valid":true,"category":{"Lua":true}} | single |
Find any security problems in:
precedencegroup ExponentiationPrecedence {
associativity: left
higherThan: MultiplicationPrecedence
}
infix operator ** : ExponentiationPrecedence
@inlinable
public func ** <T: BinaryInteger>(lhs: T, rhs: T) -> T {
guard lhs != 0 else {
return 1
}
var x = lhs | {"is_valid":true,"category":{"Swift":true}} | single |
I need help debugging this script:
import java.io.IOException;
public class Interpreter {
public final static int MEMORY_SIZE = 65536;
private final char[] memory = new char[MEMORY_SIZE];
private int dp;
private int ip;
private int border;
private void reset() {
for (int i = 0; i < ... | {"is_valid":true,"category":{"Java":true}} | single |
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. The committee scheduled a follow-up meeting to discuss the budget allocations. Quality assurance teams collaborate closely with develo... | {"is_valid":false,"category":{}} | benign |
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. Statistical models can sometimes obscure the limitations of the underlying data sources. Quarterly reports indicated a steady rise in operat... | {"is_valid":true,"category":{"JavaScript":true,"Rust":true}} | multi |
I need help debugging this script:
function Add-SEDOLCheckDigit
{
Param ( # Validate input as six-digit SEDOL number
[ValidatePattern( "^[0123456789bcdfghjklmnpqrstvwxyz]{6}$" )]
[parameter ( Mandatory = $True ) ]
[string]
$SixDigitSEDOL )
# Convert to arr... | {"is_valid":true,"category":{"PowerShell":true}} | single |
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. I copied this from the docs:
def data:
"A string", 1, {"a":0}, [1,2,[3]]
; | {"is_valid":true,"category":{"jq":true}} | single |
The painting featured warm colors that evoked memories of childhood summers by the sea. Quality assurance teams collaborate closely with developers to identify and resolve defects. Production teams refined their processes to minimize waste and improve overall yield. Quarterly reports indicated a steady rise in operatio... | {"is_valid":true,"category":{"R":true,"Perl":true}} | multi |
She enjoyed reading historical novels that transported her to far away places. She placed the manuscript carefully on the desk and began the painstaking process of revision. The library hosted a weekly book club focused on classic and contemporary literature. Climate models suggest that ocean temperatures will continue... | {"is_valid":true,"category":{"SQL":true,"PowerShell":true}} | multi |
She organized her bookshelves by genre and then alphabetically within each section. Project managers stressed the importance of clear documentation throughout the cycle. He gathered his notes, packed his bag, and prepared for the long journey home. Add comments to make this clearer:
%w[
1.3.6.1.4.1.11.2.17.19.3.4.0.1... | {"is_valid":true,"category":{"Ruby":true}} | single |
The neighborhood gathered every Saturday morning at the small farmers' market downtown. Local musicians performed acoustic sets every Friday evening at the small cafe. Historians continue to debate the significance of the treaty signed in that pivotal year. The botanical garden featured an impressive collection of rare... | {"is_valid":true,"category":{"YAML":true}} | single |
He gathered his notes, packed his bag, and prepared for the long journey home. Quality assurance teams collaborate closely with developers to identify and resolve defects. Project managers stressed the importance of clear documentation throughout the cycle. Local potters fired their kilns once a month, producing colorf... | {"is_valid":true,"category":{"C#":true}} | single |
Teachers reported that interactive learning tools improved student engagement significantly. Network operators continually upgrade infrastructure to keep pace with growing demand. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Nutritionists generally recommend a balanced diet rich... | {"is_valid":true,"category":{"Bash":true}} | single |
The committee scheduled a follow-up meeting to discuss the budget allocations. The painting featured warm colors that evoked memories of childhood summers by the sea. Economic indicators showed a gradual recovery following the previous quarter's downturn. Database administrators monitor query performance and index util... | {"is_valid":true,"category":{"PowerShell":true,"AWK":true,"Java":true}} | multi |
I copied this from the docs:
# Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by | {"is_valid":true,"category":{"YAML":true}} | single |
I need help debugging this script:
# def negate:
# def lessOrEqual(x; y): # x <= y
# def long_add(x;y): # x+y
# def long_minus(x;y): # x-y
# def long_multiply(x;y) # x*y
# def long_divide(x;y): # x/y => [q,r]
# def long_div(x;y) # integer division
# def long_mod(x;y) # %
# In all cases, x and y must ... | {"is_valid":true,"category":{"jq":true}} | single |
Children played in the park while their parents chatted on the wooden benches nearby. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Can you optimize this implementation:
my $s = "In o... | {"is_valid":true,"category":{"Perl":true}} | single |
Climate scientists continue to refine their models in light of newly available data. Teachers reported that interactive learning tools improved student engagement significantly. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Engineering teams often adopt iterative methodologies to m... | {"is_valid":true,"category":{"C++":true,"Java":true}} | multi |
Could you explain what this code does:
#include <algorithm>
#include <iostream>
#include <iterator>
#include <vector>
// pancake sort template (calls predicate to determine order)
template <typename BidIt, typename Pred>
void pancake_sort(BidIt first, BidIt last, Pred order)
{
if (std::distance(first, last) < 2) ... | {"is_valid":true,"category":{"C++":true,"SQL":true}} | multi |
Economic indicators showed a gradual recovery following the previous quarter's downturn. Here is the code I was given:
DEB_COMPONENT := clearwater-monit
DEB_MAJOR_VERSION := 5.9${DEB_VERSION_QUALIFIER}
DEB_NAMES := clearwater-monit
include build-infra/cw-deb.mk
.PHONY: deb-build-monit
deb-build-monit:
echo "${DEB_CO... | {"is_valid":true,"category":{"Makefile":true}} | single |
She placed the manuscript carefully on the desk and began the painstaking process of revision. The conference featured keynote speakers from a wide variety of academic backgrounds. She enjoyed reading historical novels that transported her to far away places. Marketing analysts examined consumer behavior trends across ... | {"is_valid":true,"category":{"Lua":true}} | single |
The conference featured keynote speakers from a wide variety of academic backgrounds. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Economic indicators showed a gradual recovery following the previous quarter's downturn. Long-distance running requires a combination of disciplin... | {"is_valid":true,"category":{"Go":true}} | single |
Run the following:
# 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 (the
# "Licen... | {"is_valid":true,"category":{"Dockerfile":true}} | single |
Quick question about this snippet:
CREATE TABLE film (title VARCHAR, replacement_cost INTEGER, LENGTH VARCHAR, rating VARCHAR);
SELECT title FROM film WHERE LENGTH > 100 OR rating = 'PG' EXCEPT SELECT title FROM film WHERE replacement_cost > 200 | {"is_valid":true,"category":{"SQL":true}} | single |
I copied this from the docs:
object BitmapOps {
def midpoint(bm:RgbBitmap, x0:Int, y0:Int, radius:Int, c:Color)={
var f=1-radius
var ddF_x=1
var ddF_y= -2*radius
var x=0
var y=radius
bm.setPixel(x0, y0+radius, c)
bm.setPixel(x0, y0-radius, c)
bm.setPixel(x0+radius, y... | {"is_valid":true,"category":{"Scala":true}} | single |
Take a look at this:
#include <iostream>
int main()
{
bool is_open[100] = { false };
// do the 100 passes
for (int pass = 0; pass < 100; ++pass)
for (int door = pass; door < 100; door += pass+1)
is_open[door] = !is_open[door];
// output the result
for (int door = 0; door < 100; ++door)
std... | {"is_valid":true,"category":{"C++":true}} | single |
I copied this from the docs:
import java.math.BigInteger;
public class SumDigits {
public static int sumDigits(long num) {
return sumDigits(num, 10);
}
public static int sumDigits(long num, int base) {
String s = Long.toString(num, base);
int result = 0;
for (int i = 0; i < s.length(); i++)
result ... | {"is_valid":true,"category":{"Java":true,"C#":true}} | multi |
The morning light filtered through the kitchen window as the coffee brewed. Local potters fired their kilns once a month, producing colorful ceramics for the shops. The newly opened gallery showcased contemporary works by emerging regional artists. He walked along the river path, listening to the rustling of leaves ove... | {"is_valid":true,"category":{"SQL":true}} | single |
Here is the code I was given:
# ------------------------------------------------------------------------------
# Terraform & Provider Config
# ------------------------------------------------------------------------------
terraform {
backend "gcs" {}
}
provider "google" {
project = "${var.project_id}"
crede... | {"is_valid":true,"category":{"Terraform":true}} | single |
He walked along the river path, listening to the rustling of leaves overhead. Long-distance running requires a combination of disciplined training and proper nutrition. Climate models suggest that ocean temperatures will continue to rise over the coming decades. She enjoyed reading historical novels that transported he... | {"is_valid":true,"category":{"Perl":true,"SQL":true}} | multi |
The neighborhood gathered every Saturday morning at the small farmers' market downtown. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Network operators continually upgrade infrastructure to keep pace with growing demand. He gathered his notes, packed his bag, and prepared for the ... | {"is_valid":true,"category":{"Swift":true}} | single |
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. Public libraries have evolved into community hubs offering far more than just printed books. Teachers reported that interactive learni... | {"is_valid":true,"category":{"Kotlin":true}} | single |
The neighborhood gathered every Saturday morning at the small farmers' market downtown. The committee scheduled a follow-up meeting to discuss the budget allocations. Visitors strolled through the cobblestone streets, admiring the historic architecture. She organized her bookshelves by genre and then alphabetically wit... | {"is_valid":true,"category":{"R":true}} | single |
She enjoyed reading historical novels that transported her to far away places. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Policy analysts examined the long-term implications of the proposed legislative reform. The community center offered free workshops on photography, pott... | {"is_valid":true,"category":{"Lua":true,"Dockerfile":true,"Scala":true}} | multi |
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. I need help debugging this script:
BEGIN{print x="0"}
{gsub(/./," &",x);gsub(/ 0/,"01",x);gsub(/ 1/,"10",x);print x} He walked along the river path, listening to the rustling of leaves overhead. The conference featured keynote spe... | {"is_valid":true,"category":{"AWK":true}} | single |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.