prompt
large_stringlengths
150
7.97k
target
large_stringlengths
32
83
kind
large_stringclasses
3 values
Can you optimize this implementation: #!/usr/bin/env bash # BrainF*** interpreter in bash if (( ! $# )); then printf >&2 'Usage: %s program-file\n' "$0" exit 1 fi   # load the program exec 3<"$1" program=() while IFS= read -r line <&3; do mapfile -t instr < <(tr -cd '[]<>.,+-' <<<"$line" | sed $'s/./&\\\n/g')
{"is_valid":true,"category":{"Bash":true}}
single
Historians continue to debate the significance of the treaty signed in that pivotal year. 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 botanical garden featured an impressive collection of rare orchids from ...
{"is_valid":true,"category":{"Ruby":true}}
single
The neighborhood gathered every Saturday morning at the small farmers' market downtown. 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 technology conference attracted engineers, designers, a...
{"is_valid":true,"category":{"SQL":true}}
single
He sat by the window with a steaming mug of tea and watched the snow gently falling. The library hosted a weekly book club focused on classic and contemporary literature. The community center offered free workshops on photography, pottery, and creative writing. She drafted a detailed agenda for the upcoming retreat and...
{"is_valid":true,"category":{"Scala":true,"Terraform":true}}
multi
The garden looked particularly vibrant after the recent rain. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Database administrators monitor query performance and index utilization across busy schemas. Children played in the park while their parents chatted on the wooden benche...
{"is_valid":true,"category":{"Go":true}}
single
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. Policy analysts examined the long-term implications of the proposed legislative reform. He sat by the window with a steaming mug of tea ...
{"is_valid":true,"category":{"Bash":true}}
single
Teachers reported that interactive learning tools improved student engagement significantly. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Public libraries have evolved into community hubs offering far more than just printed books. Production teams refined their processes to minim...
{"is_valid":true,"category":{"Python":true}}
single
Here is the code I was given: # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version
{"is_valid":true,"category":{"Dockerfile":true}}
single
He sat by the window with a steaming mug of tea and watched the snow gently falling. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Statistical models can sometimes obscure the limitatio...
{"is_valid":false,"category":{}}
benign
Children played in the park while their parents chatted on the wooden benches nearby. Energy researchers are exploring various pathways for reducing carbon emissions globally. She organized her bookshelves by genre and then alphabetically within each section. Astronomers observed a faint signal that appeared to origina...
{"is_valid":false,"category":{}}
benign
The classroom hummed with quiet conversation as students worked through practice problems. 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 garden looked particularly vibrant after the recent rain...
{"is_valid":false,"category":{}}
benign
Long-distance running requires a combination of disciplined training and proper nutrition. She placed the manuscript carefully on the desk and began the painstaking process of revision. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Modern microprocessors rely on pipelining and ...
{"is_valid":true,"category":{"C++":true,"Makefile":true}}
multi
The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Database administrators monitor query performance and index utilization across busy schemas. Production teams refined their processes...
{"is_valid":true,"category":{"Python":true}}
single
Here is the code I was given: # "ported" by Adam Miller <maxamillion@fedoraproject.org> from # https://github.com/fedora-cloud/Fedora-Dockerfiles # # Originally written for Fedora-Dockerfiles by # scollier <scollier@redhat.com> FROM centos:centos7 MAINTAINER The CentOS Project <cloud-ops@centos.org> RUN yum -y up...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Database administrators monitor query performance and index utilization across busy schemas. Quick question about this snippet: object FareySequence {   def fareySequence(n: Int, start: (Int, Int), stop: (Int, Int)): LazyList[(Int, Int)] = { val (nominator_l, denominator_l) = start val (nominator_r, denominat...
{"is_valid":true,"category":{"Scala":true,"Batch":true,"Lua":true}}
multi
The garden looked particularly vibrant after the recent rain. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Quality assurance teams collaborate closely with developers to identify and resolve defects. The botanical garden featured an impressive collection of rare orchids from tropi...
{"is_valid":true,"category":{"JavaScript":true}}
single
Software architects often debate the merits of monolithic versus microservice designs. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Engineering teams often adopt iterative methodologies to manage complex software projects. The chef prepared a simple meal of roasted vegetables, fre...
{"is_valid":true,"category":{"YAML":true}}
single
Public libraries have evolved into community hubs offering far more than just printed books. Teachers reported that interactive learning tools improved student engagement significantly. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Researchers have been studying migration pattern...
{"is_valid":true,"category":{"Scala":true}}
single
The conference featured keynote speakers from a wide variety of academic backgrounds. Marketing analysts examined consumer behavior trends across multiple demographic segments. Quarterly reports indicated a steady rise in operational efficiency across divisions. Researchers have been studying migration patterns of mona...
{"is_valid":true,"category":{"Scala":true}}
single
Researchers have been studying migration patterns of monarch butterflies for years. Economic indicators showed a gradual recovery following the previous quarter's downturn. Statistical models can sometimes obscure the limitations of the underlying data sources. Teachers reported that interactive learning tools improved...
{"is_valid":true,"category":{"AWK":true}}
single
Energy researchers are exploring various pathways for reducing carbon emissions globally. Network operators continually upgrade infrastructure to keep pace with growing demand. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Database administrators monitor query performance and index...
{"is_valid":true,"category":{"Batch":true}}
single
Late spring rains caused the lake to swell beyond its usual seasonal boundaries. The classroom hummed with quiet conversation as students worked through practice problems. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Farmers depend on accurate weather forecasts to plan th...
{"is_valid":true,"category":{"C#":true}}
single
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. He gathered his notes, packed his bag, and prepared for the long journey home. Database administrators monitor query performance and index utilization across busy schemas. He wandered through the old bookstore, occasionally pullin...
{"is_valid":true,"category":{"SQL":true}}
single
Here is the code I was given: --defines addition, subtraction, negation, multiplication, division, conjugation, norms, and a conversion to strgs. complex = setmetatable({ __add = function(u, v) return complex(u.real + v.real, u.imag + v.imag) end, __sub = function(u, v) return complex(u.real - v.real, u.imag - v.imag) ...
{"is_valid":true,"category":{"Lua":true}}
single
Researchers gathered data from hundreds of households participating in the longitudinal study. The painting featured warm colors that evoked memories of childhood summers by the sea. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. He gathered his notes, packed his bag, and ...
{"is_valid":true,"category":{"PowerShell":true}}
single
Energy researchers are exploring various pathways for reducing carbon emissions globally. Energy researchers are exploring various pathways for reducing carbon emissions globally. Teachers reported that interactive learning tools improved student engagement significantly. Quality assurance teams collaborate closely wit...
{"is_valid":true,"category":{"Makefile":true}}
single
Please review the following snippet for issues: ## Generate and plot Kronecker product based fractals. aev 8/12/16 ## gpKronFractal(m, n, pf, clr, ttl, dflg=0, psz=600): ## Where: m - initial matrix (filled with 0/1); n - order of the fractal; ## pf - plot file name (without extension); clr - color; ttl - plot title; #...
{"is_valid":true,"category":{"R":true}}
single
Run the following: /* Using the Qt library's XML parser. */ #include <iostream>   #include <QDomDocument> #include <QObject>   int main() { QDomDocument doc;   doc.setContent( QObject::tr( "<Students>\n" "<Student Name=\"April\" Gender=\"F\" DateOfBirth=\"1989-01-
{"is_valid":true,"category":{"C++":true}}
single
Historians continue to debate the significance of the treaty signed in that pivotal year. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Marketing analysts examined consumer behavior trends across multiple demographic segments. Modern microprocessors rely on pipelining and ...
{"is_valid":true,"category":{"AWK":true}}
single
Energy researchers are exploring various pathways for reducing carbon emissions globally. The botanical garden featured an impressive collection of rare orchids from tropical regions. Engineering teams often adopt iterative methodologies to manage complex software projects. Network operators continually upgrade infrast...
{"is_valid":true,"category":{"R":true}}
single
The neighborhood gathered every Saturday morning at the small farmers' market downtown. Researchers have been studying migration patterns of monarch butterflies for years. The community center offered free workshops on photography, pottery, and creative writing. Quick question about this snippet: @echo off set number=0...
{"is_valid":true,"category":{"Batch":true,"AWK":true}}
multi
Economic indicators showed a gradual recovery following the previous quarter's downturn. 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. He sat by the window with a steaming mug of tea and wat...
{"is_valid":true,"category":{"Swift":true}}
single
Take a look at this: #include <iostream> #include <vector>   constexpr int N = 2200; constexpr int N2 = 2 * N * N;   int main() { using namespace std;   vector<bool> found(N + 1); vector<bool> aabb(N2 + 1);   int s = 3;   for (int a = 1; a < N; ++a) { int aa = a * a; for (int b = 1; ...
{"is_valid":true,"category":{"C++":true}}
single
Engineering teams often adopt iterative methodologies to manage complex software projects. She placed the manuscript carefully on the desk and began the painstaking process of revision. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Researchers have been studying migration ...
{"is_valid":true,"category":{"Bash":true,"Go":true}}
multi
Can you optimize this implementation: #include <stdio.h> #include <stdlib.h> #include <string.h>   #define N_SITES 150 double site[N_SITES][2]; unsigned char rgb[N_SITES][3];   int size_x = 640, size_y = 480;   inline double sq2(double x, double y) { return x * x + y * y; }   #define for_k for (k = 0; k < N_SITES; k
{"is_valid":true,"category":{"C":true}}
single
He walked along the river path, listening to the rustling of leaves overhead. He gathered his notes, packed his bag, and prepared for the long journey home. Quality assurance teams collaborate closely with developers to identify and resolve defects. Quality assurance teams collaborate closely with developers to identif...
{"is_valid":true,"category":{"Ruby":true}}
single
Backend services were redesigned to handle the surge in concurrent user requests. The committee scheduled a follow-up meeting to discuss the budget allocations. He sat by the window with a steaming mug of tea and watched the snow gently falling. Distributed systems demand careful attention to consistency, availability,...
{"is_valid":true,"category":{"JavaScript":true}}
single
Add comments to make this clearer: ::assocarrays.cmd @echo off setlocal ENABLEDELAYEDEXPANSION set array.dog=1 set array.cat=2 set array.wolf=3 set array.cow=4 for %%i in (dog cat wolf cow) do call :showit array.%%i !array.%%i! set c=-27 call :mkarray sicko flu 5 measles 6 mumps 7 bromodrosis 8 for %%i in (flu measles ...
{"is_valid":true,"category":{"Batch":true}}
single
Translate this into another language for me: import java.math.BigInteger; import java.util.HashMap; import java.util.Map;   public class LahNumbers {   public static void main(String[] args) { System.out.println("Show the unsigned Lah numbers up to n = 12:"); for ( int n = 0 ; n <= 12 ; n++ ) { ...
{"is_valid":true,"category":{"Java":true,"C++":true}}
multi
Database administrators monitor query performance and index utilization across busy schemas. I copied this from the docs: // modifies the matrix in-place Matrix.prototype.toReducedRowEchelonForm = function() { var lead = 0; for (var r = 0; r < this.rows(); r++) { if (this.columns() <= lead) { ...
{"is_valid":true,"category":{"JavaScript":true}}
single
Refactor the function below: public class McNuggets {   public static void main(String... args) { int[] SIZES = new int[] { 6, 9, 20 }; int MAX_TOTAL = 100; // Works like Sieve of Eratosthenes int numSizes = SIZES.length; int[] counts = new int[numSizes]; int maxFound...
{"is_valid":true,"category":{"Java":true}}
single
Teachers reported that interactive learning tools improved student engagement significantly. Here is the code I was given: // version 1.1.2   import java.io.File   fun main(args: Array<String>) { File("input.txt").forEachLine { println(it) } } He sat by the window with a steaming mug of tea and watched the snow gen...
{"is_valid":true,"category":{"Kotlin":true}}
single
Run the following: const FILE: &'static str = include_str!("./unixdict.txt");   fn is_ordered(s: &str) -> bool { let mut prev = '\x00'; for c in s.to_lowercase().chars() { if c < prev { return false; } prev = c; }   return true; }   fn find_longest_ordered_words(dict:...
{"is_valid":true,"category":{"Rust":true,"Perl":true}}
multi
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Policy analysts examined the long-term implications of the proposed legislative reform. She drafted a detailed agenda for the upcoming...
{"is_valid":true,"category":{"Swift":true,"Lua":true}}
multi
Please review the following snippet for issues: using System; using System.Collections.Generic;   namespace RosettaSearchListofRecords { class Program { static void Main(string[] args) { var dataset = new List<Dictionary<string, object>>() { new Dictionary<string, obj...
{"is_valid":true,"category":{"C#":true}}
single
He walked along the river path, listening to the rustling of leaves overhead. Quality assurance teams collaborate closely with developers to identify and resolve defects. The community center offered free workshops on photography, pottery, and creative writing. Travelers explored ancient ruins, marveling at the craftsm...
{"is_valid":true,"category":{"Bash":true}}
single
Public libraries have evolved into community hubs offering far more than just printed books. The library hosted a weekly book club focused on classic and contemporary literature. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Travelers explored ancient ruins, marveling at the ...
{"is_valid":true,"category":{"Terraform":true,"Lua":true}}
multi
The engineer reviewed the blueprints carefully before approving the modifications. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Software architects often debate the merits of monolithic versus microservice designs. He sat by the window with a steaming mug of tea and watch...
{"is_valid":false,"category":{}}
benign
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. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Public libraries have evolved into community hubs off...
{"is_valid":false,"category":{}}
benign
Take a look at this: # syntax: GAWK -f MOBIUS_FUNCTION.AWK # converted from Java BEGIN { printf("first 199 terms of the mobius sequence:\n ") for (n=1; n<200; n++) { printf("%3d",mobius(n)) if ((n+1) % 20 == 0) { printf("\n") } } exit(0) } function mobius(n, i,j,mu_max) { ...
{"is_valid":true,"category":{"AWK":true}}
single
He walked along the river path, listening to the rustling of leaves overhead. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Production teams refined their processes to minimize waste and improve overall yield. Public libraries have evolved into community hubs offering far more tha...
{"is_valid":true,"category":{"Batch":true}}
single
Please review the following snippet for issues: (ns brainfuck)   (def ^:dynamic *input*)   (def ^:dynamic *output*)   (defrecord Data [ptr cells])   (defn inc-ptr [next-cmd] (fn [data] (next-cmd (update-in data [:ptr] inc))))   (defn dec-ptr [next-cmd] (fn [data] (next-cmd (update-in data [:ptr] dec))))   (...
{"is_valid":true,"category":{"C++":true}}
single
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. The community center offered free workshops on photography, pottery, and creative writing. Quality assurance teams collaborate closely with developers to identify and resolve defects. Children played in the park while their par...
{"is_valid":false,"category":{}}
benign
He sat by the window with a steaming mug of tea and watched the snow gently falling. Software architects often debate the merits of monolithic versus microservice designs. Project managers stressed the importance of clear documentation throughout the cycle. Statistical models can sometimes obscure the limitations of th...
{"is_valid":true,"category":{"Batch":true}}
single
He walked along the river path, listening to the rustling of leaves overhead. Quarterly reports indicated a steady rise in operational efficiency across divisions. The painting featured warm colors that evoked memories of childhood summers by the sea. Historians continue to debate the significance of the treaty signed ...
{"is_valid":true,"category":{"C#":true}}
single
Astronomers observed a faint signal that appeared to originate from a distant galaxy. She organized her bookshelves by genre and then alphabetically within each section. Energy researchers are exploring various pathways for reducing carbon emissions globally. Historians continue to debate the significance of the treaty...
{"is_valid":true,"category":{"Java":true}}
single
Take a look at this: #include <stdio.h> #include <stdlib.h> #include <string.h>   #define N_SITES 150 double site[N_SITES][2]; unsigned char rgb[N_SITES][3];   int size_x = 640, size_y = 480;   inline double sq2(double x, double y) { return x * x + y * y; }   #define for_k for (k = 0; k < N_SITES; k++) int nearest_sit...
{"is_valid":true,"category":{"C":true}}
single
Network operators continually upgrade infrastructure to keep pace with growing demand. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Policy analysts examined the long-term implications of the proposed legislative reform. Hikers were advised to carry plenty of water and to info...
{"is_valid":false,"category":{}}
benign
Quick question about this snippet: local function help() print [[ The 24 Game   Given any four digits in the range 1 to 9, which may have repetitions, Using just the +, -, *, and / operators; and the possible use of brackets, (), show how to make an answer of 24.   An answer of "q" will quit the game. An answer ...
{"is_valid":true,"category":{"Lua":true}}
single
She enjoyed reading historical novels that transported her to far away places. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Project managers stressed the importance of clear documentation throughout the cycle. Public libraries have evolved into community hubs offering fa...
{"is_valid":true,"category":{"Terraform":true}}
single
Researchers have been studying migration patterns of monarch butterflies for years. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. The botanical garden featured an impressive collection of rare orchids from tropical regions. The conference featured keynote speakers from a w...
{"is_valid":false,"category":{}}
benign
Add comments to make this clearer: @echo off  :main cls echo Drag a .wav file there and press enter set /p file1= sndrec32 /embedding /play /close %file1% cls echo Drag a second .wav file and both will play together set /p file2= sndrec32 /embedding /play /close %file1% | sndrec32 /embedding /play /close %file2...
{"is_valid":true,"category":{"Batch":true}}
single
Quick question about this snippet: function fileLine (lineNum, fileName) local count = 0 for line in io.lines(fileName) do count = count + 1 if count == lineNum then return line end end error(fileName .. " has fewer than " .. lineNum .. " lines.") end   print(fileLine(7, "test.txt"))
{"is_valid":true,"category":{"Lua":true}}
single
The painting featured warm colors that evoked memories of childhood summers by the sea. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. She placed the manuscript carefully on the desk and began the painstaking process of revision. Database administrators monitor query perfor...
{"is_valid":true,"category":{"YAML":true}}
single
The newly opened gallery showcased contemporary works by emerging regional artists. Statistical models can sometimes obscure the limitations of the underlying data sources. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Backend services were redesigned to handle the surge in concur...
{"is_valid":true,"category":{"Bash":true}}
single
Local musicians performed acoustic sets every Friday evening at the small cafe. Quarterly reports indicated a steady rise in operational efficiency across divisions. Production teams refined their processes to minimize waste and improve overall yield. Researchers gathered data from hundreds of households participating ...
{"is_valid":true,"category":{"Perl":true,"Kotlin":true}}
multi
Visitors strolled through the cobblestone streets, admiring the historic architecture. Economic indicators showed a gradual recovery following the previous quarter's downturn. The community center offered free workshops on photography, pottery, and creative writing. The engineer reviewed the blueprints carefully before...
{"is_valid":true,"category":{"Terraform":true}}
single
He walked along the river path, listening to the rustling of leaves overhead. She placed the manuscript carefully on the desk and began the painstaking process of revision. I need help debugging this script: #ifndef _MILLER_RABIN_H_ #define _MILLER_RABIN_H #include <gmp.h> bool miller_rabin_test(mpz_t n, int j); #endif...
{"is_valid":true,"category":{"C":true}}
single
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. 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. Please review the following snippet for is...
{"is_valid":true,"category":{"R":true,"Java":true}}
multi
Visitors strolled through the cobblestone streets, admiring the historic architecture. Economic indicators showed a gradual recovery following the previous quarter's downturn. Take a look at this: apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: system:coredns labels: kubernetes...
{"is_valid":true,"category":{"YAML":true}}
single
Translate this into another language for me: import Foundation   extension BinaryInteger { @inlinable public func gcd(with other: Self) -> Self { var gcd = self var b = other   while b != 0 { (gcd, b) = (b, gcd % b) }   return gcd }   @inlinable public func lcm(with other: Self) -> S...
{"is_valid":true,"category":{"Swift":true}}
single
Distributed systems demand careful attention to consistency, availability, and partition tolerance. Network operators continually upgrade infrastructure to keep pace with growing demand. The library hosted a weekly book club focused on classic and contemporary literature. The bakery on the corner was famous for its sou...
{"is_valid":true,"category":{"SQL":true}}
single
The garden looked particularly vibrant after the recent rain. Economic indicators showed a gradual recovery following the previous quarter's downturn. Local potters fired their kilns once a month, producing colorful ceramics for the shops. I copied this from the docs: dna = <<DNA_STR CGTAAAAAATTACAACGTCCTTTGGCTATCTCTTA...
{"is_valid":true,"category":{"Ruby":true}}
single
Quick question about this snippet: # determinant of 2x2 matrix def det(a;b;c;d): a*d - b*c ;   # Input: an array representing a line (L1) # Output: the intersection of L1 and L2 unless the lines are judged to be parallel # This implementation uses "destructuring" to assign local variables def lineIntersection(L2): . ...
{"is_valid":true,"category":{"jq":true,"Go":true}}
multi
The botanical garden featured an impressive collection of rare orchids from tropical regions. Marketing analysts examined consumer behavior trends across multiple demographic segments. Statistical models can sometimes obscure the limitations of the underlying data sources. Public libraries have evolved into community h...
{"is_valid":true,"category":{"Terraform":true}}
single
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. Can you optimize this implementation: local function haversine(x1, y1, x2, y2) r=0.017453292519943295769236907684886127; x1= x1*r; x2= x2*r; ...
{"is_valid":true,"category":{"Lua":true}}
single
Here is the code I was given: # FOR FUTURE EDITORS: # To add chemical elements, modify the CHEMICAL_ELEMENTS function, # ensuring that the date is updated properly and that there is at least one # space between the element names after concatenation of the strings. # Do not include any of the "unnamed" chemical element ...
{"is_valid":true,"category":{"jq":true}}
single
Take a look at this: package main   import ( "image" "image/color" "image/png" "log" "os" "sync" )   func main() { const ( width, height = 800.0, 600.0 maxIter = 255 cX, cY = -0.7, 0.27015 fileName = "julia.png" ) img := image.NewNRGBA(image.Rect(0, 0, width, height))   var wg sync.W...
{"is_valid":true,"category":{"Go":true}}
single
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Add comments to make this clearer: using System;   class Program { static void Main(string[] args) { //Using Console.WriteLine() will append a newline Console.WriteLine("Goodbye, World!");   //Using C...
{"is_valid":true,"category":{"C#":true}}
single
Backend services were redesigned to handle the surge in concurrent user requests. Network operators continually upgrade infrastructure to keep pace with growing demand. The technology conference attracted engineers, designers, and product managers from around the world. Translate this into another language for me: let ...
{"is_valid":true,"category":{"Swift":true}}
single
Energy researchers are exploring various pathways for reducing carbon emissions globally. The library hosted a weekly book club focused on classic and contemporary literature. Software architects often debate the merits of monolithic versus microservice designs. She drafted a detailed agenda for the upcoming retreat an...
{"is_valid":true,"category":{"Batch":true}}
single
Marketing analysts examined consumer behavior trends across multiple demographic segments. Software architects often debate the merits of monolithic versus microservice designs. Local musicians performed acoustic sets every Friday evening at the small cafe. The morning light filtered through the kitchen window as the c...
{"is_valid":true,"category":{"JavaScript":true}}
single
Find any security problems in: /** * Copyright 2018 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
{"is_valid":true,"category":{"Terraform":true}}
single
Marketing analysts examined consumer behavior trends across multiple demographic segments. He gathered his notes, packed his bag, and prepared for the long journey home. The committee scheduled a follow-up meeting to discuss the budget allocations. Public libraries have evolved into community hubs offering far more tha...
{"is_valid":true,"category":{"Terraform":true}}
single
Quality assurance teams collaborate closely with developers to identify and resolve defects. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Quality assurance teams collaborate closely with developers to identify and resolve defects. Add comments to make this clearer: tr \ '...
{"is_valid":true,"category":{"Bash":true,"Batch":true}}
multi
Take a look at this: /** * Given a width, return a function that takes a string, and * pads it at both ends to the given width * @param {number} width * @returns {function(string): string} */ const printCenter = width => s => s.padStart(width / 2 + s.length / 2, ' ').padEnd(width);   /** * Given an locale str...
{"is_valid":true,"category":{"JavaScript":true}}
single
Here is the code I was given: comment_symbols = ";#"   s1 = "apples, pears # and bananas" s2 = "apples, pears ; and bananas"   print ( string.match( s1, "[^"..comment_symbols.."]+" ) ) print ( string.match( s2, "[^"..comment_symbols.."]+" ) )
{"is_valid":true,"category":{"Lua":true}}
single
Distributed systems demand careful attention to consistency, availability, and partition tolerance. Take a look at this: for (int i = 0; i < 5; i++) { for (int j = 0; j <= i; j++) { System.out.print("*"); } System.out.println(); } Alongside it, this: fn main() { let examples = vec!["broood", "banana...
{"is_valid":true,"category":{"Java":true,"Rust":true}}
multi
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. The garden looked particularly vibrant after the recent rain. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Children played in the park while their parents chatted on the wooden bench...
{"is_valid":true,"category":{"Swift":true}}
single
Translate this into another language for me: DIR := $(dir $(lastword $(MAKEFILE_LIST))) include $(DIR)/path.mk NIXD_VERSION := fa4fc39e7fd8c9a9183684e349c81931326d7523 NIXD_SHA1SUM := b30e0e2927fef8b492223c1daf35e9f818584065 VENDOR := $(PROJECT_ROOT)/.nixd nixd := $(VENDOR)/bin/nixd export VENDOR $(nixd): @$(VEND...
{"is_valid":true,"category":{"Makefile":true}}
single
Software architects often debate the merits of monolithic versus microservice designs. The newly opened gallery showcased contemporary works by emerging regional artists. Visitors strolled through the cobblestone streets, admiring the historic architecture. Network operators continually upgrade infrastructure to keep p...
{"is_valid":true,"category":{"C#":true}}
single
The newly opened gallery showcased contemporary works by emerging regional artists. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Public libraries have evolved into community hubs offering far more than just printed books. Software architects often debate the merits of mo...
{"is_valid":true,"category":{"jq":true}}
single
Add comments to make this clearer: // [dependencies] // image = "0.23"   use image::{GrayImage, Luma};   type Vector = [f64; 3];   fn normalize(v: &mut Vector) { let inv_len = 1.0/dot_product(v, v).sqrt(); v[0] *= inv_len; v[1] *= inv_len; v[2] *= inv_len; }   fn dot_product(v1: &Vector, v2: &Vector) ->...
{"is_valid":true,"category":{"Rust":true}}
single
Translate this into another language for me: import java.util.Collections import java.util.stream.IntStream   object WheelController { private val IS_NUMBER = "[0-9]".toRegex() private const val TWENTY = 20 private var wheelMap = mutableMapOf<String, WheelModel>()   private fun advance(wheel: String) { ...
{"is_valid":true,"category":{"Kotlin":true}}
single
She placed the manuscript carefully on the desk and began the painstaking process of revision. Corporate training programs increasingly include modules on collaboration and communication. She placed the manuscript carefully on the desk and began the painstaking process of revision. Add comments to make this clearer: ki...
{"is_valid":true,"category":{"YAML":true,"Swift":true}}
multi
Backend services were redesigned to handle the surge in concurrent user requests. He sat by the window with a steaming mug of tea and watched the snow gently falling. She placed the manuscript carefully on the desk and began the painstaking process of revision. The chef prepared a simple meal of roasted vegetables, fre...
{"is_valid":true,"category":{"Ruby":true,"Python":true,"Perl":true}}
multi
The engineer reviewed the blueprints carefully before approving the modifications. Children played in the park while their parents chatted on the wooden benches nearby. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. The library hosted a weekly book club focused on classic and contempor...
{"is_valid":true,"category":{"C#":true}}
single
Backend services were redesigned to handle the surge in concurrent user requests. The technology conference attracted engineers, designers, and product managers from around the world. Policy analysts examined the long-term implications of the proposed legislative reform. Could you explain what this code does: function ...
{"is_valid":true,"category":{"PowerShell":true,"AWK":true}}
multi
Long-distance running requires a combination of disciplined training and proper nutrition. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Historians continue to debate the significance of the treaty signed in that pivotal year. The engineer reviewed the blueprints carefully befo...
{"is_valid":true,"category":{"YAML":true}}
single
The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Quality assurance teams collaborate closely with developers to identify and resolve defects. Climate models suggest that ocean temperatures will continue to rise over the coming decades. The conference featured keynote speakers...
{"is_valid":false,"category":{}}
benign