prompt large_stringlengths 150 7.97k | target large_stringlengths 32 83 | kind large_stringclasses 3
values |
|---|---|---|
Economic indicators showed a gradual recovery following the previous quarter's downturn. Database administrators monitor query performance and index utilization across busy schemas. Quarterly reports indicated a steady rise in operational efficiency across divisions. Teachers reported that interactive learning tools im... | {"is_valid":false,"category":{}} | benign |
Local potters fired their kilns once a month, producing colorful ceramics for the shops. Production teams refined their processes to minimize waste and improve overall yield. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Late spring rains caused the lake to swell beyond i... | {"is_valid":false,"category":{}} | benign |
The engineer reviewed the blueprints carefully before approving the modifications. Energy researchers are exploring various pathways for reducing carbon emissions globally. The community center offered free workshops on photography, pottery, and creative writing. Farmers depend on accurate weather forecasts to plan the... | {"is_valid":true,"category":{"Rust":true}} | single |
Can you optimize this implementation:
(() => {
'use strict';
// main :: IO ()
const main = () => {
const
month = fst,
day = snd;
showLog(
map(x => Array.from(x), (
// The month with only one remaining day,
// (A's mont... | {"is_valid":true,"category":{"JavaScript":true,"R":true}} | multi |
Can you optimize this implementation:
local function randN(n)
return function()
if math.random() < 1/n then return 1 else return 0 end
end
end
local function unbiased(n)
local biased = randN (n)
return function()
local a, b = biased(), biased()
while a==b do
a, b = biased(), biased()
e | {"is_valid":true,"category":{"Lua":true}} | single |
Local musicians performed acoustic sets every Friday evening at the small cafe. He walked along the river path, listening to the rustling of leaves overhead. I copied this from the docs:
#! /usr/bin/perl
use strict;
my %pairs = ( "hello" => 13,
"world" => 31,
"!" => 71 );
# iterate over pairs
# Be c... | {"is_valid":true,"category":{"Perl":true}} | single |
Find any security problems in:
import java.math.BigInteger;
public class SuperDNumbers {
public static void main(String[] args) {
for ( int i = 2 ; i <= 9 ; i++ ) {
superD(i, 10);
}
}
private static final void superD(int d, int max) {
long start = System.currentTime... | {"is_valid":true,"category":{"Java":true}} | single |
Climate scientists continue to refine their models in light of newly available data. Historians continue to debate the significance of the treaty signed in that pivotal year. The library hosted a weekly book club focused on classic and contemporary literature. Modern microprocessors rely on pipelining and out-of-order ... | {"is_valid":true,"category":{"Kotlin":true}} | single |
I need help debugging this script:
nth() {
local ordinals=(th st nd rd)
local -i n=$1 i
if (( n < 0 )); then
printf '%s%s\n' - "$(nth $(( -n )) )"
return 0
fi
case $(( n % 100 )) in
11|12|13) i=0;;
*) (( i= n%10 < 4 ? n%10 : 0 ));;
esac
printf '%d%s\n' "$n" "${ordinals[i]}"
}
for n i | {"is_valid":true,"category":{"Bash":true}} | single |
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. The conference featured keynote speakers from a wide variety of academic backgrounds. Distributed systems demand careful attention to... | {"is_valid":true,"category":{"Makefile":true}} | single |
Teachers reported that interactive learning tools improved student engagement significantly. The technology conference attracted engineers, designers, and product managers from around the world. Marketing analysts examined consumer behavior trends across multiple demographic segments. I copied this from the docs:
outpu... | {"is_valid":true,"category":{"Terraform":true}} | single |
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. The conference featured keynote speakers from a wide variety of academic backgrounds. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Public libraries have evolved into community hu... | {"is_valid":false,"category":{}} | benign |
She placed the manuscript carefully on the desk and began the painstaking process of revision. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. She placed the manuscript carefully on the desk and began the painstaking process of revision. Late spring rains caused the lake to swell be... | {"is_valid":true,"category":{"Makefile":true}} | single |
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. She organized her bookshelves by genre and then alphabetically within each section. The painting featured warm colors that evoked memories of childhood summers by the sea. The newly opened gallery showcased contemporary works ... | {"is_valid":true,"category":{"Batch":true}} | single |
She organized her bookshelves by genre and then alphabetically within each section. Production teams refined their processes to minimize waste and improve overall yield. The technology conference attracted engineers, designers, and product managers from around the world. The committee scheduled a follow-up meeting to d... | {"is_valid":true,"category":{"C#":true}} | single |
The engineer reviewed the blueprints carefully before approving the modifications. Quick question about this snippet:
use OpenGL;
sub triangle {
glBegin GL_TRIANGLES;
glColor3f 1.0, 0.0, 0.0;
glVertex2f 5.0, 5.0;
glColor3f 0.0, 1.0, 0.0;
glVertex2f 25.0, 5.0;
glColor3f 0.0, 0.0, 1.0;
glVer... | {"is_valid":true,"category":{"Perl":true}} | single |
Quality assurance teams collaborate closely with developers to identify and resolve defects. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Here is the code I was given:
@echo off
setlocal EnableDelayedExpansion
set /p a="A: "
set /p b="B: "
if %a% LSS %b% (
echo %a% is l... | {"is_valid":true,"category":{"Batch":true}} | single |
She enjoyed reading historical novels that transported her to far away places. What does this output:
$list = @{
"def" = "one"
"abc" = "two"
"jkl" = "three"
"abcdef" = "four"
"ghi" = "five"
"ghijkl" = "six"
}
$list.GetEnumerator() | sort {-($PSItem.Name).length}, Name She placed the manuscript carefully on the desk a... | {"is_valid":true,"category":{"PowerShell":true}} | single |
Quality assurance teams collaborate closely with developers to identify and resolve defects. Database administrators monitor query performance and index utilization across busy schemas. Engineering teams often adopt iterative methodologies to manage complex software projects. The classroom hummed with quiet conversatio... | {"is_valid":true,"category":{"SQL":true}} | single |
He walked along the river path, listening to the rustling of leaves overhead. Network operators continually upgrade infrastructure to keep pace with growing demand. The botanical garden featured an impressive collection of rare orchids from tropical regions. Researchers have been studying migration patterns of monarch ... | {"is_valid":true,"category":{"Kotlin":true}} | single |
Could you explain what this code does:
use strict;
use warnings;
use JSON;
use URI::Escape;
use LWP::UserAgent;
my $client = LWP::UserAgent->new;
$client->agent("Rosettacode Perl task solver");
my $url = 'http://rosettacode.org/mw';
my $minimum = 100;
sub uri_query_string {
my(%fields) = @_;
'action=query& | {"is_valid":true,"category":{"Perl":true}} | single |
Historians continue to debate the significance of the treaty signed in that pivotal year. Network operators continually upgrade infrastructure to keep pace with growing demand. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. She drafted a detailed agenda for the upcoming ret... | {"is_valid":true,"category":{"R":true}} | single |
Climate scientists continue to refine their models in light of newly available data. Production teams refined their processes to minimize waste and improve overall yield. Database administrators monitor query performance and index utilization across busy schemas. Astronomers observed a faint signal that appeared to ori... | {"is_valid":false,"category":{}} | benign |
He walked along the river path, listening to the rustling of leaves overhead. Engineering teams often adopt iterative methodologies to manage complex software projects. Teachers reported that interactive learning tools improved student engagement significantly. The library hosted a weekly book club focused on classic a... | {"is_valid":true,"category":{"SQL":true}} | single |
Here is the code I was given:
EXTRA_DIST += src/modules/sysinfo/module.desktop.in \
src/modules/sysinfo/e-module-sysinfo.edj
if USE_MODULE_SYSINFO
sysinfodir = $(MDIR)/sysinfo
sysinfo_DATA = src/modules/sysinfo/e-module-sysinfo.edj \
src/modules/sysinfo/module.desktop
sysinfopkgdir = $(MDIR)/sysinfo/$(MODULE_ARC... | {"is_valid":true,"category":{"Makefile":true}} | single |
Distributed systems demand careful attention to consistency, availability, and partition tolerance. The committee scheduled a follow-up meeting to discuss the budget allocations. Long-distance running requires a combination of disciplined training and proper nutrition. The classroom hummed with quiet conversation as st... | {"is_valid":true,"category":{"YAML":true}} | single |
Network operators continually upgrade infrastructure to keep pace with growing demand. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. The library hosted a weekly book club focused on classi... | {"is_valid":true,"category":{"AWK":true,"Perl":true}} | multi |
The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Could you explain what this code does:
use ... | {"is_valid":true,"category":{"Rust":true}} | single |
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. He gathered his notes, packed his bag, and prepared for the long journey home. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. He walked along the river path, listening to the rustli... | {"is_valid":true,"category":{"Batch":true,"Kotlin":true}} | multi |
Local musicians performed acoustic sets every Friday evening at the small cafe. 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 painting featured warm colors that evoked memories of childhood ... | {"is_valid":true,"category":{"Scala":true}} | single |
What does this output:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <libxml/parser.h>
#include <libxml/tree.h>
static void print_names(xmlNode *node)
{
xmlNode *cur_node = NULL;
for (cur_node = node; cur_node; cur_node = cur_node->next) {
if (cur_node->type == XML_ELEMENT_NODE) {
... | {"is_valid":true,"category":{"C":true}} | single |
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. The morning light filtered through the kitchen window as the coffee brewed. Energy researchers are exploring various pathways for reducing c... | {"is_valid":true,"category":{"JavaScript":true,"Dockerfile":true}} | multi |
Here is the code I was given:
import java.util.StringTokenizer
object WordWrap extends App {
final val defaultLineWidth = 80
final val spaceWidth = 1
def letsWrap(text: String, lineWidth: Int = defaultLineWidth) = {
println(s"\n\nWrapped at: $lineWidth")
println("." * lineWidth)
minNumLinesWrap(ew... | {"is_valid":true,"category":{"Scala":true}} | single |
Local potters fired their kilns once a month, producing colorful ceramics for the shops. Local musicians performed acoustic sets every Friday evening at the small cafe. Software architects often debate the merits of monolithic versus microservice designs. The morning light filtered through the kitchen window as the cof... | {"is_valid":true,"category":{"Lua":true}} | single |
Local potters fired their kilns once a month, producing colorful ceramics for the shops. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. I need help debugging this script:
package T;
sub new {
my $cls = shift;
bless [ @_ ], $cls
}
sub set_data {
my ... | {"is_valid":true,"category":{"Perl":true}} | single |
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Network operators continually upgrade infrastructure to keep pace with growing demand. Here is the code I was given:
Function FlipPancake( [Object[]] $indata, $index = 1 )
{
$data=$indata.Clone()
$datal = $data.length - 1
if( $index... | {"is_valid":true,"category":{"PowerShell":true}} | single |
The painting featured warm colors that evoked memories of childhood summers by the sea. 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. Children played in the park while their parents ... | {"is_valid":true,"category":{"R":true}} | single |
Researchers have been studying migration patterns of monarch butterflies for years. Corporate training programs increasingly include modules on collaboration and communication. Engineering teams often adopt iterative methodologies to manage complex software projects. Travelers explored ancient ruins, marveling at the c... | {"is_valid":true,"category":{"Batch":true}} | single |
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. Quality assurance teams collaborate closely with developers to identify and resolve defects. The community center offered free workshop... | {"is_valid":true,"category":{"Lua":true,"PowerShell":true}} | multi |
She organized her bookshelves by genre and then alphabetically within each section. Local musicians performed acoustic sets every Friday evening at the small cafe. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Local potters fired their kilns once a month, producing colorfu... | {"is_valid":true,"category":{"Makefile":true}} | single |
Researchers have been studying migration patterns of monarch butterflies for years. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Climate scientists continue to refine their models in light of newly available data. The painting featured warm colors that evoked memories of childhood su... | {"is_valid":true,"category":{"Perl":true}} | single |
Find any security problems in:
use GameState::{ComputerWin, Draw, PlayerWin, Playing};
use rand::prelude::*;
#[derive(PartialEq, Debug)]
enum GameState {
PlayerWin,
ComputerWin,
Draw,
Playing,
}
type Board = [[char; 3]; 3];
fn main() {
let mut rng = StdRng::from_entropy();
let mut boar... | {"is_valid":true,"category":{"Rust":true}} | single |
Energy researchers are exploring various pathways for reducing carbon emissions globally. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Farmers depend on accurate weather f... | {"is_valid":true,"category":{"Ruby":true}} | single |
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. The newly opened gallery showcased contemporary works by emerging regional artists. She enjoyed reading historical novels that transported her to far away places. The morning light filtered through the kitchen window as the coffee... | {"is_valid":true,"category":{"Scala":true,"Perl":true}} | multi |
Here is the code I was given:
@echo off
:: {CTRL + C} to exit the batch file
:: Send incrementing decimal values to the :to_Oct function
set loop=0
:loop1
call:to_Oct %loop%
set /a loop+=1
goto loop1
:: Convert the decimal values parsed [%1] to octal and output them on a new line
:to_Oct
set todivide=%1
set "fulloct=... | {"is_valid":true,"category":{"Batch":true}} | single |
The botanical garden featured an impressive collection of rare orchids from tropical regions. The morning light filtered through the kitchen window as the coffee brewed. Economic indicators showed a gradual recovery following the previous quarter's downturn. Late spring rains caused the lake to swell beyond its usual s... | {"is_valid":true,"category":{"YAML":true}} | single |
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. The garden looked particularly vibrant after the recent rain. Researchers gathered data from hundreds of households participating in the lo... | {"is_valid":false,"category":{}} | benign |
I need help debugging this script:
# syntax=docker/dockerfile:1
ARG GO_VERSION=1.23
ARG XX_VERSION=1.6.1
FROM --platform=$BUILDPLATFORM tonistiigi/xx:${XX_VERSION} AS xx
FROM --platform=$BUILDPLATFORM golang:${GO_VERSION}-alpine AS base
RUN apk add --no-cache git
COPY --from=xx / /
WORKDIR /src
FROM base AS build
A... | {"is_valid":true,"category":{"Dockerfile":true}} | single |
The engineer reviewed the blueprints carefully before approving the modifications. The botanical garden featured an impressive collection of rare orchids from tropical regions. Could you explain what this code does:
set string=Hello
echo %string% World
set string2=%string% World
echo %string2% Production teams refined ... | {"is_valid":true,"category":{"Batch":true}} | single |
Corporate training programs increasingly include modules on collaboration and communication. Engineering teams often adopt iterative methodologies to manage complex software projects. The conference featured keynote speakers from a wide variety of academic backgrounds. Researchers gathered data from hundreds of househo... | {"is_valid":true,"category":{"Dockerfile":true}} | single |
Astronomers observed a faint signal that appeared to originate from a distant galaxy. Engineering teams often adopt iterative methodologies to manage complex software projects. Database administrators monitor query performance and index utilization across busy schemas. Modern microprocessors rely on pipelining and out-... | {"is_valid":true,"category":{"C#":true}} | single |
Could you explain what this code does:
use std::cmp::{max, min};
static TENS: [u64; 20] = [
1,
10,
100,
1000,
10000,
100000,
1000000,
10000000,
100000000,
1000000000,
10000000000,
100000000000,
1000000000000,
10000000000000,
100000000000000,
100000000000... | {"is_valid":true,"category":{"Rust":true}} | single |
He gathered his notes, packed his bag, and prepared for the long journey home. Hikers were advised to carry plenty of water and to inform someone of their planned route. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Quarterly reports indicated a steady rise in operational ... | {"is_valid":true,"category":{"C#":true}} | single |
I copied this from the docs:
@echo off
setlocal enabledelayedexpansion
set choice1=rock
set choice2=paper
set choice3=scissors
set freq1=0
set freq2=0
set freq3=0
set games=0
set won=0
set lost=0
set tie=0
:start
cls
echo Games - %games% : Won - %won% : Lost - %lost% : Ties - %tie%
choice /c RPS /n /m "[ | {"is_valid":true,"category":{"Batch":true}} | single |
Long-distance running requires a combination of disciplined training and proper nutrition. I need help debugging this script:
#include<stdio.h>
int main()
{
int i,j;
char days[12][10] =
{
"First",
"Second",
"Third",
"Fourth",
"Fifth",
"Sixth",
"Se... | {"is_valid":true,"category":{"C":true}} | single |
The garden looked particularly vibrant after the recent rain. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Local musicians performed acoustic sets every Friday evening at the small cafe. She enjoyed reading historical novels that transported her to far away places. Teachers ... | {"is_valid":true,"category":{"Lua":true}} | single |
Energy researchers are exploring various pathways for reducing carbon emissions globally. Marketing analysts examined consumer behavior trends across multiple demographic segments. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Modern microprocessors rely on pipelining and... | {"is_valid":true,"category":{"jq":true}} | single |
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Climate scientists continue to refine their models in light of newly available data. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Teachers reported that interactive learning tools... | {"is_valid":true,"category":{"Scala":true,"Batch":true,"Terraform":true}} | multi |
He sat by the window with a steaming mug of tea and watched the snow gently falling. Database administrators monitor query performance and index utilization across busy schemas. Economic indicators showed a gradual recovery following the previous quarter's downturn. Statistical models can sometimes obscure the limitati... | {"is_valid":true,"category":{"R":true}} | single |
The engineer reviewed the blueprints carefully before approving the modifications. The garden looked particularly vibrant after the recent rain. The technology conference attracted engineers, designers, and product managers from around the world. Statistical models can sometimes obscure the limitations of the underlyin... | {"is_valid":true,"category":{"jq":true}} | single |
Here is the code I was given:
function sorting( a, b )
return a[1] < b[1]
end
tab = { {"C++", 1979}, {"Ada", 1983}, {"Ruby", 1995}, {"Eiffel", 1985} }
table.sort( tab, sorting )
for _, v in ipairs( tab ) do
print( unpack(v) )
end | {"is_valid":true,"category":{"Lua":true}} | single |
Refactor the function below:
resource "aws_security_group" "sshproxy" {
name = "${var.env}-sshproxy-cf"
description = "Security group for web that allows TCP/2222 for ssh-proxy from the office"
vpc_id = "${var.vpc_id}"
egress {
from_port = 0
to_port = 0
protocol = "-1"
cidr_ | {"is_valid":true,"category":{"Terraform":true}} | single |
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. He walked along the river path, listening to the rustling of leaves overhead. She enjoyed reading historical novels that transported her to far away places. Economic indicators showed a gradual recovery following the previous quarte... | {"is_valid":true,"category":{"JavaScript":true,"Perl":true,"Python":true}} | multi |
Economic indicators showed a gradual recovery following the previous quarter's downturn. Can you optimize this implementation:
/**
* Copyright 2019 Google LLC
*
* 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 co... | {"is_valid":true,"category":{"Terraform":true,"R":true,"Ruby":true}} | multi |
I need help debugging this script:
def svg:
"<svg width='100%' height='100%' version='1.1'
xmlns='http://www.w3.org/2000/svg'
xmlns:xlink='http://www.w3.org/1999/xlink'>" ;
# A radial gradient to make a circle look like a sphere.
# "colors" should be [startColor, intermediateColor, endColor]
# or null for ... | {"is_valid":true,"category":{"jq":true,"C#":true}} | multi |
The engineer reviewed the blueprints carefully before approving the modifications. The garden looked particularly vibrant after the recent rain. The conference featured keynote speakers from a wide variety of academic backgrounds. | {"is_valid":false,"category":{}} | benign |
Public libraries have evolved into community hubs offering far more than just printed books. The neighborhood gathered every Saturday morning at the small farmers' market downtown. He walked along the river path, listening to the rustling of leaves overhead. He gathered his notes, packed his bag, and prepared for the l... | {"is_valid":true,"category":{"SQL":true}} | single |
Can you optimize this implementation:
fn fix_price(num: f64) -> f64 {
match num {
0.96...1.00 => 1.00,
0.91...0.96 => 0.98,
0.86...0.91 => 0.94,
0.81...0.86 => 0.90,
0.76...0.81 => 0.86,
0.71...0.76 => 0.82,
0.66...0.71 => 0.78,
0.61...0.66 => 0.74,
... | {"is_valid":true,"category":{"Rust":true}} | single |
Corporate training programs increasingly include modules on collaboration and communication. Statistical models can sometimes obscure the limitations of the underlying data sources. The committee scheduled a follow-up meeting to discuss the budget allocations. The chef prepared a simple meal of roasted vegetables, fres... | {"is_valid":true,"category":{"Swift":true}} | single |
Quarterly reports indicated a steady rise in operational efficiency across divisions. Take a look at this:
import Foundation
extension SequenceType {
func takeWhile(include: Generator.Element -> Bool) -> AnyGenerator<Generator.Element> {
var g = self.generate()
return anyGenerator { g.next().flatMap{include... | {"is_valid":true,"category":{"Swift":true}} | single |
The conference featured keynote speakers from a wide variety of academic backgrounds. The neighborhood gathered every Saturday morning at the small farmers' market downtown. The morning light filtered through the kitchen window as the coffee brewed. Local potters fired their kilns once a month, producing colorful ceram... | {"is_valid":true,"category":{"Makefile":true}} | single |
She organized her bookshelves by genre and then alphabetically within each section. The conference featured keynote speakers from a wide variety of academic backgrounds. Hikers were advised to carry plenty of water and to inform someone of their planned route. The morning light filtered through the kitchen window as th... | {"is_valid":true,"category":{"Python":true}} | single |
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Quarterly reports indicated a steady rise in operational efficiency across divisions. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. The conference featured keynote speakers from a wide vari... | {"is_valid":true,"category":{"PowerShell":true}} | single |
She placed the manuscript carefully on the desk and began the painstaking process of revision. 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. Climate models suggest that ocean temp... | {"is_valid":true,"category":{"C++":true}} | single |
Marketing analysts examined consumer behavior trends across multiple demographic segments. The painting featured warm colors that evoked memories of childhood summers by the sea. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Database administrators monitor query performan... | {"is_valid":true,"category":{"Makefile":true,"jq":true,"Terraform":true}} | multi |
Add comments to make this clearer:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: strimzi-cluster-operator-kafka-broker-delegation
labels:
app: strimzi
# The Kafka broker cluster role must be bound to the cluster operator service account so that it can delegate the cluster rol... | {"is_valid":true,"category":{"YAML":true,"Swift":true}} | multi |
He gathered his notes, packed his bag, and prepared for the long journey home. The neighborhood gathered every Saturday morning at the small farmers' market downtown. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Network operators continually upgrade infrastructure to keep pace wit... | {"is_valid":true,"category":{"Java":true}} | single |
She placed the manuscript carefully on the desk and began the painstaking process of revision. Policy analysts examined the long-term implications of the proposed legislative reform. The garden looked particularly vibrant after the recent rain. Visitors strolled through the cobblestone streets, admiring the historic ar... | {"is_valid":true,"category":{"C#":true}} | single |
Statistical models can sometimes obscure the limitations of the underlying data sources. Economic indicators showed a gradual recovery following the previous quarter's downturn. The engineer reviewed the blueprints carefully before approving the modifications. Network operators continually upgrade infrastructure to kee... | {"is_valid":true,"category":{"PowerShell":true,"C++":true}} | multi |
What does this output:
use std::collections::BTreeMap;
use std::collections::binary_heap::BinaryHeap;
#[derive(Debug, Eq, PartialEq)]
enum NodeKind {
Internal(Box<Node>, Box<Node>),
Leaf(char),
}
#[derive(Debug, Eq, PartialEq)]
struct Node {
frequency: usize,
kind: NodeKind,
}
imp | {"is_valid":true,"category":{"Rust":true}} | single |
Historians continue to debate the significance of the treaty signed in that pivotal year. Quality assurance teams collaborate closely with developers to identify and resolve defects. Engineering teams often adopt iterative methodologies to manage complex software projects. Economic indicators showed a gradual recovery ... | {"is_valid":true,"category":{"Perl":true,"Rust":true,"Scala":true}} | multi |
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Policy analysts examined the long-term implications of the proposed legislative reform. Engineering teams often adopt iterative methodologies to manage complex software projects. The engineer reviewed the blueprints carefully ... | {"is_valid":false,"category":{}} | benign |
The painting featured warm colors that evoked memories of childhood summers by the sea. Could you explain what this code does:
using System;
using System.Collections.Generic;
using System.Linq;
class Program
{
static IEnumerable<int> EquilibriumIndices(IEnumerable<int> sequence)
{
var left = 0;
... | {"is_valid":true,"category":{"C#":true,"R":true}} | multi |
Distributed systems demand careful attention to consistency, availability, and partition tolerance. Public libraries have evolved into community hubs offering far more than just printed books. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Local musicians performed acoustic sets e... | {"is_valid":true,"category":{"Kotlin":true}} | single |
He gathered his notes, packed his bag, and prepared for the long journey home. Researchers gathered data from hundreds of households participating in the longitudinal study. Children played in the park while their parents chatted on the wooden benches nearby. He adjusted the telescope and waited patiently for the cloud... | {"is_valid":true,"category":{"JavaScript":true,"R":true,"Rust":true}} | multi |
She organized her bookshelves by genre and then alphabetically within each section. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Visitors strolled through the cobblestone streets, admiring the historic architecture. Backend services were redesigned to handle the surge in ... | {"is_valid":true,"category":{"Bash":true}} | single |
Marketing analysts examined consumer behavior trends across multiple demographic segments. Quarterly reports indicated a steady rise in operational efficiency across divisions. She enjoyed reading historical novels that transported her to far away places. Climate scientists continue to refine their models in light of n... | {"is_valid":true,"category":{"Batch":true,"Rust":true}} | multi |
Children played in the park while their parents chatted on the wooden benches nearby. Distributed systems demand careful attention to consistency, availability, and partition tolerance. I need help debugging this script:
function isHarshad(n) {
var s = 0;
var n_str = new String(n);
for (var i = 0; i < n_str... | {"is_valid":true,"category":{"JavaScript":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. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Run the following:
tr \
'NOWHERE AZ clerk IRAQ faber ... | {"is_valid":true,"category":{"Bash":true}} | single |
Network operators continually upgrade infrastructure to keep pace with growing demand. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Farmers depend on accurate weather forecasts to pla... | {"is_valid":true,"category":{"C":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 |
Quarterly reports indicated a steady rise in operational efficiency across divisions. The committee scheduled a follow-up meeting to discuss the budget allocations. The neighborhood gathered every Saturday morning at the small farmers' market downtown. He sat by the window with a steaming mug of tea and watched the sno... | {"is_valid":true,"category":{"Scala":true,"Bash":true,"JavaScript":true}} | multi |
Engineering teams often adopt iterative methodologies to manage complex software projects. Public libraries have evolved into community hubs offering far more than just printed books. Marketing analysts examined consumer behavior trends across multiple demographic segments. Modern microprocessors rely on pipelining and... | {"is_valid":false,"category":{}} | benign |
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. The classroom hummed with quiet conversation as students worked through practice problems. Researchers gathered data from hundreds of households participating in the longitudinal study. Please review the following snippet for i... | {"is_valid":true,"category":{"AWK":true}} | single |
Quick question about this snippet:
extension BinaryInteger {
@inlinable
public func factors(sorted: Bool = true) -> [Self] {
let maxN = Self(Double(self).squareRoot())
var res = Set<Self>()
for factor in stride(from: 1, through: maxN, by: 1) where self % factor == 0 {
res.insert(factor)
re... | {"is_valid":true,"category":{"Swift":true}} | single |
Statistical models can sometimes obscure the limitations of the underlying data sources. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Visitors strolled through the cobblestone streets, admiring the historic architecture. The garden looked particularly vibrant after the r... | {"is_valid":true,"category":{"C":true,"Kotlin":true,"Makefile":true}} | multi |
She organized her bookshelves by genre and then alphabetically within each section. The technology conference attracted engineers, designers, and product managers from around the world. Database administrators monitor query performance and index utilization across busy schemas. He sat by the window with a steaming mug ... | {"is_valid":true,"category":{"R":true,"Terraform":true}} | multi |
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. Project managers stressed the importance of clear documentation throughout the cycle. Travelers explored ancient ruins, marveling at the cr... | {"is_valid":true,"category":{"Perl":true}} | single |
Local potters fired their kilns once a month, producing colorful ceramics for the shops. The conference featured keynote speakers from a wide variety of academic backgrounds. The committee scheduled a follow-up meeting to discuss the budget allocations. Engineering teams often adopt iterative methodologies to manage co... | {"is_valid":true,"category":{"Lua":true}} | single |
Children played in the park while their parents chatted on the wooden benches nearby. I copied this from the docs:
CREATE TABLE head (head_id VARCHAR, name VARCHAR);
SELECT head_id, name FROM head WHERE name LIKE '%Ha%' Climate scientists continue to refine their models in light of newly available data. The newly opene... | {"is_valid":true,"category":{"SQL":true}} | single |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.