prompt
large_stringlengths
150
7.97k
target
large_stringlengths
32
83
kind
large_stringclasses
3 values
The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Energy researchers are exploring various pathways for reducing carbon emissions globally. Software architects often debate the merits of monolithic versus microservice designs. Economic indicators showed a gradual recovery foll...
{"is_valid":true,"category":{"C#":true}}
single
He gathered his notes, packed his bag, and prepared for the long journey home. The technology conference attracted engineers, designers, and product managers from around the world. Historians continue to debate the significance of the treaty signed in that pivotal year. Volunteers spent the weekend cleaning up the rive...
{"is_valid":false,"category":{}}
benign
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. She enjoyed reading historical novels that transported her to far away places. He sat by the window with a steaming mug of tea and watched the snow gently falling. Climate scientists continue to refine their models in light of...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Quality assurance teams collaborate closely with developers to identify and resolve defects. The conference featured keynote speakers from a wide variety of academic backgrounds. Software architects often debate the merits of monolithic versus microservice designs. She organized her bookshelves by genre and then alphab...
{"is_valid":true,"category":{"SQL":true}}
single
Energy researchers are exploring various pathways for reducing carbon emissions globally. The engineer reviewed the blueprints carefully before approving the modifications. Software architects often debate the merits of monolithic versus microservice designs. Quality assurance teams collaborate closely with developers ...
{"is_valid":true,"category":{"Dockerfile":true}}
single
The classroom hummed with quiet conversation as students worked through practice problems. He walked along the river path, listening to the rustling of leaves overhead. Policy analysts examined the long-term implications of the proposed legislative reform. Travelers explored ancient ruins, marveling at the craftsmanshi...
{"is_valid":false,"category":{}}
benign
The conference featured keynote speakers from a wide variety of academic backgrounds. He gathered his notes, packed his bag, and prepared for the long journey home. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. The community center offered free workshops on photography, potte...
{"is_valid":false,"category":{}}
benign
Can you optimize this implementation: // version 1.1.51   import java.util.Random   typealias Point = DoubleArray   fun Point.sqd(p: Point) = this.zip(p) { a, b -> (a - b) * (a - b) }.sum()   class HyperRect (val min: Point, val max: Point) { fun copy() = HyperRect(min.copyOf(), max.copyOf()) }   data class Nearest...
{"is_valid":true,"category":{"Kotlin":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. Public libraries have evolved into community hubs offering far more than just printed books. The morning light filtered through the kitchen window as th...
{"is_valid":true,"category":{"Bash":true}}
single
Find any security problems in: var matrix = [ [2, -1, 5, 1], [3, 2, 2, -6], [1, 3, 3, -1], [5, -2, -3, 3] ]; var freeTerms = [-3, -32, -47, 49];   var result = cramersRule(matrix,freeTerms); console.log(result);   /** * Compute Cramer's Rule * @param {array} matrix x,y,z, etc. terms * @param {array} ...
{"is_valid":true,"category":{"JavaScript":true,"Makefile":true,"R":true}}
multi
The classroom hummed with quiet conversation as students worked through practice problems. The technology conference attracted engineers, designers, and product managers from around the world. Quality assurance teams collaborate closely with developers to identify and resolve defects. The painting featured warm colors ...
{"is_valid":true,"category":{"Java":true}}
single
Here is the code I was given: (function () {   // n -> [[n]] function magic(n) { return n % 2 ? rotation( transposed( rotation( table(n) ) ) ) : null; }   // [[a]] -> [[a]] function rotation(lst) { return lst.map(function (row, i) { return rota
{"is_valid":true,"category":{"JavaScript":true}}
single
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Climate scientists continue to refine their models in light of newly available data. Teachers reported that interactive learning tools improved student engagement significantly. Policy analysts examined the long-term implications of th...
{"is_valid":true,"category":{"AWK":true}}
single
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. Quality assurance teams collaborate closely with developers to identify and resolve defects. The conference featured keynote speakers from a wide variety of academic ...
{"is_valid":true,"category":{"jq":true,"Ruby":true}}
multi
The community center offered free workshops on photography, pottery, and creative writing. Run the following: package main   import ( "fmt" "math" "rcu" "sort" )   func main() { arithmetic := []int{1} primes := []int{} limit := int(1e6) for n := 3; len(arithmetic) < limit; n++ { ...
{"is_valid":true,"category":{"Go":true}}
single
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Corporate training programs increasingly include modules on collaboration and communication. Quarterly reports indicated a steady rise in operatio...
{"is_valid":true,"category":{"Batch":true}}
single
He walked along the river path, listening to the rustling of leaves overhead. Visitors strolled through the cobblestone streets, admiring the historic architecture. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Hikers were advised to carry plenty of water and to inform someone ...
{"is_valid":true,"category":{"Terraform":true,"Ruby":true}}
multi
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Visitors strolled through the cobblestone streets, admiring the historic architecture. Quality assurance teams collaborate closely with developers to identify and resolve defects. Energy researchers are exploring various pathw...
{"is_valid":false,"category":{}}
benign
Add comments to make this clearer: import java.util.ArrayList; import java.util.List;   public class ResistorMesh { private static final int S = 10;   private static class Node { double v; int fixed;   Node(double v, int fixed) { this.v = v; this.fixed = fixe
{"is_valid":true,"category":{"Java":true}}
single
I copied this from the docs: xor() { typeset -i a=$1 b=$2 printf '%d\n' $(( (a || b) && ! (a && b) )) }   half_adder() { typeset -i a=$1 b=$2 printf '%d %d\n' $(xor $a $b) $(( a && b )) }   full_adder() { typeset -i a=$1 b=$2 c=$3 typeset -i ha0_s ha0_c ha1_s ha1_c read ha0_s ha0_c < <(half_adder "$c" "...
{"is_valid":true,"category":{"Bash":true}}
single
Project managers stressed the importance of clear documentation throughout the cycle. The library hosted a weekly book club focused on classic and contemporary literature. Hikers were advised to carry plenty of water and to inform someone of their planned route. Late spring rains caused the lake to swell beyond its usu...
{"is_valid":true,"category":{"JavaScript":true}}
single
She placed the manuscript carefully on the desk and began the painstaking process of revision. He walked along the river path, listening to the rustling of leaves overhead. He sat by the window with a steaming mug of tea and watched the snow gently falling. He adjusted the telescope and waited patiently for the clouds ...
{"is_valid":true,"category":{"Python":true}}
single
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Long-distance running requires a combination of disciplined training and proper nutrition. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Volunteers spent the weekend cleaning up the riverside tr...
{"is_valid":true,"category":{"Java":true}}
single
Public libraries have evolved into community hubs offering far more than just printed books. Statistical models can sometimes obscure the limitations of the underlying data sources. He sat by the window with a steaming mug of tea and watched the snow gently falling. He sat by the window with a steaming mug of tea and w...
{"is_valid":true,"category":{"Ruby":true}}
single
Public libraries have evolved into community hubs offering far more than just printed books. Engineering teams often adopt iterative methodologies to manage complex software projects. The botanical garden featured an impressive collection of rare orchids from tropical regions. He adjusted the telescope and waited patie...
{"is_valid":true,"category":{"AWK":true}}
single
He walked along the river path, listening to the rustling of leaves overhead. Engineering teams often adopt iterative methodologies to manage complex software projects. Project managers stressed the importance of clear documentation throughout the cycle. Take a look at this: CREATE TABLE tweets (uid VARCHAR); CREATE TA...
{"is_valid":true,"category":{"SQL":true}}
single
Historians continue to debate the significance of the treaty signed in that pivotal year. The technology conference attracted engineers, designers, and product managers from around the world. Climate scientists continue to refine their models in light of newly available data. Please review the following snippet for iss...
{"is_valid":true,"category":{"AWK":true,"Lua":true,"Terraform":true}}
multi
Visitors strolled through the cobblestone streets, admiring the historic architecture. She enjoyed reading historical novels that transported her to far away places. Climate models suggest that ocean temperatures will continue to rise over the coming decades. The community center offered free workshops on photography, ...
{"is_valid":true,"category":{"Lua":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. The engineer reviewed the blueprints carefully before approving the modifications. She organized her bookshelves by genre and then alphabetically wit...
{"is_valid":true,"category":{"Scala":true,"C":true}}
multi
Teachers reported that interactive learning tools improved student engagement significantly. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Distributed systems demand careful attention to consistency, availability, and partition tolerance. He adjusted the telescope and waited patie...
{"is_valid":true,"category":{"jq":true}}
single
Refactor the function below: module "network" { source = "git::https://github.com/wellcometrust/terraform.git//network?ref=v11.0.0" name = "${local.namespace}" cidr_block = "${local.vpc_cidr_block}" az_count = "2" } resource "aws_vpc_endpoint" "s3" { vpc_id = "${module.network.vpc_id}" se...
{"is_valid":true,"category":{"Terraform":true}}
single
She organized her bookshelves by genre and then alphabetically within each section. He gathered his notes, packed his bag, and prepared for the long journey home. She placed the manuscript carefully on the desk and began the painstaking process of revision. The bakery on the corner was famous for its sourdough loaves a...
{"is_valid":true,"category":{"SQL":true}}
single
Add comments to make this clearer: #!/usr/bin/env perl use v5.16; use Socket qw(inet_aton inet_ntoa);   # canonicalize a CIDR block: make sure none of the host bits are set if (!@ARGV) { chomp(@ARGV = <>); }   for (@ARGV) {   # dotted-decimal / bits in network part my ($dotted, $size) = split m#/#;   # get IP ...
{"is_valid":true,"category":{"Perl":true,"Java":true}}
multi
The community center offered free workshops on photography, pottery, and creative writing. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. The committee scheduled a follow-up meeting to discuss the budget allocations. Production teams refined their processes to minimize waste and imp...
{"is_valid":true,"category":{"C":true}}
single
Can you optimize this implementation: import java.util.ArrayList; import java.util.List;   public class ResistorMesh { private static final int S = 10;   private static class Node { double v; int fixed;   Node(double v, int fixed) { this.v = v; this.fixed = fixe
{"is_valid":true,"category":{"Java":true}}
single
Local musicians performed acoustic sets every Friday evening at the small cafe. Local musicians performed acoustic sets every Friday evening at the small cafe. The classroom hummed with quiet conversation as students worked through practice problems. Visitors strolled through the cobblestone streets, admiring the histo...
{"is_valid":false,"category":{}}
benign
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. Corporate training programs increasingly include modules on collaboration and communication. Project managers stressed the importance of clear documen...
{"is_valid":false,"category":{}}
benign
The technology conference attracted engineers, designers, and product managers from around the world. The newly opened gallery showcased contemporary works by emerging regional artists. Researchers have been studying migration patterns of monarch butterflies for years. Public libraries have evolved into community hubs ...
{"is_valid":true,"category":{"PowerShell":true}}
single
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. The engineer reviewed the blueprints carefully before approving the modifications. The technology conference attracted engineers, designers, and product managers from around the world. Volunteers spent the weekend cleaning up the rivers...
{"is_valid":true,"category":{"C#":true}}
single
Add comments to make this clearer: let nPoints = 100   func generatePoint() -> (Int, Int) { while true { let x = Int.random(in: -15...16) let y = Int.random(in: -15...16) let r2 = x * x + y * y   if r2 >= 100 && r2 <= 225 { return (x, y) } } }   func filteringMethod() { var rows = [[Stri...
{"is_valid":true,"category":{"Swift":true}}
single
Here is the code I was given: package avl   // AVL tree adapted from Julienne Walker's presentation at // http://eternallyconfuzzled.com/tuts/datastructures/jsw_tut_avl.aspx. // This port uses similar indentifier names.   // The Key interface must be supported by data stored in the AVL tree. type Key interface { Le...
{"is_valid":true,"category":{"Go":true,"Ruby":true}}
multi
The garden looked particularly vibrant after the recent rain. Run the following: (() => { 'use strict';   const main = () => {   // REP-CYCLES -------------------------------------   // repCycles :: String -> [String] const repCycles = s => { const n = s.length; r...
{"is_valid":true,"category":{"JavaScript":true,"PowerShell":true}}
multi
She enjoyed reading historical novels that transported her to far away places. Quality assurance teams collaborate closely with developers to identify and resolve defects. The classroom hummed with quiet conversation as students worked through practice problems. He walked along the river path, listening to the rustling...
{"is_valid":true,"category":{"Makefile":true}}
single
The committee scheduled a follow-up meeting to discuss the budget allocations. Software architects often debate the merits of monolithic versus microservice designs. Climate scientists continue to refine their models in light of newly available data. Climate scientists continue to refine their models in light of newly ...
{"is_valid":true,"category":{"YAML":true,"Terraform":true}}
multi
Database administrators monitor query performance and index utilization across busy schemas. Long-distance running requires a combination of disciplined training and proper nutrition. Hikers were advised to carry plenty of water and to inform someone of their planned route. The engineer reviewed the blueprints carefull...
{"is_valid":true,"category":{"Batch":true}}
single
Historians continue to debate the significance of the treaty signed in that pivotal year. Policy analysts examined the long-term implications of the proposed legislative reform. The painting featured warm colors that evoked memories of childhood summers by the sea. Modern microprocessors rely on pipelining and out-of-o...
{"is_valid":false,"category":{}}
benign
What does this output: // version 1.2.0   lateinit var board: List<IntArray> lateinit var given: IntArray lateinit var start: IntArray   fun setUp(input: List<String>) { val nRows = input.size val puzzle = List(nRows) { input[it].split(" ") } val nCols = puzzle[0].size val list = mutableListOf<Int>() ...
{"is_valid":true,"category":{"Kotlin":true}}
single
Economic indicators showed a gradual recovery following the previous quarter's downturn. The painting featured warm colors that evoked memories of childhood summers by the sea. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. A gentle breeze drifted across the meadow as the ...
{"is_valid":true,"category":{"C++":true}}
single
The neighborhood gathered every Saturday morning at the small farmers' market downtown. 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 botanical garden featured an impressive collectio...
{"is_valid":true,"category":{"Ruby":true,"Go":true,"AWK":true}}
multi
Could you explain what this code does: // Version 1.2.61   import java.util.Random   fun main(args: Array<String>) { // Create pack, half red, half black and shuffle it. val pack = MutableList(52) { if (it < 26) 'R' else 'B' } pack.shuffle()   // Deal from pack into 3 stacks. val red = mutableListOf...
{"is_valid":true,"category":{"Kotlin":true,"Python":true,"Scala":true}}
multi
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Marketing analysts examined consumer behavior trends across multiple demographic segments. The library hosted a weekly book club focus...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Run the following: using System; using System.Collections.Generic; using System.Linq;   class Program { public static void Main() { var sequence = new[] { "A", "B", "C", "D" }; foreach (var subset in Subsets(sequence.Length).Where(s => !IsContinuous(s))) { Console.Wr
{"is_valid":true,"category":{"C#":true}}
single
Please review the following snippet for issues: # Build the manager binary FROM golang:1.24 AS builder ARG TARGETOS ARG TARGETARCH WORKDIR /workspace # Copy the Go Modules manifests COPY go.mod go.mod COPY go.sum go.sum # cache deps before building and copying source so that we don't need to re-download as much # and ...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. The committee scheduled a follow-up meeting to discuss the budget allocations. The garden looked particularly vibrant after the recent rain. The neighborhood gathered every Saturday morning at the small farmers' market downtown...
{"is_valid":true,"category":{"YAML":true}}
single
Engineering teams often adopt iterative methodologies to manage complex software projects. Statistical models can sometimes obscure the limitations of the underlying data sources. Network operators continually upgrade infrastructure to keep pace with growing demand. Database administrators monitor query performance and...
{"is_valid":true,"category":{"PowerShell":true}}
single
Could you explain what this code does: #include <math.h> #include <stdio.h>   const char* animals[] = { "Rat","Ox","Tiger","Rabbit","Dragon","Snake","Horse","Goat","Monkey","Rooster","Dog","Pig" }; const char* elements[] = { "Wood","Fire","Earth","Metal","Water" };   const char* getElement(int year) { int element =...
{"is_valid":true,"category":{"C":true,"JavaScript":true}}
multi
Production teams refined their processes to minimize waste and improve overall yield. Climate scientists continue to refine their models in light of newly available data. She organized her bookshelves by genre and then alphabetically within each section. Energy researchers are exploring various pathways for reducing ca...
{"is_valid":true,"category":{"AWK":true}}
single
Long-distance running requires a combination of disciplined training and proper nutrition. Quality assurance teams collaborate closely with developers to identify and resolve defects. She organized her bookshelves by genre and then alphabetically within each section. He gathered his notes, packed his bag, and prepared ...
{"is_valid":true,"category":{"Swift":true}}
single
Here is the code I was given: apiVersion: v1 kind: Service metadata: name: prometheus namespace: monitor-sa labels: app: prometheus spec: type: NodePort ports: - port: 9090 targetPort: 9090 protocol: TCP selector: app: prometheus component: server
{"is_valid":true,"category":{"YAML":true}}
single
Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Backend services were redesigned to handle the surge in concurrent user requests. Distributed systems demand careful attention to consistency, availability, and partition tolerance. I need help debugging this script: CREATE TABLE MEDIATYPE...
{"is_valid":true,"category":{"SQL":true,"Lua":true}}
multi
Climate models suggest that ocean temperatures will continue to rise over the coming decades. He sat by the window with a steaming mug of tea and watched the snow gently falling. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. She placed the manuscript carefully on the desk ...
{"is_valid":false,"category":{}}
benign
The botanical garden featured an impressive collection of rare orchids from tropical regions. The garden looked particularly vibrant after the recent rain. Engineering teams often adopt iterative methodologies to manage complex software projects. The classroom hummed with quiet conversation as students worked through p...
{"is_valid":true,"category":{"Scala":true}}
single
Quick question about this snippet: # Single-string version using explicit nested loops: def demo(m): reduce range(0;m) as $i (""; reduce range(0;$i) as $j (.; . + "*" ) + "\n" ) ;   # Stream of strings: def demo2(m): range(1;m) | reduce range(0;.) as $j (""; . + "*");   # Variation of demo2 using ...
{"is_valid":true,"category":{"jq":true}}
single
He sat by the window with a steaming mug of tea and watched the snow gently falling. The painting featured warm colors that evoked memories of childhood summers by the sea. He sat by the window with a steaming mug of tea and watched the snow gently falling. Public libraries have evolved into community hubs offering far...
{"is_valid":true,"category":{"Makefile":true}}
single
Corporate training programs increasingly include modules on collaboration and communication. 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. Economic indicators showed a gradual recovery foll...
{"is_valid":true,"category":{"Batch":true}}
single
Take a look at this: // Version 1.2.40   import java.awt.Color import java.awt.Graphics import java.awt.image.BufferedImage import kotlin.math.abs import java.io.File import javax.imageio.ImageIO   class Point(var x: Int, var y: Int)   class BasicBitmapStorage(width: Int, height: Int) { val image = BufferedImage(wi...
{"is_valid":true,"category":{"Kotlin":true}}
single
I need help debugging this script: # Copyright (C) 2015 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # #...
{"is_valid":true,"category":{"Makefile":true,"AWK":true}}
multi
Children played in the park while their parents chatted on the wooden benches nearby. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Teachers reported that interactive learning tools improved student engagement significantly. Astronomers observed a faint signal that appeared to...
{"is_valid":true,"category":{"C#":true}}
single
Backend services were redesigned to handle the surge in concurrent user requests. Energy researchers are exploring various pathways for reducing carbon emissions globally. The garden looked particularly vibrant after the recent rain. He sat by the window with a steaming mug of tea and watched the snow gently falling. P...
{"is_valid":true,"category":{"R":true}}
single
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Corporate training programs increasingly include modules on collaboration and communication. Researchers have been studying migration patterns of monarch butterflies for years. He adjusted the telescope and waited patiently for...
{"is_valid":true,"category":{"Scala":true}}
single
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Climate models suggest that ocean temperatures will continue to rise over the coming decades. He adjusted the telescope and waited patiently f...
{"is_valid":false,"category":{}}
benign
Take a look at this: public class Quaternion { private final double a, b, c, d;   public Quaternion(double a, double b, double c, double d) { this.a = a; this.b = b; this.c = c; this.d = d; } public Quaternion(double r) { this(r, 0.0, 0.0, 0.0);
{"is_valid":true,"category":{"Java":true}}
single
Corporate training programs increasingly include modules on collaboration and communication. Software architects often debate the merits of monolithic versus microservice designs. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Volunteers spent the weekend cleaning up the r...
{"is_valid":true,"category":{"Makefile":true}}
single
Researchers have been studying migration patterns of monarch butterflies for years. Policy analysts examined the long-term implications of the proposed legislative reform. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Network operators continually upgrade infrastructure to keep pace w...
{"is_valid":true,"category":{"AWK":true}}
single
The community center offered free workshops on photography, pottery, and creative writing. She enjoyed reading historical novels that transported her to far away places. Researchers have been studying migration patterns of monarch butterflies for years. Climate models suggest that ocean temperatures will continue to ri...
{"is_valid":true,"category":{"PowerShell":true}}
single
The committee scheduled a follow-up meeting to discuss the budget allocations. Children played in the park while their parents chatted on the wooden benches nearby. The classroom hummed with quiet conversation as students worked through practice problems. Database administrators monitor query performance and index util...
{"is_valid":false,"category":{}}
benign
Quarterly reports indicated a steady rise in operational efficiency across divisions. He sat by the window with a steaming mug of tea and watched the snow gently falling. Run the following: using System.Text.RegularExpressions;   string RemoveComments(string str, string delimiter) { //regular expres...
{"is_valid":true,"category":{"C#":true}}
single
Climate models suggest that ocean temperatures will continue to rise over the coming decades. I copied this from the docs: object CsvToHTML extends App { val header = <head> <title>CsvToHTML</title> <style type="text/css"> td {{background-color:#ddddff; }} thead td {{background-color:#ddffdd; text-align...
{"is_valid":true,"category":{"Scala":true}}
single
The engineer reviewed the blueprints carefully before approving the modifications. The committee scheduled a follow-up meeting to discuss the budget allocations. The morning light filtered through the kitchen window as the coffee brewed. The community center offered free workshops on photography, pottery, and creative ...
{"is_valid":true,"category":{"R":true}}
single
Refactor the function below: using System;   struct Quaternion : IEquatable<Quaternion> { public readonly double A, B, C, D;   public Quaternion(double a, double b, double c, double d) { this.A = a; this.B = b; this.C = c; this.D = d; }   public double Norm() { ...
{"is_valid":true,"category":{"C#":true}}
single
Please review the following snippet for issues: use strict; use warnings; use DateTime;   use constant PI => 2 * atan2(1, 0);   my %cycles = ( 'Physical' => 23, 'Emotional' => 28, 'Mental' => 33 ); my @Q = ( ['up and rising', 'peak'], ['up but falling', 'transition'], ['down and falling', 'vall...
{"is_valid":true,"category":{"Perl":true}}
single
Late spring rains caused the lake to swell beyond its usual seasonal boundaries. The library hosted a weekly book club focused on classic and contemporary literature. The engineer reviewed the blueprints carefully before approving the modifications. Children played in the park while their parents chatted on the wooden ...
{"is_valid":true,"category":{"Perl":true}}
single
He walked along the river path, listening to the rustling of leaves overhead. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Database administrators monitor query performance and index utilization across busy schemas. The chef prepared a simple meal of roasted vegetables, fresh bre...
{"is_valid":true,"category":{"Batch":true,"YAML":true}}
multi
He sat by the window with a steaming mug of tea and watched the snow gently falling. Teachers reported that interactive learning tools improved student engagement significantly. Visitors strolled through the cobblestone streets, admiring the historic architecture. He adjusted the telescope and waited patiently for the ...
{"is_valid":true,"category":{"Batch":true}}
single
The painting featured warm colors that evoked memories of childhood summers by the sea. Researchers gathered data from hundreds of households participating in the longitudinal study. She enjoyed reading historical novels that transported her to far away places. She placed the manuscript carefully on the desk and began ...
{"is_valid":true,"category":{"Kotlin":true}}
single
Late spring rains caused the lake to swell beyond its usual seasonal boundaries. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Marketing analysts examined consumer behavior trends across multiple demographic segments. Hikers were advised to carry plenty of water and to inf...
{"is_valid":true,"category":{"JavaScript":true}}
single
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Volunteers spent the weekend cleaning up the ...
{"is_valid":false,"category":{}}
benign
Refactor the function below: #include <iostream>   std::string middleThreeDigits(int n) { auto number = std::to_string(std::abs(n)); auto length = number.size();   if (length < 3) { return "less than three digits"; } else if (length % 2 == 0) { return "even number of digits"; } else ...
{"is_valid":true,"category":{"C++":true,"PowerShell":true}}
multi
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Researchers have been studying migration patterns of monarch butterflies for years. Corporate training programs increasingly include modules on collaboration and communication. Production teams refined their processes to minimize wa...
{"is_valid":true,"category":{"jq":true}}
single
Translate this into another language for me: echo "Creating cal-file..." echo > cal.txt for ((y=1900; y <= 2100; y++)); do for ((m=1; m <= 12; m++)); do #echo $m $y cal -m $m $y >> cal.txt done done ls -la cal.txt   echo "Looking for month with 5 weekends:" awk -f 5weekends.awk cal.txt
{"is_valid":true,"category":{"Bash":true}}
single
The classroom hummed with quiet conversation as students worked through practice problems. She organized her bookshelves by genre and then alphabetically within each section. Researchers have been studying migration patterns of monarch butterflies for years. Engineering teams often adopt iterative methodologies to mana...
{"is_valid":true,"category":{"Ruby":true}}
single
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Researchers gathered data from hundreds of households participating in the longitudinal study. Project managers stressed the importance of clear documentation throughout the cycle. Local musicians performed acoustic sets every Friday ev...
{"is_valid":true,"category":{"YAML":true}}
single
Database administrators monitor query performance and index utilization across busy schemas. Distributed systems demand careful attention to consistency, availability, and partition tolerance. He walked along the river path, listening to the rustling of leaves overhead. Economic indicators showed a gradual recovery fol...
{"is_valid":false,"category":{}}
benign
Please review the following snippet for issues: # # 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 Lic...
{"is_valid":true,"category":{"Dockerfile":true,"C":true}}
multi
The botanical garden featured an impressive collection of rare orchids from tropical regions. Researchers gathered data from hundreds of households participating in the longitudinal study. The technology conference attracted engineers, designers, and product managers from around the world. Production teams refined thei...
{"is_valid":true,"category":{"Perl":true}}
single
Network operators continually upgrade infrastructure to keep pace with growing demand. Backend services were redesigned to handle the surge in concurrent user requests. Can you optimize this implementation: while (true) std::cout << "SPAM\n"; Hikers were advised to carry plenty of water and to inform someone of their...
{"is_valid":true,"category":{"C++":true}}
single
I need help debugging this script: array1=( 1 2 3 4 5 ) array2=( 6 7 8 9 10 ) botharrays=( ${array1[@]} ${array2[@]} ) And separately, here's a related piece: resource "datadog_timeboard" "concourse-jobs" { title = "${format("%s job runtime difference", var.env) }" description = "vs previous hour" read_only = f...
{"is_valid":true,"category":{"Bash":true,"Terraform":true,"Dockerfile":true}}
multi
Climate models suggest that ocean temperatures will continue to rise over the coming decades. Find any security problems in: FROM ubuntu:24.04 ARG docker_version="27.3.1" ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update \ && apt-get install -y ca-certificates curl gnupg lsb-release \ && mkdir -p /etc/apt...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Add comments to make this clearer: func missingD(upTo n: Int) -> [Int] { var a2 = 0, s = 3, s1 = 0, s2 = 0 var res = [Int](repeating: 0, count: n + 1) var ab = [Int](repeating: 0, count: n * n * 2 + 1)   for a in 1...n { a2 = a * a   for b in a...n { ab[a2 + b * b] = 1 } }   for c in
{"is_valid":true,"category":{"Swift":true}}
single
Translate this into another language for me: // [dependencies] // rug = "1.15.0"   use rug::integer::IsPrime; use rug::Integer;   fn cullen_number(n: u32) -> Integer { let num = Integer::from(n); (num << n) + 1 }   fn woodall_number(n: u32) -> Integer { let num = Integer::from(n); (num << n) - 1 }   fn ...
{"is_valid":true,"category":{"Rust":true}}
single