prompt large_stringlengths 150 7.97k | target large_stringlengths 32 83 | kind large_stringclasses 3
values |
|---|---|---|
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Researchers gathered data from hundreds of households participating in the longitudinal study. Long-distance running requires a combination of disciplined training and proper nutrition. Marketing analysts examined consumer beha... | {"is_valid":true,"category":{"Bash":true}} | single |
I copied this from the docs:
# LongAddition only supports Unsigned Integers represented as Strings/Character Arrays
Function LongAddition ( [Char[]] $lhs, [Char[]] $rhs )
{
$lhsl = $lhs.length
$rhsl = $rhs.length
if(($lhsl -gt 0) -and ($rhsl -gt 0))
{
$maxplace = [Math]::Max($rhsl,$lhsl)+1
1..$maxpla | {"is_valid":true,"category":{"PowerShell":true}} | single |
The engineer reviewed the blueprints carefully before approving the modifications. Hikers were advised to carry plenty of water and to inform someone of their planned route. Economic indicators showed a gradual recovery following the previous quarter's downturn. Researchers gathered data from hundreds of households par... | {"is_valid":true,"category":{"Dockerfile":true}} | single |
Network operators continually upgrade infrastructure to keep pace with growing demand. Here is the code I was given:
class RockPaperScissorsGame
CHOICES = %w[rock paper scissors quit]
BEATS = {
'rock' => 'paper',
'paper' => 'scissors',
'scissors' => 'rock',
}
def initialize()
@plays = {... | {"is_valid":true,"category":{"Ruby":true,"PowerShell":true}} | multi |
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Refactor the function below:
#include <iostream>
#include <vector>
#include <iomanip>
void primeFactors( unsigned n, std::vector<unsigned>& r ) {
int f = 2; if( n == 1 ) r.push_back( 1 );
else {
while( true ) {
... | {"is_valid":true,"category":{"C++":true}} | single |
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Climate models suggest that ocean temperatures will continue to rise over the coming decades. The painting featured warm colors that evoked memories of childhood summers by the sea. Local potters fired their kilns once a month,... | {"is_valid":true,"category":{"Kotlin":true}} | single |
Backend services were redesigned to handle the surge in concurrent user requests. Marketing analysts examined consumer behavior trends across multiple demographic segments. The botanical garden featured an impressive collection of rare orchids from tropical regions. Travelers explored ancient ruins, marveling at the cr... | {"is_valid":true,"category":{"Kotlin":true}} | single |
Project managers stressed the importance of clear documentation throughout the cycle. The morning light filtered through the kitchen window as the coffee brewed. Researchers have been studying migration patterns of monarch butterflies for years. Corporate training programs increasingly include modules on collaboration ... | {"is_valid":true,"category":{"SQL":true}} | single |
Hikers were advised to carry plenty of water and to inform someone of their planned route. Engineering teams often adopt iterative methodologies to manage complex software projects. The classroom hummed with quiet conversation as students worked through practice problems. The bakery on the corner was famous for its sou... | {"is_valid":true,"category":{"Go":true}} | single |
Children played in the park while their parents chatted on the wooden benches nearby. Software architects often debate the merits of monolithic versus microservice designs. What does this output:
CREATE TABLE accounts (name VARCHAR, custid VARCHAR); CREATE TABLE checking (balance INTEGER); CREATE TABLE checking (custid... | {"is_valid":true,"category":{"SQL":true}} | single |
He walked along the river path, listening to the rustling of leaves overhead. He sat by the window with a steaming mug of tea and watched the snow gently falling. Quick question about this snippet:
// Split a (character) string into comma (plus a blank) delimited strings
// based on a change of character (left to right... | {"is_valid":true,"category":{"Scala":true}} | single |
The newly opened gallery showcased contemporary works by emerging regional artists. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Long-distance running requires a combination of d... | {"is_valid":true,"category":{"C++":true}} | single |
He gathered his notes, packed his bag, and prepared for the long journey home. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Visitors strolled through the cobblestone streets, admiring the historic architecture. The botanical garden featured an impressive collection of rare orchids... | {"is_valid":true,"category":{"Perl":true}} | single |
Statistical models can sometimes obscure the limitations of the underlying data sources. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Project managers stressed the importance of clear documentation throughout the cycle. Climate scientists continue to refine their models i... | {"is_valid":true,"category":{"Go":true}} | single |
The community center offered free workshops on photography, pottery, and creative writing. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. She enjoyed reading historical novels that transported her to far away places. Network operators continually upgrade infrastructure to k... | {"is_valid":true,"category":{"SQL":true}} | single |
He walked along the river path, listening to the rustling of leaves overhead. Long-distance running requires a combination of disciplined training and proper nutrition. Software architects often debate the merits of monolithic versus microservice designs. Energy researchers are exploring various pathways for reducing c... | {"is_valid":true,"category":{"SQL":true,"Scala":true,"Swift":true}} | multi |
Find any security problems in:
func IsPrime(n int) bool {
if n < 0 { n = -n }
switch {
case n == 2:
return true
case n < 2 || n % 2 == 0:
return false
default:
for i = 3; i*i <= n; i += 2 {
if n % i == 0 { return false }
}
}
return true
} | {"is_valid":true,"category":{"Go":true}} | single |
I need help debugging this script:
# 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... | {"is_valid":true,"category":{"Dockerfile":true}} | single |
Marketing analysts examined consumer behavior trends across multiple demographic segments. She enjoyed reading historical novels that transported her to far away places. Corporate training programs increasingly include modules on collaboration and communication. I copied this from the docs:
import time
def counter():... | {"is_valid":true,"category":{"Python":true}} | single |
Here is the code I was given:
#include <algorithm>
#include <array>
#include <chrono>
#include <iostream>
#include <mutex>
#include <random>
#include <string>
#include <string_view>
#include <thread>
const int timeScale = 42; // scale factor for the philosophers task duration
void Message(std::string_view message)... | {"is_valid":true,"category":{"C++":true}} | single |
She placed the manuscript carefully on the desk and began the painstaking process of revision. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. She drafted a detailed agenda for the upcoming retreat a... | {"is_valid":true,"category":{"C#":true,"Bash":true}} | multi |
The painting featured warm colors that evoked memories of childhood summers by the sea. Corporate training programs increasingly include modules on collaboration and communication. Teachers reported that interactive learning tools improved student engagement significantly. Researchers have been studying migration patte... | {"is_valid":true,"category":{"Rust":true}} | single |
Climate models suggest that ocean temperatures will continue to rise over the coming decades. Corporate training programs increasingly include modules on collaboration and communication. Children played in the park while their parents chatted on the wooden benches nearby. Refactor the function below:
foo <- function()
... | {"is_valid":true,"category":{"R":true}} | single |
Could you explain what this code does:
{
line[NR] = $0
}
END { # sort it with cocktail sort
swapped = 0
do {
for(i=1; i < NR; i++) {
if ( line[i] > line[i+1] ) {
t = line[i]
line[i] = line[i+1]
line[i+1] = t
swapped = 1
}
}
if ( swapped == 0 ) break
swapped = 0
for(i=NR-1; i >=... | {"is_valid":true,"category":{"AWK":true,"Batch":true}} | multi |
Production teams refined their processes to minimize waste and improve overall yield. The committee scheduled a follow-up meeting to discuss the budget allocations. Please review the following snippet for issues:
CREATE TABLE order_items (order_id VARCHAR, product_id VARCHAR); CREATE TABLE customers (customer_name VARC... | {"is_valid":true,"category":{"SQL":true}} | single |
Translate this into another language for me:
def derangements(n: Int) =
(1 to n).permutations.filter(_.zipWithIndex.forall{case (a, b) => a - b != 1})
def subfactorial(n: Long): Long = n match {
case 0 => 1
case 1 => 0
case _ => (n - 1) * (subfactorial(n - 1) + subfactorial(n - 2))
}
println(s"Derangements ... | {"is_valid":true,"category":{"Scala":true}} | single |
Local potters fired their kilns once a month, producing colorful ceramics for the shops. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. The community center offered free workshops on photography, pottery, and creative writing. Modern microprocessors rely on pipelining and out-of-ord... | {"is_valid":true,"category":{"Dockerfile":true}} | single |
Statistical models can sometimes obscure the limitations of the underlying data sources. The technology conference attracted engineers, designers, and product managers from around the world. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Teachers reported that interactive l... | {"is_valid":true,"category":{"Rust":true}} | single |
The morning light filtered through the kitchen window as the coffee brewed. The committee scheduled a follow-up meeting to discuss the budget allocations. Could you explain what this code does:
object Paraffins extends App {
val (nMax, nBranches) = (250, 4)
val rooted, unrooted = Array.tabulate(nMax + 1)(i => if (i... | {"is_valid":true,"category":{"Scala":true,"AWK":true}} | multi |
Could you explain what this code does:
function Get-LevenshteinDistance
{
[CmdletBinding()]
[OutputType([PSCustomObject])]
Param
(
[Parameter(Mandatory=$true, Position=0)]
[ValidateNotNullOrEmpty()]
[Alias("s")]
[string]
$ReferenceObject,
[Parameter(Man... | {"is_valid":true,"category":{"PowerShell":true}} | single |
Engineering teams often adopt iterative methodologies to manage complex software projects. She enjoyed reading historical novels that transported her to far away places. He walked along the river path, listening to the rustling of leaves overhead. Volunteers spent the weekend cleaning up the riverside trail and plantin... | {"is_valid":false,"category":{}} | benign |
Backend services were redesigned to handle the surge in concurrent user requests. Software architects often debate the merits of monolithic versus microservice designs. Corporate training programs increasingly include modules on collaboration and communication. The classroom hummed with quiet conversation as students w... | {"is_valid":true,"category":{"Go":true}} | single |
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Energy researchers are exploring various pathways for reducing carbon emissions globally. Corporate training programs increasingly inc... | {"is_valid":true,"category":{"Perl":true}} | single |
Take a look at this:
import Foundation
extension Array {
mutating func shuffle() {
guard count > 1 else { return }
for i in 0..<self.count - 1 {
let j = Int(arc4random_uniform(UInt32(count - i))) + i
guard i != j else { continue }
swap(&self[i], &self[j])
... | {"is_valid":true,"category":{"Swift":true}} | single |
Add comments to make this clearer:
public class Approximate {
private static boolean approxEquals(double value, double other, double epsilon) {
return Math.abs(value - other) < epsilon;
}
private static void test(double a, double b) {
double epsilon = 1e-18;
System.out.printf("%f, ... | {"is_valid":true,"category":{"Java":true}} | single |
The classroom hummed with quiet conversation as students worked through practice problems. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Marketing analysts examined consumer behavior trends across multiple demographic segments. She placed the manuscript carefully on... | {"is_valid":false,"category":{}} | benign |
He walked along the river path, listening to the rustling of leaves overhead. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Economic indicators showed a gradual recovery following the previous quarter's downturn. Backend services were redesigned to handle the surge in concurrent u... | {"is_valid":true,"category":{"Python":true,"Perl":true}} | multi |
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. Translate this into another language for me:
for (int i = 0; i < 5; i++) {
for (int j = 0; j <= i; j++) {
System.out.print("*");
}
System.o... | {"is_valid":true,"category":{"Java":true}} | single |
Database administrators monitor query performance and index utilization across busy schemas. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Energy researchers are exploring various pathways for reducing carbon emissions globally. He adjusted the telescope and waited patien... | {"is_valid":true,"category":{"Terraform":true}} | single |
The conference featured keynote speakers from a wide variety of academic backgrounds. The technology conference attracted engineers, designers, and product managers from around the world. Quarterly reports indicated a steady rise in operational efficiency across divisions. Children played in the park while their parent... | {"is_valid":true,"category":{"R":true}} | single |
I need help debugging this script:
(() => {
"use strict";
// ----------------- SUNDARAM PRIMES -----------------
// sundaramsUpTo :: Int -> [Int]
const sundaramsUpTo = n => {
const
m = Math.floor(n - 1) / 2,
excluded = new Set(
enumFromTo(1)(
... | {"is_valid":true,"category":{"JavaScript":true}} | single |
Policy analysts examined the long-term implications of the proposed legislative reform. Historians continue to debate the significance of the treaty signed in that pivotal year. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. The neighborhood gathered every Saturday morning at the sm... | {"is_valid":true,"category":{"Lua":true,"Ruby":true}} | multi |
Climate scientists continue to refine their models in light of newly available data. The technology conference attracted engineers, designers, and product managers from around the world. Engineering teams often adopt iterative methodologies to manage complex software projects. Climate scientists continue to refine thei... | {"is_valid":true,"category":{"YAML":true}} | single |
Climate models suggest that ocean temperatures will continue to rise over the coming decades. 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. The conference featured keynote speakers from a wide variety ... | {"is_valid":true,"category":{"jq":true,"C++":true}} | multi |
Researchers gathered data from hundreds of households participating in the longitudinal study. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Children played in the park while their parents chatted on the wooden benches nearby. The technology conference attracted engineers... | {"is_valid":true,"category":{"Terraform":true}} | single |
Refactor the function below:
extern crate chrono;
use std::fs::OpenOptions;
use std::io::{self, BufReader, BufWriter};
use std::io::prelude::*;
use std::env;
const FILENAME: &str = "NOTES.TXT";
fn show_notes() -> Result<(), io::Error> {
let file = OpenOptions::new()
.read(true)
.create(true) /... | {"is_valid":true,"category":{"Rust":true}} | single |
Could you explain what this code does:
#!/usr/bin/env bash
declare -A pinyin=(
[甲]='jiă'
[乙]='yĭ'
[丙]='bĭng'
[丁]='dīng'
[戊]='wù'
[己]='jĭ'
[庚]='gēng'
[辛]='xīn'
[壬]='rén'
[癸]='gŭi'
[子]='zĭ'
[丑]='chŏu'
[寅]='yín'
[卯]='măo'
[辰]='chén'
[巳]='sì'
[午]='wŭ'
[未]='wèi'
[申]='shén'
[酉]='yŏu'
... | {"is_valid":true,"category":{"Bash":true}} | single |
She organized her bookshelves by genre and then alphabetically within each section. Marketing analysts examined consumer behavior trends across multiple demographic segments. Climate scientists continue to refine their models in light of newly available data. Statistical models can sometimes obscure the limitations of ... | {"is_valid":true,"category":{"Python":true}} | single |
Hikers were advised to carry plenty of water and to inform someone of their planned route. Translate this into another language for me:
# These plans are for managing resources in Azure for codevalet's DNS
#
# Presently not sure if this is the best approach to managing Azure DNS
# resources between production and stagi... | {"is_valid":true,"category":{"Terraform":true}} | single |
Find any security problems in:
# Copyright (c) 2013-2016, Loïc Hoguin <essen@ninenines.eu>
# This file is part of erlang.mk and subject to the terms of the ISC License.
.PHONY: distclean-edoc edoc
# Configuration.
EDOC_OPTS ?=
EDOC_SRC_DIRS ?=
EDOC_OUTPUT ?= doc
define edoc.erl
SrcPaths = lists:foldl(fun(P, Acc) -... | {"is_valid":true,"category":{"Makefile":true}} | single |
Database administrators monitor query performance and index utilization across busy schemas. Researchers gathered data from hundreds of households participating in the longitudinal study. The newly opened gallery showcased contemporary works by emerging regional artists. The committee scheduled a follow-up meeting to d... | {"is_valid":true,"category":{"Swift":true}} | single |
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. The garden looked particularly vibrant after the recent rain. He walked along the river path, listening to the rustling of leaves overhead. Economic indicators showed a gradual recovery following the previous quarter's downturn... | {"is_valid":false,"category":{}} | benign |
Find any security problems in:
fn main() {
magic(4);
magic(2_340);
magic(765_000);
magic(27_000_001);
magic(999_123_090);
magic(239_579_832_723_441);
magic(std::u64::MAX);
}
fn magic(num: u64) {
if num == 4 {
println!("four is magic!");
println!();
return;
}... | {"is_valid":true,"category":{"Rust":true}} | single |
Refactor the function below:
getkey() {
local stty="$(stty -g)"
trap "stty $stty; trap SIGINT; return 128" SIGINT
stty cbreak -echo
local key
while true; do
key=$(dd count=1 2>/dev/null) || return $?
if [ -z "$1" ] || [[ "$key" == [$1] ]]; then
break
fi
done
stty $stty
echo "$key"
r... | {"is_valid":true,"category":{"Bash":true}} | single |
The community center offered free workshops on photography, pottery, and creative writing. Researchers gathered data from hundreds of households participating in the longitudinal study. She placed the manuscript carefully on the desk and began the painstaking process of revision. Visitors strolled through the cobblesto... | {"is_valid":true,"category":{"Terraform":true}} | single |
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. He walked along the river path, listening to the rustling of leaves overhead. Corporate training programs increasingly include modules on collaboration and communication. Quarterly reports indicated a steady rise in operational efficien... | {"is_valid":true,"category":{"C":true}} | single |
Researchers have been studying migration patterns of monarch butterflies for years. Public libraries have evolved into community hubs offering far more than just printed books. Please review the following snippet for issues:
-- First 20 antiprimes.
function count_factors(number)
local count = 0
for attempt = 1, num... | {"is_valid":true,"category":{"Lua":true,"Bash":true}} | multi |
Software architects often debate the merits of monolithic versus microservice designs. Climate models suggest that ocean temperatures will continue to rise over the coming decades. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Refactor the function below:
BEGIN {
n = 11
... | {"is_valid":true,"category":{"AWK":true}} | single |
Could you explain what this code does:
package main
import (
"fmt"
"math/big"
"rcu"
"sort"
)
var zero = new(big.Int)
var one = big.NewInt(1)
var two = big.NewInt(2)
var three = big.NewInt(3)
var four = big.NewInt(4)
var five = big.NewInt(5)
var six = big.NewInt(6)
// simple wheel based prime facto... | {"is_valid":true,"category":{"Go":true}} | single |
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Project managers stressed the importance of clear documentation throughout the cycle. Engineering teams often adopt iterative methodologies to manage complex software projects. Backend services were redesigned to handle the sur... | {"is_valid":true,"category":{"Scala":true}} | single |
What does this output:
use DBI;
my $db = DBI->connect('DBI:mysql:database:server','login','password');
my $statment = <<EOF;
CREATE TABLE `Address` (
`addrID` int(11) NOT NULL auto_increment,
`addrStreet` varchar(50) NOT NULL default '',
`addrCity` varchar(25) NOT NU | {"is_valid":true,"category":{"Perl":true}} | single |
Corporate training programs increasingly include modules on collaboration and communication. 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. The community center offered free workshops on ... | {"is_valid":true,"category":{"Dockerfile":true,"Perl":true}} | multi |
Climate models suggest that ocean temperatures will continue to rise over the coming decades. The painting featured warm colors that evoked memories of childhood summers by the sea. Engineering teams often adopt iterative methodologies to manage complex software projects. Please review the following snippet for issues:... | {"is_valid":true,"category":{"Swift":true}} | single |
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Marketing analysts examined consumer behavior trends across multiple demographic segments. Run the following:
sub generate {
my $n = shift;
my $str = '[' x $n;
substr($str, rand($n + $_), 0) = ']' for 1..$n;
return $str;... | {"is_valid":true,"category":{"Perl":true}} | single |
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. I copied this from the docs:
import Foundation
extension Int {
func isPrime() -> Bool {
switch self {
case let x where x < 2:
return false
case 2:
return true
default:
return
self... | {"is_valid":true,"category":{"Swift":true}} | single |
The committee scheduled a follow-up meeting to discuss the budget allocations. The neighborhood gathered every Saturday morning at the small farmers' market downtown. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. The community center offered free workshops on photography, ... | {"is_valid":false,"category":{}} | benign |
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. The garden looked particularly vibrant after the recent rain. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost... | {"is_valid":true,"category":{"jq":true}} | single |
He gathered his notes, packed his bag, and prepared for the long journey home. Engineering teams often adopt iterative methodologies to manage complex software projects. Production teams refined their processes to minimize waste and improve overall yield. Local potters fired their kilns once a month, producing colorful... | {"is_valid":true,"category":{"Kotlin":true}} | single |
Economic indicators showed a gradual recovery following the previous quarter's downturn. Can you optimize this implementation:
while read line ; do
# examine or do something to the text in the "line" variable
echo "$line"
done She enjoyed reading historical novels that transported her to far away places. He walked ... | {"is_valid":true,"category":{"Bash":true}} | single |
The garden looked particularly vibrant after the recent rain. Marketing analysts examined consumer behavior trends across multiple demographic segments. Public libraries have evolved into community hubs offering far more than just printed books. Please review the following snippet for issues:
Add-Type -AssemblyName Sys... | {"is_valid":true,"category":{"PowerShell":true}} | single |
Software architects often debate the merits of monolithic versus microservice designs. Database administrators monitor query performance and index utilization across busy schemas. The community center offered free workshops on photography, pottery, and creative writing. Climate models suggest that ocean temperatures wi... | {"is_valid":true,"category":{"SQL":true}} | single |
Policy analysts examined the long-term implications of the proposed legislative reform. Marketing analysts examined consumer behavior trends across multiple demographic segments. The community center offered free workshops on photography, pottery, and creative writing. Nutritionists generally recommend a balanced diet ... | {"is_valid":false,"category":{}} | benign |
Can you optimize this implementation:
using System;
using System.IO;
namespace AppendPwdRosetta
{
class PasswordRecord
{
public string account, password, fullname, office, extension, homephone, email, directory, shell;
public int UID, GID;
public PasswordRecord(string account, string p... | {"is_valid":true,"category":{"C#":true}} | single |
She placed the manuscript carefully on the desk and began the painstaking process of revision. Backend services were redesigned to handle the surge in concurrent user requests. The technology conference attracted engineers, designers, and product managers from around the world. Nutritionists generally recommend a balan... | {"is_valid":true,"category":{"Dockerfile":true}} | single |
What does this output:
using System;
using System.Collections.Generic;
using static System.Linq.Enumerable;
public static class CramersRule
{
public static void Main() {
var equations = new [] {
new [] { 2, -1, 5, 1, -3 },
new [] { 3, 2, 2, -6, -32 },
new [] { 1, ... | {"is_valid":true,"category":{"C#":true}} | single |
Translate this into another language for me:
CREATE TABLE staff (staff_name VARCHAR, staff_gender VARCHAR, staff_id VARCHAR); CREATE TABLE Staff_Department_Assignments (staff_id VARCHAR, job_title_code VARCHAR);
SELECT T1.staff_name, T1.staff_gender FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_i... | {"is_valid":true,"category":{"SQL":true}} | single |
Take a look at this:
FROM sti_test/sti-fake
ONBUILD RUN touch /sti-fake/src/onbuild
# The ONBUILD strategy only works with the application source dir so we need
# to manually specify to copy to another location.
#
# This is a little hack-ish given that we know our assemble script requires files to be in /tmp/src
# we... | {"is_valid":true,"category":{"Dockerfile":true,"Rust":true,"C#":true}} | multi |
Economic indicators showed a gradual recovery following the previous quarter's downturn. Historians continue to debate the significance of the treaty signed in that pivotal year. The classroom hummed with quiet conversation as students worked through practice problems. He wandered through the old bookstore, occasionall... | {"is_valid":false,"category":{}} | benign |
Marketing analysts examined consumer behavior trends across multiple demographic segments. Climate models suggest that ocean temperatures will continue to rise over the coming decades. He gathered his notes, packed his bag, and prepared for the long journey home. The classroom hummed with quiet conversation as students... | {"is_valid":true,"category":{"Java":true}} | single |
The garden looked particularly vibrant after the recent rain. Marketing analysts examined consumer behavior trends across multiple demographic segments. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Software architects often debate the merits of monolithic versus microservice desi... | {"is_valid":true,"category":{"Rust":true,"Go":true,"C++":true}} | multi |
Add comments to make this clearer:
// Function to construct a new integer from the first and last digits of another
function gapfulness_divisor (number) {
var digit_string = number.toString(10)
var digit_count = digit_string.length
var first_digit = digit_string.substring(0, 1)
var last_digit = digit_string.substri... | {"is_valid":true,"category":{"JavaScript":true}} | single |
Local musicians performed acoustic sets every Friday evening at the small cafe. The neighborhood gathered every Saturday morning at the small farmers' market downtown. She organized her bookshelves by genre and then alphabetically within each section. Policy analysts examined the long-term implications of the proposed ... | {"is_valid":true,"category":{"Lua":true}} | single |
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Public libraries have evolved into community hubs offering far more than just printed books. Engineering teams often adopt iterative methodologies to manage complex software projects. The conference featured keynote speakers from a wide... | {"is_valid":true,"category":{"Lua":true}} | single |
The technology conference attracted engineers, designers, and product managers from around the world. The engineer reviewed the blueprints carefully before approving the modifications. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Find any security problems in:
package main
imp... | {"is_valid":true,"category":{"Go":true}} | single |
The classroom hummed with quiet conversation as students worked through practice problems. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. She enjoyed reading historical novels that transported her to far away places. Climate scientists continue to refine their models in li... | {"is_valid":true,"category":{"Bash":true}} | single |
Local musicians performed acoustic sets every Friday evening at the small cafe. Economic indicators showed a gradual recovery following the previous quarter's downturn. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Quality assurance teams collaborate closely with developers to id... | {"is_valid":true,"category":{"Python":true}} | single |
Astronomers observed a faint signal that appeared to originate from a distant galaxy. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Network operators continually upgrade infrastructure to keep pace with growing demand. She drafted a detailed agenda for the upcoming retreat and... | {"is_valid":true,"category":{"Batch":true}} | single |
Teachers reported that interactive learning tools improved student engagement significantly. Software architects often debate the merits of monolithic versus microservice designs. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. The chef prepared a simple meal of roasted vegetables, ... | {"is_valid":true,"category":{"Swift":true}} | single |
Project managers stressed the importance of clear documentation throughout the cycle. Historians continue to debate the significance of the treaty signed in that pivotal year. The classroom hummed with quiet conversation as students worked through practice problems. Can you optimize this implementation:
use Benchmark;
... | {"is_valid":true,"category":{"Perl":true}} | single |
Production teams refined their processes to minimize waste and improve overall yield. Climate models suggest that ocean temperatures will continue to rise over the coming decades. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Modern microprocessors rely on pipelining and o... | {"is_valid":true,"category":{"R":true}} | single |
The classroom hummed with quiet conversation as students worked through practice problems. Please review the following snippet for issues:
#include <iostream>
#include <string>
std::string strip_white(const std::string& input)
{
size_t b = input.find_first_not_of(' ');
if (b == std::string::npos) b = 0;
retu... | {"is_valid":true,"category":{"C++":true}} | single |
Public libraries have evolved into community hubs offering far more than just printed books. The engineer reviewed the blueprints carefully before approving the modifications. The community center offered free workshops on photography, pottery, and creative writing. Visitors strolled through the cobblestone streets, ad... | {"is_valid":true,"category":{"AWK":true}} | single |
Software architects often debate the merits of monolithic versus microservice designs. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Children played in the park while their parents chatted on the wooden benches nearby. Astronomers observed a faint signal that appeared to ... | {"is_valid":true,"category":{"C":true}} | single |
Engineering teams often adopt iterative methodologies to manage complex software projects. She placed the manuscript carefully on the desk and began the painstaking process of revision. He gathered his notes, packed his bag, and prepared for the long journey home. Production teams refined their processes to minimize wa... | {"is_valid":true,"category":{"Dockerfile":true,"Bash":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. Astronomers observed a faint signal that appeared to originate from a distant galaxy. The botanical garden featured an impressive colle... | {"is_valid":true,"category":{"Bash":true,"R":true}} | multi |
Engineering teams often adopt iterative methodologies to manage complex software projects. Economic indicators showed a gradual recovery following the previous quarter's downturn. Can you optimize this implementation:
$Web = New-Object -TypeName Net.Webclient
$Words = $web.DownloadString('http://wiki.puzzlers.org/pub/w... | {"is_valid":true,"category":{"PowerShell":true}} | single |
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Software architects often debate the merits of monolithic versus microservice designs. I need help debugging this script:
function digits(n) return math.floor(math.log(n) / math.log(10))+1 end
function fixedprint(num, digs) --d... | {"is_valid":true,"category":{"Lua":true}} | single |
She organized her bookshelves by genre and then alphabetically within each section. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. The garden looked particularly vibrant afte... | {"is_valid":true,"category":{"YAML":true}} | single |
Database administrators monitor query performance and index utilization across busy schemas. Quick question about this snippet:
import scala.io._
import scala.swing._
import java.io._
import java.awt.Color
import javax.swing.ImageIcon
object Pixmap {
private case class PpmHeader(format:String, width:Int, height:In... | {"is_valid":true,"category":{"Scala":true}} | single |
Public libraries have evolved into community hubs offering far more than just printed books. What does this output:
var Δ = 1
let π = 3.141592
let 你好 = "hello"
Δ++
println(Δ)
And separately, here's a related piece:
1.upto(100) do |n|
print "Fizz" if a = (n % 3).zero?
print "Buzz" if b = (n % 5).zero?
print n unl... | {"is_valid":true,"category":{"Swift":true,"Ruby":true,"C#":true}} | multi |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.