File size: 2,784 Bytes
fb3be40 |
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 |
# Dataset Readme
This document provides an overview of the dataset's structure and the meaning of each column.
## Columns
### 1. **Programming Language**
- **Type:** String
- **Description:** The programming language used in the source code. In this dataset, it is always Python.
### 2. **Statement Type**
- **Type:** String
- **Description:** The type of the statement in the source code. For example, it can be an 'Assignment' or 'API'.
### 3. **Source Code**
- **Type:** String
- **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.
### 4. **Selected Statement**
- **Type:** String
- **Description:** The specific statement selected for analysis. This is usually a single line of code where the focus is placed during the trace collection.
### 5. **Function Input**
- **Type:** Dictionary
- **Description:** A dictionary of "variable name" to "variable_value" mapping
- **Example:** `{"a": "[0, 100, 200, 0, 0, 0, 0, 0, 0, 0]", "i": "2", "j": "1"}`
### 6. **Variable Values Before Statement**
- **Type:** Dictionary
- **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.
- **Example:** `{"a": "[0, 100, 200, 0, 0, 0, 0, 0, 0, 0]", "i": "2"}`
### 7. **Value After Statement Execution**
- **Type:** String
- **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.
- **Example:** `"200"`
### 8. **Variable States During Runtime**
- **Type:** List of Lists
- **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.
- **Example:**
```json
{
"a": [
[1, "[0, 100, 200, 0, 0, 0, 0, 0, 0, 0]"],
[3.0, "[0, 100, 100, 0, 0, 0, 0, 0, 0, 0]"],
[4.0, "[0, 200, 100, 0, 0, 0, 0, 0, 0, 0]"]
],
"i": [[1, "2"]],
"j": [[1, "1"]],
"temp": [[2.0, "200"]]
}
```
### 9. **Program Information**
- **Type:** String
- **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.
- **Example:** `"Project Name: chen0040+pycompressor"`
### 10. **idx**
- **Type:** Integer
- **Description:** The unique index or identifier for this particular entry in the dataset. It helps in referencing and tracking specific examples.
- **Example:** `1`
|