File size: 14,680 Bytes
ccf6ba7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
{"prompt": "Write a Python function that returns the square of a number.", "completion": "def square(n):\n    return n * n"}
{"prompt": "Fix the bug in this Python function:\n\ndef greet(name)\n    return \"Hello \" + name", "completion": "def greet(name):\n    return \"Hello \" + name"}
{"prompt": "What does this code do?\n\nfor i in range(1, 6):\n    print(i * '*')", "completion": "It prints a right-angled triangle of asterisks with 5 lines."}
{"prompt": "Write Python code to check if a number is even.", "completion": "def is_even(n):\n    return n % 2 == 0"}
{"prompt": "Write Python code to count from 1 to 10.", "completion": "for i in range(1, 11):\n    print(i)"}
{"prompt": "Write a Python function that reverses a string.", "completion": "def reverse_string(s):\n    return s[::-1]"}
{"prompt": "What does this code do?\n\nx = [1, 2, 3]\nx.append(4)\nprint(x)", "completion": "It adds 4 to the list x and prints [1, 2, 3, 4]."}
{"prompt": "Fix the error in this code:\n\nif 5 > 3\n    print(\"Yes\")", "completion": "if 5 > 3:\n    print(\"Yes\")"}
{"prompt": "Write Python code to find the largest of three numbers.", "completion": "def largest(a, b, c):\n    return max(a, b, c)"}
{"prompt": "Explain this Python code:\n\nname = \"Alice\"\nprint(name.upper())", "completion": "It converts the string 'Alice' to uppercase and prints 'ALICE'."}
{"prompt": "Write a Python function that returns the square of a number. # variation", "completion": "def square(n):\n    return n * n"}
{"prompt": "Fix the bug in this Python function:\n\ndef greet(name)\n    return \"Hello \" + name # variation", "completion": "def greet(name):\n    return \"Hello \" + name"}
{"prompt": "What does this code do?\n\nfor i in range(1, 6):\n    print(i * '*') # variation", "completion": "It prints a right-angled triangle of asterisks with 5 lines."}
{"prompt": "Write Python code to check if a number is even. # variation", "completion": "def is_even(n):\n    return n % 2 == 0"}
{"prompt": "Write Python code to count from 1 to 10. # variation", "completion": "for i in range(1, 11):\n    print(i)"}
{"prompt": "Write a Python function that reverses a string. # variation", "completion": "def reverse_string(s):\n    return s[::-1]"}
{"prompt": "What does this code do?\n\nx = [1, 2, 3]\nx.append(4)\nprint(x) # variation", "completion": "It adds 4 to the list x and prints [1, 2, 3, 4]."}
{"prompt": "Fix the error in this code:\n\nif 5 > 3\n    print(\"Yes\") # variation", "completion": "if 5 > 3:\n    print(\"Yes\")"}
{"prompt": "Write Python code to find the largest of three numbers. # variation", "completion": "def largest(a, b, c):\n    return max(a, b, c)"}
{"prompt": "Explain this Python code:\n\nname = \"Alice\"\nprint(name.upper()) # variation", "completion": "It converts the string 'Alice' to uppercase and prints 'ALICE'."}
{"prompt": "Write a Python function that returns the square of a number. # variation", "completion": "def square(n):\n    return n * n"}
{"prompt": "Fix the bug in this Python function:\n\ndef greet(name)\n    return \"Hello \" + name # variation", "completion": "def greet(name):\n    return \"Hello \" + name"}
{"prompt": "What does this code do?\n\nfor i in range(1, 6):\n    print(i * '*') # variation", "completion": "It prints a right-angled triangle of asterisks with 5 lines."}
{"prompt": "Write Python code to check if a number is even. # variation", "completion": "def is_even(n):\n    return n % 2 == 0"}
{"prompt": "Write Python code to count from 1 to 10. # variation", "completion": "for i in range(1, 11):\n    print(i)"}
{"prompt": "Write a Python function that reverses a string. # variation", "completion": "def reverse_string(s):\n    return s[::-1]"}
{"prompt": "What does this code do?\n\nx = [1, 2, 3]\nx.append(4)\nprint(x) # variation", "completion": "It adds 4 to the list x and prints [1, 2, 3, 4]."}
{"prompt": "Fix the error in this code:\n\nif 5 > 3\n    print(\"Yes\") # variation", "completion": "if 5 > 3:\n    print(\"Yes\")"}
{"prompt": "Write Python code to find the largest of three numbers. # variation", "completion": "def largest(a, b, c):\n    return max(a, b, c)"}
{"prompt": "Explain this Python code:\n\nname = \"Alice\"\nprint(name.upper()) # variation", "completion": "It converts the string 'Alice' to uppercase and prints 'ALICE'."}
{"prompt": "Write a Python function that returns the square of a number. # variation", "completion": "def square(n):\n    return n * n"}
{"prompt": "Fix the bug in this Python function:\n\ndef greet(name)\n    return \"Hello \" + name # variation", "completion": "def greet(name):\n    return \"Hello \" + name"}
{"prompt": "What does this code do?\n\nfor i in range(1, 6):\n    print(i * '*') # variation", "completion": "It prints a right-angled triangle of asterisks with 5 lines."}
{"prompt": "Write Python code to check if a number is even. # variation", "completion": "def is_even(n):\n    return n % 2 == 0"}
{"prompt": "Write Python code to count from 1 to 10. # variation", "completion": "for i in range(1, 11):\n    print(i)"}
{"prompt": "Write a Python function that reverses a string. # variation", "completion": "def reverse_string(s):\n    return s[::-1]"}
{"prompt": "What does this code do?\n\nx = [1, 2, 3]\nx.append(4)\nprint(x) # variation", "completion": "It adds 4 to the list x and prints [1, 2, 3, 4]."}
{"prompt": "Fix the error in this code:\n\nif 5 > 3\n    print(\"Yes\") # variation", "completion": "if 5 > 3:\n    print(\"Yes\")"}
{"prompt": "Write Python code to find the largest of three numbers. # variation", "completion": "def largest(a, b, c):\n    return max(a, b, c)"}
{"prompt": "Explain this Python code:\n\nname = \"Alice\"\nprint(name.upper()) # variation", "completion": "It converts the string 'Alice' to uppercase and prints 'ALICE'."}
{"prompt": "Write a Python function that returns the square of a number. # variation", "completion": "def square(n):\n    return n * n"}
{"prompt": "Fix the bug in this Python function:\n\ndef greet(name)\n    return \"Hello \" + name # variation", "completion": "def greet(name):\n    return \"Hello \" + name"}
{"prompt": "What does this code do?\n\nfor i in range(1, 6):\n    print(i * '*') # variation", "completion": "It prints a right-angled triangle of asterisks with 5 lines."}
{"prompt": "Write Python code to check if a number is even. # variation", "completion": "def is_even(n):\n    return n % 2 == 0"}
{"prompt": "Write Python code to count from 1 to 10. # variation", "completion": "for i in range(1, 11):\n    print(i)"}
{"prompt": "Write a Python function that reverses a string. # variation", "completion": "def reverse_string(s):\n    return s[::-1]"}
{"prompt": "What does this code do?\n\nx = [1, 2, 3]\nx.append(4)\nprint(x) # variation", "completion": "It adds 4 to the list x and prints [1, 2, 3, 4]."}
{"prompt": "Fix the error in this code:\n\nif 5 > 3\n    print(\"Yes\") # variation", "completion": "if 5 > 3:\n    print(\"Yes\")"}
{"prompt": "Write Python code to find the largest of three numbers. # variation", "completion": "def largest(a, b, c):\n    return max(a, b, c)"}
{"prompt": "Explain this Python code:\n\nname = \"Alice\"\nprint(name.upper()) # variation", "completion": "It converts the string 'Alice' to uppercase and prints 'ALICE'."}
{"prompt": "Write a Python function that returns the square of a number. # variation", "completion": "def square(n):\n    return n * n"}
{"prompt": "Fix the bug in this Python function:\n\ndef greet(name)\n    return \"Hello \" + name # variation", "completion": "def greet(name):\n    return \"Hello \" + name"}
{"prompt": "What does this code do?\n\nfor i in range(1, 6):\n    print(i * '*') # variation", "completion": "It prints a right-angled triangle of asterisks with 5 lines."}
{"prompt": "Write Python code to check if a number is even. # variation", "completion": "def is_even(n):\n    return n % 2 == 0"}
{"prompt": "Write Python code to count from 1 to 10. # variation", "completion": "for i in range(1, 11):\n    print(i)"}
{"prompt": "Write a Python function that reverses a string. # variation", "completion": "def reverse_string(s):\n    return s[::-1]"}
{"prompt": "What does this code do?\n\nx = [1, 2, 3]\nx.append(4)\nprint(x) # variation", "completion": "It adds 4 to the list x and prints [1, 2, 3, 4]."}
{"prompt": "Fix the error in this code:\n\nif 5 > 3\n    print(\"Yes\") # variation", "completion": "if 5 > 3:\n    print(\"Yes\")"}
{"prompt": "Write Python code to find the largest of three numbers. # variation", "completion": "def largest(a, b, c):\n    return max(a, b, c)"}
{"prompt": "Explain this Python code:\n\nname = \"Alice\"\nprint(name.upper()) # variation", "completion": "It converts the string 'Alice' to uppercase and prints 'ALICE'."}
{"prompt": "Write a Python function that returns the square of a number. # variation", "completion": "def square(n):\n    return n * n"}
{"prompt": "Fix the bug in this Python function:\n\ndef greet(name)\n    return \"Hello \" + name # variation", "completion": "def greet(name):\n    return \"Hello \" + name"}
{"prompt": "What does this code do?\n\nfor i in range(1, 6):\n    print(i * '*') # variation", "completion": "It prints a right-angled triangle of asterisks with 5 lines."}
{"prompt": "Write Python code to check if a number is even. # variation", "completion": "def is_even(n):\n    return n % 2 == 0"}
{"prompt": "Write Python code to count from 1 to 10. # variation", "completion": "for i in range(1, 11):\n    print(i)"}
{"prompt": "Write a Python function that reverses a string. # variation", "completion": "def reverse_string(s):\n    return s[::-1]"}
{"prompt": "What does this code do?\n\nx = [1, 2, 3]\nx.append(4)\nprint(x) # variation", "completion": "It adds 4 to the list x and prints [1, 2, 3, 4]."}
{"prompt": "Fix the error in this code:\n\nif 5 > 3\n    print(\"Yes\") # variation", "completion": "if 5 > 3:\n    print(\"Yes\")"}
{"prompt": "Write Python code to find the largest of three numbers. # variation", "completion": "def largest(a, b, c):\n    return max(a, b, c)"}
{"prompt": "Explain this Python code:\n\nname = \"Alice\"\nprint(name.upper()) # variation", "completion": "It converts the string 'Alice' to uppercase and prints 'ALICE'."}
{"prompt": "Write a Python function that returns the square of a number. # variation", "completion": "def square(n):\n    return n * n"}
{"prompt": "Fix the bug in this Python function:\n\ndef greet(name)\n    return \"Hello \" + name # variation", "completion": "def greet(name):\n    return \"Hello \" + name"}
{"prompt": "What does this code do?\n\nfor i in range(1, 6):\n    print(i * '*') # variation", "completion": "It prints a right-angled triangle of asterisks with 5 lines."}
{"prompt": "Write Python code to check if a number is even. # variation", "completion": "def is_even(n):\n    return n % 2 == 0"}
{"prompt": "Write Python code to count from 1 to 10. # variation", "completion": "for i in range(1, 11):\n    print(i)"}
{"prompt": "Write a Python function that reverses a string. # variation", "completion": "def reverse_string(s):\n    return s[::-1]"}
{"prompt": "What does this code do?\n\nx = [1, 2, 3]\nx.append(4)\nprint(x) # variation", "completion": "It adds 4 to the list x and prints [1, 2, 3, 4]."}
{"prompt": "Fix the error in this code:\n\nif 5 > 3\n    print(\"Yes\") # variation", "completion": "if 5 > 3:\n    print(\"Yes\")"}
{"prompt": "Write Python code to find the largest of three numbers. # variation", "completion": "def largest(a, b, c):\n    return max(a, b, c)"}
{"prompt": "Explain this Python code:\n\nname = \"Alice\"\nprint(name.upper()) # variation", "completion": "It converts the string 'Alice' to uppercase and prints 'ALICE'."}
{"prompt": "Write a Python function that returns the square of a number. # variation", "completion": "def square(n):\n    return n * n"}
{"prompt": "Fix the bug in this Python function:\n\ndef greet(name)\n    return \"Hello \" + name # variation", "completion": "def greet(name):\n    return \"Hello \" + name"}
{"prompt": "What does this code do?\n\nfor i in range(1, 6):\n    print(i * '*') # variation", "completion": "It prints a right-angled triangle of asterisks with 5 lines."}
{"prompt": "Write Python code to check if a number is even. # variation", "completion": "def is_even(n):\n    return n % 2 == 0"}
{"prompt": "Write Python code to count from 1 to 10. # variation", "completion": "for i in range(1, 11):\n    print(i)"}
{"prompt": "Write a Python function that reverses a string. # variation", "completion": "def reverse_string(s):\n    return s[::-1]"}
{"prompt": "What does this code do?\n\nx = [1, 2, 3]\nx.append(4)\nprint(x) # variation", "completion": "It adds 4 to the list x and prints [1, 2, 3, 4]."}
{"prompt": "Fix the error in this code:\n\nif 5 > 3\n    print(\"Yes\") # variation", "completion": "if 5 > 3:\n    print(\"Yes\")"}
{"prompt": "Write Python code to find the largest of three numbers. # variation", "completion": "def largest(a, b, c):\n    return max(a, b, c)"}
{"prompt": "Explain this Python code:\n\nname = \"Alice\"\nprint(name.upper()) # variation", "completion": "It converts the string 'Alice' to uppercase and prints 'ALICE'."}
{"prompt": "Write a Python function that returns the square of a number. # variation", "completion": "def square(n):\n    return n * n"}
{"prompt": "Fix the bug in this Python function:\n\ndef greet(name)\n    return \"Hello \" + name # variation", "completion": "def greet(name):\n    return \"Hello \" + name"}
{"prompt": "What does this code do?\n\nfor i in range(1, 6):\n    print(i * '*') # variation", "completion": "It prints a right-angled triangle of asterisks with 5 lines."}
{"prompt": "Write Python code to check if a number is even. # variation", "completion": "def is_even(n):\n    return n % 2 == 0"}
{"prompt": "Write Python code to count from 1 to 10. # variation", "completion": "for i in range(1, 11):\n    print(i)"}
{"prompt": "Write a Python function that reverses a string. # variation", "completion": "def reverse_string(s):\n    return s[::-1]"}
{"prompt": "What does this code do?\n\nx = [1, 2, 3]\nx.append(4)\nprint(x) # variation", "completion": "It adds 4 to the list x and prints [1, 2, 3, 4]."}
{"prompt": "Fix the error in this code:\n\nif 5 > 3\n    print(\"Yes\") # variation", "completion": "if 5 > 3:\n    print(\"Yes\")"}
{"prompt": "Write Python code to find the largest of three numbers. # variation", "completion": "def largest(a, b, c):\n    return max(a, b, c)"}
{"prompt": "Explain this Python code:\n\nname = \"Alice\"\nprint(name.upper()) # variation", "completion": "It converts the string 'Alice' to uppercase and prints 'ALICE'."}