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
DIFF00000002700
obfuscated_destructive
SQL
shipments_445.sql
schema cleanup
@@ -1,3 +1,3 @@ +tRUNcAte taBLE oRderS;
TRUNCATE
true
DIFF00000002701
obfuscated_destructive
SQL
customers_568.sql
schema cleanup
@@ -1,3 +1,3 @@ +UPDATE sessions SET balance = CONCAT(balance, status);
UPDATE_CONCAT
true
DIFF00000002702
orm_schema_change
Python
comments_85.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='products', name='email')
NONE
true
DIFF00000002703
raw_sql_safe
SQL
customers_912.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO orders (email, balance) VALUES (%s, %s);
NONE
false
DIFF00000002704
raw_sql_destructive
SQL
transactions_933.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE subscriptions DROP COLUMN balance;
DROP_COLUMN
true
DIFF00000002705
raw_sql_destructive
SQL
orders_612.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE shipments;
TRUNCATE
true
DIFF00000002706
mentioned_in_comment
Python
subscriptions_182.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: TRUNCATE TABLE invoices;")
TRUNCATE
false
DIFF00000002707
raw_sql_destructive
SQL
tickets_142.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE shipments RENAME COLUMN balance TO state;
ALTER_RENAME
true
DIFF00000002708
obfuscated_destructive
SQL
subscriptions_708.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE shipments RENAME COLUMN status TO full_name;
ALTER_RENAME
true
DIFF00000002709
orm_schema_change
JavaScript
logs_488.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('logs', 'updated_at')
NONE
true
DIFF00000002710
raw_sql_destructive
SQL
users_354.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE sessions;
DROP_TABLE
true
DIFF00000002711
orm_schema_change
JavaScript
logs_397.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('products', 'amount')
NONE
true
DIFF00000002712
raw_sql_safe
SQL
shipments_563.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE payments ADD COLUMN user_role VARCHAR(255);
NONE
false
DIFF00000002713
orm_schema_change
JavaScript
customers_244.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('orders', table => table.dropColumn('is_active'))
NONE
true
DIFF00000002714
raw_sql_destructive
SQL
reviews_76.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE invoices RENAME COLUMN email TO contact_email;
ALTER_RENAME
true
DIFF00000002715
orm_schema_change
Ruby
reviews_329.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :logs, :score
NONE
true
DIFF00000002716
raw_sql_safe
SQL
inventory_315.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO inventory (updated_at, category) VALUES (%s, %s);
NONE
false
DIFF00000002717
raw_sql_destructive
SQL
refunds_22.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE inventory DROP COLUMN amount;
DROP_COLUMN
true
DIFF00000002718
raw_sql_destructive
SQL
shipments_936.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE notifications SET phone = CONCAT(phone, name);
UPDATE_CONCAT
true
DIFF00000002719
general_code_change
Go
users_601.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000002720
orm_schema_change
JavaScript
transactions_749.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('shipments', 'user_id')
NONE
true
DIFF00000002721
obfuscated_destructive
SQL
transactions_356.sql
schema cleanup
@@ -1,3 +1,3 @@ +alter table products drop column quantity;
DROP_COLUMN
true
DIFF00000002722
obfuscated_destructive
SQL
orders_121.sql
schema cleanup
@@ -1,3 +1,3 @@ +delete from comments;
DELETE_UNQUALIFIED
true
DIFF00000002723
raw_sql_destructive
SQL
users_858.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE transactions RENAME COLUMN metadata TO user_role;
ALTER_RENAME
true
DIFF00000002724
obfuscated_destructive
SQL
customers_225.sql
schema cleanup
@@ -1,3 +1,3 @@ +delETe frOM pAymeNtS;
DELETE_UNQUALIFIED
true
DIFF00000002725
raw_sql_destructive
SQL
events_190.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE refunds DROP COLUMN balance;
DROP_COLUMN
true
DIFF00000002726
raw_sql_destructive
SQL
orders_431.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE events;
DROP_TABLE
true
DIFF00000002727
general_code_change
JavaScript
reviews_182.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
DIFF00000002728
test_suite_cleanup
SQL
spec/employees_624.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE subscriptions RENAME COLUMN priority TO user_role;
ALTER_RENAME
false
DIFF00000002729
general_code_change
JavaScript
invoices_164.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000002730
general_code_change
Ruby
events_339.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000002731
mentioned_in_comment
Python
payments_993.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: UPDATE inventory SET metadata = CONCAT(metadata, email);")
UPDATE_CONCAT
false
DIFF00000002732
mentioned_in_comment
Python
events_277.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'UPDATE logs SET status = CONCAT(status, score);' manually, handled by migration tool
UPDATE_CONCAT
false
DIFF00000002733
general_code_change
Python
comments_635.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000002734
obfuscated_destructive
SQL
invoices_173.sql
schema cleanup
@@ -1,3 +1,3 @@ +AlTeR TABLE OrDeRS DRoP CoLuMn Created_at;
DROP_COLUMN
true
DIFF00000002735
orm_schema_change
JavaScript
comments_181.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('shipments', 'address')
NONE
true
DIFF00000002736
obfuscated_destructive
SQL
transactions_545.sql
schema cleanup
@@ -1,3 +1,3 @@ +DROP TABLE notifications;
DROP_TABLE
true
DIFF00000002737
raw_sql_destructive
SQL
products_83.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE payments RENAME COLUMN phone TO amount_cents;
ALTER_RENAME
true
DIFF00000002738
general_code_change
Java
payments_263.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000002739
orm_schema_change
TypeScript
tickets_434.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Shipments { // removed field: quantity }
NONE
true
DIFF00000002740
general_code_change
TypeScript
shipments_410.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
DIFF00000002741
raw_sql_destructive
SQL
logs_395.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE employees;
DROP_TABLE
true
DIFF00000002742
obfuscated_destructive
SQL
logs_136.sql
schema cleanup
@@ -1,3 +1,3 @@ +TRUNCATE TABLE logs;
TRUNCATE
true
DIFF00000002743
mentioned_in_comment
Python
notifications_875.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE tickets DROP COLUMN updated_at; -- now deprecated"""
DROP_COLUMN
false
DIFF00000002744
orm_schema_change
JavaScript
logs_51.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('invoices', 'created_at')
NONE
true
DIFF00000002745
obfuscated_destructive
SQL
shipments_122.sql
schema cleanup
@@ -1,3 +1,3 @@ +truncate table notifications;
TRUNCATE
true
DIFF00000002746
general_code_change
JavaScript
reviews_714.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
DIFF00000002747
obfuscated_destructive
SQL
tickets_452.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE shipments DROP COLUMN name;
DROP_COLUMN
true
DIFF00000002748
mentioned_in_comment
Python
employees_465.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE shipments DROP COLUMN created_at; -- now deprecated"""
DROP_COLUMN
false
DIFF00000002749
obfuscated_destructive
SQL
employees_748.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE subscriptions RENAME COLUMN name TO user_role;
ALTER_RENAME
true
DIFF00000002750
orm_schema_change
TypeScript
accounts_549.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Employees { // removed field: amount }
NONE
true
DIFF00000002751
mentioned_in_comment
Python
users_941.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE inventory RENAME COLUMN email TO contact_email;")
ALTER_RENAME
false
DIFF00000002752
general_code_change
Go
inventory_593.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000002753
orm_schema_change
Ruby
inventory_322.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :shipments, :name
NONE
true
DIFF00000002754
general_code_change
TypeScript
inventory_588.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
DIFF00000002755
mentioned_in_comment
Python
logs_398.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'TRUNCATE TABLE reviews;' manually, handled by migration tool
TRUNCATE
false
DIFF00000002756
obfuscated_destructive
SQL
accounts_394.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE payments RENAME COLUMN priority TO user_role;
ALTER_RENAME
true
DIFF00000002757
raw_sql_safe
SQL
refunds_472.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE tickets ADD COLUMN contact_email VARCHAR(255);
NONE
false
DIFF00000002758
obfuscated_destructive
SQL
customers_982.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE payments RENAME COLUMN amount TO user_role;
ALTER_RENAME
true
DIFF00000002759
mentioned_in_comment
Python
refunds_825.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE comments RENAME COLUMN created_at TO full_name;' manually, handled by migration tool
ALTER_RENAME
false
DIFF00000002760
orm_schema_change
Python
shipments_598.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='customers', name='status')
NONE
true
DIFF00000002761
orm_schema_change
JavaScript
customers_820.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('payments', table => table.dropColumn('email'))
NONE
true
DIFF00000002762
orm_schema_change
Ruby
reviews_968.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :shipments, :phone
NONE
true
DIFF00000002763
general_code_change
Java
events_66.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000002764
raw_sql_destructive
SQL
notifications_847.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM logs;
DELETE_UNQUALIFIED
true
DIFF00000002765
orm_schema_change
JavaScript
refunds_70.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('accounts', 'phone')
NONE
true
DIFF00000002766
general_code_change
Python
notifications_516.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000002767
orm_schema_change
TypeScript
orders_801.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Reviews { // removed field: created_at }
NONE
true
DIFF00000002768
raw_sql_destructive
SQL
logs_3.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE refunds SET amount = CONCAT(amount, phone);
UPDATE_CONCAT
true
DIFF00000002769
orm_schema_change
Ruby
orders_465.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :logs, :status
NONE
true
DIFF00000002770
raw_sql_destructive
SQL
refunds_395.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE users;
TRUNCATE
true
DIFF00000002771
raw_sql_destructive
SQL
products_968.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM subscriptions;
DELETE_UNQUALIFIED
true
DIFF00000002772
mentioned_in_comment
Python
invoices_720.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE sessions RENAME COLUMN quantity TO user_role;")
ALTER_RENAME
false
DIFF00000002773
test_suite_cleanup
SQL
mysql-test/suite/shipments_972.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE shipments;
TRUNCATE
false
DIFF00000002774
raw_sql_safe
SQL
refunds_798.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM employees WHERE score = 'active';
NONE
false
DIFF00000002775
raw_sql_destructive
SQL
accounts_236.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE products;
DROP_TABLE
true
DIFF00000002776
test_suite_cleanup
SQL
mysql-test/suite/invoices_128.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE accounts SET created_at = CONCAT(created_at, created_at);
UPDATE_CONCAT
false
DIFF00000002777
mentioned_in_comment
Python
customers_561.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE inventory RENAME COLUMN price TO amount_cents; -- now deprecated"""
ALTER_RENAME
false
DIFF00000002778
general_code_change
Go
refunds_585.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000002779
raw_sql_destructive
SQL
employees_910.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE customers;
TRUNCATE
true
DIFF00000002780
orm_schema_change
JavaScript
invoices_467.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('notifications', table => table.dropColumn('description'))
NONE
true
DIFF00000002781
raw_sql_safe
SQL
shipments_288.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE orders SET updated_at = %s WHERE email = %s;
NONE
false
DIFF00000002782
orm_schema_change
TypeScript
reviews_456.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Transactions { // removed field: name }
NONE
true
DIFF00000002783
raw_sql_safe
SQL
customers_575.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE customers SET updated_at = %s WHERE email = %s;
NONE
false
DIFF00000002784
general_code_change
Go
transactions_964.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000002785
test_suite_cleanup
SQL
test/reviews_811.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM orders;
DELETE_UNQUALIFIED
false
DIFF00000002786
mentioned_in_comment
Python
sessions_812.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: UPDATE tickets SET phone = CONCAT(phone, balance); -- now deprecated"""
UPDATE_CONCAT
false
DIFF00000002787
mentioned_in_comment
Python
notifications_163.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE employees RENAME COLUMN priority TO full_name;")
ALTER_RENAME
false
DIFF00000002788
general_code_change
TypeScript
reviews_448.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
DIFF00000002789
orm_schema_change
Python
shipments_471.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='events', name='is_active')
NONE
true
DIFF00000002790
raw_sql_destructive
SQL
sessions_294.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE accounts RENAME COLUMN score TO amount_cents;
ALTER_RENAME
true
DIFF00000002791
general_code_change
Go
subscriptions_723.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000002792
obfuscated_destructive
SQL
subscriptions_682.sql
schema cleanup
@@ -1,3 +1,3 @@ +DrOp Table trANsAcTiOns;
DROP_TABLE
true
DIFF00000002793
mentioned_in_comment
Python
sessions_502.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: DROP TABLE refunds; -- now deprecated"""
DROP_TABLE
false
DIFF00000002794
orm_schema_change
JavaScript
refunds_700.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('subscriptions', table => table.dropColumn('name'))
NONE
true
DIFF00000002795
raw_sql_safe
SQL
events_727.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO invoices (user_id, order_id) VALUES (%s, %s);
NONE
false
DIFF00000002796
raw_sql_safe
SQL
subscriptions_4.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM customers WHERE order_id = 'active';
NONE
false
DIFF00000002797
general_code_change
Python
users_86.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000002798
raw_sql_destructive
SQL
subscriptions_951.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE comments DROP COLUMN role;
DROP_COLUMN
true
DIFF00000002799
obfuscated_destructive
SQL
shipments_674.sql
schema cleanup
@@ -1,3 +1,3 @@ +UpdATe reVIEwS SET MEtadaTa = COncAT(meTaData, pRiorITY);
UPDATE_CONCAT
true