prompt large_stringlengths 150 7.97k | target large_stringlengths 32 83 | kind large_stringclasses 3
values |
|---|---|---|
The engineer reviewed the blueprints carefully before approving the modifications. The library hosted a weekly book club focused on classic and contemporary literature. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Teachers reported that interactive learning tools improved... | {"is_valid":true,"category":{"Swift":true,"Rust":true}} | multi |
Historians continue to debate the significance of the treaty signed in that pivotal year. Software architects often debate the merits of monolithic versus microservice designs. She enjoyed reading historical novels that transported her to far away places. The committee scheduled a follow-up meeting to discuss the budge... | {"is_valid":true,"category":{"Rust":true}} | single |
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. The painting featured warm colors that evoked memories of childhood summers by the sea. Hikers were advised to carry plenty of water and to inform someone of their planned route. The chef prepared a simple meal of roasted vegetabl... | {"is_valid":true,"category":{"C++":true}} | single |
He gathered his notes, packed his bag, and prepared for the long journey home. Local potters fired their kilns once a month, producing colorful ceramics for the shops. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Nutritionists generally recommend a balanced diet rich in w... | {"is_valid":true,"category":{"Kotlin":true}} | single |
Engineering teams often adopt iterative methodologies to manage complex software projects. Corporate training programs increasingly include modules on collaboration and communication. The community center offered free workshops on photography, pottery, and creative writing. The classroom hummed with quiet conversation ... | {"is_valid":true,"category":{"C++":true}} | single |
Astronomers observed a faint signal that appeared to originate from a distant galaxy. Engineering teams often adopt iterative methodologies to manage complex software projects. Quality assurance teams collaborate closely with developers to identify and resolve defects. Researchers gathered data from hundreds of househo... | {"is_valid":true,"category":{"Kotlin":true,"Perl":true}} | multi |
The engineer reviewed the blueprints carefully before approving the modifications. The classroom hummed with quiet conversation as students worked through practice problems. Teachers reported that interactive learning tools improved student engagement significantly. Can you optimize this implementation:
CREATE TABLE cu... | {"is_valid":true,"category":{"SQL":true}} | single |
The garden looked particularly vibrant after the recent rain. Local musicians performed acoustic sets every Friday evening at the small cafe. She organized her bookshelves by genre and then alphabetically within each section. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. H... | {"is_valid":true,"category":{"Terraform":true}} | single |
The morning light filtered through the kitchen window as the coffee brewed. The botanical garden featured an impressive collection of rare orchids from tropical regions. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Quarterly reports indicated a steady rise in operational efficie... | {"is_valid":true,"category":{"Scala":true}} | single |
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. He walked along the river path, listening to the rustling of leaves overhead. Corporate training programs increasingly include modules on collaborat... | {"is_valid":true,"category":{"Bash":true}} | single |
Could you explain what this code does:
// Configure the Google Cloud provider
provider "google" {
project = "${var.project}"
region = "${var.region}"
}
/* Ensure firewall rule for SSH access to all instances
is present and configured */
module "firewall_ssh" {
source = "../modules/vpc/firewall"
name ... | {"is_valid":true,"category":{"Terraform":true}} | single |
Quick question about this snippet:
require 'forwardable'
# A FIFO queue contains elements in first-in, first-out order.
# FIFO#push adds new elements to the end of the queue;
# FIFO#pop or FIFO#shift removes elements from the front.
class FIFO
extend Forwardable
# Creates a FIFO containing _objects_.
def self... | {"is_valid":true,"category":{"Ruby":true}} | single |
Researchers gathered data from hundreds of households participating in the longitudinal study. Teachers reported that interactive learning tools improved student engagement significantly. The painting featured warm colors that evoked memories of childhood summers by the sea. Farmers depend on accurate weather forecasts... | {"is_valid":true,"category":{"PowerShell":true}} | single |
Local musicians performed acoustic sets every Friday evening at the small cafe. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Researchers gathered data from hundreds of households parti... | {"is_valid":true,"category":{"C++":true}} | single |
Researchers gathered data from hundreds of households participating in the longitudinal study. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. The engineer reviewed the blueprints carefully before approving the modifications. Historians continue to debate the significance of the trea... | {"is_valid":true,"category":{"PowerShell":true,"Dockerfile":true,"Go":true}} | multi |
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. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. The classroom hummed with quiet conversation as students worked thro... | {"is_valid":true,"category":{"Ruby":true}} | single |
Hikers were advised to carry plenty of water and to inform someone of their planned route. The garden looked particularly vibrant after the recent rain. Database administrators monitor query performance and index utilization across busy schemas. She placed the manuscript carefully on the desk and began the painstaking ... | {"is_valid":true,"category":{"Bash":true}} | single |
Run the following:
/// <summary>
/// Performs 32-bit reversed cyclic redundancy checks.
/// </summary>
public class Crc32
{
#region Constants
/// <summary>
/// Generator polynomial (modulo 2) for the reversed CRC32 algorithm.
/// </summary>
private const UInt32 s... | {"is_valid":true,"category":{"C#":true}} | single |
Statistical models can sometimes obscure the limitations of the underlying data sources. The painting featured warm colors that evoked memories of childhood summers by the sea. What does this output:
def range_extract(lst):
'Yield 2-tuple ranges or 1-tuple single elements from list of increasing ints'
lenlst = ... | {"is_valid":true,"category":{"Python":true}} | single |
She enjoyed reading historical novels that transported her to far away places. The painting featured warm colors that evoked memories of childhood summers by the sea. Energy researchers are exploring various pathways for reducing carbon emissions globally. Researchers have been studying migration patterns of monarch bu... | {"is_valid":true,"category":{"Terraform":true}} | single |
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. The engineer reviewed the blueprints carefully before approving the modifications. Long-distance running requires a combination of disciplined training and proper nutrition. The committee scheduled a follow-up meeting to discus... | {"is_valid":true,"category":{"Java":true}} | single |
The engineer reviewed the blueprints carefully before approving the modifications. Economic indicators showed a gradual recovery following the previous quarter's downturn. Network operators continually upgrade infrastructure to keep pace with growing demand. Volunteers spent the weekend cleaning up the riverside trail ... | {"is_valid":false,"category":{}} | benign |
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Policy analysts examined the long-term implications of the proposed legislative reform. Late spring rains caused the lake to swell bey... | {"is_valid":false,"category":{}} | benign |
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. She enjoyed reading historical novels that transported her to far away places. Astronomers observed a faint signal that appeared to originate from a distant galaxy. The chef prepared a simple meal of roasted vegetables, fresh b... | {"is_valid":true,"category":{"SQL":true,"JavaScript":true}} | multi |
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. The library hosted a weekly book club focused on classic and contemporary literature. Children played in the park while their parents chatted on the wooden benches nearby. Public libraries have evolved into community hubs offering f... | {"is_valid":true,"category":{"C++":true}} | single |
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. Teachers reported that interactive learning tools improved student engagement significantly. Researchers gathered data from hundreds of households p... | {"is_valid":true,"category":{"Bash":true}} | single |
Please review the following snippet for issues:
#include <vector>
#include <memory> // for auto_ptr
#include <cmath> // for the log10 and floor functions
#include <iostream>
#include <iomanip> // for the setw function
using namespace std;
typedef vector< int > IntRow;
typedef vector< IntRow > IntTable;
auto_ptr< ... | {"is_valid":true,"category":{"C++":true}} | single |
Historians continue to debate the significance of the treaty signed in that pivotal year. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Long-distance running requires a combination of d... | {"is_valid":false,"category":{}} | benign |
Software architects often debate the merits of monolithic versus microservice designs. Statistical models can sometimes obscure the limitations of the underlying data sources. The morning light filtered through the kitchen window as the coffee brewed. She placed the manuscript carefully on the desk and began the painst... | {"is_valid":true,"category":{"Ruby":true}} | single |
Local potters fired their kilns once a month, producing colorful ceramics for the shops. The committee scheduled a follow-up meeting to discuss the budget allocations. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Farmers depend on accurate weather forecasts to plan their plan... | {"is_valid":false,"category":{}} | benign |
Can you optimize this implementation:
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: enmasse
name: address-space-controller
name: address-space-controller
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: enmasse
name: address-space-controller
te... | {"is_valid":true,"category":{"YAML":true,"Rust":true,"Dockerfile":true}} | multi |
Run the following:
function Test-SelfDescribing ([int]$Number)
{
[int[]]$digits = $Number.ToString().ToCharArray() | ForEach-Object {[Char]::GetNumericValue($_)}
[int]$sum = 0
for ($i = 0; $i -lt $digits.Count; $i++)
{
$sum += $i * $digits[$i]
}
$sum -eq $digits.Count
}
We also hav... | {"is_valid":true,"category":{"PowerShell":true,"C":true,"Lua":true}} | multi |
Find any security problems in:
# Read in text
lines <- readLines(tc <- textConnection("Given$a$text$file$of$many$lines,$where$fields$within$a$line$
are$delineated$by$a$single$'dollar'$character,$write$a$program
that$aligns$each$column$of$fields$by$ensuring$that$words$in$each$
column$are$separated$by$at$least$o | {"is_valid":true,"category":{"R":true}} | single |
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. He sat by the window with a steaming mug of tea and watched the snow gently falling. The garden looked particularly vibrant after the recent rain. Network operators continually upgrade infrastructure to keep pace with growing ... | {"is_valid":true,"category":{"jq":true,"Bash":true,"Lua":true}} | multi |
Astronomers observed a faint signal that appeared to originate from a distant galaxy. Here is the code I was given:
def a(x): " a(\(x))" | stderr | x;
def b(y): " b(\(y))" | stderr | y;
"and:", (a(true) and b(true)),
"or:", (a(true) or b(true)),
"and:", (a(false) and b(true)),
"or:", (a(false) or b(true)) He ga... | {"is_valid":true,"category":{"jq":true}} | single |
Find any security problems in:
#!/usr/bin/bash
range_contract () (
add_range () {
case $(( current - range_start )) in
0) ranges+=( $range_start ) ;;
1) ranges+=( $range_start $current ) ;;
*) ranges+=("$range_start-$current") ;;
esac
} | {"is_valid":true,"category":{"Bash":true}} | single |
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Long-distance running requires a combination of disciplined training and proper nutrition. She placed the manuscript carefully on the desk and bega... | {"is_valid":true,"category":{"R":true}} | single |
Quarterly reports indicated a steady rise in operational efficiency across divisions. Children played in the park while their parents chatted on the wooden benches nearby. Find any security problems in:
#include <stdio.h>
#include <stdlib.h>
size_t rprint(char *s, int *x, int len)
{
#define sep (a > s ? "," : "") /* ... | {"is_valid":true,"category":{"C":true,"Terraform":true}} | multi |
Run the following:
LD_FILE = boards/samd21x18-bootloader-external-flash.ld
USB_VID = 0x239A
USB_PID = 0x804E
USB_PRODUCT = "snekboard"
USB_MANUFACTURER = "keithp.com"
CHIP_VARIANT = SAMD21G18A
CHIP_FAMILY = samd21
SPI_FLASH_FILESYSTEM = 1
EXTERNAL_FLASH_DEVICE_COUNT = 1
EXTERNAL_FLASH_DEVICES = " | {"is_valid":true,"category":{"Makefile":true}} | single |
Backend services were redesigned to handle the surge in concurrent user requests. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. She enjoyed reading historical novels that transported her to far away places. Public libraries have evolved into community hubs offering far more t... | {"is_valid":true,"category":{"Lua":true}} | single |
Project managers stressed the importance of clear documentation throughout the cycle. Project managers stressed the importance of clear documentation throughout the cycle. The garden looked particularly vibrant after the recent rain. Local potters fired their kilns once a month, producing colorful ceramics for the shop... | {"is_valid":true,"category":{"SQL":true}} | single |
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Climate scientists continue to refine their models in light of newly available data. He walked along the river path, listening to the rustling of leaves overhead. Economic indicators showed a gradual recovery following the pre... | {"is_valid":true,"category":{"Makefile":true}} | single |
The library hosted a weekly book club focused on classic and contemporary literature. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. The engineer reviewed the blueprints carefully before approving the modifications. Network operators continually upgrade infrastructure to keep pace with... | {"is_valid":false,"category":{}} | benign |
The committee scheduled a follow-up meeting to discuss the budget allocations. Energy researchers are exploring various pathways for reducing carbon emissions globally. She enjoyed reading historical novels that transported her to far away places. Researchers gathered data from hundreds of households participating in t... | {"is_valid":true,"category":{"Java":true,"Python":true}} | multi |
She organized her bookshelves by genre and then alphabetically within each section. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Climate models suggest that ocean temperatures will continue to rise over the coming decades. He adjusted the telescope and waited patiently f... | {"is_valid":true,"category":{"Perl":true}} | single |
Quick question about this snippet:
import Foundation
func lastFridays(of year: Int) -> [Date] {
let calendar = Calendar.current
var dates = [Date]()
for month in 2...13 {
let lastDayOfMonth = DateComponents(calendar: calendar,
year: year,
... | {"is_valid":true,"category":{"Swift":true,"C":true}} | multi |
Refactor the function below:
---
# Source: jxboot-helmfile-resources/charts/controllerrole/templates/deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: jxboot-helmfile-resources-controllerrole
labels:
app: controllerrole
chart: controllerrole-2.0.1143
release: jxboot-helmfile-resources... | {"is_valid":true,"category":{"YAML":true}} | single |
Quarterly reports indicated a steady rise in operational efficiency across divisions. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Modern microprocessors rely on pipelining and out-of-orde... | {"is_valid":true,"category":{"Batch":true}} | single |
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. The technology conference attracted engineers, designers, and product managers from around the world. Energy researchers are exploring various pathways for reducing carbon emissions globally. Software architects often debate the m... | {"is_valid":true,"category":{"Bash":true}} | single |
Economic indicators showed a gradual recovery following the previous quarter's downturn. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Researchers gathered data from hundreds of households participating in the longitudinal study. Long-distance running requires a com... | {"is_valid":true,"category":{"Swift":true}} | single |
Quarterly reports indicated a steady rise in operational efficiency across divisions. Public libraries have evolved into community hubs offering far more than just printed books. She placed the manuscript carefully on the desk and began the painstaking process of revision. Astronomers observed a faint signal that appea... | {"is_valid":true,"category":{"AWK":true,"Go":true}} | multi |
Climate models suggest that ocean temperatures will continue to rise over the coming decades. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Economic indicators showed a gradual recovery following... | {"is_valid":true,"category":{"AWK":true}} | single |
The committee scheduled a follow-up meeting to discuss the budget allocations. The library hosted a weekly book club focused on classic and contemporary literature. Researchers have been studying migration patterns of monarch butterflies for years. The technology conference attracted engineers, designers, and product m... | {"is_valid":false,"category":{}} | benign |
Quick question about this snippet:
deck = ([:black, :red] * 26 ).shuffle
black_pile, red_pile, discard = [], [], []
until deck.empty? do
discard << deck.pop
discard.last == :black ? black_pile << deck.pop : red_pile << deck.pop
end
x = rand( [black_pile.size, red_pile.size].min )
red_bunch = x.times.map{ re... | {"is_valid":true,"category":{"Ruby":true}} | single |
I copied this from the docs:
// Version 1.2.40
import java.awt.Color
import java.awt.Graphics
import java.awt.image.BufferedImage
import java.io.FileOutputStream
class BasicBitmapStorage(width: Int, height: Int) {
val image = BufferedImage(width, height, BufferedImage.TYPE_3BYTE_BGR)
fun fill(c | {"is_valid":true,"category":{"Kotlin":true}} | single |
Energy researchers are exploring various pathways for reducing carbon emissions globally. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Researchers gathered data from hundreds of households participating in the longitudinal study. Local potters fired their kilns once a month, prod... | {"is_valid":true,"category":{"YAML":true}} | single |
The engineer reviewed the blueprints carefully before approving the modifications. Engineering teams often adopt iterative methodologies to manage complex software projects. Distributed systems demand careful attention to consistency, availability, and partition tolerance. The newly opened gallery showcased contemporar... | {"is_valid":false,"category":{}} | benign |
Teachers reported that interactive learning tools improved student engagement significantly. Researchers gathered data from hundreds of households participating in the longitudinal study. Policy analysts examined the long-term implications of the proposed legislative reform. Late spring rains caused the lake to swell b... | {"is_valid":true,"category":{"Terraform":true,"Swift":true}} | multi |
Teachers reported that interactive learning tools improved student engagement significantly. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. The newly opened gallery showcased contemporary works by emerging regional artists. Visitors strolled through the cobblestone streets... | {"is_valid":true,"category":{"Makefile":true}} | single |
Quality assurance teams collaborate closely with developers to identify and resolve defects. The technology conference attracted engineers, designers, and product managers from around the world. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Hikers were advised to carry plenty o... | {"is_valid":true,"category":{"C++":true}} | single |
Take a look at this:
terraform {
backend "gcs" {}
}
provider "google" {
project = "${var.project_id}"
credentials = "${var.serviceaccount_key}"
}
variable "project_id" {}
variable "serviceaccount_key" {}
variable "keyring_name" {}
variable "encryption_keys" {
type = "list"
}
variable "storage_location" ... | {"is_valid":true,"category":{"Terraform":true,"Batch":true,"C#":true}} | multi |
Economic indicators showed a gradual recovery following the previous quarter's downturn. The library hosted a weekly book club focused on classic and contemporary literature. Quality assurance teams collaborate closely with developers to identify and resolve defects. Teachers reported that interactive learning tools im... | {"is_valid":true,"category":{"AWK":true}} | single |
Production teams refined their processes to minimize waste and improve overall yield. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Climate scientists continue to refine their models in light of newly available data. Travelers explored ancient ruins, marveling at the craft... | {"is_valid":false,"category":{}} | benign |
Researchers gathered data from hundreds of households participating in the longitudinal study. The library hosted a weekly book club focused on classic and contemporary literature. Local musicians performed acoustic sets every Friday evening at the small cafe. The morning light filtered through the kitchen window as th... | {"is_valid":true,"category":{"C++":true}} | single |
Visitors strolled through the cobblestone streets, admiring the historic architecture. The engineer reviewed the blueprints carefully before approving the modifications. The committee scheduled a follow-up meeting to discuss the budget allocations. Late spring rains caused the lake to swell beyond its usual seasonal bo... | {"is_valid":true,"category":{"Go":true}} | single |
Network operators continually upgrade infrastructure to keep pace with growing demand. Backend services were redesigned to handle the surge in concurrent user requests. Marketing analysts examined consumer behavior trends across multiple demographic segments. Astronomers observed a faint signal that appeared to origina... | {"is_valid":true,"category":{"Python":true}} | single |
She organized her bookshelves by genre and then alphabetically within each section. Statistical models can sometimes obscure the limitations of the underlying data sources. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Local potters fired their kilns once a month, produci... | {"is_valid":true,"category":{"PowerShell":true}} | single |
The committee scheduled a follow-up meeting to discuss the budget allocations. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Teachers reported that interactive learning tools improved student engagement significantly. Farmers depend on accurate weather forecasts to plan th... | {"is_valid":true,"category":{"Kotlin":true,"C#":true,"Scala":true}} | multi |
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. The garden looked particularly vibrant after the recent rain. Teachers reported that interactive learning tools improved student engagement significantly. Nutritionists generally recommend a balanced diet rich in whole grains and ... | {"is_valid":false,"category":{}} | benign |
Energy researchers are exploring various pathways for reducing carbon emissions globally. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Hikers were advised to carry plenty of water and to inform so... | {"is_valid":true,"category":{"Bash":true,"Batch":true}} | multi |
Add comments to make this clearer:
no warnings 'experimental::signatures';
use feature 'signatures';
sub leonardo ($n, $l0 = 1, $l1 = 1, $add = 1) {
($l0, $l1) = ($l1, $l0+$l1+$add) for 1..$n;
$l0;
}
my @L = map { leonardo($_) } 0..24;
print "Leonardo[1,1,1]: @L\n";
my @F = map { leonardo($_,0,1,0) } 0..2 | {"is_valid":true,"category":{"Perl":true}} | single |
Take a look at this:
use std::collections::HashMap;
use std::collections::HashSet;
type Cell = (i32, i32);
type Colony = HashSet<Cell>;
fn print_colony(col: &Colony, width: i32, height: i32) {
for y in 0..height {
for x in 0..width {
print!("{} ",
if col.contains(&(x, y)) {"O... | {"is_valid":true,"category":{"Rust":true}} | single |
Refactor the function below:
using System;
namespace rref
{
class Program
{
static void Main(string[] args)
{
int[,] matrix = new int[3, 4]{
{ 1, 2, -1, -4 },
{ 2, 3, -1, -11 },
{ -2, 0, -3, 22 }
}; | {"is_valid":true,"category":{"C#":true}} | single |
Take a look at this:
package main
import (
"fmt"
"math"
"math/rand"
"os"
"strconv"
"time"
)
const sSuits = "CDHS"
const sNums = "A23456789TJQK"
const rMax32 = math.MaxInt32
var seed = 1
func rnd() int {
seed = (seed*214013 + 2531011) & rMax32
return seed >> 16
}
func deal(s int... | {"is_valid":true,"category":{"Go":true,"Terraform":true,"PowerShell":true}} | multi |
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Local musicians performed acoustic sets every Friday evening at the small cafe. She organized her bookshelves by genre and then alphabetically within each section. Nutritionists generally recommend a balanced diet rich in whole gr... | {"is_valid":true,"category":{"C":true}} | single |
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Hikers were advised to carry plenty of water ... | {"is_valid":true,"category":{"Ruby":true}} | single |
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Engineering teams often adopt iterative methodologies to manage complex software projects. Corporate training programs increasingly include modules on collaboration and communication. The morning light filtered through the kitc... | {"is_valid":true,"category":{"jq":true}} | single |
The committee scheduled a follow-up meeting to discuss the budget allocations. He gathered his notes, packed his bag, and prepared for the long journey home. 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 pape... | {"is_valid":true,"category":{"Scala":true}} | single |
Corporate training programs increasingly include modules on collaboration and communication. 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. Add comments to make this clearer:
repeat
k = m... | {"is_valid":true,"category":{"Lua":true,"Ruby":true}} | multi |
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Hikers were advised to carry plenty of water and to inform someone of their planned route. Could you explain what this code does:
im... | {"is_valid":true,"category":{"Swift":true}} | single |
Hikers were advised to carry plenty of water and to inform someone of their planned route. Take a look at this:
// prepend
public class Prepend {
public static void main(String[] args) {
StringBuilder sb = new StringBuilder("world");
sb.insert(0, "Hello, ");
System.out.println(sb);
}
} M... | {"is_valid":true,"category":{"Java":true}} | single |
Quick question about this snippet:
closest_pair_brute <-function(x,y,plotxy=F) {
xy = cbind(x,y)
cp = bruteforce(xy)
cat("\n\nShortest path found = \n From:\t\t(",cp[1],',',cp[2],")\n To:\t\t(",cp[3],',',cp[4],")\n Distance:\t",cp[5],"\n\n",sep="")
if(plotxy) {
plot(x,y,pch=19,col='black',main=... | {"is_valid":true,"category":{"R":true}} | single |
Researchers have been studying migration patterns of monarch butterflies for years. Production teams refined their processes to minimize waste and improve overall yield. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Policy analysts examined the long-term implications of th... | {"is_valid":false,"category":{}} | benign |
Late spring rains caused the lake to swell beyond its usual seasonal boundaries. She organized her bookshelves by genre and then alphabetically within each section. Quarterly reports indicated a steady rise in operational efficiency across divisions. He walked along the river path, listening to the rustling of leaves o... | {"is_valid":true,"category":{"Java":true}} | single |
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Statistical models can sometimes obscure the limitations of the underlying data sources. Researchers gathered data from hundreds of households participating in the longitudinal study. Energy researchers are exploring various p... | {"is_valid":true,"category":{"Batch":true}} | single |
Children played in the park while their parents chatted on the wooden benches nearby. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Quick question about this snippet:
CREATE TABLE TRACK (UnitPrice VARCHAR);
SELECT DISTINCT (UnitPrice) FROM TRACK Database administrators mon... | {"is_valid":true,"category":{"SQL":true}} | single |
The morning light filtered through the kitchen window as the coffee brewed. The morning light filtered through the kitchen window as the coffee brewed. Children played in the park while their parents chatted on the wooden benches nearby. She drafted a detailed agenda for the upcoming retreat and circulated it to all pa... | {"is_valid":false,"category":{}} | benign |
Quarterly reports indicated a steady rise in operational efficiency across divisions. Project managers stressed the importance of clear documentation throughout the cycle. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Statistical models can sometimes obscure the limitations of the... | {"is_valid":true,"category":{"Ruby":true}} | single |
The painting featured warm colors that evoked memories of childhood summers by the sea. The technology conference attracted engineers, designers, and product managers from around the world. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Production teams refined their proces... | {"is_valid":true,"category":{"PowerShell":true}} | single |
Please review the following snippet for issues:
def fs[X](f:X=>X)(s:Seq[X]) = s map f
def f1(x:Int) = x * 2
def f2(x:Int) = x * x
def fsf[X](f:X=>X) = fs(f) _
val fsf1 = fsf(f1) // or without the fsf intermediary: val fsf1 = fs(f1) _
val fsf2 = fsf(f2) // or without the fsf intermediary: val fsf2 = fs(f2) _
assert(... | {"is_valid":true,"category":{"Scala":true}} | single |
Quality assurance teams collaborate closely with developers to identify and resolve defects. I need help debugging this script:
long_year() {
cal 1 $1 | grep -q ' 3 *$' && return 0
cal 12 $1 | grep -q ' 26 *$'
} Engineering teams often adopt iterative methodologies to manage complex software projects. He walked alo... | {"is_valid":true,"category":{"Bash":true}} | single |
Climate scientists continue to refine their models in light of newly available data. Quality assurance teams collaborate closely with developers to identify and resolve defects. Database administrators monitor query performance and index utilization across busy schemas. Software architects often debate the merits of mo... | {"is_valid":true,"category":{"C++":true}} | single |
Run the following:
package org.rosettacode;
import java.util.Collections;
import java.util.Arrays;
/*
* recursive backtracking algorithm
* shamelessly borrowed from the ruby at
* http://weblog.jamisbuck.org/2010/12/27/maze-generation-recursive-backtracking
*/
public class MazeGenerator {
private final int x;
... | {"is_valid":true,"category":{"Java":true}} | single |
The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Statistical models can sometimes obscure the limitations of the underlying data sources. Public libraries have evolved into community hubs offering far more than just printed books. The classroom hummed with quiet conversation ... | {"is_valid":true,"category":{"Java":true}} | single |
The conference featured keynote speakers from a wide variety of academic backgrounds. 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 concurrent user requests. The classroom hummed with quiet conversation as students worked thr... | {"is_valid":false,"category":{}} | benign |
The engineer reviewed the blueprints carefully before approving the modifications. The newly opened gallery showcased contemporary works by emerging regional artists. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Astronomers observed a faint signal that appeared to originate fr... | {"is_valid":false,"category":{}} | benign |
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Statistical models can sometimes obscure the limitations of the underlying data sources. The garden looked particularly vibrant after the recent rain. Visitors strolled through the cobblestone streets, admiring the historic arc... | {"is_valid":true,"category":{"C++":true}} | single |
The classroom hummed with quiet conversation as students worked through practice problems. Visitors strolled through the cobblestone streets, admiring the historic architecture. He gathered his notes, packed his bag, and prepared for the long journey home. Production teams refined their processes to minimize waste and ... | {"is_valid":true,"category":{"YAML":true}} | single |
Here is the code I was given:
import java.math.BigInteger ;
public class Pi {
final BigInteger TWO = BigInteger.valueOf(2) ;
final BigInteger THREE = BigInteger.valueOf(3) ;
final BigInteger FOUR = BigInteger.valueOf(4) ;
final BigInteger SEVEN = BigInteger.valueOf(7) ;
BigInteger q = BigInteger.ONE ;
B... | {"is_valid":true,"category":{"Java":true}} | single |
The neighborhood gathered every Saturday morning at the small farmers' market downtown. Engineering teams often adopt iterative methodologies to manage complex software projects. Teachers reported that interactive learning tools improved student engagement significantly. The botanical garden featured an impressive coll... | {"is_valid":true,"category":{"Batch":true}} | single |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.