File size: 2,663 Bytes
201c16d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
  "@context": {
    "ml": "http://mlcommons.org/croissant/",
    "schema": "https://schema.org/",
    "sc": "https://schema.org/",
    "codesense": "https://codesense-bench.github.io/schema/"
  },
  "@type": "schema:Dataset",
  "schema:name": "CodeSense-Bench-loop_after_dataset_python",
  "schema:description": "Dataset for Post-Loop value reasoning of LLMs",
  "schema:license": "CC-BY-4.0",
  "schema:url": "https://huggingface.co/datasets/codesense-bench/codesense/blob/main/Task%20Specific%20Datasets/loop_after_dataset_python.jsonl",
  "schema:creator": {
    "@type": "schema:Organization",
    "schema:name": "CodeSense Research Team"
  },
  "schema:distribution": [
    {
      "@type": "schema:FileObject",
      "schema:contentUrl": "https://huggingface.co/datasets/codesense-bench/codesense/resolve/main/Task%20Specific%20Datasets/loop_after_dataset_python.jsonl",
      "schema:encodingFormat": "application/jsonl",
      "schema:name": "loop_after_dataset_python",
      "schema:sha256": "b37b21ca8896fb2085a2482ce1fa9945b38dfc3890074d747f375cb832663b34"
    }
  ],
  "recordSet": [
    {
      "name": "loop_after_dataset_python",
      "description": "A collection of Python code examples designed to evaluate a model’s ability to reason about variable values after loop execution. ",
      "field": [
        {
          "name": "idx",
          "dataType": "sc:Integer",
          "description": "Unique identifier for each record in the dataset."
        },
        {
          "name": "scratchpad_format",
          "dataType": "sc:Text",
          "description": "code in scratchpad format, the variable states defined in comments."
        },
        {
          "name": "loop_code",
          "dataType": "sc:Text",
          "description": "code used for LLM prompting."
        },
        {
          "name": "question",
          "dataType": "sc:Text",
          "description": "Query regarding a specific line post-loop in the code."
        },
        {
          "name": "answer",
          "dataType": "sc:Text",
          "description": "Ground-Truth, contains the exact value of the variable after loop execution."
        },
        {
          "name": "variable_assignment",
          "dataType": "sc:Text",
          "description": "Line that was selected for prompting."
        },
        {
          "name": "loop_range",
          "dataType": "sc:ItemList",
          "description": "Range of loop lines that was selected."
        },
        {
          "name": "post_loop_line",
          "dataType": "sc:Integer",
          "description": "Line no. of selected line/variable_assignment."
        }
      ]
    }
  ]
}