prompt
large_stringlengths
150
7.97k
target
large_stringlengths
32
83
kind
large_stringclasses
3 values
I need help debugging this script: #include <array> #include <iostream>   void require(bool condition, const std::string &message) { if (condition) { return; } throw std::runtime_error(message); }   template<typename T, size_t N> std::ostream &operator<<(std::ostream &os, const std::array<T, N> &a) ...
{"is_valid":true,"category":{"C++":true,"Swift":true}}
multi
The neighborhood gathered every Saturday morning at the small farmers' market downtown. Refactor the function below: package main   import "fmt"   func combrep(n int, lst []string) [][]string { if n == 0 { return [][]string{nil} } if len(lst) == 0 { return nil } r := combrep(n, lst[1...
{"is_valid":true,"category":{"Go":true}}
single
Production teams refined their processes to minimize waste and improve overall yield. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Local musicians performed acoustic sets every Friday evening at t...
{"is_valid":true,"category":{"Java":true}}
single
Could you explain what this code does: #include <stdio.h> #include <stdarg.h> #include <stdlib.h> #include <string.h>   enum { LEFT, RIGHT, STAY };   typedef struct { int state1; int symbol1; int symbol2; int dir; int state2; } transition_t;   typedef struct tape_t tape_t; struct tape_t ...
{"is_valid":true,"category":{"C":true,"Lua":true}}
multi
Backend services were redesigned to handle the surge in concurrent user requests. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. The morning light filtered through the kitchen window as the co...
{"is_valid":true,"category":{"Lua":true}}
single
Add comments to make this clearer: package main   import ( "fmt" "strings" "unicode" "unicode/utf8" )   func main() { show("alphaBETA") show("alpha BETA") // Three digraphs that should render similar to DZ, Lj, and nj. show("DŽLjnj") // Unicode apostrophe in third word. show("o'hare...
{"is_valid":true,"category":{"Go":true}}
single
Add comments to make this clearer: #include <stdio.h> #define TALLOC(n,typ) malloc(n*sizeof(typ))   #define EL_Type int   typedef struct sMtx { int dim_x, dim_y; EL_Type *m_stor; EL_Type **mtx; } *Matrix, sMatrix;   typedef struct sRvec { int dim_x; EL_Type *m_stor; } *RowVec, sRowVec;   Mat...
{"is_valid":true,"category":{"C":true,"Scala":true}}
multi
Take a look at this: reversalGame <- function(){ cat("Welcome to the Number Reversal Game! \n") cat("Sort the numbers into ascending order by repeatedly \n", "reversing the first n digits, where you specify n. \n \n", sep="")   # Generate a list that's definitely not in ascending order, p
{"is_valid":true,"category":{"R":true}}
single
Can you optimize this implementation: #include <stdio.h>   #define MAX_N 33 /* max number of tree nodes */ #define BRANCH 4 /* max number of edges a single node can have */   /* The basic idea: a paraffin molecule can be thought as a simple tree with each node being a carbon atom. Counting molecules is thus the ...
{"is_valid":true,"category":{"C":true,"Rust":true}}
multi
Climate models suggest that ocean temperatures will continue to rise over the coming decades. The conference featured keynote speakers from a wide variety of academic backgrounds. Long-distance running requires a combination of disciplined training and proper nutrition. He sat by the window with a steaming mug of tea a...
{"is_valid":true,"category":{"Scala":true}}
single
The engineer reviewed the blueprints carefully before approving the modifications. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Climate scientists continue to refine their models in light of newly available data. Production teams refined their processes to minimize waste...
{"is_valid":true,"category":{"Kotlin":true}}
single
Run the following: (() => {   // 4-rings or 4-squares puzzle ------------------------   // rings :: noRepeatedDigits -> DigitList -> solutions // rings :: Bool -> [Int] -> [[Int]] const rings = (uniq, digits) => { return 0 < digits.length ? (() => { const ns = sortBy(...
{"is_valid":true,"category":{"JavaScript":true}}
single
Here is the code I was given: import __main__, os   def isOnlyInstance(): # Determine if there are more than the current instance of the application # running at the current time. return os.system("(( $(ps -ef | grep python | grep '[" + __main__.__file__[0] + "]" + __main__.__
{"is_valid":true,"category":{"Python":true}}
single
Researchers have been studying migration patterns of monarch butterflies for years. Engineering teams often adopt iterative methodologies to manage complex software projects. Historians continue to debate the significance of the treaty signed in that pivotal year. A gentle breeze drifted across the meadow as the sun be...
{"is_valid":true,"category":{"JavaScript":true}}
single
Can you optimize this implementation: /** * All Hail Discordia! - this script prints Discordian date using system date. * * lang: JavaScript * author: jklu * contributors: JamesMcGuigan * * changelog: * - Modified to return same output syntax as unix ddate + module.exports - James McGuigan, 2/Chaos/3183 * * s...
{"is_valid":true,"category":{"JavaScript":true}}
single
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Find any security problems in: package main   import ( "bytes" "encoding/xml" "fmt" "io" "io/ioutil" "net/http" "net/url" "strings" )   func req(u string, foundCm func(string)) string { resp, er...
{"is_valid":true,"category":{"Go":true}}
single
The painting featured warm colors that evoked memories of childhood summers by the sea. Add comments to make this clearer: use strict; use warnings; use Math::BigRat;   my ($n, @P) = map Math::BigRat->new($_), qw{ 2 17/91 78/85 19/51 23/38 29/33 77/29 95/23 77/19 1/17 11/13 13/11 15/14 15/2 55/1 };   $|=1; MAIN: for( 1...
{"is_valid":true,"category":{"Perl":true}}
single
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations.
{"is_valid":false,"category":{}}
benign
She placed the manuscript carefully on the desk and began the painstaking process of revision. The garden looked particularly vibrant after the recent rain. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. The botanical garden featured an impressive collection of rare orchids from...
{"is_valid":true,"category":{"Java":true}}
single
Distributed systems demand careful attention to consistency, availability, and partition tolerance. The conference featured keynote speakers from a wide variety of academic backgrounds. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Teachers reported that interactive learning to...
{"is_valid":true,"category":{"SQL":true}}
single
He sat by the window with a steaming mug of tea and watched the snow gently falling. Researchers have been studying migration patterns of monarch butterflies for years. Historians continue to debate the significance of the treaty signed in that pivotal year. He gathered his notes, packed his bag, and prepared for the l...
{"is_valid":true,"category":{"Dockerfile":true,"Ruby":true,"PowerShell":true}}
multi
Distributed systems demand careful attention to consistency, availability, and partition tolerance. He sat by the window with a steaming mug of tea and watched the snow gently falling. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. The painting featured warm colors that evo...
{"is_valid":true,"category":{"C#":true,"SQL":true}}
multi
She placed the manuscript carefully on the desk and began the painstaking process of revision. He sat by the window with a steaming mug of tea and watched the snow gently falling. He walked along the river path, listening to the rustling of leaves overhead. Backend services were redesigned to handle the surge in concur...
{"is_valid":false,"category":{}}
benign
Add comments to make this clearer: import BigInt   func integerSquareRoot<T: BinaryInteger>(_ num: T) -> T { var x: T = num var q: T = 1 while q <= x { q <<= 2 } var r: T = 0 while q > 1 { q >>= 2 let t: T = x - r - q r >>= 1 if t >= 0 { x = t ...
{"is_valid":true,"category":{"Swift":true,"Ruby":true,"C#":true}}
multi
Engineering teams often adopt iterative methodologies to manage complex software projects. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Researchers have been studying migration patterns of monarch butterflies for years. She placed the manuscript carefully on the desk and began the...
{"is_valid":true,"category":{"jq":true,"Python":true}}
multi
Translate this into another language for me: extern crate xml;   use std::collections::HashMap; use std::str;   use xml::writer::{EmitterConfig, XmlEvent};   fn characters_to_xml(characters: HashMap<String, String>) -> String { let mut output: Vec<u8> = Vec::new(); let mut writer = EmitterConfig::new() ...
{"is_valid":true,"category":{"Rust":true}}
single
The classroom hummed with quiet conversation as students worked through practice problems. Quick question about this snippet: # query.rb require 'fiddle'   # Look for a C variable named QueryPointer. # Raise an error if it is missing. c_var = Fiddle.dlopen(nil)['QueryPointer']   int = Fiddle::TYPE_INT voidp = Fiddle::T...
{"is_valid":true,"category":{"Ruby":true}}
single
Please review the following snippet for issues: import java.util.Scanner; import java.util.ArrayList;   public class Sub{ private static int[] indices;   public static void main(String[] args){ ArrayList<Long> array= new ArrayList<Long>(); //the main set Scanner in = new Scanner(System.in); ...
{"is_valid":true,"category":{"Java":true}}
single
Marketing analysts examined consumer behavior trends across multiple demographic segments. Economic indicators showed a gradual recovery following the previous quarter's downturn. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. The committee scheduled a follow-up meeting to discu...
{"is_valid":true,"category":{"SQL":true,"Go":true}}
multi
The conference featured keynote speakers from a wide variety of academic backgrounds. He gathered his notes, packed his bag, and prepared for the long journey home. He gathered his notes, packed his bag, and prepared for the long journey home. Database administrators monitor query performance and index utilization acro...
{"is_valid":true,"category":{"Makefile":true}}
single
Run the following: object LLT extends App { import Stream._   def primeSieve(s: Stream[Int]): Stream[Int] = s.head #:: primeSieve(s.tail filter { _ % s.head != 0 }) val primes = primeSieve(from(2))   def mersenne(p: Int): BigInt = (BigInt(2) pow p) - 1   def s(mp: BigInt, p: Int): BigInt = { if (p == 1) 4...
{"is_valid":true,"category":{"Scala":true}}
single
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. She enjoyed reading historical novels that transported her to far away places. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Teachers reported that interactive learning tools improved stud...
{"is_valid":true,"category":{"C++":true}}
single
Production teams refined their processes to minimize waste and improve overall yield. 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. He walked along the river path, listening to the...
{"is_valid":true,"category":{"Python":true}}
single
Please review the following snippet for issues: # DO NOT EDIT FILES CALLED 'Dockerfile'; they are automatically # generated. Edit 'Dockerfile.in' and generate the 'Dockerfile' # with the 'rake' command. # The suggested name for this image is: bioconductor/release_base. FROM rocker/rstudio:3.6.2 MAINTAINER maintainer@...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Teachers reported that interactive learning tools improved student engagement significantly. Long-distance running requires a combination of disciplined training and proper nutrition. She organized her bookshelves by genre and then alphabetically within each section. Project managers stressed the importance of clear do...
{"is_valid":true,"category":{"Ruby":true}}
single
Hikers were advised to carry plenty of water and to inform someone of their planned route. Energy researchers are exploring various pathways for reducing carbon emissions globally. Climate scientists continue to refine their models in light of newly available data. Run the following: provider "aws" { region = "us-eas...
{"is_valid":true,"category":{"Terraform":true}}
single
Engineering teams often adopt iterative methodologies to manage complex software projects. I need help debugging this script: var val = 0; do { print(++val); } while (val % 6); Backend services were redesigned to handle the surge in concurrent user requests. Modern microprocessors rely on pipelining and out-of-order ...
{"is_valid":true,"category":{"JavaScript":true}}
single
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. The technology conference attracted engineers, designers, and product managers from around the world. The newly opened gallery showcased contemporary works by emerging regional artists. Historians continue to debate the signifi...
{"is_valid":true,"category":{"Lua":true,"Batch":true}}
multi
The technology conference attracted engineers, designers, and product managers from around the world. Please review the following snippet for issues: # Generate a stream of the permutations of the input array. def permutations: if length == 0 then [] else range(0;length) as $i | [.[$i]] + (del(.[$i])|permutations...
{"is_valid":true,"category":{"jq":true}}
single
Policy analysts examined the long-term implications of the proposed legislative reform. Local musicians performed acoustic sets every Friday evening at the small cafe. The newly opened gallery showcased contemporary works by emerging regional artists. Farmers depend on accurate weather forecasts to plan their planting ...
{"is_valid":true,"category":{"R":true}}
single
Teachers reported that interactive learning tools improved student engagement significantly. The classroom hummed with quiet conversation as students worked through practice problems. Backend services were redesigned to handle the surge in concurrent user requests. He adjusted the telescope and waited patiently for the...
{"is_valid":false,"category":{}}
benign
Local musicians performed acoustic sets every Friday evening at the small cafe. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. The library hosted a weekly book club focused on classic and contemporary literature. Historians continue to debate the significance of the treaty...
{"is_valid":true,"category":{"YAML":true}}
single
The botanical garden featured an impressive collection of rare orchids from tropical regions. Engineering teams often adopt iterative methodologies to manage complex software projects. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Statistical models can sometimes obscure the ...
{"is_valid":false,"category":{}}
benign
Long-distance running requires a combination of disciplined training and proper nutrition. Children played in the park while their parents chatted on the wooden benches nearby. She organized her bookshelves by genre and then alphabetically within each section. Backend services were redesigned to handle the surge in con...
{"is_valid":true,"category":{"Rust":true,"PowerShell":true}}
multi
Please review the following snippet for issues: import java.io.*; import java.util.*;   public class JaroWinkler { public static void main(String[] args) { try { List<String> words = loadDictionary("linuxwords.txt"); String[] strings = { "accomodate", "definately", "g...
{"is_valid":true,"category":{"Java":true}}
single
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. The neighborhood gathered every Saturday mo...
{"is_valid":true,"category":{"Rust":true}}
single
Translate this into another language for me: # Copyright 2019 The Kubernetes Authors All rights reserved. # # 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/license...
{"is_valid":true,"category":{"YAML":true}}
single
I need help debugging this script: apiVersion: v1 data: config.yaml: |- "resourceRules": "cpu": "containerLabel": "container" "containerQuery": "sum(irate(container_cpu_usage_seconds_total{<<.LabelMatchers>>,container!=\"POD\",container!=\"\",pod!=\"\"}[5m])) by (<<.GroupBy>>)" "node...
{"is_valid":true,"category":{"YAML":true}}
single
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. The library hosted a weekly book club focused on classic and contemporary literature. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. The engineer reviewed the blueprints carefully before ap...
{"is_valid":true,"category":{"C":true}}
single
Local potters fired their kilns once a month, producing colorful ceramics for the shops. Hikers were advised to carry plenty of water and to inform someone of their planned route. She enjoyed reading historical novels that transported her to far away places. Marketing analysts examined consumer behavior trends across m...
{"is_valid":true,"category":{"C++":true}}
single
Visitors strolled through the cobblestone streets, admiring the historic architecture. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Climate scientists continue to refine their models in light of newly available data. He sat by the window with a steaming mug of tea and watched the ...
{"is_valid":true,"category":{"Kotlin":true}}
single
Public libraries have evolved into community hubs offering far more than just printed books. Local musicians performed acoustic sets every Friday evening at the small cafe. Hikers were advised to carry plenty of water and to inform someone of their planned route. Astronomers observed a faint signal that appeared to ori...
{"is_valid":true,"category":{"C":true}}
single
Please review the following snippet for issues: using System; using System.Drawing; using System.Windows.Forms; static class Program { static void Main() { Application.Run(new FullScreen()); } } public sealed class FullScreen : Form { const int ColorCount = 256; public FullScreen() { FormBorderStyle...
{"is_valid":true,"category":{"C#":true}}
single
Quick question about this snippet: // Version 1.2.31   import org.jfree.chart.ChartFactory import org.jfree.chart.ChartPanel import org.jfree.data.xy.XYSeries import org.jfree.data.xy.XYSeriesCollection import org.jfree.chart.plot.PlotOrientation import javax.swing.JFrame import javax.swing.SwingUtilities import j
{"is_valid":true,"category":{"Kotlin":true}}
single
Researchers have been studying migration patterns of monarch butterflies for years. Researchers have been studying migration patterns of monarch butterflies for years. Astronomers observed a faint signal that appeared to originate from a distant galaxy. The technology conference attracted engineers, designers, and prod...
{"is_valid":true,"category":{"Go":true}}
single
The engineer reviewed the blueprints carefully before approving the modifications. Find any security problems in: FROM centos:7 MAINTAINER The CentOS Project <cloud-ops@centos.org> RUN yum -y install docker-distribution; yum clean all EXPOSE 5000 USER 42 ENTRYPOINT ["/usr/bin/registry"] CMD ["/etc/docker-distributi...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Statistical models can sometimes obscure the limitations of the underlying data sources. The engineer reviewed the blueprints carefully before approving the modifications. Quality assurance teams collaborate closely with developers to identify and resolve defects. Run the following: CREATE TABLE Rooms (roomName VARCHAR...
{"is_valid":true,"category":{"SQL":true}}
single
The community center offered free workshops on photography, pottery, and creative writing. Refactor the function below: (function () { 'use strict';   // angloDuration :: Int -> String function angloDuration(intSeconds) { return zip( weekParts(intSeconds), ['wk', 'd'...
{"is_valid":true,"category":{"JavaScript":true,"Java":true,"Batch":true}}
multi
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Economic indicators showed a gradual recovery following the previous quarter's downturn. Find any security problems in: # Build James # # VERSION 1.0 FROM eclipse-temurin:11-jdk-focal # Install git RUN apt-get update RUN apt-get insta...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Production teams refined their processes to minimize waste and improve overall yield. I copied this from the docs: using System; using System.Collections.Generic; using System.Linq;   static class Program { static void Main() { Func<int, IEnumerable<int>> ms = m => Infinite().Select(i => (int)Math.Pow(i, m)...
{"is_valid":true,"category":{"C#":true}}
single
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. The garden looked particularly vibrant after the recent rain. Researchers gathered data from hundreds of households participating in the longitudinal s...
{"is_valid":false,"category":{}}
benign
Local musicians performed acoustic sets every Friday evening at the small cafe. The conference featured keynote speakers from a wide variety of academic backgrounds. Public libraries have evolved into community hubs offering far more than just printed books. Travelers explored ancient ruins, marveling at the craftsmans...
{"is_valid":true,"category":{"Kotlin":true}}
single
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. He walked along the river path, listening to the rustling of leaves overhead. Production teams refined their processes to minimize waste and improve overall yield. Nutritionists generally recommend a balanced diet rich in whole...
{"is_valid":false,"category":{}}
benign
Quality assurance teams collaborate closely with developers to identify and resolve defects. Network operators continually upgrade infrastructure to keep pace with growing demand. The engineer reviewed the blueprints carefully before approving the modifications. Software architects often debate the merits of monolithic...
{"is_valid":true,"category":{"Swift":true}}
single
Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. He wandered through the old bookstore, occasi...
{"is_valid":true,"category":{"PowerShell":true,"Dockerfile":true}}
multi
He walked along the river path, listening to the rustling of leaves overhead. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. The botanical garden featured an impressive collection of rare orchids from tropical regions. The botanical garden featured an impressive collection of ra...
{"is_valid":true,"category":{"Rust":true,"Scala":true}}
multi
I copied this from the docs: function Read-ConfigurationFile { [CmdletBinding()] Param ( # Path to the configuration file. Default is "C:\ConfigurationFile.cfg" [Parameter(Mandatory=$false, Position=0)] [string] $Path = "C:\ConfigurationFile.cfg" )   [string]$script:...
{"is_valid":true,"category":{"PowerShell":true}}
single
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. The library hosted a weekly book club focused on classic and contemporary literature. Researchers gathered data from hundreds of households participating in the longitudinal study. The neighborhood gathered every Saturday morn...
{"is_valid":true,"category":{"Swift":true}}
single
Can you optimize this implementation: @echo off Setlocal EnableDelayedExpansion   call :clock   ::timed function:fibonacci series..................................... set /a a=0 ,b=1,c=1 :loop if %c% lss 2000000000 echo %c% & set /a c=a+b,a=b, b=c & goto loop ::.............................................................
{"is_valid":true,"category":{"Batch":true}}
single
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Researchers gathered data from hundreds of households participating in the longitudinal study. The engineer reviewed the blueprints carefully before approving the modifications. Policy analysts examined the long-term implicatio...
{"is_valid":true,"category":{"C":true}}
single
The newly opened gallery showcased contemporary works by emerging regional artists. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. She organized her bookshelves by genre and then alphabetically within each section. The morning light filtered through the kitchen window as t...
{"is_valid":false,"category":{}}
benign
Hikers were advised to carry plenty of water and to inform someone of their planned route. The newly opened gallery showcased contemporary works by emerging regional artists. Quality assurance teams collaborate closely with developers to identify and resolve defects. The bakery on the corner was famous for its sourdoug...
{"is_valid":true,"category":{"Terraform":true}}
single
The classroom hummed with quiet conversation as students worked through practice problems. Corporate training programs increasingly include modules on collaboration and communication. Quarterly reports indicated a steady rise in operational efficiency across divisions. The morning light filtered through the kitchen win...
{"is_valid":false,"category":{}}
benign
Statistical models can sometimes obscure the limitations of the underlying data sources. Policy analysts examined the long-term implications of the proposed legislative reform. Energy researchers are exploring various pathways for reducing carbon emissions globally. She drafted a detailed agenda for the upcoming retrea...
{"is_valid":true,"category":{"Kotlin":true}}
single
The conference featured keynote speakers from a wide variety of academic backgrounds. Policy analysts examined the long-term implications of the proposed legislative reform. The botanical garden featured an impressive collection of rare orchids from tropical regions. Distributed systems demand careful attention to cons...
{"is_valid":true,"category":{"AWK":true}}
single
What does this output: #!/bin/sh   db_create() { mkdir ./"$1" && mkdir "./$1/.tag" && echo "Create DB \`$1'" }   db_delete() { rm -r ./"$1" && echo "Delete DB \`$1'" }   db_show() { if [ -z "$2" ]; then show_help; fi for x in "./$1/$2/"*; do echo "$x:" | sed "s/.*\///" cat "$x" | sed "s/^/ /" echo done   ...
{"is_valid":true,"category":{"Bash":true}}
single
Production teams refined their processes to minimize waste and improve overall yield. Please review the following snippet for issues: fn main() { // To render the number as string, use format! macro instead println!("Binary: {:b}", 0xdeadbeefu32); println!("Binary with 0b prefix: {:#b}", 0xdeadbeefu32); ...
{"is_valid":true,"category":{"Rust":true}}
single
He gathered his notes, packed his bag, and prepared for the long journey home. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Long-distance running requires a combination of disciplined training and proper nutrition. The committee scheduled a follow-up meeting to discuss th...
{"is_valid":true,"category":{"Rust":true}}
single
Researchers gathered data from hundreds of households participating in the longitudinal study. She enjoyed reading historical novels that transported her to far away places. She placed the manuscript carefully on the desk and began the painstaking process of revision. She organized her bookshelves by genre and then alp...
{"is_valid":true,"category":{"Terraform":true}}
single
Find any security problems in: import Foundation   protocol Thingable { // prior to Swift 1.2, needs to be declared @objc func thing() -> String }   class Delegator { weak var delegate: AnyObject? func operation() -> String { if let f = self.delegate?.thing { return f() } else { retur
{"is_valid":true,"category":{"Swift":true}}
single
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Project managers stressed the importance of clear documentation throughout the cycle. The garden looked particularly vibrant after the recent rain. The technology conference attracted engineers, designers, and product managers ...
{"is_valid":true,"category":{"Ruby":true,"Terraform":true,"Rust":true}}
multi
She placed the manuscript carefully on the desk and began the painstaking process of revision. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Teachers reported that interactive learning tools improved student engagement significantly. She organized her bookshelves by genre and then alp...
{"is_valid":true,"category":{"R":true,"AWK":true}}
multi
Add comments to make this clearer: #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h>   #define BUFFER_SIZE 128   typedef unsigned char character; typedef character *string;   typedef struct node_t node; struct node_t { enum tag_t { NODE_LEAF, NODE_TREE, NODE_SEQ...
{"is_valid":true,"category":{"C":true,"Ruby":true}}
multi
Find any security problems in: import java.awt.Point; import java.util.*;   public class ZhangSuen {   final static String[] image = { " ", " ################# ############# ", " ################## ...
{"is_valid":true,"category":{"Java":true}}
single
Local potters fired their kilns once a month, producing colorful ceramics for the shops. Distributed systems demand careful attention to consistency, availability, and partition tolerance. The morning light filtered through the kitchen window as the coffee brewed. Visitors strolled through the cobblestone streets, admi...
{"is_valid":true,"category":{"jq":true}}
single
Please review the following snippet for issues: ::I before E except after C task from Rosetta Code Wiki ::Batch File Implementation   @echo off setlocal enabledelayedexpansion ::Initialization set ie=0 set ei=0 set cie=0 set cei=0   set propos1=FALSE set propos2=FALSE set propos3=FALSE ::Do the matching for /f %%X i...
{"is_valid":true,"category":{"Batch":true}}
single
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. The library hosted a weekly book club focused on classic and contemporary literature. Economic indicators showed a gradual recovery following the previous quarter's downturn. The technology conference attracted engineers, desig...
{"is_valid":true,"category":{"Bash":true}}
single
The conference featured keynote speakers from a wide variety of academic backgrounds. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. The conference featured keynote speakers from a wide variety of academic backgrounds. He walked along the river path, listening to the rustli...
{"is_valid":true,"category":{"Bash":true}}
single
The engineer reviewed the blueprints carefully before approving the modifications. Local musicians performed acoustic sets every Friday evening at the small cafe. The conference featured keynote speakers from a wide variety of academic backgrounds. Researchers have been studying migration patterns of monarch butterflie...
{"is_valid":true,"category":{"YAML":true}}
single
Refactor the function below: BEGIN { weight[1] = "red"; weight[2] = "white"; weight[3] = "blue"; # ballnr must be >= 3. Using very high numbers here may make your computer # run out of RAM. (10 millions balls ~= 2.5GiB RAM on x86_64) ballnr = 10   srand() # Generating a random pool of balls. Thi...
{"is_valid":true,"category":{"AWK":true}}
single
Quick question about this snippet: (() => { 'use strict';   // withExpansions :: [(String, Int)] -> String -> String const withExpansions = tbl => s => unwords(map(expanded(tbl), words(s)));   // expanded :: [(String, Int)] -> String -> String const expanded = tbl => s => { const ...
{"is_valid":true,"category":{"JavaScript":true}}
single
Corporate training programs increasingly include modules on collaboration and communication. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. He sat by the window with a steaming mug of...
{"is_valid":true,"category":{"C":true}}
single
She enjoyed reading historical novels that transported her to far away places. Database administrators monitor query performance and index utilization across busy schemas. Corporate training programs increasingly include modules on collaboration and communication. The library hosted a weekly book club focused on classi...
{"is_valid":true,"category":{"Dockerfile":true}}
single
Quick question about this snippet: # IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # $Source: src/import/chips/p9/procedures/hwp/ffdc/p9_collect_some_ffdc.mk $ # # OpenPOWER HostBoot Project # # Contributors Listed Below - COPYRIGHT 2016,2019 # [+] International Business Machines Corp. # # #
{"is_valid":true,"category":{"Makefile":true}}
single
The committee scheduled a follow-up meeting to discuss the budget allocations. Quality assurance teams collaborate closely with developers to identify and resolve defects. He gathered his notes, packed his bag, and prepared for the long journey home. Economic indicators showed a gradual recovery following the previous ...
{"is_valid":true,"category":{"Terraform":true}}
single
Please review the following snippet for issues: import java.util.ArrayList; import java.util.List;   public class ResistorMesh { private static final int S = 10;   private static class Node { double v; int fixed;   Node(double v, int fixed) { this.v = v; this.fixe...
{"is_valid":true,"category":{"Java":true,"JavaScript":true}}
multi
What does this output: extension Array { func combinations(_ k: Int) -> [[Element]] { return Self._combinations(slice: self[startIndex...], k) }   static func _combinations(slice: Self.SubSequence, _ k: Int) -> [[Element]] { guard k != 1 else { return slice.map({ [$0] }) }
{"is_valid":true,"category":{"Swift":true}}
single
Policy analysts examined the long-term implications of the proposed legislative reform. She enjoyed reading historical novels that transported her to far away places. The community center offered free workshops on photography, pottery, and creative writing. Climate scientists continue to refine their models in light of...
{"is_valid":true,"category":{"C++":true}}
single
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Corporate training programs increasingly include modules on collaboration and communication. Researchers gathered data from hundreds of households participating in the longitudinal study. He wandered through the old bookstore, occasiona...
{"is_valid":true,"category":{"Perl":true}}
single
Corporate training programs increasingly include modules on collaboration and communication. Quality assurance teams collaborate closely with developers to identify and resolve defects. Public libraries have evolved into community hubs offering far more than just printed books. The garden looked particularly vibrant af...
{"is_valid":true,"category":{"Java":true,"Batch":true}}
multi