prompt large_stringlengths 150 7.97k | target large_stringlengths 32 83 | kind large_stringclasses 3
values |
|---|---|---|
He walked along the river path, listening to the rustling of leaves overhead. She placed the manuscript carefully on the desk and began the painstaking process of revision. Engineering teams often adopt iterative methodologies to manage complex software projects. Statistical models can sometimes obscure the limitations... | {"is_valid":true,"category":{"Scala":true}} | single |
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Project managers stressed the importance of clear documentation throughout the cycle. Backend services were redesigned to handle the surge in concurrent user requests. Local potters fired their kilns once a month, producing colorful ce... | {"is_valid":true,"category":{"Perl":true,"Ruby":true}} | multi |
The painting featured warm colors that evoked memories of childhood summers by the sea. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Farmers depend on accurate weather forecasts to plan ... | {"is_valid":true,"category":{"C++":true,"Java":true}} | multi |
I need help debugging this script:
# include "rational"; # a reminder
def harmonic:
reduce range(1; 1+.) as $i ( r(0;1);
radd(.; r(1; $i) ));
def lpad($len): tostring | ($len - length) as $l | (" " * $l)[:$l] + .;
def task1:
"The first 20 harmonic numbers and the 100th, expressed in rational form, are:",
... | {"is_valid":true,"category":{"jq":true}} | single |
Climate models suggest that ocean temperatures will continue to rise over the coming decades. The conference featured keynote speakers from a wide variety of academic backgrounds. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. The library hosted a weekly book club focused o... | {"is_valid":false,"category":{}} | benign |
The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. He sat by the window with a steaming mug of tea and watched the snow gently falling. She drafted a detailed agenda for the upcoming retreat and... | {"is_valid":true,"category":{"C#":true}} | single |
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Climate scientists continue to refine their models in light of newly available data. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. The garden looked particularly vibrant after the ... | {"is_valid":true,"category":{"Batch":true}} | single |
Distributed systems demand careful attention to consistency, availability, and partition tolerance. Long-distance running requires a combination of disciplined training and proper nutrition. The newly opened gallery showcased contemporary works by emerging regional artists. She enjoyed reading historical novels that tr... | {"is_valid":true,"category":{"Go":true,"SQL":true}} | multi |
The technology conference attracted engineers, designers, and product managers from around the world. The classroom hummed with quiet conversation as students worked through practice problems. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Backend services were redes... | {"is_valid":true,"category":{"Ruby":true,"YAML":true}} | multi |
Astronomers observed a faint signal that appeared to originate from a distant galaxy. Project managers stressed the importance of clear documentation throughout the cycle. Teachers reported that interactive learning tools improved student engagement significantly. Visitors strolled through the cobblestone streets, admi... | {"is_valid":true,"category":{"Batch":true}} | single |
The neighborhood gathered every Saturday morning at the small farmers' market downtown. Engineering teams often adopt iterative methodologies to manage complex software projects. Climate scientists continue to refine their models in light of newly available data. Can you optimize this implementation:
// version 1.1.0 (... | {"is_valid":true,"category":{"Kotlin":true}} | single |
Please review the following snippet for issues:
var a = [];
for (var i = 1; i < 23; i++) a[i] = i + Math.floor(1/2 + Math.sqrt(i));
console.log(a);
for (i = 1; i < 1000000; i++) if (Number.isInteger(i + Math.floor(1/2 + Math.sqrt(i))) === false) {
console.log("The ",i,"th element of the sequence is a square");
} | {"is_valid":true,"category":{"JavaScript":true}} | single |
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Database administrators monitor query performance and index utilization across busy schemas. She organized her bookshelves by genre a... | {"is_valid":true,"category":{"Bash":true}} | single |
Teachers reported that interactive learning tools improved student engagement significantly. She enjoyed reading historical novels that transported her to far away places. Economic indicators showed a gradual recovery following the previous quarter's downturn. Travelers explored ancient ruins, marveling at the craftsma... | {"is_valid":true,"category":{"Batch":true,"C++":true}} | multi |
Run the following:
public class ArrayCallback7 {
interface IntConsumer {
void run(int x);
}
interface IntToInt {
int run(int x);
}
static void forEach(int[] arr, IntConsumer consumer) {
for (int i : arr) {
consumer.run(i);
}
}
static void u... | {"is_valid":true,"category":{"Java":true,"Swift":true}} | multi |
The community center offered free workshops on photography, pottery, and creative writing. Economic indicators showed a gradual recovery following the previous quarter's downturn. What does this output:
function Test-SelfDescribing ([int]$Number)
{
[int[]]$digits = $Number.ToString().ToCharArray() | ForEach-Object ... | {"is_valid":true,"category":{"PowerShell":true,"AWK":true}} | multi |
Energy researchers are exploring various pathways for reducing carbon emissions globally. Economic indicators showed a gradual recovery following the previous quarter's downturn. Quick question about this snippet:
#!/usr/bin/env bash
declare -i -a CRC32_LOOKUP_TABLE
__generate_crc_lookup_table() {
local -i -r LSB_C... | {"is_valid":true,"category":{"Bash":true}} | single |
Visitors strolled through the cobblestone streets, admiring the historic architecture. Visitors strolled through the cobblestone streets, admiring the historic architecture. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. A gentle breeze drifted across the meadow as the sun ... | {"is_valid":true,"category":{"Bash":true}} | single |
He sat by the window with a steaming mug of tea and watched the snow gently falling. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Researchers gathered data from hundreds of households participating in the longitudinal study. She enjoyed reading historical novels that tra... | {"is_valid":true,"category":{"Lua":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. Researchers gathered data from hundreds of households participating in the longitudinal study. Could you explain what this code does:
vert... | {"is_valid":true,"category":{"C":true}} | single |
I need help debugging this script:
// version 1.1.2
open class Point(var x: Int, var y: Int) {
constructor(): this(0, 0)
constructor(x: Int) : this(x, 0)
constructor(p: Point) : this(p.x, p.y)
open protected fun finalize() = println("Finalizing $this...")
override fun toString() = "Point a... | {"is_valid":true,"category":{"Kotlin":true}} | single |
The newly opened gallery showcased contemporary works by emerging regional artists. Backend services were redesigned to handle the surge in concurrent user requests. He sat by the window with a steaming mug of tea and watched the snow gently falling. Teachers reported that interactive learning tools improved student en... | {"is_valid":true,"category":{"Rust":true,"C++":true}} | multi |
I copied this from the docs:
module "rds" {
source = "../modules/database"
identifier = "collaction-${var.environment}"
instance_class = var.rds_instance_class
allocated_storage = var.rds_allocated_storage
backup_retention_period = 7
performance_in | {"is_valid":true,"category":{"Terraform":true}} | single |
The committee scheduled a follow-up meeting to discuss the budget allocations. Researchers gathered data from hundreds of households participating in the longitudinal study. Network operators continually upgrade infrastructure to keep pace with growing demand. She drafted a detailed agenda for the upcoming retreat and ... | {"is_valid":true,"category":{"Go":true}} | single |
Quality assurance teams collaborate closely with developers to identify and resolve defects. Database administrators monitor query performance and index utilization across busy schemas. Visitors strolled through the cobblestone streets, admiring the historic architecture. He walked along the river path, listening to th... | {"is_valid":true,"category":{"Java":true,"C":true}} | multi |
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. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Public libraries have evolved into community hubs offering fa... | {"is_valid":true,"category":{"Perl":true,"Lua":true}} | multi |
Take a look at this:
var tokens = 12
while tokens != 0 {
print("Tokens remaining: \(tokens)\nPlease enter a number between 1 and 3: ", terminator: "")
guard let input = readLine(), let n = Int(input), n >= 1 && n <= 3 else {
fatalError("Invalid input")
}
tokens -= n
if tokens == 0 {
print("You... | {"is_valid":true,"category":{"Swift":true}} | single |
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. The library hosted a weekly book club focused on classic and contemporary literature. Children played in the park while their parents chatted on... | {"is_valid":true,"category":{"JavaScript":true}} | single |
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Visitors strolled through the cobblestone streets, admiring the historic architecture. Researchers gathered data from hundreds of households participating in the longitudinal study. Visitors strolled through the cobblestone streets, adm... | {"is_valid":true,"category":{"Ruby":true}} | single |
Late spring rains caused the lake to swell beyond its usual seasonal boundaries. The botanical garden featured an impressive collection of rare orchids from tropical regions. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. I copied this from the docs:
object UTF8 extends App... | {"is_valid":true,"category":{"Scala":true}} | single |
Astronomers observed a faint signal that appeared to originate from a distant galaxy. Please review the following snippet for issues:
BEGIN {
while(1) {
print "SPAM"
}
} Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Researchers gathered data from hundreds of households partici... | {"is_valid":true,"category":{"AWK":true}} | single |
Could you explain what this code does:
# assign an empty string to a variable
s=""
# the "test" command can determine truth by examining the string itself
if [ "$s" ]; then echo "not empty"; else echo "empty"; fi
# compare the string to the empty string
if [ "$s" = "" ]; then echo "s is the empty string"; fi
if [ | {"is_valid":true,"category":{"Bash":true}} | single |
The engineer reviewed the blueprints carefully before approving the modifications. Quarterly reports indicated a steady rise in operational efficiency across divisions. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. He wandered through the old bookstore, occasionally pullin... | {"is_valid":true,"category":{"Terraform":true}} | single |
The morning light filtered through the kitchen window as the coffee brewed. I copied this from the docs:
static void Swap<T>(ref T a, ref T b)
{
T temp = a;
a = b;
b = temp;
} | {"is_valid":true,"category":{"C#":true}} | single |
Take a look at this:
extern crate num;
use std::cmp;
use num::bigint::BigUint;
fn cumu(n: usize, cache: &mut Vec<Vec<BigUint>>) {
for l in cache.len()..n+1 {
let mut r = vec![BigUint::from(0u32)];
for x in 1..l+1 {
let prev = r[r.len() - 1].clone();
r.push(prev + cache[l-... | {"is_valid":true,"category":{"Rust":true}} | single |
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Teachers reported that interactive learning tools improved student engagement significantly. Distributed systems demand carefu... | {"is_valid":false,"category":{}} | benign |
He gathered his notes, packed his bag, and prepared for the long journey home. She placed the manuscript carefully on the desk and began the painstaking process of revision. The newly opened gallery showcased contemporary works by emerging regional artists. Add comments to make this clearer:
with open('xxx.txt') as f:
... | {"is_valid":true,"category":{"Python":true}} | single |
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. Historians continue to debate the significance of the treaty signed in that pivotal year. Economic indicators showed a gradual recovery follow... | {"is_valid":true,"category":{"jq":true}} | single |
Translate this into another language for me:
// version 1.1.4-3
val r = Regex("[ ]+")
val table =
"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 FO... | {"is_valid":true,"category":{"Kotlin":true}} | single |
Quarterly reports indicated a steady rise in operational efficiency across divisions. Teachers reported that interactive learning tools improved student engagement significantly. Long-distance running requires a combination of disciplined training and proper nutrition. Refactor the function below:
package main
import... | {"is_valid":true,"category":{"Go":true,"Rust":true}} | multi |
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. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Local musicians performed acoustic sets every Friday evening at the small ... | {"is_valid":true,"category":{"Dockerfile":true,"Swift":true,"Scala":true}} | multi |
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. 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. Astronomers observed a faint signal that appeared to... | {"is_valid":true,"category":{"PowerShell":true}} | single |
Long-distance running requires a combination of disciplined training and proper nutrition. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Network operators continually upgrade infrastructure to keep pace with growing demand. She enjoyed reading historical novels that transp... | {"is_valid":true,"category":{"Lua":true,"AWK":true}} | multi |
Quick question about this snippet:
using System;
namespace RosettaCode.SetOfRealNumbers
{
public class Set<TValue>
{
public Set(Predicate<TValue> contains)
{
Contains = contains;
}
public Predicate<TValue> Contains
{
get;
private se... | {"is_valid":true,"category":{"C#":true}} | single |
Quick question about this snippet:
<html style="margin: 0;">
<head>
<title>Minimal WebGL Example</title>
<!-- This use of <script> elements is so that we can have multiline text
without quoting it inside of JavaScript; the web browser doesn't
actually do anything besides store the text of th... | {"is_valid":true,"category":{"JavaScript":true}} | single |
Take a look at this:
const starttxt = """
ATTENTION ALL WUMPUS LOVERS!!!
THERE ARE NOW TWO ADDITIONS TO THE WUMPUS FAMILY
OF PROGRAMS.
WUMP2: SOME DIFFERENT CAVE ARRANGEMENTS
WUMP3: DIFFERENT HAZARDS
"""
const helptxt = """
WELCOME TO 'HUNT THE WUMPUS'
THE WUMPUS LIVES IN... | {"is_valid":true,"category":{"JavaScript":true}} | single |
She placed the manuscript carefully on the desk and began the painstaking process of revision. Production teams refined their processes to minimize waste and improve overall yield. | {"is_valid":false,"category":{}} | benign |
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Here is the code I was given:
use std::fmt;
#[derive(Clone,Copy)]
struct Point {
x: f64,
y: f64
}
fn distance (p1: Point, p2: Point) -> f64 {
((p1.x - p2.x).powi(2) + (p1.y - p2.y).powi(2)).sqrt()
}
impl fmt::Displ... | {"is_valid":true,"category":{"Rust":true,"Bash":true}} | multi |
Could you explain what this code does:
@echo off
setlocal enabledelayedexpansion
mode con cols=103
echo Given$a$text$file$of$many$lines,$where$fields$within$a$line$ >file.txt
echo are$delineated$by$a$single$'dollar'$character,$write$a$program! >>file.txt
echo that$aligns$each$column$of$fields$by$ensuring$that$words$ | {"is_valid":true,"category":{"Batch":true}} | single |
She enjoyed reading historical novels that transported her to far away places. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Run the following:
CREATE TABLE products_booked (product_i... | {"is_valid":true,"category":{"SQL":true}} | single |
The newly opened gallery showcased contemporary works by emerging regional artists. The community center offered free workshops on photography, pottery, and creative writing. The garden looked particularly vibrant after the recent rain. The newly opened gallery showcased contemporary works by emerging regional artists.... | {"is_valid":false,"category":{}} | benign |
Local potters fired their kilns once a month, producing colorful ceramics for the shops. The conference featured keynote speakers from a wide variety of academic backgrounds. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Researchers gathered data from hundreds of househol... | {"is_valid":false,"category":{}} | benign |
Marketing analysts examined consumer behavior trends across multiple demographic segments. Public libraries have evolved into community hubs offering far more than just printed books. Production teams refined their processes to minimize waste and improve overall yield. She enjoyed reading historical novels that transpo... | {"is_valid":true,"category":{"Ruby":true,"Terraform":true}} | multi |
Hikers were advised to carry plenty of water and to inform someone of their planned route. Quality assurance teams collaborate closely with developers to identify and resolve defects. Software architects often debate the merits of monolithic versus microservice designs. Researchers gathered data from hundreds of househ... | {"is_valid":false,"category":{}} | benign |
Run the following:
#include <algorithm> //std::max_element
#include <iterator> //std::begin and std::end
#include <functional> //std::less
template<class It, class Comp = std::less<>>
//requires ForwardIterator<It> && Compare<Comp>
constexpr auto max_value(It first, It last, Comp compare = std::less{})
{
/... | {"is_valid":true,"category":{"C++":true}} | single |
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Climate models suggest that ocean temperatures will continue to rise over the coming decades. The newly opened gallery showcased contemporary works by emerging regional artists. Travelers explored ancient ruins, marveling at the crafts... | {"is_valid":true,"category":{"SQL":true,"Lua":true}} | multi |
He walked along the river path, listening to the rustling of leaves overhead. Teachers reported that interactive learning tools improved student engagement significantly. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Volunteers spent the weekend cleaning up the riverside trail and ... | {"is_valid":true,"category":{"Terraform":true}} | single |
Historians continue to debate the significance of the treaty signed in that pivotal year. 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. Researchers gathered data from hundreds of househo... | {"is_valid":false,"category":{}} | benign |
Database administrators monitor query performance and index utilization across busy schemas. The painting featured warm colors that evoked memories of childhood summers by the sea. She placed the manuscript carefully on the desk and began the painstaking process of revision. Statistical models can sometimes obscure the... | {"is_valid":true,"category":{"Ruby":true}} | single |
The morning light filtered through the kitchen window as the coffee brewed. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Here is the code I was given:
math.randomseed(os.time())
local function shuffle(t)
for i = #t, 2, -1 do
local j = math.random(i)
t[i], t[j] = ... | {"is_valid":true,"category":{"Lua":true}} | single |
Public libraries have evolved into community hubs offering far more than just printed books. Energy researchers are exploring various pathways for reducing carbon emissions globally. Here is the code I was given:
CREATE TABLE Player (player_name VARCHAR, player_api_id VARCHAR); CREATE TABLE Player_Attributes (player_ap... | {"is_valid":true,"category":{"SQL":true}} | single |
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. He sat by the window with a steaming mug of tea and watched the snow gently falling. Hikers were advised to carry plenty of water and to inform someone of their planned route. Public libraries have evolved into community hubs o... | {"is_valid":true,"category":{"SQL":true}} | single |
I copied this from the docs:
using System;
using System.Collections.Generic;
using System.Linq;
public static class LongPrimes
{
public static void Main() {
var primes = SomePrimeGenerator.Primes(64000).Skip(1).Where(p => Period(p) == p - 1).Append(99999);
Console.WriteLine(string.Join(" ", primes... | {"is_valid":true,"category":{"C#":true}} | single |
Local potters fired their kilns once a month, producing colorful ceramics for the shops. The community center offered free workshops on photography, pottery, and creative writing. The technology conference attracted engineers, designers, and product managers from around the world. Economic indicators showed a gradual r... | {"is_valid":true,"category":{"JavaScript":true}} | single |
Could you explain what this code does:
CREATE TABLE nomination (Festival_ID VARCHAR, Artwork_ID VARCHAR); CREATE TABLE festival_detail (Festival_Name VARCHAR, Festival_ID VARCHAR); CREATE TABLE artwork (Artwork_ID VARCHAR);
SELECT T1.Festival_ID, T3.Festival_Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ | {"is_valid":true,"category":{"SQL":true}} | single |
Marketing analysts examined consumer behavior trends across multiple demographic segments. Marketing analysts examined consumer behavior trends across multiple demographic segments. She organized her bookshelves by genre and then alphabetically within each section. The classroom hummed with quiet conversation as studen... | {"is_valid":true,"category":{"C++":true,"Java":true}} | multi |
He gathered his notes, packed his bag, and prepared for the long journey home. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. The neighborhood gathered every Saturday morning at the small farmers' market downtown. The newly opened gallery showcased contemporary works by emerging re... | {"is_valid":true,"category":{"Python":true}} | single |
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. She enjoyed reading historical novels that transported her to far away places. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Local musicians performed acoustic sets every Friday evening at the smal... | {"is_valid":true,"category":{"Scala":true}} | single |
The library hosted a weekly book club focused on classic and contemporary literature. The morning light filtered through the kitchen window as the coffee brewed. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Software architects often debate the merits of monolithic versus ... | {"is_valid":true,"category":{"JavaScript":true}} | single |
Statistical models can sometimes obscure the limitations of the underlying data sources. Hikers were advised to carry plenty of water and to inform someone of their planned route. Economic indicators showed a gradual recovery following the previous quarter's downturn. The painting featured warm colors that evoked memor... | {"is_valid":true,"category":{"Scala":true,"Lua":true}} | multi |
He sat by the window with a steaming mug of tea and watched the snow gently falling. Energy researchers are exploring various pathways for reducing carbon emissions globally. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. The committee scheduled a follow-up meeting to discu... | {"is_valid":true,"category":{"Python":true}} | single |
The library hosted a weekly book club focused on classic and contemporary literature. Network operators continually upgrade infrastructure to keep pace with growing demand. Run the following:
A = { ["John"] = true, ["Bob"] = true, ["Mary"] = true, ["Serena"] = true }
B = { ["Jim"] = true, ["Mary"] = true, ["John"] = tr... | {"is_valid":true,"category":{"Lua":true}} | single |
The neighborhood gathered every Saturday morning at the small farmers' market downtown. Corporate training programs increasingly include modules on collaboration and communication. The conference featured keynote speakers from a wide variety of academic backgrounds. He adjusted the telescope and waited patiently for th... | {"is_valid":true,"category":{"C":true}} | single |
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. The committee scheduled a follow-up meeting to discuss the budget allocations. | {"is_valid":false,"category":{}} | benign |
Quick question about this snippet:
using System;
using System.Collections.Generic;
namespace RosettaCode
{
class Program
{
static void Main()
{
// Create a queue and "push" items into it
Queue<int> queue = new Queue<int>();
queue.Enqueue(1);
que... | {"is_valid":true,"category":{"C#":true,"Lua":true}} | multi |
Energy researchers are exploring various pathways for reducing carbon emissions globally. Network operators continually upgrade infrastructure to keep pace with growing demand. Run the following:
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster d... | {"is_valid":true,"category":{"Dockerfile":true}} | single |
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Local potters fired their kilns once a month, producing colorful c... | {"is_valid":false,"category":{}} | benign |
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Researchers have been studying migration patterns of monarch butterflies for years. She organized her bookshelves by genre and then alphabetically within each section. Historians continue to debate the significance of the treat... | {"is_valid":true,"category":{"PowerShell":true}} | single |
Children played in the park while their parents chatted on the wooden benches nearby. What does this output:
FROM centos:centos7
MAINTAINER The CentOS Project <cloud-ops@centos.org
ENV container docker
LABEL RUN="docker run -it --name NAME --privileged --ipc=host --net=host --pid=host -e HOST=/host -e NAME=NAME -e IMA... | {"is_valid":true,"category":{"Dockerfile":true}} | single |
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Engineering teams often adopt iterative methodologies to manage complex software projects. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Nutritionists generally recommend a balanced diet rich in w... | {"is_valid":false,"category":{}} | benign |
Can you optimize this implementation:
## Install openfisca-core for deployment and publishing.
build:
@## This allows us to be sure tests are run against the packaged version
@## of openfisca-core, the same we put in the hands of users and reusers.
@$(call print_help,$@:)
@pip install --upgrade pip build twine
@ | {"is_valid":true,"category":{"Makefile":true}} | single |
The morning light filtered through the kitchen window as the coffee brewed. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Researchers have been studying migration patterns of monarch butterflies for years. Travelers explored ancient ruins, marveling at the craftsmanship o... | {"is_valid":false,"category":{}} | benign |
The botanical garden featured an impressive collection of rare orchids from tropical regions. Project managers stressed the importance of clear documentation throughout the cycle. Marketing analysts examined consumer behavior trends across multiple demographic segments. The painting featured warm colors that evoked mem... | {"is_valid":true,"category":{"Swift":true}} | single |
Production teams refined their processes to minimize waste and improve overall yield. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Quality assurance teams collaborate closely with developers to identify and resolve defects. The chef prepared a simple meal of roasted veget... | {"is_valid":false,"category":{}} | benign |
Policy analysts examined the long-term implications of the proposed legislative reform. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. The bakery on the corner was famous for its sourdough ... | {"is_valid":true,"category":{"Kotlin":true,"SQL":true}} | multi |
Here is the code I was given:
sub cholesky {
my $matrix = shift;
my $chol = [ map { [(0) x @$matrix ] } @$matrix ];
for my $row (0..@$matrix-1) {
for my $col (0..$row) {
my $x = $$matrix[$row][$col];
$x -= $$chol[$row][$_]*$$chol[$col][$_] for 0..$col;
$$chol[$row][$col] = $row == $co... | {"is_valid":true,"category":{"Perl":true}} | single |
Astronomers observed a faint signal that appeared to originate from a distant galaxy. Network operators continually upgrade infrastructure to keep pace with growing demand. Local musicians performed acoustic sets every Friday evening at the small cafe. Long-distance running requires a combination of disciplined trainin... | {"is_valid":true,"category":{"R":true}} | single |
Energy researchers are exploring various pathways for reducing carbon emissions globally. Researchers gathered data from hundreds of households participating in the longitudinal study. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Software architects often debate the merits of ... | {"is_valid":true,"category":{"Java":true}} | single |
The painting featured warm colors that evoked memories of childhood summers by the sea. 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. The neighborhood gathered every Saturday morn... | {"is_valid":false,"category":{}} | benign |
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. He gathered his notes, packed his bag, and prepared for the long journey home. Production teams refined their processes to minimize waste and improve overall yield. I copied this from the docs:
echo -n "The quick brown fox jumped over t... | {"is_valid":true,"category":{"Bash":true,"Scala":true,"C":true}} | multi |
He sat by the window with a steaming mug of tea and watched the snow gently falling. Network operators continually upgrade infrastructure to keep pace with growing demand. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. The newly opened gallery showcased contemporary works b... | {"is_valid":true,"category":{"Python":true}} | single |
Policy analysts examined the long-term implications of the proposed legislative reform. Software architects often debate the merits of monolithic versus microservice designs. Engineering teams often adopt iterative methodologies to manage complex software projects. She organized her bookshelves by genre and then alphab... | {"is_valid":true,"category":{"R":true,"C":true}} | multi |
I copied this from the docs:
@echo off
setlocal enabledelayedexpansion
%== Initialization ==%
set "numbers=123, 12345, 1234567, 987654321, 10001, -10001, -123, -100, 100, -12345, 1, 2, -1, -10, 2002, -2002, 0"
%== The Main Thing ==%
for %%N in (%numbers%) do (
call :middle3 %%N
)
echo.
pause
exit /b 0
%==/The M... | {"is_valid":true,"category":{"Batch":true}} | single |
She enjoyed reading historical novels that transported her to far away places. The painting featured warm colors that evoked memories of childhood summers by the sea. Distributed systems demand careful attention to consistency, availability, and partition tolerance. The garden looked particularly vibrant after the rece... | {"is_valid":true,"category":{"jq":true}} | single |
Project managers stressed the importance of clear documentation throughout the cycle. Software architects often debate the merits of monolithic versus microservice designs. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Run the following:
CREATE TABLE campuses (id VARCHAR, campus VA... | {"is_valid":true,"category":{"SQL":true}} | single |
Marketing analysts examined consumer behavior trends across multiple demographic segments. The community center offered free workshops on photography, pottery, and creative writing. Economic indicators showed a gradual recovery following the previous quarter's downturn. She enjoyed reading historical novels that transp... | {"is_valid":true,"category":{"Kotlin":true}} | single |
Project managers stressed the importance of clear documentation throughout the cycle. I copied this from the docs:
@echo off
setlocal ENABLEDELAYEDEXPANSION
set n=15
set /A nn=n+1
for /L %%i in (0,1,%nn%) do set t.%%i=0
set t.1=1
for /L %%i in (1,1,%n%) do (
set /A ip=%%i+1
for /L %%j in (%%i,-1,1) do (
... | {"is_valid":true,"category":{"Batch":true}} | single |
Network operators continually upgrade infrastructure to keep pace with growing demand. Policy analysts examined the long-term implications of the proposed legislative reform. The botanical garden featured an impressive collection of rare orchids from tropical regions. Teachers reported that interactive learning tools i... | {"is_valid":true,"category":{"Python":true}} | single |
The painting featured warm colors that evoked memories of childhood summers by the sea. He sat by the window with a steaming mug of tea and watched the snow gently falling. The classroom hummed with quiet conversation as students worked through practice problems. Economic indicators showed a gradual recovery following ... | {"is_valid":false,"category":{}} | benign |
Engineering teams often adopt iterative methodologies to manage complex software projects. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Teachers reported that interactive learning tools ... | {"is_valid":true,"category":{"Python":true}} | single |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.