prompt large_stringlengths 150 7.97k | target large_stringlengths 32 83 | kind large_stringclasses 3
values |
|---|---|---|
Researchers have been studying migration patterns of monarch butterflies for years. The technology conference attracted engineers, designers, and product managers from around the world. Production teams refined their processes to minimize waste and improve overall yield. The newly opened gallery showcased contemporary ... | {"is_valid":true,"category":{"Python":true}} | single |
Quarterly reports indicated a steady rise in operational efficiency across divisions. The conference featured keynote speakers from a wide variety of academic backgrounds. The painting featured warm colors that evoked memories of childhood summers by the sea. Hikers were advised to carry plenty of water and to inform s... | {"is_valid":true,"category":{"PowerShell":true}} | single |
The technology conference attracted engineers, designers, and product managers from around the world. Add comments to make this clearer:
def jort_sort(array)
array == array.sort
end Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. The community center offered free workshops... | {"is_valid":true,"category":{"Ruby":true}} | single |
Project managers stressed the importance of clear documentation throughout the cycle. Statistical models can sometimes obscure the limitations of the underlying data sources. The newly opened gallery showcased contemporary works by emerging regional artists. Farmers depend on accurate weather forecasts to plan their pl... | {"is_valid":false,"category":{}} | benign |
Could you explain what this code does:
// version 1.0.6
fun rescale(price: Double): Double =
when {
price < 0.06 -> 0.10
price < 0.11 -> 0.18
price < 0.16 -> 0.26
price < 0.21 -> 0.32
price < 0.26 -> 0.38
price < 0.31 -> 0.44
price < 0.36 -> 0.50
... | {"is_valid":true,"category":{"Kotlin":true}} | single |
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Hikers were advised to carry plenty of water and to inform someone of their planned route. Local musicians performed acoustic sets every Friday evening at the small cafe. The morning light filtered through the kitchen window as... | {"is_valid":false,"category":{}} | benign |
Researchers gathered data from hundreds of households participating in the longitudinal study. Run the following:
def recursive_gcd(a; b):
if b == 0 then a
else recursive_gcd(b; a % b)
end ; | {"is_valid":true,"category":{"jq":true}} | single |
Teachers reported that interactive learning tools improved student engagement significantly. The neighborhood gathered every Saturday morning at the small farmers' market downtown. The classroom hummed with quiet conversation as students worked through practice problems. He walked along the river path, listening to the... | {"is_valid":true,"category":{"PowerShell":true}} | single |
The painting featured warm colors that evoked memories of childhood summers by the sea. Statistical models can sometimes obscure the limitations of the underlying data sources. The committee scheduled a follow-up meeting to discuss the budget allocations. Take a look at this:
suppressMessages(library(gmp))
limit <- 1... | {"is_valid":true,"category":{"R":true}} | single |
Long-distance running requires a combination of disciplined training and proper nutrition. Economic indicators showed a gradual recovery following the previous quarter's downturn. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Distributed systems demand careful atten... | {"is_valid":true,"category":{"Dockerfile":true,"Batch":true}} | multi |
Local musicians performed acoustic sets every Friday evening at the small cafe. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Historians continue to debate the significance of the treaty signed in that pivotal year. Late spring rains caused the lake to swell beyond its us... | {"is_valid":true,"category":{"Terraform":true,"C++":true,"R":true}} | multi |
Add comments to make this clearer:
-- module token_name (in a file "token_name.lua")
local token_name = {
['*'] = 'Op_multiply',
['/'] = 'Op_divide',
['%'] = 'Op_mod',
['+'] = 'Op_add',
['-'] = 'Op_subtract',
['<'] = 'Op_less',
['<='] = 'Op_lessequal',
['>'] ... | {"is_valid":true,"category":{"Lua":true}} | single |
Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Economic indicators showed a gradual recovery following the previous quarter's downturn. Network operators continually upgrade infrastructure to keep pace with growing demand. He sat by the window with a steaming mug of tea and watched the... | {"is_valid":true,"category":{"Rust":true,"PowerShell":true}} | multi |
The engineer reviewed the blueprints carefully before approving the modifications. Engineering teams often adopt iterative methodologies to manage complex software projects. Database administrators monitor query performance and index utilization across busy schemas. I copied this from the docs:
CREATE TABLE EMPLOYEE (F... | {"is_valid":true,"category":{"SQL":true}} | single |
Quarterly reports indicated a steady rise in operational efficiency across divisions. Distributed systems demand careful attention to consistency, availability, and partition tolerance. | {"is_valid":false,"category":{}} | benign |
The morning light filtered through the kitchen window as the coffee brewed. The morning light filtered through the kitchen window as the coffee brewed. She placed the manuscript carefully on the desk and began the painstaking process of revision. The conference featured keynote speakers from a wide variety of academic ... | {"is_valid":true,"category":{"JavaScript":true}} | single |
Project managers stressed the importance of clear documentation throughout the cycle. 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. Teachers reported that interactive learning tools impr... | {"is_valid":true,"category":{"Scala":true}} | single |
Quick question about this snippet:
module Distances
RATIOS =
{arshin: 0.7112, centimeter: 0.01, diuym: 0.0254,
fut: 0.3048, kilometer: 1000.0, liniya: 0.00254,
meter: 1.0, milia: 7467.6, piad: 0.1778,
sazhen: 2.1336, tochka: 0.000254, vershok: 0.04445,
versta: 1066.8}
... | {"is_valid":true,"category":{"Ruby":true}} | single |
The neighborhood gathered every Saturday morning at the small farmers' market downtown. Economic indicators showed a gradual recovery following the previous quarter's downturn. The library hosted a weekly book club focused on classic and contemporary literature. The conference featured keynote speakers from a wide vari... | {"is_valid":true,"category":{"C":true,"Go":true}} | multi |
Researchers gathered data from hundreds of households participating in the longitudinal study. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Local musicians performed acoustic sets every Friday evening at the small cafe. Hikers were advised to carry plenty of water and to... | {"is_valid":false,"category":{}} | benign |
Researchers have been studying migration patterns of monarch butterflies for years. Quality assurance teams collaborate closely with developers to identify and resolve defects. Researchers gathered data from hundreds of households participating in the longitudinal study. Late spring rains caused the lake to swell beyon... | {"is_valid":true,"category":{"Dockerfile":true}} | single |
The garden looked particularly vibrant after the recent rain. Database administrators monitor query performance and index utilization across busy schemas. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Economic indicators showed a gradual recovery following the previous qu... | {"is_valid":true,"category":{"R":true}} | single |
Production teams refined their processes to minimize waste and improve overall yield. Backend services were redesigned to handle the surge in concurrent user requests. He walked along the river path, listening to the rustling of leaves overhead. Visitors strolled through the cobblestone streets, admiring the historic a... | {"is_valid":true,"category":{"R":true}} | single |
I copied this from the docs:
#include <stdio.h>
#include <math.h>
int main() {
int n = 1, count = 0, sq, cr;
for ( ; count < 30; ++n) {
sq = n * n;
cr = (int)cbrt((double)sq);
if (cr * cr * cr != sq) {
count++;
printf("%d\n", sq);
}
else {
... | {"is_valid":true,"category":{"C":true}} | single |
Run the following:
using System;
using System.Linq;
namespace RosettaCode.Tasks
{
public static class EthiopianMultiplication_Task
{
public static void Test ( )
{
Console.WriteLine ( "Ethiopian Multiplication" );
int A = 17, B = 34;
Console.WriteLine ( "Recursion: {0}*{1}={2}", A, B, EM_Recursion ( A, ... | {"is_valid":true,"category":{"C#":true}} | single |
Distributed systems demand careful attention to consistency, availability, and partition tolerance. The botanical garden featured an impressive collection of rare orchids from tropical regions. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Teachers reported that interacti... | {"is_valid":false,"category":{}} | benign |
Quick question about this snippet:
package main
import "fmt"
type node struct {
value int
left, right *node
}
func (n *node) iterPreorder(visit func(int)) {
if n == nil {
return
}
visit(n.value)
n.left.iterPreorder(visit)
n.right.iterPreorder(visit)
}
func (n *node) ite... | {"is_valid":true,"category":{"Go":true}} | single |
Marketing analysts examined consumer behavior trends across multiple demographic segments. Run the following:
import Darwin
class stdDev{
var n:Double = 0.0
var sum:Double = 0.0
var sum2:Double = 0.0
init(){
let testData:[Double] = [2,4,4,4,5,5,7,9];
for x in testData{
... | {"is_valid":true,"category":{"Swift":true}} | single |
Find any security problems in:
import Foundation
print("Input max number: ", terminator: "")
guard let maxN = Int(readLine() ?? "0"), maxN > 0 else {
fatalError("Please input a number greater than 0")
}
func getFactor() -> (Int, String) {
print("Enter a factor and phrase: ", terminator: "")
guard | {"is_valid":true,"category":{"Swift":true}} | single |
Children played in the park while their parents chatted on the wooden benches nearby. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Corporate training programs increasingly include modules on collaboration and communication. Climate models suggest that ocean temperatures will cont... | {"is_valid":true,"category":{"Terraform":true}} | single |
The morning light filtered through the kitchen window as the coffee brewed. Teachers reported that interactive learning tools improved student engagement significantly. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Local musicians performed acoustic sets every Friday evening at... | {"is_valid":false,"category":{}} | benign |
Could you explain what this code does:
import BigInt
private let numTrails = 5
func isPrime(_ n: BigInt) -> Bool {
guard n >= 2 else { fatalError() }
guard n != 2 else { return true }
guard n % 2 != 0 else { return false }
var s = 0
var d = n - 1
while true {
let (quo, rem) = (d / 2, d % 2)
... | {"is_valid":true,"category":{"Swift":true,"JavaScript":true}} | multi |
Can you optimize this implementation:
from math import hypot, pi, cos, sin
from PIL import Image
def hough(im, ntx=460, mry=360):
"Calculate Hough transform."
pim = im.load()
nimx, mimy = im.size
mry = int(mry/2)*2 #Make sure that this is even
him = Image.new("L", (ntx, mry), 255) | {"is_valid":true,"category":{"Python":true}} | single |
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. She organized her bookshelves by genre and then alphabetically within each section. Researchers have been studying migration patterns of monarch butterflies for years. The library hosted a weekly book club focused on classic and contem... | {"is_valid":true,"category":{"C++":true,"SQL":true}} | multi |
The technology conference attracted engineers, designers, and product managers from around the world. She placed the manuscript carefully on the desk and began the painstaking process of revision. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Teachers reported that ... | {"is_valid":true,"category":{"AWK":true}} | single |
Take a look at this:
// USING A LIST MONAD DIRECTLY, WITHOUT SPECIAL SYNTAX FOR LIST COMPREHENSIONS
(function (n) {
return mb(r(1, n), function (x) { // x <- [1..n]
return mb(r(1 + x, n), function (y) { // y <- [1+x..n]
return mb(r(1 + y, n), function (z) { // z <- [1+y..n]
return x * x ... | {"is_valid":true,"category":{"JavaScript":true}} | single |
The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. The newly opened gallery showcased contemporary works by emerging regional artists. Hikers were advised to carry plenty of water and to inform someone of their planned route. The botanical garden featured an impressive collecti... | {"is_valid":true,"category":{"SQL":true}} | single |
Here is the code I was given:
package main
import (
"fmt"
"regexp"
"strings"
)
var reg = regexp.MustCompile(`(\.[0-9]+|[1-9]([0-9]+)?(\.[0-9]+)?)`)
func reverse(s string) string {
r := []rune(s)
for i, j := 0, len(r)-1; i < len(r)/2; i, j = i+1, j-1 {
r[i], r[j] = r[j], r[i]
}
... | {"is_valid":true,"category":{"Go":true}} | single |
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Could you explain what this code does:
import java.util.InputMismatchException;
import java.util.Scanner;
public class Sleep {
public static void main(final String[] args) throws InterruptedException {
try {
... | {"is_valid":true,"category":{"Java":true}} | single |
Climate models suggest that ocean temperatures will continue to rise over the coming decades. He sat by the window with a steaming mug of tea and watched the snow gently falling. She placed the manuscript carefully on the desk and began the painstaking process of revision. Hikers were advised to carry plenty of water a... | {"is_valid":true,"category":{"Perl":true}} | single |
Teachers reported that interactive learning tools improved student engagement significantly. Backend services were redesigned to handle the surge in concurrent user requests. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Long-distance running requires a combination of dis... | {"is_valid":true,"category":{"Lua":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. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Researchers have been studying migration patterns of monar... | {"is_valid":false,"category":{}} | benign |
He gathered his notes, packed his bag, and prepared for the long journey home. Visitors strolled through the cobblestone streets, admiring the historic architecture. Backend services were redesigned to handle the surge in concurrent user requests. The garden looked particularly vibrant after the recent rain. He walked ... | {"is_valid":true,"category":{"Rust":true,"Lua":true}} | multi |
Quick question about this snippet:
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <math.h>
#include <sys/time.h>
#include <pthread.h>
/* no need to lock the object: at worst the readout would be 1 tick off,
which is no worse than integrator's inate inaccuracy */
typedef struct {
double (*func... | {"is_valid":true,"category":{"C":true,"Rust":true}} | multi |
Software architects often debate the merits of monolithic versus microservice designs. Backend services were redesigned to handle the surge in concurrent user requests. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Local musicians performed acoustic sets every Friday even... | {"is_valid":true,"category":{"Ruby":true,"JavaScript":true,"Terraform":true}} | multi |
The committee scheduled a follow-up meeting to discuss the budget allocations. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. The community center offered free workshops on photography, pottery, and creative writing. Quality assurance teams collaborate closely with develope... | {"is_valid":true,"category":{"Scala":true,"Swift":true,"Kotlin":true}} | multi |
Quarterly reports indicated a steady rise in operational efficiency across divisions. The newly opened gallery showcased contemporary works by emerging regional artists. Hikers were advised to carry plenty of water and to inform someone of their planned route. Software architects often debate the merits of monolithic v... | {"is_valid":true,"category":{"Perl":true}} | single |
Historians continue to debate the significance of the treaty signed in that pivotal year. Production teams refined their processes to minimize waste and improve overall yield. The committee scheduled a follow-up meeting to discuss the budget allocations. Late spring rains caused the lake to swell beyond its usual seaso... | {"is_valid":true,"category":{"R":true,"Rust":true,"Kotlin":true}} | multi |
Refactor the function below:
#include <iostream>
#include <vector>
#include <iomanip>
void primeFactors( unsigned n, std::vector<unsigned>& r ) {
int f = 2; if( n == 1 ) r.push_back( 1 );
else {
while( true ) {
if( !( n % f ) ) {
r.push_back( f );
n /= f; if... | {"is_valid":true,"category":{"C++":true}} | single |
The painting featured warm colors that evoked memories of childhood summers by the sea. Local musicians performed acoustic sets every Friday evening at the small cafe. Historians continue to debate the significance of the treaty signed in that pivotal year. The bakery on the corner was famous for its sourdough loaves a... | {"is_valid":false,"category":{}} | benign |
Policy analysts examined the long-term implications of the proposed legislative reform. Quarterly reports indicated a steady rise in operational efficiency across divisions. Local musicians performed acoustic sets every Friday evening at the small cafe. A gentle breeze drifted across the meadow as the sun began to dip ... | {"is_valid":false,"category":{}} | benign |
Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Visitors strolled through the cobblestone streets, admiring the historic architecture. Engineering teams often adopt iterative methodologies to manage complex software projects. He wandered through the old bookstore, occasionally pulling a... | {"is_valid":true,"category":{"Scala":true,"SQL":true}} | multi |
Children played in the park while their parents chatted on the wooden benches nearby. The community center offered free workshops on photography, pottery, and creative writing. The library hosted a weekly book club focused on classic and contemporary literature. Late spring rains caused the lake to swell beyond its usu... | {"is_valid":true,"category":{"Lua":true}} | single |
Teachers reported that interactive learning tools improved student engagement significantly. I need help debugging this script:
function nStepFibs (seq, limit)
local iMax, sum = #seq - 1
while #seq < limit do
sum = 0
for i = 0, iMax do sum = sum + seq[#seq - i] end
table.insert(seq, sum)... | {"is_valid":true,"category":{"Lua":true,"C":true}} | multi |
Production teams refined their processes to minimize waste and improve overall yield. Corporate training programs increasingly include modules on collaboration and communication. Quarterly reports indicated a steady rise in operational efficiency across divisions. Climate models suggest that ocean temperatures will con... | {"is_valid":false,"category":{}} | benign |
Run the following:
#!/usr/bin/env luajit
bit32=bit32 or bit
local lib={
hailstone=function(n)
local seq={n}
while n>1 do
n=bit32.band(n,1)==1 and 3*n+1 or n/2
seq[#seq+1]=n
end
return seq
end
}
if arg[0] and arg[0]:match("hailstone.lua") then
local function printf(fmt, ...) io.write(string.format(fm... | {"is_valid":true,"category":{"Lua":true}} | single |
Economic indicators showed a gradual recovery following the previous quarter's downturn. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Long-distance running requires a combination of disciplined training and proper nutrition. Historians continue to debate the significance... | {"is_valid":true,"category":{"Java":true}} | single |
Please review the following snippet for issues:
use std::collections::HashMap;
use std::collections::HashSet;
type Cell = (i32, i32);
type Colony = HashSet<Cell>;
fn print_colony(col: &Colony, width: i32, height: i32) {
for y in 0..height {
for x in 0..width {
print!("{} ",
i... | {"is_valid":true,"category":{"Rust":true}} | single |
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. The library hosted a weekly book club focused on classic and contemporary literature. Corporate training programs increasingly include... | {"is_valid":true,"category":{"Lua":true}} | single |
The morning light filtered through the kitchen window as the coffee brewed. Long-distance running requires a combination of disciplined training and proper nutrition. 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... | {"is_valid":true,"category":{"C++":true}} | single |
Astronomers observed a faint signal that appeared to originate from a distant galaxy. Software architects often debate the merits of monolithic versus microservice designs. Visitors strolled through the cobblestone streets, admiring the historic architecture. Distributed systems demand careful attention to consistency,... | {"is_valid":true,"category":{"Rust":true,"Scala":true}} | multi |
The morning light filtered through the kitchen window as the coffee brewed. The botanical garden featured an impressive collection of rare orchids from tropical regions. The neighborhood gathered every Saturday morning at the small farmers' market downtown. The community center offered free workshops on photography, po... | {"is_valid":true,"category":{"Batch":true}} | single |
Network operators continually upgrade infrastructure to keep pace with growing demand. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Policy analysts examined the long-term implications of the propo... | {"is_valid":true,"category":{"Python":true,"Perl":true}} | multi |
Refactor the function below:
#!/usr/bin/env luajit
local gmp = require 'gmp' ('libgmp')
local ffi = require'ffi'
local mpz, mpq = gmp.types.z, gmp.types.q
local function mpq_for(buf, op, n)
for i=0,n-1 do
op(buf[i])
end
end
local function bernoulli(rop, n)
local a=ffi.new("mpq_t[?]", n+1)
mpq_for(a, gm | {"is_valid":true,"category":{"Lua":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 |
Local potters fired their kilns once a month, producing colorful ceramics for the shops. Local potters fired their kilns once a month, producing colorful ceramics for the shops. The committee scheduled a follow-up meeting to discuss the budget allocations. Can you optimize this implementation:
import java.io.BufferedRe... | {"is_valid":true,"category":{"Java":true}} | single |
Climate models suggest that ocean temperatures will continue to rise over the coming decades. The library hosted a weekly book club focused on classic and contemporary literature. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Climate models suggest that ocean temperatures ... | {"is_valid":true,"category":{"Terraform":true,"Lua":true}} | multi |
What does this output:
using System;
using System.Collections.Generic;
namespace RosettaCode {
class SortCustomComparator {
// Driver program
public void CustomSort() {
String[] items = { "Here", "are", "some", "sample", "strings", "to", "be", "sorted" };
List<String> list ... | {"is_valid":true,"category":{"C#":true}} | single |
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Take a look at this:
function multiply(n, a, b) if a <= b then return n, multiply(n, a + 1, b) end end
a, b = io.read() + 0, io.read() + 0
matrix = {multiply({multiply(1, 1, b)}, 1, a)}
matrix[a][b] = 5
print(matrix[a][b])
p... | {"is_valid":true,"category":{"Lua":true}} | single |
The library hosted a weekly book club focused on classic and contemporary literature. Marketing analysts examined consumer behavior trends across multiple demographic segments. Researchers have been studying migration patterns of monarch butterflies for years. Take a look at this:
sub partition {
my($all, $div) = @... | {"is_valid":true,"category":{"Perl":true}} | single |
Please review the following snippet for issues:
#!/bin/bash
declare -a B=( e e e e e e e e e ) # Board
function show(){ # show B - underline first 2 rows; highlight position; number empty positoins
local -i p POS=${1:-9}; local UL BOLD="\e[1m" GREEN="\e[32m" DIM="\e[2m" OFF="\e[m" ULC="\e[4m"
for p in 0 1 2 3... | {"is_valid":true,"category":{"Bash":true}} | single |
Researchers gathered data from hundreds of households participating in the longitudinal study. Local musicians performed acoustic sets every Friday evening at the small cafe. Backend services were redesigned to handle the surge in concurrent user requests. Network operators continually upgrade infrastructure to keep pa... | {"is_valid":true,"category":{"Makefile":true}} | single |
Marketing analysts examined consumer behavior trends across multiple demographic segments. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Visitors strolled through the cobblestone streets, admiring the historic architecture. Climate models suggest that ocean temperatures w... | {"is_valid":true,"category":{"Ruby":true}} | single |
Historians continue to debate the significance of the treaty signed in that pivotal year. Here is the code I was given:
// CoreOS Install Profile
resource "matchbox_profile" "coreos_install" {
name = "coreos-install"
kernel = "/assets/coreos/${module.container_linux.version}/coreos_production_pxe.vmlinuz"
init... | {"is_valid":true,"category":{"Terraform":true}} | single |
I need help debugging this script:
from collections import namedtuple
class Card(namedtuple('Card', 'face, suit')):
def __repr__(self):
return ''.join(self)
suit = '♥ ♦ ♣ ♠'.split()
# ordered strings of faces
faces = '2 3 4 5 6 7 8 9 10 j q k a'
lowaces = 'a 2 3 4 5 6 7 8 9 10 j q k'
# faces as list... | {"is_valid":true,"category":{"Python":true}} | single |
The painting featured warm colors that evoked memories of childhood summers by the sea. Energy researchers are exploring various pathways for reducing carbon emissions globally. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Volunteers spent the weekend cleaning up the rive... | {"is_valid":false,"category":{}} | benign |
Database administrators monitor query performance and index utilization across busy schemas. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Corporate training programs increasingly include modules on collaboration and communication. Visitors strolled through the cobblestone str... | {"is_valid":true,"category":{"Terraform":true}} | single |
Researchers gathered data from hundreds of households participating in the longitudinal study. 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. The conference featured keynote ... | {"is_valid":true,"category":{"jq":true}} | single |
The botanical garden featured an impressive collection of rare orchids from tropical regions. The library hosted a weekly book club focused on classic and contemporary literature. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. She drafted a detailed agenda for the upcoming ... | {"is_valid":true,"category":{"C":true}} | single |
He walked along the river path, listening to the rustling of leaves overhead. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Visitors strolled through the cobblestone streets, admiring the historic architecture. Teachers reported that interactive learning tools improved stu... | {"is_valid":true,"category":{"Terraform":true,"R":true}} | multi |
Policy analysts examined the long-term implications of the proposed legislative reform. She enjoyed reading historical novels that transported her to far away places. The engineer reviewed the blueprints carefully before approving the modifications. Local potters fired their kilns once a month, producing colorful ceram... | {"is_valid":true,"category":{"Java":true}} | single |
Please review the following snippet for issues:
#include <iomanip>
#include <iostream>
#include <boost/math/constants/constants.hpp>
#include <boost/multiprecision/cpp_dec_float.hpp>
using big_float = boost::multiprecision::cpp_dec_float_100;
big_float f(unsigned int n) {
big_float pi(boost::math::constants::pi... | {"is_valid":true,"category":{"C++":true,"Swift":true}} | multi |
Please review the following snippet for issues:
using System;
using System.Linq;
using System.Collections;
using static System.Console;
using System.Collections.Generic;
using BI = System.Numerics.BigInteger;
class Program {
// initialization
const int fst = 120, skp = 1000, max = 1015; static double et1, et2... | {"is_valid":true,"category":{"C#":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. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Farmers depend on accurate weather forecasts to plan thei... | {"is_valid":true,"category":{"Bash":true}} | single |
Software architects often debate the merits of monolithic versus microservice designs. 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. Children played in the park while their parents chatted on the wooden b... | {"is_valid":true,"category":{"Terraform":true}} | single |
Climate scientists continue to refine their models in light of newly available data. Take a look at this:
--
-- Simple String Animation - semi-hard-coded variant - you can alter the chars table - update the count and run it...
--
-- The basic animation runtime controller. This is where you assign the active animation... | {"is_valid":true,"category":{"Lua":true,"Python":true}} | multi |
Public libraries have evolved into community hubs offering far more than just printed books. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Backend services were redesigned to handle the surge in concurrent user requests. She organized her bookshelves by genre and then alp... | {"is_valid":true,"category":{"R":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. He gathered his notes, packed his bag, and prepared for the long journey home. Public libraries have evolved into community hubs offering far more than jus... | {"is_valid":false,"category":{}} | benign |
Find any security problems in:
apiVersion: v1
kind: Service
metadata:
name: open5gs-pgw-svc-pool
namespace: open5gs
labels:
epc-mode: pgw
spec:
type: ClusterIP
ports:
- name: gtpc
port: 2123
protocol: UDP
- name: gtpu
port: 2152
protocol: UDP
- name: gx
port: 3868
protocol:... | {"is_valid":true,"category":{"YAML":true}} | single |
The newly opened gallery showcased contemporary works by emerging regional artists. Project managers stressed the importance of clear documentation throughout the cycle. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Visitors strolled through the cobblestone streets, admiri... | {"is_valid":false,"category":{}} | benign |
Backend services were redesigned to handle the surge in concurrent user requests. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Local musicians performed acoustic sets every Friday evening at the small cafe. Local potters fired their kilns once a month, producing colorful ceramics for... | {"is_valid":true,"category":{"Swift":true}} | single |
Quick question about this snippet:
# syntax=docker/dockerfile:1
ARG GO_VERSION=1.24
ARG ALPINE_VERSION=3.21
ARG XX_VERSION=1.6.1
# for testing
ARG DOCKER_VERSION=28.2.2
ARG DOCKER_VERSION_ALT_27=27.5.1
ARG DOCKER_VERSION_ALT_26=26.1.3
ARG DOCKER_CLI_VERSION=${DOCKER_VERSION}
ARG GOTESTSUM_VERSION=v1.12.0
ARG REGISTRY... | {"is_valid":true,"category":{"Dockerfile":true}} | single |
The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Researchers have been studying migration pa... | {"is_valid":false,"category":{}} | benign |
Teachers reported that interactive learning tools improved student engagement significantly. Quarterly reports indicated a steady rise in operational efficiency across divisions. Climate scientists continue to refine their models in light of newly available data. Quarterly reports indicated a steady rise in operational... | {"is_valid":true,"category":{"Makefile":true}} | single |
Statistical models can sometimes obscure the limitations of the underlying data sources. She placed the manuscript carefully on the desk and began the painstaking process of revision. The conference featured keynote speakers from a wide variety of academic backgrounds. She enjoyed reading historical novels that transpo... | {"is_valid":true,"category":{"Perl":true}} | single |
Find any security problems in:
(function () {
'use strict'
// Index of any closing brace matching the opening
// brace at iPosn,
// with the indices of any immediately-enclosed commas.
function bracePair(tkns, iPosn, iNest, lstCommas) {
if (iPosn >= tkns.length || iPosn < 0) retu | {"is_valid":true,"category":{"JavaScript":true}} | single |
Quick question about this snippet:
typealias WeightedEdge = (Int, Int, Int)
struct Grid<T> {
var nodes: [Node<T>]
mutating func addNode(data: T) -> Int {
nodes.append(Node(data: data, edges: []))
return nodes.count - 1
}
mutating func createEdges(weights: [WeightedEdge]) {
for (start, end, w... | {"is_valid":true,"category":{"Swift":true}} | single |
The engineer reviewed the blueprints carefully before approving the modifications. Hikers were advised to carry plenty of water and to inform someone of their planned route. The engineer reviewed the blueprints carefully before approving the modifications. Volunteers spent the weekend cleaning up the riverside trail an... | {"is_valid":false,"category":{}} | benign |
She placed the manuscript carefully on the desk and began the painstaking process of revision. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Astronomers observed a faint signal that appeared to originate from a distant galaxy. The classroom hummed with quiet conversation ... | {"is_valid":true,"category":{"C#":true,"AWK":true}} | multi |
She organized her bookshelves by genre and then alphabetically within each section. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Researchers have been studying migration patterns of monarch butterflies for years. The newly opened gallery showcased contemporary works by em... | {"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.