prompt large_stringlengths 150 7.97k | target large_stringlengths 32 83 | kind large_stringclasses 3
values |
|---|---|---|
Network operators continually upgrade infrastructure to keep pace with growing demand. Run the following:
CREATE TABLE documents (document_type_code VARCHAR);
SELECT document_type_code FROM documents GROUP BY document_type_code HAVING COUNT(*) > 4
Alongside it, this:
// 2.5 implementations presented here: naive, opti... | {"is_valid":true,"category":{"SQL":true,"Rust":true}} | multi |
Researchers have been studying migration patterns of monarch butterflies for years. The committee scheduled a follow-up meeting to discuss the budget allocations. Project managers stressed the importance of clear documentation throughout the cycle. The neighborhood gathered every Saturday morning at the small farmers' ... | {"is_valid":true,"category":{"jq":true}} | single |
Quick question about this snippet:
#!/usr/bin/awk -f
BEGIN {
d[1] = 3.0
d[2] = 4.0
d[3] = 1.0
d[4] = -8.4
d[5] = 7.2
d[6] = 4.0
d[7] = 1.0
d[8] = 1.2
showD("Before: ")
gnomeSortD()
showD("Sorted: ")
exit
}
function gnomeSortD( i) {
for (i = 2; i <= length( | {"is_valid":true,"category":{"AWK":true}} | single |
Public libraries have evolved into community hubs offering far more than just printed books. Here is the code I was given:
# mimasv2 loading
TARGET ?= base
PORT ?= /dev/ttyACM0
gateware-load-mimasv2:
python3 $$(which MimasV2Config.py) $(PORT) $(TARGET_BUILD_DIR)/gateware/top.bin
image-load-mimasv2:
python mkimage.... | {"is_valid":true,"category":{"Makefile":true}} | single |
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. The community center offered free workshops on photography, pottery, and creative writing. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Climate scientists continue to refine their models ... | {"is_valid":true,"category":{"Batch":true}} | single |
The painting featured warm colors that evoked memories of childhood summers by the sea. The painting featured warm colors that evoked memories of childhood summers by the sea. Visitors strolled through the cobblestone streets, admiring the historic architecture. Please review the following snippet for issues:
#!/bin/ba... | {"is_valid":true,"category":{"Bash":true}} | single |
Quarterly reports indicated a steady rise in operational efficiency across divisions. Could you explain what this code does:
$ awk 'BEGIN{split("a b c d c b a",a);for(i in a)b[a[i]]=1;r="";for(i in b)r=r" "i;print r}'
a b c d | {"is_valid":true,"category":{"AWK":true}} | single |
Add comments to make this clearer:
use std::{vec, mem, iter};
enum List<T> {
Node(Vec<List<T>>),
Leaf(T),
}
impl<T> IntoIterator for List<T> {
type Item = List<T>;
type IntoIter = ListIter<T>;
fn into_iter(self) -> Self::IntoIter {
match self {
List::Node(vec) => ListIter::No... | {"is_valid":true,"category":{"Rust":true}} | single |
The technology conference attracted engineers, designers, and product managers from around the world. Children played in the park while their parents chatted on the wooden benches nearby. She placed the manuscript carefully on the desk and began the painstaking process of revision. Climate models suggest that ocean tem... | {"is_valid":true,"category":{"PowerShell":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. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Software architects often debate the ... | {"is_valid":true,"category":{"C#":true}} | single |
Researchers gathered data from hundreds of households participating in the longitudinal study. Climate scientists continue to refine their models in light of newly available data. He walked along the river path, listening to the rustling of leaves overhead. Researchers gathered data from hundreds of households particip... | {"is_valid":true,"category":{"Lua":true}} | single |
Translate this into another language for me:
# Copyright (C) 2010 The Android Open Source Project
#
# 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/LICEN... | {"is_valid":true,"category":{"Makefile":true}} | single |
Translate this into another language for me:
# 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, Ve... | {"is_valid":true,"category":{"Dockerfile":true}} | single |
The conference featured keynote speakers from a wide variety of academic backgrounds. Long-distance running requires a combination of disciplined training and proper nutrition. Run the following:
import java.awt.*;
import static java.lang.Math.*;
import javax.swing.*;
public class XiaolinWu extends JPanel {
pub... | {"is_valid":true,"category":{"Java":true}} | single |
Here is the code I was given:
from __future__ import print_function
import os
import hashlib
import datetime
def FindDuplicateFiles(pth, minSize = 0, hashName = "md5"):
knownFiles = {}
#Analyse files
for root, dirs, files in os.walk(pth):
for fina in files:
fullFina = os.path.join(ro... | {"is_valid":true,"category":{"Python":true}} | single |
Can you optimize this implementation:
loop do
print "\ninput a boolean expression (e.g. 'a & b'): "
expr = gets.strip.downcase
break if expr.empty?
vars = expr.scan(/\p{Alpha}+/)
if vars.empty?
puts "no variables detected in your boolean expression"
next
end
vars.each {|v| print "#{v}\t"}
p... | {"is_valid":true,"category":{"Ruby":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. Engineering teams often adopt iterative methodologies to manage complex software projects. Volunteers spent the weekend cleaning up the riversid... | {"is_valid":true,"category":{"YAML":true,"Perl":true}} | multi |
I copied this from the docs:
from itertools import product, combinations, izip
scoring = [0, 1, 3]
histo = [[0] * 10 for _ in xrange(4)]
for results in product(range(3), repeat=6):
s = [0] * 4
for r, g in izip(results, combinations(range(4), 2)):
s[g[0]] += scoring[r]
s[g[1]] += s | {"is_valid":true,"category":{"Python":true}} | single |
Please review the following snippet for issues:
def order[T](input: Seq[T], using: Seq[T], used: Seq[T] = Seq()): Seq[T] =
if (input.isEmpty || used.size >= using.size) input
else if (using diff used contains input.head)
using(used.size) +: order(input.tail, using, used :+ input.head)
else input.head +: order... | {"is_valid":true,"category":{"Scala":true}} | single |
Take a look at this:
$ function bubble_sort() {
local a=("$@")
local n
local i
local j
local t
ft=(false true)
n=${#a[@]} # array length
i=n
while ${ft[$(( 0 < i ))]}
do
j=0
while ${ft[$(( j+1 < i ))]}
do
if ${ft[$(( a[j+1] < a[j] ))]}
... | {"is_valid":true,"category":{"Bash":true}} | single |
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Refactor the function below:
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTIC... | {"is_valid":true,"category":{"Dockerfile":true}} | single |
Quick question about this snippet:
sub ev
# Evaluates an arithmetic expression like "(1+3)*7" and returns
# its value.
{my $exp = shift;
# Delete all meaningless characters. (Scientific notation,
# infinity, and not-a-number aren't supported.)
$exp =~ tr {0-9.+-/*()} {}cd;
return ev_ast(astize($exp));}
{my ... | {"is_valid":true,"category":{"Perl":true}} | single |
Hikers were advised to carry plenty of water and to inform someone of their planned route. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Find any security problems in:
# Stage 1: Build the Rust application
FROM rust:alpine as builder
# Install build dependencies
RUN apk add ... | {"is_valid":true,"category":{"Dockerfile":true}} | single |
Astronomers observed a faint signal that appeared to originate from a distant galaxy. Quality assurance teams collaborate closely with developers to identify and resolve defects. He walked along the river path, listening to the rustling of leaves overhead. Energy researchers are exploring various pathways for reducing ... | {"is_valid":true,"category":{"Python":true,"Go":true,"C++":true}} | multi |
Historians continue to debate the significance of the treaty signed in that pivotal year. Researchers have been studying migration patterns of monarch butterflies for years. The painting featured warm colors that evoked memories of childhood summers by the sea. She placed the manuscript carefully on the desk and began ... | {"is_valid":true,"category":{"SQL":true}} | single |
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Could you explain what this code does:
function copy (t)
local new = {}
for k, v in pairs(t) do new[k] = v end
return new
end
function jortSort (array)
local originalArray = copy(array)
table.sort(array)
... | {"is_valid":true,"category":{"Lua":true}} | single |
He walked along the river path, listening to the rustling of leaves overhead. Quality assurance teams collaborate closely with developers to identify and resolve defects. Network operators continually upgrade infrastructure to keep pace with growing demand. Long-distance running requires a combination of disciplined tr... | {"is_valid":true,"category":{"AWK":true}} | single |
Could you explain what this code does:
:: Pancake Sort from Rosetta Code
:: Batch File Implementation
@echo off
setlocal enabledelayedexpansion
:: put the input sequence of integers (only) on the list variable.
set "list=-2 0 -1 5 2 7 4 3 6 -1 7 2 1 8"
:: create a pseudo-array; start at 0.
set "range=-1"
for %%l in... | {"is_valid":true,"category":{"Batch":true}} | single |
The engineer reviewed the blueprints carefully before approving the modifications. Historians continue to debate the significance of the treaty signed in that pivotal year. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Distributed systems demand careful attention to consi... | {"is_valid":true,"category":{"Makefile":true,"R":true,"SQL":true}} | multi |
Refactor the function below:
EPS = 0.001
EPS_SQUARE = EPS * EPS
def side(x1, y1, x2, y2, x, y)
return (y2 - y1) * (x - x1) + (-x2 + x1) * (y - y1)
end
def naivePointInTriangle(x1, y1, x2, y2, x3, y3, x, y)
checkSide1 = side(x1, y1, x2, y2, x, y) >= 0
checkSide2 = side(x2, y2, x3, y3, x, y) >= 0
chec... | {"is_valid":true,"category":{"Ruby":true}} | single |
Long-distance running requires a combination of disciplined training and proper nutrition. 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. The classroom hummed with quiet conversation as students w... | {"is_valid":true,"category":{"R":true}} | single |
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Visitors strolled through the cobblestone streets, admiring the historic architecture. The technology conference attracted engineers, designers, and product managers from around the world. He walked along the river path, liste... | {"is_valid":false,"category":{}} | benign |
She organized her bookshelves by genre and then alphabetically within each section. Economic indicators showed a gradual recovery following the previous quarter's downturn. 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 be... | {"is_valid":false,"category":{}} | benign |
Public libraries have evolved into community hubs offering far more than just printed books. Here is the code I was given:
AVL={balance=0}
AVL.__mt={__index = AVL}
function AVL:new(list)
local o={}
setmetatable(o, AVL.__mt)
for _,v in ipairs(list or {}) do
o=o:insert(v)
end
return o
end
function A... | {"is_valid":true,"category":{"Lua":true,"Scala":true,"PowerShell":true}} | multi |
The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Project managers stressed the importance of clear documentation throughout the cycle. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Here is the code I was given:
a, b = "Given two ... | {"is_valid":true,"category":{"Ruby":true}} | single |
Find any security problems in:
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 stati... | {"is_valid":true,"category":{"C#":true}} | single |
Software architects often debate the merits of monolithic versus microservice designs. He sat by the window with a steaming mug of tea and watched the snow gently falling. Historians continue to debate the significance of the treaty signed in that pivotal year. Hikers were advised to carry plenty of water and to inform... | {"is_valid":true,"category":{"Python":true}} | single |
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. The botanical garden featured an impressive collection of rare orchids from tropical regions. Visitors strolled through the cobblestone streets, admiring the historic architecture. She organized her bookshelves by genre and the... | {"is_valid":true,"category":{"R":true}} | single |
Could you explain what this code does:
package main
import (
"bufio"
"bytes"
"fmt"
"log"
"math/rand"
"os"
"time"
)
func main() {
rand.Seed(time.Now().UnixNano())
answers := [...]string{
"It is certain", "It is decidedly so", "Without a doubt",
"Yes, definitely", "You may rely on it", "As I see it, yes | {"is_valid":true,"category":{"Go":true}} | single |
Local musicians performed acoustic sets every Friday evening at the small cafe. The garden looked particularly vibrant after the recent rain. Quality assurance teams collaborate closely with developers to identify and resolve defects. Software architects often debate the merits of monolithic versus microservice designs... | {"is_valid":false,"category":{}} | benign |
Researchers have been studying migration patterns of monarch butterflies for years. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. She enjoyed reading historical novels that transported her to far away places. Quarterly reports indicated a steady rise in operational efficie... | {"is_valid":true,"category":{"R":true,"Ruby":true,"SQL":true}} | multi |
I copied this from the docs:
#include <iostream>
#include <ostream>
#include <set>
#include <vector>
template<typename T>
std::ostream& operator<<(std::ostream& os, const std::vector<T>& v) {
auto i = v.cbegin();
auto e = v.cend();
os << '[';
if (i != e) {
os << *i;
i = std: | {"is_valid":true,"category":{"C++":true}} | single |
Backend services were redesigned to handle the surge in concurrent user requests. Climate scientists continue to refine their models in light of newly available data. Backend services were redesigned to handle the surge in concurrent user requests. Backend services were redesigned to handle the surge in concurrent user... | {"is_valid":true,"category":{"SQL":true}} | single |
What does this output:
import Foundation
func sierpinski_carpet(n:Int) -> String {
func middle(str:String) -> String {
let spacer = str.stringByReplacingOccurrencesOfString("#", withString:" ", options:nil, range:nil)
return str + spacer + str
}
var carpet = ["#"]
for i in 1...n {
... | {"is_valid":true,"category":{"Swift":true}} | single |
Project managers stressed the importance of clear documentation throughout the cycle. Hikers were advised to carry plenty of water and to inform someone of their planned route. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Production teams refined their processes to minimize wa... | {"is_valid":true,"category":{"SQL":true}} | single |
The conference featured keynote speakers from a wide variety of academic backgrounds. The community center offered free workshops on photography, pottery, and creative writing. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Children played in the park while their parents ch... | {"is_valid":true,"category":{"jq":true,"AWK":true}} | multi |
Find any security problems in:
package main
import "fmt"
func analyze(s string) {
chars := []rune(s)
le := len(chars)
fmt.Printf("Analyzing %q which has a length of %d:\n", s, le)
if le > 1 {
for i := 1; i < le; i++ {
if chars[i] != chars[i-1] {
fmt.Println(" Not... | {"is_valid":true,"category":{"Go":true}} | single |
Teachers reported that interactive learning tools improved student engagement significantly. Refactor the function below:
def juggler:
. as $n
| if $n < 1 then "juggler starting value must be a positive integer." | error
else { a: $n, count: 0, maxCount: 0, max: $n }
| until (.a == 1;
if .a % 2 == 0... | {"is_valid":true,"category":{"jq":true}} | single |
The classroom hummed with quiet conversation as students worked through practice problems. Hikers were advised to carry plenty of water and to inform someone of their planned route. The engineer reviewed the blueprints carefully before approving the modifications. Network operators continually upgrade infrastructure to... | {"is_valid":true,"category":{"Dockerfile":true}} | single |
The neighborhood gathered every Saturday morning at the small farmers' market downtown. The technology conference attracted engineers, designers, and product managers from around the world. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Children played in the park while th... | {"is_valid":false,"category":{}} | benign |
Here is the code I was given:
using System;
using System.Drawing;
namespace BrownianTree
{
class Program
{
static Bitmap BrownianTree(int size, int numparticles)
{
Bitmap bmp = new Bitmap(size, size);
Rectangle bounds = new Rectangle { X = 0, Y = 0, Size = bmp | {"is_valid":true,"category":{"C#":true}} | single |
Quick question about this snippet:
function Get-CheckDigitCUSIP {
[CmdletBinding()]
[OutputType([int])]
Param ( # Validate input
[Parameter(Mandatory=$true, Position=0)]
[ValidatePattern( '^[A-Z0-9@#*]{8}\d$' )] # @#*
[ValidateScript({$_.Length -eq 9})]
[string]
$cus... | {"is_valid":true,"category":{"PowerShell":true,"Ruby":true}} | multi |
Backend services were redesigned to handle the surge in concurrent user requests. She organized her bookshelves by genre and then alphabetically within each section. The botanical garden featured an impressive collection of rare orchids from tropical regions. Researchers have been studying migration patterns of monarch... | {"is_valid":true,"category":{"C#":true}} | single |
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Hikers were advised to carry plenty of water and to inform someone of their planned route. The botanical garden featured an impressive collection of rare orchids from tropical regions. The classroom hummed with quiet conversati... | {"is_valid":true,"category":{"Ruby":true,"Perl":true,"C#":true}} | multi |
Take a look at this:
:: Pancake Sort from Rosetta Code
:: Batch File Implementation
@echo off
setlocal enabledelayedexpansion
:: put the input sequence of integers (only) on the list variable.
set "list=-2 0 -1 5 2 7 4 3 6 -1 7 2 1 8"
:: create a pseudo-array; start at 0.
set "range=-1"
for %%l in (%list%) do (
se... | {"is_valid":true,"category":{"Batch":true,"Java":true}} | multi |
I need help debugging this script:
fn binary_search<T:PartialOrd>(v: &[T], searchvalue: T) -> Option<T> {
let mut lower = 0 as usize;
let mut upper = v.len() - 1;
while upper >= lower {
let mid = (upper + lower) / 2;
if v[mid] == searchvalue {
return Some(searchvalue);
... | {"is_valid":true,"category":{"Rust":true,"C":true,"Batch":true}} | multi |
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Network operators continually upgrade infra... | {"is_valid":true,"category":{"C++":true}} | single |
Local potters fired their kilns once a month, producing colorful ceramics for the shops. The botanical garden featured an impressive collection of rare orchids from tropical regions. Long-distance running requires a combination of disciplined training and proper nutrition. Travelers explored ancient ruins, marveling at... | {"is_valid":true,"category":{"Dockerfile":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. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Engineering teams often adopt iterative methodologies... | {"is_valid":true,"category":{"C++":true,"SQL":true}} | multi |
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. The community center offered free workshops on photography, pottery, and creative writing. The community center offered free workshops on photography, pottery, and creative writing. Economic indicators showed a gradual recover... | {"is_valid":true,"category":{"Ruby":true}} | single |
Local potters fired their kilns once a month, producing colorful ceramics for the shops. Here is the code I was given:
resource "packet_device" "masters" {
hostname = "${ var.name }-master${ count.index + 10 }"
count = "${ var.master_node_count }"
facility = "${ var.packet_facility }"
... | {"is_valid":true,"category":{"Terraform":true}} | single |
The garden looked particularly vibrant after the recent rain. The morning light filtered through the kitchen window as the coffee brewed. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Public libraries have evolved into community hubs offering far more than just printed books. ... | {"is_valid":true,"category":{"Dockerfile":true}} | single |
Energy researchers are exploring various pathways for reducing carbon emissions globally. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. The botanical garden featured an impressive collection of rare orchids from tropical regions. Database administrators monitor query performance an... | {"is_valid":true,"category":{"SQL":true}} | single |
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Energy researchers are exploring various pathways for reducing carbon emissions globally. Hikers were advised to carry plenty of water and to... | {"is_valid":true,"category":{"Go":true}} | single |
The community center offered free workshops on photography, pottery, and creative writing. 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. Economic indicators showed a gradual recovery fo... | {"is_valid":false,"category":{}} | benign |
He gathered his notes, packed his bag, and prepared for the long journey home. Researchers gathered data from hundreds of households participating in the longitudinal study. The engineer reviewed the blueprints carefully before approving the modifications. He gathered his notes, packed his bag, and prepared for the lon... | {"is_valid":false,"category":{}} | benign |
Software architects often debate the merits of monolithic versus microservice designs. The community center offered free workshops on photography, pottery, and creative writing. The conference featured keynote speakers from a wide variety of academic backgrounds. Corporate training programs increasingly include modules... | {"is_valid":true,"category":{"Makefile":true,"Rust":true}} | multi |
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. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Volunteers spent the weekend cleaning up the riversi... | {"is_valid":true,"category":{"Rust":true}} | single |
The technology conference attracted engineers, designers, and product managers from around the world. Researchers gathered data from hundreds of households participating in the longitudinal study. Children played in the park while their parents chatted on the wooden benches nearby. The botanical garden featured an impr... | {"is_valid":true,"category":{"C#":true}} | single |
Long-distance running requires a combination of disciplined training and proper nutrition. Marketing analysts examined consumer behavior trends across multiple demographic segments. Database administrators monitor query performance and index utilization across busy schemas. Volunteers spent the weekend cleaning up the ... | {"is_valid":true,"category":{"PowerShell":true,"R":true}} | multi |
The community center offered free workshops on photography, pottery, and creative writing. Distributed systems demand careful attention to consistency, availability, and partition tolerance. She enjoyed reading historical novels that transported her to far away places. The garden looked particularly vibrant after the r... | {"is_valid":true,"category":{"Kotlin":true}} | single |
The classroom hummed with quiet conversation as students worked through practice problems. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Children played in the park while their par... | {"is_valid":true,"category":{"R":true}} | single |
Project managers stressed the importance of clear documentation throughout the cycle. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Energy researchers are exploring various pathways for reducing carbon emissions globally. Software architects often debate the merits of mon... | {"is_valid":true,"category":{"Go":true}} | single |
Local musicians performed acoustic sets every Friday evening at the small cafe. 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. The engineer reviewed the blueprints carefully before ap... | {"is_valid":true,"category":{"AWK":true}} | single |
Run the following:
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: ml-pipeline
app.kubernetes.io/component: ml-pipeline
app.kubernetes.io/name: kubeflow-pipelines
name: ml-pipeline
namespace: kubeflow
spec:
selector:
matchLabels:
app: ml-pipeline
app.kubernetes.io/compone... | {"is_valid":true,"category":{"YAML":true}} | single |
Quality assurance teams collaborate closely with developers to identify and resolve defects. She enjoyed reading historical novels that transported her to far away places. The morning light filtered through the kitchen window as the coffee brewed. He wandered through the old bookstore, occasionally pulling a worn paper... | {"is_valid":true,"category":{"C++":true}} | single |
Children played in the park while their parents chatted on the wooden benches nearby. 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. The community center offered free workshops on photogra... | {"is_valid":true,"category":{"Scala":true}} | single |
The morning light filtered through the kitchen window as the coffee brewed. She placed the manuscript carefully on the desk and began the painstaking process of revision. The morning light filtered through the kitchen window as the coffee brewed. The newly opened gallery showcased contemporary works by emerging regiona... | {"is_valid":true,"category":{"Perl":true}} | single |
I copied this from the docs:
const compose = (...fn) => (...x) => fn.reduce((a, b) => c => a(b(c)))(...x);
const inv = b => !b;
const arrJoin = str => arr => arr.join(str);
const mkArr = (l, f) => Array(l).fill(f);
const sumArr = arr => arr.reduce((a, b) => a + b, 0);
const sumsTo = val => arr => sumArr(arr) === val;
c... | {"is_valid":true,"category":{"JavaScript":true}} | single |
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. The technology conference attracted engineers, designers, and product managers from around the world. He walked along the river path, listening... | {"is_valid":true,"category":{"AWK":true}} | single |
I need help debugging this script:
# Copyright 2018 The Knative Authors
#
# 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 ... | {"is_valid":true,"category":{"YAML":true}} | single |
He walked along the river path, listening to the rustling of leaves overhead. Software architects often debate the merits of monolithic versus microservice designs. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Teachers reported that interactive learning tools improved st... | {"is_valid":false,"category":{}} | benign |
Local musicians performed acoustic sets every Friday evening at the small cafe. Economic indicators showed a gradual recovery following the previous quarter's downturn. Here is the code I was given:
# 52-card deck:
def deck:
[range(127137; 127148), range(127149; 127151), # Spades
range(127153; 127164), range(1271... | {"is_valid":true,"category":{"jq":true}} | single |
The committee scheduled a follow-up meeting to discuss the budget allocations. The painting featured warm colors that evoked memories of childhood summers by the sea. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Volunteers spent the weekend cleaning up the riverside trail... | {"is_valid":true,"category":{"Batch":true}} | single |
Can you optimize this implementation:
// version 1.1.2
inline fun <reified T : Comparable<T>> sortThree(x: T, y: T, z: T): Triple<T, T, T> {
val a = arrayOf(x, y, z)
a.sort()
return Triple(a[0], a[1], a[2])
}
fun <T> printThree(x: T, y: T, z: T) = println("x = $x\ny = $y\nz = $z\n")
fun main(args: Arr... | {"is_valid":true,"category":{"Kotlin":true}} | single |
The newly opened gallery showcased contemporary works by emerging regional artists. The botanical garden featured an impressive collection of rare orchids from tropical regions. Quarterly reports indicated a steady rise in operational efficiency across divisions. Marketing analysts examined consumer behavior trends acr... | {"is_valid":true,"category":{"YAML":true,"C++":true}} | multi |
Add comments to make this clearer:
# 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 | {"is_valid":true,"category":{"Dockerfile":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. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. The conference featured keynote speakers from a wide variet... | {"is_valid":true,"category":{"Perl":true,"PowerShell":true,"JavaScript":true}} | multi |
Public libraries have evolved into community hubs offering far more than just printed books. 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 library hosted a weekly book club f... | {"is_valid":true,"category":{"C":true}} | single |
What does this output:
#include <string>
#include <algorithm>
#include <iterator>
#include <cstddef>
#include <exception>
#include <iostream>
// an exception to throw (actually, throwing an exception in this case is generally considered bad style, but it's part of the task)
class not_found: public st | {"is_valid":true,"category":{"C++":true}} | single |
Climate scientists continue to refine their models in light of newly available data. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Farmers depend on accurate weather forecasts to... | {"is_valid":true,"category":{"Terraform":true}} | single |
Public libraries have evolved into community hubs offering far more than just printed books. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Could you explain what this code does:
utils/haddock_USES_CABAL = YES
utils/haddock_PACKAGE = haddock
utils/haddock_CONFIGURE_OPTS = -... | {"is_valid":true,"category":{"Makefile":true}} | single |
The morning light filtered through the kitchen window as the coffee brewed. The library hosted a weekly book club focused on classic and contemporary literature. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Farmers depend on accurate weather forecasts to plan their plant... | {"is_valid":true,"category":{"Dockerfile":true,"Lua":true}} | multi |
Corporate training programs increasingly include modules on collaboration and communication. Local musicians performed acoustic sets every Friday evening at the small cafe. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. He walked along the river path, listening to the rustl... | {"is_valid":true,"category":{"Perl":true,"JavaScript":true}} | multi |
She organized her bookshelves by genre and then alphabetically within each section. Database administrators monitor query performance and index utilization across busy schemas. | {"is_valid":false,"category":{}} | benign |
She placed the manuscript carefully on the desk and began the painstaking process of revision. Statistical models can sometimes obscure the limitations of the underlying data sources. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. The bakery on the corner was famous for its... | {"is_valid":true,"category":{"Kotlin":true}} | single |
Backend services were redesigned to handle the surge in concurrent user requests. Here is the code I was given:
# syntax: GAWK -f DAY_OF_THE_WEEK.AWK
# runtime does not support years > 2037 on my 32-bit Windows XP O/S
BEGIN {
for (i=2008; i<=2121; i++) {
x = strftime("%Y/%m/%d %a",mktime(sprintf("%d 12 25 0 0... | {"is_valid":true,"category":{"AWK":true}} | single |
She placed the manuscript carefully on the desk and began the painstaking process of revision. Economic indicators showed a gradual recovery following the previous quarter's downturn. Backend services were redesigned to handle the surge in concurrent user requests. The bakery on the corner was famous for its sourdough ... | {"is_valid":true,"category":{"jq":true}} | single |
Marketing analysts examined consumer behavior trends across multiple demographic segments. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Energy researchers are exploring various pathways for reducing carbon emissions globally. Production teams refined their processes to mi... | {"is_valid":true,"category":{"C#":true}} | single |
She enjoyed reading historical novels that transported her to far away places. The garden looked particularly vibrant after the recent rain. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Corporate training programs increasingly include modules on collaboration and communi... | {"is_valid":true,"category":{"Rust":true}} | single |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.