Datasets:
id stringlengths 7 7 | query stringlengths 32 277 | query_source stringclasses 1
value | description stringlengths 0 307 | objective stringlengths 0 531 | title stringlengths 7 65 | category stringclasses 7
values | program_mode stringclasses 2
values | board stringclasses 5
values | extensions listlengths 0 3 | device_extensions listlengths 0 3 | project_json stringlengths 3.43k 154k | workspace_xml stringlengths 854 41.5k | notation stringlengths 182 6.46k | sb3_path stringlengths 15 15 | sprites listlengths 1 15 | sprite_count int64 0 15 | block_count int64 6 216 | script_count int64 1 24 | opcodes listlengths 5 38 | duplicate_group stringlengths 10 10 | is_canonical bool 2
classes | split stringclasses 1
value | source_sheet_row int64 2 81 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bz-0001 | Build master code of Bitwise ext. This master script validates all Bitwise extension blocks using predefined test values.PASS and FAIL counters confirm correct operation in a single execution. | derived | This master script validates all Bitwise extension blocks using predefined test values.PASS and FAIL counters confirm correct operation in a single execution. | master code of Bitwise ext. | data | realtime | [
"bitwise"
] | [] | {"targets": [{"isStage": true, "name": "Stage", "variables": {"%+vqQ6|peCIhzIDV!h!b": ["Pass", 13], "MR}_^*at?Je0q,Q*1+/J": ["Fail", 1], "`OW,ixe^*nb:yPUx2I#J": ["b1", "100000"], "P/?o=D0Xmw{8Gs@En.;?": ["n1", 10], "]q=0;pInQiL?07|!N#{A": ["c1", "1111101000"], "F,xl}^xm}mq(g7_[[LFj": ["r1", 61440]}, "lists": {}, "broad... | <!-- Sprite1 -->
<xml xmlns="https://developers.google.com/blockly/xml"><block type="event_whenflagclicked" id="TiPlJx^M#z9-Hok*?+?I"><next><block type="data_setvariableto" id="rngYfFR`n{~6El?T-~83"><field name="VARIABLE" id="%+vqQ6|peCIhzIDV!h!b" variabletype="">Pass</field><value name="VALUE"><shadow type="text"><fie... | ### Sprite1
event_whenflagclicked
data_setvariableto VALUE="0" VARIABLE=[Pass]
data_setvariableto VALUE="0" VARIABLE=[Fail]
looks_sayforsecs MESSAGE="Bitwise Extension Test Start" SECS=1
control_if_else CONDITION=(bitwise_isBinary X="1010")
data_changevariableby VALUE=1 VARIABLE=[Pass]
else
data_changevariableby VA... | sb3/bz-0001.sb3 | [
"Sprite1"
] | 1 | 82 | 1 | [
"bitwise_bitAnd",
"bitwise_bitNot",
"bitwise_bitOr",
"bitwise_bitXor",
"bitwise_convertBase",
"bitwise_isBase",
"bitwise_isBinary",
"bitwise_leftShift",
"bitwise_logicalRightShift",
"bitwise_rightShift",
"bitwise_rotateRight",
"bitwise_toBinary",
"bitwise_toDecimal",
"control_if_else",
"... | g-698a9dac | true | train | 8 | ||
bz-0002 | Build Mater code of wheater ext. Retrieves the current latitude and longitude, fetches temperature data for that location, and displays the results.It validates the complete Weather extension using PASS and FAIL counters in a single script. | derived | This program retrieves the current latitude and longitude, fetches temperature data for that location, and displays the results.It validates the complete Weather extension using PASS and FAIL counters in a single script. | Mater code of wheater ext. | data | realtime | [
"mlforkidsWeather"
] | [] | {"targets": [{"isStage": true, "name": "Stage", "variables": {"UaVBw#y|JG$Xw`JiG^yw": ["Pass", 2], "oscDKCCoIPd#9_K8*LYk": ["Fail", "0"], "ZlEq[l^M@}6~8uuD8d!2": ["lon", 72.6269321], "ghD_wZtfMcew~qr.8/P#": ["temp", 17], "(nJLL+*QxV}.zSzktV*^": ["lat", 23.2415604]}, "lists": {}, "broadcasts": {}, "blocks": {}, "comment... | <!-- Sprite1 -->
<xml xmlns="https://developers.google.com/blockly/xml"><block type="event_whenflagclicked" id=")IN9rKqFrOa,(.ki0rW-"><next><block type="data_setvariableto" id="L:HW:p-i]p}]4%S]Ol#x"><field name="VARIABLE" id="oscDKCCoIPd#9_K8*LYk" variabletype="">Fail</field><value name="VALUE"><shadow type="text"><fie... | ### Sprite1
event_whenflagclicked
data_setvariableto VALUE="0" VARIABLE=[Fail]
data_setvariableto VALUE="0" VARIABLE=[Pass]
looks_sayforsecs MESSAGE="Weather Extension Test Started" SECS=1
data_setvariableto VALUE=(mlforkidsWeather_getCurrentLatitude) VARIABLE=[lat]
data_setvariableto VALUE=(mlforkidsWeather_getCurrent... | sb3/bz-0002.sb3 | [
"Sprite1"
] | 1 | 33 | 1 | [
"control_if_else",
"data_changevariableby",
"data_setvariableto",
"event_whenflagclicked",
"looks_sayforsecs",
"mlforkidsWeather_getCurrentLatitude",
"mlforkidsWeather_getCurrentLongitude",
"mlforkidsWeather_getCurrentWeather",
"operator_and",
"operator_join",
"operator_notequals"
] | g-7e825511 | true | train | 7 | ||
bz-0004 | Build Animate Your Name. The letters of the Yourname move, or animate when the program runs. | derived | "The letters of the Yourname move, or animate when the program runs. The animation starts automatica(...TRUNCATED) | Animate Your Name | drawing | realtime | [
"pen"
] | [] | "{\"targets\": [{\"isStage\": true, \"name\": \"Stage\", \"variables\": {\"fJ!Tg{0DXo3jv8M?sTFa-Posi(...TRUNCATED) | "<!-- Stage -->\n<xml xmlns=\"https://developers.google.com/blockly/xml\"><block type=\"event_whenfl(...TRUNCATED) | "### Stage\nevent_whenflagclicked\ncontrol_forever\n sound_playuntildone SOUND_MENU=\"Brown_and_Gam(...TRUNCATED) | sb3/bz-0004.sb3 | [
"Stage",
"Sprite1"
] | 1 | 177 | 4 | ["control_create_clone_of","control_forever","control_if","control_if_else","control_repeat","contro(...TRUNCATED) | g-3e9b7a67 | true | train | 18 | ||
bz-0005 | "Build Animate Your Name!. Creates an animated display of the user’s name using motion and visual (...TRUNCATED) | derived | "This project creates an animated display of the user’s name using motion and visual effects. Lett(...TRUNCATED) | To create an animated name using motion and visual effects through block-based programming. | Animate Your Name! | drawing | realtime | [
"pen"
] | [] | "{\"targets\": [{\"isStage\": true, \"name\": \"Stage\", \"variables\": {\"fJ!Tg{0DXo3jv8M?sTFa-Posi(...TRUNCATED) | "<!-- Stage -->\n<xml xmlns=\"https://developers.google.com/blockly/xml\"><block type=\"event_whenfl(...TRUNCATED) | "### Stage\nevent_whenflagclicked\ncontrol_forever\n sound_playuntildone SOUND_MENU=\"steamboat.mp3(...TRUNCATED) | sb3/bz-0005.sb3 | [
"Stage",
"Sprite1"
] | 1 | 177 | 4 | ["control_create_clone_of","control_forever","control_if","control_if_else","control_repeat","contro(...TRUNCATED) | g-80a69ac4 | true | train | 19 | |
bz-0007 | "Build AI logo quiz. Uses AI to recognize different brand logos and turn them into an interactive qu(...TRUNCATED) | derived | "This project uses AI to recognize different brand logos and turn them into an interactive quiz. Pla(...TRUNCATED) | "An interactive, gamified AI quiz that teaches logo recognition and brand identification while intro(...TRUNCATED) | AI logo quiz | game | realtime | [
"AIServicesBlocks",
"text2speech"
] | [] | "{\"targets\": [{\"isStage\": true, \"name\": \"Stage\", \"variables\": {\"fw0N07:t`D(8+]i.=(7/\": [(...TRUNCATED) | "<!-- Sprite1 -->\n<xml xmlns=\"https://developers.google.com/blockly/xml\"><block type=\"event_when(...TRUNCATED) | "### Sprite1\nevent_whenflagclicked\nlooks_hide\n\nevent_whenbroadcastreceived BROADCAST_OPTION=[Sta(...TRUNCATED) | sb3/bz-0007.sb3 | [
"Sprite1",
"download (3)",
"play"
] | 3 | 54 | 8 | ["aiServices_analyseImageContentFromApplication","aiServices_imageResultFirst","control_forever","co(...TRUNCATED) | g-58efc7f4 | true | train | 74 | |
bz-0008 | Build bird game using object detection. | derived | To control a bird game using AI-based object detection for touchless gameplay. | bird game using object detection | game | realtime | [
"objectDetection",
"pen"
] | [] | "{\"targets\": [{\"isStage\": true, \"name\": \"Stage\", \"variables\": {}, \"lists\": {}, \"broadca(...TRUNCATED) | "<!-- Chick -->\n<xml xmlns=\"https://developers.google.com/blockly/xml\"><block type=\"event_whenfl(...TRUNCATED) | "### Chick\nevent_whenflagclicked\nobjectDetection_toggleStageVideoFeed TRANSPARENCY=\"70\" VIDEO_ST(...TRUNCATED) | sb3/bz-0008.sb3 | [
"Chick"
] | 1 | 20 | 3 | ["control_create_clone_of","control_delete_this_clone","control_forever","control_if","control_start(...TRUNCATED) | g-bcbf3dcc | true | train | 51 | ||
bz-0010 | "Build emotion based music player. Detects the user’s emotion using AI and plays music accordingly(...TRUNCATED) | derived | "This project detects the user’s emotion using AI and plays music accordingly. Different emotions (...TRUNCATED) | To play music automatically based on detected human emotions using AI. | emotion based music player | game | realtime | [
"faceDetection"
] | [] | "{\"targets\": [{\"isStage\": true, \"name\": \"Stage\", \"variables\": {}, \"lists\": {}, \"broadca(...TRUNCATED) | "<!-- Abby -->\n<xml xmlns=\"https://developers.google.com/blockly/xml\"><block type=\"event_whenfla(...TRUNCATED) | "### Abby\nevent_whenflagclicked\nfaceDetection_toggleStageVideoFeed TRANSPARENCY=\"50\" VIDEO_STATE(...TRUNCATED) | sb3/bz-0010.sb3 | [
"Abby"
] | 1 | 59 | 1 | ["control_forever","control_if","event_whenflagclicked","faceDetection_analyseImage","faceDetection_(...TRUNCATED) | g-83a52730 | true | train | 79 | |
bz-0011 | "Build face detected- Human body detection maze puzzle. Is an interactive maze puzzle controlled usi(...TRUNCATED) | derived | "This project is an interactive maze puzzle controlled using face or human body detection through a (...TRUNCATED) | "An AI-powered, camera-based maze game that uses face and body detection to enable real-time, hands-(...TRUNCATED) | face detected- Human body detection maze puzzle | game | realtime | [
"posenet",
"facemesh2scratch"
] | [] | "{\"targets\": [{\"isStage\": true, \"name\": \"Stage\", \"variables\": {}, \"lists\": {}, \"broadca(...TRUNCATED) | "<!-- Sprite1 -->\n<xml xmlns=\"https://developers.google.com/blockly/xml\"><block type=\"event_when(...TRUNCATED) | "### Sprite1\nevent_whenflagclicked\nposenet_toggleStageVideoFeed TRANSPARENCY=\"0\" VIDEO_STATE=\"o(...TRUNCATED) | sb3/bz-0011.sb3 | [
"Sprite1",
"Penguin1"
] | 2 | 53 | 6 | ["control_forever","control_if","control_wait","event_whenflagclicked","event_whenkeypressed","facem(...TRUNCATED) | g-9af897b6 | true | train | 67 | |
bz-0014 | "Build FingerFoodNinja. Finger Food Ninja is an interactive game where players slice falling food it(...TRUNCATED) | derived | "Finger Food Ninja is an interactive game where players slice falling food items using finger moveme(...TRUNCATED) | "Help learners understand finger and hand tracking concepts. Develop a touchless slicing game using (...TRUNCATED) | FingerFoodNinja | game | realtime | [
"pen",
"posenet"
] | [] | "{\"targets\": [{\"isStage\": true, \"name\": \"Stage\", \"variables\": {\"i4Lvh(hFIas(i)*Q[Q4f\": [(...TRUNCATED) | "<!-- Snowflake -->\n<xml xmlns=\"https://developers.google.com/blockly/xml\"><block type=\"control_(...TRUNCATED) | "### Snowflake\ncontrol_start_as_clone\nlooks_setsizeto SIZE=100\nlooks_show\ncontrol_repeat TIMES=1(...TRUNCATED) | sb3/bz-0014.sb3 | [
"Snowflake",
"Bananas"
] | 2 | 73 | 4 | ["control_create_clone_of","control_delete_this_clone","control_forever","control_if","control_if_el(...TRUNCATED) | g-099c303e | true | train | 66 | |
bz-0015 | "Build game using object detection. When it detect \"STOP\" sign board so it clone it self and multi(...TRUNCATED) | derived | when it detect "STOP" sign board so it clone it self and multiple chicks apppear | game using object detection | game | realtime | [
"objectDetection",
"pen"
] | [] | "{\"targets\": [{\"isStage\": true, \"name\": \"Stage\", \"variables\": {}, \"lists\": {}, \"broadca(...TRUNCATED) | "<!-- Chick -->\n<xml xmlns=\"https://developers.google.com/blockly/xml\"><block type=\"event_whenfl(...TRUNCATED) | "### Chick\nevent_whenflagclicked\nobjectDetection_toggleStageVideoFeed TRANSPARENCY=\"70\" VIDEO_ST(...TRUNCATED) | sb3/bz-0015.sb3 | [
"Chick"
] | 1 | 20 | 3 | ["control_create_clone_of","control_delete_this_clone","control_forever","control_if","control_start(...TRUNCATED) | g-bcbf3dcc | false | train | 51 |
Blockzie NL2Blocks
Pairs of a plain-English request and the block program that answers it, for block-based visual programming.
About block coding and Blockzie
In block-based programming a program is built by snapping labelled blocks together on a canvas
instead of typing text. Each block is one instruction (move 10 steps, wait 1 seconds,
when green flag clicked), and blocks nest inside loops and conditionals. Scratch is the
best-known editor of this kind.
Blockzie (https://blockzie.info) is an editor of the same family. Alongside the standard motion, looks, control and sensing blocks it adds two groups that ordinary Scratch does not have:
- Microcontroller blocks. A program can be uploaded to a board such as an ESP32 or an Arduino Uno, where it runs on the hardware and drives pins, sensors and displays; or it can run on the computer in realtime mode and talk to the board over a serial or Bluetooth link.
- Camera and AI extensions. Face detection, pose and hand tracking, object detection, QR scanning, speech to text, text to speech and translation.
A saved project is an .sb3 file: a zip holding project.json (the program and every sprite) and
the costume and sound assets.
What this dataset is for
Models that write text code from a description are well covered by existing datasets; models that produce a block program are not. The gap matters because a block program is a tree of typed blocks with named inputs, not a sequence of tokens: a generator has to emit something the editor can load and place on the canvas.
Each row here gives a request and the finished program in the forms a model can be trained or evaluated on, so the same data supports:
- generating a program from a description, and placing it directly in an editor,
- retrieval examples for a prompted model,
- evaluating whether a generated program loads, runs and uses the blocks the request asked for.
The projects come from a taught robotics and AI course, so they lean towards hardware and camera work rather than arcade games.
Structure
data/train-*.parquet 106 rows
data/validation-*.parquet 10 rows
data/test-*.parquet 14 rows
sb3/bz-0001.sb3 one project file per row, openable in the editor
README.md this card
130 projects in total, holding 8,540 blocks: 48 camera and AI, 32 games, 32 hardware, 12 speech, 3 drawing, 1 physics, 2 other. 110 of the programs are distinct; the rest are the same project filed twice, marked so one filter removes them. Projects that are copies of each other stay in the same split.
Each row is one project.
| Column | Type | Description |
|---|---|---|
id |
string | Stable row id, bz-0001. |
query |
string | The request, written the way a learner would ask for the program. |
query_source |
string | human if the request comes from the course material, generated if it was written from the project and reviewed. |
description |
string | The course's own description of the project. |
objective |
string | What the activity teaches, where recorded. |
title |
string | Activity name. |
category |
string | vision-ai, speech, hardware, game, drawing, animation, physics or data. |
program_mode |
string | realtime (runs on the computer) or upload (runs on the board). |
board |
string | Board the project targets, empty if none. |
extensions |
list[string] | Editor extensions the program uses. |
device_extensions |
list[string] | Board-side extensions. |
project_json |
string | The project's project.json: the program exactly as the editor saves it. |
workspace_xml |
string | The same program as workspace XML, one document per sprite, which is what an editor loads to place blocks on the canvas. |
notation |
string | The same program as indented one-block-per-line text (opcode NAME=value), compact enough to fit in a prompt. |
sb3_path |
string | Path of the project file in this repository. |
sprites |
list[string] | Sprite names. |
sprite_count, block_count, script_count |
int | Size of the program. |
opcodes |
list[string] | Block types used, for filtering by block. |
duplicate_group |
string | Shared by projects whose programs are identical. |
is_canonical |
bool | False on the extra copies of a duplicate group. |
split |
string | train, validation or test. |
The three program forms
project_json is the ground truth, the exact file format of the editor. workspace_xml is the
form a generator must emit to place blocks on a canvas. notation is the short form, useful as a
model's output language when context is limited. All three are produced from the same
project.json by one converter, so they always agree.
Usage
from datasets import load_dataset
ds = load_dataset("Subh775/Blockzie-NL2blocks", split="train")
row = ds[0]
print(row["query"])
print(row["notation"])
Coverage and limits
- Small: 130 projects, suited to retrieval, evaluation and light fine-tuning rather than training a model from scratch.
- Subject balance follows the course: many camera-AI and hardware projects, few drawing projects.
queryis currently derived from each activity's own title and description, and markedderivedinquery_source. Requests written or checked by hand will replace them, and will be markedhuman.- Descriptions were written for teaching, so they say what a project does and not always how it is built. Six are shorter than one line.
- Assets are not included: every sprite carries one stock costume and no sounds, so a project opens and runs but does not look like the original.
Provenance
Built from the project files and activity sheets of an educational block-coding curriculum. Programs are unchanged; metadata was normalised and personal and internal identifiers removed.
Licence
MIT.
- Downloads last month
- 11