prompt
large_stringlengths
150
7.97k
target
large_stringlengths
32
83
kind
large_stringclasses
3 values
He walked along the river path, listening to the rustling of leaves overhead. The morning light filtered through the kitchen window as the coffee brewed. The committee scheduled a follow-up meeting to discuss the budget allocations. Statistical models can sometimes obscure the limitations of the underlying data sources...
{"is_valid":false,"category":{}}
benign
Historians continue to debate the significance of the treaty signed in that pivotal year. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. The library hosted a weekly book club focused on classic and contemporary literature. The bakery on the corner was famous for its sourdough loave...
{"is_valid":true,"category":{"AWK":true}}
single
Climate models suggest that ocean temperatures will continue to rise over the coming decades. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Network operators continually upgrade infrastructure to keep pace with growing demand. She placed the manuscript carefully on the desk and...
{"is_valid":true,"category":{"Ruby":true,"PowerShell":true}}
multi
The community center offered free workshops on photography, pottery, and creative writing. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. I copied this from the docs: USB_VID = 0x303A USB_PID = 0x80AA USB_PRODUCT = "Franzininho WIFI Wrover" USB_MANUFACTURER = "Espressif" I...
{"is_valid":true,"category":{"Makefile":true}}
single
The community center offered free workshops on photography, pottery, and creative writing. The engineer reviewed the blueprints carefully before approving the modifications. Translate this into another language for me: # Chaos Game (Sierpinski triangle) 2/15/17 aev # pChaosGameS3(size, lim, clr, fn, ttl) # Where: size...
{"is_valid":true,"category":{"R":true}}
single
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Engineering teams often adopt iterative methodologies to manage complex software projects. He gathered his notes, packed his bag, and prepared for the long journey home. He adjusted the telescope and waited patiently for the clouds to ...
{"is_valid":true,"category":{"C":true}}
single
The engineer reviewed the blueprints carefully before approving the modifications. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Add comments to make this clearer: require 'benchmark' Document = Struct.new(:id,:a,:b,:c) documents_a = [] documents_h = {} 1.upto(10_000) do |n| ...
{"is_valid":true,"category":{"Ruby":true}}
single
Network operators continually upgrade infrastructure to keep pace with growing demand. Researchers have been studying migration patterns of monarch butterflies for years. The classroom hummed with quiet conversation as students worked through practice problems. Public libraries have evolved into community hubs offering...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Please review the following snippet for issues: use std::collections::HashMap; use std::collections::HashSet;   type Cell = (i32, i32); type Colony = HashSet<Cell>;   fn print_colony(col: &Colony, width: i32, height: i32) { for y in 0..height { for x in 0..width { print!("{} ", i...
{"is_valid":true,"category":{"Rust":true}}
single
Software architects often debate the merits of monolithic versus microservice designs. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Engineering teams often adopt iterative methodologies to manage complex software projects. Statistical models can sometimes obscure the limi...
{"is_valid":true,"category":{"Lua":true}}
single
The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Hikers were advised to carry plenty of water and to inform someone of their planned route. Climate models suggest that ocean temperatures will continue to rise over the coming decades. A gentle breeze drifted across the meadow ...
{"is_valid":true,"category":{"Batch":true}}
single
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Can you optimize this implementation: function tm(d,s,e,i,b,t,... r) { document.write(d, '<br>') if (i<0||i>=t.length) return var re=new RegExp(b,'g') write('*',s,i,t=t.split('')) var p={}; r.forEach(e=>((s,r,w,m,n)=>{p[s+'.'+r...
{"is_valid":true,"category":{"JavaScript":true}}
single
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Software architects often debate the merits of monolithic versus microservice designs. Visitors strolled through the cobblestone streets, admiring the historic architecture. He walked along the river path, listening to the rust...
{"is_valid":false,"category":{}}
benign
Distributed systems demand careful attention to consistency, availability, and partition tolerance. He walked along the river path, listening to the rustling of leaves overhead. She organized her bookshelves by genre and then alphabetically within each section. Teachers reported that interactive learning tools improved...
{"is_valid":true,"category":{"Lua":true}}
single
He sat by the window with a steaming mug of tea and watched the snow gently falling. He walked along the river path, listening to the rustling of leaves overhead. Hikers were advised to carry plenty of water and to inform someone of their planned route. Visitors strolled through the cobblestone streets, admiring the hi...
{"is_valid":true,"category":{"Lua":true}}
single
Corporate training programs increasingly include modules on collaboration and communication. Marketing analysts examined consumer behavior trends across multiple demographic segments. Local potters fired their kilns once a month, producing colorful ceramics for the shops. The bakery on the corner was famous for its sou...
{"is_valid":false,"category":{}}
benign
Children played in the park while their parents chatted on the wooden benches nearby. Software architects often debate the merits of monolithic versus microservice designs. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Volunteers spent the weekend cleaning up the riverside...
{"is_valid":true,"category":{"SQL":true}}
single
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. Backend services were redesigned to handle the surge in concurrent user requests. Climate models suggest that ocean temperatures will continue to...
{"is_valid":true,"category":{"Rust":true}}
single
I need help debugging this script: function zigzag( [int] $n ) { $zigzag=New-Object 'Object[,]' $n,$n $nodd = $n -band 1 $nm1 = $n - 1 $i=0; $j=0; foreach( $k in 0..( $n * $n - 1 ) ) { $zigzag[$i,$j] = $k $iodd = $i -band 1 $jodd = $j -band 1 if( ( $j -eq $nm1 ) -...
{"is_valid":true,"category":{"PowerShell":true}}
single
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. The technology conference attracted engineers, designers, and product managers from around the world. Teachers reported that interactive learning tools improved student engagement significantly. Researchers gathered data from hundreds o...
{"is_valid":true,"category":{"C":true}}
single
Researchers gathered data from hundreds of households participating in the longitudinal study. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. The library hosted a weekly book club focused on...
{"is_valid":true,"category":{"Bash":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. Local musicians performed acoustic sets every Friday evening at the small cafe. She drafted a detailed agenda for the upcoming retreat an...
{"is_valid":true,"category":{"Rust":true,"R":true}}
multi
Local musicians performed acoustic sets every Friday evening at the small cafe. She organized her bookshelves by genre and then alphabetically within each section. The committee scheduled a follow-up meeting to discuss the budget allocations. Historians continue to debate the significance of the treaty signed in that p...
{"is_valid":true,"category":{"Scala":true}}
single
I copied this from the docs: apiVersion: v1 kind: PersistentVolumeClaim metadata: name: mysql-pv-claim labels: app: mysql8 spec: accessModes: - ReadWriteOnce resources: requests: storage: 5Gi
{"is_valid":true,"category":{"YAML":true}}
single
Researchers have been studying migration patterns of monarch butterflies for years. Backend services were redesigned to handle the surge in concurrent user requests. The library hosted a weekly book club focused on classic and contemporary literature. The library hosted a weekly book club focused on classic and contemp...
{"is_valid":true,"category":{"Swift":true,"C#":true}}
multi
He sat by the window with a steaming mug of tea and watched the snow gently falling. The conference featured keynote speakers from a wide variety of academic backgrounds. The garden looked particularly vibrant after the recent rain. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Sh...
{"is_valid":true,"category":{"Kotlin":true,"Swift":true}}
multi
Could you explain what this code does: // [dependencies] // primal = "0.2" // circular-queue = "0.2.5"   use circular_queue::CircularQueue;   fn main() { let max = 1000035; let max_group_size = 5; let diff = 6; let max_groups = 5; let max_unsexy = 10;   let sieve = primal::Sieve::new(max + diff
{"is_valid":true,"category":{"Rust":true}}
single
Add comments to make this clearer: function rangeExtraction(list) { var len = list.length; var out = []; var i, j;   for (i = 0; i < len; i = j + 1) { // beginning of range or single out.push(list[i]);   // find end of range for (var j = i + 1; j < len && list[j] == list[j-1] + 1; j++); j--;...
{"is_valid":true,"category":{"JavaScript":true}}
single
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. I copied this from the docs: var obj = { foo: 1, bar: function () { return this.foo; } }; obj.bar(); // returns 1
{"is_valid":true,"category":{"JavaScript":true}}
single
She enjoyed reading historical novels that transported her to far away places. She organized her bookshelves by genre and then alphabetically within each section. The botanical garden featured an impressive collection of rare orchids from tropical regions. The conference featured keynote speakers from a wide variety of...
{"is_valid":true,"category":{"SQL":true}}
single
She organized her bookshelves by genre and then alphabetically within each section. She enjoyed reading historical novels that transported her to far away places. Production teams refined their processes to minimize waste and improve overall yield. Engineering teams often adopt iterative methodologies to manage complex...
{"is_valid":true,"category":{"Rust":true,"Batch":true}}
multi
Local potters fired their kilns once a month, producing colorful ceramics for the shops. She enjoyed reading historical novels that transported her to far away places. Quality assurance teams collaborate closely with developers to identify and resolve defects. She drafted a detailed agenda for the upcoming retreat and ...
{"is_valid":true,"category":{"SQL":true}}
single
The morning light filtered through the kitchen window as the coffee brewed. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. He walked along the river path, listening to the rustling of ...
{"is_valid":true,"category":{"Python":true}}
single
Please review the following snippet for issues: CFLAGS_M32=-m32 CFLAGS_M64=-m64 ASM_INCLUDES = -Icodec/common/x86/ ifeq (, $(ENABLE64BIT)) ifeq ($(ARCH), x86_64) ENABLE64BIT=Yes endif endif ifeq ($(ENABLE64BIT), Yes) CFLAGS += $(CFLAGS_M64) LDFLAGS += $(CFLAGS_M64) ASMFLAGS_PLATFORM = -DUNIX64 else CFLAGS += $(CFLAGS_M...
{"is_valid":true,"category":{"Makefile":true,"jq":true}}
multi
Policy analysts examined the long-term implications of the proposed legislative reform. Find any security problems in: #!/bin/sh num=0 while true; do echo $num num=`expr $num + 1` done We also have this other snippet: // Version 1.2.40   import java.awt.Color import java.awt.Graphics import java.awt.image.Buffered...
{"is_valid":true,"category":{"Bash":true,"Kotlin":true}}
multi
Find any security problems in: Largest_int_from_concat_ints <- function(vec){   #recursive function for computing all permutations perm <- function(vec) { n <- length(vec) if (n == 1) return(vec) else { x <- NULL for (i in 1:n){ x <- rbind(x, cbind(vec[i], perm(vec[-i]))) ...
{"is_valid":true,"category":{"R":true,"Scala":true}}
multi
The garden looked particularly vibrant after the recent rain. Project managers stressed the importance of clear documentation throughout the cycle. Policy analysts examined the long-term implications of the proposed legislative reform. Software architects often debate the merits of monolithic versus microservice design...
{"is_valid":true,"category":{"Dockerfile":true}}
single
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Local musicians performed acoustic sets every Friday evening at the small cafe. Hikers were advised to carry plenty of water and to inform someone of their planned route. The garden looked particularly vibrant after the recent rain. He...
{"is_valid":true,"category":{"Swift":true}}
single
Translate this into another language for me: import java.util.Random; import java.util.Scanner;   public class MagicEightBall {   public static void main(String[] args) { new MagicEightBall().run(); }   private static String[] ANSWERS = new String[] {"It is certain.", "It is decidedly so.", "Without...
{"is_valid":true,"category":{"Java":true}}
single
Here is the code I was given: fn merge(in1: &[i32], in2: &[i32], out: &mut [i32]) { let (left, right) = out.split_at_mut(in1.len()); left.clone_from_slice(in1); right.clone_from_slice(in2); }   // least significant digit radix sort fn radix_sort(data: &mut [i32]) { for bit in 0..31 { // types of...
{"is_valid":true,"category":{"Rust":true}}
single
Public libraries have evolved into community hubs offering far more than just printed books. The newly opened gallery showcased contemporary works by emerging regional artists. What does this output: function binner(limits, data) local bins = setmetatable({}, {__index=function() return 0 end}) local n, flr = #limit...
{"is_valid":true,"category":{"Lua":true}}
single
The technology conference attracted engineers, designers, and product managers from around the world. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Quarterly reports indicated a steady rise in operational efficiency across divisions. Engineering teams often adopt iterative methodol...
{"is_valid":true,"category":{"Lua":true}}
single
She organized her bookshelves by genre and then alphabetically within each section. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Quarterly reports indicated a steady rise in operational efficiency across divisions. Economic indicators showed a gradual recovery following t...
{"is_valid":true,"category":{"Terraform":true,"Perl":true}}
multi
The morning light filtered through the kitchen window as the coffee brewed. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Engineering teams often adopt iterative methodologies to manage complex software projects. Policy analysts examined the long-term implications of the proposed...
{"is_valid":true,"category":{"Lua":true}}
single
Quality assurance teams collaborate closely with developers to identify and resolve defects. The community center offered free workshops on photography, pottery, and creative writing. Climate models suggest that ocean temperatures will continue to rise over the coming decades. The classroom hummed with quiet conversati...
{"is_valid":true,"category":{"JavaScript":true}}
single
I need help debugging this script: use std::ops::{BitOrAssign, Shr};   fn set_right_adjacent_bits<E: Clone + BitOrAssign + Shr<usize, Output = E>>(b: &mut E, n: usize) { for _ in 1..=n { *b |= b.clone() >> 1; } }   macro_rules! test { ( $t:ident, $n:expr, $e:expr, $g:ty, $b:expr, $c:expr$(,)? ) => {...
{"is_valid":true,"category":{"Rust":true}}
single
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. 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. The bakery on the corner was famous for its sourdough loa...
{"is_valid":true,"category":{"Lua":true}}
single
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. Software architects often debate the merits of monolithic versus microservice designs. She placed the manuscript carefully on the desk ...
{"is_valid":false,"category":{}}
benign
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Climate scientists continue to refine their models in light of newly available data. Production teams refined their processes to minimize waste and improve overall yield. Corporate training programs increasingly include modules on c...
{"is_valid":true,"category":{"C++":true,"Ruby":true}}
multi
Public libraries have evolved into community hubs offering far more than just printed books. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. She enjoyed reading historical novels that transported her to far away places. Backend services were redesigned to handle the surge i...
{"is_valid":true,"category":{"PowerShell":true}}
single
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. He walked along the river path, listening to the rustling of leaves overhead. He walked along the river path, listening to the rustling of leaves overhead. She drafted a detailed agenda for the upcoming retreat and circulated it t...
{"is_valid":false,"category":{}}
benign
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. Researchers have been studying migration patterns of monarch butterflies for years. Researchers have been studying migration patterns of monarch butte...
{"is_valid":true,"category":{"Dockerfile":true}}
single
The botanical garden featured an impressive collection of rare orchids from tropical regions. 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. Software architects often debate the mer...
{"is_valid":false,"category":{}}
benign
The garden looked particularly vibrant after the recent rain. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Corporate training programs increasingly include modules on collaboration and communication. Quarterly reports indicated a steady rise in operational efficiency across di...
{"is_valid":true,"category":{"Swift":true}}
single
Run the following: package main   import ( "fmt" big "github.com/ncw/gmp" )   // returns true if k is a sequence member, false otherwise func a(k int64) bool { if k == 1 { return false } bk := big.NewInt(k) for m := uint(1); m < uint(k); m++ { n := big.NewInt(1) n.Lsh(n, ...
{"is_valid":true,"category":{"Go":true}}
single
Policy analysts examined the long-term implications of the proposed legislative reform. Corporate training programs increasingly include modules on collaboration and communication. Backend services were redesigned to handle the surge in concurrent user requests. Engineering teams often adopt iterative methodologies to ...
{"is_valid":true,"category":{"jq":true,"C":true}}
multi
Hikers were advised to carry plenty of water and to inform someone of their planned route. The conference featured keynote speakers from a wide variety of academic backgrounds. Policy analysts examined the long-term implications of the proposed legislative reform. Nutritionists generally recommend a balanced diet rich ...
{"is_valid":false,"category":{}}
benign
Policy analysts examined the long-term implications of the proposed legislative reform. Economic indicators showed a gradual recovery following the previous quarter's downturn. Network operators continually upgrade infrastructure to keep pace with growing demand. Production teams refined their processes to minimize was...
{"is_valid":true,"category":{"Kotlin":true}}
single
Find any security problems in: # # This terraform plan defines the resources necessary to host plugins_jenkins_io.jenkins.io # resource "azurerm_resource_group" "plugins_jenkins_io" { name = "${var.prefix}plugins_jenkins_io" location = "${var.location}" tags { env = "${var.prefix}" } } resource "azur...
{"is_valid":true,"category":{"Terraform":true}}
single
The newly opened gallery showcased contemporary works by emerging regional artists. Run the following: apiVersion: v1 kind: Service metadata: name: kibana namespace: efk-log labels: app: kibana spec: ports: - port: 5601 selector: app: kibana Corporate training programs increasingly include modules o...
{"is_valid":true,"category":{"YAML":true}}
single
Historians continue to debate the significance of the treaty signed in that pivotal year. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. The garden looked particularly vibrant after the recent rain. She organized her bookshelves by genre and then alphabetically within each ...
{"is_valid":true,"category":{"Terraform":true,"C":true,"Go":true}}
multi
Refactor the function below: .PHONY: dist-rpm RPM_WORKSPACE=$(shell pwd)/build RPM_DIR=$(RPM_WORKSPACE)/rpmbuild RPM_VER=$(shell echo $(VERSION) | awk -F_ '{ print $$1 }') RPM_REL=$(shell echo $(VERSION) | awk -F_ '{ sub(/g/, "", $$3); print $$2"_"$$3 }') dist-rpm: dist rm -rf $(RPM_WORKSPACE) mkdir -p $(RPM_DIR) ...
{"is_valid":true,"category":{"Makefile":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. He sat by the window with a steaming mug of tea and watched the snow gently falling. The technology conference attracted engineers, designers, and product m...
{"is_valid":true,"category":{"Ruby":true}}
single
Add comments to make this clearer: from itertools import count, islice   def primes(_cache=[2, 3]): yield from _cache for n in count(_cache[-1]+2, 2): if isprime(n): _cache.append(n) yield n   def isprime(n, _seen={0: False, 1: False}): def _isprime(n): for p in
{"is_valid":true,"category":{"Python":true}}
single
Hikers were advised to carry plenty of water and to inform someone of their planned route. Database administrators monitor query performance and index utilization across busy schemas. The newly opened gallery showcased contemporary works by emerging regional artists. The classroom hummed with quiet conversation as stud...
{"is_valid":true,"category":{"Batch":true}}
single
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Teachers reported that interactive learning tools improved student engagement significantly. Project managers stressed the importance of clear documentation throughout the cycle. She enjoyed reading historical novels that transporte...
{"is_valid":false,"category":{}}
benign
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. He sat by the window with a steaming mug of tea and watched the snow gently falling. Quarterly reports indicated a steady rise in operational efficiency across divisions. The newly opened gallery showcased contemporary works by emer...
{"is_valid":false,"category":{}}
benign
Statistical models can sometimes obscure the limitations of the underlying data sources. He walked along the river path, listening to the rustling of leaves overhead. Economic indicators showed a gradual recovery following the previous quarter's downturn. Hikers were advised to carry plenty of water and to inform someo...
{"is_valid":true,"category":{"Scala":true}}
single
Run the following: public class JaroDistance { public static double jaro(String s, String t) { int s_len = s.length(); int t_len = t.length();   if (s_len == 0 && t_len == 0) return 1;   int match_distance = Integer.max(s_len, t_len) / 2 - 1;   boolean[] s_matches = new boole...
{"is_valid":true,"category":{"Java":true}}
single
The conference featured keynote speakers from a wide variety of academic backgrounds. Visitors strolled through the cobblestone streets, admiring the historic architecture. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. The chef prepared a simple meal of roasted vegetables, fresh bread...
{"is_valid":true,"category":{"C++":true,"Ruby":true,"Go":true}}
multi
The painting featured warm colors that evoked memories of childhood summers by the sea. Teachers reported that interactive learning tools improved student engagement significantly. He sat by the window with a steaming mug of tea and watched the snow gently falling. What does this output: object LIFCI extends App {   ...
{"is_valid":true,"category":{"Scala":true}}
single
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. He gathered his notes, packed his bag, and prepared for the long journey home. Historians continue to debate the significance of the treaty signed in that pivotal year. Production teams refined their processes to minimize waste...
{"is_valid":true,"category":{"PowerShell":true}}
single
Translate this into another language for me: $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 (...
{"is_valid":true,"category":{"PowerShell":true}}
single
The newly opened gallery showcased contemporary works by emerging regional artists. Historians continue to debate the significance of the treaty signed in that pivotal year. Statistical models can sometimes obscure the limitations of the underlying data sources. Network operators continually upgrade infrastructure to k...
{"is_valid":true,"category":{"jq":true}}
single
The painting featured warm colors that evoked memories of childhood summers by the sea. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. The newly opened gallery showcased contemporary works by emerging regional artists. The garden looked particularly vibrant after the recent rain...
{"is_valid":true,"category":{"Bash":true}}
single
Here is the code I was given: // version 1.1.4   class Node { val edges = mutableMapOf<Char, Node>() // edges (or forward links) var link: Node? = null // suffix link (backward links) var len = 0 // the length of the node }   class Eertree(str: String) { val...
{"is_valid":true,"category":{"Kotlin":true}}
single
Find any security problems in: terraform { backend "gcs" {} } provider "google" { project = "${var.project_id}" credentials = "${var.serviceaccount_key}" } variable "project_id" {} variable "serviceaccount_key" {} variable "keyring_name" {} variable "encryption_keys" { type = "list" } variable "storage_...
{"is_valid":true,"category":{"Terraform":true}}
single
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. He gathered his notes, packed his bag, and prepared for the long journey home. Economic indicators showed a gradual recovery following the previous quarter's downturn. The library hosted a weekly book club focused on classic a...
{"is_valid":true,"category":{"Terraform":true,"Rust":true,"SQL":true}}
multi
Refactor the function below: package org.rosettacode;   import java.util.Collections; import java.util.Arrays;   /* * recursive backtracking algorithm * shamelessly borrowed from the ruby at * http://weblog.jamisbuck.org/2010/12/27/maze-generation-recursive-backtracking */ public class MazeGenerator { private fina...
{"is_valid":true,"category":{"Java":true}}
single
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. He walked along the river path, listening to the rustling of leaves overhead. Energy researchers are exploring various pathways for reducing carbon emissions globally. Farmers depend on accurate weather forecasts to plan their ...
{"is_valid":false,"category":{}}
benign
Could you explain what this code does: FROM steeve/cross-compiler:base MAINTAINER Steeve Morin "steeve.morin@gmail.com" ENV CROSS_TRIPLE arm-linux-gnueabihf ENV CROSS_ROOT /usr/${CROSS_TRIPLE} ENV PATH ${PATH}:${CROSS_ROOT}/bin ENV LD_LIBRARY_PATH ${CROSS_ROOT}/lib:${LD_LIBRARY_PATH} ENV RASPBERRYPI_TOOLS_COMMIT 9c3d7...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Local musicians performed acoustic sets every Fr...
{"is_valid":false,"category":{}}
benign
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 library hosted a weekly book club focused on classic a...
{"is_valid":false,"category":{}}
benign
What does this output: #include <stdio.h> #include <math.h>   // The following function is for odd numbers ONLY // Please use "for (unsigned i = 2, j; i*i <= n; i ++)" for even and odd numbers unsigned sum_proper_divisors(const unsigned n) { unsigned sum = 1; for (unsigned i = 3, j; i < sqrt(n)+1;
{"is_valid":true,"category":{"C":true}}
single
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Long-distance running requires a combination of disciplined training and proper nutrition. The library hosted a weekly book club focused ...
{"is_valid":false,"category":{}}
benign
Take a look at this: #include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> #include <sys/time.h>   #define PI 3.14159265 const char * shades = " .:-*ca&#%@";   /* distance of (x, y) from line segment (0, 0)->(x0, y0) */ double dist(double x, double y, double x0, double y0) { double l = (x * x0 + y...
{"is_valid":true,"category":{"C":true}}
single
Add comments to make this clearer: cities = [ {"UK", "London"}, {"US", "New York"}, {"US", "Birmingham"}, {"UK", "Birmingham"} ]   IO.inspect Enum.sort(cities) IO.inspect Enum.sort(cities, fn a,b -> elem(a,0) >= elem(b,0) end) IO.inspect Enum.sort_by(cities, fn {country, _city} -> count...
{"is_valid":true,"category":{"C":true}}
single
The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Astronomers observed a faint signal that appeared to originate from a distant galaxy. She placed the manuscript carefully on the desk and began the painstaking process of revision. Statistical models can sometimes obscure the l...
{"is_valid":true,"category":{"Swift":true,"C":true}}
multi
Policy analysts examined the long-term implications of the proposed legislative reform. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Engineering teams often adopt iterative meth...
{"is_valid":false,"category":{}}
benign
I copied this from the docs: terraform { backend "gcs" {} } variable "nonce" {} variable "secrets_dir" {} variable "charts_dir" {} module "cert-manager" { source = "/exekube-modules/helm-release" tiller_namespace = "kube-system" client_auth = "${var.secrets_dir}/kube-system/helm-tls"
{"is_valid":true,"category":{"Terraform":true}}
single
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. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Teachers reported that interactive learning tools imp...
{"is_valid":false,"category":{}}
benign
Database administrators monitor query performance and index utilization across busy schemas. Local musicians performed acoustic sets every Friday evening at the small cafe. Local musicians performed acoustic sets every Friday evening at the small cafe. Engineering teams often adopt iterative methodologies to manage com...
{"is_valid":false,"category":{}}
benign
Software architects often debate the merits of monolithic versus microservice designs. Climate models suggest that ocean temperatures will continue to rise over the coming decades. The community center offered free workshops on photography, pottery, and creative writing. I copied this from the docs: ifneq ($(strip $(US...
{"is_valid":true,"category":{"Makefile":true}}
single
Refactor the function below: # Generate a stream of the permutations of the input array. def permutations: if length == 0 then [] else range(0;length) as $i | [.[$i]] + (del(.[$i])|permutations) end ;   # Generate a stream of arrays of length n, # with members drawn from the input array. def take(n): length ...
{"is_valid":true,"category":{"jq":true}}
single
Energy researchers are exploring various pathways for reducing carbon emissions globally. Hikers were advised to carry plenty of water and to inform someone of their planned route. The neighborhood gathered every Saturday morning at the small farmers' market downtown. The chef prepared a simple meal of roasted vegetabl...
{"is_valid":true,"category":{"Swift":true,"Makefile":true}}
multi
Run the following: local gl = require "luagl" local iup = require "iuplua" require "iupluagl"   local function paint() gl.ClearColor(0.3,0.3,0.3,0.0) gl.Clear"COLOR_BUFFER_BIT,DEPTH_BUFFER_BIT"   gl.ShadeModel"SMOOTH"   gl.LoadIdentity() gl.Translate(-15.0, -15.0, 0.0)   gl.Begin"TRIANGLES" gl.Color(1.0, ...
{"is_valid":true,"category":{"Lua":true}}
single
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Please review the following snippet for issues: CREATE TABLE teaches (name VARCHAR, id VARCHAR, semester VARCHAR); CREATE TABLE instructor (name VARCHAR, id VARCHAR, semester VARCHAR); SELECT name FROM instructor WHERE NOT id I...
{"is_valid":true,"category":{"SQL":true}}
single
He sat by the window with a steaming mug of tea and watched the snow gently falling. Please review the following snippet for issues: object Approximate extends App { val (ok, notOk, ε) = ("👌", "❌", 1e-18d)   private def approxEquals(value: Double, other: Double, epsilon: Double) = scala.math.abs(value - other)...
{"is_valid":true,"category":{"Scala":true}}
single
Teachers reported that interactive learning tools improved student engagement significantly. Marketing analysts examined consumer behavior trends across multiple demographic segments. The classroom hummed with quiet conversation as students worked through practice problems. Distributed systems demand careful attention ...
{"is_valid":true,"category":{"C++":true}}
single
Distributed systems demand careful attention to consistency, availability, and partition tolerance. Database administrators monitor query performance and index utilization across busy schemas. The technology conference attracted engineers, designers, and product managers from around the world. He adjusted the telescope...
{"is_valid":true,"category":{"Ruby":true,"R":true,"Scala":true}}
multi