prompt large_stringlengths 150 7.97k | target large_stringlengths 32 83 | kind large_stringclasses 3
values |
|---|---|---|
She organized her bookshelves by genre and then alphabetically within each section. Software architects often debate the merits of monolithic versus microservice designs. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Long-distance running requires a combination of disciplined ... | {"is_valid":true,"category":{"Batch":true}} | single |
The library hosted a weekly book club focused on classic and contemporary literature. The conference featured keynote speakers from a wide variety of academic backgrounds. Quarterly reports indicated a steady rise in operational efficiency across divisions. Statistical models can sometimes obscure the limitations of th... | {"is_valid":false,"category":{}} | benign |
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Refactor the function below:
CREATE TABLE member (Country VARCHAR);
SELECT Country FROM member GROUP BY Country HAVING COUNT(*) > 2 | {"is_valid":true,"category":{"SQL":true}} | single |
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. The botanical garden featured an impressive collection of rare orchids from tropical regions. The garden looked particularly vibrant ... | {"is_valid":true,"category":{"C#":true}} | single |
Refactor the function below:
/**
* Copyright 2019 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 b... | {"is_valid":true,"category":{"Terraform":true,"C#":true,"Java":true}} | multi |
Quality assurance teams collaborate closely with developers to identify and resolve defects. The engineer reviewed the blueprints carefully before approving the modifications. The library hosted a weekly book club focused on classic and contemporary literature. The engineer reviewed the blueprints carefully before appr... | {"is_valid":true,"category":{"C#":true,"jq":true}} | multi |
Take a look at this:
$fac = {
param([ScriptBlock] $f)
invoke-expression @"
{
param([int] `$n)
if (`$n -le 0) {1}
else {`$n * {$f}.InvokeReturnAsIs(`$n - 1)}
}
"@
}
$fib = {
param([ScriptBlock] $f)
invoke-expression @"
{
param([int] `$n)
switch (`$n)
{
0... | {"is_valid":true,"category":{"PowerShell":true,"AWK":true}} | multi |
The newly opened gallery showcased contemporary works by emerging regional artists. Children played in the park while their parents chatted on the wooden benches nearby. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Children played in the park while their parents chatted ... | {"is_valid":true,"category":{"Terraform":true}} | single |
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Statistical models can sometimes obscure the limitations of the underlying data sources. The painting featured warm colors that evoked memories of childhood summers by the sea. Nutritionists generally recommend a balanced diet ... | {"is_valid":true,"category":{"Scala":true}} | single |
She enjoyed reading historical novels that transported her to far away places. Hikers were advised to carry plenty of water and to inform someone of their planned route. Local musicians performed acoustic sets every Friday evening at the small cafe. She drafted a detailed agenda for the upcoming retreat and circulated ... | {"is_valid":true,"category":{"C++":true,"Terraform":true}} | multi |
The library hosted a weekly book club focused on classic and contemporary literature. Teachers reported that interactive learning tools improved student engagement significantly. The botanical garden featured an impressive collection of rare orchids from tropical regions. Local musicians performed acoustic sets every F... | {"is_valid":true,"category":{"JavaScript":true}} | single |
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Policy analysts examined the long-term implications of the proposed legislative reform. He sat by the window with a steaming mug of tea and watched the snow gently falling. Children played in the park while their parents chatted on ... | {"is_valid":true,"category":{"Scala":true}} | single |
Energy researchers are exploring various pathways for reducing carbon emissions globally. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Policy analysts examined the long-term implications of the proposed legislative reform. The committee scheduled a follow-up meeting to di... | {"is_valid":true,"category":{"C#":true}} | single |
Software architects often debate the merits of monolithic versus microservice designs. The morning light filtered through the kitchen window as the coffee brewed. He walked along the river path, listening to the rustling of leaves overhead. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost c... | {"is_valid":false,"category":{}} | benign |
The botanical garden featured an impressive collection of rare orchids from tropical regions. Quick question about this snippet:
module "snapshot_generator_queue" {
source = "git::https://github.com/wellcometrust/terraform-modules.git//sqs?ref=v8.0.2"
queue_name = "snapshot_generator_queue"
aws_region = "$... | {"is_valid":true,"category":{"Terraform":true}} | single |
Children played in the park while their parents chatted on the wooden benches nearby. Quick question about this snippet:
package main
import (
"fmt"
"rcu"
"strconv"
)
func contains(a []int, n int) bool {
for _, e := range a {
if e == n {
return true
}
}
return fal... | {"is_valid":true,"category":{"Go":true}} | single |
Energy researchers are exploring various pathways for reducing carbon emissions globally. Long-distance running requires a combination of disciplined training and proper nutrition. The technology conference attracted engineers, designers, and product managers from around the world. The conference featured keynote speak... | {"is_valid":true,"category":{"YAML":true}} | single |
Here is the code I was given:
fun String.toDigits() = mapIndexed { i, c ->
if (!c.isDigit())
throw IllegalArgumentException("Invalid digit $c found at position $i")
c - '0'
}.reversed()
operator fun String.times(n: String): String {
val left = toDigits()
val right = n.toDigits()
val result... | {"is_valid":true,"category":{"Kotlin":true}} | single |
Climate scientists continue to refine their models in light of newly available data. Network operators continually upgrade infrastructure to keep pace with growing demand. Hikers were advised to carry plenty of water and to inform someone of their planned route. She drafted a detailed agenda for the upcoming retreat an... | {"is_valid":true,"category":{"Terraform":true,"Java":true}} | multi |
Database administrators monitor query performance and index utilization across busy schemas. Network operators continually upgrade infrastructure to keep pace with growing demand. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. She organized her bookshelves by genre and then al... | {"is_valid":false,"category":{}} | benign |
Statistical models can sometimes obscure the limitations of the underlying data sources. Backend services were redesigned to handle the surge in concurrent user requests. I copied this from the docs:
str = "asdf"
reversed = str.reverse The painting featured warm colors that evoked memories of childhood summers by the s... | {"is_valid":true,"category":{"Ruby":true}} | single |
Teachers reported that interactive learning tools improved student engagement significantly. Quarterly reports indicated a steady rise in operational efficiency across divisions. Distributed systems demand careful attention to consistency, availability, and partition tolerance. The painting featured warm colors that ev... | {"is_valid":true,"category":{"AWK":true}} | single |
Hikers were advised to carry plenty of water and to inform someone of their planned route. Could you explain what this code does:
checkPangram <- function(sentence){
my.letters <- tolower(unlist(strsplit(sentence, "")))
is.pangram <- all(letters %in% my.letters)
if (is.pangram){
cat("\"", sentence, "\" is a... | {"is_valid":true,"category":{"R":true}} | single |
Refactor the function below:
assert(math.type~=nil, "Lua 5.3+ required for this test.")
minint, maxint = math.mininteger, math.maxinteger
print("min, max int64 = " .. minint .. ", " .. maxint)
print("min-1 underflow = " .. (minint-1) .. " equals max? " .. tostring(minint-1==maxint))
print("max+1 overflow = " .. (ma... | {"is_valid":true,"category":{"Lua":true}} | single |
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. I need help debugging this script:
#include <algorithm>
#include <functional>
#include <iostream>
#include <numeric>
#include <vector>
typedef std::vector<std::vector<int>> matrix;
matrix dList(int n, int start) {
star... | {"is_valid":true,"category":{"C++":true,"R":true}} | multi |
Can you optimize this implementation:
# 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 | {"is_valid":true,"category":{"Dockerfile":true}} | single |
Distributed systems demand careful attention to consistency, availability, and partition tolerance. The garden looked particularly vibrant after the recent rain. The morning light filtered through the kitchen window as the coffee brewed. Researchers have been studying migration patterns of monarch butterflies for years... | {"is_valid":true,"category":{"YAML":true}} | single |
Database administrators monitor query performance and index utilization across busy schemas. Take a look at this:
cities = [
{ "name": "Lagos", "population": 21.0 },
{ "name": "Cairo", "population": 15.2 },
{ "name": "Kinshasa-Brazzaville", "population": 11.3 },
{ "name"... | {"is_valid":true,"category":{"Python":true,"jq":true}} | multi |
The conference featured keynote speakers from a wide variety of academic backgrounds. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. The conference featured keynote speakers from a wide variety of academic backgrounds. Local potters fired their kilns once a month, producing... | {"is_valid":true,"category":{"Batch":true}} | single |
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Here is the code I was given:
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_CFLAGS += -DHAVE_LIBUSB -DMXT_VERSION=\"$(GIT_VERSION)\"
LOCAL_C_INCLUDES := $(SRC_PATH)
LOCAL_SRC_FILES := \
mxt_app.c \
menu.c \
bo... | {"is_valid":true,"category":{"Makefile":true,"Terraform":true,"Perl":true}} | multi |
She organized her bookshelves by genre and then alphabetically within each section. Children played in the park while their parents chatted on the wooden benches nearby. | {"is_valid":false,"category":{}} | benign |
Marketing analysts examined consumer behavior trends across multiple demographic segments. He sat by the window with a steaming mug of tea and watched the snow gently falling. Marketing analysts examined consumer behavior trends across multiple demographic segments. Nutritionists generally recommend a balanced diet ric... | {"is_valid":true,"category":{"Java":true,"Python":true}} | multi |
The library hosted a weekly book club focused on classic and contemporary literature. Could you explain what this code does:
use ntheory qw(divisors);
my @anti_primes;
for (my ($k, $m) = (1, 0) ; @anti_primes < 20 ; ++$k) {
my $sigma0 = divisors($k);
if ($sigma0 > $m) {
$m = $sigma0;
push ... | {"is_valid":true,"category":{"Perl":true,"Makefile":true,"Batch":true}} | multi |
The botanical garden featured an impressive collection of rare orchids from tropical regions. Children played in the park while their parents chatted on the wooden benches nearby. Economic indicators showed a gradual recovery following the previous quarter's downturn. Historians continue to debate the significance of t... | {"is_valid":true,"category":{"Python":true}} | single |
Database administrators monitor query performance and index utilization across busy schemas. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Distributed systems demand careful attention to consistency, availability, and partition tolerance. The chef prepared a simple ... | {"is_valid":true,"category":{"Go":true}} | single |
The newly opened gallery showcased contemporary works by emerging regional artists. Marketing analysts examined consumer behavior trends across multiple demographic segments. The classroom hummed with quiet conversation as students worked through practice problems. Researchers gathered data from hundreds of households ... | {"is_valid":false,"category":{}} | benign |
Production teams refined their processes to minimize waste and improve overall yield. 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. Researchers gathered data from hundreds of house... | {"is_valid":true,"category":{"Kotlin":true}} | single |
Quarterly reports indicated a steady rise in operational efficiency across divisions. Astronomers observed a faint signal that appeared to originate from a distant galaxy. What does this output:
@echo off
rem input range
set /p "range=> "
rem input data (no error-checking)
set "data_ctr=0"
:input_loop
set "data="
set ... | {"is_valid":true,"category":{"Batch":true,"YAML":true}} | multi |
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Production teams refined their processes to minimize waste and improve overall yield. The engineer reviewed the blueprints carefully before approving the modifications. The library hosted a weekly book club focused on classic a... | {"is_valid":true,"category":{"C++":true}} | single |
Take a look at this:
// Version 1.2.31
import java.util.Random
import kotlin.system.measureNanoTime
typealias Sorter = (IntArray) -> Unit
val rand = Random()
fun onesSeq(n: Int) = IntArray(n) { 1 }
fun ascendingSeq(n: Int) = shuffledSeq(n).sorted().toIntArray()
fun shuffledSeq(n: Int) = IntArray(n) { 1 + ra... | {"is_valid":true,"category":{"Kotlin":true}} | single |
The conference featured keynote speakers from a wide variety of academic backgrounds. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Modern microprocessors rely on pipelining and ... | {"is_valid":true,"category":{"C":true}} | single |
The community center offered free workshops on photography, pottery, and creative writing. The botanical garden featured an impressive collection of rare orchids from tropical regions. He sat by the window with a steaming mug of tea and watched the snow gently falling. Teachers reported that interactive learning tools ... | {"is_valid":true,"category":{"PowerShell":true}} | single |
Database administrators monitor query performance and index utilization across busy schemas. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Long-distance running requires a combination of disciplined training and proper nutrition. Late spring rains caused the lake to swell beyon... | {"is_valid":true,"category":{"Lua":true}} | single |
Can you optimize this implementation:
import random
## 1. Cards
n = 52
Black, Red = 'Black', 'Red'
blacks = [Black] * (n // 2)
reds = [Red] * (n // 2)
pack = blacks + reds
# Give the pack a good shuffle.
random.shuffle(pack)
## 2. Deal from the randomised pack into three stacks
black_stack, red_stack, discard = []... | {"is_valid":true,"category":{"Python":true}} | single |
The classroom hummed with quiet conversation as students worked through practice problems. 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. Researchers gathered data from hundreds of households p... | {"is_valid":true,"category":{"Batch":true}} | single |
Please review the following snippet for issues:
#include <stdio.h>
#include <stdlib.h>
void bead_sort(int *a, int len)
{
int i, j, max, sum;
unsigned char *beads;
# define BEAD(i, j) beads[i * max + j]
for (i = 1, max = a[0]; i < len; i++)
if (a[i] > max) max = a[i];
beads = calloc(1, max * len);
/* mark... | {"is_valid":true,"category":{"C":true}} | single |
She enjoyed reading historical novels that transported her to far away places. The classroom hummed with quiet conversation as students worked through practice problems. I copied this from the docs:
CREATE TABLE staff (staff_name VARCHAR, staff_id VARCHAR); CREATE TABLE staff_department_assignments (job_title_code VARC... | {"is_valid":true,"category":{"SQL":true}} | single |
Astronomers observed a faint signal that appeared to originate from a distant galaxy. Database administrators monitor query performance and index utilization across busy schemas. Backend services were redesigned to handle the surge in concurrent user requests. Visitors strolled through the cobblestone streets, admiring... | {"is_valid":true,"category":{"Swift":true}} | single |
The community center offered free workshops on photography, pottery, and creative writing. Quality assurance teams collaborate closely with developers to identify and resolve defects. The committee scheduled a follow-up meeting to discuss the budget allocations. Teachers reported that interactive learning tools improve... | {"is_valid":true,"category":{"Scala":true}} | single |
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. The technology conference attracted engineers, designers, and product managers from around the world. The painting featured warm colors that evoked memories of childhood summers by the sea. Local musicians performed acoustic sets ... | {"is_valid":true,"category":{"jq":true}} | single |
The library hosted a weekly book club focused on classic and contemporary literature. Could you explain what this code does:
p <- c(4.533744e-01, 7.296024e-01, 9.936026e-02, 9.079658e-02, 1.801962e-01,
8.752257e-01, 2.922222e-01, 9.115421e-01, 4.355806e-01, 5.324867e-01,
4.926798e-01, 5.802978e-01, 3.4854... | {"is_valid":true,"category":{"R":true}} | single |
Backend services were redesigned to handle the surge in concurrent user requests. Researchers gathered data from hundreds of households participating in the longitudinal study. She enjoyed reading historical novels that transported her to far away places. Software architects often debate the merits of monolithic versus... | {"is_valid":true,"category":{"Ruby":true,"C":true}} | multi |
The engineer reviewed the blueprints carefully before approving the modifications. Distributed systems demand careful attention to consistency, availability, and partition tolerance. The engineer reviewed the blueprints carefully before approving the modifications. Volunteers spent the weekend cleaning up the riverside... | {"is_valid":true,"category":{"C#":true,"Batch":true,"Rust":true}} | multi |
Teachers reported that interactive learning tools improved student engagement significantly. Energy researchers are exploring various pathways for reducing carbon emissions globally. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Corporate training programs increasingly include... | {"is_valid":true,"category":{"C++":true,"Bash":true}} | multi |
She organized her bookshelves by genre and then alphabetically within each section. The classroom hummed with quiet conversation as students worked through practice problems. Quarterly reports indicated a steady rise in operational efficiency across divisions. Engineering teams often adopt iterative methodologies to ma... | {"is_valid":true,"category":{"Swift":true}} | single |
Find any security problems in:
# convert a list of unique words to a dictionary
def dictionary:
reduce .[] as $word ({}; .[$word[0:1]] += [$word]) ;
# remove "word" from the input dictionary assuming the key is already there:
def remove(word):
.[word[0:1]] -= [word]; | {"is_valid":true,"category":{"jq":true}} | single |
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. 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. Public libraries have evolved into community hubs offe... | {"is_valid":true,"category":{"SQL":true}} | single |
Visitors strolled through the cobblestone streets, admiring the historic architecture. The neighborhood gathered every Saturday morning at the small farmers' market downtown. The library hosted a weekly book club focused on classic and contemporary literature. Local potters fired their kilns once a month, producing col... | {"is_valid":false,"category":{}} | benign |
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. I copied this from the docs:
inputs <- cbind(combn(1:13, 2), rbind(seq_len(13), seq_len(13)))
inputs <- cbind(A = inputs[1, ], B = input... | {"is_valid":true,"category":{"R":true}} | single |
Database administrators monitor query performance and index utilization across busy schemas. Translate this into another language for me:
last_sundays() {
local y=$1
for (( m=1; m<=12; ++m )); do
cal $m $y | awk -vy=$y -vm=$m '/^.[0-9]/ {d=$1} END {print y"-"m"-"d}'
done
} Statistical models can sometimes obs... | {"is_valid":true,"category":{"Bash":true}} | single |
He gathered his notes, packed his bag, and prepared for the long journey home. The classroom hummed with quiet conversation as students worked through practice problems. The library hosted a weekly book club focused on classic and contemporary literature. Economic indicators showed a gradual recovery following the prev... | {"is_valid":true,"category":{"Lua":true}} | single |
The classroom hummed with quiet conversation as students worked through practice problems. 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. Local potters fired their kilns once a month, producing col... | {"is_valid":false,"category":{}} | benign |
Statistical models can sometimes obscure the limitations of the underlying data sources. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Visitors strolled through the cobblestone s... | {"is_valid":true,"category":{"C#":true}} | single |
The technology conference attracted engineers, designers, and product managers from around the world. Quick question about this snippet:
// version 1.1.2
fun a(v: Boolean): Boolean {
println("'a' called")
return v
}
fun b(v: Boolean): Boolean {
println("'b' called")
return v
}
fun main(args: Array... | {"is_valid":true,"category":{"Kotlin":true,"Go":true}} | multi |
Find any security problems in:
// version 1.1.2
enum class Trit {
TRUE, MAYBE, FALSE;
operator fun not() = when (this) {
TRUE -> FALSE
MAYBE -> MAYBE
FALSE -> TRUE
}
infix fun and(other: Trit) = when (this) {
TRUE -> other
MAYBE -> if (other == FA | {"is_valid":true,"category":{"Kotlin":true}} | single |
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. The morning light filtered through the kitchen window as the coffee brewed. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Quality assurance teams collaborate closely with d... | {"is_valid":true,"category":{"Rust":true}} | single |
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Project managers stressed the importance of clear documentation throughout the cycle. Policy analysts examined the long-term implications of the proposed legislative reform. Engineering teams often adopt iterative methodologies to manag... | {"is_valid":true,"category":{"Rust":true}} | single |
Distributed systems demand careful attention to consistency, availability, and partition tolerance. Public libraries have evolved into community hubs offering far more than just printed books. Project managers stressed the importance of clear documentation throughout the cycle. Marketing analysts examined consumer beha... | {"is_valid":true,"category":{"Terraform":true}} | single |
Distributed systems demand careful attention to consistency, availability, and partition tolerance. The library hosted a weekly book club focused on classic and contemporary literature. Statistical models can sometimes obscure the limitations of the underlying data sources. Software architects often debate the merits o... | {"is_valid":true,"category":{"Batch":true}} | single |
What does this output:
import Foundation
struct PancakeSort {
var arr:[Int]
mutating func flip(n:Int) {
for i in 0 ..< (n + 1) / 2 {
swap(&arr[n - i], &arr[i])
}
println("flip(0.. \(n)): \(arr)")
}
func minmax(n:Int) -> [Int] {
var xm = arr[0]
va... | {"is_valid":true,"category":{"Swift":true,"Go":true}} | multi |
Local potters fired their kilns once a month, producing colorful ceramics for the shops. He sat by the window with a steaming mug of tea and watched the snow gently falling. Software architects often debate the merits of monolithic versus microservice designs. Economic indicators showed a gradual recovery following the... | {"is_valid":true,"category":{"Bash":true}} | single |
Local musicians performed acoustic sets every Friday evening at the small cafe. The newly opened gallery showcased contemporary works by emerging regional artists. Production teams refined their processes to minimize waste and improve overall yield. Modern microprocessors rely on pipelining and out-of-order execution t... | {"is_valid":true,"category":{"Go":true}} | single |
Please review the following snippet for issues:
apiVersion: apps/v1
kind: Deployment
metadata:
name: redis
labels:
app: redis
visualize: 'true'
spec:
replicas: 1
selector:
matchLabels:
app: redis
template:
metadata:
labels:
app: redis
visualize: 'true'
spec:
... | {"is_valid":true,"category":{"YAML":true,"JavaScript":true}} | multi |
She placed the manuscript carefully on the desk and began the painstaking process of revision. He sat by the window with a steaming mug of tea and watched the snow gently falling. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Energy researchers are exploring various pathways fo... | {"is_valid":true,"category":{"Python":true}} | single |
She placed the manuscript carefully on the desk and began the painstaking process of revision. I copied this from the docs:
function bxor2 ( [byte] $a, [byte] $b )
{
$out1 = $a -band ( -bnot $b )
$out2 = ( -bnot $a ) -band $b
$out1 -bor $out2
}
function hadder ( [byte] $a, [byte] $b )
{
@{
"S"... | {"is_valid":true,"category":{"PowerShell":true}} | single |
The morning light filtered through the kitchen window as the coffee brewed. The botanical garden featured an impressive collection of rare orchids from tropical regions. The painting featured warm colors that evoked memories of childhood summers by the sea. Production teams refined their processes to minimize waste and... | {"is_valid":true,"category":{"Rust":true}} | single |
Add comments to make this clearer:
import java.util.*;
public class Game24Player {
final String[] patterns = {"nnonnoo", "nnonono", "nnnoono", "nnnonoo",
"nnnnooo"};
final String ops = "+-*/^";
String solution;
List<Integer> digits;
public static void main(String[] args) {
new ... | {"is_valid":true,"category":{"Java":true}} | single |
Public libraries have evolved into community hubs offering far more than just printed books. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Please review the following snippet for issues:
import scala.collection.immutable.ListMap
object StringAllSameCharacters {
/**Tr... | {"is_valid":true,"category":{"Scala":true}} | single |
Marketing analysts examined consumer behavior trends across multiple demographic segments. Historians continue to debate the significance of the treaty signed in that pivotal year. Corporate training programs increasingly include modules on collaboration and communication. Distributed systems demand careful attention t... | {"is_valid":true,"category":{"Terraform":true,"YAML":true,"Bash":true}} | multi |
Software architects often debate the merits of monolithic versus microservice designs. 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. The bakery on the corner was famous for its sourdough loaves and se... | {"is_valid":false,"category":{}} | benign |
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Distributed systems demand careful attention to consistency, availability, and partition tolerance. The morning light filtered through the kitchen window as the coffee brewed. Astronomers observed a faint signal that appeared t... | {"is_valid":true,"category":{"Kotlin":true}} | single |
Refactor the function below:
//! In order to run this task, you will need to compile the C program locating in the task linked
//! above. The C program will need to be linked with the library produced by this file.
//!
//! 1. Compile this library:
//!
//! ```bash
//! $ cargo build --release
//! ```
//!
//! ... | {"is_valid":true,"category":{"Rust":true}} | single |
Project managers stressed the importance of clear documentation throughout the cycle. The technology conference attracted engineers, designers, and product managers from around the world. The committee scheduled a follow-up meeting to discuss the budget allocations. Backend services were redesigned to handle the surge ... | {"is_valid":true,"category":{"SQL":true,"Swift":true}} | multi |
Corporate training programs increasingly include modules on collaboration and communication. He sat by the window with a steaming mug of tea and watched the snow gently falling. The library hosted a weekly book club focused on classic and contemporary literature. Nutritionists generally recommend a balanced diet rich i... | {"is_valid":true,"category":{"jq":true}} | single |
What does this output:
#include <iostream>
#include <string>
#include <vector>
struct last_letter_first_letter {
size_t max_path_length = 0;
size_t max_path_length_count = 0;
std::vector<std::string> max_path_example;
void search(std::vector<std::string>& names, size_t offset) {
if (offset >... | {"is_valid":true,"category":{"C++":true}} | single |
Here is the code I was given:
package main
import (
"fmt"
"math"
"math/rand"
"strings"
)
// Box-Muller
func norm2() (s, c float64) {
r := math.Sqrt(-2 * math.Log(rand.Float64()))
s, c = math.Sincos(2 * math.Pi * rand.Float64())
return s * r, c * r
}
func main() {
const (
n ... | {"is_valid":true,"category":{"Go":true}} | single |
She placed the manuscript carefully on the desk and began the painstaking process of revision. Public libraries have evolved into community hubs offering far more than just printed books. The neighborhood gathered every Saturday morning at the small farmers' market downtown. I need help debugging this script:
import Fo... | {"is_valid":true,"category":{"Swift":true,"Java":true}} | multi |
The technology conference attracted engineers, designers, and product managers from around the world. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Researchers gathered data from hundreds of households participating in the longitudinal study. The community center offered f... | {"is_valid":false,"category":{}} | benign |
Marketing analysts examined consumer behavior trends across multiple demographic segments. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. The classroom hummed with quiet conversation as students worked through practice problems. Please review the following snippet for issues:
us... | {"is_valid":true,"category":{"Perl":true}} | single |
She enjoyed reading historical novels that transported her to far away places. Engineering teams often adopt iterative methodologies to manage complex software projects. 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 sign... | {"is_valid":true,"category":{"Java":true,"C":true}} | multi |
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. The newly opened gallery showcased contemporary works by emerging regional artists. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Backend services were redesigned to handle the sur... | {"is_valid":true,"category":{"C++":true}} | single |
The library hosted a weekly book club focused on classic and contemporary literature. Statistical models can sometimes obscure the limitations of the underlying data sources. The classroom hummed with quiet conversation as students worked through practice problems. Hikers were advised to carry plenty of water and to in... | {"is_valid":true,"category":{"Ruby":true}} | single |
The newly opened gallery showcased contemporary works by emerging regional artists. Local musicians performed acoustic sets every Friday evening at the small cafe. Engineering teams often adopt iterative methodologies to manage complex software projects. Climate scientists continue to refine their models in light of ne... | {"is_valid":true,"category":{"R":true}} | single |
Please review the following snippet for issues:
sub pascal {
my $rows = shift;
my @next = (1);
for my $n (1 .. $rows) {
print "@next\n";
@next = (1, (map $next[$_]+$next[$_+1], 0 .. $n-2), 1);
}
}
On a related note, this block:
Clear-Host
## String creation (which is string assignment):
Write-Host "`... | {"is_valid":true,"category":{"Perl":true,"PowerShell":true}} | multi |
Quick question about this snippet:
resource "aws_elb" "cf_router" {
name = "${var.env}-cf-router"
subnets = ["${split(",", var.infra_subnet_ids)}"]
idle_timeout = "${var.elb_idle_timeout}"
cross_zone_load_balancing = "true"
security_groups = [
"${aws_security_group.web.id}",
"${aws_security_group.ping... | {"is_valid":true,"category":{"Terraform":true}} | single |
She organized her bookshelves by genre and then alphabetically within each section. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Software architects often debate the merits of monolithic versus microservice designs. He wandered through the old bookstore, occasionally pulling a wor... | {"is_valid":true,"category":{"AWK":true}} | single |
Public libraries have evolved into community hubs offering far more than just printed books. Run the following:
#!/usr/bin/make -f
config.status: configure
./configure
configure: configure.ac aclocal.m4 Makefile.am src/config.h.in libtool ltmain.sh
automake --copy --add-missing
autoconf
src/config.h.in: configure... | {"is_valid":true,"category":{"Makefile":true}} | single |
Add comments to make this clearer:
#include <iostream>
using namespace std;
struct point2D { float x, y; };
const int N = 99; // clipped (new) polygon size
// check if a point is on the LEFT side of an edge
bool inside(point2D p, point2D p1, point2D p2)
{
return (p2.y - p1.y) * p.x + (p1.x - p2.x) * p.y +... | {"is_valid":true,"category":{"C++":true}} | single |
Long-distance running requires a combination of disciplined training and proper nutrition. Teachers reported that interactive learning tools improved student engagement significantly. Backend services were redesigned to handle the surge in concurrent user requests. Modern microprocessors rely on pipelining and out-of-o... | {"is_valid":true,"category":{"Batch":true}} | single |
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Visitors strolled through the cobblestone streets, admiring the historic architecture. Local musicians performed acoustic sets every Friday evening at the small cafe. Project managers stressed the importance of clear documentation throu... | {"is_valid":false,"category":{}} | benign |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.