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
DIFF00000004900
mentioned_in_comment
Python
accounts_781.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE invoices DROP COLUMN role;' manually, handled by migration tool
DROP_COLUMN
false
DIFF00000004901
general_code_change
JavaScript
subscriptions_8.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000004902
raw_sql_destructive
SQL
accounts_390.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE accounts;
DROP_TABLE
true
DIFF00000004903
general_code_change
JavaScript
tickets_355.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000004904
obfuscated_destructive
SQL
employees_659.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE users DROP COLUMN name;
DROP_COLUMN
true
DIFF00000004905
raw_sql_safe
SQL
payments_722.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE accounts ADD COLUMN user_role VARCHAR(255);
NONE
false
DIFF00000004906
test_suite_cleanup
SQL
test/shipments_912.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE inventory;
DROP_TABLE
false
DIFF00000004907
raw_sql_destructive
SQL
accounts_303.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE accounts RENAME COLUMN address TO state;
ALTER_RENAME
true
DIFF00000004908
orm_schema_change
JavaScript
refunds_972.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('events', 'quantity')
NONE
true
DIFF00000004909
general_code_change
Go
tickets_739.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000004910
general_code_change
TypeScript
tickets_163.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
DIFF00000004911
mentioned_in_comment
Python
customers_969.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE events DROP COLUMN created_at;' manually, handled by migration tool
DROP_COLUMN
false
DIFF00000004912
raw_sql_safe
SQL
transactions_59.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE accounts SET updated_at = %s WHERE priority = %s;
NONE
false
DIFF00000004913
test_suite_cleanup
SQL
tests/accounts_873.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE shipments DROP COLUMN name;
DROP_COLUMN
false
DIFF00000004914
test_suite_cleanup
SQL
spec/shipments_867.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE notifications RENAME COLUMN updated_at TO user_role;
ALTER_RENAME
false
DIFF00000004915
orm_schema_change
Ruby
inventory_932.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :users, :score
NONE
true
DIFF00000004916
raw_sql_destructive
SQL
invoices_721.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE notifications;
DROP_TABLE
true
DIFF00000004917
general_code_change
Go
products_400.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000004918
test_suite_cleanup
SQL
spec/users_483.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE refunds RENAME COLUMN name TO user_role;
ALTER_RENAME
false
DIFF00000004919
raw_sql_destructive
SQL
subscriptions_955.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE subscriptions DROP COLUMN phone;
DROP_COLUMN
true
DIFF00000004920
raw_sql_safe
SQL
products_181.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO events (role, metadata) VALUES (%s, %s);
NONE
false
DIFF00000004921
mentioned_in_comment
Python
logs_562.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'TRUNCATE TABLE tickets;' manually, handled by migration tool
TRUNCATE
false
DIFF00000004922
raw_sql_safe
SQL
logs_127.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM tickets WHERE order_id = 'active';
NONE
false
DIFF00000004923
orm_schema_change
JavaScript
accounts_166.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('reviews', 'is_active')
NONE
true
DIFF00000004924
general_code_change
Ruby
logs_537.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000004925
general_code_change
JavaScript
accounts_253.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000004926
general_code_change
Python
subscriptions_838.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000004927
mentioned_in_comment
Python
products_696.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: DROP TABLE accounts; -- now deprecated"""
DROP_TABLE
false
DIFF00000004928
obfuscated_destructive
SQL
invoices_125.sql
schema cleanup
@@ -1,3 +1,3 @@ +AlTer taBLE SubScRiPTIONs dRop cOLumn BALaNCE;
DROP_COLUMN
true
DIFF00000004929
raw_sql_safe
SQL
sessions_196.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_tickets_created_at ON tickets (created_at);
NONE
false
DIFF00000004930
test_suite_cleanup
SQL
mysql-test/suite/payments_837.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE tickets RENAME COLUMN priority TO contact_email;
ALTER_RENAME
false
DIFF00000004931
raw_sql_destructive
SQL
events_377.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM invoices;
DELETE_UNQUALIFIED
true
DIFF00000004932
obfuscated_destructive
SQL
orders_894.sql
schema cleanup
@@ -1,3 +1,3 @@ +update comments set phone = concat(phone, name);
UPDATE_CONCAT
true
DIFF00000004933
test_suite_cleanup
SQL
tests/payments_161.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE inventory;
TRUNCATE
false
DIFF00000004934
mentioned_in_comment
Python
invoices_47.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DELETE FROM transactions;")
DELETE_UNQUALIFIED
false
DIFF00000004935
raw_sql_destructive
SQL
employees_815.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE events;
DROP_TABLE
true
DIFF00000004936
mentioned_in_comment
Python
shipments_213.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: UPDATE employees SET email = CONCAT(email, updated_at);")
UPDATE_CONCAT
false
DIFF00000004937
raw_sql_safe
SQL
logs_70.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM shipments WHERE quantity = 'active';
NONE
false
DIFF00000004938
test_suite_cleanup
SQL
spec/employees_323.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE logs SET score = CONCAT(score, user_id);
UPDATE_CONCAT
false
DIFF00000004939
raw_sql_safe
SQL
comments_879.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO users (description, updated_at) VALUES (%s, %s);
NONE
false
DIFF00000004940
obfuscated_destructive
SQL
logs_37.sql
schema cleanup
@@ -1,3 +1,3 @@ +delete from inventory;
DELETE_UNQUALIFIED
true
DIFF00000004941
raw_sql_destructive
SQL
reviews_63.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE refunds RENAME COLUMN priority TO contact_email;
ALTER_RENAME
true
DIFF00000004942
orm_schema_change
Ruby
inventory_284.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :tickets, :user_id
NONE
true
DIFF00000004943
raw_sql_safe
SQL
notifications_570.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE products SET role = %s WHERE updated_at = %s;
NONE
false
DIFF00000004944
orm_schema_change
Python
transactions_64.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='customers', name='amount')
NONE
true
DIFF00000004945
general_code_change
Java
invoices_877.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000004946
general_code_change
Ruby
orders_427.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000004947
general_code_change
Ruby
customers_632.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000004948
orm_schema_change
TypeScript
employees_289.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Comments { // removed field: order_id }
NONE
true
DIFF00000004949
general_code_change
Go
products_429.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000004950
raw_sql_destructive
SQL
customers_571.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE sessions;
DROP_TABLE
true
DIFF00000004951
orm_schema_change
Python
inventory_101.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='orders', name='role')
NONE
true
DIFF00000004952
general_code_change
Ruby
payments_708.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000004953
orm_schema_change
JavaScript
users_888.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('payments', 'price')
NONE
true
DIFF00000004954
raw_sql_destructive
SQL
orders_951.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM logs;
DELETE_UNQUALIFIED
true
DIFF00000004955
general_code_change
Python
inventory_782.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000004956
orm_schema_change
JavaScript
payments_745.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('shipments', table => table.dropColumn('email'))
NONE
true
DIFF00000004957
obfuscated_destructive
SQL
products_850.sql
schema cleanup
@@ -1,3 +1,3 @@ +delete from events;
DELETE_UNQUALIFIED
true
DIFF00000004958
raw_sql_destructive
SQL
refunds_712.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE users DROP COLUMN priority;
DROP_COLUMN
true
DIFF00000004959
test_suite_cleanup
SQL
tests/notifications_148.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE products SET phone = CONCAT(phone, address);
UPDATE_CONCAT
false
DIFF00000004960
general_code_change
Python
shipments_67.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000004961
orm_schema_change
JavaScript
shipments_702.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('tickets', 'amount')
NONE
true
DIFF00000004962
mentioned_in_comment
Python
accounts_754.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE reviews RENAME COLUMN metadata TO user_role;' manually, handled by migration tool
ALTER_RENAME
false
DIFF00000004963
general_code_change
Python
logs_894.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000004964
raw_sql_destructive
SQL
payments_267.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE employees;
DROP_TABLE
true
DIFF00000004965
raw_sql_safe
SQL
refunds_101.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE invoices SET amount = %s WHERE updated_at = %s;
NONE
false
DIFF00000004966
mentioned_in_comment
Python
sessions_282.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: UPDATE employees SET score = CONCAT(score, role); -- now deprecated"""
UPDATE_CONCAT
false
DIFF00000004967
mentioned_in_comment
Python
refunds_544.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: DROP TABLE notifications; -- now deprecated"""
DROP_TABLE
false
DIFF00000004968
mentioned_in_comment
Python
products_817.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: TRUNCATE TABLE customers; -- now deprecated"""
TRUNCATE
false
DIFF00000004969
mentioned_in_comment
Python
payments_522.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DROP TABLE accounts;' manually, handled by migration tool
DROP_TABLE
false
DIFF00000004970
test_suite_cleanup
SQL
spec/invoices_634.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM inventory;
DELETE_UNQUALIFIED
false
DIFF00000004971
test_suite_cleanup
SQL
mysql-test/suite/invoices_438.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE sessions;
DROP_TABLE
false
DIFF00000004972
test_suite_cleanup
SQL
test/subscriptions_152.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE payments;
TRUNCATE
false
DIFF00000004973
orm_schema_change
JavaScript
comments_829.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('refunds', 'order_id')
NONE
true
DIFF00000004974
mentioned_in_comment
Python
reviews_665.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DELETE FROM products;' manually, handled by migration tool
DELETE_UNQUALIFIED
false
DIFF00000004975
raw_sql_destructive
SQL
sessions_680.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE invoices;
TRUNCATE
true
DIFF00000004976
obfuscated_destructive
SQL
logs_997.sql
schema cleanup
@@ -1,3 +1,3 @@ +DELETE FROM payments;
DELETE_UNQUALIFIED
true
DIFF00000004977
general_code_change
Python
logs_829.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000004978
test_suite_cleanup
SQL
mysql-test/suite/orders_566.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE transactions;
DROP_TABLE
false
DIFF00000004979
mentioned_in_comment
Python
products_202.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE tickets DROP COLUMN score; -- now deprecated"""
DROP_COLUMN
false
DIFF00000004980
raw_sql_destructive
SQL
accounts_274.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE shipments SET role = CONCAT(role, priority);
UPDATE_CONCAT
true
DIFF00000004981
obfuscated_destructive
SQL
accounts_305.sql
schema cleanup
@@ -1,3 +1,3 @@ +DELETE FROM events;
DELETE_UNQUALIFIED
true
DIFF00000004982
general_code_change
JavaScript
events_940.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000004983
raw_sql_safe
SQL
employees_582.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE tickets SET email = %s WHERE role = %s;
NONE
false
DIFF00000004984
raw_sql_destructive
SQL
payments_366.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE refunds SET description = CONCAT(description, status);
UPDATE_CONCAT
true
DIFF00000004985
raw_sql_safe
SQL
customers_304.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE sessions SET address = %s WHERE updated_at = %s;
NONE
false
DIFF00000004986
general_code_change
Python
customers_135.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000004987
raw_sql_safe
SQL
subscriptions_121.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO reviews (name, quantity) VALUES (%s, %s);
NONE
false
DIFF00000004988
general_code_change
Java
tickets_131.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000004989
raw_sql_safe
SQL
inventory_531.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE logs SET amount = %s WHERE description = %s;
NONE
false
DIFF00000004990
general_code_change
Python
reviews_351.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000004991
mentioned_in_comment
Python
users_121.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE refunds DROP COLUMN email; -- now deprecated"""
DROP_COLUMN
false
DIFF00000004992
general_code_change
Python
transactions_829.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000004993
general_code_change
Python
reviews_321.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000004994
obfuscated_destructive
SQL
products_519.sql
schema cleanup
@@ -1,3 +1,3 @@ +TRUNCATE TABLE payments;
TRUNCATE
true
DIFF00000004995
obfuscated_destructive
SQL
accounts_391.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTer tABLe commENTs REnamE coLuMn CReaTED_At To COnTACt_EMaIl;
ALTER_RENAME
true
DIFF00000004996
general_code_change
JavaScript
orders_293.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000004997
orm_schema_change
JavaScript
transactions_396.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('events', table => table.dropColumn('score'))
NONE
true
DIFF00000004998
test_suite_cleanup
SQL
mysql-test/suite/invoices_635.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE refunds DROP COLUMN metadata;
DROP_COLUMN
false
DIFF00000004999
obfuscated_destructive
SQL
events_339.sql
schema cleanup
@@ -1,3 +1,3 @@ +Update EmpLOYeES Set scORE = CoNcat(ScoRe, MetadatA);
UPDATE_CONCAT
true