MonoshiTonmoy commited on
Commit
fb3be40
·
verified ·
1 Parent(s): 32bf66b

Upload 2 files

Browse files
Files changed (2) hide show
  1. ReadMe.md +64 -0
  2. statement_prediction_dataset.jsonl +0 -0
ReadMe.md ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Dataset Readme
2
+
3
+ This document provides an overview of the dataset's structure and the meaning of each column.
4
+
5
+ ## Columns
6
+
7
+ ### 1. **Programming Language**
8
+ - **Type:** String
9
+ - **Description:** The programming language used in the source code. In this dataset, it is always Python.
10
+
11
+ ### 2. **Statement Type**
12
+ - **Type:** String
13
+ - **Description:** The type of the statement in the source code. For example, it can be an 'Assignment' or 'API'.
14
+
15
+ ### 3. **Source Code**
16
+ - **Type:** String
17
+ - **Description:** The source code containing the function or statement that is being analyzed. This includes the entire code for the function or the relevant part of the code where the statement occurs.
18
+
19
+ ### 4. **Selected Statement**
20
+ - **Type:** String
21
+ - **Description:** The specific statement selected for analysis. This is usually a single line of code where the focus is placed during the trace collection.
22
+
23
+ ### 5. **Function Input**
24
+ - **Type:** Dictionary
25
+ - **Description:** A dictionary of "variable name" to "variable_value" mapping
26
+ - **Example:** `{"a": "[0, 100, 200, 0, 0, 0, 0, 0, 0, 0]", "i": "2", "j": "1"}`
27
+
28
+ ### 6. **Variable Values Before Statement**
29
+ - **Type:** Dictionary
30
+ - **Description:** A dictionary containing the variable values before the execution of the selected statement. This shows the state of the variables just prior to the specific operation being analyzed.
31
+ - **Example:** `{"a": "[0, 100, 200, 0, 0, 0, 0, 0, 0, 0]", "i": "2"}`
32
+
33
+ ### 7. **Value After Statement Execution**
34
+ - **Type:** String
35
+ - **Description:** The value of the variable or the output after the statement has been executed. This represents the immediate result of the execution of the selected statement.
36
+ - **Example:** `"200"`
37
+
38
+ ### 8. **Variable States During Runtime**
39
+ - **Type:** List of Lists
40
+ - **Description:** A list of lists where each sublist contains the line number and the state of a variable at that specific point in time during runtime.
41
+ - **Example:**
42
+ ```json
43
+ {
44
+ "a": [
45
+ [1, "[0, 100, 200, 0, 0, 0, 0, 0, 0, 0]"],
46
+ [3.0, "[0, 100, 100, 0, 0, 0, 0, 0, 0, 0]"],
47
+ [4.0, "[0, 200, 100, 0, 0, 0, 0, 0, 0, 0]"]
48
+ ],
49
+ "i": [[1, "2"]],
50
+ "j": [[1, "1"]],
51
+ "temp": [[2.0, "200"]]
52
+ }
53
+ ```
54
+
55
+ ### 9. **Program Information**
56
+ - **Type:** String
57
+ - **Description:** The name of the project or program to which the source code belongs. This helps to identify the context or origin of the code.
58
+ - **Example:** `"Project Name: chen0040+pycompressor"`
59
+
60
+ ### 10. **idx**
61
+ - **Type:** Integer
62
+ - **Description:** The unique index or identifier for this particular entry in the dataset. It helps in referencing and tracking specific examples.
63
+ - **Example:** `1`
64
+
statement_prediction_dataset.jsonl ADDED
The diff for this file is too large to render. See raw diff