prompt large_stringlengths 150 7.97k | target large_stringlengths 32 83 | kind large_stringclasses 3
values |
|---|---|---|
Researchers have been studying migration patterns of monarch butterflies for years. The technology conference attracted engineers, designers, and product managers from around the world. Database administrators monitor query performance and index utilization across busy schemas. The newly opened gallery showcased contem... | {"is_valid":true,"category":{"SQL":true}} | single |
The committee scheduled a follow-up meeting to discuss the budget allocations. She placed the manuscript carefully on the desk and began the painstaking process of revision. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Researchers gathered data from hundreds of hou... | {"is_valid":true,"category":{"Java":true,"Swift":true}} | multi |
Researchers have been studying migration patterns of monarch butterflies for years. Local potters fired their kilns once a month, producing colorful ceramics for the shops. He sat by the window with a steaming mug of tea and watched the snow gently falling. Volunteers spent the weekend cleaning up the riverside trail a... | {"is_valid":true,"category":{"Perl":true,"Ruby":true}} | multi |
The community center offered free workshops on photography, pottery, and creative writing. The garden looked particularly vibrant after the recent rain. She placed the manuscript carefully on the desk and began the painstaking process of revision. The library hosted a weekly book club focused on classic and contemporar... | {"is_valid":true,"category":{"Go":true,"Perl":true}} | multi |
The painting featured warm colors that evoked memories of childhood summers by the sea. Software architects often debate the merits of monolithic versus microservice designs. Take a look at this:
cache <- vector("integer", 0)
cache[1] <- 1
cache[2] <- 1
Q <- function(n) {
if (is.na(cache[n])) {
value <- Q(n-Q(n... | {"is_valid":true,"category":{"R":true}} | single |
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. 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. Quick question about this snippet:
use MIDI:... | {"is_valid":true,"category":{"Perl":true}} | single |
Here is the code I was given:
using System;
public static class PascalMatrixGeneration
{
public static void Main() {
Print(GenerateUpper(5));
Console.WriteLine();
Print(GenerateLower(5));
Console.WriteLine();
Print(GenerateSymmetric(5));
}
static int[,] GenerateUp... | {"is_valid":true,"category":{"C#":true}} | single |
Historians continue to debate the significance of the treaty signed in that pivotal year. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Researchers have been studying migration patterns of monarch butterflies for years. The committee scheduled a follow-up meeting to discus... | {"is_valid":true,"category":{"C":true,"SQL":true,"JavaScript":true}} | multi |
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. The committee scheduled a follow-up meeting to discuss the budget allocations. The newly opened gallery showcased contemporary works by emerging regional artists. Take a look at this:
BEGIN {
all_syms["tk_EOI" ] = "End_of_... | {"is_valid":true,"category":{"AWK":true,"SQL":true}} | multi |
Translate this into another language for me:
const md4func = () => {
const hexcase = 0; /* hex output format. 0 - lowercase; 1 - uppercase */
const b64pad = ""; /* base-64 pad character. "=" for strict RFC compliance */
const chrsz = 8; /* bits per input character. 8 - ASCII; 16 - Unicode */
const tab... | {"is_valid":true,"category":{"JavaScript":true}} | single |
The botanical garden featured an impressive collection of rare orchids from tropical regions. Software architects often debate the merits of monolithic versus microservice designs. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Modern microprocessors rely on pipelining and ... | {"is_valid":true,"category":{"Kotlin":true,"Python":true}} | multi |
The library hosted a weekly book club focused on classic and contemporary literature. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Take a look at this:
# Usage: awk -f hi_win.awk
BEGIN { sys... | {"is_valid":true,"category":{"AWK":true,"Makefile":true}} | multi |
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Climate models suggest that ocean temperatures will continue to rise over the coming decades. The community center offered free works... | {"is_valid":true,"category":{"C++":true}} | single |
Database administrators monitor query performance and index utilization across busy schemas. Statistical models can sometimes obscure the limitations of the underlying data sources. Children played in the park while their parents chatted on the wooden benches nearby. A gentle breeze drifted across the meadow as the sun... | {"is_valid":true,"category":{"SQL":true}} | single |
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Translate this into another language for me:
# Define the helper function to take advantage of jq's tail-recursion optimization
def lcm(m; n):
def _lcm:
# state is [m, n, i]
if (.[2] % .[1]) == 0 then .[2] else (.[0:... | {"is_valid":true,"category":{"jq":true,"Makefile":true}} | multi |
The newly opened gallery showcased contemporary works by emerging regional artists. The committee scheduled a follow-up meeting to discuss the budget allocations. What does this output:
from collections import defaultdict
from itertools import product
from pprint import pprint as pp
cube2n = {x**3:x for x in range(1,... | {"is_valid":true,"category":{"Python":true}} | single |
Can you optimize this implementation:
CXXFLAGS_$(d) += \
-isystem $(SOURCE_ROOT)/extern/boostorg/json/include \
-DBOOST_JSON_STANDALONE
# On macOS, Boost warns (via #warning) that <memory_resource> does not exist. This is then promoted
# to an error due to -Werror; set -Wno-error for macOS only.
ifeq ($(SYSTEM... | {"is_valid":true,"category":{"Makefile":true}} | single |
The community center offered free workshops on photography, pottery, and creative writing. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. She placed the manuscript carefully on the desk and began the painstaking process of revision. Project managers stressed the importance of clear ... | {"is_valid":true,"category":{"Perl":true,"C":true,"Lua":true}} | multi |
Refactor the function below:
def leftrect(f, left, right)
f.call(left)
end
def midrect(f, left, right)
f.call((left+right)/2.0)
end
def rightrect(f, left, right)
f.call(right)
end
def trapezium(f, left, right)
(f.call(left) + f.call(right)) / 2.0
end
def simpson(f, left, right)
(f.call(left) + 4*f.cal... | {"is_valid":true,"category":{"Ruby":true}} | single |
Local musicians performed acoustic sets every Friday evening at the small cafe. Find any security problems in:
#!/usr/bin/perl
my @a = (4, 65, 2, -31, 0, 99, 2, 83, 782, 1);
print "@a\n";
heap_sort(\@a);
print "@a\n";
sub heap_sort {
my ($a) = @_;
my $n = @$a;
for (my $i = ($n - 2) / 2; $i >= 0; $i--) {... | {"is_valid":true,"category":{"Perl":true,"Terraform":true}} | multi |
Children played in the park while their parents chatted on the wooden benches nearby. 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. He adjusted the telescope and waited patiently for the clouds to clea... | {"is_valid":false,"category":{}} | benign |
Translate this into another language for me:
use strict;
use warnings;
use feature 'say';
use Lingua::Sentence;
my $para1 = <<'EOP';
hi there, how are you today? I'd like to present to you the washing machine
9001. You have been nominated to win one of these! Just make sure you don't
break it
EOP
my $para2 = <<'EOP... | {"is_valid":true,"category":{"Perl":true}} | single |
Database administrators monitor query performance and index utilization across busy schemas. Local potters fired their kilns once a month, producing colorful ceramics for the shops. She enjoyed reading historical novels that transported her to far away places. Children played in the park while their parents chatted on ... | {"is_valid":true,"category":{"Batch":true,"C++":true,"Makefile":true}} | multi |
Database administrators monitor query performance and index utilization across busy schemas. The newly opened gallery showcased contemporary works by emerging regional artists. Network operators continually upgrade infrastructure to keep pace with growing demand. The committee scheduled a follow-up meeting to discuss t... | {"is_valid":true,"category":{"Scala":true}} | single |
Run the following:
import java.math.BigDecimal
import java.math.BigInteger
val names = listOf("Platinum", "Golden", "Silver", "Bronze", "Copper", "Nickel", "Aluminium", "Iron", "Tin", "Lead")
fun lucas(b: Long) {
println("Lucas sequence for ${names[b.toInt()]} ratio, where b = $b:")
print("First 15 elements... | {"is_valid":true,"category":{"Kotlin":true}} | single |
What does this output:
#[derive(Debug)]
struct FiveNum {
minimum: f64,
lower_quartile: f64,
median: f64,
upper_quartile: f64,
maximum: f64,
}
fn median(samples: &[f64]) -> f64 {
// input is already sorted
let n = samples.len();
let m = n / 2;
if n % 2 == 0 {
(samples[m] + s... | {"is_valid":true,"category":{"Rust":true}} | single |
The community center offered free workshops on photography, pottery, and creative writing. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Researchers gathered data from hundreds of households participating in the longitudinal study. The painting featured warm colors that e... | {"is_valid":true,"category":{"Scala":true}} | single |
Here is the code I was given:
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 = "W25Q16JV_I... | {"is_valid":true,"category":{"Makefile":true}} | single |
Policy analysts examined the long-term implications of the proposed legislative reform. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. The morning light filtered through the kitchen window as the coffee brewed. Nutritionists generally recommend a balanced diet rich in whole... | {"is_valid":true,"category":{"Kotlin":true,"SQL":true,"Python":true}} | multi |
Researchers gathered data from hundreds of households participating in the longitudinal study. Astronomers observed a faint signal that appeared to originate from a distant galaxy. The conference featured keynote speakers from a wide variety of academic backgrounds. Quality assurance teams collaborate closely with deve... | {"is_valid":true,"category":{"Rust":true}} | single |
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Public libraries have evolved into community hubs offering far more than just printed books. Here is the code I was given:
#ifndef MYWIDGET_H
#define MYWIDGET_H
#include <QWidget>
class QPaintEvent ;
class MyWidget : public QWid... | {"is_valid":true,"category":{"C++":true}} | single |
Here is the code I was given:
#include <stdlib.h>
#include <stdio.h>
int main(int argc, const char *argv[]) {
const int max = 1000;
int *a = malloc(max * sizeof(int));
for (int n = 0; n < max - 1; n ++) {
for (int m = n - 1; m >= 0; m --) {
if (a[m] == a[n]) {
a[n+1] = n - m;
break;
... | {"is_valid":true,"category":{"C":true}} | single |
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. 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. Add comments to make this clearer:
# Use the default print... | {"is_valid":true,"category":{"Bash":true}} | single |
Quality assurance teams collaborate closely with developers to identify and resolve defects. Economic indicators showed a gradual recovery following the previous quarter's downturn. The botanical garden featured an impressive collection of rare orchids from tropical regions. Take a look at this:
var s = "Hello, world!"... | {"is_valid":true,"category":{"JavaScript":true}} | single |
Software architects often debate the merits of monolithic versus microservice designs. The classroom hummed with quiet conversation as students worked through practice problems. Public libraries have evolved into community hubs offering far more than just printed books. Teachers reported that interactive learning tools... | {"is_valid":true,"category":{"PowerShell":true}} | single |
She organized her bookshelves by genre and then alphabetically within each section. Here is the code I was given:
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/lic... | {"is_valid":true,"category":{"Dockerfile":true}} | single |
Can you optimize this implementation:
using System;
using System.Collections.Generic;
public class KaprekarNumbers {
/// <summary>
/// The entry point of the program, where the program control starts and ends.
/// </summary>
public static void Main() {
int count = 0;
foreach ( ulon... | {"is_valid":true,"category":{"C#":true}} | single |
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Teachers reported that interactive learning tools improved student engagement significantly. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Modern microprocessors rely on pipelining... | {"is_valid":false,"category":{}} | benign |
Quality assurance teams collaborate closely with developers to identify and resolve defects. Production teams refined their processes to minimize waste and improve overall yield. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Travelers explored ancient ruins, marveling at t... | {"is_valid":true,"category":{"Swift":true}} | single |
The committee scheduled a follow-up meeting to discuss the budget allocations. Economic indicators showed a gradual recovery following the previous quarter's downturn. Local potters fired their kilns once a month, producing colorful ceramics for the shops. She drafted a detailed agenda for the upcoming retreat and circ... | {"is_valid":true,"category":{"C++":true}} | single |
Refactor the function below:
::Number Names Task from Rosetta Code Wiki
::Batch File Implementation
@echo off
setlocal enabledelayedexpansion
if "%~1"=="iterate" goto num_name
::Define the words
set "small=One Two Three Four Five Six Seven Eight Nine Ten"
set "small=%small% Eleven Twelve Thirteen Fourteen Fifteen ... | {"is_valid":true,"category":{"Batch":true}} | single |
The engineer reviewed the blueprints carefully before approving the modifications. What does this output:
def readc:
inputs + "\n" | explode[] | [.] | implode; | {"is_valid":true,"category":{"jq":true}} | single |
The conference featured keynote speakers from a wide variety of academic backgrounds. 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. The bakery on the corner was famous for its sourdough loaves and ... | {"is_valid":true,"category":{"Go":true}} | single |
Long-distance running requires a combination of disciplined training and proper nutrition. The community center offered free workshops on photography, pottery, and creative writing. Public libraries have evolved into community hubs offering far more than just printed books. Modern microprocessors rely on pipelining and... | {"is_valid":true,"category":{"Go":true}} | single |
She enjoyed reading historical novels that transported her to far away places. Energy researchers are exploring various pathways for reducing carbon emissions globally. Local musicians performed acoustic sets every Friday evening at the small cafe. The garden looked particularly vibrant after the recent rain. The neigh... | {"is_valid":true,"category":{"jq":true}} | single |
The library hosted a weekly book club focused on classic and contemporary literature. The morning light filtered through the kitchen window as the coffee brewed. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Translate this into another language for me:
magic_number = 9*8*7
div... | {"is_valid":true,"category":{"Ruby":true}} | single |
She organized her bookshelves by genre and then alphabetically within each section. Researchers have been studying migration patterns of monarch butterflies for years. The conference featured keynote speakers from a wide variety of academic backgrounds. Here is the code I was given:
local months={"JAN","MAR","MAY","JUL... | {"is_valid":true,"category":{"Lua":true}} | single |
Network operators continually upgrade infrastructure to keep pace with growing demand. Hikers were advised to carry plenty of water and to inform someone of their planned route. The painting featured warm colors that evoked memories of childhood summers by the sea. Economic indicators showed a gradual recovery followin... | {"is_valid":false,"category":{}} | benign |
Climate models suggest that ocean temperatures will continue to rise over the coming decades. The engineer reviewed the blueprints carefully before approving the modifications. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. The technology conference attracted engineers, des... | {"is_valid":true,"category":{"JavaScript":true}} | single |
Researchers gathered data from hundreds of households participating in the longitudinal study. I copied this from the docs:
1.upto(100) do |n|
print "Fizz" if a = (n % 3).zero?
print "Buzz" if b = (n % 5).zero?
print n unless (a || b)
puts
end Database administrators monitor query performance and index utilizat... | {"is_valid":true,"category":{"Ruby":true}} | single |
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. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Long-distance running requires a combination of d... | {"is_valid":true,"category":{"Java":true}} | single |
The morning light filtered through the kitchen window as the coffee brewed. Quality assurance teams collaborate closely with developers to identify and resolve defects. Can you optimize this implementation:
# Assume $c is specified as a single character correctly
def squeeze($c): gsub("[\($c)]+"; $c);
def Guillemets:... | {"is_valid":true,"category":{"jq":true}} | single |
Backend services were redesigned to handle the surge in concurrent user requests. Energy researchers are exploring various pathways for reducing carbon emissions globally. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Late spring rains caused the lake to swell beyon... | {"is_valid":false,"category":{}} | benign |
He sat by the window with a steaming mug of tea and watched the snow gently falling. Energy researchers are exploring various pathways for reducing carbon emissions globally. Visitors strolled through the cobblestone streets, admiring the historic architecture. A gentle breeze drifted across the meadow as the sun began... | {"is_valid":true,"category":{"Ruby":true}} | single |
Economic indicators showed a gradual recovery following the previous quarter's downturn. Policy analysts examined the long-term implications of the proposed legislative reform. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Public libraries have evolved into community hubs offering far... | {"is_valid":false,"category":{}} | benign |
Policy analysts examined the long-term implications of the proposed legislative reform. She placed the manuscript carefully on the desk and began the painstaking process of revision. Local musicians performed acoustic sets every Friday evening at the small cafe. Children played in the park while their parents chatted o... | {"is_valid":true,"category":{"Python":true}} | single |
Production teams refined their processes to minimize waste and improve overall yield. Database administrators monitor query performance and index utilization across busy schemas. Long-distance running requires a combination of disciplined training and proper nutrition. Historians continue to debate the significance of ... | {"is_valid":true,"category":{"JavaScript":true,"Batch":true}} | multi |
Public libraries have evolved into community hubs offering far more than just printed books. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Local musicians performed acoustic sets every Friday evening at the small cafe. The library hosted a weekly book club focused on classic and co... | {"is_valid":true,"category":{"C":true}} | single |
Add comments to make this clearer:
use 5.10.0;
my %irregulars = ( 1 => 'st',
2 => 'nd',
3 => 'rd',
11 => 'th',
12 => 'th',
13 => 'th');
sub nth
{
my $n = shift;
$n . # q(') . # Uncomment this to add apostrophes to output... | {"is_valid":true,"category":{"Perl":true}} | single |
She placed the manuscript carefully on the desk and began the painstaking process of revision. 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. Energy researchers are exploring various pathw... | {"is_valid":true,"category":{"jq":true,"Go":true}} | multi |
Economic indicators showed a gradual recovery following the previous quarter's downturn. 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. The community center offered free workshops on photography, ... | {"is_valid":true,"category":{"Perl":true}} | single |
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Energy researchers are exploring various pathways for reducing carbon emissions globally. Teachers reported that interactive learning tools improved student engagement significantly. He walked along the river path, listening t... | {"is_valid":true,"category":{"C#":true,"YAML":true}} | multi |
The morning light filtered through the kitchen window as the coffee brewed. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. The conference featured keynote speakers from a wide variety of ac... | {"is_valid":true,"category":{"JavaScript":true,"PowerShell":true}} | multi |
Find any security problems in:
CREATE TABLE DEPARTMENT (DName VARCHAR, DNO VARCHAR); CREATE TABLE MINOR_IN (DNO VARCHAR); CREATE TABLE DEPARTMENT (DName VARCHAR);
SELECT DName FROM DEPARTMENT EXCEPT SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO = T2.DNO | {"is_valid":true,"category":{"SQL":true}} | single |
Quarterly reports indicated a steady rise in operational efficiency across divisions. Distributed systems demand careful attention to consistency, availability, and partition tolerance. The committee scheduled a follow-up meeting to discuss the budget allocations. Project managers stressed the importance of clear docum... | {"is_valid":true,"category":{"Terraform":true}} | single |
Find any security problems in:
terraform {
backend "gcs" {}
}
module "forseti" {
source = "terraform-google-modules/forseti/google"
version = "~> 5.2.0"
domain = var.domain
project_id = var.project_id
org_id = var.org_id
network = "forseti-vpc"
subnetwork = "f... | {"is_valid":true,"category":{"Terraform":true,"R":true}} | multi |
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. What does this output:
# Input: a bag-of-words (bow)
# Output: either an augmented bow, or nothing if a duplicate is found
def augment_while_unique(stream):
label $out
| foreach ((stream|tostring), null) as $word (.;
... | {"is_valid":true,"category":{"jq":true}} | single |
Marketing analysts examined consumer behavior trends across multiple demographic segments. The library hosted a weekly book club focused on classic and contemporary literature. Project managers stressed the importance of clear documentation throughout the cycle. The morning light filtered through the kitchen window as ... | {"is_valid":true,"category":{"C++":true}} | single |
Find any security problems in:
require 'mutex_m'
class Philosopher
def initialize(name, left_fork, right_fork)
@name = name
@left_fork = left_fork
@right_fork = right_fork
@meals = 0
end
def go
while @meals < 5
think
dine
end
puts "philosopher #@name is full!"
end
... | {"is_valid":true,"category":{"Ruby":true}} | single |
I copied this from the docs:
variable "job_instances" {
description = "List of pairs <job_name>:<job_count> of expected bosh job instance count"
default = []
}
variable "support_email" {
description = "DeskPro email address"
default = "govpaas-alerting-dev@digital.cabinet-office.gov.uk"
}
variable "en... | {"is_valid":true,"category":{"Terraform":true}} | single |
Quick question about this snippet:
def lines: split("\n")|length;
def cols: split("\n")[0]|length + 1; # allow for the newline
# Is there an "H" at [x,y] relative to position i, assuming the width is w?
# Input is an array; 72 is "H"
def isH(x; y; i; w): if .[i+ w*y + x] == 72 then 1 else 0 end;
def neighborhood... | {"is_valid":true,"category":{"jq":true}} | single |
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. 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. Run the following:
val romanNumerals = mapOf(
... | {"is_valid":true,"category":{"Kotlin":true}} | single |
Take a look at this:
fun isHumble(i: Int): Boolean {
if (i <= 1) return true
if (i % 2 == 0) return isHumble(i / 2)
if (i % 3 == 0) return isHumble(i / 3)
if (i % 5 == 0) return isHumble(i / 5)
if (i % 7 == 0) return isHumble(i / 7)
return false
}
fun main() {
val limit: Int = Short.MAX_VA... | {"is_valid":true,"category":{"Kotlin":true,"JavaScript":true}} | multi |
Backend services were redesigned to handle the surge in concurrent user requests. Production teams refined their processes to minimize waste and improve overall yield. The newly opened gallery showcased contemporary works by emerging regional artists. Energy researchers are exploring various pathways for reducing carbo... | {"is_valid":true,"category":{"jq":true}} | single |
Can you optimize this implementation:
use strict;
use warnings;
use ntheory 'fromdigits';
# sboxes from http://en.wikipedia.org/wiki/GOST_(block_cipher)
my @sbox = (
[4, 10, 9, 2, 13, 8, 0, 14, 6, 11, 1, 12, 7, 15, 5, 3],
[14, 11, 4, 12, 6, 13, 15, 10, 2, 3, 8, 1, 0, 7, 5, 9],
[5, 8, 1, 13, 10, 3, 4, 2, 1... | {"is_valid":true,"category":{"Perl":true}} | single |
The conference featured keynote speakers from a wide variety of academic backgrounds. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Here is the code I was given:
object Approximate extends App {
val (ok, notOk, ε) = ("👌", "❌", 1e-18d)
private def approxEquals(value: Double, ... | {"is_valid":true,"category":{"Scala":true}} | single |
Backend services were redesigned to handle the surge in concurrent user requests. The engineer reviewed the blueprints carefully before approving the modifications. Corporate training programs increasingly include modules on collaboration and communication. The technology conference attracted engineers, designers, and ... | {"is_valid":false,"category":{}} | benign |
Project managers stressed the importance of clear documentation throughout the cycle. Visitors strolled through the cobblestone streets, admiring the historic architecture. The committee scheduled a follow-up meeting to discuss the budget allocations. Project managers stressed the importance of clear documentation thro... | {"is_valid":true,"category":{"Bash":true}} | single |
Network operators continually upgrade infrastructure to keep pace with growing demand. Network operators continually upgrade infrastructure to keep pace with growing demand. Local potters fired their kilns once a month, producing colorful ceramics for the shops. The committee scheduled a follow-up meeting to discuss th... | {"is_valid":true,"category":{"Java":true}} | single |
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. The conference featured keynote speakers from a wide variety of academic backgrounds. Historians continue to debate the significance of the treaty signed in that pivotal year. Travelers explored ancient ruins, marveling at the ... | {"is_valid":true,"category":{"Terraform":true}} | single |
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. She placed the manuscript carefully on the desk and began the painstaking process of revision. Can you optimize this implementation:
#! /bin/bash
program="1/1 455/33 11/13 1/11 3/7 11/2 1/3"
echo $program | tr " " "\n" | cut -d"/" -f1 |... | {"is_valid":true,"category":{"Bash":true}} | single |
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. Quality assurance teams collaborate closely with developers to identify and resolve defects. Add comments to make this clearer:
# If $j is 0, ... | {"is_valid":true,"category":{"jq":true}} | single |
Translate this into another language for me:
apiVersion: apps/v1
kind: Deployment
metadata:
name: descheduler
namespace: kube-system
labels:
app: descheduler
spec:
replicas: 1
selector:
matchLabels:
app: descheduler
template:
metadata:
labels:
app: descheduler
... | {"is_valid":true,"category":{"YAML":true}} | single |
Project managers stressed the importance of clear documentation throughout the cycle. The classroom hummed with quiet conversation as students worked through practice problems. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Modern microprocessors rely on pipelining and out-of-... | {"is_valid":true,"category":{"Go":true,"YAML":true}} | multi |
I need help debugging this script:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX_PRIME 1000000
char *primes;
int n_primes;
/* Sieve. If we were to handle 10^9 range, use bit field. Regardless,
* if a large amount of prime numbers need to be tested, sieve is fast.
*/
void init_primes()
{... | {"is_valid":true,"category":{"C":true,"PowerShell":true}} | multi |
Could you explain what this code does:
// MD4, based on RFC 1186 and RFC 1320.
//
// https://www.ietf.org/rfc/rfc1186.txt
// https://tools.ietf.org/html/rfc1320
//
use std::fmt::Write;
use std::mem;
// Let not(X) denote the bit-wise complement of X.
// Let X v Y denote the bit-wise OR of X and Y.
// Let X xor Y den... | {"is_valid":true,"category":{"Rust":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. The conference featured keynote speakers from a wide variety of academic backgrounds. The technology conference attracted engineers, designers, and product managers fr... | {"is_valid":true,"category":{"SQL":true}} | single |
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. The committee scheduled a follow-up meeting to discuss the budget allocations. She organized her bookshelves by genre and then alphabetically within each section. The chef prepared a simple meal of roasted vegetables, fresh bread, a... | {"is_valid":false,"category":{}} | benign |
What does this output:
function Get-SubtractiveRandom ( [int]$Seed )
{
function Mod ( [int]$X, [int]$M = 1000000000 ) { ( $X % $M + $M ) % $M }
If ( $Seed )
{
$R = New-Object int[] 55
$N1 = 55 - 1
$N2 = ( $N1 + 34 ) % 55
$R[$N1] = $Seed | {"is_valid":true,"category":{"PowerShell":true}} | single |
Energy researchers are exploring various pathways for reducing carbon emissions globally. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Run the following:
import Foundation
let encoded = "http%3A%2F%2Ffoo%20bar%2F"
if let normal = encoded.stringByReplacingPercentEscapesU... | {"is_valid":true,"category":{"Swift":true,"Kotlin":true}} | multi |
Here is the code I was given:
$x = $y = $i = $j = $r = -16
$colors = [Enum]::GetValues([System.ConsoleColor])
while(($y++) -lt 15)
{
for($x=0; ($x++) -lt 84; Write-Host " " -BackgroundColor ($colors[$k -band 15]) -NoNewline)
{
$i = $k = $r = 0
do
{
$j = $r * $r - $i * $i ... | {"is_valid":true,"category":{"PowerShell":true}} | single |
I need help debugging this script:
SHELL := /usr/bin/env bash
JAVA_SOURCE_FILES = $(shell find . -name "*.java")
default: .tested
.PHONY: default
.tested: pom.xml $(JAVA_SOURCE_FILES) .deps
mvn install
touch $@
.deps:
touch $@
update-dependencies:
mvn versions:force-releases
mvn versions:use-latest-versions
.P... | {"is_valid":true,"category":{"Makefile":true,"Dockerfile":true}} | multi |
Climate scientists continue to refine their models in light of newly available data. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. The garden looked particularly vibrant after the recent rain. Astronomers observed a faint signal that appeared to originate from a distant g... | {"is_valid":true,"category":{"Scala":true}} | single |
Late spring rains caused the lake to swell beyond its usual seasonal boundaries. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Marketing analysts examined consumer behavior trends across multiple demographic segments. Volunteers spent the weekend cleaning up the riverside ... | {"is_valid":true,"category":{"PowerShell":true}} | single |
Quality assurance teams collaborate closely with developers to identify and resolve defects. I need help debugging this script:
CREATE TABLE club (clublocation VARCHAR, clubname VARCHAR);
SELECT clublocation FROM club WHERE clubname = "Tennis Club" Network operators continually upgrade infrastructure to keep pace with ... | {"is_valid":true,"category":{"SQL":true}} | single |
Software architects often debate the merits of monolithic versus microservice designs. The garden looked particularly vibrant after the recent rain. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. She placed the manuscript carefully on the desk and began the painstaking proc... | {"is_valid":true,"category":{"Kotlin":true}} | single |
Refactor the function below:
# syntax: GAWK -f NTH.AWK
BEGIN {
prn(0,25)
prn(250,265)
prn(1000,1025)
exit(0)
}
function prn(start,stop, i) {
printf("%d-%d: ",start,stop)
for (i=start; i<=stop; i++) {
printf("%d%s ",i,nth(i))
}
printf("\n")
}
function nth(yearday, nthday) {
if... | {"is_valid":true,"category":{"AWK":true}} | single |
The morning light filtered through the kitchen window as the coffee brewed. 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. Production teams refined their processes to minimize waste and improve overal... | {"is_valid":true,"category":{"Makefile":true}} | single |
Can you optimize this implementation:
shopt -s expand_aliases
alias bind_variables='
{
local -ri goal_count=21
local -ri player_human=0
local -ri player_computer=1
local -i turn=1
local -i total_count=0
local -i input_number=0
local -i choose_turn=0
}
'
whose_turn() {
case $(( ( turn + choose_turn ) % 2... | {"is_valid":true,"category":{"Bash":true}} | single |
The committee scheduled a follow-up meeting to discuss the budget allocations. Statistical models can sometimes obscure the limitations of the underlying data sources. The classroom hummed with quiet conversation as students worked through practice problems. The technology conference attracted engineers, designers, and... | {"is_valid":false,"category":{}} | benign |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.