Delete file.jsonl
Browse files- file.jsonl +0 -80
file.jsonl
DELETED
@@ -1,80 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"prompt": "Code 1: int* ptr = NULL; *ptr = 42",
|
3 |
-
"completion": "Bad Code: Null pointer dereference detected."
|
4 |
-
},
|
5 |
-
{
|
6 |
-
"prompt": "Code 2: int x = 10; int* ptr = &x; *ptr = 42;",
|
7 |
-
"completion": "Good Code: No null pointer dereference."
|
8 |
-
},
|
9 |
-
{
|
10 |
-
"prompt": "Code 3: int* ptr; *ptr = 42;",
|
11 |
-
"completion": "Bad Code: Uninitialized pointer dereference."
|
12 |
-
},
|
13 |
-
{
|
14 |
-
"prompt": "Code 4: int arr[10]; arr[5] = 100;",
|
15 |
-
"completion": "Good Code: No null pointer dereference detected."
|
16 |
-
},
|
17 |
-
{
|
18 |
-
"prompt": "Code 5: char* str = NULL; str[0] = 'A';",
|
19 |
-
"completion": "Bad Code: Null pointer dereference detected."
|
20 |
-
},
|
21 |
-
{
|
22 |
-
"prompt": "Code 6: char str[] = \"Hello\"; str[0] = 'h';",
|
23 |
-
"completion": "Good Code: No null pointer dereference."
|
24 |
-
},
|
25 |
-
{
|
26 |
-
"prompt": "Code 7: int* ptr = (int*)malloc(sizeof(int)); *ptr = 42; free(ptr);",
|
27 |
-
"completion": "Good Code: No null pointer dereference."
|
28 |
-
},
|
29 |
-
{
|
30 |
-
"prompt": "Code 8: int* ptr = (int*)malloc(sizeof(int)); free(ptr); *ptr = 42;",
|
31 |
-
"completion": "Bad Code: Use after free detected."
|
32 |
-
},
|
33 |
-
{
|
34 |
-
"prompt": "Code 9: int x = 5; int* ptr = &x; printf('%d', *ptr);",
|
35 |
-
"completion": "Good Code: No null pointer dereference."
|
36 |
-
},
|
37 |
-
{
|
38 |
-
"prompt": "Code 10: int* ptr = NULL; if (ptr) { *ptr = 10; }",
|
39 |
-
"completion": "Good Code: Safe null pointer check."
|
40 |
-
},
|
41 |
-
{
|
42 |
-
"prompt": "Code 11: int* ptr = NULL; *ptr += 1;",
|
43 |
-
"completion": "Bad Code: Null pointer dereference detected."
|
44 |
-
},
|
45 |
-
{
|
46 |
-
"prompt": "Code 12: int arr[5]; int* ptr = arr; ptr[2] = 50;",
|
47 |
-
"completion": "Good Code: No null pointer dereference."
|
48 |
-
},
|
49 |
-
{
|
50 |
-
"prompt": "Code 13: int* ptr; ptr = (int*)malloc(sizeof(int)); free(ptr); *ptr = 5;",
|
51 |
-
"completion": "Bad Code: Use after free detected."
|
52 |
-
},
|
53 |
-
{
|
54 |
-
"prompt": "Code 14: int* ptr = NULL; int x = *ptr;",
|
55 |
-
"completion": "Bad Code: Null pointer dereference detected."
|
56 |
-
},
|
57 |
-
{
|
58 |
-
"prompt": "Code 15: int x = 5; int* ptr = &x; int y = *ptr;",
|
59 |
-
"completion": "Good Code: No null pointer dereference."
|
60 |
-
},
|
61 |
-
{
|
62 |
-
"prompt": "Code 16: struct Node { int data; struct Node* next; }; struct Node* head = NULL; head->data = 5;",
|
63 |
-
"completion": "Bad Code: Null pointer dereference detected."
|
64 |
-
},
|
65 |
-
{
|
66 |
-
"prompt": "Code 17: struct Node { int data; struct Node* next; }; struct Node node; node.data = 5;",
|
67 |
-
"completion": "Good Code: No null pointer dereference."
|
68 |
-
},
|
69 |
-
{
|
70 |
-
"prompt": "Code 18: int* ptr = NULL; if (ptr != NULL) { *ptr = 10; }",
|
71 |
-
"completion": "Good Code: Safe null pointer check."
|
72 |
-
},
|
73 |
-
{
|
74 |
-
"prompt": "Code 19: int* ptr = NULL; *ptr++;",
|
75 |
-
"completion": "Bad Code: Null pointer dereference detected."
|
76 |
-
},
|
77 |
-
{
|
78 |
-
"prompt": "Code 20: int* ptr = NULL; ptr = malloc(sizeof(int)); *ptr = 42; free(ptr);",
|
79 |
-
"completion": "Good Code: No null pointer dereference."
|
80 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|