prompt large_stringlengths 150 7.97k | target large_stringlengths 32 83 | kind large_stringclasses 3
values |
|---|---|---|
Run the following:
package main
import "fmt"
const jobs = 12
type environment struct{ seq, cnt int }
var (
env [jobs]environment
seq, cnt *int
)
func hail() {
fmt.Printf("% 4d", *seq)
if *seq == 1 {
return
}
(*cnt)++
if *seq&1 != 0 {
*seq = 3*(*seq) + 1
} e... | {"is_valid":true,"category":{"Go":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. Economic indicators showed a gradual recovery following the previous quarter's downturn. He wandered through the old bookstore, occasionally ... | {"is_valid":true,"category":{"C++":true,"AWK":true}} | multi |
The technology conference attracted engineers, designers, and product managers from around the world. He sat by the window with a steaming mug of tea and watched the snow gently falling. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Local musicians performed acoustic sets ... | {"is_valid":true,"category":{"jq":true}} | single |
Quick question about this snippet:
import java.util.ArrayList;
public class Heron {
public static void main(String[] args) {
ArrayList<int[]> list = new ArrayList<>();
for (int c = 1; c <= 200; c++) {
for (int b = 1; b <= c; b++) {
for (int a = 1; a <= b; a++) {
... | {"is_valid":true,"category":{"Java":true,"R":true,"YAML":true}} | multi |
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. He walked along the river path, listening to the rustling of leaves overhead. Engineering teams often adopt iterative methodologies to ma... | {"is_valid":true,"category":{"C#":true,"Dockerfile":true}} | multi |
Hikers were advised to carry plenty of water and to inform someone of their planned route. Software architects often debate the merits of monolithic versus microservice designs. Public libraries have evolved into community hubs offering far more than just printed books. Long-distance running requires a combination of d... | {"is_valid":true,"category":{"Java":true}} | single |
Corporate training programs increasingly include modules on collaboration and communication. Could you explain what this code does:
class Latin {
constructor(size = 3) {
this.size = size;
this.mst = [...Array(this.size)].map((v, i) => i + 1);
this.square = Array(this.size).fill(0).map(() => Array(this.siz... | {"is_valid":true,"category":{"JavaScript":true}} | single |
Please review the following snippet for issues:
#include<stdlib.h>
#include<stdio.h>
#include<math.h>
typedef struct{
double x,y;
}point;
double shoelace(char* inputFile){
int i,numPoints;
double leftSum = 0,rightSum = 0;
point* pointSet;
FILE* fp = fopen(inputFile,"r");
fscanf(fp,"%d",&numPoints);
poi... | {"is_valid":true,"category":{"C":true}} | single |
Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. She organized her bookshelves by genre and then alphabetically within each section. She drafted a detailed agenda for the upcoming retreat and circul... | {"is_valid":true,"category":{"Scala":true}} | single |
The library hosted a weekly book club focused on classic and contemporary literature. Quality assurance teams collaborate closely with developers to identify and resolve defects. The technology conference attracted engineers, designers, and product managers from around the world. The garden looked particularly vibrant ... | {"is_valid":true,"category":{"YAML":true,"Kotlin":true,"PowerShell":true}} | multi |
Policy analysts examined the long-term implications of the proposed legislative reform. Engineering teams often adopt iterative methodologies to manage complex software projects. Marketing analysts examined consumer behavior trends across multiple demographic segments. Network operators continually upgrade infrastructu... | {"is_valid":true,"category":{"Terraform":true}} | single |
Add comments to make this clearer:
# frozen_string_literal: true
load_library :grammar
attr_reader :hilbert
def settings
size 600, 600
end
def setup
sketch_title '2D Hilbert'
@hilbert = Hilbert.new
hilbert.create_grammar 5
no_loop
end
def draw
background 0
hilbert.render
end
Turtle = Struct.new(:x... | {"is_valid":true,"category":{"Ruby":true,"C":true}} | multi |
Researchers have been studying migration patterns of monarch butterflies for years. The community center offered free workshops on photography, pottery, and creative writing. He walked along the river path, listening to the rustling of leaves overhead. He gathered his notes, packed his bag, and prepared for the long jo... | {"is_valid":true,"category":{"R":true,"Java":true}} | multi |
Translate this into another language for me:
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <unistd.h>
/* Check for regular file. */
int check_reg(const char *path) {
struct stat sb;
return stat(path, &sb) == 0 && S_ISREG(sb.st_mode);
}
/* Check for directory. */
int check_dir(const cha... | {"is_valid":true,"category":{"C":true,"AWK":true}} | multi |
The library hosted a weekly book club focused on classic and contemporary literature. Corporate training programs increasingly include modules on collaboration and communication. Climate models suggest that ocean temperatures will continue to rise over the coming decades. She placed the manuscript carefully on the desk... | {"is_valid":true,"category":{"C":true}} | single |
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. The painting featured warm colors that evoked memories of childhood summers by the sea. Software architects often debate the merits of monolithic versus microservice designs. Can you optimize this implementation:
function outpu... | {"is_valid":true,"category":{"PowerShell":true}} | single |
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. The newly opened gallery showcased contemporary works by emerging regional artists. Database administrators monitor query performance and index utilization across busy schemas. Refactor the function below:
echo "`cat f | paste ... | {"is_valid":true,"category":{"Bash":true}} | single |
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. He walked along the river path, listening to the rustling of leaves overhead. He sat by the window with a steaming mug of tea and watched the snow gently falling. Production teams refined their processes to minimize waste and i... | {"is_valid":true,"category":{"YAML":true}} | single |
Refactor the function below:
// version 1.1.2
fun encode(s: String): IntArray {
if (s.isEmpty()) return intArrayOf()
val symbols = "abcdefghijklmnopqrstuvwxyz".toCharArray()
val result = IntArray(s.length)
for ((i, c) in s.withIndex()) {
val index = symbols.indexOf(c)
if (index == -1) ... | {"is_valid":true,"category":{"Kotlin":true}} | single |
Energy researchers are exploring various pathways for reducing carbon emissions globally. Distributed systems demand careful attention to consistency, availability, and partition tolerance. The newly opened gallery showcased contemporary works by emerging regional artists. Can you optimize this implementation:
ackerman... | {"is_valid":true,"category":{"R":true}} | single |
I copied this from the docs:
#include <vector>
#include <sstream>
#include <iostream>
#include <iterator>
#include <cstdlib>
#include <string>
#include <bitset>
using namespace std;
typedef bitset<4> hood_t;
struct node
{
int val;
hood_t neighbors;
};
class nSolver
{
public:
void solve(vector<stri | {"is_valid":true,"category":{"C++":true}} | single |
What does this output:
rangeExpand <- function(text) {
lst <- gsub("(\\d)-", "\\1:", unlist(strsplit(text, ",")))
unlist(sapply(lst, function (x) eval(parse(text=x))), use.names=FALSE)
}
rangeExpand("-6,-3--1,3-5,7-11,14,15,17-20")
[1] -6 -3 -2 -1 3 4 5 7 8 9 10 11 14 15 17 18 19 20
Then there's this one ... | {"is_valid":true,"category":{"R":true,"AWK":true,"Lua":true}} | multi |
She enjoyed reading historical novels that transported her to far away places. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. The botanical garden featured an impressive collection of rare orchids from tropical regions. Network operators continually upgrade infrastructure t... | {"is_valid":true,"category":{"jq":true}} | single |
I need help debugging this script:
# 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, Version 2.0
... | {"is_valid":true,"category":{"Dockerfile":true}} | single |
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. Take a look at this:
chat_loop <- function(server, sockets, delay = 0.5) {
repeat {
Sys.sleep(delay) # Saves CPU resources
... | {"is_valid":true,"category":{"R":true,"PowerShell":true}} | multi |
The technology conference attracted engineers, designers, and product managers from around the world. Run the following:
CREATE TABLE college (cName VARCHAR, enr INTEGER, state VARCHAR);
SELECT DISTINCT cName FROM college WHERE enr > (SELECT MIN(enr) FROM college WHERE state = 'FL')
On a related note, this block:
# Li... | {"is_valid":true,"category":{"SQL":true,"Dockerfile":true}} | multi |
Can you optimize this implementation:
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 |
Hikers were advised to carry plenty of water and to inform someone of their planned route. Can you optimize this implementation:
use std::ops::{Add, Sub, Mul, Div};
fn map_range<T: Copy>(from_range: (T, T), to_range: (T, T), s: T) -> T
where T: Add<T, Output=T> +
Sub<T, Output=T> +
Mul<... | {"is_valid":true,"category":{"Rust":true}} | single |
Take a look at this:
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <math.h>
typedef struct{
double value;
double delta;
}imprecise;
#define SQR(x) ((x) * (x))
imprecise imprecise_add(imprecise a, imprecise b)
{
imprecise ret;
ret.value = a.value + b.value;
ret.delta = sqrt(... | {"is_valid":true,"category":{"C":true}} | single |
Public libraries have evolved into community hubs offering far more than just printed books. What does this output:
static void Swap<T>(ref T a, ref T b)
{
T temp = a;
a = b;
b = temp;
} Children played in the park while their parents chatted on the wooden benches nearby. The painting featured warm colors t... | {"is_valid":true,"category":{"C#":true}} | single |
Could you explain what this code does:
function Get-EquilibriumIndex ( $Sequence )
{
$Indexes = 0..($Sequence.Count - 1)
$EqulibriumIndex = @()
ForEach ( $TestIndex in $Indexes )
{
$Left = 0
$Right = 0
ForEach ( $Index in $Indexes )
{
If ( $I... | {"is_valid":true,"category":{"PowerShell":true}} | single |
Engineering teams often adopt iterative methodologies to manage complex software projects. Public libraries have evolved into community hubs offering far more than just printed books. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Software architects often debate the merit... | {"is_valid":true,"category":{"YAML":true,"Ruby":true}} | multi |
Statistical models can sometimes obscure the limitations of the underlying data sources. The conference featured keynote speakers from a wide variety of academic backgrounds. The garden looked particularly vibrant after the recent rain. Quarterly reports indicated a steady rise in operational efficiency across division... | {"is_valid":true,"category":{"Rust":true,"Swift":true}} | multi |
Backend services were redesigned to handle the surge in concurrent user requests. Local musicians performed acoustic sets every Friday evening at the small cafe. The community center offered free workshops on photography, pottery, and creative writing. The engineer reviewed the blueprints carefully before approving the... | {"is_valid":true,"category":{"Ruby":true}} | single |
Marketing analysts examined consumer behavior trends across multiple demographic segments. Could you explain what this code does:
import curses
import random
import time
"""
Based on C ncurses version
http://rosettacode.org/wiki/Matrix_Digital_Rain#NCURSES_version
"""
"""
Time between row updates in seconds
C... | {"is_valid":true,"category":{"Python":true,"Lua":true}} | multi |
Production teams refined their processes to minimize waste and improve overall yield. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Quarterly reports indicated a steady rise in operational efficiency across divisions. The newly opened gallery showcased contemporary works b... | {"is_valid":true,"category":{"PowerShell":true}} | single |
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. He adjusted the telescope and waited patiently for th... | {"is_valid":true,"category":{"Makefile":true}} | single |
Public libraries have evolved into community hubs offering far more than just printed books. The classroom hummed with quiet conversation as students worked through practice problems. Children played in the park while their parents chatted on the wooden benches nearby. The library hosted a weekly book club focused on c... | {"is_valid":true,"category":{"Makefile":true}} | single |
Engineering teams often adopt iterative methodologies to manage complex software projects. 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. Here is the code I was given:
def is_prime:
. as $n
... | {"is_valid":true,"category":{"jq":true}} | single |
Could you explain what this code does:
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | {"is_valid":true,"category":{"Dockerfile":true}} | single |
The conference featured keynote speakers from a wide variety of academic backgrounds. Project managers stressed the importance of clear documentation throughout the cycle. He walked along the river path, listening to the rustling of leaves overhead. Distributed systems demand careful attention to consistency, availabil... | {"is_valid":true,"category":{"Ruby":true}} | single |
She organized her bookshelves by genre and then alphabetically within each section. Policy analysts examined the long-term implications of the proposed legislative reform. Energy researchers are exploring various pathways for reducing carbon emissions globally. He walked along the river path, listening to the rustling ... | {"is_valid":true,"category":{"R":true,"Java":true,"Makefile":true}} | multi |
The conference featured keynote speakers from a wide variety of academic backgrounds. Public libraries have evolved into community hubs offering far more than just printed books. Take a look at this:
def clip(subjectPolygon, clipPolygon):
def inside(p):
return(cp2[0]-cp1[0])*(p[1]-cp1[1]) > (cp2[1]-cp1[1])*(p[... | {"is_valid":true,"category":{"Python":true}} | single |
He walked along the river path, listening to the rustling of leaves overhead. Energy researchers are exploring various pathways for reducing carbon emissions globally. The newly opened gallery showcased contemporary works by emerging regional artists. Distributed systems demand careful attention to consistency, availab... | {"is_valid":true,"category":{"Scala":true}} | single |
He gathered his notes, packed his bag, and prepared for the long journey home. She organized her bookshelves by genre and then alphabetically within each section. The committee scheduled a follow-up meeting to discuss the budget allocations. Local potters fired their kilns once a month, producing colorful ceramics for ... | {"is_valid":false,"category":{}} | benign |
Run the following:
(() => {
'use strict';
// withExpansions :: [(String, Int)] -> String -> String
const withExpansions = tbl => s =>
unwords(map(expanded(tbl), words(s)));
// expanded :: [(String, Int)] -> String -> String
const expanded = tbl => s => {
const
lng = s... | {"is_valid":true,"category":{"JavaScript":true}} | single |
Add comments to make this clearer:
using System;
namespace Tests_With_Framework_4
{
class Program
{
static void Main(string[] args)
{
int[] integers = { -1, -2, 3, 5, 6, -2, -1, 4, -4, 2, -1 }; int length = integers.Length;
int maxsum, beginmax, endmax, sum; maxsum = be... | {"is_valid":true,"category":{"C#":true,"Go":true}} | multi |
Distributed systems demand careful attention to consistency, availability, and partition tolerance. The garden looked particularly vibrant after the recent rain. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Marketing analysts examined consumer behavior trends across multi... | {"is_valid":true,"category":{"Swift":true}} | single |
The newly opened gallery showcased contemporary works by emerging regional artists. He walked along the river path, listening to the rustling of leaves overhead. Climate scientists continue to refine their models in light of newly available data. Database administrators monitor query performance and index utilization a... | {"is_valid":false,"category":{}} | benign |
Corporate training programs increasingly include modules on collaboration and communication. The garden looked particularly vibrant after the recent rain. Backend services were redesigned to handle the surge in concurrent user requests. Economic indicators showed a gradual recovery following the previous quarter's down... | {"is_valid":true,"category":{"YAML":true}} | single |
Please review the following snippet for issues:
import java.io.BufferedReader;
import java.io.FileReader;
public class IbeforeE
{
public static void main(String[] args)
{
IbeforeE now=new IbeforeE();
String wordlist="unixdict.txt";
if(now.isPlausibleRule(wordlist))
System.out.println("Rule is plausible.")... | {"is_valid":true,"category":{"Java":true}} | single |
Find any security problems in:
(ns rosettacode.align-columns
(:require [clojure.contrib.string :as str]))
(def data "Given$a$text$file$of$many$lines,$where$fields$within$a$line$
are$delineated$by$a$single$'dollar'$character,$write$a$program
that$aligns$each$column$of$fields$by$ensuring$that$words$in$each$
column$ar... | {"is_valid":true,"category":{"C++":true,"Python":true}} | multi |
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. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Travelers explored ancient ruins, marveling at the craftsma... | {"is_valid":true,"category":{"Perl":true}} | single |
She enjoyed reading historical novels that transported her to far away places. Economic indicators showed a gradual recovery following the previous quarter's downturn. Researchers gathered data from hundreds of households participating in the longitudinal study. Policy analysts examined the long-term implications of th... | {"is_valid":true,"category":{"Python":true}} | single |
I copied this from the docs:
#include <math.h>
#include <stdbool.h>
#include <stdio.h>
bool approxEquals(double value, double other, double epsilon) {
return fabs(value - other) < epsilon;
}
void test(double a, double b) {
double epsilon = 1e-18;
printf("%f, %f => %d\n", a, b, approxEquals(a, b, epsilon... | {"is_valid":true,"category":{"C":true}} | single |
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Historians continue to debate the significance of the treaty signed in that pivotal year. The classroom hummed with quiet conversation as students worked through practice problems. Researchers have been studying migration patterns o... | {"is_valid":false,"category":{}} | benign |
Quarterly reports indicated a steady rise in operational efficiency across divisions. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. She drafted a detailed agenda for the upcoming ... | {"is_valid":true,"category":{"Bash":true}} | single |
Economic indicators showed a gradual recovery following the previous quarter's downturn. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Add comments to make this clearer:
# s... | {"is_valid":true,"category":{"AWK":true}} | single |
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Production teams refined their processes to minimize waste and improve overall yield. Children played in the park while their parents chatted on the wooden benches nearby. The morning light filtered through the kitchen window as the co... | {"is_valid":true,"category":{"Ruby":true,"SQL":true}} | multi |
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. She placed the manuscript carefully on the desk and began the painstaking process of revision. Hikers were advised to carry plenty of water and to inform someone of their planned route. The newly opened gallery showcased conte... | {"is_valid":false,"category":{}} | benign |
Astronomers observed a faint signal that appeared to originate from a distant galaxy. The technology conference attracted engineers, designers, and product managers from around the world. The morning light filtered through the kitchen window as the coffee brewed. Policy analysts examined the long-term implications of t... | {"is_valid":true,"category":{"Lua":true,"Python":true}} | multi |
The classroom hummed with quiet conversation as students worked through practice problems. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. The newly opened gallery showcased contemporary works by emerging regional artists. Climate models suggest that ocean temperatures will continue ... | {"is_valid":true,"category":{"JavaScript":true}} | single |
Find any security problems in:
import scala.collection.mutable.ListBuffer
import scala.util.Random
object ClosestPair {
case class Point(x: Double, y: Double){
def distance(p: Point) = math.hypot(x-p.x, y-p.y)
override def toString = "(" + x + ", " + y + ")"
}
case class Pair(point1: Point, point2: ... | {"is_valid":true,"category":{"Scala":true,"Kotlin":true}} | multi |
Researchers have been studying migration patterns of monarch butterflies for years. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Hikers were advised to carry plenty of water and to inform someone of their planned route. Find any security problems in:
terraform {
backend "gcs... | {"is_valid":true,"category":{"Terraform":true}} | single |
He sat by the window with a steaming mug of tea and watched the snow gently falling. 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. The classroom hummed with quiet conversation as students worke... | {"is_valid":true,"category":{"Terraform":true}} | single |
The garden looked particularly vibrant after the recent rain. Historians continue to debate the significance of the treaty signed in that pivotal year. Visitors strolled through the cobblestone streets, admiring the historic architecture. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light v... | {"is_valid":true,"category":{"Swift":true}} | single |
Could you explain what this code does:
myMap := map[string]int {
"hello": 13,
"world": 31,
"!" : 71 }
// iterating over key-value pairs:
for key, value := range myMap {
fmt.Printf("key = %s, value = %d\n", key, value)
}
// iterating over keys:
for key := range myMap {
fmt.Printf("key = %s\n",... | {"is_valid":true,"category":{"Go":true,"Python":true,"jq":true}} | multi |
He gathered his notes, packed his bag, and prepared for the long journey home. Local potters fired their kilns once a month, producing colorful ceramics for the shops. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Historians continue to debate the significance of the treat... | {"is_valid":true,"category":{"Scala":true}} | single |
Statistical models can sometimes obscure the limitations of the underlying data sources. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. The morning light filtered through the kitchen window ... | {"is_valid":true,"category":{"C#":true,"C++":true}} | multi |
Corporate training programs increasingly include modules on collaboration and communication. Production teams refined their processes to minimize waste and improve overall yield. Researchers have been studying migration patterns of monarch butterflies for years. Backend services were redesigned to handle the surge in c... | {"is_valid":true,"category":{"Ruby":true}} | single |
Policy analysts examined the long-term implications of the proposed legislative reform. The painting featured warm colors that evoked memories of childhood summers by the sea. Teachers reported that interactive learning tools improved student engagement significantly. Energy researchers are exploring various pathways f... | {"is_valid":true,"category":{"Go":true}} | single |
The morning light filtered through the kitchen window as the coffee brewed. Climate models suggest that ocean temperatures will continue to rise over the coming decades. He walked along the river path, listening to the rustling of leaves overhead. He sat by the window with a steaming mug of tea and watched the snow gen... | {"is_valid":true,"category":{"Bash":true}} | single |
Could you explain what this code does:
#! /bin/bash
pascal() {
local -i n=${1:-1}
if (( n <= 1 )); then
echo 1
else
local output=$( $FUNCNAME $((n - 1)) )
set -- $( tail -n 1 <<<"$output" ) # previous row
echo "$output"
printf "1 "
while [[ -n $1 ]]; do | {"is_valid":true,"category":{"Bash":true}} | single |
The community center offered free workshops on photography, pottery, and creative writing. Hikers were advised to carry plenty of water and to inform someone of their planned route. I copied this from the docs:
package main
import (
"fmt"
"encoding/binary"
)
func main() {
buf := make([]byte, binary.MaxV... | {"is_valid":true,"category":{"Go":true,"Makefile":true}} | multi |
Quarterly reports indicated a steady rise in operational efficiency across divisions. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. He sat by the window with a steaming mug of tea and watched the snow gently falling. Researchers gathered data from hundreds of households participat... | {"is_valid":true,"category":{"C":true}} | single |
Quality assurance teams collaborate closely with developers to identify and resolve defects. Take a look at this:
data "aws_acm_certificate" "website_certificate" {
domain = "${var.domain}"
statuses = ["ISSUED"]
}
resource "aws_cloudfront_distribution" "s3_distribution" {
origin {
domain_name = "${aws_... | {"is_valid":true,"category":{"Terraform":true}} | single |
Network operators continually upgrade infrastructure to keep pace with growing demand. 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. Astronomers observed a faint signal that appeared to o... | {"is_valid":true,"category":{"Batch":true}} | single |
Climate models suggest that ocean temperatures will continue to rise over the coming decades. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Could you explain what this code does:
GCC_TARGET = $(CC)
ifneq ($(findstring darwin, $(GCC_TARGET)),)
TARGET_OS = darwin
else i... | {"is_valid":true,"category":{"Makefile":true,"Scala":true}} | multi |
I copied this from the docs:
# hash(keys) creates a JSON object with the given keys as keys
# and values taken from the input array in turn.
# "keys" must be an array of strings.
# The input array may be of any length and have values of any type,
# but only the first (keys|length) values will be used;
# the input will... | {"is_valid":true,"category":{"jq":true,"YAML":true}} | multi |
He walked along the river path, listening to the rustling of leaves overhead. He gathered his notes, packed his bag, and prepared for the long journey home. Please review the following snippet for issues:
import scala.actors.Actor.{actor, loop, reactWithin, exit}
import scala.actors.TIMEOUT
import scala.swing.{SimpleSw... | {"is_valid":true,"category":{"Scala":true}} | single |
Public libraries have evolved into community hubs offering far more than just printed books. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Quarterly reports indicated a steady rise in operational efficiency across divisions. Production teams refined their processes to min... | {"is_valid":true,"category":{"Kotlin":true}} | single |
The technology conference attracted engineers, designers, and product managers from around the world. She enjoyed reading historical novels that transported her to far away places. She enjoyed reading historical novels that transported her to far away places. Distributed systems demand careful attention to consistency,... | {"is_valid":true,"category":{"C":true}} | single |
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. What does this output:
cube = proc{|x| x ** 3}
croot = proc{|x| x ** (1.quo 3)}
compose = proc {|f,g| proc {|x| f[g[x]]}}
funclist = [Math.method(:sin), Math.method(:cos), cube]
invlist = [Math.method(:asin), Math.method(:acos)... | {"is_valid":true,"category":{"Ruby":true}} | single |
Quality assurance teams collaborate closely with developers to identify and resolve defects. Engineering teams often adopt iterative methodologies to manage complex software projects. Climate scientists continue to refine their models in light of newly available data. Network operators continually upgrade infrastructur... | {"is_valid":true,"category":{"Lua":true}} | single |
The engineer reviewed the blueprints carefully before approving the modifications. Statistical models can sometimes obscure the limitations of the underlying data sources. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Production teams refined their processes to minimize waste a... | {"is_valid":true,"category":{"Go":true,"JavaScript":true}} | multi |
I copied this from the docs:
using System;
using System.Collections.Generic;
using System.Numerics;
using System.Threading;
namespace MultiplicativeOrder {
// Taken from https://stackoverflow.com/a/33918233
public static class PrimeExtensions {
// Random generator (thread safe)
private static ... | {"is_valid":true,"category":{"C#":true}} | single |
Quick question about this snippet:
from string import ascii_uppercase
from itertools import product
from re import findall
def uniq(seq):
seen = {}
return [seen.setdefault(x, x) for x in seq if x not in seen]
def partition(seq, n):
return [seq[i : i + n] for i in xrange(0, len(seq), n)]
"""Instantia... | {"is_valid":true,"category":{"Python":true}} | single |
Translate this into another language for me:
// [dependencies]
// rug = "1.15.0"
use rug::integer::IsPrime;
use rug::Integer;
fn cullen_number(n: u32) -> Integer {
let num = Integer::from(n);
(num << n) + 1
}
fn woodall_number(n: u32) -> Integer {
let num = Integer::from(n);
(num << n) - 1
}
fn ... | {"is_valid":true,"category":{"Rust":true}} | single |
Please review the following snippet for issues:
output "domain" {
value = "${var.domain}"
}
output "internet_gateway_id" {
value = "${aws_internet_gateway.outgoing.id}"
}
output "kubernetes_nodes_elb_dns_name" {
value = "${aws_elb.k8s_nodes.dns_name}"
}
output "kubernetes_nodes_elb_zone_id" {
value = "${aws_... | {"is_valid":true,"category":{"Terraform":true}} | single |
The conference featured keynote speakers from a wide variety of academic backgrounds. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. The bakery on the corner was famous for its sou... | {"is_valid":true,"category":{"C":true}} | single |
The conference featured keynote speakers from a wide variety of academic backgrounds. 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. Here is the code I was given:
CREATE TABLE Product_Suppliers (sup... | {"is_valid":true,"category":{"SQL":true}} | single |
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Please review the following snippet for issues:
import Foundation
var ⌚️ = NSDate()
println(⌚️) | {"is_valid":true,"category":{"Swift":true}} | single |
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Production teams refined their processes to minimize waste and improve overall yield. She enjoyed reading historical novels that transported her to far away places. He gathered his notes, packed his bag, and prepared for the long journe... | {"is_valid":true,"category":{"Perl":true}} | single |
Energy researchers are exploring various pathways for reducing carbon emissions globally. Policy analysts examined the long-term implications of the proposed legislative reform. He walked along the river path, listening to the rustling of leaves overhead. What does this output:
$ java -cp js.jar org.mozilla.javascript.... | {"is_valid":true,"category":{"JavaScript":true}} | single |
Marketing analysts examined consumer behavior trends across multiple demographic segments. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Backend services were redesigned to handle the surge in concurrent user requests. Quarterly reports indicated a steady rise in operational effic... | {"is_valid":true,"category":{"Rust":true}} | single |
The engineer reviewed the blueprints carefully before approving the modifications. Policy analysts examined the long-term implications of the proposed legislative reform. Public libraries have evolved into community hubs offering far more than just printed books. Long-distance running requires a combination of discipli... | {"is_valid":true,"category":{"Terraform":true}} | single |
Please review the following snippet for issues:
kind: PersistentVolume
apiVersion: v1
metadata:
name: pvpostgres
labels:
type: local
spec:
capacity:
storage: 10Gi
accessModes:
- ReadWriteOnce
hostPath:
path: "/bitnami/postgresql" | {"is_valid":true,"category":{"YAML":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. He walked along the river path, listening to the rustling of leaves overhead. A gentle breeze drifted across the meadow as the sun began to dip below... | {"is_valid":true,"category":{"jq":true}} | single |
The technology conference attracted engineers, designers, and product managers from around the world. Translate this into another language for me:
# syntax: GAWK -f MODULAR_INVERSE.AWK
# converted from C
BEGIN {
printf("%s\n",mod_inv(42,2017))
exit(0)
}
function mod_inv(a,b, b0,t,q,x0,x1) {
b0 = b
x0 =... | {"is_valid":true,"category":{"AWK":true,"Lua":true}} | multi |
Distributed systems demand careful attention to consistency, availability, and partition tolerance. Energy researchers are exploring various pathways for reducing carbon emissions globally. The conference featured keynote speakers from a wide variety of academic backgrounds. The garden looked particularly vibrant after... | {"is_valid":true,"category":{"Perl":true}} | single |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.