prompt
large_stringlengths
150
7.97k
target
large_stringlengths
32
83
kind
large_stringclasses
3 values
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. Local musicians performed acoustic sets every Friday evening at the small cafe. The botanical garden featured an impressive collectio...
{"is_valid":true,"category":{"Python":true}}
single
Children played in the park while their parents chatted on the wooden benches nearby. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Quarterly reports indicated a steady rise in opera...
{"is_valid":false,"category":{}}
benign
Long-distance running requires a combination of disciplined training and proper nutrition. Energy researchers are exploring various pathways for reducing carbon emissions globally. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Take a look at this: for i in xrange(1, 101): ...
{"is_valid":true,"category":{"Python":true}}
single
Project managers stressed the importance of clear documentation throughout the cycle. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. She drafted a detailed agenda for the upcoming retreat and circulat...
{"is_valid":true,"category":{"C":true}}
single
I copied this from the docs: #! /usr/bin/awk -f BEGIN { # create the array, using the word as index... words="Zig Zag Wally Ronald Bush Krusty Charlie Bush Bozo"; split(words, haystack_byorder, " "); j=0; for(idx in haystack_byorder) { haystack[haystack_byorder[idx]] = j; j++; } # now chec...
{"is_valid":true,"category":{"AWK":true}}
single
Corporate training programs increasingly include modules on collaboration and communication. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Run the following: ## Install openfisca-core for deployment and publishing. build: @## This allows us to be sure tests are run against t...
{"is_valid":true,"category":{"Makefile":true}}
single
Visitors strolled through the cobblestone streets, admiring the historic architecture. Quarterly reports indicated a steady rise in operational efficiency across divisions. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Farmers depend on accurate weather forecasts to plan t...
{"is_valid":true,"category":{"Bash":true}}
single
He sat by the window with a steaming mug of tea and watched the snow gently falling. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. He walked along the river path, listening to the rustling of leaves overhead. Project managers stressed the importance of clear documentation thr...
{"is_valid":true,"category":{"Scala":true}}
single
The technology conference attracted engineers, designers, and product managers from around the world. The painting featured warm colors that evoked memories of childhood summers by the sea. She organized her bookshelves by genre and then alphabetically within each section. Local musicians performed acoustic sets every ...
{"is_valid":true,"category":{"Batch":true}}
single
Here is the code I was given: "Generate a short Superpermutation of n characters A... as a string using various algorithms."     from __future__ import print_function, division   from itertools import permutations from math import factorial import string import datetime import gc       MAXN = 7     def s_perm0(n): ...
{"is_valid":true,"category":{"Python":true}}
single
Statistical models can sometimes obscure the limitations of the underlying data sources. 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. Software architects often debate the merits of monolit...
{"is_valid":true,"category":{"Python":true}}
single
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. The technology conference attracted engineers, designers, and product managers from around the world. Hikers were advised to carry ple...
{"is_valid":true,"category":{"Rust":true,"Bash":true}}
multi
Corporate training programs increasingly include modules on collaboration and communication. Project managers stressed the importance of clear documentation throughout the cycle. Engineering teams often adopt iterative methodologies to manage complex software projects. Can you optimize this implementation: using System...
{"is_valid":true,"category":{"C#":true}}
single
The neighborhood gathered every Saturday morning at the small farmers' market downtown. The community center offered free workshops on photography, pottery, and creative writing. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Farmers depend on accurate weather forecasts to ...
{"is_valid":true,"category":{"Lua":true}}
single
Local musicians performed acoustic sets every Friday evening at the small cafe. Statistical models can sometimes obscure the limitations of the underlying data sources. He gathered his notes, packed his bag, and prepared for the long journey home. Statistical models can sometimes obscure the limitations of the underlyi...
{"is_valid":true,"category":{"Batch":true}}
single
Backend services were redesigned to handle the surge in concurrent user requests. Can you optimize this implementation: # 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 copyrigh...
{"is_valid":true,"category":{"Dockerfile":true}}
single
The classroom hummed with quiet conversation as students worked through practice problems. Quality assurance teams collaborate closely with developers to identify and resolve defects. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. He gathered his notes, packed his bag, and ...
{"is_valid":true,"category":{"Python":true}}
single
I need help debugging this script: scaleTable = { {0.06, 0.10}, {0.11, 0.18}, {0.16, 0.26}, {0.21, 0.32}, {0.26, 0.38}, {0.31, 0.44}, {0.36, 0.50}, {0.41, 0.54}, {0.46, 0.58}, {0.51, 0.62}, {0.56, 0.66}, {0.61, 0.70}, {0.66, 0.74}, {0.71, 0.78}, {0.76, 0.82}, {0.81, 0.86}, {0.86, 0.90}, {0.91, 0.94}...
{"is_valid":true,"category":{"Lua":true}}
single
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. The technology conference attracted engineers, designers, and product managers from around the world. She enjoyed reading historical...
{"is_valid":true,"category":{"Lua":true}}
single
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. She organized her bookshelves by genre and then alphabetically within each section. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Travelers explored ancient ruins, marveling at the craftsm...
{"is_valid":true,"category":{"Java":true}}
single
The technology conference attracted engineers, designers, and product managers from around the world. What does this output: puts ['apple', 'orange'].length # or .size
{"is_valid":true,"category":{"Ruby":true}}
single
Translate this into another language for me: func list(s: Any...) -> [Any] { return s }   func flatten<T>(s: [Any]) -> [T] { var r = [T]() for e in s { switch e { case let a as [Any]: r += flatten(a) case let x as T: r.append(x) default: assert(false, "value of wrong type") }...
{"is_valid":true,"category":{"Swift":true}}
single
Take a look at this: #[derive(Debug, Clone)] struct Point { x: f64, y: f64, }   #[derive(Debug, Clone)] struct Polygon(Vec<Point>);   fn is_inside(p: &Point, cp1: &Point, cp2: &Point) -> bool { (cp2.x - cp1.x) * (p.y - cp1.y) > (cp2.y - cp1.y) * (p.x - cp1.x) }   fn compute_intersection(cp1: &Point, cp2: &P...
{"is_valid":true,"category":{"Rust":true}}
single
I copied this from the docs: struct MonthDay: CustomStringConvertible { static let months = [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ]   var month: Int var day: Int   var description: String { "\(MonthDay.months[month - ...
{"is_valid":true,"category":{"Swift":true}}
single
Engineering teams often adopt iterative methodologies to manage complex software projects. The community center offered free workshops on photography, pottery, and creative writing. Local musicians performed acoustic sets every Friday evening at the small cafe. Network operators continually upgrade infrastructure to ke...
{"is_valid":true,"category":{"C#":true}}
single
Researchers gathered data from hundreds of households participating in the longitudinal study. Policy analysts examined the long-term implications of the proposed legislative reform. Climate scientists continue to refine their models in light of newly available data. Researchers gathered data from hundreds of household...
{"is_valid":true,"category":{"Lua":true,"C++":true}}
multi
Corporate training programs increasingly include modules on collaboration and communication. Project managers stressed the importance of clear documentation throughout the cycle. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. The bakery on the corner was famous for its sou...
{"is_valid":false,"category":{}}
benign
Could you explain what this code does: use Modern::Perl; use List::Util qw{ min max sum };   sub water_collected { my @t = map { { TOWER => $_, LEFT => 0, RIGHT => 0, LEVEL => 0 } } @_;   my ( $l, $r ) = ( 0, 0 ); $_->{LEFT} = ( $l = max( $l, $_->{TOWER} ) ) for @t; $_->{RIGHT} = ( $r = max( $r, $_->{T...
{"is_valid":true,"category":{"Perl":true}}
single
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. The committee scheduled a follow-up meeting to discuss the budget allocations. Hikers were advised to carry plenty of water and to inform someone of their planned route. Climate scientists continue to refine their models in light of...
{"is_valid":true,"category":{"Batch":true}}
single
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Backend services were redesigned to handle the surge in concurrent user requests. Could you explain what this code does: --defines addition, subtraction, negation, multiplication, division, conjugation, norms, and a conversion to strgs....
{"is_valid":true,"category":{"Lua":true,"AWK":true,"R":true}}
multi
Can you optimize this implementation: local tWord = {} -- word table local tColLen = {} -- maximum word length in a column local rowCount = 0 -- row counter --store maximum column lengths at 'tColLen'; save words into 'tWord' table local function readInput(pStr) for line in pStr:gmatch("([^\n]+)[\n...
{"is_valid":true,"category":{"Lua":true}}
single
I copied this from the docs: @echo off   :_main call:_variadicfunc arg1 "arg 2" arg-3 pause>nul   :_variadicfunc setlocal for %%i in (%*) do echo %%~i exit /b :: Note: if _variadicfunc was called from cmd.exe with arguments parsed to it, it would only need to contain: :: @for %%i in (%*) do echo %%i We also have thi...
{"is_valid":true,"category":{"Batch":true,"Java":true,"C":true}}
multi
Refactor the function below: # 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 by applicable law or agreed to in writing, soft...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Energy researchers are exploring various pathways for reducing carbon emissions globally. She enjoyed reading historical novels that transported her to far away places. Climate scientists continue to refine their models in light of newly available data. Hikers were advised to carry plenty of water and to inform someone...
{"is_valid":true,"category":{"Scala":true,"C":true}}
multi
Can you optimize this implementation: // version 1.1.0   typealias Point = Pair<Double, Double>   fun perpendicularDistance(pt: Point, lineStart: Point, lineEnd: Point): Double { var dx = lineEnd.first - lineStart.first var dy = lineEnd.second - lineStart.second   // Normalize val mag = Math.hypot(dx, d...
{"is_valid":true,"category":{"Kotlin":true}}
single
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. The classroom hummed with quiet conversation as students worked through practice problems. Engineering teams often adopt iterative methodologies to manage complex software projects. She organized her bookshelves by genre and then ...
{"is_valid":true,"category":{"Bash":true,"Java":true}}
multi
Quick question about this snippet: # 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 2.0 ...
{"is_valid":true,"category":{"Dockerfile":true,"Perl":true}}
multi
Can you optimize this implementation: using System; using System.Text; using System.Collections.Generic;   public class BalancedTernary { public static void Main() { BalancedTernary a = new BalancedTernary("+-0++0+"); System.Console.WriteLine("a: " + a + " = " + a.ToLong()); BalancedTernary b = new BalancedTern...
{"is_valid":true,"category":{"C#":true}}
single
Add comments to make this clearer: import java.util.*;   abstract class HuffmanTree implements Comparable<HuffmanTree> { public final int frequency; // the frequency of this tree public HuffmanTree(int freq) { frequency = freq; }   // compares on the frequency public int compareTo(HuffmanTree tree) { ...
{"is_valid":true,"category":{"Java":true}}
single
Software architects often debate the merits of monolithic versus microservice designs. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Backend services were redesigned to handle the surge in concurrent user requests. Modern microprocessors rely on pipelining and out-of-order execut...
{"is_valid":false,"category":{}}
benign
Local musicians performed acoustic sets every Friday evening at the small cafe. 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. Climate models suggest that ocean temperatures will c...
{"is_valid":true,"category":{"SQL":true}}
single
Public libraries have evolved into community hubs offering far more than just printed books. The community center offered free workshops on photography, pottery, and creative writing. Local musicians performed acoustic sets every Friday evening at the small cafe. Farmers depend on accurate weather forecasts to plan the...
{"is_valid":true,"category":{"Swift":true}}
single
Here is the code I was given: import java.util.Random;   public class Main { private static float priceFraction(float f) { if (0.00f <= f && f < 0.06f) return 0.10f; else if (f < 0.11f) return 0.18f; else if (f < 0.16f) return 0.26f; else if (f < 0.21f) return 0.32f; else if (f < 0.26f) return 0.38f; else ...
{"is_valid":true,"category":{"Java":true}}
single
Take a look at this: def combination(r): if r > length or r < 0 then empty elif r == length then . else ( [.[0]] + (.[1:]|combination(r-1))), ( .[1:]|combination(r)) end;   # select r integers from the set (0 .. n-1) def combinations(n;r): [range(0;n)] | combination(r); Plus, for comparison, the equiv...
{"is_valid":true,"category":{"jq":true,"Perl":true}}
multi
Climate scientists continue to refine their models in light of newly available data. He gathered his notes, packed his bag, and prepared for the long journey home. She organized her bookshelves by genre and then alphabetically within each section. The bakery on the corner was famous for its sourdough loaves and seasona...
{"is_valid":true,"category":{"Java":true}}
single
Could you explain what this code does: function permutation ($array) { function generate($n, $array, $A) { if($n -eq 1) { $array[$A] -join '' } else{ for( $i = 0; $i -lt ($n - 1); $i += 1) { generate ($n - 1) $array $A if($n % 2 -eq 0){...
{"is_valid":true,"category":{"PowerShell":true}}
single
Run the following: local line = "---------+----------------------------------+-------+-------+" local digits = {1,2,3,4,5,6,7,8,9}   function and_bits (a, b) -- print (a, b) return a & b -- Lua 5.3 end   function or_bits (a, b) return a | b -- Lua 5.3 end     function get_digits (n) local tDigit
{"is_valid":true,"category":{"Lua":true}}
single
Please review the following snippet for issues: # syntax: GAWK -f DETERMINE_IF_A_STRING_IS_COLLAPSIBLE.AWK BEGIN { for (i=1; i<=9; i++) { for (j=1; j<=i; j++) { arr[0] = arr[0] i } } arr[++n] = "" arr[++n] = "\"If I were two-faced, would I be wearing this one?\" --- Abraham Lincoln "...
{"is_valid":true,"category":{"AWK":true}}
single
Energy researchers are exploring various pathways for reducing carbon emissions globally. Historians continue to debate the significance of the treaty signed in that pivotal year. Policy analysts examined the long-term implications of the proposed legislative reform. Researchers gathered data from hundreds of household...
{"is_valid":true,"category":{"PowerShell":true}}
single
Local musicians performed acoustic sets every Friday evening at the small cafe. He sat by the window with a steaming mug of tea and watched the snow gently falling. Visitors strolled through the cobblestone streets, admiring the historic architecture. Software architects often debate the merits of monolithic versus mic...
{"is_valid":true,"category":{"Lua":true}}
single
The committee scheduled a follow-up meeting to discuss the budget allocations. 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. The newly opened gallery showcased contemporary works by emerging r...
{"is_valid":false,"category":{}}
benign
I copied this from the docs: using Microsoft.VisualStudio.TestTools.UnitTesting; using PalindromeDetector.ConsoleApp;   namespace PalindromeDetector.VisualStudioTests { [TestClass] public class VSTests { [TestMethod] public void PalindromeDetectorCanUnderstandPalindrome()
{"is_valid":true,"category":{"C#":true}}
single
Marketing analysts examined consumer behavior trends across multiple demographic segments. Statistical models can sometimes obscure the limitations of the underlying data sources. Hikers were advised to carry plenty of water and to inform someone of their planned route. Researchers have been studying migration patterns...
{"is_valid":true,"category":{"Terraform":true,"JavaScript":true}}
multi
Software architects often debate the merits of monolithic versus microservice designs. Could you explain what this code does: [uri]::EscapeDataString('http://foo bar/')   http%3A%2F%2Ffoo%20bar%2F Local musicians performed acoustic sets every Friday evening at the small cafe. The painting featured warm colors that evok...
{"is_valid":true,"category":{"PowerShell":true}}
single
Production teams refined their processes to minimize waste and improve overall yield. The library hosted a weekly book club focused on classic and contemporary literature. The garden looked particularly vibrant after the recent rain. Find any security problems in: LinkedList.prototype.traverse = function(func) { fu...
{"is_valid":true,"category":{"JavaScript":true}}
single
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Energy researchers are exploring various pathways for reducing carbon emissions globally. The morning light filtered through the kitchen window as the coffee brewed. The painting featured warm colors that evoked memories of childhood s...
{"is_valid":true,"category":{"Makefile":true}}
single
Quick question about this snippet: "use strict"; /* * Microsoft C Run-time-Library-compatible Random Number Generator * Copyright by Shlomi Fish, 2011. * Released under the MIT/X11 License * ( http://en.wikipedia.org/wiki/MIT_License ). * */ /* This uses Joose 2.x-or-above, an object system for JavaScript - http:/...
{"is_valid":true,"category":{"JavaScript":true}}
single
Can you optimize this implementation: package main   import ( "encoding/xml" "fmt" "io" "io/ioutil" "log" "net/http" "net/url" "regexp" "sort" "strconv" "strings" )   var baseQuery = "http://rosettacode.org/mw/api.php?action=query" + "&format=xml&list=categorymembers&cmlimit=500"   func req(u string, foundC...
{"is_valid":true,"category":{"Go":true}}
single
Researchers gathered data from hundreds of households participating in the longitudinal study. Researchers have been studying migration patterns of monarch butterflies for years. Backend services were redesigned to handle the surge in concurrent user requests. She enjoyed reading historical novels that transported her ...
{"is_valid":false,"category":{}}
benign
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Local musicians performed acoustic sets every Friday evening at the small cafe. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Could you explain what this code does: CREATE TABLE station (city V...
{"is_valid":true,"category":{"SQL":true,"Bash":true}}
multi
What does this output: :: Floyd's triangle Task from Rosetta Code :: Batch File Implementation   @echo off rem main thing setlocal enabledelayedexpansion call :floydtriangle 5 echo( call :floydtriangle 14 exit /b 0   :floydtriangle set "fila=%1" for /l %%c in (1,1,%fila%) do ( set /a "lastRowNum=%%c+fila*(fila-1)/2...
{"is_valid":true,"category":{"Batch":true}}
single
Local potters fired their kilns once a month, producing colorful ceramics for the shops. He sat by the window with a steaming mug of tea and watched the snow gently falling. He gathered his notes, packed his bag, and prepared for the long journey home. Historians continue to debate the significance of the treaty signed...
{"is_valid":true,"category":{"Swift":true,"Java":true}}
multi
He sat by the window with a steaming mug of tea and watched the snow gently falling. Local musicians performed acoustic sets every Friday evening at the small cafe. Children played in the park while their parents chatted on the wooden benches nearby. Modern microprocessors rely on pipelining and out-of-order execution ...
{"is_valid":true,"category":{"jq":true}}
single
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Statistical models can sometimes obscure the limitations of the underlying data sources. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Refactor the function below: using System; u...
{"is_valid":true,"category":{"C#":true}}
single
Run the following: /*Single dimensional array of integers*/ int a[10];   /*2-dimensional array, also called matrix of floating point numbers. This matrix has 3 rows and 2 columns.*/   float b[3][2];   /*3-dimensional array ( Cube ? Cuboid ? Lattice ?) of characters*/   char c[4][5][6];   /*4-dimens
{"is_valid":true,"category":{"C":true}}
single
Please review the following snippet for issues: // Untouchable Numbers : Nigel Galloway - March 4th., 2021; #include <functional> #include <bitset> #include <iostream> #include <cmath> using namespace std; using Z0=long long; using Z1=optional<Z0>; using Z2=optional<array<int,3>>; using Z3=function<Z2()>; const int ma...
{"is_valid":true,"category":{"C++":true}}
single
The community center offered free workshops on photography, pottery, and creative writing. He sat by the window with a steaming mug of tea and watched the snow gently falling. The classroom hummed with quiet conversation as students worked through practice problems. Travelers explored ancient ruins, marveling at the cr...
{"is_valid":true,"category":{"JavaScript":true}}
single
The garden looked particularly vibrant after the recent rain. Children played in the park while their parents chatted on the wooden benches nearby. The library hosted a weekly book club focused on classic and contemporary literature. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings...
{"is_valid":true,"category":{"R":true}}
single
Backend services were redesigned to handle the surge in concurrent user requests. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Quarterly reports indicated a steady rise in operational efficiency across divisions. Quarterly reports indicated a steady rise in operational ef...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Translate this into another language for me: -- Doubly Linked List in Lua 6/15/2020 db ------------------- -- IMPLEMENTATION: -------------------   local function Node(data) return { data=data } --implied: return { data=data, prev=nil, next=nil } end   local List = { head = nil, tail = nil, insertHead = functio...
{"is_valid":true,"category":{"Lua":true,"Go":true,"YAML":true}}
multi
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Production teams refined their processes to minimize waste and improve overall yield. He walked along the river path, listening to the rustling of leaves overhead. Climate scientists continue to refine their models in light of ...
{"is_valid":true,"category":{"Perl":true,"AWK":true,"Terraform":true}}
multi
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Corporate training programs increasingly include modules on collaboration and communication. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Nutritionists generally recommend a balanced diet ric...
{"is_valid":false,"category":{}}
benign
Find any security problems in: >>> def magic(n): for row in range(1, n + 1): print(' '.join('%*i' % (len(str(n**2)), cell) for cell in (n * ((row + col - 1 + n // 2) % n) + ((row + 2 * col - 2) % n) + 1 for col in range(1, n + 1)))) pr...
{"is_valid":true,"category":{"Python":true}}
single
Energy researchers are exploring various pathways for reducing carbon emissions globally. Add comments to make this clearer: pieces <- c("R","B","N","Q","K","N","B","R")   generateFirstRank <- function() { attempt <- paste0(sample(pieces), collapse = "") while (!check_position(attempt)) { attempt <- paste0(samp...
{"is_valid":true,"category":{"R":true}}
single
Refactor the function below: # IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # $Source: src/import/chips/p9/procedures/hwp/nest/p9_build_smp.mk $ # # OpenPOWER HostBoot Project # # Contributors Listed Below - COPYRIGHT 2015,2019 # [+] International Business Machines Corp. # # # Licensed under the ...
{"is_valid":true,"category":{"Makefile":true}}
single
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Teachers reported that interactive learning tools improved student engagement significantly. Teachers reported that interactive learning tools imp...
{"is_valid":true,"category":{"C++":true}}
single
He walked along the river path, listening to the rustling of leaves overhead. Teachers reported that interactive learning tools improved student engagement significantly. Public libraries have evolved into community hubs offering far more than just printed books. Take a look at this: @echo off ::Output to message box ...
{"is_valid":true,"category":{"Batch":true,"JavaScript":true}}
multi
Please review the following snippet for issues: #include <algorithm> #include <fstream> #include <iostream> #include <set> #include <string> #include <vector>   // filename is expected to contain one lowercase word per line std::set<std::string> load_dictionary(const std::string& filename) { std::ifstream in(filena...
{"is_valid":true,"category":{"C++":true}}
single
Software architects often debate the merits of monolithic versus microservice designs. Translate this into another language for me: int2str <- function(x, b) { if(x==0) return("0") if(x<0) return(paste0("-", base(-x,b)))   map <- c(as.character(0:9), letters) res <- "" while (x>0) { res <- c(map[x %% b + ...
{"is_valid":true,"category":{"R":true}}
single
The engineer reviewed the blueprints carefully before approving the modifications. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Project managers stressed the importance of clear documentation throughout the cycle. Network operators continually upgrade infrastructure to keep p...
{"is_valid":true,"category":{"Python":true,"C":true}}
multi
She placed the manuscript carefully on the desk and began the painstaking process of revision. Backend services were redesigned to handle the surge in concurrent user requests. Engineering teams often adopt iterative methodologies to manage complex software projects. Late spring rains caused the lake to swell beyond it...
{"is_valid":true,"category":{"R":true}}
single
The newly opened gallery showcased contemporary works by emerging regional artists. Project managers stressed the importance of clear documentation throughout the cycle. Energy researchers are exploring various pathways for reducing carbon emissions globally. Modern microprocessors rely on pipelining and out-of-order e...
{"is_valid":true,"category":{"Ruby":true}}
single
Please review the following snippet for issues: package main   import ( "fmt" "github.com/mattn/go-gtk/gtk" )   func main() { gtk.Init(nil) window := gtk.NewWindow(gtk.WINDOW_TOPLEVEL) window.SetTitle("Click me") label := gtk.NewLabel("There have been no clicks yet") var clicks int butto...
{"is_valid":true,"category":{"Go":true}}
single
Refactor the function below: use std::ascii::AsciiExt;   static A: u8 = 'A' as u8;   fn uppercase_and_filter(input: &str) -> Vec<u8> { let alphabet = b"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; let mut result = Vec::new();   for c in input.chars() { // Ignore anything that is not in our...
{"is_valid":true,"category":{"Rust":true,"YAML":true}}
multi
Quick question about this snippet: # 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 2.0 ...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Add comments to make this clearer: class ZhangSuen NEIGHBOUR8 = [[-1,0],[-1,1],[0,1],[1,1],[1,0],[1,-1],[0,-1],[-1,-1]] # 8 neighbors CIRCULARS = NEIGHBOUR8 + [NEIGHBOUR8.first] # P2, ... P9, P2 def initialize(str, black="#") s1 = str.each_line.map{|line| line.chomp.each_char.map{|c| c=...
{"is_valid":true,"category":{"Ruby":true}}
single
Energy researchers are exploring various pathways for reducing carbon emissions globally. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Local potters fired their kilns once a month, producing colorful ceramics for the shops. She drafted a detailed agenda for the upcoming retreat an...
{"is_valid":true,"category":{"Go":true}}
single
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. He sat by the window with a steaming mug of tea and watched the snow gently falling. Children played in the park while their parents chatted on the woo...
{"is_valid":true,"category":{"Dockerfile":true,"Go":true,"SQL":true}}
multi
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Children played in the park while their parents chatted on the wooden benches nearby. Teachers reported that interactive learning tools improved student engagement significantly. Software architects often debate the merits of m...
{"is_valid":true,"category":{"Go":true,"Bash":true}}
multi
I need help debugging this script: ''' Note that this code is broken, e.g., it won't work when blocks = [("A", "B"), ("A","C")] and the word is "AB", where the answer should be True, but the code returns False. ''' blocks = [("B", "O"), ("X", "K"), ("D", "Q"), ("C", "P"), ("N", ...
{"is_valid":true,"category":{"Python":true}}
single
Local potters fired their kilns once a month, producing colorful ceramics for the shops. Researchers have been studying migration patterns of monarch butterflies for years. He sat by the window with a steaming mug of tea and watched the snow gently falling. The chef prepared a simple meal of roasted vegetables, fresh b...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Project managers stressed the importance of clear documentation throughout the cycle. Researchers have been studying migration patterns of monarch butterflies for years. Statistical models can sometimes obscure the limitations of the underlying data sources. The library hosted a weekly book club focused on classic and ...
{"is_valid":true,"category":{"Ruby":true}}
single
Software architects often debate the merits of monolithic versus microservice designs. The garden looked particularly vibrant after the recent rain. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. She placed the manuscript carefully on the desk and began the painstaking proc...
{"is_valid":true,"category":{"jq":true}}
single
The garden looked particularly vibrant after the recent rain. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Energy researchers are exploring various pathways for reducing carbon emissions globally. Production teams refined their processes to minimize waste and improve overall yield...
{"is_valid":true,"category":{"PowerShell":true}}
single
Translate this into another language for me: data "template_file" "service" { template = coalesce(var.service_task_container_definitions, file("${path.module}/container-definitions/service.json.tpl")) vars = { name = var.service_name image = var.service_image command = jsonencode(var.service_command) ...
{"is_valid":true,"category":{"Terraform":true}}
single
The botanical garden featured an impressive collection of rare orchids from tropical regions. Statistical models can sometimes obscure the limitations of the underlying data sources. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Network operators continually upgrade infra...
{"is_valid":true,"category":{"Lua":true}}
single
What does this output: typeset -T Complex_t=( float real=0 float imag=0   function to_s { print -- "${_.real} + ${_.imag} i" }   function dup { nameref other=$1 _=( real=${other.real} imag=${other.imag} ) }   function add { typeset varname for varname...
{"is_valid":true,"category":{"Bash":true}}
single
Run the following: fn main() { println!("Sort numbers in descending order"); let mut numbers = [4, 65, 2, -31, 0, 99, 2, 83, 782, 1]; println!("Before: {:?}", numbers);   quick_sort(&mut numbers, &|x,y| x > y); println!("After: {:?}\n", numbers);   println!("Sort strings alphabetically"); l...
{"is_valid":true,"category":{"Rust":true}}
single
Here is the code I was given: @echo off   echo Fibonacci Sequence: call:nfib 1 1 echo.   echo Tribonacci Sequence: call:nfib 1 1 2 echo.   echo Tetranacci Sequence: call:nfib 1 1 2 4 echo.   echo Lucas Numbers: call:nfib 2 1 echo.   pause>nul exit /b   :nfib setlocal enabledelayedexpansion   for %%i in (%*) do ( set ...
{"is_valid":true,"category":{"Batch":true}}
single
She organized her bookshelves by genre and then alphabetically within each section. Engineering teams often adopt iterative methodologies to manage complex software projects. Climate scientists continue to refine their models in light of newly available data. Backend services were redesigned to handle the surge in conc...
{"is_valid":true,"category":{"Terraform":true}}
single