language stringclasses 3
values | code stringclasses 7
values | label int64 1 1 | error_line_number int64 1 3 | bug_type stringclasses 15
values | change_type stringclasses 3
values | method_name stringclasses 2
values | context_code stringclasses 1
value | compilation_error_message stringclasses 14
values | bug_severity stringclasses 3
values | output_before_fix stringclasses 5
values | output_after_fix stringclasses 5
values |
|---|---|---|---|---|---|---|---|---|---|---|---|
python | def divide(a, b): return a / b
print(divide(5, 0)) | 1 | 2 | DivisionByZero | Fix | N/A | N/A | DivisionByZero: Simulated error message | High | Crash | Correct result |
c | #include <stdio.h>
int main() { int* ptr = NULL; printf("%d", *ptr); return 0; } | 1 | 2 | LogicError | None | main | N/A | LogicError: Simulated error message | Medium | Error message | No exception |
python | def divide(a, b): return a / b
print(divide(5, 0)) | 1 | 2 | MemoryLeak | Fix | N/A | N/A | MemoryLeak: Simulated error message | Medium | Invalid output | Fixed |
cpp | #include <iostream>
int main() { int arr[5]; arr[10] = 42; return 0; } | 1 | 2 | OutOfBoundsAccess | Fix | main | N/A | OutOfBoundsAccess: Simulated error message | Low | Invalid output | Safe execution |
c | #include <stdio.h>
int arr[5]; arr[10] = 42; return 0; | 1 | 2 | PathTraversal | Refactor | main | N/A | PathTraversal: Simulated error message | High | Invalid output | Fixed |
cpp | #include <iostream>
using namespace std;
int main() { int* ptr = nullptr; cout << *ptr; return 0; } | 1 | 3 | MemoryLeak | Fix | main | N/A | MemoryLeak: Simulated error message | Medium | Error message | Valid output |
c | #include <stdio.h>
int arr[5]; arr[10] = 42; return 0; | 1 | 2 | LogicError | Refactor | main | N/A | LogicError: Simulated error message | High | Incorrect result | Safe execution |
c | #include <stdio.h>
int arr[5]; arr[10] = 42; return 0; | 1 | 2 | BufferOverflow | None | main | N/A | BufferOverflow: Simulated error message | Medium | Crash | No exception |
cpp | #include <iostream>
int main() { int arr[5]; arr[10] = 42; return 0; } | 1 | 1 | LogicError | Refactor | main | N/A | LogicError: Simulated error message | Low | Incorrect result | No exception |
c | #include <stdio.h>
int arr[5]; arr[10] = 42; return 0; | 1 | 2 | MemoryLeak | Refactor | main | N/A | MemoryLeak: Simulated error message | Medium | Invalid output | Safe execution |
cpp | #include <iostream>
int main() { int arr[5]; arr[10] = 42; return 0; } | 1 | 2 | InfiniteLoop | Refactor | main | N/A | InfiniteLoop: Simulated error message | High | Error message | Correct result |
cpp | #include <iostream>
int main() { int arr[5]; arr[10] = 42; return 0; } | 1 | 2 | SQLInjection | Fix | main | N/A | SQLInjection: Simulated error message | Low | Incorrect result | Valid output |
cpp | #include <iostream>
int main() { int arr[5]; arr[10] = 42; return 0; } | 1 | 1 | SyntaxError | Fix | main | N/A | SyntaxError: Simulated error message | Low | Error message | Safe execution |
cpp | #include <iostream>
using namespace std;
int main() { int* ptr = nullptr; cout << *ptr; return 0; } | 1 | 1 | InfiniteLoop | Refactor | main | N/A | InfiniteLoop: Simulated error message | Low | Crash | Safe execution |
c | #include <stdio.h>
int main() { int x = 5 / 0; return 0; } | 1 | 2 | BufferOverflow | Refactor | main | N/A | BufferOverflow: Simulated error message | Medium | Exception thrown | Safe execution |
c | #include <stdio.h>
int main() { int* ptr = NULL; printf("%d", *ptr); return 0; } | 1 | 2 | SyntaxError | Fix | main | N/A | SyntaxError: Simulated error message | Medium | Exception thrown | Valid output |
c | #include <stdio.h>
int main() { int* ptr = NULL; printf("%d", *ptr); return 0; } | 1 | 2 | NullPointerException | Refactor | main | N/A | NullPointerException: Simulated error message | High | Invalid output | Correct result |
c | #include <stdio.h>
int arr[5]; arr[10] = 42; return 0; | 1 | 2 | LogicError | Refactor | main | N/A | LogicError: Simulated error message | Low | Crash | Safe execution |
cpp | #include <iostream>
int main() { int x = 5 / 0; return 0; } | 1 | 2 | PathTraversal | Fix | main | N/A | PathTraversal: Simulated error message | Low | Exception thrown | No exception |
cpp | #include <iostream>
using namespace std;
int main() { int* ptr = nullptr; cout << *ptr; return 0; } | 1 | 3 | LogicError | Refactor | main | N/A | DivisionByZero: Simulated error message | High | Exception thrown | Fixed |
c | #include <stdio.h>
int arr[5]; arr[10] = 42; return 0; | 1 | 2 | MemoryLeak | Refactor | main | N/A | MemoryLeak: Simulated error message | Low | Exception thrown | Correct result |
c | #include <stdio.h>
int main() { int x = 5 / 0; return 0; } | 1 | 1 | DivisionByZero | None | main | N/A | DivisionByZero: Simulated error message | Medium | Crash | Safe execution |
cpp | #include <iostream>
int main() { int arr[5]; arr[10] = 42; return 0; } | 1 | 2 | SyntaxError | Refactor | main | N/A | SyntaxError: Simulated error message | High | Error message | Valid output |
cpp | #include <iostream>
int main() { int arr[5]; arr[10] = 42; return 0; } | 1 | 1 | LogicError | None | main | N/A | DivisionByZero: Simulated error message | Low | Incorrect result | Correct result |
python | def divide(a, b): return a / b
print(divide(5, 0)) | 1 | 2 | TypeError | Fix | N/A | N/A | TypeError: Simulated error message | Medium | Exception thrown | Fixed |
cpp | #include <iostream>
int main() { int x = 5 / 0; return 0; } | 1 | 2 | SegmentationFault | Fix | main | N/A | SegmentationFault: Simulated error message | High | Invalid output | Valid output |
c | #include <stdio.h>
int main() { int* ptr = NULL; printf("%d", *ptr); return 0; } | 1 | 2 | OutOfBoundsAccess | Refactor | main | N/A | OutOfBoundsAccess: Simulated error message | Low | Incorrect result | Fixed |
cpp | #include <iostream>
using namespace std;
int main() { int* ptr = nullptr; cout << *ptr; return 0; } | 1 | 3 | LogicError | Refactor | main | N/A | DivisionByZero: Simulated error message | High | Error message | No exception |
c | #include <stdio.h>
int main() { int* ptr = NULL; printf("%d", *ptr); return 0; } | 1 | 2 | LogicError | Refactor | main | N/A | LogicError: Simulated error message | Low | Incorrect result | Valid output |
c | #include <stdio.h>
int arr[5]; arr[10] = 42; return 0; | 1 | 2 | InvalidCastException | Refactor | main | N/A | InvalidCastException: Simulated error message | Low | Invalid output | No exception |
cpp | #include <iostream>
int main() { int arr[5]; arr[10] = 42; return 0; } | 1 | 2 | InvalidCastException | Fix | main | N/A | InvalidCastException: Simulated error message | Low | Crash | Safe execution |
c | #include <stdio.h>
int arr[5]; arr[10] = 42; return 0; | 1 | 2 | LogicError | Refactor | main | N/A | LogicError: Simulated error message | Low | Invalid output | Correct result |
python | def divide(a, b): return a / b
print(divide(5, 0)) | 1 | 2 | DivisionByZero | Refactor | N/A | N/A | DivisionByZero: Simulated error message | Medium | Error message | No exception |
cpp | #include <iostream>
int main() { int arr[5]; arr[10] = 42; return 0; } | 1 | 2 | SegmentationFault | None | main | N/A | SegmentationFault: Simulated error message | High | Crash | Correct result |
cpp | #include <iostream>
int main() { int arr[5]; arr[10] = 42; return 0; } | 1 | 2 | InvalidCastException | Fix | main | N/A | InvalidCastException: Simulated error message | Low | Exception thrown | No exception |
cpp | #include <iostream>
int main() { int arr[5]; arr[10] = 42; return 0; } | 1 | 2 | LogicError | Fix | main | N/A | DivisionByZero: Simulated error message | Medium | Invalid output | Safe execution |
cpp | #include <iostream>
int main() { int x = 5 / 0; return 0; } | 1 | 2 | BufferOverflow | None | main | N/A | BufferOverflow: Simulated error message | High | Error message | No exception |
cpp | #include <iostream>
using namespace std;
int main() { int* ptr = nullptr; cout << *ptr; return 0; } | 1 | 3 | TypeError | Refactor | main | N/A | TypeError: Simulated error message | High | Crash | Safe execution |
python | def divide(a, b): return a / b
print(divide(5, 0)) | 1 | 2 | BufferOverflow | None | N/A | N/A | BufferOverflow: Simulated error message | Low | Exception thrown | Fixed |
c | #include <stdio.h>
int main() { int* ptr = NULL; printf("%d", *ptr); return 0; } | 1 | 2 | BufferOverflow | None | main | N/A | BufferOverflow: Simulated error message | Low | Exception thrown | Valid output |
cpp | #include <iostream>
int main() { int arr[5]; arr[10] = 42; return 0; } | 1 | 2 | InfiniteLoop | Fix | main | N/A | InfiniteLoop: Simulated error message | High | Incorrect result | Safe execution |
cpp | #include <iostream>
using namespace std;
int main() { int* ptr = nullptr; cout << *ptr; return 0; } | 1 | 3 | NullPointerException | Refactor | main | N/A | NullPointerException: Simulated error message | Medium | Exception thrown | Safe execution |
cpp | #include <iostream>
int main() { int arr[5]; arr[10] = 42; return 0; } | 1 | 2 | NullPointerException | None | main | N/A | NullPointerException: Simulated error message | High | Crash | Correct result |
c | #include <stdio.h>
int main() { int x = 5 / 0; return 0; } | 1 | 1 | TypeError | None | main | N/A | TypeError: Simulated error message | High | Crash | Valid output |
cpp | #include <iostream>
int main() { int x = 5 / 0; return 0; } | 1 | 2 | SegmentationFault | None | main | N/A | SegmentationFault: Simulated error message | Low | Invalid output | No exception |
c | #include <stdio.h>
int arr[5]; arr[10] = 42; return 0; | 1 | 2 | PathTraversal | Fix | main | N/A | PathTraversal: Simulated error message | Low | Crash | Safe execution |
c | #include <stdio.h>
int main() { int x = 5 / 0; return 0; } | 1 | 2 | SyntaxError | Refactor | main | N/A | SyntaxError: Simulated error message | High | Error message | No exception |
cpp | #include <iostream>
int main() { int x = 5 / 0; return 0; } | 1 | 1 | MemoryLeak | None | main | N/A | MemoryLeak: Simulated error message | High | Error message | No exception |
cpp | #include <iostream>
int main() { int arr[5]; arr[10] = 42; return 0; } | 1 | 2 | OutOfBoundsAccess | None | main | N/A | OutOfBoundsAccess: Simulated error message | High | Error message | Valid output |
cpp | #include <iostream>
using namespace std;
int main() { int* ptr = nullptr; cout << *ptr; return 0; } | 1 | 3 | SQLInjection | Fix | main | N/A | SQLInjection: Simulated error message | Low | Exception thrown | Fixed |
python | def divide(a, b): return a / b
print(divide(5, 0)) | 1 | 2 | PathTraversal | Refactor | N/A | N/A | PathTraversal: Simulated error message | Low | Incorrect result | Fixed |
c | #include <stdio.h>
int arr[5]; arr[10] = 42; return 0; | 1 | 2 | OutOfBoundsAccess | Fix | main | N/A | OutOfBoundsAccess: Simulated error message | Medium | Invalid output | Safe execution |
cpp | #include <iostream>
int main() { int x = 5 / 0; return 0; } | 1 | 2 | OutOfBounds | Fix | main | N/A | IndexError: Simulated error message | Medium | Incorrect result | Valid output |
cpp | #include <iostream>
int main() { int arr[5]; arr[10] = 42; return 0; } | 1 | 2 | PathTraversal | None | main | N/A | PathTraversal: Simulated error message | High | Exception thrown | No exception |
cpp | #include <iostream>
int main() { int arr[5]; arr[10] = 42; return 0; } | 1 | 2 | InfiniteLoop | None | main | N/A | InfiniteLoop: Simulated error message | Medium | Invalid output | Safe execution |
cpp | #include <iostream>
using namespace std;
int main() { int* ptr = nullptr; cout << *ptr; return 0; } | 1 | 3 | InvalidCastException | Fix | main | N/A | InvalidCastException: Simulated error message | Medium | Crash | Fixed |
c | #include <stdio.h>
int main() { int x = 5 / 0; return 0; } | 1 | 2 | InvalidCastException | Refactor | main | N/A | InvalidCastException: Simulated error message | Medium | Error message | Fixed |
cpp | #include <iostream>
int main() { int arr[5]; arr[10] = 42; return 0; } | 1 | 2 | IndexError | Fix | main | N/A | IndexError: Simulated error message | Low | Invalid output | Correct result |
cpp | #include <iostream>
int main() { int arr[5]; arr[10] = 42; return 0; } | 1 | 1 | IndexError | None | main | N/A | IndexError: Simulated error message | Medium | Invalid output | Fixed |
c | #include <stdio.h>
int arr[5]; arr[10] = 42; return 0; | 1 | 2 | MemoryLeak | Fix | main | N/A | MemoryLeak: Simulated error message | Low | Invalid output | Fixed |
c | #include <stdio.h>
int arr[5]; arr[10] = 42; return 0; | 1 | 1 | InfiniteLoop | None | main | N/A | InfiniteLoop: Simulated error message | Medium | Error message | Fixed |
cpp | #include <iostream>
int main() { int arr[5]; arr[10] = 42; return 0; } | 1 | 2 | IndexError | Refactor | main | N/A | IndexError: Simulated error message | Low | Error message | No exception |
c | #include <stdio.h>
int main() { int* ptr = NULL; printf("%d", *ptr); return 0; } | 1 | 2 | SQLInjection | Refactor | main | N/A | SQLInjection: Simulated error message | High | Exception thrown | Valid output |
cpp | #include <iostream>
int main() { int arr[5]; arr[10] = 42; return 0; } | 1 | 2 | TypeError | None | main | N/A | TypeError: Simulated error message | High | Invalid output | Valid output |
cpp | #include <iostream>
int main() { int x = 5 / 0; return 0; } | 1 | 2 | NullPointerException | Fix | main | N/A | NullPointerException: Simulated error message | Medium | Invalid output | Valid output |
c | #include <stdio.h>
int main() { int* ptr = NULL; printf("%d", *ptr); return 0; } | 1 | 2 | OutOfBoundsAccess | None | main | N/A | OutOfBoundsAccess: Simulated error message | High | Exception thrown | Fixed |
c | #include <stdio.h>
int main() { int* ptr = NULL; printf("%d", *ptr); return 0; } | 1 | 2 | LogicError | Fix | main | N/A | DivisionByZero: Simulated error message | Low | Exception thrown | Fixed |
c | #include <stdio.h>
int main() { int* ptr = NULL; printf("%d", *ptr); return 0; } | 1 | 2 | SQLInjection | None | main | N/A | SQLInjection: Simulated error message | High | Crash | Safe execution |
c | #include <stdio.h>
int main() { int x = 5 / 0; return 0; } | 1 | 2 | BufferOverflow | None | main | N/A | BufferOverflow: Simulated error message | Low | Crash | Correct result |
c | #include <stdio.h>
int arr[5]; arr[10] = 42; return 0; | 1 | 2 | SegmentationFault | None | main | N/A | SegmentationFault: Simulated error message | High | Invalid output | Valid output |
c | #include <stdio.h>
int arr[5]; arr[10] = 42; return 0; | 1 | 2 | InfiniteLoop | Fix | main | N/A | InfiniteLoop: Simulated error message | Low | Exception thrown | Fixed |
cpp | #include <iostream>
int main() { int arr[5]; arr[10] = 42; return 0; } | 1 | 2 | SyntaxError | Refactor | main | N/A | SyntaxError: Simulated error message | High | Exception thrown | No exception |
c | #include <stdio.h>
int main() { int x = 5 / 0; return 0; } | 1 | 2 | OutOfBounds | Refactor | main | N/A | IndexError: Simulated error message | High | Crash | Valid output |
python | def divide(a, b): return a / b
print(divide(5, 0)) | 1 | 2 | SyntaxError | None | N/A | N/A | SyntaxError: Simulated error message | Low | Invalid output | Safe execution |
python | def divide(a, b): return a / b
print(divide(5, 0)) | 1 | 2 | TypeError | Fix | N/A | N/A | TypeError: Simulated error message | Medium | Crash | Correct result |
cpp | #include <iostream>
int main() { int x = 5 / 0; return 0; } | 1 | 2 | TypeError | Fix | main | N/A | TypeError: Simulated error message | High | Error message | Valid output |
cpp | #include <iostream>
using namespace std;
int main() { int* ptr = nullptr; cout << *ptr; return 0; } | 1 | 3 | SegmentationFault | Refactor | main | N/A | SegmentationFault: Simulated error message | High | Invalid output | Correct result |
cpp | #include <iostream>
int main() { int arr[5]; arr[10] = 42; return 0; } | 1 | 2 | InfiniteLoop | Refactor | main | N/A | InfiniteLoop: Simulated error message | High | Crash | Fixed |
cpp | #include <iostream>
int main() { int arr[5]; arr[10] = 42; return 0; } | 1 | 2 | NullPointerException | None | main | N/A | NullPointerException: Simulated error message | Medium | Crash | Fixed |
cpp | #include <iostream>
int main() { int arr[5]; arr[10] = 42; return 0; } | 1 | 1 | TypeError | Refactor | main | N/A | TypeError: Simulated error message | High | Incorrect result | Correct result |
cpp | #include <iostream>
int main() { int x = 5 / 0; return 0; } | 1 | 1 | InvalidCastException | Fix | main | N/A | InvalidCastException: Simulated error message | Low | Crash | Safe execution |
cpp | #include <iostream>
using namespace std;
int main() { int* ptr = nullptr; cout << *ptr; return 0; } | 1 | 3 | SQLInjection | None | main | N/A | SQLInjection: Simulated error message | Medium | Crash | No exception |
c | #include <stdio.h>
int main() { int* ptr = NULL; printf("%d", *ptr); return 0; } | 1 | 2 | MemoryLeak | Fix | main | N/A | MemoryLeak: Simulated error message | High | Error message | Safe execution |
c | #include <stdio.h>
int main() { int* ptr = NULL; printf("%d", *ptr); return 0; } | 1 | 2 | LogicError | None | main | N/A | LogicError: Simulated error message | High | Crash | Valid output |
c | #include <stdio.h>
int arr[5]; arr[10] = 42; return 0; | 1 | 2 | PathTraversal | None | main | N/A | PathTraversal: Simulated error message | Medium | Invalid output | Valid output |
cpp | #include <iostream>
int main() { int arr[5]; arr[10] = 42; return 0; } | 1 | 2 | MemoryLeak | Refactor | main | N/A | MemoryLeak: Simulated error message | Low | Crash | Valid output |
c | #include <stdio.h>
int main() { int* ptr = NULL; printf("%d", *ptr); return 0; } | 1 | 2 | BufferOverflow | None | main | N/A | BufferOverflow: Simulated error message | Medium | Crash | Fixed |
c | #include <stdio.h>
int main() { int* ptr = NULL; printf("%d", *ptr); return 0; } | 1 | 2 | InfiniteLoop | Fix | main | N/A | InfiniteLoop: Simulated error message | Medium | Crash | No exception |
cpp | #include <iostream>
using namespace std;
int main() { int* ptr = nullptr; cout << *ptr; return 0; } | 1 | 3 | OutOfBoundsAccess | None | main | N/A | OutOfBoundsAccess: Simulated error message | Low | Invalid output | Valid output |
cpp | #include <iostream>
int main() { int arr[5]; arr[10] = 42; return 0; } | 1 | 2 | PathTraversal | Refactor | main | N/A | PathTraversal: Simulated error message | Low | Exception thrown | Correct result |
cpp | #include <iostream>
int main() { int arr[5]; arr[10] = 42; return 0; } | 1 | 2 | MemoryLeak | None | main | N/A | MemoryLeak: Simulated error message | Medium | Incorrect result | No exception |
cpp | #include <iostream>
using namespace std;
int main() { int* ptr = nullptr; cout << *ptr; return 0; } | 1 | 3 | OutOfBoundsAccess | None | main | N/A | OutOfBoundsAccess: Simulated error message | Medium | Crash | Correct result |
python | def divide(a, b): return a / b
print(divide(5, 0)) | 1 | 2 | PathTraversal | Refactor | N/A | N/A | PathTraversal: Simulated error message | Medium | Error message | No exception |
cpp | #include <iostream>
using namespace std;
int main() { int* ptr = nullptr; cout << *ptr; return 0; } | 1 | 3 | SegmentationFault | Refactor | main | N/A | SegmentationFault: Simulated error message | Low | Exception thrown | Safe execution |
cpp | #include <iostream>
int main() { int arr[5]; arr[10] = 42; return 0; } | 1 | 2 | PathTraversal | Fix | main | N/A | PathTraversal: Simulated error message | High | Invalid output | Correct result |
c | #include <stdio.h>
int main() { int x = 5 / 0; return 0; } | 1 | 1 | BufferOverflow | Refactor | main | N/A | BufferOverflow: Simulated error message | High | Incorrect result | Valid output |
c | #include <stdio.h>
int arr[5]; arr[10] = 42; return 0; | 1 | 2 | NullPointerException | None | main | N/A | NullPointerException: Simulated error message | High | Crash | Valid output |
c | #include <stdio.h>
int main() { int x = 5 / 0; return 0; } | 1 | 2 | OutOfBoundsAccess | Refactor | main | N/A | OutOfBoundsAccess: Simulated error message | Medium | Incorrect result | Fixed |
python | def divide(a, b): return a / b
print(divide(5, 0)) | 1 | 2 | SyntaxError | Refactor | N/A | N/A | SyntaxError: Simulated error message | High | Crash | Safe execution |
c | #include <stdio.h>
int arr[5]; arr[10] = 42; return 0; | 1 | 2 | BufferOverflow | None | main | N/A | BufferOverflow: Simulated error message | Medium | Error message | No exception |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 4