prompt large_stringlengths 150 7.97k | target large_stringlengths 32 83 | kind large_stringclasses 3
values |
|---|---|---|
She placed the manuscript carefully on the desk and began the painstaking process of revision. Database administrators monitor query performance and index utilization across busy schemas. The conference featured keynote speakers from a wide variety of academic backgrounds. The conference featured keynote speakers from ... | {"is_valid":true,"category":{"JavaScript":true}} | single |
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. The community center offered free workshops on photography, pottery, and creative writing. Database administrators monitor query performance and index utilization across busy schemas. The community center offered free workshops on... | {"is_valid":true,"category":{"PowerShell":true}} | single |
Distributed systems demand careful attention to consistency, availability, and partition tolerance. Please review the following snippet for issues:
cat(paste(list.files(), collapse = "\n"), "\n")
cat(paste(list.files("bar"), collapse = "\n"), "\n") Visitors strolled through the cobblestone streets, admiring the histor... | {"is_valid":true,"category":{"R":true}} | single |
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. Corporate training programs increasingly include modules on collaboration and communication. What does this output:
class List:
def __init__(self, ... | {"is_valid":true,"category":{"Python":true,"Lua":true}} | multi |
Take a look at this:
public struct Point: Equatable, Hashable {
public var x: Double
public var y: Double
public init(fromTuple t: (Double, Double)) {
self.x = t.0
self.y = t.1
}
}
public func calculateConvexHull(fromPoints points: [Point]) -> [Point] {
guard points.count >= 3 else {
return po... | {"is_valid":true,"category":{"Swift":true,"JavaScript":true,"Java":true}} | multi |
I copied this from the docs:
fn main() {
assert_eq!(vec![1, 2, 4, 5, 10, 10, 20, 25, 50, 100], factor(100)); // asserts that two expressions are equal to each other
assert_eq!(vec![1, 101], factor(101));
}
fn factor(num: i32) -> Vec<i32> {
let mut factors: Vec<i32> = Vec::new(); // creates a | {"is_valid":true,"category":{"Rust":true}} | single |
Teachers reported that interactive learning tools improved student engagement significantly. Add comments to make this clearer:
# this is file narc.pl
local $/;
print do { open 0; <0> } eq <> ? "accept" : "reject"; | {"is_valid":true,"category":{"Perl":true}} | single |
The neighborhood gathered every Saturday morning at the small farmers' market downtown. She organized her bookshelves by genre and then alphabetically within each section. The committee scheduled a follow-up meeting to discuss the budget allocations. Modern microprocessors rely on pipelining and out-of-order execution ... | {"is_valid":true,"category":{"Python":true}} | single |
Translate this into another language for me:
// version 1.1.2
fun main(args: Array<String>) {
val a = setOf("John", "Bob", "Mary", "Serena")
val b = setOf("Jim", "Mary", "John", "Bob")
println("A = $a")
println("B = $b")
val c = a - b
println("A \\ B = $c")
val d = b - a
print... | {"is_valid":true,"category":{"Kotlin":true,"Dockerfile":true}} | multi |
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. He walked along the river path, listening to the rustling of leaves overhead. What does this output:
CREATE TABLE Documents_to_be_destroyed (D... | {"is_valid":true,"category":{"SQL":true}} | single |
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Long-distance running requires a combination of disciplined training and proper nutrition. Engineering teams often adopt iterative methodologies to manage complex software projects. Volunteers spent the weekend cleaning up the ... | {"is_valid":true,"category":{"jq":true,"Swift":true}} | multi |
The painting featured warm colors that evoked memories of childhood summers by the sea. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. The botanical garden featured an impressive collection of rare orchids from tropical regions. Software architects often debate the merits of mon... | {"is_valid":true,"category":{"JavaScript":true}} | single |
Software architects often debate the merits of monolithic versus microservice designs. Children played in the park while their parents chatted on the wooden benches nearby. Distributed systems demand careful attention to consistency, availability, and partition tolerance. The newly opened gallery showcased contemporary... | {"is_valid":true,"category":{"Kotlin":true}} | single |
Public libraries have evolved into community hubs offering far more than just printed books. Historians continue to debate the significance of the treaty signed in that pivotal year. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. The classroom hummed with quiet conversation as students... | {"is_valid":false,"category":{}} | benign |
Quality assurance teams collaborate closely with developers to identify and resolve defects. Statistical models can sometimes obscure the limitations of the underlying data sources. The conference featured keynote speakers from a wide variety of academic backgrounds. Distributed systems demand careful attention to cons... | {"is_valid":false,"category":{}} | benign |
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Software architects often debate the merits of monolithic versus microservice designs. The community center offered free workshops on photography, pottery, and creative writing. The botanical garden featured an impressive colle... | {"is_valid":true,"category":{"JavaScript":true}} | single |
Network operators continually upgrade infrastructure to keep pace with growing demand. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Climate scientists continue to refine their models in light of newly available data. He walked along the river path, listening to the rustl... | {"is_valid":true,"category":{"Python":true}} | single |
Historians continue to debate the significance of the treaty signed in that pivotal year. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Backend services were redesigned to handle the surg... | {"is_valid":true,"category":{"Batch":true,"C#":true}} | multi |
Local musicians performed acoustic sets every Friday evening at the small cafe. She enjoyed reading historical novels that transported her to far away places. Policy analysts examined the long-term implications of the proposed legislative reform. The community center offered free workshops on photography, pottery, and ... | {"is_valid":true,"category":{"Python":true}} | single |
Policy analysts examined the long-term implications of the proposed legislative reform. Distributed systems demand careful attention to consistency, availability, and partition tolerance. | {"is_valid":false,"category":{}} | benign |
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. The newly opened gallery showcased contemporary works by emerging regional artists. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. He wandered through the old bookstore, occasionally pulling... | {"is_valid":true,"category":{"Ruby":true,"YAML":true}} | multi |
The painting featured warm colors that evoked memories of childhood summers by the sea. Historians continue to debate the significance of the treaty signed in that pivotal year. Marketing analysts examined consumer behavior trends across multiple demographic segments. The committee scheduled a follow-up meeting to disc... | {"is_valid":true,"category":{"Swift":true,"Lua":true}} | multi |
The technology conference attracted engineers, designers, and product managers from around the world. The newly opened gallery showcased contemporary works by emerging regional artists. Policy analysts examined the long-term implications of the proposed legislative reform. Local potters fired their kilns once a month, ... | {"is_valid":true,"category":{"PowerShell":true,"AWK":true,"R":true}} | multi |
Database administrators monitor query performance and index utilization across busy schemas. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. The morning light filtered through the kitchen window as the coffee brewed. Distributed systems demand careful attention to consisten... | {"is_valid":true,"category":{"AWK":true}} | single |
The garden looked particularly vibrant after the recent rain. Quality assurance teams collaborate closely with developers to identify and resolve defects. Researchers gathered data from hundreds of households participating in the longitudinal study. Quarterly reports indicated a steady rise in operational efficiency ac... | {"is_valid":true,"category":{"YAML":true}} | single |
The painting featured warm colors that evoked memories of childhood summers by the sea. Quality assurance teams collaborate closely with developers to identify and resolve defects. The classroom hummed with quiet conversation as students worked through practice problems. Hikers were advised to carry plenty of water and... | {"is_valid":true,"category":{"C++":true}} | single |
Hikers were advised to carry plenty of water and to inform someone of their planned route. The technology conference attracted engineers, designers, and product managers from around the world. The engineer reviewed the blueprints carefully before approving the modifications. Statistical models can sometimes obscure the... | {"is_valid":true,"category":{"Dockerfile":true,"Makefile":true}} | multi |
The engineer reviewed the blueprints carefully before approving the modifications. Could you explain what this code does:
// Create IAM Role
resource "aws_iam_role" "iam_role" {
name = "${var.environment_name}-${var.unique_id}elk-role"
assume_role_policy = <<EOF
{
"Version": "2012-10-17",
"Statement": [
{
... | {"is_valid":true,"category":{"Terraform":true}} | single |
Corporate training programs increasingly include modules on collaboration and communication. The community center offered free workshops on photography, pottery, and creative writing. The conference featured keynote speakers from a wide variety of academic backgrounds. He walked along the river path, listening to the r... | {"is_valid":true,"category":{"PowerShell":true}} | single |
Energy researchers are exploring various pathways for reducing carbon emissions globally. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. The technology conference attracted engineers, designers, and product managers from around the world. Backend services were redesigned to ha... | {"is_valid":true,"category":{"C#":true}} | single |
Network operators continually upgrade infrastructure to keep pace with growing demand. Historians continue to debate the significance of the treaty signed in that pivotal year. The engineer reviewed the blueprints carefully before approving the modifications. Modern microprocessors rely on pipelining and out-of-order e... | {"is_valid":true,"category":{"AWK":true}} | single |
Take a look at this:
package main
import (
"fmt"
"log"
"strconv"
)
// A casting out nines algorithm.
// Quoting from: http://mathforum.org/library/drmath/view/55926.html
/*
First, for any number we can get a single digit, which I will call the
"check digit," by repeatedly adding the digits. That is, ... | {"is_valid":true,"category":{"Go":true}} | single |
Refactor the function below:
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 let factor... | {"is_valid":true,"category":{"Swift":true}} | single |
The technology conference attracted engineers, designers, and product managers from around the world. Astronomers observed a faint signal that appeared to originate from a distant galaxy. The committee scheduled a follow-up meeting to discuss the budget allocations. Visitors strolled through the cobblestone streets, ad... | {"is_valid":true,"category":{"Kotlin":true,"Python":true}} | multi |
I copied this from the docs:
use std::collections::HashMap;
fn main() {
let commands = "
Add ALTer BAckup Bottom CAppend Change SCHANGE CInsert CLAst COMPress COpy \
COUnt COVerlay CURsor DELete CDelete Down DUPlicate Xedit EXPand EXTract Find \
NFind NFINDUp NFUp CFind FINdup FUp FOrwa... | {"is_valid":true,"category":{"Rust":true}} | single |
The conference featured keynote speakers from a wide variety of academic backgrounds. Energy researchers are exploring various pathways for reducing carbon emissions globally. Refactor the function below:
@echo off
set dog=Benjamin
set Dog=Samba
set DOG=Bernie
echo There is just one dog named %dog%.
pause>nul Nutri... | {"is_valid":true,"category":{"Batch":true}} | single |
The garden looked particularly vibrant after the recent rain. The morning light filtered through the kitchen window as the coffee brewed. Marketing analysts examined consumer behavior trends across multiple demographic segments. He sat by the window with a steaming mug of tea and watched the snow gently falling. Travel... | {"is_valid":true,"category":{"C++":true,"C":true}} | multi |
Public libraries have evolved into community hubs offering far more than just printed books. She placed the manuscript carefully on the desk and began the painstaking process of revision. Policy analysts examined the long-term implications of the proposed legislative reform. Climate models suggest that ocean temperatur... | {"is_valid":true,"category":{"SQL":true,"Dockerfile":true}} | multi |
I need help debugging this script:
-- Return table of ludic numbers below limit
function ludics (limit)
local ludList, numList, index = {1}, {}
for n = 2, limit do table.insert(numList, n) end
while #numList > 0 do
index = numList[1]
table.insert(ludList, index)
for key = #numList, 1... | {"is_valid":true,"category":{"Lua":true}} | single |
Could you explain what this code does:
#===============================================================
# Penney's Game Task from Rosetta Code Wiki
# R implementation
#===============================================================
penneysgame <- function() {
#-----------------------------------------------------... | {"is_valid":true,"category":{"R":true,"Java":true}} | multi |
Here is the code I was given:
public class Tau {
private static long divisorCount(long n) {
long total = 1;
// Deal with powers of 2 first
for (; (n & 1) == 0; n >>= 1) {
++total;
}
// Odd prime factors up to the square root
for (long p = 3; p * | {"is_valid":true,"category":{"Java":true}} | single |
Children played in the park while their parents chatted on the wooden benches nearby. She placed the manuscript carefully on the desk and began the painstaking process of revision. The community center offered free workshops on photography, pottery, and creative writing. Policy analysts examined the long-term implicati... | {"is_valid":true,"category":{"Batch":true}} | single |
Marketing analysts examined consumer behavior trends across multiple demographic segments. Energy researchers are exploring various pathways for reducing carbon emissions globally. Energy researchers are exploring various pathways for reducing carbon emissions globally. The garden looked particularly vibrant after the ... | {"is_valid":true,"category":{"YAML":true}} | single |
The conference featured keynote speakers from a wide variety of academic backgrounds. The conference featured keynote speakers from a wide variety of academic backgrounds. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Database administrators monitor query performance and index util... | {"is_valid":true,"category":{"Scala":true}} | single |
Historians continue to debate the significance of the treaty signed in that pivotal year. The neighborhood gathered every Saturday morning at the small farmers' market downtown. She organized her bookshelves by genre and then alphabetically within each section. Energy researchers are exploring various pathways for redu... | {"is_valid":true,"category":{"JavaScript":true,"R":true}} | multi |
The newly opened gallery showcased contemporary works by emerging regional artists. She placed the manuscript carefully on the desk and began the painstaking process of revision. Researchers gathered data from hundreds of households participating in the longitudinal study. The botanical garden featured an impressive co... | {"is_valid":true,"category":{"Go":true}} | single |
The neighborhood gathered every Saturday morning at the small farmers' market downtown. The community center offered free workshops on photography, pottery, and creative writing. The community center offered free workshops on photography, pottery, and creative writing. The community center offered free workshops on pho... | {"is_valid":true,"category":{"C#":true}} | single |
Researchers have been studying migration patterns of monarch butterflies for years. Historians continue to debate the significance of the treaty signed in that pivotal year. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Engineering teams often adopt iterative methodologies to... | {"is_valid":true,"category":{"Dockerfile":true}} | single |
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. The technology conference attracted engineers, designers, and... | {"is_valid":true,"category":{"C#":true,"Swift":true}} | multi |
Translate this into another language for me:
permutationsort <- function(x)
{
if(!require(e1071) stop("the package e1071 is required")
is.sorted <- function(x) all(diff(x) >= 0)
perms <- permutations(length(x))
i <- 1
while(!is.sorted(x))
{
x <- x[perms[i,]]
i <- i + 1
}
x
}
permu... | {"is_valid":true,"category":{"R":true}} | single |
The engineer reviewed the blueprints carefully before approving the modifications. Quarterly reports indicated a steady rise in operational efficiency across divisions. The committee scheduled a follow-up meeting to discuss the budget allocations. Astronomers observed a faint signal that appeared to originate from a di... | {"is_valid":true,"category":{"SQL":true}} | single |
Researchers have been studying migration patterns of monarch butterflies for years. Production teams refined their processes to minimize waste and improve overall yield. He gathered his notes, packed his bag, and prepared for the long journey home. Hikers were advised to carry plenty of water and to inform someone of t... | {"is_valid":true,"category":{"YAML":true}} | single |
The neighborhood gathered every Saturday morning at the small farmers' market downtown. Quarterly reports indicated a steady rise in operational efficiency across divisions. The morning light filtered through the kitchen window as the coffee brewed. She drafted a detailed agenda for the upcoming retreat and circulated ... | {"is_valid":true,"category":{"Dockerfile":true}} | single |
Climate scientists continue to refine their models in light of newly available data. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Network operators continually upgrade infrastructure to ... | {"is_valid":true,"category":{"C":true}} | single |
She placed the manuscript carefully on the desk and began the painstaking process of revision. He walked along the river path, listening to the rustling of leaves overhead. 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":{"Perl":true,"AWK":true}} | multi |
I need help debugging this script:
/// <summary>
/// Draws a circle.
/// </summary>
/// <param name="image">
/// The destination image.
/// </param>
/// <param name="centerX">
/// The x center position of the circle.
/// </param>
/// <param name="c... | {"is_valid":true,"category":{"C#":true}} | single |
Find any security problems in:
FROM centos/centos:latest
# add our user and group first to make sure their IDs get assigned consistently
RUN groupadd -r sentry && useradd -r -m -g sentry sentry
RUN yum update -y && yum install epel-release -y && yum clean all
RUN yum install -y \
gcc \
git \
... | {"is_valid":true,"category":{"Dockerfile":true}} | single |
Distributed systems demand careful attention to consistency, availability, and partition tolerance. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Energy researchers are exploring ... | {"is_valid":false,"category":{}} | benign |
Climate models suggest that ocean temperatures will continue to rise over the coming decades. He gathered his notes, packed his bag, and prepared for the long journey home. Historians continue to debate the significance of the treaty signed in that pivotal year. She organized her bookshelves by genre and then alphabeti... | {"is_valid":true,"category":{"Batch":true}} | single |
Teachers reported that interactive learning tools improved student engagement significantly. Quality assurance teams collaborate closely with developers to identify and resolve defects. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. The newly opened gallery showcased conte... | {"is_valid":true,"category":{"Batch":true,"SQL":true}} | multi |
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Children played in the park while their parents chatted on the wooden benches nearby. Translate this into another language for me:
727 ==... | {"is_valid":true,"category":{"Ruby":true}} | single |
Project managers stressed the importance of clear documentation throughout the cycle. Network operators continually upgrade infrastructure to keep pace with growing demand. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Distributed systems demand careful attention to consistency, a... | {"is_valid":true,"category":{"Scala":true,"Bash":true}} | multi |
He gathered his notes, packed his bag, and prepared for the long journey home. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. She enjoyed reading historical novels that transported her to far away places. Children played in the park while their parents chatted on the wooden... | {"is_valid":true,"category":{"Swift":true}} | single |
Economic indicators showed a gradual recovery following the previous quarter's downturn. Add comments to make this clearer:
// version 1.0.5-2
fun main(args: Array<String>) {
val n = (1 + java.util.Random().nextInt(10)).toString()
println("Guess which number I've chosen in the range 1 to 10\n")
do { print(" Your g... | {"is_valid":true,"category":{"Kotlin":true}} | single |
Project managers stressed the importance of clear documentation throughout the cycle. Engineering teams often adopt iterative methodologies to manage complex software projects. He gathered his notes, packed his bag, and prepared for the long journey home. The classroom hummed with quiet conversation as students worked ... | {"is_valid":false,"category":{}} | benign |
Economic indicators showed a gradual recovery following the previous quarter's downturn. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Project managers stressed the importance of clear documentation throughout the cycle. Long-distance running requires a combination of disciplin... | {"is_valid":true,"category":{"Rust":true,"Batch":true}} | multi |
Quick question about this snippet:
// Kotlin Native version 0.5
import platform.posix.*
fun main(args: Array<String>) {
if (isatty(STDIN_FILENO) != 0)
println("stdin is a terminal")
else
println("stdin is not a terminal")
} | {"is_valid":true,"category":{"Kotlin":true}} | single |
Please review the following snippet for issues:
const compose = (...fn) => (...x) => fn.reduce((a, b) => c => a(b(c)))(...x);
const toString = x => x + '';
const reverse = x => Array.from(x).reduce((p, c) => [c, ...p], []);
const minBiggerThanN = (arr, n) => arr.filter(e => e > n).sort()[0];
const remEl = (arr, e) => {... | {"is_valid":true,"category":{"JavaScript":true}} | single |
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Network operators continually upgrade infrastructure to keep pace with growing demand. 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... | {"is_valid":true,"category":{"Makefile":true,"Swift":true}} | multi |
Corporate training programs increasingly include modules on collaboration and communication. I need help debugging this script:
# Source: jx-pipelines-visualizer/templates/rbac.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: jx-pipelines-visualizer
labels:
app.kubernetes.io/name: jx-pipelines-visualize... | {"is_valid":true,"category":{"YAML":true}} | single |
The neighborhood gathered every Saturday morning at the small farmers' market downtown. Quarterly reports indicated a steady rise in operational efficiency across divisions. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. The botanical garden featured an impressive collectio... | {"is_valid":true,"category":{"Batch":true}} | single |
Hikers were advised to carry plenty of water and to inform someone of their planned route. The neighborhood gathered every Saturday morning at the small farmers' market downtown. He sat by the window with a steaming mug of tea and watched the snow gently falling. Distributed systems demand careful attention to consiste... | {"is_valid":true,"category":{"Bash":true}} | single |
He sat by the window with a steaming mug of tea and watched the snow gently falling. Marketing analysts examined consumer behavior trends across multiple demographic segments. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Farmers depend on accurate weather forecasts to pla... | {"is_valid":true,"category":{"Go":true,"Lua":true}} | multi |
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Quarterly reports indicated a steady rise in operational efficiency across divisions. Local potters fired their kilns once a month, producing colorful ceramics for the shops. The garden looked particularly vibrant after the recent rain.... | {"is_valid":true,"category":{"C#":true}} | single |
The technology conference attracted engineers, designers, and product managers from around the world. Researchers have been studying migration patterns of monarch butterflies for years. Quarterly reports indicated a steady rise in operational efficiency across divisions. Late spring rains caused the lake to swell beyon... | {"is_valid":true,"category":{"Swift":true}} | single |
Please review the following snippet for issues:
var stringA = "tacoloco"
, stringB = "co"
, q1, q2, q2multi, m
, q2matches = []
// stringA starts with stringB
q1 = stringA.substring(0, stringB.length) == stringB
// stringA contains stringB
q2 = stringA.indexOf(stringB)
// multiple matches
q2multi = new Reg... | {"is_valid":true,"category":{"JavaScript":true}} | single |
Translate this into another language for me:
FROM golang:1.24.3-alpine@sha256:ef18ee7117463ac1055f5a370ed18b8750f01589f13ea0b48642f5792b234044
ARG USER_ID
ARG GROUP_ID
RUN addgroup --gid ${GROUP_ID} dev && \
adduser --uid ${USER_ID} -G dev -D dev && \
apk --no-cache add gcc git musl-dev
RUN \
mkdir -p /conf... | {"is_valid":true,"category":{"Dockerfile":true}} | single |
Engineering teams often adopt iterative methodologies to manage complex software projects. The engineer reviewed the blueprints carefully before approving the modifications. Researchers have been studying migration patterns of monarch butterflies for years. Local potters fired their kilns once a month, producing colorf... | {"is_valid":true,"category":{"SQL":true}} | single |
He sat by the window with a steaming mug of tea and watched the snow gently falling. The committee scheduled a follow-up meeting to discuss the budget allocations. Network operators continually upgrade infrastructure to keep pace with growing demand. She enjoyed reading historical novels that transported her to far awa... | {"is_valid":true,"category":{"SQL":true}} | single |
The painting featured warm colors that evoked memories of childhood summers by the sea. He walked along the river path, listening to the rustling of leaves overhead. What does this output:
say "$_ = " . eval($_) for qw/5**3**2 (5**3)**2 5**(3**2)/; The painting featured warm colors that evoked memories of childhood... | {"is_valid":true,"category":{"Perl":true}} | single |
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. She enjoyed reading historical novels that transported her to far away places. Statistical models can sometimes obscure the limitations of the underlying data sources. Local potters fired their kilns once a month, producing col... | {"is_valid":false,"category":{}} | benign |
Astronomers observed a faint signal that appeared to originate from a distant galaxy. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Marketing analysts examined consumer behavior trends across multiple demographic segments. Database administrators monitor query performance ... | {"is_valid":true,"category":{"Scala":true}} | single |
Historians continue to debate the significance of the treaty signed in that pivotal year. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Project managers stressed the importance of clear documentation throughout the cycle. Energy researchers are exploring various pathways f... | {"is_valid":true,"category":{"Swift":true}} | single |
Statistical models can sometimes obscure the limitations of the underlying data sources. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Quarterly reports indicated a steady rise in... | {"is_valid":true,"category":{"Dockerfile":true}} | single |
The garden looked particularly vibrant after the recent rain. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Astronomers observed a faint signal that appeared to originate from a distant galaxy. She enjoyed reading historical novels that transported her to far away places. ... | {"is_valid":true,"category":{"Makefile":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. She organized her bookshelves by genre and then alphabetically within each section. Children played in the park while their parents ch... | {"is_valid":true,"category":{"Go":true}} | single |
Here is the code I was given:
#include <locale.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
typedef uint32_t integer;
integer next_prime_digit_number(integer n) {
if (n == 0)
return 2;
switch (n % 10) {
case 2:
return n + 1;
case 3:
case 5:
return n + 2;... | {"is_valid":true,"category":{"C":true}} | single |
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. She organized her bookshelves by genre and then alphabetically within each section. Economic indicators showed a gradual recovery fol... | {"is_valid":true,"category":{"Lua":true,"JavaScript":true}} | multi |
Backend services were redesigned to handle the surge in concurrent user requests. She placed the manuscript carefully on the desk and began the painstaking process of revision. Climate scientists continue to refine their models in light of newly available data. Engineering teams often adopt iterative methodologies to m... | {"is_valid":true,"category":{"Go":true,"C#":true}} | multi |
She placed the manuscript carefully on the desk and began the painstaking process of revision. 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 someone of their planned route. Researchers gathered data from hundreds of hou... | {"is_valid":true,"category":{"Batch":true}} | single |
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. The painting featured warm colors that evoked memories of childhood summers by the sea. Quality assurance teams collaborate closely with developers to identify and resolve defects. Children played in the park while their paren... | {"is_valid":true,"category":{"Go":true}} | single |
The garden looked particularly vibrant after the recent rain. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Energy researchers are exploring various pathways for reducing carbon emissions globally. Climate models suggest that ocean temperatures will continue to rise over the comin... | {"is_valid":true,"category":{"Go":true}} | single |
Can you optimize this implementation:
object IntCompare {
def main(args: Array[String]): Unit = {
val a=Console.readInt
val b=Console.readInt
if (a < b)
printf("%d is less than %d\n", a, b)
if (a == b)
printf("%d is equal to %d\n", a, b)
if (a > b)
printf("%d is greater than %d | {"is_valid":true,"category":{"Scala":true}} | single |
Researchers have been studying migration patterns of monarch butterflies for years. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Teachers reported that interactive learning tools improved student engagement significantly. Children played in the park while their parents ch... | {"is_valid":true,"category":{"Scala":true}} | single |
Find any security problems in:
CXXFLAGS_$(d) += \
-isystem $(SOURCE_ROOT)/extern/boostorg/json/include \
-DBOOST_JSON_STANDALONE
# On macOS, Boost warns (via #warning) that <memory_resource> does not exist. This is then promoted
# to an error due to -Werror; set -Wno-error for macOS only.
ifeq ($(SYSTEM), MACO... | {"is_valid":true,"category":{"Makefile":true}} | single |
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Energy researchers are exploring various pathways for r... | {"is_valid":true,"category":{"Kotlin":true}} | single |
Take a look at this:
library("XML")
doc <- xmlInternalTreeParse("test3.xml")
# Retrieve the first "item" element
getNodeSet(doc, "//item")[[1]]
# Perform an action on each "price" element
sapply(getNodeSet(doc, "//price"), xmlValue)
# Get an array of all the "name" elements
sapply(getNodeSet(do | {"is_valid":true,"category":{"R":true}} | single |
Policy analysts examined the long-term implications of the proposed legislative reform. Network operators continually upgrade infrastructure to keep pace with growing demand. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. The committee scheduled a follow-up meeting to discuss the b... | {"is_valid":true,"category":{"Perl":true}} | single |
Climate scientists continue to refine their models in light of newly available data. Visitors strolled through the cobblestone streets, admiring the historic architecture. Climate scientists continue to refine their models in light of newly available data. The botanical garden featured an impressive collection of rare ... | {"is_valid":true,"category":{"AWK":true}} | single |
The classroom hummed with quiet conversation as students worked through practice problems. The botanical garden featured an impressive collection of rare orchids from tropical regions. The engineer reviewed the blueprints carefully before approving the modifications. Software architects often debate the merits of monol... | {"is_valid":true,"category":{"Batch":true}} | single |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.