prompt large_stringlengths 150 7.97k | target large_stringlengths 32 83 | kind large_stringclasses 3
values |
|---|---|---|
The conference featured keynote speakers from a wide variety of academic backgrounds. Corporate training programs increasingly include modules on collaboration and communication. Translate this into another language for me:
//compile with g++ main.cpp -lboost_system -pthread
#include <boost/asio.hpp>
int main()
{
... | {"is_valid":true,"category":{"C++":true}} | single |
Run the following:
void runCode(string code)
{
int c_len = code.length();
unsigned accumulator=0;
int bottles;
for(int i=0;i<c_len;i++)
{
switch(code[i])
{
case 'Q':
cout << code << endl;
break;
case 'H':
cout ... | {"is_valid":true,"category":{"C++":true}} | single |
Network operators continually upgrade infrastructure to keep pace with growing demand. Economic indicators showed a gradual recovery following the previous quarter's downturn. The morning light filtered through the kitchen window as the coffee brewed. Network operators continually upgrade infrastructure to keep pace wi... | {"is_valid":true,"category":{"Kotlin":true,"Batch":true}} | multi |
Quality assurance teams collaborate closely with developers to identify and resolve defects. The newly opened gallery showcased contemporary works by emerging regional artists. Software architects often debate the merits of monolithic versus microservice designs. The morning light filtered through the kitchen window as... | {"is_valid":true,"category":{"Ruby":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. Network operators continually upgrade infrastructure to keep pace with growing demand. A gentle breeze drifted across the meadow as the sun ... | {"is_valid":true,"category":{"Scala":true}} | single |
Children played in the park while their parents chatted on the wooden benches nearby. Could you explain what this code does:
@echo off
setlocal enabledelayedexpansion
set numberarray=1 2 3 4 5 6 7 8 9 10
for %%i in (%numberarray%) do (
set /a tempcount+=1
set numberarray!tempcount!=%%i
)
echo Filtering all even... | {"is_valid":true,"category":{"Batch":true}} | single |
Take a look at this:
use 5.012;
use warnings;
use utf8;
use open qw(:encoding(utf-8) :std);
use Getopt::Long;
package Game {
use List::Util qw(shuffle first);
my $turns = 0;
my %human_choice = ( rock => 0, paper => 0, scissors => 0, );
my %comp_choice = ( rock => 0, paper => 0, scissors => 0... | {"is_valid":true,"category":{"Perl":true}} | single |
Long-distance running requires a combination of disciplined training and proper nutrition. I copied this from the docs:
use std::fmt::{Display, Formatter, Result};
use std::process::exit;
struct Coefficient(usize, f64);
impl Display for Coefficient {
fn fmt(&self, f: &mut Formatter<'_>) -> Result {
let ... | {"is_valid":true,"category":{"Rust":true}} | single |
Visitors strolled through the cobblestone streets, admiring the historic architecture. Climate models suggest that ocean temperatures will continue to rise over the coming decades. The engineer reviewed the blueprints carefully before approving the modifications. Children played in the park while their parents chatted ... | {"is_valid":true,"category":{"Lua":true}} | single |
Statistical models can sometimes obscure the limitations of the underlying data sources. Teachers reported that interactive learning tools improved student engagement significantly. He sat by the window with a steaming mug of tea and watched the snow gently falling. The painting featured warm colors that evoked memorie... | {"is_valid":true,"category":{"Kotlin":true,"AWK":true}} | multi |
Engineering teams often adopt iterative methodologies to manage complex software projects. Refactor the function below:
val gifts = Array(
"A partridge in a pear tree.",
"Two turtle doves and",
"Three French hens,",
"Four calling birds,",
"Five gold rings,",
"Six geese a-laying,",
"Seven swa... | {"is_valid":true,"category":{"Scala":true,"Rust":true}} | multi |
Marketing analysts examined consumer behavior trends across multiple demographic segments. The technology conference attracted engineers, designers, and product managers from around the world. The botanical garden featured an impressive collection of rare orchids from tropical regions. The technology conference attract... | {"is_valid":true,"category":{"Python":true,"Ruby":true}} | multi |
Local potters fired their kilns once a month, producing colorful ceramics for the shops. Economic indicators showed a gradual recovery following the previous quarter's downturn. Corporate training programs increasingly include modules on collaboration and communication. Energy researchers are exploring various pathways... | {"is_valid":true,"category":{"JavaScript":true}} | single |
The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Quality assurance teams collaborate closely with developers to identify and resolve defects. Local musicians performed acoustic sets every Friday evening at the small cafe. Add comments to make this clearer:
use ntheory qw/forc... | {"is_valid":true,"category":{"Perl":true,"Go":true}} | multi |
Marketing analysts examined consumer behavior trends across multiple demographic segments. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Take a look at this:
DIST ?= jessie
REPOSITORIES ?= Debian Bluefalls
DIST_ARCH ?= armhf
ARCH ?= 0
UNAME ?= pi
UPASS ?= pi
RPASS ?= pi
L... | {"is_valid":true,"category":{"Makefile":true}} | single |
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Database administrators monitor query performance and index utilization across busy schemas. Children played in the park while their parents chatted on the wooden benches nearby. Distributed systems demand careful attention to consi... | {"is_valid":true,"category":{"AWK":true}} | single |
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Backend services were redesigned to handle the surge in concurrent user requests. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Researchers gathered data from hundreds of households partic... | {"is_valid":true,"category":{"Kotlin":true}} | single |
Run the following:
package main
import "math"
import "fmt"
// user-defined function, per task. Other math functions used are built-in.
func cube(x float64) float64 { return math.Pow(x, 3) }
// ffType and compose function taken from Function composition task
type ffType func(float64) float64 | {"is_valid":true,"category":{"Go":true}} | single |
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Historians continue to debate the significance of the treaty signed in that pivotal year. Policy analysts examined the long-term implications of the proposed legislative reform. Climate models suggest that ocean temperatures w... | {"is_valid":false,"category":{}} | benign |
Could you explain what this code does:
fn rpn(text: &str) -> f64 {
let tokens = text.split_whitespace();
let mut stack: Vec<f64> = vec![];
println!("input operation stack");
for token in tokens {
print!("{:^5} ", token);
match token.parse() {
Ok(num) => {
st... | {"is_valid":true,"category":{"Rust":true,"R":true}} | multi |
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Take a look at this:
var i = 1
while ({
print(i)
i < 10
}) {
print(", ")
i += 1
}
println() | {"is_valid":true,"category":{"Scala":true}} | single |
I need help debugging this script:
:: This line is only required to increase the readability of the output by hiding the lines of code being executed
@echo off
:: Everything between the lines keeps repeating until the answer is found
:: The code works by, starting at 1, checking to see if the last 6 digits of the curr... | {"is_valid":true,"category":{"Batch":true}} | single |
I copied this from the docs:
// Version 1.2.40
import java.awt.Color
import java.awt.Graphics
import java.awt.image.BufferedImage
import java.io.PushbackInputStream
import java.io.File
import javax.imageio.ImageIO
class BasicBitmapStorage(width: Int, height: Int) {
val image = BufferedImage(width, height, Buffe... | {"is_valid":true,"category":{"Kotlin":true}} | single |
Add comments to make this clearer:
# permissions for end users to view elements.
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: element-viewer-role
rules:
- apiGroups:
- client.matrix.bardiharborow.com
resources:
- elements
verbs:
- get
- list
- watch
- apiGroups:
- client.... | {"is_valid":true,"category":{"YAML":true}} | single |
Astronomers observed a faint signal that appeared to originate from a distant galaxy. Astronomers observed a faint signal that appeared to originate from a distant galaxy. He walked along the river path, listening to the rustling of leaves overhead. Marketing analysts examined consumer behavior trends across multiple d... | {"is_valid":true,"category":{"C#":true}} | single |
What does this output:
object Vector extends App {
case class Vector2D(x: Double, y: Double) {
def +(v: Vector2D) = Vector2D(x + v.x, y + v.y)
def -(v: Vector2D) = Vector2D(x - v.x, y - v.y)
def *(s: Double) = Vector2D(s * x, s * y)
def /(s: Double) = Vector2D(x / s, y / s)
override def ... | {"is_valid":true,"category":{"Scala":true}} | single |
Local potters fired their kilns once a month, producing colorful ceramics for the shops. Climate scientists continue to refine their models in light of newly available data. Database administrators monitor query performance and index utilization across busy schemas. He walked along the river path, listening to the rust... | {"is_valid":true,"category":{"C++":true}} | single |
Here is the code I was given:
#
# 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, Versi | {"is_valid":true,"category":{"Dockerfile":true}} | single |
Database administrators monitor query performance and index utilization across busy schemas. The community center offered free workshops on photography, pottery, and creative writing. What does this output:
class SumMultiples {
public static long getSum(long n) {
long sum = 0;
for (int i = 3; i < n; i++) {
if (... | {"is_valid":true,"category":{"Java":true}} | single |
Hikers were advised to carry plenty of water and to inform someone of their planned route. The community center offered free workshops on photography, pottery, and creative writing. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Climate scientists continue to refine their m... | {"is_valid":true,"category":{"R":true}} | single |
What does this output:
import java.io.{File, FileOutputStream, InputStream}
import org.apache.commons.net.ftp.{FTPClient, FTPFile, FTPReply}
import scala.util.{Failure, Try}
object FTPconn extends App {
val (server, pass) = ("ftp.ed.ac.uk", "-ftptest@example.com")
val (dir, filename, ftpClient) = ("/pub/carto... | {"is_valid":true,"category":{"Scala":true,"Terraform":true}} | multi |
Quick question about this snippet:
package utm.scala
import scala.annotation.tailrec
import scala.language.implicitConversions
/**
* Implementation of Universal Turing Machine in Scala that can simulate an arbitrary
* Turing machine on arbitrary input
*
* @author Abdulla Abdurakhmanov (https://github.c | {"is_valid":true,"category":{"Scala":true}} | single |
Find any security problems in:
function preorder(tree, node, res, child) {
if (node == "")
return
res[res["count"]++] = node
split(tree[node], child, ",")
preorder(tree,child[1],res)
preorder(tree,child[2],res)
}
function inorder(tree, node, res, child) {
if (node == "")
... | {"is_valid":true,"category":{"AWK":true,"jq":true,"Makefile":true}} | multi |
She placed the manuscript carefully on the desk and began the painstaking process of revision. I copied this from the docs:
urldecode() { local u="${1//+/ }"; printf '%b' "${u//%/\\x}"; } | {"is_valid":true,"category":{"Bash":true}} | single |
Teachers reported that interactive learning tools improved student engagement significantly. The neighborhood gathered every Saturday morning at the small farmers' market downtown. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Statistical models can sometimes obscure the l... | {"is_valid":true,"category":{"Lua":true,"Perl":true}} | multi |
Could you explain what this code does:
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <complex.h>
double PI;
typedef double complex cplx;
void _fft(cplx buf[], cplx out[], int n, int step)
{
if (step < n) {
_fft(out, buf, n, step * 2);
_fft(out + step, buf + step, n, step * 2);
for (int ... | {"is_valid":true,"category":{"C":true}} | single |
I need help debugging this script:
using System;
class Point
{
protected int x, y;
public Point() : this(0) {}
public Point(int x) : this(x,0) {}
public Point(int x, int y) { this.x = x; this.y = y; }
public int X { get { return x; } set { x = value; } }
public int Y { get { return y; } set { y = value; } }... | {"is_valid":true,"category":{"C":true}} | single |
Visitors strolled through the cobblestone streets, admiring the historic architecture. Network operators continually upgrade infrastructure to keep pace with growing demand. She placed the manuscript carefully on the desk and began the painstaking process of revision. Distributed systems demand careful attention to con... | {"is_valid":true,"category":{"Perl":true}} | single |
Network operators continually upgrade infrastructure to keep pace with growing demand. Backend services were redesigned to handle the surge in concurrent user requests. Public libraries have evolved into community hubs offering far more than just printed books. The newly opened gallery showcased contemporary works by e... | {"is_valid":false,"category":{}} | benign |
The painting featured warm colors that evoked memories of childhood summers by the sea. Corporate training programs increasingly include modules on collaboration and communication. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. She enjoyed reading historical novels that tr... | {"is_valid":false,"category":{}} | benign |
Add comments to make this clearer:
-- Graph definition
local edges = {
a = {b = 7, c = 9, f = 14},
b = {c = 10, d = 15},
c = {d = 11, f = 2},
d = {e = 6},
e = {f = 9}
}
-- Fill in paths in the opposite direction to the stated edges
function complete (graph)
for node, edges in pairs(graph) do
... | {"is_valid":true,"category":{"Lua":true,"C++":true}} | multi |
Researchers have been studying migration patterns of monarch butterflies for years. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. The garden looked particularly vibrant after the recent rain. Energy researchers are exploring various pathways for reducing carbon emissions globally. The... | {"is_valid":true,"category":{"Ruby":true,"AWK":true}} | multi |
Run the following:
fun turn(base: Int, n: Int): Int {
var sum = 0
var n2 = n
while (n2 != 0) {
val re = n2 % base
n2 /= base
sum += re
}
return sum % base
}
fun fairShare(base: Int, count: Int) {
print(String.format("Base %2d:", base))
for (i in 0 until count) {
... | {"is_valid":true,"category":{"Kotlin":true}} | single |
Refactor the function below:
// version 1.0.6
object SubstitutionCipher {
val key = "]kYV}(!7P\$n5_0i R:?jOWtF/=-pe'AD&@r6%ZXs\"v*N[#wSl9zq2^+g;LoB`aGh{3.HIu4fbK)mU8|dMET><,Qc\\C1yxJ"
fun encode(s: String): String {
val sb = StringBuilder()
for (c in s) sb.append(key[c.toInt() - 32])
... | {"is_valid":true,"category":{"Kotlin":true}} | single |
Please review the following snippet for issues:
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
// low <= num < high
int randInt(int low, int high) {
return (rand() % (high - low)) + low;
}
// shuffle an array of n elements
void shuffle(int *const array, const i... | {"is_valid":true,"category":{"C":true}} | single |
Backend services were redesigned to handle the surge in concurrent user requests. Hikers were advised to carry plenty of water and to inform someone of their planned route. Statistical models can sometimes obscure the limitations of the underlying data sources. The morning light filtered through the kitchen window as t... | {"is_valid":true,"category":{"SQL":true,"C#":true}} | multi |
Researchers have been studying migration patterns of monarch butterflies for years. Astronomers observed a faint signal that appeared to originate from a distant galaxy. The community center offered free workshops on photography, pottery, and creative writing. The conference featured keynote speakers from a wide variet... | {"is_valid":true,"category":{"Dockerfile":true}} | single |
He sat by the window with a steaming mug of tea and watched the snow gently falling. Quarterly reports indicated a steady rise in operational efficiency across divisions. Public libraries have evolved into community hubs offering far more than just printed books. Production teams refined their processes to minimize was... | {"is_valid":true,"category":{"jq":true,"C":true}} | multi |
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. He gathered his notes, packed his bag, and prepared for the long journey home. Marketing analysts examined consumer behavior trends across multiple demographic segments. Corporate training programs increasingly include modules on collab... | {"is_valid":true,"category":{"Java":true,"PowerShell":true}} | multi |
Run the following:
/*
This file defines:
- Node pool for pool2
Note: If you wish to create additional node pools, please duplicate this file
and change the resource name, name_prefix, and any other cluster specific settings.
*/
resource "google_container_node_pool" "pool2" {
name_prefix = "pool2-"
location = g... | {"is_valid":true,"category":{"Terraform":true}} | single |
She organized her bookshelves by genre and then alphabetically within each section. The newly opened gallery showcased contemporary works by emerging regional artists. Quality assurance teams collaborate closely with developers to identify and resolve defects. He gathered his notes, packed his bag, and prepared for the... | {"is_valid":true,"category":{"JavaScript":true}} | single |
I need help debugging this script:
local tWord = {} -- word table
local tColLen = {} -- maximum word length in a column
local rowCount = 0 -- row counter
--store maximum column lengths at 'tColLen'; save words into 'tWord' table
local function readInput(pStr)
for line in pStr:gmatch("([^\n]+)[\n]-"... | {"is_valid":true,"category":{"Lua":true}} | single |
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. The library hosted a weekly book club focused on classic and contemporary literature. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Network operators continually upgrade infrastructure to ... | {"is_valid":true,"category":{"Swift":true}} | single |
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Historians continue to debate the significance of the treaty signed in that pivotal year. Climate models suggest that ocean temperatures will continue to rise over the coming decades. The painting featured warm colors that evok... | {"is_valid":true,"category":{"Lua":true}} | single |
The engineer reviewed the blueprints carefully before approving the modifications. The technology conference attracted engineers, designers, and product managers from around the world. Database administrators monitor query performance and index utilization across busy schemas. Network operators continually upgrade infr... | {"is_valid":true,"category":{"AWK":true,"Kotlin":true}} | multi |
Local potters fired their kilns once a month, producing colorful ceramics for the shops. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. He wandered through the old bookstore, occasionally pulli... | {"is_valid":true,"category":{"Python":true}} | single |
Here is the code I was given:
use std::error::Error;
use std::marker::PhantomData;
use std::path::{Path, PathBuf};
use std::{env, fmt, io, time};
use walkdir::{DirEntry, WalkDir};
fn main() -> Result<(), Box<dyn Error>> {
let start = time::Instant::now();
let args: Vec<String> = env::args().collect();
l... | {"is_valid":true,"category":{"Rust":true,"Python":true}} | multi |
Here is the code I was given:
local numPlayers = 2
local maxScore = 100
local scores = { }
for i = 1, numPlayers do
scores[i] = 0 -- total safe score for each player
end
math.randomseed(os.time())
print("Enter a letter: [h]old or [r]oll?")
local points = 0 -- points accumulated in current turn
local p = 1 -- start wi... | {"is_valid":true,"category":{"Lua":true}} | single |
The classroom hummed with quiet conversation as students worked through practice problems. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Network operators continually upgrade infrastructure to keep pace with growing demand. Quarterly reports indicated a steady rise in operational effi... | {"is_valid":true,"category":{"Kotlin":true,"C":true}} | multi |
Visitors strolled through the cobblestone streets, admiring the historic architecture. Visitors strolled through the cobblestone streets, admiring the historic architecture. Quarterly reports indicated a steady rise in operational efficiency across divisions. The technology conference attracted engineers, designers, an... | {"is_valid":false,"category":{}} | benign |
Marketing analysts examined consumer behavior trends across multiple demographic segments. 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 re... | {"is_valid":true,"category":{"Bash":true}} | single |
The garden looked particularly vibrant after the recent rain. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Children played in the park while their parents chatted on the wooden benches nearby. Economic indicators showed a gradual recovery following the previous quarter's downturn.... | {"is_valid":true,"category":{"YAML":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. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. She enjoyed reading historical novels that t... | {"is_valid":true,"category":{"jq":true,"Scala":true,"Perl":true}} | multi |
Policy analysts examined the long-term implications of the proposed legislative reform. Could you explain what this code does:
backend "consul" {
address = "{{consul_addr}}:{{consul_port}}"
}
#backend "aws" {
# access_key = "AKIAJWVN5Z4FOFT7NLNA"
# secret_key = "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"
# region ... | {"is_valid":true,"category":{"Terraform":true,"Python":true}} | multi |
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Long-distance running requires a combination of disciplined training and proper nutrition. Add comments to make this clearer:
/* declare array */
int frequency[26];
int ch;
FILE* txt_file = fopen ("a_text_file.txt", "rt");
/* init... | {"is_valid":true,"category":{"C":true,"Kotlin":true}} | multi |
Here is the code I was given:
// on Ubuntu: sudo apt-get install libpoco-dev
// or see http://pocoproject.org/
// compile with: g++ -Wall -O3 send-mail-cxx.C -lPocoNet -lPocoFoundation
#include <cstdlib>
#include <iostream>
#include <Poco/Net/SMTPClientSession.h>
#include <Poco/Net/MailMessage.h>
using namespace Po... | {"is_valid":true,"category":{"C++":true}} | single |
Astronomers observed a faint signal that appeared to originate from a distant galaxy. The morning light filtered through the kitchen window as the coffee brewed. Here is the code I was given:
dset1=c(199809,200665,199607,200270,199649)
dset2=c(522573,244456,139979,71531,21461)
chi2IsUniform<-function(dataset,signific... | {"is_valid":true,"category":{"R":true}} | single |
Researchers gathered data from hundreds of households participating in the longitudinal study. Researchers have been studying migration patterns of monarch butterflies for years. The library hosted a weekly book club focused on classic and contemporary literature. The morning light filtered through the kitchen window a... | {"is_valid":false,"category":{}} | benign |
Add comments to make this clearer:
// version 1.0.6
fun main(args: Array<String>) {
// conventional 'if/else if/else' statement
if (args.isEmpty()) println("No arguments were supplied")
else if (args.size == 1) println("One argument was supplied")
else println("${args.size} arguments were supplie | {"is_valid":true,"category":{"Kotlin":true}} | single |
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Researchers gathered data from hundreds of households participating in the longitudinal study. Researchers have been studying migration patterns of monarch butterflies for years. Could you explain what this code does:
function... | {"is_valid":true,"category":{"PowerShell":true}} | single |
Local potters fired their kilns once a month, producing colorful ceramics for the shops. Please review the following snippet for issues:
dyn.load("my/special/R/lib.so")
.Call("my_lib_fun", arg1, arg2) The library hosted a weekly book club focused on classic and contemporary literature. Researchers have been studying mi... | {"is_valid":true,"category":{"R":true}} | single |
I need help debugging this script:
# "ported" by Adam Miller <maxamillion@fedoraproject.org> from
# https://github.com/fedora-cloud/Fedora-Dockerfiles
#
# Originally written for Fedora-Dockerfiles by
# scollier <scollier@redhat.com>
FROM centos:centos7
MAINTAINER The CentOS Project <cloud-ops@centos.org>
RUN | {"is_valid":true,"category":{"Dockerfile":true}} | single |
Engineering teams often adopt iterative methodologies to manage complex software projects. Researchers gathered data from hundreds of households participating in the longitudinal study. Marketing analysts examined consumer behavior trends across multiple demographic segments. Visitors strolled through the cobblestone s... | {"is_valid":true,"category":{"Perl":true}} | single |
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. I copied this from the docs:
apiVersion: v1
kind: Service
metadata:
name: redis
spec:
selector:
app: redis
ports:
- protocol: TCP
port: 6379
targetPort: 6379 Travelers explored a... | {"is_valid":true,"category":{"YAML":true}} | single |
Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. I need help debugging this script:
# syntax: GAWK -f SELF-DESCRIBING_NUMBERS.AWK
BEGIN {
for (n=1; n<=100000000; n++) {
if (is_self_desc... | {"is_valid":true,"category":{"AWK":true}} | single |
Refactor the function below:
output "azs" {
value = {
us-east-1 = "us-east-1a,us-east-1b,us-east-1c,us-east-1d,us-east-1e,us-east-1f"
us-west-2 = "us-west-2a,us-west-2b,us-west-2c"
}
}
output "amzn_amis" {
value = {
us-east-1 = "ami-a4c7edb2"
}
}
output "amzn_ecs_amis" {
va... | {"is_valid":true,"category":{"Terraform":true}} | single |
Marketing analysts examined consumer behavior trends across multiple demographic segments. Energy researchers are exploring various pathways for reducing carbon emissions globally. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. The painting featured warm colors that evoked ... | {"is_valid":true,"category":{"Terraform":true}} | single |
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 process of revision. Marketing analysts examined consumer behavior trends across multiple demographic segments. Corporate training programs increasingly ... | {"is_valid":false,"category":{}} | benign |
Distributed systems demand careful attention to consistency, availability, and partition tolerance. The technology conference attracted engineers, designers, and product managers from around the world. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. The technology conferenc... | {"is_valid":true,"category":{"jq":true}} | single |
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. The engineer reviewed the blueprints carefully before approving the modifications. Engineering teams often adopt iterative methodologies to ma... | {"is_valid":true,"category":{"YAML":true}} | single |
The technology conference attracted engineers, designers, and product managers from around the world. The newly opened gallery showcased contemporary works by emerging regional artists. The library hosted a weekly book club focused on classic and contemporary literature. Climate scientists continue to refine their mode... | {"is_valid":true,"category":{"Makefile":true}} | single |
She organized her bookshelves by genre and then alphabetically within each section. Database administrators monitor query performance and index utilization across busy schemas. Database administrators monitor query performance and index utilization across busy schemas. She organized her bookshelves by genre and then al... | {"is_valid":true,"category":{"Lua":true}} | single |
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. 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. Policy analysts examined the long-term implications of the pr... | {"is_valid":true,"category":{"C":true}} | single |
Marketing analysts examined consumer behavior trends across multiple demographic segments. Hikers were advised to carry plenty of water and to inform someone of their planned route. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Children played in the park while their parents chatt... | {"is_valid":true,"category":{"jq":true,"Java":true}} | multi |
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. The garden looked particularly vibrant after the recent rain. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Network operators continually upgrade infrastructure to keep pace with g... | {"is_valid":true,"category":{"AWK":true}} | single |
Public libraries have evolved into community hubs offering far more than just printed books. Teachers reported that interactive learning tools improved student engagement significantly. Researchers have been studying migration patterns of monarch butterflies for years. The community center offered free workshops on pho... | {"is_valid":true,"category":{"Ruby":true}} | single |
The conference featured keynote speakers from a wide variety of academic backgrounds. Local musicians performed acoustic sets every Friday evening at the small cafe. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Modern microprocessors rely on pipelining and out-of-order executi... | {"is_valid":true,"category":{"jq":true,"Java":true}} | multi |
Long-distance running requires a combination of disciplined training and proper nutrition. Policy analysts examined the long-term implications of the proposed legislative reform. The committee scheduled a follow-up meeting to discuss the budget allocations. Local musicians performed acoustic sets every Friday evening a... | {"is_valid":true,"category":{"Python":true}} | single |
Historians continue to debate the significance of the treaty signed in that pivotal year. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Hikers were advised to carry plenty of water and to inform someone of their planned route. Economic indicators showed a gradual recovery... | {"is_valid":true,"category":{"Perl":true}} | single |
Translate this into another language for me:
#include <iostream>
#include <sstream>
#include <iomanip>
#include <algorithm>
#include <vector>
#include <time.h>
//--------------------------------------------------------------------------------------------------
using namespace std;
//--------------------------------... | {"is_valid":true,"category":{"C++":true}} | single |
Please review the following snippet for issues:
import Foundation
struct Perlin {
private static let permutation = [
151, 160, 137, 91, 90, 15, 131, 13, 201, 95, 96, 53, 194, 233, 7, 225,
140, 36, 103, 30, 69, 142, 8, 99, 37, 240, 21, 10, 23, 190, 6, 148,
247, 120, 234, 75, 0, 2... | {"is_valid":true,"category":{"Swift":true}} | single |
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 process of revision. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Corporate training programs increasingl... | {"is_valid":true,"category":{"Scala":true,"Bash":true}} | multi |
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. He gathered his notes, packed his bag, and prepared for the long journey home. I copied this from the docs:
let inf = Double.infinity
inf.isInfinite //true Energy researchers are exploring various pathways for reducing carbon e... | {"is_valid":true,"category":{"Swift":true}} | single |
Marketing analysts examined consumer behavior trends across multiple demographic segments. Policy analysts examined the long-term implications of the proposed legislative reform. Translate this into another language for me:
function IsPrime ( [int] $num )
{
$isprime = @{}
2..[math]::sqrt($num) | Where-Object {
... | {"is_valid":true,"category":{"PowerShell":true,"C++":true}} | multi |
Teachers reported that interactive learning tools improved student engagement significantly. Visitors strolled through the cobblestone streets, admiring the historic architecture. Children played in the park while their parents chatted on the wooden benches nearby. The morning light filtered through the kitchen window ... | {"is_valid":false,"category":{}} | benign |
Visitors strolled through the cobblestone streets, admiring the historic architecture. Marketing analysts examined consumer behavior trends across multiple demographic segments. Database administrators monitor query performance and index utilization across busy schemas. Teachers reported that interactive learning tools... | {"is_valid":true,"category":{"Scala":true}} | single |
I copied this from the docs:
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Narcissist {
private static final String SOURCE = "import java.io.BufferedReader;%nimport java.io.IOException;%nimport java.io.InputStreamReader;%n%npublic class Narcissist {%n ... | {"is_valid":true,"category":{"Java":true}} | single |
Run the following:
kind: DaemonSet
apiVersion: apps/v1
metadata:
name: csi-bosplugin-node-server
namespace: kube-system
spec:
selector:
matchLabels:
app: csi-bosplugin-node-server
template:
metadata:
labels:
app: csi-bosplugin-node-server
spec:
serviceAccount: csi-bos-exter... | {"is_valid":true,"category":{"YAML":true}} | single |
Take a look at this:
import Image
def FloodFill( fileName, initNode, targetColor, replaceColor ):
img = Image.open( fileName )
pix = img.load()
xsize, ysize = img.size
Q = []
if pix[ initNode[0], initNode[1] ] != targetColor:
return img
Q.append( initNode )
while Q != []:
node = Q.pop(0... | {"is_valid":true,"category":{"Python":true}} | single |
The technology conference attracted engineers, designers, and product managers from around the world. Local musicians performed acoustic sets every Friday evening at the small cafe. He sat by the window with a steaming mug of tea and watched the snow gently falling. Run the following:
#include <stdlib.h>
#include <stdi... | {"is_valid":true,"category":{"C":true}} | single |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.