prompt large_stringlengths 150 7.97k | target large_stringlengths 32 83 | kind large_stringclasses 3
values |
|---|---|---|
She enjoyed reading historical novels that transported her to far away places. Run the following:
@echo off
for %%A in (This is a sample collection) do (
echo %%A
) | {"is_valid":true,"category":{"Batch":true}} | single |
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Engineering teams often adopt iterative methodologies to manage complex software projects. Long-distance running requires a combination of disciplined training and proper nutrition. He sat by the window with a steaming mug of ... | {"is_valid":true,"category":{"Go":true}} | single |
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Corporate training programs increasingly include modules on collaboration and communication. Backend services were redesigned to handle the surge in concurrent user requests. The neighborhood gathered every Saturday morning at ... | {"is_valid":true,"category":{"Perl":true}} | single |
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Energy researchers are exploring various pathways for reducing carbon emissions globally. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Software architects often debate the merits of monoli... | {"is_valid":true,"category":{"Ruby":true}} | single |
Visitors strolled through the cobblestone streets, admiring the historic architecture. I copied this from the docs:
USB_VID = 0X1B4F
# TODO: Replace the Product ID below with the official value once known.
USB_PID = 0x0027 # Same PID as the SparkFun MicroMod STM32
USB_PRODUCT = "SparkFun Thing Plus - STM32"
USB_MANU... | {"is_valid":true,"category":{"Makefile":true}} | single |
Could you explain what this code does:
.TH PROCWAIT 1 "VERSION"
.SH NAME
procwait \- wait for process to terminate
.SH SYNOPSIS
\fBprocwait\fP [\fIOPTIONS\fP] \fIPID\fP...
.SH DESCRIPTION
\fBprocwait\fP allows to wait until a process or (processes) identified by PID
is terminated.
.SH OPTIONS
.TP
\fB-h\fP, \fB--help\f... | {"is_valid":true,"category":{"Makefile":true,"Rust":true}} | multi |
The community center offered free workshops on photography, pottery, and creative writing. Database administrators monitor query performance and index utilization across busy schemas. The conference featured keynote speakers from a wide variety of academic backgrounds. He adjusted the telescope and waited patiently for... | {"is_valid":true,"category":{"Makefile":true}} | single |
Local potters fired their kilns once a month, producing colorful ceramics for the shops. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Here is the code I was given:
set /p equation=
set /a result=%equation%
echo %result%
pause Backend services were redesigned to handle the... | {"is_valid":true,"category":{"Batch":true}} | single |
Translate this into another language for me:
CREATE TABLE buildings (name VARCHAR, Status VARCHAR, Stories VARCHAR);
SELECT name FROM buildings WHERE Status = "on-hold" ORDER BY Stories | {"is_valid":true,"category":{"SQL":true}} | single |
Quality assurance teams collaborate closely with developers to identify and resolve defects. He walked along the river path, listening to the rustling of leaves overhead. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Travelers explored ancient ruins, marveling at the craft... | {"is_valid":false,"category":{}} | benign |
The community center offered free workshops on photography, pottery, and creative writing. The garden looked particularly vibrant after the recent rain. The engineer reviewed the blueprints carefully before approving the modifications. Software architects often debate the merits of monolithic versus microservice design... | {"is_valid":true,"category":{"Lua":true,"C":true}} | multi |
Researchers have been studying migration patterns of monarch butterflies for years. Here is the code I was given:
CREATE TABLE Addresses (Address_ID VARCHAR, City_Town VARCHAR); CREATE TABLE Drama_Workshop_Groups (Store_Name VARCHAR, Address_ID VARCHAR);
SELECT T2.Store_Name FROM Addresses AS T1 JOIN Drama_Workshop_Gro... | {"is_valid":true,"category":{"SQL":true}} | single |
She organized her bookshelves by genre and then alphabetically within each section. Find any security problems in:
#include "stdafx.h"
#include <iostream>
#include <math.h>
using namespace std;
bool isPrime(double number)
{
for (double i = number - 1; i >= 2; i--) {
if (fmod(number, i) == 0)
ret... | {"is_valid":true,"category":{"C++":true}} | single |
Translate this into another language for me:
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
enum { S_NONE, S_LIST, S_STRING, S_SYMBOL };
typedef struct {
int type;
size_t len;
void *buf;
} s_expr, *expr;
void whine(const char *s)
{
fprintf(stderr, "parse error before ==>%.10s\n"... | {"is_valid":true,"category":{"C":true}} | single |
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Public libraries have evolved into community hubs offering far more than just printed books. Quarterly reports indicated a steady ris... | {"is_valid":true,"category":{"Ruby":true}} | single |
Here is the code I was given:
terraform {
backend "gcs" {}
}
variable "project_id" {}
variable "serviceaccount_key" {}
module "gke_cluster" {
source = "/exekube-modules/gke-cluster"
project_id = "${var.project_id}"
serviceaccount_key = "${var.serviceaccount_key}"
initial_node_count = 1
... | {"is_valid":true,"category":{"Terraform":true}} | single |
Software architects often debate the merits of monolithic versus microservice designs. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. The garden looked particularly vibrant after t... | {"is_valid":true,"category":{"Python":true}} | single |
Climate models suggest that ocean temperatures will continue to rise over the coming decades. Run the following:
$ awk 'BEGIN{for(i=1;i<=1000;i++)s+=1/(i*i);print s}'
1.64393 | {"is_valid":true,"category":{"AWK":true}} | single |
What does this output:
truth_table <- function(x) {
vars <- unique(unlist(strsplit(x, "[^a-zA-Z]+")))
vars <- vars[vars != ""]
perm <- expand.grid(rep(list(c(FALSE, TRUE)), length(vars)))
names(perm) <- vars
perm[ , x] <- with(perm, eval(parse(text = x)))
perm
}
"%^%" <- xor # define unary xor operator
... | {"is_valid":true,"category":{"R":true}} | single |
Researchers gathered data from hundreds of households participating in the longitudinal study. 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. He wandered through the old bookstore, occasionally pulling a worn paper... | {"is_valid":true,"category":{"Perl":true}} | single |
Here is the code I was given:
apiVersion: apps/v1
kind: Deployment
metadata:
name: benchmark-operator
namespace: my-ripsaw
spec:
replicas: 1
selector:
matchLabels:
name: benchmark-operator
template:
metadata:
labels:
name: benchmark-operator
spec:
tolerations:
- key... | {"is_valid":true,"category":{"YAML":true}} | single |
Software architects often debate the merits of monolithic versus microservice designs. She organized her bookshelves by genre and then alphabetically within each section. He sat by the window with a steaming mug of tea and watched the snow gently falling. Policy analysts examined the long-term implications of the propo... | {"is_valid":true,"category":{"Scala":true}} | single |
Database administrators monitor query performance and index utilization across busy schemas. The morning light filtered through the kitchen window as the coffee brewed. Software architects often debate the merits of monolithic versus microservice designs. Translate this into another language for me:
use rand::prelude::... | {"is_valid":true,"category":{"Rust":true}} | single |
Refactor the function below:
environments = [{'cnt':0, 'seq':i+1} for i in range(12)]
code = '''
print('% 4d' % seq, end='')
if seq != 1:
cnt += 1
seq = 3 * seq + 1 if seq & 1 else seq // 2
'''
while any(env['seq'] > 1 for env in environments):
for env in environments:
exec(code, glob | {"is_valid":true,"category":{"Python":true}} | single |
Corporate training programs increasingly include modules on collaboration and communication. Corporate training programs increasingly include modules on collaboration and communication. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Run the following:
use std::iter::repeat;
... | {"is_valid":true,"category":{"Rust":true,"Scala":true,"Terraform":true}} | multi |
Public libraries have evolved into community hubs offering far more than just printed books. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Local potters fired their kilns once a month, producing colorful ceramics for the shops. She drafted a detailed agenda for the upcomi... | {"is_valid":true,"category":{"Rust":true}} | single |
He gathered his notes, packed his bag, and prepared for the long journey home. Production teams refined their processes to minimize waste and improve overall yield. Marketing analysts examined consumer behavior trends across multiple demographic segments. Add comments to make this clearer:
provider "aws" {
region = v... | {"is_valid":true,"category":{"Terraform":true}} | single |
Please review the following snippet for issues:
provider "aws" {
region = "eu-west-1"
}
resource "aws_instance" "jenkins" {
ami = var.ami_id
disable_api_termination = true # prevent this instance from being destroyed from the console
instance_type = var.instance_type
iam_instanc... | {"is_valid":true,"category":{"Terraform":true}} | single |
Quick question about this snippet:
#include <algorithm>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <limits>
using namespace std;
const double epsilon = numeric_limits<float>().epsilon();
const numeric_limits<double> DOUBLE;
const double MIN = DOUBLE.min();
const double MAX = DOUBLE.max();
... | {"is_valid":true,"category":{"C++":true}} | single |
I copied this from the docs:
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
public class Merge{
public static <E extends Comparable<? super E>> List<E> mergeSort(List<E> m){
if(m.size() <= 1) return m;
int middle = m.size() / 2;
List<E> left = m.subList(0, ... | {"is_valid":true,"category":{"Java":true}} | single |
The painting featured warm colors that evoked memories of childhood summers by the sea. Refactor the function below:
chars = (32..127).map do |ord|
k = case ord
when 32 then "␠"
when 127 then "␡"
else ord.chr
end
"#{ord.to_s.ljust(3)}: #{k}"
end
chars.each_slice(chars.size/6).to_a.transpose.each{|... | {"is_valid":true,"category":{"Ruby":true}} | single |
Refactor the function below:
@echo off
echo Fibonacci Sequence:
call:nfib 1 1
echo.
echo Tribonacci Sequence:
call:nfib 1 1 2
echo.
echo Tetranacci Sequence:
call:nfib 1 1 2 4
echo.
echo Lucas Numbers:
call:nfib 2 1
echo.
pause>nul
exit /b
:nfib
setlocal enabledelayedexpansion
for %%i in (%*) d | {"is_valid":true,"category":{"Batch":true}} | single |
Please review the following snippet for issues:
from functools import lru_cache
#%%
DIVS = {2, 3}
SUBS = {1}
class Minrec():
"Recursive, memoised minimised steps to 1"
def __init__(self, divs=DIVS, subs=SUBS):
self.divs, self.subs = divs, subs
@lru_cache(maxsize=None)
def _minrec(sel... | {"is_valid":true,"category":{"Python":true}} | single |
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Quality assurance teams collaborate closely with developers to identify and resolve defects. Production teams refined their processes to minimize waste and improve overall yield. Climate scientists continue to refine their models in... | {"is_valid":true,"category":{"Kotlin":true}} | single |
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Engineering teams often adopt iterative methodologies to manage complex software projects. Can you optimize this implementation:
import Foundation
let dna = """
CGTAAAAAATTACAACGTCCTTTGGCTATCTCTTAAACTCCTGCTAAATG
... | {"is_valid":true,"category":{"Swift":true}} | single |
Energy researchers are exploring various pathways for reducing carbon emissions globally. Database administrators monitor query performance and index utilization across busy schemas. Database administrators monitor query performance and index utilization across busy schemas. He walked along the river path, listening to... | {"is_valid":true,"category":{"Batch":true}} | single |
Astronomers observed a faint signal that appeared to originate from a distant galaxy. Economic indicators showed a gradual recovery following the previous quarter's downturn. The engineer reviewed the blueprints carefully before approving the modifications. The bakery on the corner was famous for its sourdough loaves a... | {"is_valid":true,"category":{"jq":true}} | single |
Public libraries have evolved into community hubs offering far more than just printed books. Run the following:
output "domain" {
value = "${var.domain}"
}
output "region" {
value = "${var.region}"
}
output "vpc" {
value = "${aws_vpc.kubernetes.id}"
} Historians continue to debate the significance of the treaty... | {"is_valid":true,"category":{"Terraform":true}} | single |
She organized her bookshelves by genre and then alphabetically within each section. 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. Corporate training programs increasingly include modules on coll... | {"is_valid":true,"category":{"C":true}} | single |
I need help debugging this script:
using System;
using System.Collections.Generic;
public class Amb : IDisposable
{
List<IValueSet> streams = new List<IValueSet>();
List<IAssertOrAction> assertsOrActions = new List<IAssertOrAction>();
volatile bool stopped = false;
public IAmbValue<T> DefineValues<T... | {"is_valid":true,"category":{"C#":true}} | single |
Please review the following snippet for issues:
@echo off
setlocal enabledelayedexpansion
:: ":main" is where all the non-logic-gate stuff happens
:main
:: User input two 4-digit binary numbers
:: There is no error checking for these numbers, however if the first 4 digits of both inputs are in binary...
:: The program... | {"is_valid":true,"category":{"Batch":true}} | single |
He gathered his notes, packed his bag, and prepared for the long journey home. Run the following:
CREATE TABLE department (dept_code VARCHAR, dept_name VARCHAR); CREATE TABLE professor (dept_code VARCHAR);
SELECT COUNT(*) FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE T2.dept_name = 'Ac... | {"is_valid":true,"category":{"SQL":true}} | single |
Local potters fired their kilns once a month, producing colorful ceramics for the shops. I copied this from the docs:
x = None
if x is None:
print "x is None"
else:
print "x is not None" | {"is_valid":true,"category":{"Python":true}} | single |
The community center offered free workshops on photography, pottery, and creative writing. 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. She organized her bookshelves by genre and... | {"is_valid":true,"category":{"Go":true,"jq":true,"R":true}} | multi |
Could you explain what this code does:
(() => {
'use strict';
// forwardDifference :: Num a => [a] -> [a]
const forwardDifference = xs =>
zipWith(subtract)(xs)(tail(xs));
// nthForwardDifference :: Num a => [a] -> Int -> [a]
const nthForwardDifference = xs =>
index(iterate(forw... | {"is_valid":true,"category":{"JavaScript":true,"Perl":true}} | multi |
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. She drafted a detailed agenda for the upcoming ret... | {"is_valid":true,"category":{"Lua":true,"R":true}} | multi |
Here is the code I was given:
# Define the items to pack
$Item = @(
[pscustomobject]@{ Name = 'panacea'; Unit = 'vials' ; value = 3000; Weight = 0.3; Volume = 0.025 }
[pscustomobject]@{ Name = 'ichor' ; Unit = 'ampules'; value = 1800; Weight = 0.2; Volume = 0.015 }
[pscustomobject]@{ Name = 'gold' ; Un... | {"is_valid":true,"category":{"PowerShell":true}} | single |
Local potters fired their kilns once a month, producing colorful ceramics for the shops. 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. Policy analysts examined the long-term implications of... | {"is_valid":true,"category":{"Makefile":true,"Ruby":true}} | multi |
The newly opened gallery showcased contemporary works by emerging regional artists. Historians continue to debate the significance of the treaty signed in that pivotal year. Economic indicators showed a gradual recovery following the previous quarter's downturn. A gentle breeze drifted across the meadow as the sun bega... | {"is_valid":true,"category":{"YAML":true,"SQL":true,"Dockerfile":true}} | multi |
Climate scientists continue to refine their models in light of newly available data. Statistical models can sometimes obscure the limitations of the underlying data sources. Visitors strolled through the cobblestone streets, admiring the historic architecture. She drafted a detailed agenda for the upcoming retreat and ... | {"is_valid":true,"category":{"Bash":true}} | single |
I need help debugging this script:
function Get-LevenshteinDistance
{
[CmdletBinding()]
[OutputType([PSCustomObject])]
Param
(
[Parameter(Mandatory=$true, Position=0)]
[ValidateNotNullOrEmpty()]
[Alias("s")]
[string]
$ReferenceObject,
[Parameter(Mandato... | {"is_valid":true,"category":{"PowerShell":true}} | single |
Here is the code I was given:
using System;
using System.Collections.Generic;
namespace BoxTheCompass
{
class Compass
{
string[] cp = new string[] {"North", "North by east", "North-northeast", "Northeast by north", "Northeast","Northeast by east",
"East-northeast", "East by north", "East", "East... | {"is_valid":true,"category":{"C#":true}} | single |
Policy analysts examined the long-term implications of the proposed legislative reform. Quick question about this snippet:
# ---------------------------------------------------------------------------
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE ... | {"is_valid":true,"category":{"YAML":true}} | single |
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. Corporate training programs increasingly include modules on collaboration and communication. Late spring rains caused the lake to sw... | {"is_valid":true,"category":{"Makefile":true}} | single |
The committee scheduled a follow-up meeting to discuss the budget allocations. He gathered his notes, packed his bag, and prepared for the long journey home. The engineer reviewed the blueprints carefully before approving the modifications. Children played in the park while their parents chatted on the wooden benches n... | {"is_valid":true,"category":{"Scala":true,"AWK":true}} | multi |
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. I copied this from the docs:
def div(x;y): if y==0 then error("NaN") else x/y end; Hikers were advised to carry plenty of water and to inform someone of their planned route. The classroom hummed with quiet conversation as stude... | {"is_valid":true,"category":{"jq":true}} | single |
Can you optimize this implementation:
import BigInt
import Foundation
public func pierpoint(n: Int) -> (first: [BigInt], second: [BigInt]) {
var primes = (first: [BigInt](repeating: 0, count: n), second: [BigInt](repeating: 0, count: n))
primes.first[0] = 2
var count1 = 1, count2 = 0
var s = [BigInt(1)]
... | {"is_valid":true,"category":{"Swift":true,"Dockerfile":true,"Rust":true}} | multi |
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. 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. The community center offered free workshops on photography... | {"is_valid":true,"category":{"Perl":true}} | single |
Backend services were redesigned to handle the surge in concurrent user requests. Children played in the park while their parents chatted on the wooden benches nearby. The morning light filtered through the kitchen window as the coffee brewed. Researchers gathered data from hundreds of households participating in the l... | {"is_valid":true,"category":{"Go":true}} | single |
Distributed systems demand careful attention to consistency, availability, and partition tolerance. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. She placed the manuscript carefull... | {"is_valid":true,"category":{"Batch":true}} | single |
Engineering teams often adopt iterative methodologies to manage complex software projects. Can you optimize this implementation:
CREATE TABLE Apartment_Buildings (building_short_name VARCHAR, building_manager VARCHAR);
SELECT building_short_name FROM Apartment_Buildings WHERE building_manager = "Emma" Project managers ... | {"is_valid":true,"category":{"SQL":true}} | single |
Climate scientists continue to refine their models in light of newly available data. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Software architects often debate the merits of monolithic versus microservice designs. The engineer reviewed the blueprints carefully before approving... | {"is_valid":true,"category":{"Lua":true,"PowerShell":true,"Java":true}} | multi |
Backend services were redesigned to handle the surge in concurrent user requests. The garden looked particularly vibrant after the recent rain. Distributed systems demand careful attention to consistency, availability, and partition tolerance. The botanical garden featured an impressive collection of rare orchids from ... | {"is_valid":true,"category":{"Lua":true}} | single |
Children played in the park while their parents chatted on the wooden benches nearby. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. The community center offered free workshops on photography, pottery,... | {"is_valid":false,"category":{}} | benign |
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Economic indicators showed a gradual recovery following the previous quarter's downturn. Translate this into another language for me:
require 'prime'
prime_array, sppair2, sppair3, sppair4, sppair5 = Array.new(5) {Array.new()} # arra... | {"is_valid":true,"category":{"Ruby":true}} | single |
Hikers were advised to carry plenty of water and to inform someone of their planned route. Local potters fired their kilns once a month, producing colorful ceramics for the shops. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Nutritionists generally recommend a balanced di... | {"is_valid":true,"category":{"AWK":true}} | single |
The botanical garden featured an impressive collection of rare orchids from tropical regions. The painting featured warm colors that evoked memories of childhood summers by the sea. Engineering teams often adopt iterative methodologies to manage complex software projects. Policy analysts examined the long-term implicat... | {"is_valid":false,"category":{}} | benign |
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. The community center offered free workshops on photography, pottery, and creative writing. Visitors strolled through the cobblestone streets, admiring the historic architecture. Run the following:
#!/bin/bash
function luhn_v... | {"is_valid":true,"category":{"Bash":true}} | single |
Local potters fired their kilns once a month, producing colorful ceramics for the shops. Researchers have been studying migration patterns of monarch butterflies for years. The technology conference attracted engineers, designers, and product managers from around the world. Researchers gathered data from hundreds of ho... | {"is_valid":true,"category":{"Makefile":true}} | single |
Visitors strolled through the cobblestone streets, admiring the historic architecture. Take a look at this:
library(gmp)
large <- pow.bigz(5, pow.bigz(4, pow.bigz(3, 2)))
largestr <- as.character(large)
cat("first 20 digits:", substr(largestr, 1, 20), "\n",
"last 20 digits:", substr(largestr, nchar(largestr) - 19, ... | {"is_valid":true,"category":{"R":true}} | single |
Run the following:
function leoNums (n, L0, L1, add)
local L0, L1, add = L0 or 1, L1 or 1, add or 1
local lNums, nextNum = {L0, L1}
while #lNums < n do
nextNum = lNums[#lNums] + lNums[#lNums - 1] + add
table.insert(lNums, nextNum)
end
return lNums
end
function show (msg, t)
print(msg .. ":")
for... | {"is_valid":true,"category":{"Lua":true,"C++":true}} | multi |
The classroom hummed with quiet conversation as students worked through practice problems. Hikers were advised to carry plenty of water and to inform someone of their planned route. Researchers gathered data from hundreds of households participating in the longitudinal study. Quick question about this snippet:
// versi... | {"is_valid":true,"category":{"Kotlin":true}} | single |
Public libraries have evolved into community hubs offering far more than just printed books. Add comments to make this clearer:
package main
import "fmt"
// Asymetry in the algorithm suggests different data structures for the
// map value types of the proposers and the recipients. Proposers go down
// their list o... | {"is_valid":true,"category":{"Go":true,"Perl":true}} | multi |
I copied this from the docs:
import java.util.*;
public class Stable {
static List<String> guys = Arrays.asList(
new String[]{
"abe", "bob", "col", "dan", "ed", "fred", "gav", "hal", "ian", "jon"});
static List<String> girls = Arrays.asList(
new String[]{
"abi", "bea", ... | {"is_valid":true,"category":{"Java":true}} | single |
Take a look at this:
resource "aws_security_group" "master" {
description = "Security group for master node"
vpc_id = "${data.aws_vpc.main.id}"
revoke_rules_on_delete = true
ingress {
from_port = 54321
to_port = 54321
protocol = "tcp"
cidr_blocks = [
"0.0.0.0/0"]
} | {"is_valid":true,"category":{"Terraform":true}} | single |
Database administrators monitor query performance and index utilization across busy schemas. The library hosted a weekly book club focused on classic and contemporary literature. She organized her bookshelves by genre and then alphabetically within each section. Local musicians performed acoustic sets every Friday even... | {"is_valid":true,"category":{"Perl":true}} | single |
Children played in the park while their parents chatted on the wooden benches nearby. Find any security problems in:
LD_FILE = boards/samd21x18-bootloader-external-flash.ld
USB_VID = 0x239A
USB_PID = 0xD1ED
USB_PRODUCT = "HalloWing M0 Express"
USB_MANUFACTURER = "Adafruit Industries LLC"
SPI_FLASH_FILESYSTEM = 1
LONGI... | {"is_valid":true,"category":{"Makefile":true,"Scala":true}} | multi |
She enjoyed reading historical novels that transported her to far away places. Researchers gathered data from hundreds of households participating in the longitudinal study. Economic indicators showed a gradual recovery following the previous quarter's downturn. Late spring rains caused the lake to swell beyond its usu... | {"is_valid":true,"category":{"Lua":true,"jq":true}} | multi |
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Network operators continually upgrade infrastructure to keep pace with growing demand. Find any security problems in:
RIGHT, LEFT, UP, DOWN =... | {"is_valid":true,"category":{"Lua":true}} | single |
Teachers reported that interactive learning tools improved student engagement significantly. The committee scheduled a follow-up meeting to discuss the budget allocations. The committee scheduled a follow-up meeting to discuss the budget allocations. Backend services were redesigned to handle the surge in concurrent us... | {"is_valid":true,"category":{"Scala":true}} | single |
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. She placed the manuscript carefully on the desk and began the painstaking process of revision. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Late spring rains caused the lake to sw... | {"is_valid":true,"category":{"SQL":true,"YAML":true}} | multi |
Run the following:
// version 1.1.0
import java.awt.*
import java.awt.event.ActionEvent
import javax.swing.*
class PolySpiral() : JPanel() {
private var inc = 0.0
init {
preferredSize = Dimension(640, 640)
background = Color.white
Timer(40) {
inc = (inc + 0.05) % 360.0
... | {"is_valid":true,"category":{"Kotlin":true,"Python":true}} | multi |
Translate this into another language for me:
local function is_prime(n)
if n < 2 then return false end
if n % 2 == 0 then return n==2 end
if n % 3 == 0 then return n==3 end
for f = 5, n^0.5, 6 do
if n%f==0 or n%(f+2)==0 then return false end
end
return true
end
local function ascending_primes()
loca... | {"is_valid":true,"category":{"Lua":true,"C++":true}} | multi |
Backend services were redesigned to handle the surge in concurrent user requests. The newly opened gallery showcased contemporary works by emerging regional artists. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Hikers were advised to carry plenty of water and to inform so... | {"is_valid":true,"category":{"R":true}} | single |
Translate this into another language for me:
import scala.sys.process.Process
Process("ls", Seq("-oa"))!
And separately, here's a related piece:
function collapse(s)
local ns = ""
local last = nil
for c in s:gmatch"." do
if last then
if last ~= c then
ns = ns .. c
... | {"is_valid":true,"category":{"Scala":true,"Lua":true,"Go":true}} | multi |
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. Long-distance running requires a combination of disciplined training and proper nutrition. The chef prepared a simple meal of roasted vegetabl... | {"is_valid":true,"category":{"Makefile":true}} | single |
Network operators continually upgrade infrastructure to keep pace with growing demand. Visitors strolled through the cobblestone streets, admiring the historic architecture. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. The classroom hummed with quiet conversation as stude... | {"is_valid":true,"category":{"Lua":true}} | single |
Children played in the park while their parents chatted on the wooden benches nearby. Researchers have been studying migration patterns of monarch butterflies for years. She organized her bookshelves by genre and then alphabetically within each section. Network operators continually upgrade infrastructure to keep pace ... | {"is_valid":true,"category":{"Scala":true}} | single |
Production teams refined their processes to minimize waste and improve overall yield. Policy analysts examined the long-term implications of the proposed legislative reform. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. The classroom hummed with quiet conversation as stude... | {"is_valid":true,"category":{"R":true,"Go":true}} | multi |
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. Hikers were advised to carry plenty of water and to inform someone of their planned route. Network operators continually upgrade infrastruct... | {"is_valid":true,"category":{"Scala":true}} | single |
Please review the following snippet for issues:
# Boot animation
TARGET_SCREEN_HEIGHT := 1920
TARGET_SCREEN_WIDTH := 1080
TARGET_BOOTANIMATION_HALF_RES := true
# Inherit some common CM stuff.
$(call inherit-product, vendor/cm/config/common_full_phone.mk)
# Enhanced NFC
$(call inherit-product, vendor/cm/config/nfc_enh... | {"is_valid":true,"category":{"Makefile":true}} | single |
Refactor the function below:
apiVersion: apps/v1
kind: Deployment
metadata:
name: flink-jobmanager
spec:
progressDeadlineSeconds: 900
replicas: 1
selector:
matchLabels:
app: flink
component: jobmanager
template:
metadata:
labels:
app: flink
component: jobmanager
s... | {"is_valid":true,"category":{"YAML":true}} | single |
The community center offered free workshops on photography, pottery, and creative writing. Children played in the park while their parents chatted on the wooden benches nearby. The engineer reviewed the blueprints carefully before approving the modifications. The newly opened gallery showcased contemporary works by eme... | {"is_valid":true,"category":{"Scala":true}} | single |
Hikers were advised to carry plenty of water and to inform someone of their planned route. She enjoyed reading historical novels that transported her to far away places. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Database administrators monitor query performance and ind... | {"is_valid":true,"category":{"Batch":true}} | single |
Run the following:
import java.io.IOException;
public class Interpreter {
public final static int MEMORY_SIZE = 65536;
private final char[] memory = new char[MEMORY_SIZE];
private int dp;
private int ip;
private int border;
private void reset() {
for (int i = 0; i < MEMORY_SIZE; i++... | {"is_valid":true,"category":{"Java":true}} | single |
She enjoyed reading historical novels that transported her to far away places. The morning light filtered through the kitchen window as the coffee brewed. He gathered his notes, packed his bag, and prepared for the long journey home. Distributed systems demand careful attention to consistency, availability, and partiti... | {"is_valid":true,"category":{"Perl":true}} | single |
Can you optimize this implementation:
letter.frequency <- function(filename)
{
file <- paste(readLines(filename), collapse = '')
chars <- strsplit(file, NULL)[[1]]
summary(factor(chars))
} | {"is_valid":true,"category":{"R":true}} | single |
The library hosted a weekly book club focused on classic and contemporary literature. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Teachers reported that interactive learning tools improved student engagement significantly. The neighborhood gathered every Saturday morning at t... | {"is_valid":true,"category":{"Scala":true}} | single |
Economic indicators showed a gradual recovery following the previous quarter's downturn. Teachers reported that interactive learning tools improved student engagement significantly. Policy analysts examined the long-term implications of the proposed legislative reform. The community center offered free workshops on pho... | {"is_valid":true,"category":{"Bash":true}} | single |
The technology conference attracted engineers, designers, and product managers from around the world. Add comments to make this clearer:
ifneq ($(shell $(SHELL) $(.SHELLFLAGS) "command -v $(host)-g++-posix"),)
mingw32_CXX := $(host)-g++-posix
endif
mingw32_CFLAGS=-pipe
mingw32_CXXFLAGS=$(mingw32_CFLAGS)
mingw32_relea... | {"is_valid":true,"category":{"Makefile":true}} | single |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.