prompt large_stringlengths 150 7.97k | target large_stringlengths 32 83 | kind large_stringclasses 3
values |
|---|---|---|
Project managers stressed the importance of clear documentation throughout the cycle. Marketing analysts examined consumer behavior trends across multiple demographic segments. Can you optimize this implementation:
#![allow(unused_unsafe)]
extern crate libc;
use std::io::{self,Write};
use std::{mem,ffi,process};
us... | {"is_valid":true,"category":{"Rust":true}} | single |
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. Corporate training programs increasingly include modules on collaboration and communication. Hikers were advised to carry plenty of wa... | {"is_valid":true,"category":{"Scala":true}} | single |
She placed the manuscript carefully on the desk and began the painstaking process of revision. Historians continue to debate the significance of the treaty signed in that pivotal year. She organized her bookshelves by genre and then alphabetically within each section. Quarterly reports indicated a steady rise in operat... | {"is_valid":true,"category":{"Lua":true}} | single |
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. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Farmers depend on accurate weather forecasts to plan the... | {"is_valid":true,"category":{"Ruby":true}} | single |
Corporate training programs increasingly include modules on collaboration and communication. Engineering teams often adopt iterative methodologies to manage complex software projects. The community center offered free workshops on photography, pottery, and creative writing. Long-distance running requires a combination ... | {"is_valid":true,"category":{"JavaScript":true,"Dockerfile":true}} | multi |
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Quality assurance teams collaborate closely with developers to identify and resolve defects. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Quality assurance teams collaborate closely with d... | {"is_valid":true,"category":{"AWK":true,"Kotlin":true}} | multi |
The morning light filtered through the kitchen window as the coffee brewed. 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. The engineer reviewed the blueprints carefully before approving the modi... | {"is_valid":true,"category":{"Terraform":true}} | single |
What does this output:
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <complex.h>
double PI;
typedef double complex cplx;
void _fft(cplx buf[], cplx out[], int n, int step)
{
if (step < n) {
_fft(out, buf, n, step * 2);
_fft(out + step, buf + step, n, step * 2);
for (int i = 0; i < n; i ... | {"is_valid":true,"category":{"C":true}} | single |
I need help debugging this script:
# The MIT License (MIT)
#
# Copyright (c) 2016 Fred Sundvik
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without | {"is_valid":true,"category":{"Makefile":true}} | single |
The painting featured warm colors that evoked memories of childhood summers by the sea. Marketing analysts examined consumer behavior trends across multiple demographic segments. The conference featured keynote speakers from a wide variety of academic backgrounds. Modern microprocessors rely on pipelining and out-of-or... | {"is_valid":true,"category":{"Lua":true}} | single |
Take a look at this:
function Get-MersennePrime ([bigint]$Maximum = 4800)
{
[bigint]$n = [bigint]::One
for ($exp = 2; $exp -lt $Maximum; $exp++)
{
if ($exp -eq 2)
{
$s = 0
}
else
{
$s = 4
}
$n = ($n + 1) * 2 - 1
f... | {"is_valid":true,"category":{"PowerShell":true}} | single |
Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. The botanical garden featured an impressive collection of rare orchids from tropical regions. Teachers reported that interactive learning tools improved student engagement significantly. Teachers reported that interactive learning... | {"is_valid":true,"category":{"Python":true}} | single |
The neighborhood gathered every Saturday morning at the small farmers' market downtown. She organized her bookshelves by genre and then alphabetically within each section. Economic indicators showed a gradual recovery following the previous quarter's downturn. The botanical garden featured an impressive collection of r... | {"is_valid":false,"category":{}} | benign |
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. Researchers have been studying migration patterns of monarch butterflies for years. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Teachers reported that interactive learning tools im... | {"is_valid":true,"category":{"Java":true}} | single |
Children played in the park while their parents chatted on the wooden benches nearby. What does this output:
output "forge-s3-bucket" {
value = length(aws_s3_bucket.aptos-testnet-helm) > 0 ? aws_s3_bucket.aptos-testnet-helm[0].bucket : null
}
output "oidc_provider" {
value = module.validator.oidc_provider
se... | {"is_valid":true,"category":{"Terraform":true}} | single |
Teachers reported that interactive learning tools improved student engagement significantly. Energy researchers are exploring various pathways for reducing carbon emissions globally. The garden looked particularly vibrant after the recent rain. The neighborhood gathered every Saturday morning at the small farmers' mark... | {"is_valid":true,"category":{"Rust":true}} | single |
Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. Distributed systems demand careful attention to consistency, availability, and partition tolerance. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Statistical models can sometimes obscure t... | {"is_valid":true,"category":{"Bash":true}} | single |
The community center offered free workshops on photography, pottery, and creative writing. Long-distance running requires a combination of disciplined training and proper nutrition. Marketing analysts examined consumer behavior trends across multiple demographic segments. The botanical garden featured an impressive col... | {"is_valid":false,"category":{}} | benign |
Children played in the park while their parents chatted on the wooden benches nearby. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Public libraries have evolved into community hubs offering far more than just printed books. Backend services were redesigned to handle the ... | {"is_valid":true,"category":{"Ruby":true}} | single |
Find any security problems in:
//C++14/17
#include <algorithm>//std::for_each
#include <iostream> //std::cout
#include <numeric> //std::iota
#include <vector> //std::vector, save solutions
#include <list> //std::list, for fast erase
using std::begin, std::end, std::for_each;
//Generates all the vali | {"is_valid":true,"category":{"C++":true}} | single |
The classroom hummed with quiet conversation as students worked through practice problems. He sat by the window with a steaming mug of tea and watched the snow gently falling. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Researchers have been studying migration pat... | {"is_valid":true,"category":{"Rust":true}} | single |
I copied this from the docs:
/**
* Copyright 2018 Google LLC
*
* 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 | {"is_valid":true,"category":{"Terraform":true}} | single |
Statistical models can sometimes obscure the limitations of the underlying data sources. The garden looked particularly vibrant after the recent rain. Production teams refined their processes to minimize waste and improve overall yield. Nutritionists generally recommend a balanced diet rich in whole grains and fresh pr... | {"is_valid":false,"category":{}} | benign |
Quick question about this snippet:
import java.awt.Color
import math.{floor => ipart, round, abs}
case class Point(x: Double, y: Double) {def swap = Point(y, x)}
def plotter(bm: RgbBitmap, c: Color)(x: Double, y: Double, v: Double) = {
val X = round(x).toInt
val Y = round(y).toInt
val V = v.toFloat
// tint ... | {"is_valid":true,"category":{"Scala":true}} | single |
He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Add comments to make this clearer:
var globalAudioContext = new webkitAudioContext();
function morsecode(text, unit, freq) {
'use strict';
// defaults
unit = unit ? unit : 0.05;
freq = freq ? freq : 700;
var cont = glo... | {"is_valid":true,"category":{"JavaScript":true,"Ruby":true}} | multi |
She placed the manuscript carefully on the desk and began the painstaking process of revision. 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. Nutritionists generally recommend a bal... | {"is_valid":true,"category":{"AWK":true}} | single |
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. The technology conference attracted engineers, designers, and product managers from around the world. The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Quarterly reports indicated a steady rise... | {"is_valid":false,"category":{}} | benign |
Children played in the park while their parents chatted on the wooden benches nearby. Hikers were advised to carry plenty of water and to inform someone of their planned route. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Corporate training programs increasingly include m... | {"is_valid":true,"category":{"PowerShell":true}} | single |
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. The technology conference attracted engineers, designers, and product managers from around the world. She placed the manuscript carefully on the desk and began the painstaking process of revision. Climate scientists continue to... | {"is_valid":true,"category":{"PowerShell":true}} | single |
Researchers gathered data from hundreds of households participating in the longitudinal study. Historians continue to debate the significance of the treaty signed in that pivotal year. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. She enjoyed reading historical novels that tr... | {"is_valid":false,"category":{}} | benign |
She enjoyed reading historical novels that transported her to far away places. Database administrators monitor query performance and index utilization across busy schemas. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Researchers have been studying migration patterns of monarc... | {"is_valid":true,"category":{"Makefile":true}} | single |
Add comments to make this clearer:
using System;
using System.Linq;
class Program
{
static void Main(string[] args)
{
double x, xi, y, yi, z, zi;
x = 2.0;
xi = 0.5;
y = 4.0;
yi = 0.25;
z = x + y;
zi = 1.0 / (x + y);
var numlist = new[] { x, y, ... | {"is_valid":true,"category":{"C#":true}} | single |
The committee scheduled a follow-up meeting to discuss the budget allocations. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. The classroom hummed with quiet conversation as students wor... | {"is_valid":true,"category":{"Dockerfile":true}} | single |
The conference featured keynote speakers from a wide variety of academic backgrounds. Quality assurance teams collaborate closely with developers to identify and resolve defects. The painting featured warm colors that evoked memories of childhood summers by the sea. Farmers depend on accurate weather forecasts to plan ... | {"is_valid":true,"category":{"Makefile":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. Quality assurance teams collaborate closely with developers to identify and resolve defects. Travelers explored ancient ruins, marveling at the craftsmans... | {"is_valid":true,"category":{"AWK":true}} | single |
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 planting and harvesting schedules. She organized her bookshelves by genre and the... | {"is_valid":true,"category":{"AWK":true}} | single |
He sat by the window with a steaming mug of tea and watched the snow gently falling. The committee scheduled a follow-up meeting to discuss the budget allocations. Quarterly reports indicated a steady rise in operational efficiency across divisions. The conference featured keynote speakers from a wide variety of academ... | {"is_valid":false,"category":{}} | benign |
Historians continue to debate the significance of the treaty signed in that pivotal year. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. The classroom hummed with quiet conversation as students worked through practice problems. Software architects often debate the merits of mo... | {"is_valid":true,"category":{"Rust":true}} | single |
The library hosted a weekly book club focused on classic and contemporary literature. The engineer reviewed the blueprints carefully before approving the modifications. Researchers gathered data from hundreds of households participating in the longitudinal study. Children played in the park while their parents chatted ... | {"is_valid":true,"category":{"Makefile":true}} | single |
Policy analysts examined the long-term implications of the proposed legislative reform. Could you explain what this code does:
apiVersion: v1
kind: ServiceAccount
metadata:
name: cloudsqlproxy Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Climate models suggest that ocean temperatur... | {"is_valid":true,"category":{"YAML":true}} | single |
Refactor the function below:
data = { 12,127,28,42,39,113, 42,18,44,118,44,37,113,124,37,48,127,36,29,31,
125,139,131,115,105,132,104,123,35,113,122,42,117,119,58,109,23,105,
63,27,44,105,99,41,128,121,116,125,32,61,37,127,29,113,121,58,114,126,
53,114,96,25,109,7,31,141,46,13,27,43,117,116,27,7,68,40... | {"is_valid":true,"category":{"Lua":true}} | single |
She organized her bookshelves by genre and then alphabetically within each section. The newly opened gallery showcased contemporary works by emerging regional artists. He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Production teams refined their processes to minimize waste ... | {"is_valid":true,"category":{"Dockerfile":true}} | single |
She enjoyed reading historical novels that transported her to far away places. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. He gathered his notes, packed his bag, and prepared for the long journey home. Local musicians performed acoustic sets every Friday evening at the ... | {"is_valid":false,"category":{}} | benign |
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. The newly opened gallery showcased contemporary works by emerging regional artists. Teachers reported that interactive learning tools improved ... | {"is_valid":false,"category":{}} | benign |
Corporate training programs increasingly include modules on collaboration and communication. Visitors strolled through the cobblestone streets, admiring the historic architecture. Translate this into another language for me:
$str = "Hello, "
$str += "World!"
$str Travelers explored ancient ruins, marveling at the craft... | {"is_valid":true,"category":{"PowerShell":true}} | single |
Researchers have been studying migration patterns of monarch butterflies for years. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Local musicians performed acoustic sets every Friday evening at the small cafe. Travelers explored ancient ruins, marveling at the craftsmanshi... | {"is_valid":true,"category":{"PowerShell":true}} | single |
The painting featured warm colors that evoked memories of childhood summers by the sea. Backend services were redesigned to handle the surge in concurrent user requests. Late spring rains caused the lake to swell beyond its usual seasonal boundaries. Public libraries have evolved into community hubs offering far more t... | {"is_valid":false,"category":{}} | benign |
Historians continue to debate the significance of the treaty signed in that pivotal year. Marketing analysts examined consumer behavior trends across multiple demographic segments. Astronomers observed a faint signal that appeared to originate from a distant galaxy. The community center offered free workshops on photog... | {"is_valid":true,"category":{"Makefile":true}} | single |
Refactor the function below:
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app.kubernetes.io/component: controller
app.kubernetes.io/name: prometheus-operator
app.kubernetes.io/version: v0.39.0
name: prometheus-operator
namespace: monitoring
spec:
replicas: 1
selector:
matchLabels:
... | {"is_valid":true,"category":{"YAML":true}} | single |
Visitors strolled through the cobblestone streets, admiring the historic architecture. The bakery on the corner was famous for its sourdough loaves and seasonal pastries. The committee scheduled a follow-up meeting to discuss the budget allocations. Take a look at this:
w = "print('w = ' + chr(34) + w + chr(34) + chr(1... | {"is_valid":true,"category":{"Python":true,"Kotlin":true}} | multi |
The conference featured keynote speakers from a wide variety of academic backgrounds. Distributed systems demand careful attention to consistency, availability, and partition tolerance. Find any security problems in:
import fileinput
import sys
nodata = 0; # Current run of consecutive flags<0 in lines of ... | {"is_valid":true,"category":{"Python":true}} | single |
He walked along the river path, listening to the rustling of leaves overhead. Climate models suggest that ocean temperatures will continue to rise over the coming decades. Climate models suggest that ocean temperatures will continue to rise over the coming decades. A gentle breeze drifted across the meadow as the sun b... | {"is_valid":false,"category":{}} | benign |
Here is the code I was given:
CREATE TABLE college (Leader_Name VARCHAR, College_ID VARCHAR); CREATE TABLE member (College_ID VARCHAR, Country VARCHAR);
SELECT DISTINCT T1.Leader_Name FROM college AS T1 JOIN member AS T2 ON T1.College_ID = T2.College_ID WHERE T2.Country = "Canada" | {"is_valid":true,"category":{"SQL":true}} | single |
Production teams refined their processes to minimize waste and improve overall yield. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Nutritionists generally recommend a balanced diet rich in whole grains and fresh produce. Climate scientists continue to refine their models ... | {"is_valid":true,"category":{"Batch":true,"SQL":true,"Terraform":true}} | multi |
The botanical garden featured an impressive collection of rare orchids from tropical regions. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Production teams refined their processes to minimize waste and improve overall yield. Local potters fired their kilns once a month, produc... | {"is_valid":true,"category":{"JavaScript":true}} | single |
Production teams refined their processes to minimize waste and improve overall yield. He wandered through the old bookstore, occasionally pulling a worn paperback from the shelf. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Please review the following snippet for issues:... | {"is_valid":true,"category":{"Perl":true}} | single |
She enjoyed reading historical novels that transported her to far away places. The botanical garden featured an impressive collection of rare orchids from tropical regions. Network operators continually upgrade infrastructure to keep pace with growing demand. Economic indicators showed a gradual recovery following the ... | {"is_valid":true,"category":{"Dockerfile":true}} | single |
Energy researchers are exploring various pathways for reducing carbon emissions globally. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. | {"is_valid":false,"category":{}} | benign |
The bakery on the corner was famous for its sourdough loaves and seasonal pastries. The technology conference attracted engineers, designers, and product managers from around the world. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. The morning light filtered through the kitchen... | {"is_valid":true,"category":{"Dockerfile":true}} | single |
Quarterly reports indicated a steady rise in operational efficiency across divisions. Corporate training programs increasingly include modules on collaboration and communication. Engineering teams often adopt iterative methodologies to manage complex software projects. Historians continue to debate the significance of ... | {"is_valid":true,"category":{"Java":true}} | single |
Policy analysts examined the long-term implications of the proposed legislative reform. Refactor the function below:
# syntax: GAWK -f HASH_JOIN.AWK [-v debug={0|1}] TABLE_A TABLE_B
#
# sorting:
# PROCINFO["sorted_in"] is used by GAWK
# SORTTYPE is used by Thompson Automation's TAWK
#
BEGIN {
FS = ","
PROCI... | {"is_valid":true,"category":{"AWK":true,"Perl":true}} | multi |
Database administrators monitor query performance and index utilization across busy schemas. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Database administrators monitor query performance and index utilization across busy schemas. Researchers have been studying migration patte... | {"is_valid":true,"category":{"Lua":true}} | single |
Local musicians performed acoustic sets every Friday evening at the small cafe. Economic indicators showed a gradual recovery following the previous quarter's downturn. Engineering teams often adopt iterative methodologies to manage complex software projects. Network operators continually upgrade infrastructure to keep... | {"is_valid":true,"category":{"Dockerfile":true}} | single |
Take a look at this:
function sorting( a, b )
return a[1] < b[1]
end
tab = { {"C++", 1979}, {"Ada", 1983}, {"Ruby", 1995}, {"Eiffel", 1985} }
table.sort( tab, sorting )
for _, v in ipairs( tab ) do
print( unpack(v) )
end
And separately, here's a related piece:
def addNums(x: String, y: String) = {
va... | {"is_valid":true,"category":{"Lua":true,"Scala":true}} | multi |
She enjoyed reading historical novels that transported her to far away places. Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Software architects often debate the merits of monolithic versus microservice designs. The engineer reviewed the blueprints carefully before approv... | {"is_valid":true,"category":{"Rust":true}} | single |
The chef prepared a simple meal of roasted vegetables, fresh bread, and a light vinaigrette. Researchers have been studying migration patterns of monarch butterflies for years. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. I need help debugging this script:
class Camera {}
class M... | {"is_valid":true,"category":{"PowerShell":true}} | single |
The library hosted a weekly book club focused on classic and contemporary literature. Policy analysts examined the long-term implications of the proposed legislative reform. The garden looked particularly vibrant after the recent rain. Energy researchers are exploring various pathways for reducing carbon emissions glob... | {"is_valid":true,"category":{"YAML":true,"Rust":true,"R":true}} | multi |
Economic indicators showed a gradual recovery following the previous quarter's downturn. Quick question about this snippet:
apiVersion: v1
kind: Pod
metadata:
name: image-demo-7369
spec:
containers:
- name: nginx
image: nginx #ritaacr.azurecr.io/nginx:latest The bakery on the corner was famous for its sourdou... | {"is_valid":true,"category":{"YAML":true}} | single |
Corporate training programs increasingly include modules on collaboration and communication. She enjoyed reading historical novels that transported her to far away places. Network operators continually upgrade infrastructure to keep pace with growing demand. Find any security problems in:
gamma, coeff, quad, qui, set =... | {"is_valid":true,"category":{"Lua":true,"Terraform":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. Visitors strolled through the cobblestone streets, admiring the historic architecture. The bakery on the corner was famous for its sourdough loaves... | {"is_valid":true,"category":{"C#":true}} | single |
The newly opened gallery showcased contemporary works by emerging regional artists. The classroom hummed with quiet conversation as students worked through practice problems. I copied this from the docs:
object IdiomaticallyDetermineLowercaseUppercase extends App {
println("Upper case: "
+ (0 to 0x10FFFF).map(_... | {"is_valid":true,"category":{"Scala":true}} | single |
Public libraries have evolved into community hubs offering far more than just printed books. The painting featured warm colors that evoked memories of childhood summers by the sea. Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Local potters fired their kilns once a month, produ... | {"is_valid":false,"category":{}} | benign |
Software architects often debate the merits of monolithic versus microservice designs. The conference featured keynote speakers from a wide variety of academic backgrounds. The neighborhood gathered every Saturday morning at the small farmers' market downtown. Distributed systems demand careful attention to consistency... | {"is_valid":true,"category":{"C":true,"C++":true}} | multi |
Energy researchers are exploring various pathways for reducing carbon emissions globally. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Travelers explored ancient ruins, marveling at the craftsmanship of long-lost civilizations. The bakery on the corner was famous for its ... | {"is_valid":true,"category":{"C":true}} | single |
The morning light filtered through the kitchen window as the coffee brewed. Astronomers observed a faint signal that appeared to originate from a distant galaxy. Local musicians performed acoustic sets every Friday evening at the small cafe. Software architects often debate the merits of monolithic versus microservice ... | {"is_valid":true,"category":{"Dockerfile":true}} | single |
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. Refactor the function below:
for i in xrange(1, 101):
if i % 15 == 0:
print "FizzBuzz"
elif i % 3 == 0:
print "Fizz"
elif i % 5 == 0:
print "Buzz"
else:
print i He adjusted the telesco... | {"is_valid":true,"category":{"Python":true}} | single |
Project managers stressed the importance of clear documentation throughout the cycle. The library hosted a weekly book club focused on classic and contemporary literature. He walked along the river path, listening to the rustling of leaves overhead. Local musicians performed acoustic sets every Friday evening at the sm... | {"is_valid":true,"category":{"C++":true}} | single |
Find any security problems in:
variable "job_instances" {
description = "List of pairs <job_name>:<job_count> of expected bosh job instance count"
default = []
}
variable "support_email" {
description = "DeskPro email address"
default = "govpaas-alerting-dev@digital.cabinet-office.gov.uk"
}
v | {"is_valid":true,"category":{"Terraform":true}} | single |
Local potters fired their kilns once a month, producing colorful ceramics for the shops. Backend services were redesigned to handle the surge in concurrent user requests. I copied this from the docs:
$x = 1..1000 `
| ForEach-Object { 1 / ($_ * $_) } `
| Measure-Object -Sum
Write-Host Sum = $x.Sum The bota... | {"is_valid":true,"category":{"PowerShell":true}} | single |
The community center offered free workshops on photography, pottery, and creative writing. Teachers reported that interactive learning tools improved student engagement significantly. Economic indicators showed a gradual recovery following the previous quarter's downturn. He gathered his notes, packed his bag, and prep... | {"is_valid":true,"category":{"Lua":true,"C":true,"Batch":true}} | multi |
Farmers depend on accurate weather forecasts to plan their planting and harvesting schedules. Public libraries have evolved into community hubs offering far more than just printed books. Please review the following snippet for issues:
VPATH := $(srcdir)
COMMON_CFLAGS :=
METAL_CFLAGS :=
include $(srcdir)/kernel/$(plat... | {"is_valid":true,"category":{"Makefile":true}} | single |
I copied this from the docs:
#include <iostream>
#include <string>
#include <windows.h>
//--------------------------------------------------------------------------------------------------
using namespace std;
//--------------------------------------------------------------------------------------------- | {"is_valid":true,"category":{"C++":true}} | single |
Project managers stressed the importance of clear documentation throughout the cycle. Could you explain what this code does:
import roman
print(roman.toRoman(2022)) | {"is_valid":true,"category":{"Python":true}} | single |
He gathered his notes, packed his bag, and prepared for the long journey home. Production teams refined their processes to minimize waste and improve overall yield. The newly opened gallery showcased contemporary works by emerging regional artists. The classroom hummed with quiet conversation as students worked through... | {"is_valid":true,"category":{"R":true}} | single |
Volunteers spent the weekend cleaning up the riverside trail and planting new saplings. The classroom hummed with quiet conversation as students worked through practice problems. Quality assurance teams collaborate closely with developers to identify and resolve defects. Local musicians performed acoustic sets every Fr... | {"is_valid":true,"category":{"YAML":true}} | single |
I need help debugging this script:
extern crate libc;
#[cfg(all(
target_os = "linux",
any(target_pointer_width = "32", target_pointer_width = "64")
))]
fn main() {
use std::mem;
use std::ptr;
let page_size: usize = 4096;
let (bytes, size): (Vec<u8>, usize) = if cfg!(target_pointer_width | {"is_valid":true,"category":{"Rust":true}} | single |
Local potters fired their kilns once a month, producing colorful ceramics for the shops. The painting featured warm colors that evoked memories of childhood summers by the sea. Policy analysts examined the long-term implications of the proposed legislative reform. He adjusted the telescope and waited patiently for the ... | {"is_valid":true,"category":{"Kotlin":true,"Swift":true,"Rust":true}} | multi |
Translate this into another language for me:
table.unpack = table.unpack or unpack -- 5.1 compatibility
local nums = {1,2,3,4,5,6,7,8,9}
function add(a,b)
return a+b
end
function mult(a,b)
return a*b
end
function cat(a,b)
return tostring(a)..tostring(b)
end
local function reduce(fun,a,b,...)
if ... ... | {"is_valid":true,"category":{"Lua":true}} | single |
She enjoyed reading historical novels that transported her to far away places. The garden looked particularly vibrant after the recent rain. The committee scheduled a follow-up meeting to discuss the budget allocations. Can you optimize this implementation:
# Multiplicative Digital Roots
BEGIN {
printMdrAndMp( ... | {"is_valid":true,"category":{"AWK":true}} | single |
What does this output:
using System;
using System.Collections.Generic;
using static System.Console;
class Program {
static string B10(int n) {
int[] pow = new int[n + 1], val = new int[29];
for (int count = 0, ten = 1, x = 1; x <= n; x++) {
val[x] = ten;
for (int j = 0, t; j < | {"is_valid":true,"category":{"C#":true}} | single |
Quick question about this snippet:
$ kotlinc
Welcome to Kotlin version 1.2.31 (JRE 1.8.0_162-8u162-b12-0ubuntu0.16.04.2-b12)
Type :help for help, :quit for quit
>>> 20 + 22
42
>>> 5 * Math.sqrt(81.0)
45.0
>>> fun triple(x: Int) = x * 3
>>> triple(16)
48
>>> :quit | {"is_valid":true,"category":{"Kotlin":true}} | single |
Energy researchers are exploring various pathways for reducing carbon emissions globally. Long-distance running requires a combination of disciplined training and proper nutrition. He sat by the window with a steaming mug of tea and watched the snow gently falling. Quality assurance teams collaborate closely with devel... | {"is_valid":true,"category":{"Batch":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. Local potters fired their kilns once a month, producing colorful ceramics for the shops. She placed the manuscript carefully on the desk and be... | {"is_valid":true,"category":{"Ruby":true}} | single |
She organized her bookshelves by genre and then alphabetically within each section. Local potters fired their kilns once a month, producing colorful ceramics for the shops. Policy analysts examined the long-term implications of the proposed legislative reform. The garden looked particularly vibrant after the recent rai... | {"is_valid":true,"category":{"Terraform":true,"R":true}} | multi |
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. The morning light filtered through the kitchen window as the coffee brewed. Modern microprocessors rely on pipelining and out-of-order execution to maximize throughput. Could you explain what this code does:
#!/usr/bin/python
d... | {"is_valid":true,"category":{"Python":true}} | single |
Can you optimize this implementation:
#
# 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, Vers... | {"is_valid":true,"category":{"Dockerfile":true}} | single |
Statistical models can sometimes obscure the limitations of the underlying data sources. Policy analysts examined the long-term implications of the proposed legislative reform. A gentle breeze drifted across the meadow as the sun began to dip below the horizon. Quality assurance teams collaborate closely with developer... | {"is_valid":true,"category":{"C++":true,"Ruby":true}} | multi |
He gathered his notes, packed his bag, and prepared for the long journey home. Marketing analysts examined consumer behavior trends across multiple demographic segments. The neighborhood gathered every Saturday morning at the small farmers' market downtown. The conference featured keynote speakers from a wide variety o... | {"is_valid":true,"category":{"R":true}} | single |
I copied this from the docs:
$a = "foo" # global scope
function test {
$a = "bar" # local scope
Write-Host Local: $a # "bar" - local variable
Write-Host Global: $global:a # "foo" - global variable
} | {"is_valid":true,"category":{"PowerShell":true}} | single |
He adjusted the telescope and waited patiently for the clouds to clear over the observatory. Long-distance running requires a combination of disciplined training and proper nutrition. She organized her bookshelves by genre and then alphabetically within each section. Researchers have been studying migration patterns of... | {"is_valid":false,"category":{}} | benign |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.