Datasets:
key stringlengths 22 33 | intent stringclasses 228
values | template_id stringclasses 62
values | seed int64 1 5k | traces listlengths 3 3 | candidates listlengths 3 3 |
|---|---|---|---|---|---|
harness/harness_add_4/1 | add the inputs together | harness_add_4 | 1 | [
"{\"dt\": 0.016666666666666666, \"ticks\": [\n {\"a\": true, \"b\": false, \"c\": true, \"d\": true, \"e\": true, \"n\": 0, \"m\": 9, \"k\": 0, \"x\": 0.0, \"y\": 4.5},\n {\"a\": false, \"b\": false, \"c\": false, \"d\": false, \"e\": true, \"n\": 1, \"m\": 0, \"k\": 1, \"x\": 1.5, \"y\": 0.0},\n {\"a\": true, \"b\... | [
{
"candidate": "rank1",
"rank": 1,
"fbd_text": "program add_4\nin a : BOOL\nin b : BOOL\nin c : BOOL\nin d : BOOL\nin e : BOOL\nin n : INT\nin m : INT\nin k : INT\nin x : REAL\nin y : REAL\nout v : INT\ng = ADD(IN1=n, IN2=m, IN3=k, IN4=-2)\nv = g.OUT\n",
"fbd_sha": "d42c6462c98a030926f9fb63838125b9e... |
harness/harness_add_4/2 | the total | harness_add_4 | 2 | [
"{\"dt\": 0.03333333333333333, \"ticks\": [\n {\"a\": false, \"b\": false, \"c\": true, \"d\": true, \"e\": true, \"n\": 0, \"m\": 9, \"k\": 0, \"x\": 0.0, \"y\": 4.5},\n {\"a\": true, \"b\": false, \"c\": false, \"d\": false, \"e\": true, \"n\": 1, \"m\": 0, \"k\": 1, \"x\": 1.5, \"y\": 0.0},\n {\"a\": false, \"b\... | [
{
"candidate": "rank1",
"rank": 1,
"fbd_text": "program add_4\nin a : BOOL\nin b : BOOL\nin c : BOOL\nin d : BOOL\nin e : BOOL\nin n : INT\nin m : INT\nin k : INT\nin x : REAL\nin y : REAL\nout v : INT\ng = ADD(IN1=n, IN2=m, IN3=k, IN4=2)\nv = g.OUT\n",
"fbd_sha": "edc72d8b67661afa2fd12a461e8e0932a9... |
harness/harness_add_4/3 | the sum of the inputs | harness_add_4 | 3 | [
"{\"dt\": 0.016666666666666666, \"ticks\": [\n {\"a\": false, \"b\": false, \"c\": true, \"d\": true, \"e\": true, \"n\": 0, \"m\": 9, \"k\": 0, \"x\": 0.0, \"y\": 4.5},\n {\"a\": true, \"b\": false, \"c\": false, \"d\": false, \"e\": true, \"n\": 1, \"m\": 0, \"k\": 1, \"x\": 1.5, \"y\": 0.0},\n {\"a\": false, \"b... | [
{
"candidate": "rank1",
"rank": 1,
"fbd_text": "program add_4\nin a : BOOL\nin b : BOOL\nin c : BOOL\nin d : BOOL\nin e : BOOL\nin n : INT\nin m : INT\nin k : INT\nin x : REAL\nin y : REAL\nout v : INT\ng = ADD(IN1=n, IN2=m, IN3=k, IN4=4)\nv = g.OUT\n",
"fbd_sha": "bcb101abb3661de58e7ffc0d2950e36e01... |
harness/harness_add_4/4 | add the inputs together | harness_add_4 | 4 | [
"{\"dt\": 0.03333333333333333, \"ticks\": [\n {\"a\": false, \"b\": false, \"c\": true, \"d\": true, \"e\": true, \"n\": 0, \"m\": 9, \"k\": 0, \"x\": 0.0, \"y\": 4.5},\n {\"a\": true, \"b\": false, \"c\": false, \"d\": false, \"e\": true, \"n\": 1, \"m\": 0, \"k\": 1, \"x\": 1.5, \"y\": 0.0},\n {\"a\": true, \"b\"... | [
{
"candidate": "rank1",
"rank": 1,
"fbd_text": "program add_4\nin a : BOOL\nin b : BOOL\nin c : BOOL\nin d : BOOL\nin e : BOOL\nin n : INT\nin m : INT\nin k : INT\nin x : REAL\nin y : REAL\nout v : INT\ng = ADD(IN1=n, IN2=m, IN3=k, IN4=-3)\nv = g.OUT\n",
"fbd_sha": "460a949e2d79f3c446f5dd00751c337b0... |
harness/harness_add_4/5 | the total | harness_add_4 | 5 | [
"{\"dt\": 0.016666666666666666, \"ticks\": [\n {\"a\": false, \"b\": false, \"c\": true, \"d\": true, \"e\": true, \"n\": 0, \"m\": 9, \"k\": 0, \"x\": 0.0, \"y\": 4.5},\n {\"a\": true, \"b\": false, \"c\": false, \"d\": false, \"e\": true, \"n\": 1, \"m\": 0, \"k\": 1, \"x\": 1.5, \"y\": 0.0},\n {\"a\": true, \"b\... | [
{
"candidate": "rank1",
"rank": 1,
"fbd_text": "program add_4\nin a : BOOL\nin b : BOOL\nin c : BOOL\nin d : BOOL\nin e : BOOL\nin n : INT\nin m : INT\nin k : INT\nin x : REAL\nin y : REAL\nout v : INT\ng = ADD(IN1=n, IN2=m, IN3=k, IN4=2)\nv = g.OUT\n",
"fbd_sha": "edc72d8b67661afa2fd12a461e8e0932a9... |
harness/harness_add_4/6 | the sum of the inputs | harness_add_4 | 6 | [
"{\"dt\": 0.03333333333333333, \"ticks\": [\n {\"a\": false, \"b\": false, \"c\": true, \"d\": true, \"e\": true, \"n\": 0, \"m\": 9, \"k\": 0, \"x\": 0.0, \"y\": 4.5},\n {\"a\": true, \"b\": false, \"c\": false, \"d\": false, \"e\": true, \"n\": 1, \"m\": 0, \"k\": 1, \"x\": 1.5, \"y\": 0.0},\n {\"a\": true, \"b\"... | [
{
"candidate": "rank1",
"rank": 1,
"fbd_text": "program add_4\nin a : BOOL\nin b : BOOL\nin c : BOOL\nin d : BOOL\nin e : BOOL\nin n : INT\nin m : INT\nin k : INT\nin x : REAL\nin y : REAL\nout v : INT\ng = ADD(IN1=n, IN2=m, IN3=k, IN4=5)\nv = g.OUT\n",
"fbd_sha": "e83ae18e2f129e96a6a686beb393b47e29... |
harness/harness_add_4/7 | add the inputs together | harness_add_4 | 7 | [
"{\"dt\": 0.016666666666666666, \"ticks\": [\n {\"a\": false, \"b\": false, \"c\": true, \"d\": true, \"e\": true, \"n\": 0, \"m\": 9, \"k\": 0, \"x\": 0.0, \"y\": 4.5},\n {\"a\": true, \"b\": false, \"c\": false, \"d\": false, \"e\": true, \"n\": 1, \"m\": 0, \"k\": 1, \"x\": 1.5, \"y\": 0.0},\n {\"a\": true, \"b\... | [
{
"candidate": "rank1",
"rank": 1,
"fbd_text": "program add_4\nin a : BOOL\nin b : BOOL\nin c : BOOL\nin d : BOOL\nin e : BOOL\nin n : INT\nin m : INT\nin k : INT\nin x : REAL\nin y : REAL\nout v : INT\ng = ADD(IN1=n, IN2=m, IN3=k, IN4=0)\nv = g.OUT\n",
"fbd_sha": "5155bda818e7eaa8e43ed70d098e6d7a79... |
harness/harness_add_4/8 | the total | harness_add_4 | 8 | [
"{\"dt\": 0.03333333333333333, \"ticks\": [\n {\"a\": true, \"b\": false, \"c\": true, \"d\": true, \"e\": true, \"n\": 0, \"m\": 9, \"k\": 0, \"x\": 0.0, \"y\": 4.5},\n {\"a\": true, \"b\": false, \"c\": false, \"d\": false, \"e\": true, \"n\": 1, \"m\": 0, \"k\": 1, \"x\": 1.5, \"y\": 0.0},\n {\"a\": false, \"b\"... | [
{
"candidate": "rank1",
"rank": 1,
"fbd_text": "program add_4\nin a : BOOL\nin b : BOOL\nin c : BOOL\nin d : BOOL\nin e : BOOL\nin n : INT\nin m : INT\nin k : INT\nin x : REAL\nin y : REAL\nout v : INT\ng = ADD(IN1=n, IN2=m, IN3=k, IN4=-2)\nv = g.OUT\n",
"fbd_sha": "d42c6462c98a030926f9fb63838125b9e... |
harness/harness_add_4/9 | the sum of the inputs | harness_add_4 | 9 | [
"{\"dt\": 0.016666666666666666, \"ticks\": [\n {\"a\": true, \"b\": false, \"c\": true, \"d\": true, \"e\": true, \"n\": 0, \"m\": 9, \"k\": 0, \"x\": 0.0, \"y\": 4.5},\n {\"a\": true, \"b\": false, \"c\": false, \"d\": false, \"e\": true, \"n\": 1, \"m\": 0, \"k\": 1, \"x\": 1.5, \"y\": 0.0},\n {\"a\": false, \"b\... | [
{
"candidate": "rank1",
"rank": 1,
"fbd_text": "program add_4\nin a : BOOL\nin b : BOOL\nin c : BOOL\nin d : BOOL\nin e : BOOL\nin n : INT\nin m : INT\nin k : INT\nin x : REAL\nin y : REAL\nout v : INT\ng = ADD(IN1=n, IN2=m, IN3=k, IN4=4)\nv = g.OUT\n",
"fbd_sha": "bcb101abb3661de58e7ffc0d2950e36e01... |
harness/harness_add_int/11 | the total | harness_add_int | 11 | [
"{\"dt\": 0.016666666666666666, \"ticks\": [\n {\"a\": false, \"b\": false, \"c\": true, \"d\": true, \"e\": true, \"n\": 0, \"m\": 9, \"k\": 0, \"x\": 0.0, \"y\": 4.5},\n {\"a\": false, \"b\": false, \"c\": false, \"d\": false, \"e\": true, \"n\": 1, \"m\": 0, \"k\": 1, \"x\": 1.5, \"y\": 0.0},\n {\"a\": false, \"... | [
{
"candidate": "rank1",
"rank": 1,
"fbd_text": "program add_int\nin a : BOOL\nin b : BOOL\nin c : BOOL\nin d : BOOL\nin e : BOOL\nin n : INT\nin m : INT\nin k : INT\nin x : REAL\nin y : REAL\nout v : INT\ng = ADD(IN1=n, IN2=m)\nv = g.OUT\n",
"fbd_sha": "1a3b0fddbe75bb563adda5e3f645f1c981475e03977d3a... |
harness/harness_add_int/12 | the sum of the inputs | harness_add_int | 12 | [
"{\"dt\": 0.03333333333333333, \"ticks\": [\n {\"a\": true, \"b\": false, \"c\": true, \"d\": true, \"e\": true, \"n\": 0, \"m\": 9, \"k\": 0, \"x\": 0.0, \"y\": 4.5},\n {\"a\": false, \"b\": false, \"c\": false, \"d\": false, \"e\": true, \"n\": 1, \"m\": 0, \"k\": 1, \"x\": 1.5, \"y\": 0.0},\n {\"a\": true, \"b\"... | [
{
"candidate": "rank1",
"rank": 1,
"fbd_text": "program add_int\nin a : BOOL\nin b : BOOL\nin c : BOOL\nin d : BOOL\nin e : BOOL\nin n : INT\nin m : INT\nin k : INT\nin x : REAL\nin y : REAL\nout v : INT\ng = ADD(IN1=n, IN2=m)\nv = g.OUT\n",
"fbd_sha": "1a3b0fddbe75bb563adda5e3f645f1c981475e03977d3a... |
harness/harness_add_int/13 | add the inputs together | harness_add_int | 13 | [
"{\"dt\": 0.016666666666666666, \"ticks\": [\n {\"a\": true, \"b\": false, \"c\": true, \"d\": true, \"e\": true, \"n\": 0, \"m\": 9, \"k\": 0, \"x\": 0.0, \"y\": 4.5},\n {\"a\": false, \"b\": false, \"c\": false, \"d\": false, \"e\": true, \"n\": 1, \"m\": 0, \"k\": 1, \"x\": 1.5, \"y\": 0.0},\n {\"a\": true, \"b\... | [
{
"candidate": "rank1",
"rank": 1,
"fbd_text": "program add_int\nin a : BOOL\nin b : BOOL\nin c : BOOL\nin d : BOOL\nin e : BOOL\nin n : INT\nin m : INT\nin k : INT\nin x : REAL\nin y : REAL\nout v : INT\ng = ADD(IN1=n, IN2=m)\nv = g.OUT\n",
"fbd_sha": "1a3b0fddbe75bb563adda5e3f645f1c981475e03977d3a... |
harness/harness_add_int/14 | the total | harness_add_int | 14 | [
"{\"dt\": 0.03333333333333333, \"ticks\": [\n {\"a\": false, \"b\": false, \"c\": true, \"d\": true, \"e\": true, \"n\": 0, \"m\": 9, \"k\": 0, \"x\": 0.0, \"y\": 4.5},\n {\"a\": true, \"b\": false, \"c\": false, \"d\": false, \"e\": true, \"n\": 1, \"m\": 0, \"k\": 1, \"x\": 1.5, \"y\": 0.0},\n {\"a\": false, \"b\... | [
{
"candidate": "rank1",
"rank": 1,
"fbd_text": "program add_int\nin a : BOOL\nin b : BOOL\nin c : BOOL\nin d : BOOL\nin e : BOOL\nin n : INT\nin m : INT\nin k : INT\nin x : REAL\nin y : REAL\nout v : INT\ng = ADD(IN1=n, IN2=m)\nv = g.OUT\n",
"fbd_sha": "1a3b0fddbe75bb563adda5e3f645f1c981475e03977d3a... |
harness/harness_add_int/15 | the sum of the inputs | harness_add_int | 15 | [
"{\"dt\": 0.016666666666666666, \"ticks\": [\n {\"a\": false, \"b\": false, \"c\": true, \"d\": true, \"e\": true, \"n\": 0, \"m\": 9, \"k\": 0, \"x\": 0.0, \"y\": 4.5},\n {\"a\": true, \"b\": false, \"c\": false, \"d\": false, \"e\": true, \"n\": 1, \"m\": 0, \"k\": 1, \"x\": 1.5, \"y\": 0.0},\n {\"a\": false, \"b... | [
{
"candidate": "rank1",
"rank": 1,
"fbd_text": "program add_int\nin a : BOOL\nin b : BOOL\nin c : BOOL\nin d : BOOL\nin e : BOOL\nin n : INT\nin m : INT\nin k : INT\nin x : REAL\nin y : REAL\nout v : INT\ng = ADD(IN1=n, IN2=m)\nv = g.OUT\n",
"fbd_sha": "1a3b0fddbe75bb563adda5e3f645f1c981475e03977d3a... |
harness/harness_add_int/16 | add the inputs together | harness_add_int | 16 | [
"{\"dt\": 0.03333333333333333, \"ticks\": [\n {\"a\": false, \"b\": false, \"c\": true, \"d\": true, \"e\": true, \"n\": 0, \"m\": 9, \"k\": 0, \"x\": 0.0, \"y\": 4.5},\n {\"a\": true, \"b\": false, \"c\": false, \"d\": false, \"e\": true, \"n\": 1, \"m\": 0, \"k\": 1, \"x\": 1.5, \"y\": 0.0},\n {\"a\": true, \"b\"... | [
{
"candidate": "rank1",
"rank": 1,
"fbd_text": "program add_int\nin a : BOOL\nin b : BOOL\nin c : BOOL\nin d : BOOL\nin e : BOOL\nin n : INT\nin m : INT\nin k : INT\nin x : REAL\nin y : REAL\nout v : INT\ng = ADD(IN1=n, IN2=m)\nv = g.OUT\n",
"fbd_sha": "1a3b0fddbe75bb563adda5e3f645f1c981475e03977d3a... |
taskweft-fbd-harness-train
Intents paired with IEC 61131-3 Function Block Diagrams that carry them out, as an EditScore-shaped corpus.
What it is for
Each intent has a root row, three ranked candidate diagrams and a score row per candidate.
Rank1 is the reference diagram. Rank3 compiles and does the wrong thing. Rank5 is a diagram the compiler refuses.
The scores come from the compiler's reference scan, with rank1's outputs as the reference for the others.
Every row is built from a template and a seed, so the labels are true by construction and the corpus regenerates from the seeds.
The train split trains. The test split holds out every tenth seed of the same distribution and gates the trained model. The evaluation split holds out the GE, MOD, RS and TOF blocks, and is never trained or tuned on.
The harness_root config holds the intent, template, seed, frame, the block kinds and signatures the reference uses, and the input traces.
The harness_candidates config holds each candidate's compiler text form, PLCopen XML, plan and runner result, with a sha256 of its source text.
The harness_scores config holds parse, compile, run and effect-match flags, step and wall-time measures, and the refusal.
The default harness config joins the three. Every artifact is in the parquet. An artifact a family does not produce is an empty string, never a null.
A manifest.json and a census.json sit at the repo root.
Provenance
- Generator:
v-sekai-fabric/taskweft-fbd-teacher. - Compiler:
taskweft-fbd-compilerat commit72c2603.
Use
from datasets import load_dataset
ds = load_dataset("chibifire/taskweft-fbd-harness-train", "harness", split="train")
Or fetch the files with hf download chibifire/taskweft-fbd-harness-train --repo-type dataset.
Licence
MIT. See the MIT License.
- Downloads last month
- 86