Create metada.json
Browse files{"code": "print('Hello World')", "explanation": "This line prints the text Hello World to the screen."}
{"code": "x = 5", "explanation": "This assigns the value 5 to the variable x."}
{"code": "if x > 3: print(x)", "explanation": "This checks if x is greater than 3 and prints it if true."}
{"code": "for i in range(3): print(i)", "explanation": "This loop prints numbers from 0 to 2."}
{"code": "def add(a, b): return a + b", "explanation": "This function adds two numbers and returns the result."}
{"code": "len(list)", "explanation": "This returns the number of items in a list."}
{"code": "import math", "explanation": "This imports the math library."}
{"code": "while x > 0: x -= 1", "explanation": "This loop decreases x by 1 until it reaches zero."}
{"code": "a == b", "explanation": "This checks whether a is equal to b."}
{"code": "list.append(1)", "explanation": "This adds the value 1 to the end of a list."}
- metada.json +6 -0
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"type": "code_explanation",
|
| 3 |
+
"version": "1.0",
|
| 4 |
+
"description": "Dataset for explaining simple code snippets in plain English.",
|
| 5 |
+
"num_samples": 10
|
| 6 |
+
}
|