diff_id
stringlengths
15
35
change_category
stringclasses
7 values
language
stringclasses
7 values
file_path
stringlengths
9
38
commit_message
stringclasses
11 values
diff_text
stringlengths
33
146
sql_pattern
stringclasses
7 values
is_destructive_ground_truth
bool
2 classes
DIFF00099998000
raw_sql_safe
SQL
inventory_377.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM logs WHERE phone = 'active';
NONE
false
DIFF00099998001
general_code_change
Java
notifications_584.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099998002
raw_sql_destructive
SQL
products_140.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE subscriptions SET phone = CONCAT(phone, updated_at);
UPDATE_CONCAT
true
DIFF00099998003
general_code_change
Go
orders_435.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099998004
general_code_change
Java
tickets_995.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099998005
general_code_change
Go
employees_115.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099998006
test_suite_cleanup
SQL
mysql-test/suite/invoices_121.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE orders DROP COLUMN address;
DROP_COLUMN
false
DIFF00099998007
mentioned_in_comment
Python
events_430.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DROP TABLE payments;' manually, handled by migration tool
DROP_TABLE
false
DIFF00099998008
general_code_change
Java
users_739.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099998009
raw_sql_destructive
SQL
tickets_322.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM orders;
DELETE_UNQUALIFIED
true
DIFF00099998010
general_code_change
Go
notifications_106.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099998011
raw_sql_destructive
SQL
sessions_214.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE comments RENAME COLUMN is_active TO full_name;
ALTER_RENAME
true
DIFF00099998012
general_code_change
JavaScript
shipments_894.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099998013
general_code_change
Ruby
users_123.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099998014
general_code_change
JavaScript
events_118.js
refactor / feature work
@@ -1,3 +1,3 @@ +const debounce = (fn, ms) => { let t; return (...a) => { clearTimeout(t); t = setTimeout(() => fn(...a), ms); }; };
NONE
false
DIFF00099998015
mentioned_in_comment
Python
products_422.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: DROP TABLE comments; -- now deprecated"""
DROP_TABLE
false
DIFF00099998016
raw_sql_safe
SQL
reviews_681.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM inventory WHERE address = 'active';
NONE
false
DIFF00099998017
general_code_change
JavaScript
products_419.js
refactor / feature work
@@ -1,3 +1,3 @@ +const debounce = (fn, ms) => { let t; return (...a) => { clearTimeout(t); t = setTimeout(() => fn(...a), ms); }; };
NONE
false
DIFF00099998018
raw_sql_destructive
SQL
logs_82.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE refunds DROP COLUMN created_at;
DROP_COLUMN
true
DIFF00099998019
general_code_change
JavaScript
tickets_416.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099998020
orm_schema_change
JavaScript
logs_210.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('comments', table => table.dropColumn('email'))
NONE
true
DIFF00099998021
orm_schema_change
TypeScript
payments_686.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Comments { // removed field: description }
NONE
true
DIFF00099998022
raw_sql_safe
SQL
logs_17.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_logs_phone ON logs (phone);
NONE
false
DIFF00099998023
general_code_change
Python
inventory_199.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099998024
raw_sql_destructive
SQL
notifications_856.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM comments;
DELETE_UNQUALIFIED
true
DIFF00099998025
general_code_change
TypeScript
comments_879.ts
refactor / feature work
@@ -1,3 +1,3 @@ +export function toTitleCase(s: string): string { return s.replace(/\w\S*/g, t => t[0].toUpperCase() + t.slice(1)); }
NONE
false
DIFF00099998026
test_suite_cleanup
SQL
mysql-test/suite/sessions_823.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM shipments;
DELETE_UNQUALIFIED
false
DIFF00099998027
raw_sql_destructive
SQL
refunds_805.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE events;
TRUNCATE
true
DIFF00099998028
raw_sql_safe
SQL
shipments_344.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_orders_quantity ON orders (amount);
NONE
false
DIFF00099998029
mentioned_in_comment
Python
orders_809.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE transactions DROP COLUMN order_id; -- now deprecated"""
DROP_COLUMN
false
DIFF00099998030
test_suite_cleanup
SQL
mysql-test/suite/shipments_959.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE transactions;
DROP_TABLE
false
DIFF00099998031
raw_sql_safe
SQL
refunds_359.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM shipments WHERE updated_at = 'active';
NONE
false
DIFF00099998032
orm_schema_change
JavaScript
reviews_452.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('transactions', 'category')
NONE
true
DIFF00099998033
general_code_change
Python
transactions_39.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099998034
raw_sql_destructive
SQL
payments_908.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE shipments;
TRUNCATE
true
DIFF00099998035
mentioned_in_comment
Python
comments_367.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: UPDATE users SET name = CONCAT(name, email);")
UPDATE_CONCAT
false
DIFF00099998036
general_code_change
Python
logs_321.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099998037
general_code_change
Python
shipments_444.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099998038
orm_schema_change
TypeScript
products_564.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Sessions { // removed field: name }
NONE
true
DIFF00099998039
general_code_change
Go
accounts_255.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099998040
obfuscated_destructive
SQL
tickets_963.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE customers DROP COLUMN price;
DROP_COLUMN
true
DIFF00099998041
raw_sql_destructive
SQL
sessions_916.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE inventory;
TRUNCATE
true
DIFF00099998042
obfuscated_destructive
SQL
transactions_740.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE reviews RENAME COLUMN metadata TO amount_cents;
ALTER_RENAME
true
DIFF00099998043
general_code_change
Java
reviews_986.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099998044
general_code_change
Python
users_327.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099998045
general_code_change
Python
events_617.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099998046
general_code_change
Python
customers_161.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099998047
test_suite_cleanup
SQL
tests/tickets_940.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE subscriptions RENAME COLUMN phone TO user_role;
ALTER_RENAME
false
DIFF00099998048
raw_sql_destructive
SQL
orders_257.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM accounts;
DELETE_UNQUALIFIED
true
DIFF00099998049
raw_sql_destructive
SQL
sessions_806.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE logs;
TRUNCATE
true
DIFF00099998050
mentioned_in_comment
Python
shipments_288.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: UPDATE employees SET quantity = CONCAT(quantity, address);")
UPDATE_CONCAT
false
DIFF00099998051
mentioned_in_comment
Python
orders_562.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: UPDATE subscriptions SET description = CONCAT(description, role);")
UPDATE_CONCAT
false
DIFF00099998052
test_suite_cleanup
SQL
mysql-test/suite/refunds_792.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE products RENAME COLUMN address TO state;
ALTER_RENAME
false
DIFF00099998053
mentioned_in_comment
Python
tickets_953.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DROP TABLE comments;")
DROP_TABLE
false
DIFF00099998054
raw_sql_safe
SQL
reviews_817.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE comments SET address = %s WHERE category = %s;
NONE
false
DIFF00099998055
mentioned_in_comment
Python
shipments_994.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE sessions DROP COLUMN name; -- now deprecated"""
DROP_COLUMN
false
DIFF00099998056
orm_schema_change
JavaScript
inventory_567.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('reviews', 'user_id')
NONE
true
DIFF00099998057
obfuscated_destructive
SQL
notifications_416.sql
schema cleanup
@@ -1,3 +1,3 @@ +alter TAbLE LOgs REnAME ColumN AddrEsS to STaTe;
ALTER_RENAME
true
DIFF00099998058
orm_schema_change
TypeScript
payments_317.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Invoices { // removed field: description }
NONE
true
DIFF00099998059
raw_sql_safe
SQL
employees_607.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM refunds WHERE score = 'active';
NONE
false
DIFF00099998060
obfuscated_destructive
SQL
reviews_809.sql
schema cleanup
@@ -1,3 +1,3 @@ +DeLeTe from PaymentS;
DELETE_UNQUALIFIED
true
DIFF00099998061
raw_sql_safe
SQL
logs_294.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_payments_score ON payments (description);
NONE
false
DIFF00099998062
test_suite_cleanup
SQL
mysql-test/suite/sessions_963.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE payments SET order_id = CONCAT(order_id, balance);
UPDATE_CONCAT
false
DIFF00099998063
general_code_change
JavaScript
transactions_578.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099998064
test_suite_cleanup
SQL
test/notifications_936.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE accounts;
DROP_TABLE
false
DIFF00099998065
raw_sql_safe
SQL
sessions_828.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE comments ADD COLUMN state VARCHAR(255);
NONE
false
DIFF00099998066
mentioned_in_comment
Python
sessions_9.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DELETE FROM inventory;' manually, handled by migration tool
DELETE_UNQUALIFIED
false
DIFF00099998067
general_code_change
Python
logs_369.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099998068
obfuscated_destructive
SQL
transactions_407.sql
schema cleanup
@@ -1,3 +1,3 @@ +UPDATE sessions SET quantity = CONCAT(quantity, price);
UPDATE_CONCAT
true
DIFF00099998069
mentioned_in_comment
Python
tickets_221.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE inventory RENAME COLUMN is_active TO full_name;")
ALTER_RENAME
false
DIFF00099998070
raw_sql_destructive
SQL
orders_945.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE products;
DROP_TABLE
true
DIFF00099998071
orm_schema_change
JavaScript
products_177.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('inventory', 'role')
NONE
true
DIFF00099998072
general_code_change
JavaScript
invoices_394.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099998073
general_code_change
TypeScript
orders_352.ts
refactor / feature work
@@ -1,3 +1,3 @@ +export function toTitleCase(s: string): string { return s.replace(/\w\S*/g, t => t[0].toUpperCase() + t.slice(1)); }
NONE
false
DIFF00099998074
orm_schema_change
Python
products_892.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='comments', name='user_id')
NONE
true
DIFF00099998075
obfuscated_destructive
SQL
events_630.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE reviews DROP COLUMN score;
DROP_COLUMN
true
DIFF00099998076
general_code_change
Python
comments_791.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099998077
obfuscated_destructive
SQL
notifications_141.sql
schema cleanup
@@ -1,3 +1,3 @@ +TRUNCATE TABLE orders;
TRUNCATE
true
DIFF00099998078
orm_schema_change
Python
subscriptions_344.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='tickets', name='description')
NONE
true
DIFF00099998079
raw_sql_destructive
SQL
payments_798.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE sessions;
TRUNCATE
true
DIFF00099998080
orm_schema_change
TypeScript
accounts_940.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Employees { // removed field: address }
NONE
true
DIFF00099998081
raw_sql_destructive
SQL
notifications_411.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE sessions DROP COLUMN role;
DROP_COLUMN
true
DIFF00099998082
raw_sql_safe
SQL
users_576.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM orders WHERE price = 'active';
NONE
false
DIFF00099998083
orm_schema_change
JavaScript
products_912.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('reviews', table => table.dropColumn('score'))
NONE
true
DIFF00099998084
general_code_change
JavaScript
users_720.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099998085
test_suite_cleanup
SQL
mysql-test/suite/tickets_777.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE orders;
DROP_TABLE
false
DIFF00099998086
mentioned_in_comment
Python
comments_552.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: TRUNCATE TABLE logs;")
TRUNCATE
false
DIFF00099998087
orm_schema_change
TypeScript
products_501.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Transactions { // removed field: email }
NONE
true
DIFF00099998088
mentioned_in_comment
Python
refunds_689.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'UPDATE accounts SET quantity = CONCAT(quantity, balance);' manually, handled by migration tool
UPDATE_CONCAT
false
DIFF00099998089
test_suite_cleanup
SQL
mysql-test/suite/reviews_722.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE subscriptions SET description = CONCAT(description, balance);
UPDATE_CONCAT
false
DIFF00099998090
orm_schema_change
JavaScript
payments_893.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('inventory', table => table.dropColumn('phone'))
NONE
true
DIFF00099998091
general_code_change
Python
notifications_995.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099998092
test_suite_cleanup
SQL
mysql-test/suite/notifications_348.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE accounts;
TRUNCATE
false
DIFF00099998093
general_code_change
Java
orders_494.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099998094
general_code_change
Java
notifications_668.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099998095
test_suite_cleanup
SQL
spec/reviews_63.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM events;
DELETE_UNQUALIFIED
false
DIFF00099998096
obfuscated_destructive
SQL
orders_547.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE employees DROP COLUMN balance;
DROP_COLUMN
true
DIFF00099998097
raw_sql_safe
SQL
inventory_916.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE inventory ADD COLUMN full_name VARCHAR(255);
NONE
false
DIFF00099998098
general_code_change
TypeScript
inventory_439.ts
refactor / feature work
@@ -1,3 +1,3 @@ +export function toTitleCase(s: string): string { return s.replace(/\w\S*/g, t => t[0].toUpperCase() + t.slice(1)); }
NONE
false
DIFF00099998099
general_code_change
Python
sessions_455.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false