prompt
large_stringlengths
150
7.97k
target
large_stringlengths
32
83
kind
large_stringclasses
3 values
What does this output: extern crate rand;   trait Balanced { /// Returns true if the brackets are balanced fn is_balanced(&self) -> bool; }   impl<'a> Balanced for str { fn is_balanced(&self) -> bool { let mut count = 0;   for bracket in self.chars() { let change = match bracket ...
{"is_valid":true,"category":{"Rust":true}}
single
Quick question about this snippet: use strict; use warnings;   my ($w, $h) = (9, 9); my @v = map([ (0) x ($w + 1) ], 0 .. $h); # voltage my @f = map([ (0) x ($w + 1) ], 0 .. $h); # fixed condition my @d = map([ (0) x ($w + 1) ], 0 .. $h); # diff   my @n; # neighbors for my $i (0 .. $h) { push @{$n[$i][$_]}, [$i, $_ - ...
{"is_valid":true,"category":{"Perl":true}}
single
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. I copied this from the docs: import scala.collection.mutable   def largestDecimal: Int = Iterator.from(98764321, -1).filter(chkDec).next def chkDec...
{"is_valid":true,"category":{"Scala":true}}
single
Database administrators monitor query performance and index utilization across busy schemas. The neighborhood gathered every Saturday morning at the small farmers' market downtown. The garden looked particularly vibrant after the recent rain. Local potters fired their kilns once a month, producing colorful ceramics for...
{"is_valid":true,"category":{"C++":true,"R":true}}
multi
The botanical garden featured an impressive collection of rare orchids from tropical regions. Project managers stressed the importance of clear documentation throughout the cycle. He sat by the window with a steaming mug of tea and watched the snow gently falling. Economic indicators showed a gradual recovery following...
{"is_valid":true,"category":{"YAML":true,"Batch":true}}
multi
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Here is the code I was given: #!/bin/sh read a; read b; echo "a+b = " `expr $a + $b` echo "a-b = " `expr $a - $b` echo "a*b = " `expr $a \* $b` echo "a/b = " `expr $a / $b` # truncates towards 0 echo "a mo...
{"is_valid":true,"category":{"Bash":true}}
single
Long-distance running requires a combination of disciplined training and proper nutrition. The garden looked particularly vibrant after the recent rain. Project managers stressed the importance of clear documentation throughout the cycle. Marketing analysts examined consumer behavior trends across multiple demographic ...
{"is_valid":true,"category":{"R":true}}
single
Please review the following snippet for issues: // version 1.1.2   import java.util.Random   fun IntArray.swap(i: Int, j: Int) { val temp = this[i] this[i] = this[j] this[j] = temp }   tailrec fun mrUnrank1(rank: Int, n: Int, vec: IntArray) { if (n < 1) return val q = rank / n val r = rank % n ...
{"is_valid":true,"category":{"Kotlin":true}}
single
Teachers reported that interactive learning tools improved student engagement significantly. Project managers stressed the importance of clear documentation throughout the cycle. Energy researchers are exploring various pathways for reducing carbon emissions globally. Quality assurance teams collaborate closely with de...
{"is_valid":true,"category":{"C#":true}}
single
Climate models suggest that ocean temperatures will continue to rise over the coming decades. The morning light filtered through the kitchen window as the coffee brewed. Statistical models can sometimes obscure the limitations of the underlying data sources. The bakery on the corner was famous for its sourdough loaves ...
{"is_valid":true,"category":{"R":true}}
single
Project managers stressed the importance of clear documentation throughout the cycle. Children played in the park while their parents chatted on the wooden benches nearby. She enjoyed reading historical novels that transported her to far away places. A gentle breeze drifted across the meadow as the sun began to dip bel...
{"is_valid":true,"category":{"C#":true}}
single
The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. She enjoyed reading historical novels that transported her to far away places. The library hosted a weekly book club focused on classic and contemporary literature. Long-distance running requires a combination of disciplined tr...
{"is_valid":true,"category":{"Scala":true}}
single
The painting featured warm colors that evoked memories of childhood summers by the sea. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. The classroom hummed with quiet conversation as students worked through practice problems. Network operators continually upgrade infrastructure to ...
{"is_valid":true,"category":{"Bash":true,"Java":true}}
multi
Project managers stressed the importance of clear documentation throughout the cycle. Production teams refined their processes to minimize waste and improve overall yield. 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 wa...
{"is_valid":true,"category":{"Swift":true}}
single
Engineering teams often adopt iterative methodologies to manage complex software projects. Here is the code I was given: function bubbleSort(A) local itemCount=#A local hasChanged repeat hasChanged = false itemCount=itemCount - 1 for i = 1, itemCount do if A[i] > A[i + 1] then A[i], A[i ...
{"is_valid":true,"category":{"Lua":true}}
single
Corporate training programs increasingly include modules on collaboration and communication. Statistical models can sometimes obscure the limitations of the underlying data sources. The morning light filtered through the kitchen window as the coffee brewed. Backend services were redesigned to handle the surge in concur...
{"is_valid":true,"category":{"C":true}}
single
Could you explain what this code does: import java.awt.event.{KeyAdapter, KeyEvent}   import javax.swing.{JFrame, SwingUtilities}   class KeypressCheck() extends JFrame {   addKeyListener(new KeyAdapter() { override def keyPressed(e: KeyEvent): Unit = { val keyCode = e.getKeyCode if (keyCode == KeyEve...
{"is_valid":true,"category":{"Scala":true}}
single
Statistical models can sometimes obscure the limitations of the underlying data sources. 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. The bakery on the corner was famous for its sourdoug...
{"is_valid":true,"category":{"AWK":true,"Bash":true}}
multi
Hikers were advised to carry plenty of water and to inform someone of their planned route. Production teams refined their processes to minimize waste and improve overall yield. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. He wandered through the old bookstore, occasionally pullin...
{"is_valid":true,"category":{"C#":true,"Go":true}}
multi
Add comments to make this clearer: class U0 extends Exception { } class U1 extends Exception { }   public class ExceptionsTest { public static void foo() throws U1 { for (int i = 0; i <= 1; i++) { try { bar(i); } catch (U0 e) { System.out.println("Func...
{"is_valid":true,"category":{"Java":true}}
single
Local potters fired their kilns once a month, producing colorful ceramics for the shops. The garden looked particularly vibrant after the recent rain. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Project managers stressed the importance of clear documentation throughout the cy...
{"is_valid":true,"category":{"R":true}}
single
Public libraries have evolved into community hubs offering far more than just printed books. Visitors strolled through the cobblestone streets, admiring the historic architecture. Energy researchers are exploring various pathways for reducing carbon emissions globally. Travelers explored ancient ruins, marveling at the...
{"is_valid":true,"category":{"Scala":true,"Lua":true,"Dockerfile":true}}
multi
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. The newly opened gallery showcased contemporary works by emerging regional artists. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. He walked along the river path, listening to the rustling ...
{"is_valid":true,"category":{"Makefile":true}}
single
What does this output: // Lower Upper Solver function lusolve(A, b, update) { var lu = ludcmp(A, update) if (lu === undefined) return // Singular Matrix! return lubksb(lu, b, update) }   // Lower Upper Decomposition function ludcmp(A, update) { // A is a matrix that we want to decompose into Lower and Upper matrice...
{"is_valid":true,"category":{"JavaScript":true}}
single
Can you optimize this implementation: LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/parameter-framework-plugins/Fs LOCAL_SRC_FILES := \ FSSubsystem.cpp \ FSSubsystemBuilder.cpp \ FSSubsystemObject.cpp LOCAL_MODULE := libfs-subsystem LOCAL_MODULE_...
{"is_valid":true,"category":{"Makefile":true}}
single
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. 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...
{"is_valid":true,"category":{"jq":true,"YAML":true}}
multi
Network operators continually upgrade infrastructure to keep pace with growing demand. Economic indicators showed a gradual recovery following the previous quarter's downturn. The botanical garden featured an impressive collection of rare orchids from tropical regions. Database administrators monitor query performance ...
{"is_valid":true,"category":{"Ruby":true,"Perl":true}}
multi
Climate models suggest that ocean temperatures will continue to rise over the coming decades. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Statistical models can sometimes obscure the limitations of the underlying data sources. She organized her bookshelves by genre and t...
{"is_valid":true,"category":{"Perl":true}}
single
Local musicians performed acoustic sets every Friday evening at the small cafe. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. The newly opened gallery showcased contemporary works by emerging regional artists. Farmers depend on accurate weather forecasts to plan their plan...
{"is_valid":true,"category":{"Rust":true,"Batch":true}}
multi
Quality assurance teams collaborate closely with developers to identify and resolve defects. The botanical garden featured an impressive collection of rare orchids from tropical regions. Climate scientists continue to refine their models in light of newly available data. Nutritionists generally recommend a balanced die...
{"is_valid":true,"category":{"JavaScript":true}}
single
Economic indicators showed a gradual recovery following the previous quarter's downturn. Policy analysts examined the long-term implications of the proposed legislative reform. Long-distance running requires a combination of disciplined training and proper nutrition. Engineering teams often adopt iterative methodologie...
{"is_valid":false,"category":{}}
benign
The library hosted a weekly book club focused on classic and contemporary literature. Long-distance running requires a combination of disciplined training and proper nutrition. She organized her bookshelves by genre and then alphabetically within each section. Backend services were redesigned to handle the surge in con...
{"is_valid":true,"category":{"Perl":true,"SQL":true}}
multi
Database administrators monitor query performance and index utilization across busy schemas. The library hosted a weekly book club focused on classic and contemporary literature. Energy researchers are exploring various pathways for reducing carbon emissions globally. The committee scheduled a follow-up meeting to disc...
{"is_valid":false,"category":{}}
benign
I need help debugging this script: using System; using System.Collections.Generic;   namespace Tests_With_Framework_4 {   class Bag : IEnumerable<Bag.Item> { List<Item> items; const int MaxWeightAllowed = 400;   public Bag() { items = new List<Item...
{"is_valid":true,"category":{"C#":true}}
single
Backend services were redesigned to handle the surge in concurrent user requests. Quality assurance teams collaborate closely with developers to identify and resolve defects. Database administrators monitor query performance and index utilization across busy schemas. Volunteers spent the weekend cleaning up the riversi...
{"is_valid":true,"category":{"jq":true}}
single
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Children played in the park while their parents chatted on the wooden benches nearby. Could you explain what this code does: TARGET = $(HOME)/some/thing.txt foo: echo $(TARGET) The technology conference attracted engineers, designers,...
{"is_valid":true,"category":{"Makefile":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. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Marketing analysts examined consumer behavior trends a...
{"is_valid":true,"category":{"Bash":true,"SQL":true}}
multi
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Visitors strolled through the cobblestone streets, admiring the historic architecture. She enjoyed reading historical novels that transported her to far away places. Network operators continually upgrade infrastructure to keep ...
{"is_valid":true,"category":{"Perl":true}}
single
Add comments to make this clearer: var radians = Math.PI / 4, // Pi / 4 is 45 degrees. All answers should be the same. degrees = 45.0, sine = Math.sin(radians), cosine = Math.cos(radians), tangent = Math.tan(radians), arcsin = Math.asin(sine), arccos = Math.acos(cosine), arctan = Math.atan(tangent);   // sine w...
{"is_valid":true,"category":{"JavaScript":true}}
single
Find any security problems in: #include <cmath> #include <iostream> #include <numeric> #include <tuple> #include <vector>   using namespace std;   auto CountTriplets(unsigned long long maxPerimeter) { unsigned long long totalCount = 0; unsigned long long primitveCount = 0; auto max_M = (unsigned long long)s...
{"is_valid":true,"category":{"C++":true}}
single
Software architects often debate the merits of monolithic versus microservice designs. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Children played in the park while their parents chatted on the wooden benches nearby. The engineer reviewed the blueprints carefully before...
{"is_valid":false,"category":{}}
benign
Refactor the function below: FROM centos RUN yum -y install nmap-ncat && yum clean all LABEL "Name"="atomic-test-system-hostfs" LABEL "atomic.has_install_files"="yes" # Add a file that can be handled by the rpm generator RUN mkdir -p /exports/hostfs/usr/local/lib /exports/hostfs/usr/local/placeholder-lib R
{"is_valid":true,"category":{"Dockerfile":true}}
single
Project managers stressed the importance of clear documentation throughout the cycle. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Distributed systems demand careful attention to consi...
{"is_valid":true,"category":{"C":true}}
single
I need help debugging this script: import javax.swing._ import java.awt._ import java.awt.event.ActionEvent   import scala.collection.mutable import scala.util.Random   object ChaosGame extends App { SwingUtilities.invokeLater(() => new JFrame("Chaos Game") {   class ChaosGame extends JPanel { priva...
{"is_valid":true,"category":{"Scala":true}}
single
Long-distance running requires a combination of disciplined training and proper nutrition. Statistical models can sometimes obscure the limitations of the underlying data sources. Children played in the park while their parents chatted on the wooden benches nearby. The painting featured warm colors that evoked memories...
{"is_valid":true,"category":{"SQL":true}}
single
Find any security problems in: variable domain {} variable subdomain { default = "mantl" } variable ttl { default = 1 } # automatic variable type { default = "A" } variable ips { default = ""} variable hostnames { default = ""} variable count {} # individual records resource "cloudflare_record" "instance" { count =...
{"is_valid":true,"category":{"Terraform":true}}
single
Please review the following snippet for issues: def do_until(condition; next): def u: if condition then . else (next|u) end; u;   def mdroot(n): def multiply: reduce .[] as $i (1; .*$i); # state: [mdr, persist] [n, 0] | do_until( .[0] < 10; [(.[0] | tostring | explode | map(.-48) | multiply), ...
{"is_valid":true,"category":{"jq":true}}
single
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. The classroom hummed with quiet conversation as students worked through practice problems. Software architects often debate the merits of monolithic versus microservice designs. Public libraries have evolved into community hub...
{"is_valid":true,"category":{"R":true,"PowerShell":true}}
multi
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Children played in the park while their parents chatted on the wooden benches nearby. He walked along the river path, listening to the rustling of leaves overhead. Economic indicators showed a gradual recovery following the previous...
{"is_valid":true,"category":{"C":true,"C++":true}}
multi
I need help debugging this script: #include <stdio.h> #include <stdlib.h> #include <math.h> /* #include "imglib.h" */   #define RED_C 0 #define GREEN_C 1 #define BLUE_C 2 #define GET_PIXEL(IMG, X, Y) ((IMG)->buf[ (Y) * (IMG)->width + (X) ])   int main(int argc, char **argv) { image im1, im2; double totalDiff = 0....
{"is_valid":true,"category":{"C":true}}
single
The library hosted a weekly book club focused on classic and contemporary literature. Long-distance running requires a combination of disciplined training and proper nutrition. Statistical models can sometimes obscure the limitations of the underlying data sources. She enjoyed reading historical novels that transported...
{"is_valid":true,"category":{"PowerShell":true,"Bash":true,"Perl":true}}
multi
Please review the following snippet for issues: CREATE TABLE trained_in (physician VARCHAR, treatment VARCHAR); CREATE TABLE procedures (name VARCHAR, cost INTEGER); CREATE TABLE physician (employeeid VARCHAR, name VARCHAR); CREATE TABLE procedures (name VARCHAR, code VARCHAR); SELECT name FROM procedures WHERE cost > ...
{"is_valid":true,"category":{"SQL":true}}
single
Marketing analysts examined consumer behavior trends across multiple demographic segments. Production teams refined their processes to minimize waste and improve overall yield. The engineer reviewed the blueprints carefully before approving the modifications. The morning light filtered through the kitchen window as the...
{"is_valid":true,"category":{"C#":true,"Swift":true}}
multi
Long-distance running requires a combination of disciplined training and proper nutrition. Historians continue to debate the significance of the treaty signed in that pivotal year. Teachers reported that interactive learning tools improved student engagement significantly. Statistical models can sometimes obscure the l...
{"is_valid":false,"category":{}}
benign
She placed the manuscript carefully on the desk and began the painstaking process of revision. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. The technology conference attracted engineers, designers, and product managers from around the world. Local musicians performed acou...
{"is_valid":true,"category":{"Kotlin":true}}
single
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Engineering teams often adopt iterative methodologies to manage complex software projects. Network operators continually upgrade infrastructure to keep pace with growing demand. Volunteers spent the weekend cleaning up the rive...
{"is_valid":true,"category":{"Perl":true}}
single
The conference featured keynote speakers from a wide variety of academic backgrounds. Statistical models can sometimes obscure the limitations of the underlying data sources. Quarterly reports indicated a steady rise in operational efficiency across divisions. Modern microprocessors rely on pipelining and out-of-order ...
{"is_valid":true,"category":{"JavaScript":true}}
single
He sat by the window with a steaming mug of tea and watched the snow gently falling. Energy researchers are exploring various pathways for reducing carbon emissions globally. The technology conference attracted engineers, designers, and product managers from around the world. The community center offered free workshops...
{"is_valid":true,"category":{"jq":true}}
single
Policy analysts examined the long-term implications of the proposed legislative reform. Backend services were redesigned to handle the surge in concurrent user requests. Statistical models can sometimes obscure the limitations of the underlying data sources. Children played in the park while their parents chatted on th...
{"is_valid":false,"category":{}}
benign
He gathered his notes, packed his bag, and prepared for the long journey home. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. The garden looked particularly vibrant after the recent rain. Astronomers observed a faint signal that appeared to originate from a distant galaxy. ...
{"is_valid":true,"category":{"Bash":true}}
single
Translate this into another language for me: using System; using System.Collections.Generic;   namespace Tests_With_Framework_4 {   class Bag : IEnumerable<Bag.Item> { List<Item> items; const int MaxWeightAllowed = 400;   public Bag() { items = new...
{"is_valid":true,"category":{"C#":true}}
single
Production teams refined their processes to minimize waste and improve overall yield. Project managers stressed the importance of clear documentation throughout the cycle. The committee scheduled a follow-up meeting to discuss the budget allocations. Production teams refined their processes to minimize waste and improv...
{"is_valid":false,"category":{}}
benign
Run the following: # Copyright (C) 2016 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.
{"is_valid":true,"category":{"Makefile":true}}
single
Long-distance running requires a combination of disciplined training and proper nutrition. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Quarterly reports indicated a steady rise in operational efficiency across divisions. Public libraries have evolved into communit...
{"is_valid":true,"category":{"Perl":true}}
single
Economic indicators showed a gradual recovery following the previous quarter's downturn. She placed the manuscript carefully on the desk and began the painstaking process of revision. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. The library hosted a weekly book club focused on classi...
{"is_valid":true,"category":{"Perl":true}}
single
The painting featured warm colors that evoked memories of childhood summers by the sea. Children played in the park while their parents chatted on the wooden benches nearby. The newly opened gallery showcased contemporary works by emerging regional artists. The classroom hummed with quiet conversation as students worke...
{"is_valid":true,"category":{"Java":true}}
single
I need help debugging this script: # &keyword # type returned(indicators) - brief description # indicators: # * - generates multiple values # = - modifiable #  ? - may fail (e.g. status inquiry) # U - Unicon # G - Icon or Unicon with Graphics # &allocated # integer(*) - report memory allocated in total ...
{"is_valid":true,"category":{"Go":true}}
single
Network operators continually upgrade infrastructure to keep pace with growing demand. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Statistical models can sometimes obscure the limitations of the underlying data sources. The conference featured keynote speakers from a wide variety of...
{"is_valid":true,"category":{"jq":true,"Batch":true}}
multi
Please review the following snippet for issues: function draw() { var canvas = document.getElementById("container"); context = canvas.getContext("2d");   bezier3(20, 200, 700, 50, -300, 50, 380, 150); // bezier3(160, 10, 10, 40, 30, 160, 150, 110); // bezier3(0,149, 30,50, 120,130, 160,30, 0); }   ...
{"is_valid":true,"category":{"JavaScript":true}}
single
Take a look at this: module "mirror" { source = "../host" base_configuration = var.base_configuration name = "mirror" use_os_released_updates = var.use_os_released_updates additional_repos = var.additional_repos additional_packages = var.additional_packages swap_file_si...
{"is_valid":true,"category":{"Terraform":true}}
single
Software architects often debate the merits of monolithic versus microservice designs. The library hosted a weekly book club focused on classic and contemporary literature. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Hikers were advised to carry plenty of water and to inform ...
{"is_valid":true,"category":{"JavaScript":true}}
single
Take a look at this: # Return the index in the input array of the min_by(f) value def index_min_by(f): . as $in | if length == 0 then null else .[0] as $first | reduce range(0; length) as $i ([0, $first, ($first|f)]; # state: [ix; min; f|min] ($in[$i]|f) as $v | if $v < .[2] the...
{"is_valid":true,"category":{"jq":true}}
single
He sat by the window with a steaming mug of tea and watched the snow gently falling. Network operators continually upgrade infrastructure to keep pace with growing demand. Translate this into another language for me: export LC_ALL=C < /dev/urandom tr -cd '0-9' | fold -w 1 | jq -MRcnr -f 100-prisoners.jq Visitors stroll...
{"is_valid":true,"category":{"jq":true}}
single
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Teachers reported that interactive learning tools improved student engagement significantly. Public libraries have evolved into community hubs offering far more than just printed books. Modern microprocessors rely on pipelining...
{"is_valid":true,"category":{"Ruby":true}}
single
Engineering teams often adopt iterative methodologies to manage complex software projects. Run the following: @echo off setlocal enabledelayedexpansion   set numberarray=1 2 3 4 5 6 7 8 9 10 for %%i in (%numberarray%) do ( set /a tempcount+=1 set numberarray!tempcount!=%%i )   echo Filtering all even numbers from n...
{"is_valid":true,"category":{"Batch":true}}
single
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Corporate training programs increasingly include modules on collaboration and communication. Policy analysts examined the long-term implications of the proposed legislative reform. Modern microprocessors rely on pipelining and ...
{"is_valid":true,"category":{"SQL":true}}
single
She organized her bookshelves by genre and then alphabetically within each section. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Researchers have been studying migration patterns of monarch butterflies for years. Public libraries have evolved into community hubs offering far mor...
{"is_valid":true,"category":{"C":true}}
single
The engineer reviewed the blueprints carefully before approving the modifications. Historians continue to debate the significance of the treaty signed in that pivotal year. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. The garden looked particularly vibrant after the recen...
{"is_valid":true,"category":{"R":true,"Python":true}}
multi
Backend services were redesigned to handle the surge in concurrent user requests. Visitors strolled through the cobblestone streets, admiring the historic architecture.
{"is_valid":false,"category":{}}
benign
Policy analysts examined the long-term implications of the proposed legislative reform. The newly opened gallery showcased contemporary works by emerging regional artists. Statistical models can sometimes obscure the limitations of the underlying data sources. Researchers have been studying migration patterns of monarc...
{"is_valid":true,"category":{"Java":true}}
single
Policy analysts examined the long-term implications of the proposed legislative reform. Here is the code I was given: apiVersion: v1 kind: Service metadata: name: nfs spec: ports: - name: nfs port: 2049 - name: mountd port: 20048 - name: rpcbind port: 111 selector: app: nfs He adjusted the t...
{"is_valid":true,"category":{"YAML":true}}
single
She placed the manuscript carefully on the desk and began the painstaking process of revision. Distributed systems demand careful attention to consistency, availability, and partition tolerance. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Late spring rains caused the la...
{"is_valid":true,"category":{"YAML":true}}
single
Researchers gathered data from hundreds of households participating in the longitudinal study. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. The community center offered free workshops on photography, pottery, and creative writing. Statistical models can sometimes obscure ...
{"is_valid":true,"category":{"AWK":true}}
single
I copied this from the docs: #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <ctype.h> #include <glib.h>   #define ROWS 4 #define COLS 10 #define NPRX "/"   /* wikipedia table const char *table[ROWS][COLS] = { { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"
{"is_valid":true,"category":{"C":true}}
single
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. 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. She placed the manuscript carefully on t...
{"is_valid":true,"category":{"SQL":true,"C#":true}}
multi
Translate this into another language for me: cat power_set.awk #!/usr/local/bin/gawk -f   # User defined function function tochar(l,n, r) { while (l) { n--; if (l%2 != 0) r = r sprintf(" %c ",49+n); l = int(l/2) }; return r }   # For each input { for (i=0;i<=2^NF-1;i++) if (i == 0) printf("empty\n"); else printf("(%s)...
{"is_valid":true,"category":{"AWK":true,"Python":true}}
multi
The botanical garden featured an impressive collection of rare orchids from tropical regions. The community center offered free workshops on photography, pottery, and creative writing. Database administrators monitor query performance and index utilization across busy schemas. The engineer reviewed the blueprints caref...
{"is_valid":false,"category":{}}
benign
Project managers stressed the importance of clear documentation throughout the cycle. Quick question about this snippet: require 'prime'   def tau(n) = n.prime_division.inject(1){|res, (d, exp)| res *= exp + 1}   (1..100).map{|n| tau(n).to_s.rjust(3) }.each_slice(20){|ar| puts ar.join} Statistical models can sometimes ...
{"is_valid":true,"category":{"Ruby":true}}
single
Here is the code I was given: FROM python:2.7 MAINTAINER Dan Osborne <daniel@projectcalico.org> WORKDIR /code/ RUN pip install --upgrade pip RUN pip install PyInstaller ADD requirements.txt /code/ RUN pip install -r requirements.txt RUN easy_install http://downloads.mesosphere.io/master/debian/8/mesos-0.26
{"is_valid":true,"category":{"Dockerfile":true}}
single
Database administrators monitor query performance and index utilization across busy schemas. The botanical garden featured an impressive collection of rare orchids from tropical regions. The classroom hummed with quiet conversation as students worked through practice problems. The botanical garden featured an impressiv...
{"is_valid":true,"category":{"YAML":true}}
single
Network operators continually upgrade infrastructure to keep pace with growing demand. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Researchers have been studying migration patterns of monarch butterflies for years. Quality assurance teams collaborate closely with develop...
{"is_valid":true,"category":{"Perl":true}}
single
Project managers stressed the importance of clear documentation throughout the cycle. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Corporate training programs increasingly include modules ...
{"is_valid":true,"category":{"C":true}}
single
Run the following: const readline = require('readline');   async function menuSelect(question, choices) { if (choices.length === 0) return '';   const prompt = choices.reduce((promptPart, choice, i) => { return promptPart += `${i + 1}. ${choice}\n`; }, '');   let inputChoice = -1; while (inputChoice < 1 |...
{"is_valid":true,"category":{"JavaScript":true}}
single
Translate this into another language for me: import java.util.ArrayList; import java.util.Arrays; import java.util.List;   public class PascalsTrianglePuzzle {   public static void main(String[] args) { Matrix mat = new Matrix(Arrays.asList(1d, 0d, 0d, 0d, 0d, 0d, 0d, 0d, -1d, 0d, 0d), ...
{"is_valid":true,"category":{"Java":true}}
single
He walked along the river path, listening to the rustling of leaves overhead. What does this output: from itertools import product   xx = '-5 +5'.split() pp = '2 3'.split() texts = '-x**p -(x)**p (-x)**p -(x**p)'.split()   print('Integer variable exponentiation') for x, p in product(xx, pp): print(f' x,p = {x:2},{...
{"is_valid":true,"category":{"Python":true}}
single
The engineer reviewed the blueprints carefully before approving the modifications. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. The botanical garden featured an impressive collection of rare orchids from tropical regions. Climate models suggest that ocean temperatures wi...
{"is_valid":true,"category":{"YAML":true}}
single
Energy researchers are exploring various pathways for reducing carbon emissions globally. He gathered his notes, packed his bag, and prepared for the long journey home. Visitors strolled through the cobblestone streets, admiring the historic architecture. Please review the following snippet for issues: for i = 1, 10 do...
{"is_valid":true,"category":{"Lua":true}}
single
What does this output: // Generate Catalan Numbers // // Nigel Galloway: June 9th., 2012 // #include <iostream> int main() { const int N = 15; int t[N+2] = {0,1}; for(int i = 1; i<=N; i++){ for(int j = i; j>1; j--) t[j] = t[j] + t[j-1]; t[i+1] = t[i]; for(int j = i+1; j>1; j--) t[j] =
{"is_valid":true,"category":{"C++":true}}
single
Corporate training programs increasingly include modules on collaboration and communication. Teachers reported that interactive learning tools improved student engagement significantly. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Modern microprocessors rely on pipelining...
{"is_valid":true,"category":{"R":true}}
single
Find any security problems in: -- FUNCS: local function T(t) return setmetatable(t, {__index=table}) end table.filter = function(t,f) local s=T{} for _,v in ipairs(t) do if f(v) then s[#s+1]=v end end return s end table.firstn = function(t,n) local s=T{} n=n>#t and #t or n for i = 1,n do s[i]=t[i] end return s end   --...
{"is_valid":true,"category":{"Lua":true}}
single