prompt large_stringlengths 150 7.97k | target large_stringlengths 32 83 | kind large_stringclasses 3
values |
|---|---|---|
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. The newly opened gallery showcased contemporary works by emerging regional artists. Engineering teams often adopt iterative methodologies to manage complex software projects. Project managers stressed the importance of clear documen... | {"is_valid":true,"category":{"C++":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. Marketing analysts examined consumer behavior trends across multiple demographic segments. Quality assurance teams collaborate closely w... | {"is_valid":true,"category":{"Lua":true}} | single |
Refactor the function below:
def F(n): return 1 if n == 0 else n - M(F(n-1))
def M(n): return 0 if n == 0 else n - F(M(n-1))
print ([ F(n) for n in range(20) ])
print ([ M(n) for n in range(20) ]) | {"is_valid":true,"category":{"Python":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. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Public libraries have evolved into community hubs offering f... | {"is_valid":false,"category":{}} | benign |
The committee scheduled a follow-up meeting to discuss the budget allocations. 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. Quick question about this snippet:
function Get-FirstDigit {
p... | {"is_valid":true,"category":{"PowerShell":true,"C":true,"Ruby":true}} | multi |
Database administrators monitor query performance and index utilization across busy schemas. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. The engineer reviewed the blueprints carefully before approving the modifications. She placed the manuscript carefully on the desk and... | {"is_valid":false,"category":{}} | benign |
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Please review the following snippet for issues:
bearing = {degrees = 0} -- prototype object
function bearing:assign(angle)
angle = tonumber(angle) or 0
while angle > 180 do
angle = angle - 360
end
while angle < -180 do
... | {"is_valid":true,"category":{"Lua":true,"JavaScript":true}} | multi |
The conference featured keynote speakers from a wide variety of academic backgrounds. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Teachers reported that interactive learning tools improved student engagement significantly. Software architects often debate the merits of m... | {"is_valid":false,"category":{}} | benign |
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Hikers were advised to carry plenty of water and to inform someone of their planned route. Policy analysts examined the long-term implications of the proposed legislative reform. Policy analysts examined the long-term implicat... | {"is_valid":true,"category":{"Perl":true,"Lua":true}} | multi |
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Project managers stressed the importance of clear documentation throughout the cycle. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. The chef prepared a simple meal of roasted vege... | {"is_valid":true,"category":{"Batch":true}} | single |
Statistical models can sometimes obscure the limitations of the underlying data sources. Production teams refined their processes to minimize waste and improve overall yield. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. She organized her bookshelves by genre and then alph... | {"is_valid":true,"category":{"Swift":true}} | single |
Could you explain what this code does:
$ swap() { typeset -n var1=$1 var2=$2; set -- "$var1" "$var2"; var1=$2; var2=$1; }
$ a=1 b=2
$ echo $a $b
1 2
$ swap a b
$ echo $a $b ... | {"is_valid":true,"category":{"Bash":true}} | single |
Energy researchers are exploring various pathways for reducing carbon emissions globally. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Find any security problems in:
// version 1.0.6
/* implicitly returns a Pair<Int, Int>*/
fun minmax(ia: IntArray) = ia.min() to ia.max()
... | {"is_valid":true,"category":{"Kotlin":true}} | single |
The newly opened gallery showcased contemporary works by emerging regional artists. Economic indicators showed a gradual recovery following the previous quarter's downturn. What does this output:
@echo off
set /a c=c+1
echo [Depth %c%] Mung until no good
cmd /c mung.cmd
echo [Depth %c%] No good
set /a c=c-1 A gentle br... | {"is_valid":true,"category":{"Batch":true}} | single |
Marketing analysts examined consumer behavior trends across multiple demographic segments. The morning light filtered through the kitchen window as the coffee brewed. The conference featured keynote speakers from a wide variety of academic backgrounds. Could you explain what this code does:
package main
import (
... | {"is_valid":true,"category":{"Go":true}} | single |
Local potters fired their kilns once a month, producing colorful ceramics for the shops. Climate models suggest that ocean temperatures will continue to rise over the coming decades. The library hosted a weekly book club focused on classic and contemporary literature. Backend services were redesigned to handle the surg... | {"is_valid":true,"category":{"Scala":true,"YAML":true}} | multi |
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Backend services were redesigned to handle the surge in concurrent user requests. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Run the following:
require 'ipaddr'
TESTCASES = ["127.0... | {"is_valid":true,"category":{"Ruby":true,"Python":true}} | multi |
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. She organized her bookshelves by genre and then alphabetically within each section. Please review the following snippet for issues:
# UnixFormula.mk - Standard build with make.
# Copyright (c) 2011 Ruda Moura
# Authors: Ruda Moura, ... | {"is_valid":true,"category":{"Makefile":true}} | single |
I need help debugging this script:
function det2D(p1,p2,p3)
return p1.x * (p2.y - p3.y)
+ p2.x * (p3.y - p1.y)
+ p3.x * (p1.y - p2.y)
end
function checkTriWinding(p1,p2,p3,allowReversed)
local detTri = det2D(p1,p2,p3)
if detTri < 0.0 then
if allowReversed then
lo | {"is_valid":true,"category":{"Lua":true}} | single |
What does this output:
#include <stdio.h>
/* C's % operator actually calculates the remainder of a / b so we need a
* small adjustment so it works as expected for negative values */
#define mod(n,m) ((((n) % (m)) + (m)) % (m))
int is_prime(unsigned int n)
{
if (n <= 3) {
return n > 1;
}
else if... | {"is_valid":true,"category":{"C":true}} | single |
Quick question about this snippet:
def maxsubseq(seq):
return max((seq[begin:end] for begin in xrange(len(seq)+1)
for end in xrange(begin, len(seq)+1)),
key=sum)
There's also this version:
##### Options which a user might set before building go here #####
# Where to install... | {"is_valid":true,"category":{"Python":true,"Makefile":true}} | multi |
Researchers gathered data from hundreds of households participating in the longitudinal study. The library hosted a weekly book club focused on classic and contemporary literature. The morning light filtered through the kitchen window as the coffee brewed. Energy researchers are exploring various pathways for reducing ... | {"is_valid":true,"category":{"YAML":true}} | single |
Children played in the park while their parents chatted on the wooden benches nearby. Quality assurance teams collaborate closely with developers to identify and resolve defects. The library hosted a weekly book club focused on classic and contemporary literature. Quick question about this snippet:
import scala.languag... | {"is_valid":true,"category":{"Scala":true}} | single |
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Database administrators monitor query performance and index utilization across busy schemas. He walked along the river path, listening to the rustling of leaves overhead. Farmers depend on accurate weather forecasts to plan the... | {"is_valid":true,"category":{"YAML":true}} | single |
Database administrators monitor query performance and index utilization across busy schemas. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. He sat by the window with a steaming mug of t... | {"is_valid":true,"category":{"Batch":true}} | single |
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Here is the code I was given:
f = loadstring(s) -- load a... | {"is_valid":true,"category":{"Lua":true}} | single |
The neighborhood gathered every Saturday morning at the small farmers' market downtown. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. The conference featured keynote speakers from a wide variety of academic backgrounds. Production teams refined their processes to minimize waste... | {"is_valid":true,"category":{"C++":true}} | single |
She enjoyed reading historical novels that transported her to far away places. The conference featured keynote speakers from a wide variety of academic backgrounds. The morning light filtered through the kitchen window as the coffee brewed. Children played in the park while their parents chatted on the wooden benches n... | {"is_valid":true,"category":{"Lua":true}} | single |
The newly opened gallery showcased contemporary works by emerging regional artists. Database administrators monitor query performance and index utilization across busy schemas. Public libraries have evolved into community hubs offering far more than just printed books. Late spring rains caused the lake to swell beyond ... | {"is_valid":false,"category":{}} | benign |
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Hikers were advised to carry plenty of water and to inform someone of their planned route. Researchers gathered data from hundreds of households partic... | {"is_valid":true,"category":{"Batch":true}} | single |
Here is the code I was given:
public class GameOfLife{
public static void main(String[] args){
String[] dish= {
"_#_",
"_#_",
"_#_",};
int gens= 3;
for(int i= 0;i < gens;i++){
System.out.println("Generation " + i + ":");
print(dish);
dish= life(dish);
}
}
public static String | {"is_valid":true,"category":{"Java":true}} | single |
Refactor the function below:
package main
import (
rl "github.com/gen2brain/raylib-go/raylib"
"math"
"strings"
)
type hexagon struct {
x, y float32
letter rune
selected bool
}
func (h hexagon) points(r float32) []rl.Vector2 {
res := make([]rl.Vector2, 7)
for i := 0; i < 7; i+... | {"is_valid":true,"category":{"Go":true}} | single |
Refactor the function below:
def anynacci(start_sequence, count)
n = start_sequence.length # Get the n-step for the type of fibonacci sequence
result = start_sequence.dup # Create a new result array with the values copied from the array that was passed by reference
(count-n).times do ... | {"is_valid":true,"category":{"Ruby":true}} | single |
The newly opened gallery showcased contemporary works by emerging regional artists. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. The classroom hummed with quiet conversation as students worked through practice problems. Local potters fired their kilns once a month, producing colo... | {"is_valid":true,"category":{"Dockerfile":true}} | single |
The library hosted a weekly book club focused on classic and contemporary literature. She enjoyed reading historical novels that transported her to far away places. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Backend services were redesigned to handle the surge in concurrent ... | {"is_valid":true,"category":{"SQL":true}} | single |
Visitors strolled through the cobblestone streets, admiring the historic architecture. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Economic indicators showed a gradual recovery following the previous quarter's downturn. Researchers have been studying migration patterns of m... | {"is_valid":true,"category":{"Java":true}} | single |
The neighborhood gathered every Saturday morning at the small farmers' market downtown. Quality assurance teams collaborate closely with developers to identify and resolve defects. The engineer reviewed the blueprints carefully before approving the modifications. A gentle breeze drifted across the meadow as the sun beg... | {"is_valid":false,"category":{}} | benign |
Find any security problems in:
package main
import (
"fmt"
"log"
//"math/big"
big "github.com/ncw/gmp"
"rcu"
)
var zero = new(big.Int)
var one = big.NewInt(1)
var two = big.NewInt(2)
func juggler(n int64) (int, int, *big.Int, int) {
if n < 1 {
log.Fatal("Starting value must be a po... | {"is_valid":true,"category":{"Go":true}} | single |
Take a look at this:
:: 2048 Game Task from RosettaCode
:: Batch File Implementation v2.0.1
@echo off
setlocal enabledelayedexpansion
rem initialization
:begin_game
set "size=4" %== board size ==%
set "score=0" %== current score ==%
set "won=0" %== boolean for winning ==%
set "target=2048" %== as the game ti... | {"is_valid":true,"category":{"Batch":true}} | single |
Network operators continually upgrade infrastructure to keep pace with growing demand. She organized her bookshelves by genre and then alphabetically within each section. She enjoyed reading historical novels that transported her to far away places. She drafted a detailed agenda for the upcoming retreat and circulated ... | {"is_valid":true,"category":{"PowerShell":true}} | single |
Local musicians performed acoustic sets every Friday evening at the small cafe. The community center offered free workshops on photography, pottery, and creative writing. He walked along the river path, listening to the rustling of leaves overhead. He adjusted the telescope and waited patiently for the clouds to clear ... | {"is_valid":true,"category":{"Dockerfile":true}} | single |
The newly opened gallery showcased contemporary works by emerging regional artists. The committee scheduled a follow-up meeting to discuss the budget allocations. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Quarterly reports indicated a steady rise in operational efficiency across d... | {"is_valid":true,"category":{"Python":true}} | single |
Translate this into another language for me:
function isEsthetic(inp, base = 10) {
let arr = inp.toString(base).split('');
if (arr.length == 1) return false;
for (let i = 0; i < arr.length; i++)
arr[i] = parseInt(arr[i], base);
for (i = 0; i < arr.length-1; i++)
if (Math.abs(arr[i]-arr[i+1]) !== 1) retu... | {"is_valid":true,"category":{"JavaScript":true}} | single |
He walked along the river path, listening to the rustling of leaves overhead. Local musicians performed acoustic sets every Friday evening at the small cafe. Can you optimize this implementation:
#include <windows.h>
#include <string>
//---------------------------------------------------------------------------------... | {"is_valid":true,"category":{"C++":true,"Lua":true}} | multi |
Children played in the park while their parents chatted on the wooden benches nearby. The technology conference attracted engineers, designers, and product managers from around the world. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. She drafted a detailed agenda for the ... | {"is_valid":true,"category":{"Makefile":true}} | single |
What does this output:
extern crate rand;
use rand::Rng;
// Color enums will be sorted by their top-to-bottom declaration order
#[derive(Eq,Ord,PartialOrd,PartialEq,Debug)]
enum Color {
Red,
White,
Blue
}
fn is_sorted(list: &Vec<Color>) -> bool {
let mut state = &Color::Red;
for current in lis... | {"is_valid":true,"category":{"Rust":true}} | single |
The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Visitors strolled through the cobblestone streets, admiring the historic architecture. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Energy researchers are exploring various pathwa... | {"is_valid":true,"category":{"Swift":true}} | single |
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Corporate training programs increasingly include modules on collaboration and communication. Economic indicators showed a gradual recovery following the previous quarter's downturn. Could you explain what this code does:
-- ope... | {"is_valid":true,"category":{"Lua":true}} | single |
The painting featured warm colors that evoked memories of childhood summers by the sea. Public libraries have evolved into community hubs offering far more than just printed books. The morning light filtered through the kitchen window as the coffee brewed. Local potters fired their kilns once a month, producing colorfu... | {"is_valid":false,"category":{}} | benign |
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Production teams refined their processes... | {"is_valid":true,"category":{"YAML":true}} | single |
She placed the manuscript carefully on the desk and began the painstaking process of revision. Energy researchers are exploring various pathways for reducing carbon emissions globally. Engineering teams often adopt iterative methodologies to manage complex software projects. Engineering teams often adopt iterative meth... | {"is_valid":true,"category":{"Swift":true}} | single |
The engineer reviewed the blueprints carefully before approving the modifications. Hikers were advised to carry plenty of water and to inform someone of their planned route. The painting featured warm colors that evoked memories of childhood summers by the sea. The community center offered free workshops on photography... | {"is_valid":false,"category":{}} | benign |
The community center offered free workshops on photography, pottery, and creative writing. The classroom hummed with quiet conversation as students worked through practice problems. Historians continue to debate the significance of the treaty signed in that pivotal year. The technology conference attracted engineers, d... | {"is_valid":true,"category":{"Scala":true}} | single |
Run the following:
using System;
using System.IO;
namespace RosettaCode {
class Program {
static void Main() {
try {
File.Delete("input.txt");
Directory.Delete("docs");
File.Delete(@"\input.txt");
Directory.De | {"is_valid":true,"category":{"C#":true}} | single |
She organized her bookshelves by genre and then alphabetically within each section. Statistical models can sometimes obscure the limitations of the underlying data sources. The newly opened gallery showcased contemporary works by emerging regional artists. Statistical models can sometimes obscure the limitations of the... | {"is_valid":true,"category":{"Go":true}} | single |
The library hosted a weekly book club focused on classic and contemporary literature. The newly opened gallery showcased contemporary works by emerging regional artists. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Project managers stressed the importance of clear docume... | {"is_valid":false,"category":{}} | benign |
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. The morning light filtered through the kitchen window as the coffee brewed. Refactor the function below:
typealias F1 = (Int) -> [(Int, Int, Int)]
typealias F2 = (Int) -> Bool
func pythagoreanTriples(n: Int) -> [(Int, Int, In... | {"is_valid":true,"category":{"Swift":true}} | single |
The library hosted a weekly book club focused on classic and contemporary literature. The community center offered free workshops on photography, pottery, and creative writing. She enjoyed reading historical novels that transported her to far away places. The technology conference attracted engineers, designers, and pr... | {"is_valid":false,"category":{}} | benign |
Find any security problems in:
use Math::BigFloat try => "GMP,Pari";
my $digits = shift || 100; # Get number of digits from command line
print agm_pi($digits), "\n";
sub agm_pi {
my $digits = shift;
my $acc = $digits + 8;
my $HALF = Math::BigFloat->new("0.5");
my ($an, $bn, $tn, $pn) = (Math::Big | {"is_valid":true,"category":{"Perl":true}} | single |
Visitors strolled through the cobblestone streets, admiring the historic architecture. Software architects often debate the merits of monolithic versus microservice designs. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Can you optimize this implementation:
class Foo { }
va... | {"is_valid":true,"category":{"Swift":true}} | single |
Could you explain what this code does:
using System;
using System.Linq;
namespace CommaQuibbling
{
internal static class Program
{
#region Static Members
private static string Quibble(string[] input)
{
return
String.Format("{{{0}}}",
String.Join("",
... | {"is_valid":true,"category":{"C#":true}} | single |
Database administrators monitor query performance and index utilization across busy schemas. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Project managers stressed the importance of clear documentation throughout the cycle. He sat by the window with a steaming mug of tea and watch... | {"is_valid":true,"category":{"Rust":true}} | single |
Refactor the function below:
---
apiVersion: batch/v1
kind: Job
metadata:
name: utils
spec:
backoffLimit: 1
template:
metadata:
name: utils
spec:
restartPolicy: "Never"
volumes:
- name: sharedvolume
persistentVolumeClaim:
claimName: shared-pvc
- name: docker... | {"is_valid":true,"category":{"YAML":true}} | single |
Researchers have been studying migration patterns of monarch butterflies for years. Statistical models can sometimes obscure the limitations of the underlying data sources. Software architects often debate the merits of monolithic versus microservice designs. She organized her bookshelves by genre and then alphabetical... | {"is_valid":true,"category":{"Swift":true}} | single |
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Project managers stressed the importance of clear documentation throughout the cycle. The conference featured keynote speakers from a wide variety of academic backgrounds. The newly opened gallery showcased contemporary works b... | {"is_valid":true,"category":{"Bash":true}} | single |
Could you explain what this code does:
// version 1.1
data class Fangs(val fang1: Long = 0L, val fang2: Long = 0L)
fun pow10(n: Int): Long = when {
n < 0 -> throw IllegalArgumentException("Can't be negative")
else -> {
var pow = 1L
for (i in 1..n) pow *= 10L
pow
}
}
fun countDi... | {"is_valid":true,"category":{"Kotlin":true,"AWK":true}} | multi |
Corporate training programs increasingly include modules on collaboration and communication. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Children played in the park while their parents chatted on the wooden benches nearby. Late spring rains caused the lake to swell beyo... | {"is_valid":true,"category":{"Scala":true}} | single |
Find any security problems in:
CC = gcc -std=c99
CFLAGS = -Wall -I$(O)/include
include src/unix.mk
And separately, here's a related piece:
function buildLIS(seq)
local piles = { { {table.remove(seq, 1), nil} } }
while #seq>0 do
local x=table.remove(seq, 1)
for j=1,#piles do
if pile... | {"is_valid":true,"category":{"Makefile":true,"Lua":true,"Go":true}} | multi |
Policy analysts examined the long-term implications of the proposed legislative reform. 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. Software architects often debate the merits of m... | {"is_valid":true,"category":{"Ruby":true}} | single |
Corporate training programs increasingly include modules on collaboration and communication. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. He walked along the river path, listening to the rustling of leaves overhead. Here is the code I was given:
var array = [1, 2, 3, 4, ... | {"is_valid":true,"category":{"JavaScript":true}} | single |
Network operators continually upgrade infrastructure to keep pace with growing demand. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. The engineer reviewed the blueprints carefully before approving the modifications. Production teams refined their processes to minimize was... | {"is_valid":true,"category":{"AWK":true}} | single |
Quality assurance teams collaborate closely with developers to identify and resolve defects. Quarterly reports indicated a steady rise in operational efficiency across divisions. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Astronomers observed a faint signal that appeared to origina... | {"is_valid":true,"category":{"Perl":true}} | single |
Add comments to make this clearer:
#def squares: range(1; infinite) | . * .;
# sums of distinct squares (sods)
# Output: a stream of [$n, $sums] where $sums is the array of sods based on $n
def sods:
# input: [$n, $sums]
def next:
. as [$n, $sums]
| (($n+1)*($n+1)) as $next
| reduce $sums[] as $s ($su... | {"is_valid":true,"category":{"jq":true}} | single |
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Network operators continually upgrade infrastructure to keep pace with growing demand. Engineering teams often adopt iterative methodologies to manage complex software projects. Marketing analysts examined consumer behavior tre... | {"is_valid":true,"category":{"Kotlin":true}} | single |
Add comments to make this clearer:
import Foundation
extension BinaryInteger {
@inlinable
public var isPrime: Bool {
if self == 0 || self == 1 {
return false
} else if self == 2 {
return true
}
let max = Self(ceil((Double(self).squareRoot())))
for i in stride(from: 2, through: ... | {"is_valid":true,"category":{"Swift":true}} | single |
The morning light filtered through the kitchen window as the coffee brewed. The morning light filtered through the kitchen window as the coffee brewed. Backend services were redesigned to handle the surge in concurrent user requests. Researchers have been studying migration patterns of monarch butterflies for years. Th... | {"is_valid":true,"category":{"Rust":true}} | single |
Add comments to make this clearer:
function Point(x, y) {
this.x = x;
this.y = y;
}
var ZhangSuen = (function () {
function ZhangSuen() {
}
ZhangSuen.image =
[" ",
" ################# ############# ", | {"is_valid":true,"category":{"JavaScript":true}} | single |
Project managers stressed the importance of clear documentation throughout the cycle. Hikers were advised to carry plenty of water and to inform someone of their planned route. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Marketing analysts examined consumer behavior tre... | {"is_valid":true,"category":{"Terraform":true}} | single |
Marketing analysts examined consumer behavior trends across multiple demographic segments. Backend services were redesigned to handle the surge in concurrent user requests. The morning light filtered through the kitchen window as the coffee brewed. Marketing analysts examined consumer behavior trends across multiple de... | {"is_valid":false,"category":{}} | benign |
Refactor the function below:
object convex_hull{
def get_hull(points:List[(Double,Double)], hull:List[(Double,Double)]):List[(Double,Double)] = points match{
case Nil => join_tail(hull,hull.size -1)
case head :: tail => get_hull(tail,reduce(head::hull))
}
def reduce(hull:List[... | {"is_valid":true,"category":{"Scala":true,"Batch":true}} | multi |
Climate scientists continue to refine their models in light of newly available data. Network operators continually upgrade infrastructure to keep pace with growing demand. Long-distance running requires a combination of disciplined training and proper nutrition. The conference featured keynote speakers from a wide vari... | {"is_valid":false,"category":{}} | benign |
He gathered his notes, packed his bag, and prepared for the long journey home. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Researchers gathered data from hundreds of households participating in the longitudinal study. Children played in the park while their parents chatted on... | {"is_valid":false,"category":{}} | benign |
Historians continue to debate the significance of the treaty signed in that pivotal year. Quick question about this snippet:
# syntax: GAWK -f TRUNCATE_A_FILE.AWK
BEGIN {
main("NOTHERE",100)
main("FILENAME.TMP",-1)
main("FILENAME.TMP",500)
exit(0)
}
function main(filename,size, ret) {
ret = truncat... | {"is_valid":true,"category":{"AWK":true}} | single |
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. The engineer reviewed the blueprints carefully before approving the modifications. The morning light filtered through the kitchen window as the coffee brewe... | {"is_valid":false,"category":{}} | benign |
Take a look at this:
#syntax=docker/dockerfile:1.8
#check=error=true
ARG GO_VERSION=1.22
ARG XX_VERSION=1.4.0
ARG COVER_FILENAME="cover.out"
ARG BENCH_FILENAME="bench.txt"
FROM --platform=${BUILDPLATFORM} tonistiigi/xx:${XX_VERSION} AS xx
FROM --platform=${BUILDPLATFORM} golang:${GO_VERSION}-alpine AS golang
COPY -... | {"is_valid":true,"category":{"Dockerfile":true}} | single |
The engineer reviewed the blueprints carefully before approving the modifications. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Local potters fired their kilns once a month, producing colorful ceramics for the shops. The classroom hummed with quiet conversation as studen... | {"is_valid":true,"category":{"Python":true}} | single |
The neighborhood gathered every Saturday morning at the small farmers' market downtown. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Researchers have been studying migration patterns of monarch butterflies for years. Researchers have been studying migration patterns of m... | {"is_valid":false,"category":{}} | benign |
Project managers stressed the importance of clear documentation throughout the cycle. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. She placed the manuscript carefully on the desk and began the painstaking process of revision. The botanical garden featured an impressive co... | {"is_valid":true,"category":{"SQL":true}} | single |
Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Refactor the function below:
ifndef SUBDIR
SUBDIR := ./
endif
ifneq ($(shell git rev-parse HEAD),)
PACKAGES := $(shell git ls-tree -r --name-only $$(git rev-parse HEAD) $(SUBDIR) | grep "\/Makefile$$" | sed 's/\/Makefile$$//')
else
PACKAG... | {"is_valid":true,"category":{"Makefile":true}} | single |
Here is the code I was given:
package main
import (
"math"
"fmt"
)
type Direction byte
const (
RIGHT Direction = iota
UP
LEFT
DOWN
)
func generate(n,i int, c byte) {
s := make([][]string, n)
for i := 0; i < n; i++ { s[i] = make([]string, n) }
dir := RIGHT
y := n / 2
var x int
if (n % 2 == 0) { x = y... | {"is_valid":true,"category":{"Go":true}} | single |
Visitors strolled through the cobblestone streets, admiring the historic architecture. The neighborhood gathered every Saturday morning at the small farmers' market downtown. What does this output:
module "vhs_recorder" {
source = "../../../catalogue_pipeline_data/terraform/vhs"
name = "${replace(var.namespace, "... | {"is_valid":true,"category":{"Terraform":true}} | single |
Software architects often debate the merits of monolithic versus microservice designs. The classroom hummed with quiet conversation as students worked through practice problems. Network operators continually upgrade infrastructure to keep pace with growing demand. Climate scientists continue to refine their models in l... | {"is_valid":true,"category":{"Batch":true}} | single |
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. Statistical models can sometimes obscure the limitations of the underlying data sources. Database administrators monitor query performa... | {"is_valid":true,"category":{"JavaScript":true}} | single |
The library hosted a weekly book club focused on classic and contemporary literature. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. I need help debugging this script:
# IBM_PROLOG_BEGIN_TAG
# This is an automatically generated prolog.
#
# $Source: src/import/chips/p9a/procedures/h... | {"is_valid":true,"category":{"Makefile":true}} | single |
Astronomers observed a faint signal that appeared to originate from a distant galaxy. The committee scheduled a follow-up meeting to discuss the budget allocations. She enjoyed reading historical novels that transported her to far away places. Find any security problems in:
#include <stdio.h>
#include <stdlib.h>
#inclu... | {"is_valid":true,"category":{"C":true,"Ruby":true,"Kotlin":true}} | multi |
Add comments to make this clearer:
apiVersion: v1
kind: PersistentVolume
metadata:
name: pv-beta
spec:
capacity:
storage: 5Gi
volumeMode: Filesystem
storageClassName: local-storage
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Delete
local:
path: /mnt
nodeAffinity:
req | {"is_valid":true,"category":{"YAML":true}} | single |
Climate models suggest that ocean temperatures will continue to rise over the coming decades. Take a look at this:
Import-Csv -Path .\csv_html_test.csv | ConvertTo-Html -Fragment | Out-File .\csv_html_test.html | {"is_valid":true,"category":{"PowerShell":true}} | single |
Climate scientists continue to refine their models in light of newly available data. Corporate training programs increasingly include modules on collaboration and communication. She enjoyed reading historical novels that transported her to far away places. The painting featured warm colors that evoked memories of child... | {"is_valid":true,"category":{"YAML":true}} | single |
Policy analysts examined the long-term implications of the proposed legislative reform. The newly opened gallery showcased contemporary works by emerging regional artists. Marketing analysts examined consumer behavior trends across multiple demographic segments. Project managers stressed the importance of clear documen... | {"is_valid":false,"category":{}} | benign |
She enjoyed reading historical novels that transported her to far away places. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. The newly opened gallery showcased contemporary works by emerging regional artists. Database administrators monitor query performance and index utiliza... | {"is_valid":true,"category":{"AWK":true}} | single |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.