prompt large_stringlengths 150 7.97k | target large_stringlengths 32 83 | kind large_stringclasses 3
values |
|---|---|---|
Statistical models can sometimes obscure the limitations of the underlying data sources. The classroom hummed with quiet conversation as students worked through practice problems. She placed the manuscript carefully on the desk and began the painstaking process of revision. He adjusted the telescope and waited patientl... | {"is_valid":true,"category":{"Ruby":true,"jq":true}} | multi |
The committee scheduled a follow-up meeting to discuss the budget allocations. Climate scientists continue to refine their models in light of newly available data. Production teams refined their processes to minimize waste and improve overall yield. Network operators continually upgrade infrastructure to keep pace with... | {"is_valid":true,"category":{"Terraform":true}} | single |
The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. The garden looked particularly vibrant after the recent rain. He walked along the river path, listening to the rustling of leaves overhead. The morning light filtered through the kitchen window as the coffee brewed. Climate mod... | {"is_valid":true,"category":{"Batch":true}} | single |
The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Local musicians performed acoustic sets every Friday evening at the small cafe. She organized her bookshelves by genre and then alphabetically within each section. Project managers stressed the importance of clear documentation... | {"is_valid":true,"category":{"Kotlin":true,"Bash":true}} | multi |
Climate scientists continue to refine their models in light of newly available data. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. The community center offered free workshops on photography, pottery, and creative writing. Take a look at this:
package main
import (
"golang... | {"is_valid":true,"category":{"Go":true}} | single |
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. 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. Visitors strolled through the cobblestone str... | {"is_valid":true,"category":{"Dockerfile":true}} | single |
Could you explain what this code does:
:: Stable Marriage Problem in Rosetta Code
:: Batch File Implementation
@echo off
setlocal enabledelayedexpansion
:: Initialization (Index Starts in 0)
set "male=abe bob col dan ed fred gav hal ian jon"
set "femm=abi bea cath dee eve fay gay hope ivy jan"
set "abe[]=abi, eve,... | {"is_valid":true,"category":{"Batch":true}} | single |
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Here is the code I was given:
#region Define the Windows Form
[Void][Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
$Form1 = New-Object System.Windows.Forms.Form
$label1 = New-Object System.Windows.Forms.Label... | {"is_valid":true,"category":{"PowerShell":true,"Dockerfile":true,"R":true}} | multi |
Can you optimize this implementation:
import java.awt._
import java.awt.geom.Path2D
import javax.swing._
object Pentagram extends App {
SwingUtilities.invokeLater(() =>
new JFrame("Pentagram") {
class Pentagram extends JPanel {
setPreferredSize(new Dimension(640, 640))
setBackground(... | {"is_valid":true,"category":{"Scala":true}} | single |
Researchers have been studying migration patterns of monarch butterflies for years. Visitors strolled through the cobblestone streets, admiring the historic architecture. Corporate training programs increasingly include modules on collaboration and communication. The technology conference attracted engineers, designers... | {"is_valid":true,"category":{"Kotlin":true}} | single |
He sat by the window with a steaming mug of tea and watched the snow gently falling. Find any security problems in:
pub trait Codec<Input = u8> {
type Output: Iterator<Item = u8>;
fn accept(&mut self, input: Input) -> Self::Output;
fn finish(self) -> Self::Output;
}
#[derive(Debug)]
pub struct BitDiscar... | {"is_valid":true,"category":{"Rust":true,"R":true,"Bash":true}} | multi |
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. What does this output:
def palindrome?(s)
s == s.reverse
end
require 'test/unit'
class MyTests < Test::Unit::TestCase
def test_palindrome_ok
assert(palindrome? "aba")
end
def test_palindrome_nok
assert_equal(false, ... | {"is_valid":true,"category":{"Ruby":true}} | single |
Statistical models can sometimes obscure the limitations of the underlying data sources. Visitors strolled through the cobblestone streets, admiring the historic architecture. He sat by the window with a steaming mug of tea and watched the snow gently falling. The neighborhood gathered every Saturday morning at the sma... | {"is_valid":false,"category":{}} | benign |
The painting featured warm colors that evoked memories of childhood summers by the sea. 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. Production teams refined their processes to minimize wa... | {"is_valid":true,"category":{"PowerShell":true}} | single |
He gathered his notes, packed his bag, and prepared for the long journey home. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Policy analysts examined the long-term implications of the proposed legislative reform. Economic indicators showed a gradual recovery following the pre... | {"is_valid":false,"category":{}} | benign |
Hikers were advised to carry plenty of water and to inform someone of their planned route. Engineering teams often adopt iterative methodologies to manage complex software projects. Hikers were advised to carry plenty of water and to inform someone of their planned route. She placed the manuscript carefully on the desk... | {"is_valid":true,"category":{"Python":true}} | single |
Project managers stressed the importance of clear documentation throughout the cycle. Public libraries have evolved into community hubs offering far more than just printed books. Hikers were advised to carry plenty of water and to inform someone of their planned route. Nutritionists generally recommend a balanced diet ... | {"is_valid":true,"category":{"Python":true}} | single |
He sat by the window with a steaming mug of tea and watched the snow gently falling. 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. Local potters fired their kilns once a month, pro... | {"is_valid":true,"category":{"Rust":true,"Scala":true}} | multi |
Local potters fired their kilns once a month, producing colorful ceramics for the shops. Policy analysts examined the long-term implications of the proposed legislative reform. I need help debugging this script:
use std::error::Error;
use std::marker::PhantomData;
use std::path::{Path, PathBuf};
use std::{env, fmt, io,... | {"is_valid":true,"category":{"Rust":true}} | single |
Researchers have been studying migration patterns of monarch butterflies for years. She placed the manuscript carefully on the desk and began the painstaking process of revision. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Energy researchers are exploring various pathways for red... | {"is_valid":false,"category":{}} | benign |
Engineering teams often adopt iterative methodologies to manage complex software projects. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. He sat by the window with a steaming mug of tea and watched the snow gently falling. Researchers have been studying migration patterns o... | {"is_valid":true,"category":{"Perl":true}} | single |
Could you explain what this code does:
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Versi... | {"is_valid":true,"category":{"Dockerfile":true}} | single |
Quick question about this snippet:
package main
import (
"fmt"
"log"
)
func ms(n int) (int, []int) {
M := func(x int) int { return (x + n - 1) % n }
if n <= 0 || n&1 == 0 {
n = 5
log.Println("forcing size", n)
}
m := make([]int, n*n)
i, j := 0, n/2
for k := 1; k <= n*... | {"is_valid":true,"category":{"Go":true}} | single |
Local potters fired their kilns once a month, producing colorful ceramics for the shops. 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. Teachers reported that interactive learning tools improved st... | {"is_valid":true,"category":{"SQL":true}} | single |
Quick question about this snippet:
func reverseString(s:String)->String{
var temp = [Character]()
for i in s.characters{
temp.append(i)
}
var j=s.characters.count-1
for i in s.characters{
temp[j]=i
j-=1
}
return String(temp)
}
func reverseWord(s:String)->Strin | {"is_valid":true,"category":{"Swift":true}} | single |
Corporate training programs increasingly include modules on collaboration and communication. Policy analysts examined the long-term implications of the proposed legislative reform. Run the following:
if (somecondition) {
exit
} Marketing analysts examined consumer behavior trends across multiple demographic segment... | {"is_valid":true,"category":{"PowerShell":true}} | single |
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Production teams refined their processes to minimize waste and improve overall yield. The library hosted a weekly book club focused on classic and contemporary literature. Database administrators monitor query performance and i... | {"is_valid":true,"category":{"Dockerfile":true,"Go":true,"PowerShell":true}} | multi |
Find any security problems in:
object NDN extends App {
val narc: Int => Int = n => (n.toString map (_.asDigit) map (math.pow(_, n.toString.size)) sum) toInt
val isNarc: Int => Boolean = i => i == narc(i)
println((Iterator from 0 filter isNarc take 25 toList) mkString(" "))
}
Alongside it, this:
// version... | {"is_valid":true,"category":{"Scala":true,"Kotlin":true,"Terraform":true}} | multi |
Energy researchers are exploring various pathways for reducing carbon emissions globally. Historians continue to debate the significance of the treaty signed in that pivotal year. Climate scientists continue to refine their models in light of newly available data. The community center offered free workshops on photogra... | {"is_valid":true,"category":{"SQL":true}} | single |
Quick question about this snippet:
#include <iostream>
#include <tr1/memory>
using std::tr1::shared_ptr;
using std::tr1::enable_shared_from_this;
struct Arg {
virtual int run() = 0;
virtual ~Arg() { };
};
int A(int, shared_ptr<Arg>, shared_ptr<Arg>, shared_ptr<Arg>,
shared_ptr<Arg>, shared_ptr<Arg>); | {"is_valid":true,"category":{"C++":true}} | single |
The newly opened gallery showcased contemporary works by emerging regional artists. Quick question about this snippet:
using System.Collections.Generic;
using static System.Linq.Enumerable;
using static System.Console;
using static System.Math;
namespace N_Queens
{
static class Program
{
static void M... | {"is_valid":true,"category":{"C#":true,"R":true}} | multi |
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Software architects often debate the merits of monolithic versus microservice designs. Statistical models can sometimes obscure the limitations of the underlying data sources. Economic indicators showed a gradual recovery followin... | {"is_valid":true,"category":{"C#":true}} | single |
Energy researchers are exploring various pathways for reducing carbon emissions globally. The garden looked particularly vibrant after the recent rain. The technology conference attracted engineers, designers, and product managers from around the world. Marketing analysts examined consumer behavior trends across multip... | {"is_valid":true,"category":{"YAML":true}} | single |
She enjoyed reading historical novels that transported her to far away places. 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. The botanical garden featured an impressive collection... | {"is_valid":true,"category":{"Java":true}} | single |
The newly opened gallery showcased contemporary works by emerging regional artists. Project managers stressed the importance of clear documentation throughout the cycle. Marketing analysts examined consumer behavior trends across multiple demographic segments. The conference featured keynote speakers from a wide variet... | {"is_valid":true,"category":{"Lua":true}} | single |
Policy analysts examined the long-term implications of the proposed legislative reform. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. She organized her bookshelves by genre and then alphabeti... | {"is_valid":true,"category":{"PowerShell":true}} | single |
Software architects often debate the merits of monolithic versus microservice designs. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Climate scientists continue to refine their models in light of newly available data. He walked along the river path, listening to the rustling of... | {"is_valid":true,"category":{"JavaScript":true,"Bash":true}} | multi |
Translate this into another language for me:
# Shuffle an _array_ with indexes from 1 to _len_.
function shuffle(array, len, i, j, t) {
for (i = len; i > 1; i--) {
# j = random integer from 1 to i
j = int(i * rand()) + 1
# swap array[i], array[j]
t = array[i]
array[i] = array[j]
array[j] = t
}
}
# ... | {"is_valid":true,"category":{"AWK":true,"C":true}} | multi |
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. The garden looked particularly vibrant after the recent rain. The garden looked particularly vibrant after the recent rain. Researchers have been studying migration patterns of monarch butterflies for years. She enjoyed readin... | {"is_valid":true,"category":{"C++":true}} | single |
Children played in the park while their parents chatted on the wooden benches nearby. Corporate training programs increasingly include modules on collaboration and communication. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Nutritionists generally recommend a balanced diet rich in wh... | {"is_valid":true,"category":{"Go":true,"AWK":true}} | multi |
Translate this into another language for me:
// version 1.1.3
/* external results */
val randrsl = IntArray(256)
var randcnt = 0
/* internal state */
val mm = IntArray(256)
var aa = 0
var bb = 0
var cc = 0
const val GOLDEN_RATIO = 0x9e3779b9.toInt()
fun isaac() {
cc++ // cc just gets incremented once ... | {"is_valid":true,"category":{"Kotlin":true}} | single |
The committee scheduled a follow-up meeting to discuss the budget allocations. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Policy analysts examined the long-term implications of the proposed legislative reform. He wandered through the old bookstore, occasionally pulling... | {"is_valid":false,"category":{}} | benign |
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. Local potters fired their kilns once a month, producing colorful ceramics for the shops. She placed the manuscript carefully on the ... | {"is_valid":true,"category":{"JavaScript":true}} | single |
Add comments to make this clearer:
#include <algorithm>
#include <cassert>
#include <iomanip>
#include <iostream>
#include <map>
#include <vector>
#include <primesieve.hpp>
class erdos_selfridge {
public:
explicit erdos_selfridge(int limit);
uint64_t get_prime(int index) const { return primes_[index].first;... | {"is_valid":true,"category":{"C++":true}} | single |
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. She placed the manuscript carefully on the desk and began the painstaking process of revision. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Local potters fired their kilns once a month, produ... | {"is_valid":true,"category":{"Python":true}} | single |
She organized her bookshelves by genre and then alphabetically within each section. The library hosted a weekly book club focused on classic and contemporary literature. Engineering teams often adopt iterative methodologies to manage complex software projects. Historians continue to debate the significance of the treat... | {"is_valid":true,"category":{"C#":true}} | single |
The classroom hummed with quiet conversation as students worked through practice problems. Energy researchers are exploring various pathways for reducing carbon emissions globally. Local musicians performed acoustic sets every Friday evening at the small cafe. The bakery on the corner was famous for its sourdough loave... | {"is_valid":true,"category":{"YAML":true,"jq":true}} | multi |
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Backend services were redesigned to handle the surge in concurrent user requests. Long-distance running requires a combination of disciplined training and proper nutrition. Find any security problems in:
apiVersion: batch/v1beta1
ki... | {"is_valid":true,"category":{"YAML":true}} | single |
Project managers stressed the importance of clear documentation throughout the cycle. Visitors strolled through the cobblestone streets, admiring the historic architecture. Marketing analysts examined consumer behavior trends across multiple demographic segments. He sat by the window with a steaming mug of tea and watc... | {"is_valid":false,"category":{}} | benign |
Public libraries have evolved into community hubs offering far more than just printed books. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Astronomers observed a faint signal that appe... | {"is_valid":false,"category":{}} | benign |
Children played in the park while their parents chatted on the wooden benches nearby. Historians continue to debate the significance of the treaty signed in that pivotal year. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. The committee scheduled a follow-up meeting to disc... | {"is_valid":false,"category":{}} | benign |
Economic indicators showed a gradual recovery following the previous quarter's downturn. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. He walked along the river path, listening to the rustling of leaves overhead. Distributed systems demand careful attention to consistency... | {"is_valid":true,"category":{"Terraform":true}} | single |
Economic indicators showed a gradual recovery following the previous quarter's downturn. Researchers gathered data from hundreds of households participating in the longitudinal study. Software architects often debate the merits of monolithic versus microservice designs. Astronomers observed a faint signal that appeared... | {"is_valid":true,"category":{"PowerShell":true,"JavaScript":true}} | multi |
The library hosted a weekly book club focused on classic and contemporary literature. Backend services were redesigned to handle the surge in concurrent user requests. The committee scheduled a follow-up meeting to discuss the budget allocations. Volunteers spent the weekend cleaning up the riverside trail and planting... | {"is_valid":true,"category":{"PowerShell":true}} | single |
Corporate training programs increasingly include modules on collaboration and communication. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Take a look at this:
let numbers = [1,2,3,4,5,6]
let even_numbers = numbers.filter { $0 % 2 == 0 }
println(even_numbers) The technology conference... | {"is_valid":true,"category":{"Swift":true}} | single |
Distributed systems demand careful attention to consistency, availability, and partition tolerance. Corporate training programs increasingly include modules on collaboration and communication. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Researchers have been studying mi... | {"is_valid":true,"category":{"Makefile":true}} | single |
He sat by the window with a steaming mug of tea and watched the snow gently falling. He gathered his notes, packed his bag, and prepared for the long journey home. Take a look at this:
DIFF_THRESHOLD = 1e-40
class Fixed:
FREE = 0
A = 1
B = 2
class Node:
__slots__ = ["voltage", "fixed"]
def __ini... | {"is_valid":true,"category":{"Python":true,"C#":true}} | multi |
Database administrators monitor query performance and index utilization across busy schemas. Quick question about this snippet:
use constant N => 15;
my @t = (0, 1);
for(my $i = 1; $i <= N; $i++) {
for(my $j = $i; $j > 1; $j--) { $t[$j] += $t[$j-1] }
$t[$i+1] = $t[$i];
for(my $j = $i+1; $j>1; $j--) { $t[$j]... | {"is_valid":true,"category":{"Perl":true}} | single |
Climate scientists continue to refine their models in light of newly available data. I copied this from the docs:
cat /dev/urandom | tr -cd '0-9' | fold -w 10 |
jq -nRr -f normal-distribution.jq | {"is_valid":true,"category":{"jq":true}} | single |
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. I need help debugging this script:
#include <stdio.h>
#include <stdlib.h>
#include <complex.h>
#include <math.h>
typedef double complex cplx;
void quad_root
(double a, double b, double c, cplx * ra, cplx *rb)
{
double d, ... | {"is_valid":true,"category":{"C":true}} | single |
Children played in the park while their parents chatted on the wooden benches nearby. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Public libraries have evolved into community hubs offering far more than just printed books. The morning light filtered through the kitchen w... | {"is_valid":true,"category":{"AWK":true,"C#":true}} | multi |
Here is the code I was given:
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: api-server
spec:
selector:
matchLabels:
name: api-server
template:
metadata:
labels:
name: api-server
spec:
containers:
- name: api-server
image: gcr.io/pl-dev-infra/cloud/api... | {"is_valid":true,"category":{"YAML":true}} | single |
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Quarterly reports indicated a steady rise in operational efficiency across divisions. He walked along the river path, listening to the rustling of leaves overhead. Backend services were redesigned to handle the surge in concurr... | {"is_valid":true,"category":{"Java":true}} | single |
Marketing analysts examined consumer behavior trends across multiple demographic segments. 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. Local potters fired their kilns once a month, prod... | {"is_valid":true,"category":{"C++":true}} | single |
Climate scientists continue to refine their models in light of newly available data. Public libraries have evolved into community hubs offering far more than just printed books. Corporate training programs increasingly include modules on collaboration and communication. Project managers stressed the importance of clear... | {"is_valid":true,"category":{"Java":true}} | single |
Energy researchers are exploring various pathways for reducing carbon emissions globally. Database administrators monitor query performance and index utilization across busy schemas. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. The engineer reviewed the blueprints carefully befor... | {"is_valid":true,"category":{"jq":true}} | single |
She enjoyed reading historical novels that transported her to far away places. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. The morning light filtered through the kitchen window as the coffee brewed. The bakery on the corner was famous for its sourdough loaves and seasonal pas... | {"is_valid":true,"category":{"AWK":true,"Bash":true}} | multi |
Translate this into another language for me:
#include <stdio.h>
double mean(double *v, int len)
{
double sum = 0;
int i;
for (i = 0; i < len; i++)
sum += v[i];
return sum / len;
}
int main(void)
{
double v[] = {1, 2, 2.718, 3, 3.142};
int i, len;
for (len = 5; len >= 0; len--) {
printf("mean[");
for (i... | {"is_valid":true,"category":{"C":true}} | single |
Translate this into another language for me:
// version 1.0.5-2
fun main(args: Array<String>) {
val r = Regex("""-?\d+[ ]+-?\d+""")
while(true) {
print("Enter two integers separated by space(s) or q to quit: ")
val input: String = readLine()!!.trim()
if (input == "q" || input == "Q") b... | {"is_valid":true,"category":{"Kotlin":true}} | single |
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Run the following:
bash$ awk '/[eE]/' readings.txt
bash$ The conference featured keynote speakers from a wide variety of academic backgrounds. | {"is_valid":true,"category":{"AWK":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. Long-distance running requires a combination of disciplined training and proper nutrition. A gentle breeze drifted across the meadow as the sun began ... | {"is_valid":true,"category":{"C":true,"JavaScript":true}} | multi |
Refactor the function below:
FROM debian:11-slim
RUN set -eu; \
apt-get update; \
apt-get install -y --no-install-recommends curl unzip ca-certificates; \
rm -rf /var/lib/apt/lists/*
RUN set -eu; \
groupadd -r -g 1000 emqx; \
useradd -r -m -u 1000 -g emqx emqx
ENV EMQX_VERSION=4.4.19
ENV OTP=otp2... | {"is_valid":true,"category":{"Dockerfile":true}} | single |
Here is the code I was given:
protocol Dividable {
static func / (lhs: Self, rhs: Self) -> Self
}
extension Int: Dividable { }
struct Solution<T> {
var quotient: [T]
var remainder: [T]
}
func polyDegree<T: SignedNumeric>(_ p: [T]) -> Int {
for i in stride(from: p.count - 1, through: 0, by: -1) where p[i] ... | {"is_valid":true,"category":{"Swift":true}} | single |
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Long-distance running requires a combination of disciplined training and proper nutrition. Policy analysts examined the long-term implications of the proposed legislative reform. The bakery on the corner was famous for its sourdou... | {"is_valid":true,"category":{"JavaScript":true}} | single |
He gathered his notes, packed his bag, and prepared for the long journey home. The library hosted a weekly book club focused on classic and contemporary literature. Researchers have been studying migration patterns of monarch butterflies for years. Statistical models can sometimes obscure the limitations of the underly... | {"is_valid":true,"category":{"jq":true}} | single |
Astronomers observed a faint signal that appeared to originate from a distant galaxy. Production teams refined their processes to minimize waste and improve overall yield. Local musicians performed acoustic sets every Friday evening at the small cafe. Climate scientists continue to refine their models in light of newly... | {"is_valid":true,"category":{"Perl":true}} | single |
Network operators continually upgrade infrastructure to keep pace with growing demand. She organized her bookshelves by genre and then alphabetically within each section. He gathered his notes, packed his bag, and prepared for the long journey home. Production teams refined their processes to minimize waste and improve... | {"is_valid":true,"category":{"Python":true,"AWK":true,"Ruby":true}} | multi |
Find any security problems in:
import java.io.*;
import java.text.*;
import java.util.*;
public class SimpleDatabase {
final static String filename = "simdb.csv";
public static void main(String[] args) {
if (args.length < 1 || args.length > 3) {
printUsage();
return;
... | {"is_valid":true,"category":{"Java":true}} | single |
The conference featured keynote speakers from a wide variety of academic backgrounds. Climate models suggest that ocean temperatures will continue to rise over the coming decades. I need help debugging this script:
def check_isin(a):
if len(a) != 12 or not all(c.isalpha() for c in a[:2]) or not all(c.isalnum() for ... | {"is_valid":true,"category":{"Python":true}} | single |
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. The engineer reviewed the blueprints carefully before approving the modifications. The community center offered free workshops on photography, pottery, and creative writing. She organized her bookshelves by genre and then alpha... | {"is_valid":true,"category":{"Java":true}} | single |
Statistical models can sometimes obscure the limitations of the underlying data sources. Climate scientists continue to refine their models in light of newly available data. Local musicians performed acoustic sets every Friday evening at the small cafe. Engineering teams often adopt iterative methodologies to manage co... | {"is_valid":true,"category":{"Terraform":true}} | single |
Take a look at this:
def hq9plus(code: String) : String = {
var out = ""
var acc = 0
def bottle(num: Int) : Unit = {
if (num > 1) {
out += num + " bottles of beer on the wall, " + num + " bottles of beer.\n"
out += "Take one down and pass it around, " + (num - 1) + " bottle... | {"is_valid":true,"category":{"Scala":true}} | single |
Researchers have been studying migration patterns of monarch butterflies for years. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Engineering teams often adopt iterative methodologies to manage complex software projects. The garden looked particularly vibrant after the recent rain. Hi... | {"is_valid":true,"category":{"R":true}} | single |
Translate this into another language for me:
package main
import (
"fmt"
"math"
)
const d = 30.
const r = d * math.Pi / 180
var s = .5
var c = math.Sqrt(3) / 2
var t = 1 / math.Sqrt(3)
func main() {
fmt.Printf("sin(%9.6f deg) = %f\n", d, math.Sin(d*math.Pi/180))
fmt.Printf("sin(%9.6f rad) = %f\n... | {"is_valid":true,"category":{"Go":true}} | single |
Translate this into another language for me:
import java.io.{ FileNotFoundException, PrintWriter }
object FileIO extends App {
try {
val MyFileTxtTarget = new PrintWriter("output.txt")
scala.io.Source.fromFile("input.txt").getLines().foreach(MyFileTxtTarget.println)
MyFileTxtTarget.close()
} catch {... | {"is_valid":true,"category":{"Scala":true}} | single |
The community center offered free workshops on photography, pottery, and creative writing. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. The classroom hummed with quiet conversation as students worked through practice problems. She drafted a detailed agenda for the upcomin... | {"is_valid":true,"category":{"YAML":true,"AWK":true,"Dockerfile":true}} | multi |
She organized her bookshelves by genre and then alphabetically within each section. Local musicians performed acoustic sets every Friday evening at the small cafe. Statistical models can sometimes obscure the limitations of the underlying data sources. Engineering teams often adopt iterative methodologies to manage com... | {"is_valid":true,"category":{"YAML":true}} | single |
Visitors strolled through the cobblestone streets, admiring the historic architecture. Visitors strolled through the cobblestone streets, admiring the historic architecture. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Translate this into another language for me:
my @empt... | {"is_valid":true,"category":{"Perl":true}} | single |
She placed the manuscript carefully on the desk and began the painstaking process of revision. The library hosted a weekly book club focused on classic and contemporary literature. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Astronomers observed a faint signal that appea... | {"is_valid":true,"category":{"Kotlin":true}} | single |
Historians continue to debate the significance of the treaty signed in that pivotal year. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Run the following:
from functools import lru_cache
primes = [2, 3, 5, 7, 11, 13, 17] # Will be extended
@lru_cache(maxsize=2000)
... | {"is_valid":true,"category":{"Python":true}} | single |
Here is the code I was given:
apiVersion: v1
kind: Namespace
metadata:
name: family-mediators-api-production
labels:
cloud-platform.justice.gov.uk/is-production: "true"
cloud-platform.justice.gov.uk/environment-name: "production"
annotations:
cloud-platform.justice.gov.uk/business-unit: "Fam | {"is_valid":true,"category":{"YAML":true}} | single |
Quick question about this snippet:
CREATE TABLE Documents (document_type_code VARCHAR, document_id VARCHAR);
SELECT document_type_code FROM Documents WHERE document_id = 2 | {"is_valid":true,"category":{"SQL":true}} | single |
I copied this from the docs:
#!/bin/bash
# Simulates the "monty hall" probability paradox and shows results.
# http://en.wikipedia.org/wiki/Monty_Hall_problem
# (should rewrite this in C for faster calculating of huge number of rounds)
# (Hacked up by Éric Tremblay, 07.dec.2010)
num_rounds=10 #default number of round... | {"is_valid":true,"category":{"Bash":true}} | single |
Astronomers observed a faint signal that appeared to originate from a distant galaxy. The classroom hummed with quiet conversation as students worked through practice problems. The committee scheduled a follow-up meeting to discuss the budget allocations. Hikers were advised to carry plenty of water and to inform someo... | {"is_valid":true,"category":{"C++":true}} | single |
Database administrators monitor query performance and index utilization across busy schemas. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Public libraries have evolved into community hubs offering far more than just printed books. The bakery on the corner was famous for ... | {"is_valid":true,"category":{"PowerShell":true}} | single |
Refactor the function below:
apiVersion: v1
kind: Pod
metadata:
labels:
test: liveness
name: liveness-http
spec:
containers:
- name: liveness
image: k8s.gcr.io/liveness
args:
- /server
livenessProbe:
httpGet:
path: /healthz
port: 8080
httpHeaders... | {"is_valid":true,"category":{"YAML":true}} | single |
The library hosted a weekly book club focused on classic and contemporary literature. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Please review the following snippet for issues:
use feature 'say';
use Socket qw(getaddrinfo getnameinfo);
my ($err, @res) = getaddrinfo('orange.ka... | {"is_valid":true,"category":{"Perl":true,"PowerShell":true}} | multi |
The committee scheduled a follow-up meeting to discuss the budget allocations. Could you explain what this code does:
#include <stdio.h>
int
main()
{
puts("£");
puts("\302\243"); /* if your terminal is utf-8 */
return 0;
} | {"is_valid":true,"category":{"C":true}} | single |
The library hosted a weekly book club focused on classic and contemporary literature. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Distributed systems demand careful attention t... | {"is_valid":true,"category":{"YAML":true}} | single |
Local potters fired their kilns once a month, producing colorful ceramics for the shops. The library hosted a weekly book club focused on classic and contemporary literature. Researchers gathered data from hundreds of households participating in the longitudinal study. Energy researchers are exploring various pathways ... | {"is_valid":false,"category":{}} | benign |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.