prompt
large_stringlengths
150
7.97k
target
large_stringlengths
32
83
kind
large_stringclasses
3 values
Here is the code I was given: #include<graphics.h>   int main() { initwindow(320,240,"Red Pixel");   putpixel(100,100,RED);   getch();   return 0; }
{"is_valid":true,"category":{"C":true}}
single
Visitors strolled through the cobblestone streets, admiring the historic architecture. Refactor the function below: fn insertion_sort<T: std::cmp::Ord>(arr: &mut [T]) { for i in 1..arr.len() { let mut j = i; while j > 0 && arr[j] < arr[j-1] { arr.swap(j, j-1); j = j-1; ...
{"is_valid":true,"category":{"Rust":true}}
single
I need help debugging this script: // returns a new matrix Matrix.prototype.mult = function(other) { if (this.width != other.height) { throw "error: incompatible sizes"; }   var result = []; for (var i = 0; i < this.height; i++) { result[i] = []; for (var j = 0; j < other.width; ...
{"is_valid":true,"category":{"JavaScript":true}}
single
Quick question about this snippet: LD_FILE = boards/samd21x18-bootloader-external-flash-crystalless.ld USB_VID = 0x239A USB_PID = 0x8058 USB_PRODUCT = "Serpente" USB_MANUFACTURER = "arturo182" CHIP_VARIANT = SAMD21E18A CHIP_FAMILY = samd21 SPI_FLASH_FILESYSTEM = 1 EXTERNAL_FLASH_DEVICE_COUNT = 1 EXTERNAL_FLASH_DEVICE...
{"is_valid":true,"category":{"Makefile":true,"Swift":true,"Scala":true}}
multi
Astronomers observed a faint signal that appeared to originate from a distant galaxy. The conference featured keynote speakers from a wide variety of academic backgrounds. Researchers have been studying migration patterns of monarch butterflies for years. Hikers were advised to carry plenty of water and to inform someo...
{"is_valid":true,"category":{"R":true}}
single
I copied this from the docs: # Copyright 2017 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/LICENSE-2.0 # ...
{"is_valid":true,"category":{"YAML":true}}
single
She enjoyed reading historical novels that transported her to far away places. What does this output: $Year = 2016 [System.DateTime]::IsLeapYear( $Year )
{"is_valid":true,"category":{"PowerShell":true}}
single
I need help debugging this script: package main   import ( "fmt" "strings" )   func main() { s := "ABCDEFGH" n, m := 2, 3 // for reference fmt.Println("Index: ", "01234567") fmt.Println("String:", s) // starting from n characters in and of m length fmt.Printf("Start %d, length %d: ...
{"is_valid":true,"category":{"Go":true}}
single
Database administrators monitor query performance and index utilization across busy schemas. Climate scientists continue to refine their models in light of newly available data. The committee scheduled a follow-up meeting to discuss the budget allocations. The conference featured keynote speakers from a wide variety of...
{"is_valid":true,"category":{"Lua":true}}
single
Please review the following snippet for issues: { line[NR] = $0 } END { # sort it with shell sort increment = int(NR / 2) while ( increment > 0 ) { for(i=increment+1; i <= NR; i++) { j = i temp = line[i] while ( (j >= increment+1) && (line[j-increment] > temp) ) { line[j] = line[j-increment...
{"is_valid":true,"category":{"AWK":true}}
single
Public libraries have evolved into community hubs offering far more than just printed books. 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. She placed the manuscript carefully on the desk and beg...
{"is_valid":true,"category":{"R":true,"C++":true}}
multi
The committee scheduled a follow-up meeting to discuss the budget allocations. Backend services were redesigned to handle the surge in concurrent user requests. Researchers gathered data from hundreds of households participating in the longitudinal study. Local musicians performed acoustic sets every Friday evening at ...
{"is_valid":true,"category":{"Go":true}}
single
She placed the manuscript carefully on the desk and began the painstaking process of revision. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. The engineer reviewed the blueprints carefully before approving the modifications. Quality assurance teams collaborate closely with...
{"is_valid":true,"category":{"Rust":true}}
single
The morning light filtered through the kitchen window as the coffee brewed. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. He gathered his notes, packed his bag, and prepared for the long journey home. He walked along the river path, listening to the rustling of leaves over...
{"is_valid":true,"category":{"Makefile":true,"C++":true}}
multi
The classroom hummed with quiet conversation as students worked through practice problems. The community center offered free workshops on photography, pottery, and creative writing.
{"is_valid":false,"category":{}}
benign
I need help debugging this script: import Foundation   func montyHall(doors: Int = 3, guess: Int, switch: Bool) -> Bool { guard doors > 2, guess > 0, guess <= doors else { fatalError() }   let winningDoor = Int.random(in: 1...doors)   return winningDoor == guess ? !`switch` : `switch` }   var switchResults = [Boo...
{"is_valid":true,"category":{"Swift":true,"C":true,"Java":true}}
multi
Project managers stressed the importance of clear documentation throughout the cycle. She placed the manuscript carefully on the desk and began the painstaking process of revision. Quality assurance teams collaborate closely with developers to identify and resolve defects. She placed the manuscript carefully on the des...
{"is_valid":true,"category":{"Makefile":true}}
single
Add comments to make this clearer: fn crc32_compute_table() -> [u32; 256] { let mut crc32_table = [0; 256];   for n in 0..256 { crc32_table[n as usize] = (0..8).fold(n as u32, |acc, _| { match acc & 1 { 1 => 0xedb88320 ^ (acc >> 1), _ => acc >> 1, ...
{"is_valid":true,"category":{"Rust":true,"Bash":true}}
multi
The newly opened gallery showcased contemporary works by emerging regional artists. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. The committee scheduled a follow-up meeting to discuss the budget allocations. Travelers explored ancient ruins, marveling at the craftsmanship of long...
{"is_valid":true,"category":{"jq":true,"PowerShell":true}}
multi
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. Local musicians performed acoustic sets every Friday evening at the small cafe. Researchers have been studying migration patterns of monarch...
{"is_valid":true,"category":{"Perl":true}}
single
Here is the code I was given: use std::path::Path; use std::io::Write; use std::fs::File;   pub struct RGB { r: u8, g: u8, b: u8, }   pub struct PPM { height: u32, width: u32, data: Vec<u8>, }   impl PPM { pub fn new(height: u32, width: u32) -> PPM { let size = 3 * height * width; ...
{"is_valid":true,"category":{"Rust":true}}
single
Run the following: library(gtools) combinations(3, 2, c("iced", "jam", "plain"), set = FALSE, repeats.allowed = TRUE) nrow(combinations(10, 3, repeats.allowed = TRUE))
{"is_valid":true,"category":{"R":true}}
single
Add comments to make this clearer: import kotlin.math.sqrt   fun sieve(max: Int): List<Int> { val xs = (2..max).toMutableList() val limit = sqrt(max.toDouble()).toInt() for (x in 2..limit) xs -= x * x..max step x return xs }   fun main(args: Array<String>) { println(sieve(100)) }
{"is_valid":true,"category":{"Kotlin":true}}
single
Researchers have been studying migration patterns of monarch butterflies for years. The technology conference attracted engineers, designers, and product managers from around the world. Researchers gathered data from hundreds of households participating in the longitudinal study. The engineer reviewed the blueprints ca...
{"is_valid":false,"category":{}}
benign
Teachers reported that interactive learning tools improved student engagement significantly. Database administrators monitor query performance and index utilization across busy schemas. She enjoyed reading historical novels that transported her to far away places. The engineer reviewed the blueprints carefully before a...
{"is_valid":false,"category":{}}
benign
Hikers were advised to carry plenty of water and to inform someone of their planned route. The engineer reviewed the blueprints carefully before approving the modifications. Project managers stressed the importance of clear documentation throughout the cycle. Volunteers spent the weekend cleaning up the riverside trail...
{"is_valid":false,"category":{}}
benign
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Software architects often debate the merits of monolithic versus microservice designs. Long-distance running requires a combination of dis...
{"is_valid":false,"category":{}}
benign
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 coffee brewed. Can you optimize this implementation: import java.util.List; import java.util.ArrayList; import java.util.Map; import java.util.HashMap;   // =================...
{"is_valid":true,"category":{"Java":true,"Dockerfile":true,"Swift":true}}
multi
The technology conference attracted engineers, designers, and product managers from around the world. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. She placed the manuscript carefully on the desk and began the painstaking process of revision. Run the following: # Licensed to ...
{"is_valid":true,"category":{"Dockerfile":true,"jq":true}}
multi
Project managers stressed the importance of clear documentation throughout the cycle. Historians continue to debate the significance of the treaty signed in that pivotal year. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Translate this into another language for me: for file d...
{"is_valid":true,"category":{"jq":true}}
single
Quick question about this snippet: #include <algorithm> #include <array> #include <cmath> #include <iostream> #include <random> #include <vector>   /** * Class for representing a point. coordinate_type must be a numeric type. */ template<typename coordinate_type, size_t dimensions> class point { public: point(std...
{"is_valid":true,"category":{"C++":true}}
single
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Researchers gathered data from hundreds of households participating in the longitudinal study. Software architects often debate the merits of monolithic versus microservice designs. Engineering teams often adopt iterative metho...
{"is_valid":true,"category":{"Ruby":true}}
single
The morning light filtered through the kitchen window as the coffee brewed. The committee scheduled a follow-up meeting to discuss the budget allocations. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. The painting featured warm colors that evoked memories of childhood summers by the s...
{"is_valid":false,"category":{}}
benign
Climate scientists continue to refine their models in light of newly available data. The technology conference attracted engineers, designers, and product managers from around the world. I need help debugging this script: guessANumberPlayer <- function(low, high) { boundryErrorCheck(low, high) repeat { guess ...
{"is_valid":true,"category":{"R":true}}
single
Add comments to make this clearer: // Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved. variable "cluster_kube_config_expiration" { default = 2592000 } variable "cluster_kube_config_token_version" { default = "2.0.0" } data "oci_containerengine_cluster_kube_config" "test_cluster_kube_c...
{"is_valid":true,"category":{"Terraform":true}}
single
Visitors strolled through the cobblestone streets, admiring the historic architecture. 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. Engineering teams often adopt iterative methodologies to ...
{"is_valid":true,"category":{"Terraform":true}}
single
The library hosted a weekly book club focused on classic and contemporary literature. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Marketing analysts examined consumer behavior trends across multiple demographic segments. Climate models suggest that ocean temperatures will continu...
{"is_valid":true,"category":{"jq":true,"Ruby":true}}
multi
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Software architects often debate the merits of monolithic versus microservice designs. Network operators continually upgrade infrastructure to keep pace with growing demand. He sat by the window with a steaming mug of tea and watche...
{"is_valid":true,"category":{"Go":true}}
single
The conference featured keynote speakers from a wide variety of academic backgrounds. Software architects often debate the merits of monolithic versus microservice designs. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Public libraries have evolved into community hubs off...
{"is_valid":false,"category":{}}
benign
Run the following: @echo off setlocal enabledelayedexpansion   %==Sample list==% set "data=foo, bar, baz, quux, quuux, quuuux, bazola, ztesch, foo, bar, thud, grunt" set "data=%data% foo, bar, bletch, foo, bar, fum, fred, jim, sheila, barney, flarp, zxc" set "data=%data% spqr, wombat, shme, foo, bar, baz, bongo, spam,...
{"is_valid":true,"category":{"Batch":true}}
single
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Visitors strolled through the cobblestone streets, admiring the historic architecture. Could you explain what this code does: import Foundation     func getPrefix(_ text:[String]) -> String? { var common:String = text[0] ...
{"is_valid":true,"category":{"Swift":true}}
single
Quick question about this snippet: package main   import ( "bufio" "bytes" "errors" "fmt" "io" "os" )   // inverted index representation var index map[string][]int // ints index into indexed var indexed []doc   type doc struct { file string title string }   func main() { // initiali...
{"is_valid":true,"category":{"Go":true}}
single
The morning light filtered through the kitchen window as the coffee brewed. The morning light filtered through the kitchen window as the coffee brewed. The committee scheduled a follow-up meeting to discuss the budget allocations. Marketing analysts examined consumer behavior trends across multiple demographic segments...
{"is_valid":true,"category":{"Python":true,"Kotlin":true}}
multi
Statistical models can sometimes obscure the limitations of the underlying data sources. Astronomers observed a faint signal that appeared to originate from a distant galaxy. He walked along the river path, listening to the rustling of leaves overhead. Please review the following snippet for issues: # syntax: GAWK -f C...
{"is_valid":true,"category":{"AWK":true,"Python":true}}
multi
What does this output: ################################################################################ # 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....
{"is_valid":true,"category":{"Dockerfile":true}}
single
Could you explain what this code does: terraform { backend "gcs" {} } variable "project_id" {} variable "serviceaccount_key" {} variable "exports" { default = { # Captures interactions with many Google products, including GCE, GS, IAM, # and more. # # TODO: This is a lot less noisy if we add "AND
{"is_valid":true,"category":{"Terraform":true}}
single
Quick question about this snippet: def perta(atomic) -> (int, int):   NOBLES = 2, 10, 18, 36, 54, 86, 118 INTERTWINED = 0, 0, 0, 0, 0, 57, 89 INTERTWINING_SIZE = 14 LINE_WIDTH = 18   prev_noble = 0 for row, noble in enumerate(NOBLES): if atomic <= noble: # we are at the good row. We now...
{"is_valid":true,"category":{"Python":true}}
single
The newly opened gallery showcased contemporary works by emerging regional artists. He walked along the river path, listening to the rustling of leaves overhead. Local musicians performed acoustic sets every Friday evening at the small cafe. Distributed systems demand careful attention to consistency, availability, and...
{"is_valid":true,"category":{"C":true,"JavaScript":true,"jq":true}}
multi
Database administrators monitor query performance and index utilization across busy schemas. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. He sat by the window with a steaming mug of tea and watched the snow gently falling. Researchers gathered data from hundreds of househ...
{"is_valid":true,"category":{"PowerShell":true}}
single
Engineering teams often adopt iterative methodologies to manage complex software projects. Climate scientists continue to refine their models in light of newly available data. Hikers were advised to carry plenty of water and to inform someone of their planned route. The classroom hummed with quiet conversation as stude...
{"is_valid":false,"category":{}}
benign
Translate this into another language for me: function factors(num) { var n_factors = [], i;   for (i = 1; i <= Math.floor(Math.sqrt(num)); i += 1) if (num % i === 0) { n_factors.push(i); if (num / i !== i) n_factors.push(num / i); } n_factors.sort(function(a, b){return a - b;}); // numeric sort ...
{"is_valid":true,"category":{"JavaScript":true}}
single
Teachers reported that interactive learning tools improved student engagement significantly. Hikers were advised to carry plenty of water and to inform someone of their planned route. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Production teams refined their processes to...
{"is_valid":true,"category":{"Rust":true}}
single
Climate models suggest that ocean temperatures will continue to rise over the coming decades. Hikers were advised to carry plenty of water and to inform someone of their planned route. He gathered his notes, packed his bag, and prepared for the long journey home. She placed the manuscript carefully on the desk and bega...
{"is_valid":true,"category":{"Bash":true}}
single
Teachers reported that interactive learning tools improved student engagement significantly. Network operators continually upgrade infrastructure to keep pace with growing demand. The technology conference attracted engineers, designers, and product managers from around the world. The garden looked particularly vibrant...
{"is_valid":true,"category":{"R":true}}
single
Database administrators monitor query performance and index utilization across busy schemas. Production teams refined their processes to minimize waste and improve overall yield. Statistical models can sometimes obscure the limitations of the underlying data sources. Climate scientists continue to refine their models i...
{"is_valid":true,"category":{"R":true,"Dockerfile":true,"Rust":true}}
multi
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Add comments to make this clearer: package main   import ( "fmt" "os" )   func main() { fmt.Println("Program:", os.Args[0]) }
{"is_valid":true,"category":{"Go":true}}
single
Children played in the park while their parents chatted on the wooden benches nearby. Researchers have been studying migration patterns of monarch butterflies for years. Public libraries have evolved into community hubs offering far more than just printed books. The morning light filtered through the kitchen window as ...
{"is_valid":true,"category":{"Rust":true}}
single
Network operators continually upgrade infrastructure to keep pace with growing demand. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. The conference featured keynote speakers from a wide variety of academic backgrounds. Climate models suggest that ocean temperatures will co...
{"is_valid":false,"category":{}}
benign
Take a look at this: # FROM oven/bun:1.2.2 # # WORKDIR /app # COPY package.json bun.lock ./ # # RUN bun install # # COPY . . # # EXPOSE 4321 # # CMD ["bun", "run", "dev"] # There's a bug that prevents us from using bun for this: # https://github.com/oven-sh/bun/issues/17022 FROM node:22 WORKDIR /app COPY packag...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Long-distance running requires a combination of disciplined training and proper nutrition. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Translate this into another language for me: import Foundation   let process = Process()   process.launchPath = "/usr/bin/env" process....
{"is_valid":true,"category":{"Swift":true}}
single
Translate this into another language for me: use std::env;   fn main() { println!("{:?}", env::var("HOME")); println!(); for (k, v) in env::vars().filter(|(k, _)| k.starts_with('P')) { println!("{}: {}", k, v); } }
{"is_valid":true,"category":{"Rust":true}}
single
Researchers gathered data from hundreds of households participating in the longitudinal study. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Long-distance running requires a combination of disciplined training and proper nutrition. I copied this from the docs: Shoes.app do...
{"is_valid":true,"category":{"Ruby":true}}
single
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. He gathered his notes, packed his bag, and prepared for the long journey home. Quarterly reports indicated a steady rise in operational efficiency across divisions. She enjoyed reading historical novels that transported her to far away...
{"is_valid":true,"category":{"Ruby":true}}
single
Climate scientists continue to refine their models in light of newly available data. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Researchers have been studying migration patterns of monarch butterflies for years. He walked along the river path, listening to the rustling ...
{"is_valid":false,"category":{}}
benign
Energy researchers are exploring various pathways for reducing carbon emissions globally. 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 painting featured warm colors that evoked memories of ...
{"is_valid":true,"category":{"Lua":true}}
single
Database administrators monitor query performance and index utilization across busy schemas. The painting featured warm colors that evoked memories of childhood summers by the sea. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Database administrators monitor query performa...
{"is_valid":false,"category":{}}
benign
Take a look at this: fn fix_price(num: f64) -> f64 { match num { 0.96...1.00 => 1.00, 0.91...0.96 => 0.98, 0.86...0.91 => 0.94, 0.81...0.86 => 0.90, 0.76...0.81 => 0.86, 0.71...0.76 => 0.82, 0.66...0.71 => 0.78, 0.61...0.66 => 0.74, 0.56...0.61...
{"is_valid":true,"category":{"Rust":true}}
single
Refactor the function below: import java.util.*;   public class HolyKnightsTour {   final static String[] board = { " xxx ", " x xx ", " xxxxxxx", "xxx x x", "x x xxx", "1xxxxxx ", " xx x ", " xxx "};   private final static i
{"is_valid":true,"category":{"Java":true}}
single
Researchers gathered data from hundreds of households participating in the longitudinal study. Climate scientists continue to refine their models in light of newly available data. Economic indicators showed a gradual recovery following the previous quarter's downturn. Local musicians performed acoustic sets every Frida...
{"is_valid":true,"category":{"R":true}}
single
The technology conference attracted engineers, designers, and product managers from around the world. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Run the following: output "forge-s3-bucket" { value = length(aws_s3_bucket.aptos-testnet-helm) > 0 ? aws_s3_bucket.a...
{"is_valid":true,"category":{"Terraform":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. Engineering teams often adopt iterative methodologies to manage complex software projects. Distributed systems demand careful attention to con...
{"is_valid":false,"category":{}}
benign
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. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Long-distance running requires a combination of disci...
{"is_valid":true,"category":{"jq":true,"Lua":true}}
multi
The community center offered free workshops on photography, pottery, and creative writing. Historians continue to debate the significance of the treaty signed in that pivotal year. Researchers gathered data from hundreds of households participating in the longitudinal study. Backend services were redesigned to handle t...
{"is_valid":false,"category":{}}
benign
The community center offered free workshops on photography, pottery, and creative writing. Network operators continually upgrade infrastructure to keep pace with growing demand. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Climate scientists continue to refine their models in lig...
{"is_valid":true,"category":{"Bash":true,"Java":true}}
multi
Corporate training programs increasingly include modules on collaboration and communication. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Find any security problems in: f() { sleep "$1" echo "$1" } while [ -n "$1" ] do f "$1" & shift done wait She drafted ...
{"is_valid":true,"category":{"Bash":true}}
single
The botanical garden featured an impressive collection of rare orchids from tropical regions. Climate models suggest that ocean temperatures will continue to rise over the coming decades. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Refactor the function below: apiVersion...
{"is_valid":true,"category":{"YAML":true}}
single
The technology conference attracted engineers, designers, and product managers from around the world. Quick question about this snippet: // version 1.0.6   fun main(args: Array<String>) { println("%tc".format(System.currentTimeMillis())) } Then there's this one in another language: using System; using System.Colle...
{"is_valid":true,"category":{"Kotlin":true,"C#":true}}
multi
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. The engineer reviewed the blueprints carefully before approving the modifications. Software architects often debate the merits of monolit...
{"is_valid":true,"category":{"Terraform":true}}
single
The neighborhood gathered every Saturday morning at the small farmers' market downtown. Quarterly reports indicated a steady rise in operational efficiency across divisions. Climate scientists continue to refine their models in light of newly available data. Local musicians performed acoustic sets every Friday evening ...
{"is_valid":false,"category":{}}
benign
Add comments to make this clearer: BEGIN { # square size s = 256 # the PPM image header needs 3 lines: # P3 # width height # max colors number (per channel) print("P3\n", s, s, "\n", s - 1) # and now we generate pixels as a RGB pair in a relaxed # form "R G B\n" for (x = 0;
{"is_valid":true,"category":{"AWK":true}}
single
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Statistical models can sometimes obscure the limitations of the underlying data sources. Public libraries have evolved into community hubs offering far more than just printed books. The conference featured keynote speakers from...
{"is_valid":true,"category":{"Swift":true,"Rust":true}}
multi
Here is the code I was given: FROM sti_test/sti-fake ONBUILD RUN touch /sti-fake/src/onbuild # The ONBUILD strategy only works with the application source dir so we need # to manually specify to copy to another location. # # This is a little hack-ish given that we know our assemble script requires files to be in /tmp...
{"is_valid":true,"category":{"Dockerfile":true}}
single
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. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Corporate training programs increasingly include module...
{"is_valid":true,"category":{"YAML":true,"R":true}}
multi
He walked along the river path, listening to the rustling of leaves overhead. The library hosted a weekly book club focused on classic and contemporary literature. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Production teams refined their processes to minimize waste and improve o...
{"is_valid":true,"category":{"Ruby":true}}
single
Could you explain what this code does: CREATE TABLE wedding (church_id VARCHAR); CREATE TABLE church (name VARCHAR, church_id VARCHAR); SELECT T1.name FROM church AS T1 JOIN wedding AS T2 ON T1.church_id = T2.church_id GROUP BY T1.church_id HAVING COUNT(*) >= 2 There's also this version: // version 1.1.3   import java...
{"is_valid":true,"category":{"SQL":true,"Kotlin":true}}
multi
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. The newly opened gallery showcased contemporary works by emerging regional artists. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Marketing analysts examined consumer behavior trends across...
{"is_valid":true,"category":{"Makefile":true}}
single
She enjoyed reading historical novels that transported her to far away places. Policy analysts examined the long-term implications of the proposed legislative reform. Network operators continually upgrade infrastructure to keep pace with growing demand. Researchers have been studying migration patterns of monarch butte...
{"is_valid":true,"category":{"Python":true,"jq":true,"Go":true}}
multi
Translate this into another language for me: ## Clear Host from old Ouput Clear-Host   $Name = Read-Host "Please enter your name" $Char = ($name.ToUpper())[0] IF (($Char -eq "A") -or ($Char -eq "E") -or ($Char -eq "I") -or ($Char -eq "O") -or ($Char -eq "U")) { Write-Host "$Name, $Name, bo-b$($Name.ToLower())" ...
{"is_valid":true,"category":{"PowerShell":true}}
single
Please review the following snippet for issues: let N = 32 let N2 = N * (N - 1) / 2 let step = 0.05   var xval = [Double](repeating: 0, count: N) var tsin = [Double](repeating: 0, count: N) var tcos = [Double](repeating: 0, count: N) var ttan = [Double](repeating: 0, count: N) var rsin = [Double](repeating: .nan, count...
{"is_valid":true,"category":{"Swift":true}}
single
I copied this from the docs: //C++14/17 #include <algorithm>//std::for_each #include <iostream> //std::cout #include <numeric> //std::iota #include <vector> //std::vector, save solutions #include <list> //std::list, for fast erase   using std::begin, std::end, std::for_each;   //Generates all the valid solutions...
{"is_valid":true,"category":{"C++":true}}
single
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Here is the code I was given: var fizzBuzz = function () { var i, output; for (i = 1; i < 101; i += 1) { output = ''; if (!(i % 3)) { output += 'Fizz'; } if (!(i % 5)) { output += 'Buzz'; } console.log(output |...
{"is_valid":true,"category":{"JavaScript":true}}
single
Refactor the function below: import java.awt.image.BufferedImage import java.io.File import javax.imageio.ImageIO   internal class ArrayData(val dataArray: IntArray, val width: Int, val height: Int) {   constructor(width: Int, height: Int) : this(IntArray(width * height), width, height)   operator fun get(x: In...
{"is_valid":true,"category":{"Kotlin":true}}
single
What does this output: apiVersion: v1 kind: Service metadata: labels: k8s-app: node-exporter name: node-exporter namespace: monitoring spec: clusterIP: None ports: - name: https port: 9100 targetPort: https selector: app: node-exporter
{"is_valid":true,"category":{"YAML":true}}
single
Quarterly reports indicated a steady rise in operational efficiency across divisions. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Database administrators monitor query performance and index utilization across busy schemas. He wandered through the old bookstore, oc...
{"is_valid":true,"category":{"Java":true}}
single
What does this output: "spicywiener".StartsWith("spicy") "spicywiener".Contains("icy") "spicywiener".EndsWith("wiener") "spicywiener".IndexOf("icy") [regex]::Matches("spicywiener", "i").count
{"is_valid":true,"category":{"PowerShell":true}}
single
Quick question about this snippet: rref <- function(m) { pivot <- 1 norow <- nrow(m) nocolumn <- ncol(m) for(r in 1:norow) { if ( nocolumn <= pivot ) break; i <- r while( m[i,pivot] == 0 ) { i <- i + 1 if ( norow == i ) { i <- r pivot <- pivot + 1 if ( nocolumn ==...
{"is_valid":true,"category":{"R":true}}
single
The conference featured keynote speakers from a wide variety of academic backgrounds. Engineering teams often adopt iterative methodologies to manage complex software projects. Backend services were redesigned to handle the surge in concurrent user requests. Quality assurance teams collaborate closely with developers t...
{"is_valid":true,"category":{"SQL":true}}
single
Engineering teams often adopt iterative methodologies to manage complex software projects. Quarterly reports indicated a steady rise in operational efficiency across divisions. Quality assurance teams collaborate closely with developers to identify and resolve defects. Historians continue to debate the significance of ...
{"is_valid":true,"category":{"AWK":true,"Swift":true}}
multi
Engineering teams often adopt iterative methodologies to manage complex software projects. Teachers reported that interactive learning tools improved student engagement significantly. Local musicians performed acoustic sets every Friday evening at the small cafe. The classroom hummed with quiet conversation as students...
{"is_valid":true,"category":{"C++":true}}
single
He walked along the river path, listening to the rustling of leaves overhead. Database administrators monitor query performance and index utilization across busy schemas. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Database administrators monitor query performance and index...
{"is_valid":true,"category":{"Perl":true}}
single