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. Researchers have been studying migration patterns of monarch butterflies for years. The morning light filtered through the kitchen window as the coffee brewed. Corporate training programs increasingly include modules on collaborati... | {"is_valid":false,"category":{}} | benign |
Corporate training programs increasingly include modules on collaboration and communication. Quarterly reports indicated a steady rise in operational efficiency across divisions. Production teams refined their processes to minimize waste and improve overall yield. Policy analysts examined the long-term implications of ... | {"is_valid":true,"category":{"Bash":true}} | single |
Software architects often debate the merits of monolithic versus microservice designs. The committee scheduled a follow-up meeting to discuss the budget allocations. Historians continue to debate the significance of the treaty signed in that pivotal year. Quarterly reports indicated a steady rise in operational efficie... | {"is_valid":true,"category":{"Kotlin":true,"C#":true}} | multi |
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Astronomers observed a faint signal that appeared to originate from a distant galaxy. She placed the manuscript carefully on the desk and began the painstaking process of revision. He adjusted the telescope and waited patiently for the... | {"is_valid":true,"category":{"Python":true,"PowerShell":true}} | multi |
Hikers were advised to carry plenty of water and to inform someone of their planned route. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Production teams refined their processes to minimize waste and improve overall yield. Project managers stressed the importance of clear ... | {"is_valid":true,"category":{"Makefile":true,"Lua":true}} | multi |
Visitors strolled through the cobblestone streets, admiring the historic architecture. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Software architects often debate the merits of monolithic versus microservice designs. The morning light filtered through the kitchen window... | {"is_valid":true,"category":{"Terraform":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. | {"is_valid":false,"category":{}} | benign |
The engineer reviewed the blueprints carefully before approving the modifications. 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. Statistical models can sometimes obscure the limitations of th... | {"is_valid":true,"category":{"Ruby":true}} | single |
Could you explain what this code does:
void myFuncSimple( void (*funcParameter)(void) )
{
/* ... */
(*funcParameter)(); /* Call the passed function. */
funcParameter(); /* Same as above with slight different syntax. */
/* ... */
}
Plus, for comparison, the equivalent here:
def add(stream): red... | {"is_valid":true,"category":{"C":true,"jq":true,"C++":true}} | multi |
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Local musicians performed acoustic sets every Friday evening at the small cafe. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Climate scientists continue to refine their models in ligh... | {"is_valid":true,"category":{"Kotlin":true}} | single |
The morning light filtered through the kitchen window as the coffee brewed. Network operators continually upgrade infrastructure to keep pace with growing demand. Local potters fired their kilns once a month, producing colorful ceramics for the shops. The neighborhood gathered every Saturday morning at the small farmer... | {"is_valid":false,"category":{}} | benign |
Corporate training programs increasingly include modules on collaboration and communication. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. The garden looked particularly vibrant after the recent rain. He wandered through the old bookstore, occasionally pulling a worn paper... | {"is_valid":true,"category":{"Ruby":true}} | single |
The technology conference attracted engineers, designers, and product managers from around the world. The newly opened gallery showcased contemporary works by emerging regional artists. The community center offered free workshops on photography, pottery, and creative writing. Engineering teams often adopt iterative met... | {"is_valid":true,"category":{"C#":true}} | single |
Corporate training programs increasingly include modules on collaboration and communication. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Climate scientists continue to refine the... | {"is_valid":true,"category":{"Java":true}} | single |
The library hosted a weekly book club focused on classic and contemporary literature. Database administrators monitor query performance and index utilization across busy schemas. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. He sat by the window with a steaming mug of tea and... | {"is_valid":true,"category":{"C++":true}} | single |
Find any security problems in:
# Use Zeller's Congruence to determine the day of the week, given
# year, month and day as integers in the conventional way.
# If iso == "iso" or "ISO", then emit an integer in 1 -- 7 where
# 1 represents Monday, 2 Tuesday, etc;
# otherwise emit 0 for Saturday, 1 for Sunday, etc.
#
def d... | {"is_valid":true,"category":{"jq":true}} | single |
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. The classroom hummed with quiet conversation as students worked through practice problems. Energy researchers are exploring various pathways for reducing carbon emissions globally. The neighborhood gathered every Saturday morn... | {"is_valid":true,"category":{"Swift":true}} | single |
Please review the following snippet for issues:
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <math.h>
typedef struct quaternion
{
double q[4];
} quaternion_t;
quaternion_t *quaternion_new(void)
{
return malloc(sizeof(quaternion_t));
}
quaternion_t *quaternion_new_set(double q1,
... | {"is_valid":true,"category":{"C":true}} | single |
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. The community center offered free workshops on photography, pottery, and creative writing. Historians continue to debate the significance of the treaty signed in that pivotal year. Quality assurance teams collaborate closely with devel... | {"is_valid":true,"category":{"AWK":true}} | single |
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Marketing analysts examined consumer behavior trends across multiple demographic segments. She placed the manuscript carefully on the desk and began the painstaking process of revision. Local musicians performed acoustic sets ever... | {"is_valid":true,"category":{"SQL":true,"Scala":true}} | multi |
The classroom hummed with quiet conversation as students worked through practice problems. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Travelers explored ancient ruins, marveling at the... | {"is_valid":true,"category":{"Terraform":true}} | single |
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Add comments to make this clearer:
sub urlencode {
my $s = shift;
$s =~ s/([^-A-Za-z0-9_.!~*'() ])/sprintf("%%%02X", ord($1))/eg;
$s =~ tr/ /+/;
return $s;
}
print urlencode('http://foo bar/')."\n"; Local potters... | {"is_valid":true,"category":{"Perl":true}} | single |
Project managers stressed the importance of clear documentation throughout the cycle. She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. Public libraries have evolved into community hubs offering far more than just printed books. The neighborhood gathered every Saturday mornin... | {"is_valid":false,"category":{}} | benign |
Take a look at this:
# syntax: GAWK -f SUM_OF_ELEMENTS_BELOW_MAIN_DIAGONAL_OF_MATRIX.AWK
BEGIN {
arr1[++n] = "1,3,7,8,10"
arr1[++n] = "2,4,16,14,4"
arr1[++n] = "3,1,9,18,11"
arr1[++n] = "12,14,17,18,20"
arr1[++n] = "7,1,3,9,5"
for (i=1; i<=n; i++) {
x = split(arr1[i],arr | {"is_valid":true,"category":{"AWK":true}} | single |
A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Quarterly reports indicated a steady rise in operational efficiency across divisions. Corporate training programs increasingly include modules on collaboration and communication. She placed the manuscript carefully on the desk and bega... | {"is_valid":true,"category":{"Go":true}} | single |
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Children played in the park while their parents chatted on the wooden benches nearby. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Statistical models can sometimes obscure the limitation... | {"is_valid":true,"category":{"Go":true}} | single |
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. The garden looked particularly vibrant after the recent rain. Quality assurance teams collaborate closely with developers to id... | {"is_valid":false,"category":{}} | benign |
Quarterly reports indicated a steady rise in operational efficiency across divisions. 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. Network operators continually upgrade infrastructure ... | {"is_valid":true,"category":{"Perl":true}} | single |
Marketing analysts examined consumer behavior trends across multiple demographic segments. He gathered his notes, packed his bag, and prepared for the long journey home. Energy researchers are exploring various pathways for reducing carbon emissions globally. The committee scheduled a follow-up meeting to discuss the b... | {"is_valid":true,"category":{"SQL":true,"Python":true}} | multi |
Quick question about this snippet:
var last_friday_of_month, print_last_fridays_of_month;
last_friday_of_month = function(year, month) {
var i, last_day;
i = 0;
while (true) {
last_day = new Date(year, month, i);
if (last_day.getDay() === 5) {
return last_day.toDateString();
}
i -= 1;
}
... | {"is_valid":true,"category":{"JavaScript":true}} | single |
Quick question about this snippet:
// version 1.1.0
// constant top level property
const val N = 5
// read-only top level property
val letters = listOf('A', 'B', 'C', 'D', 'E') // 'listOf' creates here a List<Char) which is immutable
class MyClass { // MyClass is effectively immutable because it's only prope... | {"is_valid":true,"category":{"Kotlin":true}} | single |
Translate this into another language for me:
romanToArabic <- function(roman) {
romanLookup <- c(I=1L, V=5L, X=10L, L=50L, C=100L, D=500L, M=1000L)
rSplit <- strsplit(toupper(roman), character(0)) # Split input vector into characters
toArabic <- function(item) {
digits <- romanLookup[item]
if (length(digi... | {"is_valid":true,"category":{"R":true}} | single |
What does this output:
function sum_multiples {
typeset -i n=$1 limit=$2
typeset -i max=limit-1
(( max -= max % n ))
printf '%d\n' $(( max / n * (n+max)/2 ))
}
function sum35 {
typeset -i limit=$1
printf '%d\n' $(( $(sum_multiples 3 $limit)
+ $(sum_multiples 5 $limit | {"is_valid":true,"category":{"Bash":true}} | single |
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Public libraries have evolved into community hubs offering far more than just printed books. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Researchers have been studying migration patterns ... | {"is_valid":true,"category":{"Lua":true}} | single |
The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Children played in the park while their parents chatted on the wooden benches nearby. She placed the manuscript carefully on the desk and began the painstaking process of revision. Local musicians performed acoustic sets every ... | {"is_valid":false,"category":{}} | benign |
What does this output:
from sympy.ntheory.generate import primorial
from sympy.ntheory import isprime
def fortunate_number(n):
'''Return the fortunate number for positive integer n.'''
# Since primorial(n) is even for all positive integers n,
# it suffices to search for the fortunate numbers among odd int... | {"is_valid":true,"category":{"Python":true}} | single |
He gathered his notes, packed his bag, and prepared for the long journey home. Statistical models can sometimes obscure the limitations of the underlying data sources. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Project managers stressed the importance of clear documentation ... | {"is_valid":true,"category":{"Scala":true}} | single |
Local musicians performed acoustic sets every Friday evening at the small cafe. Refactor the function below:
# DO NOT EDIT FILES CALLED 'Dockerfile'; they are automatically
# generated. Edit 'Dockerfile.in' and generate the 'Dockerfile'
# with the 'rake' command.
# The suggested name for this image is: bioconductor/re... | {"is_valid":true,"category":{"Dockerfile":true}} | single |
She placed the manuscript carefully on the desk and began the painstaking process of revision. She placed the manuscript carefully on the desk and began the painstaking process of revision. Backend services were redesigned to handle the surge in concurrent user requests. He gathered his notes, packed his bag, and prepa... | {"is_valid":true,"category":{"Makefile":true}} | single |
Climate models suggest that ocean temperatures will continue to rise over the coming decades. Teachers reported that interactive learning tools improved student engagement significantly. Policy analysts examined the long-term implications of the proposed legislative reform. Volunteers spent the weekend cleaning up the ... | {"is_valid":false,"category":{}} | benign |
Translate this into another language for me:
fn a(foo: bool) -> bool {
println!("a");
foo
}
fn b(foo: bool) -> bool {
println!("b");
foo
}
fn main() {
for i in vec![true, false] {
for j in vec![true, false] {
println!("{} and {} == {}", i, j, a(i) && b(j));
printl... | {"is_valid":true,"category":{"Rust":true}} | single |
The painting featured warm colors that evoked memories of childhood summers by the sea. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Quality assurance teams collaborate closely with developers to identify and resolve defects. Astronomers observed a faint signal that appeared ... | {"is_valid":true,"category":{"Java":true}} | single |
Please review the following snippet for issues:
resource "aws_instance" "web" {
ami = "${lookup(var.centos_amis, var.region)}"
instance_type = "t2.nano"
subnet_id = "${aws_subnet.private.id}"
vpc_security_group_ids = ["${aws_security_group.default.id}","${aws_security_group.web.id}"]
key_name = "${aws_key_pai... | {"is_valid":true,"category":{"Terraform":true}} | single |
Find any security problems in:
-- module token_name (in a file "token_name.lua")
local token_name = {
['*'] = 'Op_multiply',
['/'] = 'Op_divide',
['%'] = 'Op_mod',
['+'] = 'Op_add',
['-'] = 'Op_subtract',
['<'] = 'Op_less',
['<='] = 'Op_lessequal',
['>'] = ... | {"is_valid":true,"category":{"Lua":true,"Go":true}} | multi |
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. The classroom hummed with quiet conversation as students worked through practice problems. Climate models suggest that ocean temperatures will continue ... | {"is_valid":true,"category":{"PowerShell":true}} | single |
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. Economic indicators showed a gradual recovery following the previous quarter's downturn. Quick question about this snippet:
apiVersion: v1
kin... | {"is_valid":true,"category":{"YAML":true}} | single |
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. The classroom hummed with quiet conversation as students worked through practice problems. The committee scheduled a follow-up meeting to discu... | {"is_valid":false,"category":{}} | benign |
The newly opened gallery showcased contemporary works by emerging regional artists. 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. Climate scientists continue to refine their mod... | {"is_valid":false,"category":{}} | benign |
The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Refactor the function below:
#include <math.h>
#include <iostream>
unsigned pwr[10];
unsigned munch( unsigned i ) {
unsigned sum = 0;
while( i ) {
sum += pwr[(i % 10)];
i /= 10;
}
return sum;... | {"is_valid":true,"category":{"C++":true}} | single |
Project managers stressed the importance of clear documentation throughout the cycle. 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. Volunteers spent the weekend cleaning up the riverside trail and... | {"is_valid":true,"category":{"Perl":true}} | single |
She drafted a detailed agenda for the upcoming retreat and circulated it to all participants. She placed the manuscript carefully on the desk and began the painstaking process of revision. Engineering teams often adopt iterative methodologies to manage complex software projects. The neighborhood gathered every Saturday... | {"is_valid":true,"category":{"JavaScript":true}} | single |
She placed the manuscript carefully on the desk and began the painstaking process of revision. Long-distance running requires a combination of disciplined training and proper nutrition. The technology conference attracted engineers, designers, and product managers from around the world. Modern microprocessors rely on p... | {"is_valid":true,"category":{"Swift":true}} | single |
Researchers have been studying migration patterns of monarch butterflies for years. 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... | {"is_valid":true,"category":{"Dockerfile":true}} | single |
The neighborhood gathered every Saturday morning at the small farmers' market downtown. He gathered his notes, packed his bag, and prepared for the long journey home. Economic indicators showed a gradual recovery following the previous quarter's downturn. Software architects often debate the merits of monolithic versus... | {"is_valid":false,"category":{}} | benign |
The conference featured keynote speakers from a wide variety of academic backgrounds. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Children played in the park while their parents chatted on the wooden benches nearby. She organized her bookshelves by genre and then alphabetical... | {"is_valid":true,"category":{"Batch":true}} | single |
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Refactor the function below:
var obj = Object.create({
name: 'proto',
proto: true,
doNothing: function() {}
}, {
name: {v... | {"is_valid":true,"category":{"JavaScript":true}} | single |
The community center offered free workshops on photography, pottery, and creative writing. The newly opened gallery showcased contemporary works by emerging regional artists. Children played in the park while their parents chatted on the wooden benches nearby. The chef prepared a simple meal of roasted vegetables, fres... | {"is_valid":true,"category":{"C":true,"Terraform":true}} | multi |
The garden looked particularly vibrant after the recent rain. Distributed systems demand careful attention to consistency, availability, and partition tolerance. The committee scheduled a follow-up meeting to discuss the budget allocations. Software architects often debate the merits of monolithic versus microservice d... | {"is_valid":true,"category":{"Batch":true}} | single |
Children played in the park while their parents chatted on the wooden benches nearby. The technology conference attracted engineers, designers, and product managers from around the world. Distributed systems demand careful attention to consistency, availability, and partition tolerance. He sat by the window with a stea... | {"is_valid":true,"category":{"Lua":true}} | single |
She enjoyed reading historical novels that transported her to far away places. Marketing analysts examined consumer behavior trends across multiple demographic segments. Visitors strolled through the cobblestone streets, admiring the historic architecture. She enjoyed reading historical novels that transported her to f... | {"is_valid":false,"category":{}} | benign |
Historians continue to debate the significance of the treaty signed in that pivotal year. 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. Modern microprocessors rely on pipelining and out-of-o... | {"is_valid":false,"category":{}} | benign |
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. Climate scientists continue to refine their models in light of newly available data. Quality assurance teams collaborate closely with de... | {"is_valid":true,"category":{"Makefile":true,"C":true}} | multi |
He sat by the window with a steaming mug of tea and watched the snow gently falling. Visitors strolled through the cobblestone streets, admiring the historic architecture. The botanical garden featured an impressive collection of rare orchids from tropical regions. Climate scientists continue to refine their models in ... | {"is_valid":true,"category":{"Kotlin":true}} | single |
The morning light filtered through the kitchen window as the coffee brewed. He walked along the river path, listening to the rustling of leaves overhead. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. He adjusted the telescope and waited patiently for the clouds to clear over the ob... | {"is_valid":true,"category":{"JavaScript":true}} | single |
I need help debugging this script:
import java.awt.GridLayout
import java.awt.event.ActionEvent
import java.awt.event.ActionListener
import java.awt.event.KeyEvent
import java.awt.event.KeyListener
import javax.swing.*
class Interact : JFrame() {
val numberField = JTextField()
val incButton = JButton("Increme... | {"is_valid":true,"category":{"Kotlin":true}} | single |
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Project managers stressed the importance of clear documentation throughout the cycle. Network operators continually upgrade infrastructure to keep pace with growing demand. The garden looked particularly vibrant after the recen... | {"is_valid":true,"category":{"Bash":true}} | single |
The neighborhood gathered every Saturday morning at the small farmers' market downtown. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Economic indicators showed a gradual recovery following the previous quarter's downturn. Add comments to make this clearer:
str = "rosetta cod... | {"is_valid":true,"category":{"Ruby":true}} | single |
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Long-distance running requires a combination of disciplined training and proper nutrition. Network operators continually upgrade infrastructure to keep pace with growing demand. The classroom hummed with quiet conversation as s... | {"is_valid":true,"category":{"Makefile":true,"Batch":true}} | multi |
Add comments to make this clearer:
last_sundays() {
local y=$1
for (( m=1; m<=12; ++m )); do
cal $m $y | awk -vy=$y -vm=$m '/^.[0-9]/ {d=$1} END {print y"-"m"-"d}'
done
} | {"is_valid":true,"category":{"Bash":true}} | single |
What does this output:
@echo off & setlocal enabledelayedexpansion
echo BSD Rand
set /a a=0,cnt=1
:b
set /a "a=1103515245 *a+12345,a&=0x7fffffff, cnt+=1"
call:prettyprint !cnt! !a!
if !cnt! leq 10 goto :b
echo.
echo Microsoft Rand
set /a a=0,cnt=1
:c
set /a "a=214013 *a+2531011,a&=0x7fffffff, b=a>>16,cnt+=1"
call:p... | {"is_valid":true,"category":{"Batch":true}} | single |
Project managers stressed the importance of clear documentation throughout the cycle. Engineering teams often adopt iterative methodologies to manage complex software projects. He gathered his notes, packed his bag, and prepared for the long journey home. Climate scientists continue to refine their models in light of n... | {"is_valid":true,"category":{"PowerShell":true,"jq":true,"C++":true}} | multi |
Engineering teams often adopt iterative methodologies to manage complex software projects. Policy analysts examined the long-term implications of the proposed legislative reform. Quick question about this snippet:
object emptyProgram extends App {} The botanical garden featured an impressive collection of rare orchids ... | {"is_valid":true,"category":{"Scala":true}} | single |
Network operators continually upgrade infrastructure to keep pace with growing demand. Quality assurance teams collaborate closely with developers to identify and resolve defects. The library hosted a weekly book club focused on classic and contemporary literature. She organized her bookshelves by genre and then alphab... | {"is_valid":true,"category":{"Makefile":true}} | single |
Hikers were advised to carry plenty of water and to inform someone of their planned route. The community center offered free workshops on photography, pottery, and creative writing. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. He gathered his notes, packed his bag, and prepare... | {"is_valid":true,"category":{"Terraform":true,"Bash":true}} | multi |
Refactor the function below:
#Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
#
# 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":{"YAML":true}} | single |
I need help debugging this script:
#include <complex.h>
#include <stdio.h>
void cprint(double complex c)
{
printf("%f%+fI", creal(c), cimag(c));
}
void complex_operations() {
double complex a = 1.0 + 1.0I;
double complex b = 3.14159 + 1.2I;
double complex c;
printf("\na="); cprint(a);
printf("\nb="); ... | {"is_valid":true,"category":{"C":true}} | single |
Energy researchers are exploring various pathways for reducing carbon emissions globally. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. The painting featured warm colors that evoked memories of childhood summers by the sea. Marketing analysts examined consumer behavior tre... | {"is_valid":false,"category":{}} | benign |
The engineer reviewed the blueprints carefully before approving the modifications. Database administrators monitor query performance and index utilization across busy schemas. Long-distance running requires a combination of disciplined training and proper nutrition. Visitors strolled through the cobblestone streets, ad... | {"is_valid":true,"category":{"C":true,"Scala":true}} | multi |
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Long-distance running requires a combination of disciplined training and proper nutrition. The classroom hummed with quiet conversatio... | {"is_valid":true,"category":{"Perl":true}} | single |
Project managers stressed the importance of clear documentation throughout the cycle. Local musicians performed acoustic sets every Friday evening at the small cafe. Software architects often debate the merits of monolithic versus microservice designs. Public libraries have evolved into community hubs offering far more... | {"is_valid":true,"category":{"Ruby":true}} | single |
Here is the code I was given:
CREATE TABLE player (name_first VARCHAR, name_last VARCHAR, player_id VARCHAR); CREATE TABLE all_star (player_id VARCHAR);
SELECT T1.name_first, T1.name_last, T1.player_id, COUNT(*) FROM player AS T1 JOIN all_star AS T2 ON T1.player_id = T2.player_id GROUP BY T1.player_id ORDER B | {"is_valid":true,"category":{"SQL":true}} | single |
Distributed systems demand careful attention to consistency, availability, and partition tolerance. Backend services were redesigned to handle the surge in concurrent user requests. Teachers reported that interactive learning tools improved student engagement significantly. The garden looked particularly vibrant after ... | {"is_valid":true,"category":{"Lua":true}} | single |
Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. The morning light filtered through the kitchen window as the coffee brewed. Climate models suggest that ocean temperatures will contin... | {"is_valid":true,"category":{"Lua":true}} | single |
Statistical models can sometimes obscure the limitations of the underlying data sources. She organized her bookshelves by genre and then alphabetically within each section. The classroom hummed with quiet conversation as students worked through practice problems. He adjusted the telescope and waited patiently for the c... | {"is_valid":true,"category":{"AWK":true}} | single |
Translate this into another language for me:
using System;
using System.Threading.Tasks;
using static System.Diagnostics.Stopwatch;
using static System.Math;
using static System.Threading.Thread;
class ActiveObject
{
static double timeScale = 1.0 / Frequency;
Func<double, double> func;
Task updateTask... | {"is_valid":true,"category":{"C#":true}} | single |
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Add comments to make this clearer:
assert() {
if test ! $1; then
[[ $2 ]] && echo "$2" >&2
exit 1
fi
}
x=42
assert "$x -eq 42" "that's not the answer"
((x--))
assert "$x -eq 42" "that's not the answer"
e... | {"is_valid":true,"category":{"Bash":true}} | single |
The engineer reviewed the blueprints carefully before approving the modifications. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Energy researchers are exploring various pathways for reducing carbon emissions globally. Distributed systems demand careful attention to consisten... | {"is_valid":true,"category":{"Kotlin":true}} | single |
Translate this into another language for me:
# permissions for end users to view externalbackends.
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: externalbackend-viewer-role
rules:
- apiGroups:
- api.external-secrets-operator.app
resources:
- externalbackends
verbs:
- get
- lis... | {"is_valid":true,"category":{"YAML":true}} | single |
He sat by the window with a steaming mug of tea and watched the snow gently falling. Here is the code I was given:
@echo off
::Output to message box [Does not work in Window 7 and later]
msg * "Goodbye, World!" 2>nul
::Using MSHTA.EXE Hack::
@mshta javascript:alert("Goodbye, World!");code(close());
@mshta vbscript:Ex... | {"is_valid":true,"category":{"Batch":true,"Java":true}} | multi |
He walked along the river path, listening to the rustling of leaves overhead. 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. The technology conference attracted engineers, designers, and product managers... | {"is_valid":true,"category":{"Terraform":true}} | single |
The garden looked particularly vibrant after the recent rain. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Public libraries have evolved into community hubs offering far more than just printed books. Network operators continually upgrade infrastructure to keep pace with growing de... | {"is_valid":true,"category":{"Python":true,"Kotlin":true}} | multi |
Quick question about this snippet:
[string[]]$colors = "Black" , "DarkBlue" , "DarkGreen" , "DarkCyan",
"DarkRed" , "DarkMagenta", "DarkYellow", "Gray",
"DarkGray", "Blue" , "Green" , "Cyan",
"Red" , "Magenta" , "Yellow" , "White"
for... | {"is_valid":true,"category":{"PowerShell":true}} | single |
Could you explain what this code does:
#!/usr/bin/env bash
main() {
# Our ten males:
local males=(abe bob col dan ed fred gav hal ian jon)
# And ten females:
local females=(abi bea cath dee eve fay gay hope ivy jan)
# Everyone's preferences, ranked most to least desirable:
local abe=( abi eve cath iv... | {"is_valid":true,"category":{"Bash":true}} | single |
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Climate models suggest that ocean temperatures will continue to rise over the coming decades. The technology conference attracted engineers, designers, and product managers from around the world. I copied this from the docs:
# Default i... | {"is_valid":true,"category":{"Terraform":true,"Python":true}} | multi |
Public libraries have evolved into community hubs offering far more than just printed books. Here is the code I was given:
DEPS:=rabbitmq-server rabbitmq-erlang-client
C_SOURCE_DIR:=$(PACKAGE_DIR)/c_src
BINARY:=$(C_SOURCE_DIR)/kinit
C_SOURCE:=$(wildcard $(C_SOURCE_DIR)/*.c)
CC ?= gcc
CFLAGS ?=
LDFLAGS ?=
CC_OPTS:=-g ... | {"is_valid":true,"category":{"Makefile":true}} | single |
Software architects often debate the merits of monolithic versus microservice designs. Run the following:
#!/bin/bash
while read line
do
[[ ${line##* } =~ ^([7-9]|6\.0*[1-9]).*$ ]] && echo "$line"
done < data.txt | {"is_valid":true,"category":{"Bash":true}} | single |
He gathered his notes, packed his bag, and prepared for the long journey home. Quick question about this snippet:
ruby -pi -e "gsub('Goodbye London!', 'Hello New York!')" a.txt b.txt c.txt | {"is_valid":true,"category":{"Ruby":true}} | single |
Database administrators monitor query performance and index utilization across busy schemas. Researchers have been studying migration patterns of monarch butterflies for years. Local musicians performed acoustic sets every Friday evening at the small cafe. Researchers gathered data from hundreds of households participa... | {"is_valid":true,"category":{"Terraform":true,"Go":true,"Dockerfile":true}} | multi |
Visitors strolled through the cobblestone streets, admiring the historic architecture. Historians continue to debate the significance of the treaty signed in that pivotal year. Project managers stressed the importance of clear documentation throughout the cycle. Climate scientists continue to refine their models in lig... | {"is_valid":true,"category":{"Go":true,"Ruby":true,"R":true}} | multi |
Take a look at this:
(function () {
'use strict';
// waterCollected :: [Int] -> Int
var waterCollected = function (xs) {
return sum( // water above each bar
zipWith(function (a, b) {
return a - b; // difference between water | {"is_valid":true,"category":{"JavaScript":true}} | single |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.