prompt large_stringlengths 150 7.97k | target large_stringlengths 32 83 | kind large_stringclasses 3
values |
|---|---|---|
Corporate training programs increasingly include modules on collaboration and communication. Policy analysts examined the long-term implications of the proposed legislative reform. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Climate scientists continue to refine their models in l... | {"is_valid":true,"category":{"Ruby":true}} | single |
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. The garden looked particularly vibrant after the recent rain. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Marketing analysts examined consumer behavior trends across multiple dem... | {"is_valid":true,"category":{"PowerShell":true}} | single |
Researchers have been studying migration patterns of monarch butterflies for years. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Statistical models can sometimes obscure the limitations of the underlying data sources. Astronomers observed a faint signal that appeared to o... | {"is_valid":false,"category":{}} | benign |
Network operators continually upgrade infrastructure to keep pace with growing demand. The morning light filtered through the kitchen window as the coffee brewed. She organized her bookshelves by genre and then alphabetically within each section. She drafted a detailed agenda for the upcoming retreat and circulated it ... | {"is_valid":true,"category":{"C":true,"Go":true}} | multi |
The newly opened gallery showcased contemporary works by emerging regional artists. Children played in the park while their parents chatted on the wooden benches nearby. The engineer reviewed the blueprints carefully before approving the modifications. Children played in the park while their parents chatted on the wood... | {"is_valid":true,"category":{"Java":true}} | single |
Public libraries have evolved into community hubs offering far more than just printed books. Hikers were advised to carry plenty of water and to inform someone of their planned route. Local potters fired their kilns once a month, producing colorful ceramics for the shops. The botanical garden featured an impressive col... | {"is_valid":true,"category":{"JavaScript":true}} | single |
He sat by the window with a steaming mug of tea and watched the snow gently falling. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. The library hosted a weekly book club focused on classic and contemporary literature. The painting featured warm colors that evoked memories of childhood ... | {"is_valid":true,"category":{"Perl":true,"Kotlin":true}} | multi |
Add comments to make this clearer:
#!/usr/bin/perl
use warnings;
use strict;
{ package Local::Field;
use constant {
REAL => 0,
SHOW => 1,
COUNT => 2,
};
sub new {
my ($class, $width, $height, $percent) = @_;
my $field;
for my $x (1 .. $width) {
... | {"is_valid":true,"category":{"Perl":true}} | single |
Policy analysts examined the long-term implications of the proposed legislative reform. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Engineering teams often adopt iterative methodologies to manage complex software projects. Here is the code I was given:
def w_prime?(i)
... | {"is_valid":true,"category":{"Ruby":true}} | single |
Software architects often debate the merits of monolithic versus microservice designs. The morning light filtered through the kitchen window as the coffee brewed. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. The technology conference attracted engineers, designers, and pr... | {"is_valid":true,"category":{"SQL":true,"Ruby":true}} | multi |
Can you optimize this implementation:
from collections import defaultdict
def order_words(words):
byfirst = defaultdict(set)
for word in words:
byfirst[word[0]].add( word )
#byfirst = dict(byfirst)
return byfirst
def linkfirst(byfirst, sofar):
'''\
For all words matching last char of... | {"is_valid":true,"category":{"Python":true}} | single |
Local potters fired their kilns once a month, producing colorful ceramics for the shops. He walked along the river path, listening to the rustling of leaves overhead. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Software architects often debate the merits of monolithic ve... | {"is_valid":true,"category":{"Batch":true,"Python":true,"AWK":true}} | multi |
Researchers gathered data from hundreds of households participating in the longitudinal study. Production teams refined their processes to minimize waste and improve overall yield. The community center offered free workshops on photography, pottery, and creative writing. Energy researchers are exploring various pathway... | {"is_valid":true,"category":{"SQL":true,"AWK":true}} | multi |
Database administrators monitor query performance and index utilization across busy schemas. She enjoyed reading historical novels that transported her to far away places. Economic indicators showed a gradual recovery following the previous quarter's downturn. The committee scheduled a follow-up meeting to discuss the ... | {"is_valid":true,"category":{"YAML":true}} | single |
Teachers reported that interactive learning tools improved student engagement significantly. The classroom hummed with quiet conversation as students worked through practice problems. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. She enjoyed reading historical novels that ... | {"is_valid":true,"category":{"Terraform":true}} | single |
He sat by the window with a steaming mug of tea and watched the snow gently falling. Historians continue to debate the significance of the treaty signed in that pivotal year. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Climate scientists continue to refine their models ... | {"is_valid":true,"category":{"JavaScript":true}} | single |
She organized her bookshelves by genre and then alphabetically within each section. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. The community center offered free workshops on photography... | {"is_valid":false,"category":{}} | benign |
I need help debugging this script:
caesar() {
local OPTIND
local encrypt n=0
while getopts :edn: option; do
case $option in
e) encrypt=true ;;
d) encrypt=false ;;
n) n=$OPTARG ;;
:) echo "error: missing argument for -$OPTARG" >&2
return ... | {"is_valid":true,"category":{"Bash":true}} | single |
Here is the code I was given:
import java.io.StringWriter
class Cistercian() {
constructor(number: Int) : this() {
draw(number)
}
private val size = 15
private var canvas = Array(size) { Array(size) { ' ' } }
init {
initN()
}
private fun initN() {
fo | {"is_valid":true,"category":{"Kotlin":true}} | single |
Energy researchers are exploring various pathways for reducing carbon emissions globally. What does this output:
count = 0
IO.foreach("input.txt") { |line| print line; count += 1 }
puts "Printed #{count} lines." | {"is_valid":true,"category":{"Ruby":true}} | single |
Researchers have been studying migration patterns of monarch butterflies for years. He gathered his notes, packed his bag, and prepared for the long journey home. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Climate scientists continue to refine their models in light of n... | {"is_valid":true,"category":{"YAML":true}} | single |
The committee scheduled a follow-up meeting to discuss the budget allocations. Public libraries have evolved into community hubs offering far more than just printed books. Network operators continually upgrade infrastructure to keep pace with growing demand. She placed the manuscript carefully on the desk and began the... | {"is_valid":true,"category":{"PowerShell":true,"Terraform":true}} | multi |
Production teams refined their processes to minimize waste and improve overall yield. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. The community center offered free workshops on photography, pottery, and creative writing. Local musicians performed acoustic sets every Frid... | {"is_valid":false,"category":{}} | benign |
The library hosted a weekly book club focused on classic and contemporary literature. Network operators continually upgrade infrastructure to keep pace with growing demand. Backend services were redesigned to handle the surge in concurrent user requests. The chef prepared a simple meal of roasted vegetables, fresh brea... | {"is_valid":true,"category":{"Dockerfile":true}} | single |
I copied this from the docs:
resource "aws_s3_bucket" "droplets-s3" {
bucket = "${var.env}-cf-droplets"
acl = "private"
force_destroy = "true"
}
resource "aws_s3_bucket" "buildpacks-s3" {
bucket = "${var.env}-cf-buildpacks"
acl = "private"
force_destroy = "true"
}
resource "aws_s3_bucket" "pac... | {"is_valid":true,"category":{"Terraform":true}} | single |
Take a look at this:
require 'open-uri'
plausibility_ratio = 2
counter = Hash.new(0)
path = 'http://wiki.puzzlers.org/pub/wordlists/unixdict.txt'
rules = [['I before E when not preceded by C:', 'ie', 'ei'],
['E before I when preceded by C:', 'cei', 'cie']]
open(path){|f| f.each{|line| line.scan(/ie|ei|cie|... | {"is_valid":true,"category":{"Ruby":true,"Java":true}} | multi |
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Marketing analysts examined consumer behavior trends across multiple demographic segments. Add comments to make this clearer:
# IBM_PROLOG_BEGIN_TAG
# This is an automatically generated prolog.
#
# $Source: src/import/chips/p9/procedure... | {"is_valid":true,"category":{"Makefile":true,"jq":true}} | multi |
Refactor the function below:
import Foundation
guard
let url = NSURL(string: "http://www.puzzlers.org/pub/wordlists/unixdict.txt"),
let input = try? NSString(contentsOfURL: url,encoding: NSUTF8StringEncoding) as String
else { exit(EXIT_FAILURE) }
let words = input.componentsSeparatedByCharac | {"is_valid":true,"category":{"Swift":true}} | single |
Public libraries have evolved into community hubs offering far more than just printed books. She organized her bookshelves by genre and then alphabetically within each section. Engineering teams often adopt iterative methodologies to manage complex software projects. Nutritionists generally recommend a balanced diet ri... | {"is_valid":true,"category":{"Perl":true,"Makefile":true}} | multi |
What does this output:
apiVersion: apps/v1
kind: Deployment
metadata:
name: dc-api
labels:
app: dc-api
spec:
replicas: 2
selector:
matchLabels:
app: dc-api
template:
metadata:
labels:
app: dc-api
spec:
containers:
- name: dc-api
image: gcr.io/neural-patt... | {"is_valid":true,"category":{"YAML":true}} | single |
Could you explain what this code does:
CREATE TABLE phone (chip_model VARCHAR, Company_name VARCHAR); CREATE TABLE chip_model (RAM_MiB INTEGER, Model_name VARCHAR);
SELECT MAX(T1.RAM_MiB), MIN(T1.RAM_MiB) FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model WHERE T2.Company_name = "Nokia Corporation | {"is_valid":true,"category":{"SQL":true}} | single |
Translate this into another language for me:
# 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, Ve... | {"is_valid":true,"category":{"Dockerfile":true}} | single |
Translate this into another language for me:
#include <assert.h>
#include <stdbool.h>
#include <stdio.h>
typedef unsigned char byte;
struct Transition {
byte a, b;
unsigned int c;
} transitions[100];
void init() {
int i, j;
for (i = 0; i < 10; i++) {
for (j = 0; j < 10; j++) {
... | {"is_valid":true,"category":{"C":true,"Java":true}} | multi |
The botanical garden featured an impressive collection of rare orchids from tropical regions. Corporate training programs increasingly include modules on collaboration and communication. Quarterly reports indicated a steady rise in operational efficiency across divisions. Historians continue to debate the significance ... | {"is_valid":true,"category":{"C":true}} | single |
The engineer reviewed the blueprints carefully before approving the modifications. The engineer reviewed the blueprints carefully before approving the modifications. Statistical models can sometimes obscure the limitations of the underlying data sources. Volunteers spent the weekend cleaning up the riverside trail and ... | {"is_valid":true,"category":{"jq":true}} | single |
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Quarterly reports indicated a steady rise in operati... | {"is_valid":true,"category":{"AWK":true}} | single |
Production teams refined their processes to minimize waste and improve overall yield. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Quarterly reports indicated a steady rise in operati... | {"is_valid":true,"category":{"Batch":true}} | single |
Find any security problems in:
using System;
class BinaryTree<T>
{
public T value;
public BinaryTree<T> left;
public BinaryTree<T> right;
public BinaryTree(T value)
{
this.value = value;
}
public BinaryTree<U> Map<U>(Func<T, U> f)
{
BinaryTree<U> tree = new BinaryTr... | {"is_valid":true,"category":{"C#":true,"R":true}} | multi |
Climate scientists continue to refine their models in light of newly available data. Please review the following snippet for issues:
@echo off
for /l %%D in (10,-1,0) do echo %%D
And separately, here's a related piece:
#!/bin/sh -f
awk '
BEGIN {
print "Creating table..."
dbExec("address.db", "create table addr... | {"is_valid":true,"category":{"Batch":true,"AWK":true}} | multi |
Production teams refined their processes to minimize waste and improve overall yield. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Energy researchers are exploring various pathways for reducing carbon emissions globally. The newly opened gallery showcased contemporary wo... | {"is_valid":false,"category":{}} | benign |
Hikers were advised to carry plenty of water and to inform someone of their planned route. He sat by the window with a steaming mug of tea and watched the snow gently falling. Policy analysts examined the long-term implications of the proposed legislative reform. The technology conference attracted engineers, designers... | {"is_valid":true,"category":{"Bash":true}} | single |
The community center offered free workshops on photography, pottery, and creative writing. 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. Nutritionists generally recommend a balanced diet rich in whole ... | {"is_valid":true,"category":{"Kotlin":true}} | single |
I copied this from the docs:
#include <iostream>
#include <iterator>
#include <vector>
using namespace std;
typedef vector<double> Poly;
// does: prints all members of vector
// input: c - ASCII char with the name of the vector
// A - reference to polynomial (vector)
void Print(char name, const Poly &A) {
... | {"is_valid":true,"category":{"C++":true}} | single |
Astronomers observed a faint signal that appeared to originate from a distant galaxy. Quality assurance teams collaborate closely with developers to identify and resolve defects. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Quality assurance teams collaborate closely with develope... | {"is_valid":true,"category":{"Java":true}} | single |
Please review the following snippet for issues:
@echo off
setlocal enabledelayedexpansion
%== Calls the "function" ==%
call :ModInv 42 2017 result
echo !result!
call :ModInv 40 1 result
echo !result!
call :ModInv 52 -217 result
echo !result!
call :ModInv -486 217 result
echo !result!
call :ModInv 40 2018 result
echo !... | {"is_valid":true,"category":{"Batch":true}} | single |
Long-distance running requires a combination of disciplined training and proper nutrition. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Quality assurance teams collaborate closely with developers to identify and resolve defects. The chef prepared a simple meal of roasted ... | {"is_valid":false,"category":{}} | benign |
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. The garden looked particularly vibrant after the recent rain. Policy analysts examined the long-term implications of the proposed legi... | {"is_valid":true,"category":{"JavaScript":true,"Lua":true,"AWK":true}} | multi |
Corporate training programs increasingly include modules on collaboration and communication. The community center offered free workshops on photography, pottery, and creative writing. Researchers gathered data from hundreds of households participating in the longitudinal study. Children played in the park while their p... | {"is_valid":true,"category":{"Ruby":true,"Dockerfile":true,"Lua":true}} | multi |
Can you optimize this implementation:
#!/usr/bin/env lua
-- ISAAC - Lua 5.3
-- External Results
local randRsl = {};
local randCnt = 0;
-- Internal State
local mm = {};
local aa,bb,cc = 0,0,0;
-- Cap to maintain 32 bit maths
local cap = 0x100000000;
-- CipherMode
local ENCRYPT = 1;
local DECRYPT = 2;
function ... | {"is_valid":true,"category":{"Lua":true}} | single |
Add comments to make this clearer:
const starttxt = """
ATTENTION ALL WUMPUS LOVERS!!!
THERE ARE NOW TWO ADDITIONS TO THE WUMPUS FAMILY
OF PROGRAMS.
WUMP2: SOME DIFFERENT CAVE ARRANGEMENTS
WUMP3: DIFFERENT HAZARDS
"""
const helptxt = """
WELCOME TO 'HUNT THE WUMPUS'
THE W... | {"is_valid":true,"category":{"JavaScript":true}} | single |
Historians continue to debate the significance of the treaty signed in that pivotal year. Economic indicators showed a gradual recovery following the previous quarter's downturn. Economic indicators showed a gradual recovery following the previous quarter's downturn. The conference featured keynote speakers from a wide... | {"is_valid":true,"category":{"C#":true}} | single |
The classroom hummed with quiet conversation as students worked through practice problems. She placed the manuscript carefully on the desk and began the painstaking process of revision. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Climate scientists continue to refine the... | {"is_valid":true,"category":{"jq":true}} | single |
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. 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 participants. Local musicians performed acoustic sets every F... | {"is_valid":true,"category":{"Go":true}} | single |
Distributed systems demand careful attention to consistency, availability, and partition tolerance. She enjoyed reading historical novels that transported her to far away places. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. He adjusted the telescope and waited patiently for th... | {"is_valid":true,"category":{"Dockerfile":true}} | single |
The morning light filtered through the kitchen window as the coffee brewed. Climate scientists continue to refine their models in light of newly available data. Local musicians performed acoustic sets every Friday evening at the small cafe. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light... | {"is_valid":true,"category":{"Bash":true}} | single |
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. She placed the manuscript carefully on the desk and began the painstaking process of revision. The botanical garden featured an impre... | {"is_valid":true,"category":{"Terraform":true}} | single |
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 garden looked particularly vibrant after the recent rain. The library hosted a weekly book club focused on classic and contemporary litera... | {"is_valid":true,"category":{"Rust":true}} | single |
I need help debugging this script:
::assocarrays.cmd
@echo off
setlocal ENABLEDELAYEDEXPANSION
set array.dog=1
set array.cat=2
set array.wolf=3
set array.cow=4
for %%i in (dog cat wolf cow) do call :showit array.%%i !array.%%i!
set c=-27
call :mkarray sicko flu 5 measles 6 mumps 7 bromodrosis 8
for %%i in (flu mea | {"is_valid":true,"category":{"Batch":true}} | single |
Researchers gathered data from hundreds of households participating in the longitudinal study. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Visitors strolled through the cobblestone streets, admiring the historic architecture. Teachers reported that interactive learning tools improve... | {"is_valid":true,"category":{"Batch":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. Quality assurance teams collaborate closely with developers to identify and resolve defects. The conference featured keynote speakers from a wide varie... | {"is_valid":true,"category":{"Dockerfile":true,"Bash":true}} | multi |
I copied this from the docs:
using System;
using System.Collections.Generic;
using System.Linq;
class ReturnMultipleValues
{
static void Main()
{
var values = new[] { 4, 51, 1, -3, 3, 6, 8, 26, 2, 4 };
int max, min;
MinMaxNum(values, out max, out min);
Console.Writ | {"is_valid":true,"category":{"C#":true}} | single |
The botanical garden featured an impressive collection of rare orchids from tropical regions. The neighborhood gathered every Saturday morning at the small farmers' market downtown. The painting featured warm colors that evoked memories of childhood summers by the sea. The engineer reviewed the blueprints carefully bef... | {"is_valid":true,"category":{"C++":true}} | single |
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Quick question about this snippet:
from functools import lru_cache
primes = [2, 3, 5, 7, 11, 13, 17] # Will be extended
@lru_cache(maxsize=2000)
def pfactor(n):
if n == 1:
return [1]
n2 = n // 2 + 1
f... | {"is_valid":true,"category":{"Python":true,"SQL":true}} | multi |
Engineering teams often adopt iterative methodologies to manage complex software projects. What does this output:
@echo off
setlocal enabledelayedexpansion
call :luhn 49927398716
call :luhn 49927398717
call :luhn 1234567812345678
call :luhn 1234567812345670
exit /b 0
:luhn
set "input=%1"
set "cnt=0"
set "s1=0"
set ... | {"is_valid":true,"category":{"Batch":true}} | single |
Long-distance running requires a combination of disciplined training and proper nutrition. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Software architects often debate the merits of monolit... | {"is_valid":true,"category":{"JavaScript":true,"Java":true}} | multi |
The conference featured keynote speakers from a wide variety of academic backgrounds. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. He sat by the window with a steaming mug of tea ... | {"is_valid":true,"category":{"jq":true}} | single |
The botanical garden featured an impressive collection of rare orchids from tropical regions. 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. Climate models suggest that ocean temperatures ... | {"is_valid":true,"category":{"Makefile":true}} | single |
What does this output:
majors = 'north east south west'.split()
majors *= 2 # no need for modulo later
quarter1 = 'N,N by E,N-NE,NE by N,NE,NE by E,E-NE,E by N'.split(',')
quarter2 = [p.replace('NE','EN') for p in quarter1]
def degrees2compasspoint(d):
d = (d % 360) + 360/64
majorindex, minor = divmod(d, ... | {"is_valid":true,"category":{"Python":true}} | single |
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. Statistical models can sometimes obscure the limitations of the underlying data sources. The technology conference attracted engineers, designers... | {"is_valid":true,"category":{"Bash":true,"jq":true}} | multi |
Energy researchers are exploring various pathways for reducing carbon emissions globally. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. The classroom hummed with quiet conversation as students worked through practice problems. The morning light filtered through the kitche... | {"is_valid":true,"category":{"Dockerfile":true}} | single |
Translate this into another language for me:
package Elementwise;
use Exporter 'import';
use overload
'=' => sub { $_[0]->clone() },
'+' => sub { $_[0]->add($_[1]) },
'-' => sub { $_[0]->sub($_[1]) },
'*' => sub { $_[0]->mul($_[1]) },
'/' => sub { $_[0]->div($_[1]) },
'**' => sub { $_[0]->exp($_[1]) },
;
su... | {"is_valid":true,"category":{"Perl":true}} | single |
Network operators continually upgrade infrastructure to keep pace with growing demand. He sat by the window with a steaming mug of tea and watched the snow gently falling. The newly opened gallery showcased contemporary works by emerging regional artists. Visitors strolled through the cobblestone streets, admiring the ... | {"is_valid":true,"category":{"Bash":true,"C++":true,"Swift":true}} | multi |
I need help debugging this script:
provider "aws" { }
provider "gzip" {compressionlevel = "BestCompression"}
# configured via:
# $ export AWS_ACCESS_KEY_ID="anaccesskey"
# $ export AWS_SECRET_ACCESS_KEY="asecretkey"
# $ export AWS_DEFAULT_REGION="us-west-2"
# https://www.terraform.io/docs/providers/aws/#environme | {"is_valid":true,"category":{"Terraform":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. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Statistical models can sometimes obscure the limitations o... | {"is_valid":true,"category":{"C#":true}} | single |
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Database administrators monitor query performance and index utilization across busy schemas. The newly opened gallery showcased contemporary works by emerging regional artists. The morning light filtered through the kitchen win... | {"is_valid":true,"category":{"Ruby":true,"Kotlin":true}} | multi |
Visitors strolled through the cobblestone streets, admiring the historic architecture. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. She placed the manuscript carefully on the desk and began the painstaking process of revision. The chef prepared a simple meal of roasted vegetables, fr... | {"is_valid":true,"category":{"Makefile":true}} | single |
The committee scheduled a follow-up meeting to discuss the budget allocations. Astronomers observed a faint signal that appeared to originate from a distant galaxy. He gathered his notes, packed his bag, and prepared for the long journey home. Historians continue to debate the significance of the treaty signed in that ... | {"is_valid":false,"category":{}} | benign |
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Add comments to make this clearer:
import os
os.path.isfile("input.txt")
os.path.isfile("/input.txt")
os.path.isdir("docs")
os.path.isdir("/docs") | {"is_valid":true,"category":{"Python":true}} | single |
Add comments to make this clearer:
$source = @'
using System;
using System.Collections.Generic;
namespace Powershell
{
public class CSharp
{
public static IEnumerable<int[]> Combinations(int m, int n)
{
int[] result = new int[m];
... | {"is_valid":true,"category":{"PowerShell":true}} | single |
She enjoyed reading historical novels that transported her to far away places. Backend services were redesigned to handle the surge in concurrent user requests. The garden looked particularly vibrant after the recent rain. Local musicians performed acoustic sets every Friday evening at the small cafe. She enjoyed readi... | {"is_valid":true,"category":{"JavaScript":true}} | single |
Project managers stressed the importance of clear documentation throughout the cycle. Policy analysts examined the long-term implications of the proposed legislative reform. Children played in the park while their parents chatted on the wooden benches nearby. The neighborhood gathered every Saturday morning at the smal... | {"is_valid":true,"category":{"Swift":true}} | single |
She enjoyed reading historical novels that transported her to far away places. The committee scheduled a follow-up meeting to discuss the budget allocations. Software architects often debate the merits of monolithic versus microservice designs. Climate models suggest that ocean temperatures will continue to rise over t... | {"is_valid":false,"category":{}} | benign |
Take a look at this:
package main
import "fmt"
var d = [][]int{
{0, 1, 2, 3, 4, 5, 6, 7, 8, 9},
{1, 2, 3, 4, 0, 6, 7, 8, 9, 5},
{2, 3, 4, 0, 1, 7, 8, 9, 5, 6},
{3, 4, 0, 1, 2, 8, 9, 5, 6, 7},
{4, 0, 1, 2, 3, 9, 5, 6, 7, 8},
{5, 9, 8, 7, 6, 0, 4, 3, 2, 1},
{6, 5, 9, 8, | {"is_valid":true,"category":{"Go":true}} | single |
I need help debugging this script:
import Foundation
public struct TimeResult {
public var seconds: Double
public var nanoSeconds: Double
public var duration: Double { seconds + (nanoSeconds / 1e9) }
@usableFromInline
init(seconds: Double, nanoSeconds: Double) {
self.seconds = seconds
self.nanoS... | {"is_valid":true,"category":{"Swift":true,"Perl":true,"C#":true}} | multi |
Software architects often debate the merits of monolithic versus microservice designs. Public libraries have evolved into community hubs offering far more than just printed books. The technology conference attracted engineers, designers, and product managers from around the world. The garden looked particularly vibrant... | {"is_valid":true,"category":{"C#":true,"AWK":true}} | multi |
He gathered his notes, packed his bag, and prepared for the long journey home. The engineer reviewed the blueprints carefully before approving the modifications. The technology conference attracted engineers, designers, and product managers from around the world. The garden looked particularly vibrant after the recent ... | {"is_valid":true,"category":{"SQL":true}} | single |
I copied this from the docs:
class Example
def foo
puts "this is foo"
end
def bar
puts "this is bar"
end
def method_missing(name, *args, &block)
puts "tried to handle unknown method %s" % name # name is a symbol
unless args.empty?
puts "it had a | {"is_valid":true,"category":{"Ruby":true}} | single |
The newly opened gallery showcased contemporary works by emerging regional artists. Policy analysts examined the long-term implications of the proposed legislative reform. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Quality assurance teams collaborate closely with developers... | {"is_valid":true,"category":{"Bash":true,"Terraform":true}} | multi |
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. The newly opened gallery showcased contemporary works by emerging regional artists. Quarterly reports indicated a steady rise in operational efficiency across divisions. Policy analysts examined the long-term implications of the propos... | {"is_valid":true,"category":{"AWK":true}} | single |
Local potters fired their kilns once a month, producing colorful ceramics for the shops. The garden looked particularly vibrant after the recent rain. Public libraries have evolved into community hubs offering far more than just printed books. The classroom hummed with quiet conversation as students worked through prac... | {"is_valid":true,"category":{"Swift":true}} | single |
Energy researchers are exploring various pathways for reducing carbon emissions globally. Production teams refined their processes to minimize waste and improve overall yield. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Children played in the park while their parents chatted ... | {"is_valid":true,"category":{"jq":true}} | single |
I copied this from the docs:
apiVersion: apps/v1
# ===============LICENSE_START=======================================================
# Acumos Apache-2.0
# ===================================================================================
# Copyright (C) 2017-2018 AT&T Intellectual Property & Tech Mahindra. All right... | {"is_valid":true,"category":{"YAML":true}} | single |
Add comments to make this clearer:
$c = New-Object Net.WebClient
$words = -split ($c.DownloadString('http://wiki.puzzlers.org/pub/wordlists/unixdict.txt'))
$top_anagrams = $words `
| ForEach-Object {
$_ | Add-Member -PassThru NoteProperty Characters `
(-join (([char[]] $_) | Sort-Object... | {"is_valid":true,"category":{"PowerShell":true}} | single |
The morning light filtered through the kitchen window as the coffee brewed. She enjoyed reading historical novels that transported her to far away places. Visitors strolled through the cobblestone streets, admiring the historic architecture. Could you explain what this code does:
INITIAL_CXX_FLAGS += -Wall -fvisibility... | {"is_valid":true,"category":{"Makefile":true}} | single |
Quarterly reports indicated a steady rise in operational efficiency across divisions. Long-distance running requires a combination of disciplined training and proper nutrition. Visitors strolled through the cobblestone streets, admiring the historic architecture. Historians continue to debate the significance of the tr... | {"is_valid":false,"category":{}} | benign |
Project managers stressed the importance of clear documentation throughout the cycle. The conference featured keynote speakers from a wide variety of academic backgrounds. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Researchers have been studying migration patterns of monarch... | {"is_valid":true,"category":{"jq":true}} | single |
Astronomers observed a faint signal that appeared to originate from a distant galaxy. Public libraries have evolved into community hubs offering far more than just printed books. Quarterly reports indicated a steady rise in operational efficiency across divisions. She drafted a detailed agenda for the upcoming retreat ... | {"is_valid":true,"category":{"PowerShell":true,"C":true}} | multi |
Add comments to make this clearer:
using System;
using System.Linq;
using System.Text;
namespace ImaginaryBaseNumbers {
class Complex {
private double real, imag;
public Complex(int r, int i) {
real = r;
imag = i;
}
public Complex(double r, double i) {
... | {"is_valid":true,"category":{"C#":true}} | single |
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Project managers stressed the importance of clear documentation throughout the cycle. She placed the manuscript carefully on the desk and began the painstaking process of revision. Statistical models can sometimes obscure the limitation... | {"is_valid":true,"category":{"Lua":true,"YAML":true}} | multi |
Add comments to make this clearer:
# 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,"YAML":true,"Swift":true}} | multi |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.