Dataset Viewer
Auto-converted to Parquet Duplicate
prompt
stringlengths
1.3k
3.64k
language
stringclasses
16 values
label
int64
-1
5
text
stringlengths
14
130k
Below is an extract from a Rust program. Evaluate whether it has a high educational value and could help teach coding. Use the additive 5-point scoring system described below. Points are accumulated based on the satisfaction of each criterion: - Add 1 point if the program contains valid Rust code, even if it's not edu...
rust
3
use arrow2::array::*; #[test] fn primitive() { let data = vec![ Some(vec![Some(1i32), Some(2), Some(3)]), Some(vec![None, None, None]), Some(vec![Some(4), None, Some(6)]), ]; let mut list = MutableFixedSizeListArray::new(MutablePrimitiveArray::<i32>::new(), 3); list.try_extend(...
Below is an extract from a JavaScript program. Evaluate whether it has a high educational value and could help teach coding. Use the additive 5-point scoring system described below. Points are accumulated based on the satisfaction of each criterion: - Add 1 point if the program contains valid JavaScript code, even if ...
javascript
2
/* For pagination: Have a global page number variable: var pageNumber = 1; - This page number variable will be reset every time the user hits search... this means the first line of runQuery can be : pageNumber = 1; The below for loop will look like this: const numberOfRe...
Below is an extract from a PHP program. Evaluate whether it has a high educational value and could help teach coding. Use the additive 5-point scoring system described below. Points are accumulated based on the satisfaction of each criterion: - Add 1 point if the program contains valid PHP code, even if it's not educa...
php
2
<?php namespace SuusApi\Client; class LineAddress { /** * @var string $lp */ protected $lp = null; /** * @var string $type */ protected $type = null; /** * @var string $name */ protected $name = null; /** * @var string $street */ protected $s...
Below is an extract from a Java program. Evaluate whether it has a high educational value and could help teach coding. Use the additive 5-point scoring system described below. Points are accumulated based on the satisfaction of each criterion: - Add 1 point if the program contains valid Java code, even if it's not edu...
java
2
import java.util.Scanner; public class Family { private static String sur_name; private String first_name, last_name; private int year_of_birth; public static void getSurName() { Scanner inputTaker = new Scanner(System.in); System.out.println("Enter the family name : "); s...
Below is an extract from a Rust program. Evaluate whether it has a high educational value and could help teach coding. Use the additive 5-point scoring system described below. Points are accumulated based on the satisfaction of each criterion: - Add 1 point if the program contains valid Rust code, even if it's not edu...
rust
2
use crate::{ components::{GridLocation, Thing, ThingTape}, resources::RewindableClock, utils::{move_tape_backwards, move_tape_forwards}, }; use amethyst::{ derive::SystemDesc, ecs::prelude::{Join, Read, System, SystemData, WriteStorage}, }; #[derive(SystemDesc)] pub struct ThingTapeSystem; impl<'s...
Below is an extract from a JavaScript program. Evaluate whether it has a high educational value and could help teach coding. Use the additive 5-point scoring system described below. Points are accumulated based on the satisfaction of each criterion: - Add 1 point if the program contains valid JavaScript code, even if ...
javascript
2
import React, { Component } from 'react'; import styled from 'styled-components'; import { BrowserRouter, Route, Switch } from 'react-router-dom'; import ScrollToTop from './ScrollToTop'; import PokemonList from './PokemonList'; import PokemonDetails from './PokemonDetails'; import Header from './Header'; const Style...
Below is an extract from an HTML document. Evaluate whether it has a high educational value and could help teach web development. Use the additive 5-point scoring system described below. Points are accumulated based on the satisfaction of each criterion: - Add 1 point if the document contains valid HTML markup, even i...
html
1
--- layout: post title: 登録日と更新日のフィールドがあって、その中で一番新しい日付を一発でセレクトするクエリー(CASE文とMAX) date: '2012-07-01T06:55:00.001+09:00' author: <NAME> tags: - Postgres modified_time: '2012-07-01T06:55:30.409+09:00' blogger_id: tag:blogger.com,1999:blog-2052559951721308867.post-380298435368333858 blogger_orig_url: http://uedatakeshi.blogs...
Below is an extract from a JavaScript program. Evaluate whether it has a high educational value and could help teach coding. Use the additive 5-point scoring system described below. Points are accumulated based on the satisfaction of each criterion: - Add 1 point if the program contains valid JavaScript code, even if ...
javascript
1
import CustomerDataShareApi from '../customerDataShareApi'; describe("customerDataShareApi", () => { it('renders Default Page correctly', () => { expect(true).toBe(true); }); });
Below is an extract from a C program. Evaluate whether it has a high educational value and could help teach coding. Use the additive 5-point scoring system described below. Points are accumulated based on the satisfaction of each criterion: - Add 1 point if the program contains valid C code, even if it's not education...
c
1
/* INPUT : FAKE_FLAG_HACK_THE_BOX_01234567 111111111111111111111111111111 COMMAND : gdb -q --args ./coffee_invocation $INPUT b *0x0000555555554000+0x00001ead b *0x0000555555554000+0x00001f0a b *0x0000555555554000+0x00001f2a b *0x0000555555554000+0x00001b52 b *0x0000555555554000+0x00001b6f b *0x0000555555554000+0x00...
Below is an extract of SQL code. Evaluate whether it has a high educational value and could help teach SQL and database concepts. Use the additive 5-point scoring system described below. Points are accumulated based on the satisfaction of each criterion: - Add 1 point if the code contains valid SQL syntax, even if it'...
sql
1
--- MySQL mode --- select name from employee order by name asc;
Below is an extract from a Rust program. Evaluate whether it has a high educational value and could help teach coding. Use the additive 5-point scoring system described below. Points are accumulated based on the satisfaction of each criterion: - Add 1 point if the program contains valid Rust code, even if it's not edu...
rust
2
use std::{sync::mpsc::Receiver, io::Write, io::stdin, io::stdout, net::IpAddr, process::exit, str, sync::Mutex, sync::mpsc, thread}; use core::convert::TryInto; use rand::Rng; use ring::digest; use termion::input::TermRead; use crate::{constants, algorithms, crypto, session::Session, kex, terminal, ed25519}; pub st...
Below is an extract from a Markdown document. Evaluate its educational value, considering both Markdown usage and the content itself. Use the additive 5-point scoring system described below. Points are accumulated based on the satisfaction of each criterion: - Add 1 point if the document uses basic Markdown syntax cor...
markdown
1
# T312_Sarangga Second repository
Below is an extract from a PHP program. Evaluate whether it has a high educational value and could help teach coding. Use the additive 5-point scoring system described below. Points are accumulated based on the satisfaction of each criterion: - Add 1 point if the program contains valid PHP code, even if it's not educa...
php
1
<section class="pcoded-main-container"> <div class="pcoded-wrapper"> <div class="pcoded-content"> <div class="pcoded-inner-content"> <div class="page-header"> <div class="page-block"> <div class="row align-items-center"> ...
Below is an extract from a TypeScript program. Evaluate whether it has a high educational value and could help teach coding. Use the additive 5-point scoring system described below. Points are accumulated based on the satisfaction of each criterion: - Add 1 point if the program contains valid TypeScript code, even if ...
typescript
3
import { SectionTableRow, CoursePageData } from "src/models/pages"; import { CoursePageScraper } from "src/util/scraper"; import { search } from "../../../src/util/helpers"; describe("CoursePageScraper.ts", () => { const coursePageScraper = new CoursePageScraper(); beforeAll(() => { }) it("getData shoul...
Below is an extract of SQL code. Evaluate whether it has a high educational value and could help teach SQL and database concepts. Use the additive 5-point scoring system described below. Points are accumulated based on the satisfaction of each criterion: - Add 1 point if the code contains valid SQL syntax, even if it'...
sql
1
Create tables: 1) Create a table with Personentity under Test Schema. a. PersonentityID – auto increment ID,PK b. PersonFName c. PersonLName d. PersonDOB e. PersonAddress f. InsertedDate –Auto value 2) Create a table with Costumer under Test Schema. a. Costu...
Below is an extract from a TypeScript program. Evaluate whether it has a high educational value and could help teach coding. Use the additive 5-point scoring system described below. Points are accumulated based on the satisfaction of each criterion: - Add 1 point if the program contains valid TypeScript code, even if ...
typescript
3
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-portfolio-skills', templateUrl: './portfolio-skills.component.html', styleUrls: ['./portfolio-skills.component.scss'] }) export class PortfolioSkillsComponent implements OnInit { static readonly skills = [ 'HTML5', 'CSS', ...
Below is an extract from a Markdown document. Evaluate its educational value, considering both Markdown usage and the content itself. Use the additive 5-point scoring system described below. Points are accumulated based on the satisfaction of each criterion: - Add 1 point if the document uses basic Markdown syntax cor...
markdown
1
# Quiz first android project
Below is an extract from a C++ program. Evaluate whether it has a high educational value and could help teach coding. Use the additive 5-point scoring system described below. Points are accumulated based on the satisfaction of each criterion: - Add 1 point if the program contains valid C++ code, even if it's not educa...
cpp
3
/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "gm/gm.h" #include "include/core/SkFont.h" #include "include/core/SkPaint.h" #include "include/utils/SkTextUtils.h" #include <initializer_list> class SkCanvas; // ...
Below is an extract of SQL code. Evaluate whether it has a high educational value and could help teach SQL and database concepts. Use the additive 5-point scoring system described below. Points are accumulated based on the satisfaction of each criterion: - Add 1 point if the code contains valid SQL syntax, even if it'...
sql
1
ALTER TABLE {$NAMESPACE}_metamta.metamta_mail ADD KEY (status, nextRetry); ALTER TABLE {$NAMESPACE}_metamta.metamta_mail ADD KEY (relatedPHID);
Below is an extract from a JavaScript program. Evaluate whether it has a high educational value and could help teach coding. Use the additive 5-point scoring system described below. Points are accumulated based on the satisfaction of each criterion: - Add 1 point if the program contains valid JavaScript code, even if ...
javascript
2
/** * Created by china on 2018/3/16. */ /* 当前项目接口ajax请求模块 */ import ajax from './ajax' export const reqhome = () => ajax('/home') export const reqleft = () => ajax('/type/left') export const reqright = () => ajax('/type/right') export const reqbrand = () => ajax('/brand')
Below is an extract from a Go program. Evaluate whether it has a high educational value and could help teach coding. Use the additive 5-point scoring system described below. Points are accumulated based on the satisfaction of each criterion: - Add 1 point if the program contains valid Go code, even if it's not educati...
go
1
//Copyright 2017 Huawei Technologies Co., Ltd // //Licensed under the Apache License, Version 2.0 (the "License"); //you may not use this file except in compliance with the License. //You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // //Unless required by applicable law or agr...
Below is an extract from a Go program. Evaluate whether it has a high educational value and could help teach coding. Use the additive 5-point scoring system described below. Points are accumulated based on the satisfaction of each criterion: - Add 1 point if the program contains valid Go code, even if it's not educati...
go
3
package datatype_test import ( "testing" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "github.com/i-sevostyanov/NanoDB/internal/sql" "github.com/i-sevostyanov/NanoDB/internal/sql/datatype" ) func TestNull_Raw(t *testing.T) { t.Parallel() null := datatype.NewNull() switch valu...
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
9