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
DIFF00099996400
raw_sql_destructive
SQL
notifications_655.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE inventory DROP COLUMN is_active;
DROP_COLUMN
true
DIFF00099996401
orm_schema_change
Python
sessions_116.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='inventory', name='balance')
NONE
true
DIFF00099996402
raw_sql_destructive
SQL
orders_709.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE transactions DROP COLUMN address;
DROP_COLUMN
true
DIFF00099996403
mentioned_in_comment
Python
transactions_39.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE users DROP COLUMN order_id;' manually, handled by migration tool
DROP_COLUMN
false
DIFF00099996404
test_suite_cleanup
SQL
test/users_163.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE customers RENAME COLUMN priority TO full_name;
ALTER_RENAME
false
DIFF00099996405
obfuscated_destructive
SQL
refunds_409.sql
schema cleanup
@@ -1,3 +1,3 @@ +alter table invoices rename column updated_at to contact_email;
ALTER_RENAME
true
DIFF00099996406
raw_sql_destructive
SQL
sessions_558.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE logs;
DROP_TABLE
true
DIFF00099996407
general_code_change
Go
accounts_602.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099996408
test_suite_cleanup
SQL
spec/events_382.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE orders RENAME COLUMN price TO state;
ALTER_RENAME
false
DIFF00099996409
general_code_change
JavaScript
shipments_370.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
DIFF00099996410
test_suite_cleanup
SQL
spec/customers_350.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM notifications;
DELETE_UNQUALIFIED
false
DIFF00099996411
raw_sql_safe
SQL
transactions_979.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE subscriptions ADD COLUMN state VARCHAR(255);
NONE
false
DIFF00099996412
raw_sql_safe
SQL
events_461.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE invoices ADD COLUMN full_name VARCHAR(255);
NONE
false
DIFF00099996413
raw_sql_safe
SQL
sessions_255.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_logs_created_at ON logs (status);
NONE
false
DIFF00099996414
test_suite_cleanup
SQL
spec/events_92.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE subscriptions;
DROP_TABLE
false
DIFF00099996415
general_code_change
JavaScript
logs_181.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099996416
mentioned_in_comment
Python
payments_622.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE refunds DROP COLUMN is_active;' manually, handled by migration tool
DROP_COLUMN
false
DIFF00099996417
raw_sql_safe
SQL
sessions_137.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE reviews ADD COLUMN contact_email VARCHAR(255);
NONE
false
DIFF00099996418
obfuscated_destructive
SQL
orders_377.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE users RENAME COLUMN role TO state;
ALTER_RENAME
true
DIFF00099996419
obfuscated_destructive
SQL
invoices_608.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE comments RENAME COLUMN category TO user_role;
ALTER_RENAME
true
DIFF00099996420
raw_sql_destructive
SQL
invoices_821.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE shipments RENAME COLUMN email TO state;
ALTER_RENAME
true
DIFF00099996421
raw_sql_safe
SQL
shipments_669.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM subscriptions WHERE address = 'active';
NONE
false
DIFF00099996422
test_suite_cleanup
SQL
spec/logs_462.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE refunds RENAME COLUMN metadata TO contact_email;
ALTER_RENAME
false
DIFF00099996423
general_code_change
Java
notifications_769.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099996424
test_suite_cleanup
SQL
spec/products_464.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE tickets;
DROP_TABLE
false
DIFF00099996425
mentioned_in_comment
Python
tickets_443.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: UPDATE accounts SET created_at = CONCAT(created_at, phone);")
UPDATE_CONCAT
false
DIFF00099996426
orm_schema_change
TypeScript
subscriptions_175.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Tickets { // removed field: order_id }
NONE
true
DIFF00099996427
raw_sql_destructive
SQL
reviews_285.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE customers;
DROP_TABLE
true
DIFF00099996428
raw_sql_safe
SQL
refunds_826.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM customers WHERE status = 'active';
NONE
false
DIFF00099996429
raw_sql_safe
SQL
accounts_726.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM users WHERE is_active = 'active';
NONE
false
DIFF00099996430
general_code_change
Java
transactions_943.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099996431
orm_schema_change
JavaScript
invoices_974.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('customers', table => table.dropColumn('category'))
NONE
true
DIFF00099996432
general_code_change
Ruby
refunds_325.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099996433
obfuscated_destructive
SQL
refunds_495.sql
schema cleanup
@@ -1,3 +1,3 @@ +DROP TABLE inventory;
DROP_TABLE
true
DIFF00099996434
general_code_change
Go
reviews_85.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099996435
test_suite_cleanup
SQL
tests/employees_358.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM invoices;
DELETE_UNQUALIFIED
false
DIFF00099996436
obfuscated_destructive
SQL
comments_305.sql
schema cleanup
@@ -1,3 +1,3 @@ +truncate table notifications;
TRUNCATE
true
DIFF00099996437
mentioned_in_comment
Python
events_669.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: TRUNCATE TABLE refunds;")
TRUNCATE
false
DIFF00099996438
orm_schema_change
Python
payments_75.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='orders', name='order_id')
NONE
true
DIFF00099996439
raw_sql_destructive
SQL
reviews_473.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM reviews;
DELETE_UNQUALIFIED
true
DIFF00099996440
test_suite_cleanup
SQL
spec/subscriptions_637.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE inventory RENAME COLUMN category TO contact_email;
ALTER_RENAME
false
DIFF00099996441
mentioned_in_comment
Python
users_379.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'TRUNCATE TABLE customers;' manually, handled by migration tool
TRUNCATE
false
DIFF00099996442
raw_sql_safe
SQL
users_404.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM invoices WHERE updated_at = 'active';
NONE
false
DIFF00099996443
mentioned_in_comment
Python
payments_783.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DROP TABLE payments;' manually, handled by migration tool
DROP_TABLE
false
DIFF00099996444
orm_schema_change
JavaScript
subscriptions_825.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('users', 'score')
NONE
true
DIFF00099996445
general_code_change
Java
invoices_328.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099996446
raw_sql_safe
SQL
accounts_543.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE invoices SET price = %s WHERE phone = %s;
NONE
false
DIFF00099996447
orm_schema_change
TypeScript
payments_305.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Comments { // removed field: user_id }
NONE
true
DIFF00099996448
general_code_change
JavaScript
invoices_8.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
DIFF00099996449
mentioned_in_comment
Python
transactions_158.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE users RENAME COLUMN created_at TO user_role;' manually, handled by migration tool
ALTER_RENAME
false
DIFF00099996450
test_suite_cleanup
SQL
mysql-test/suite/customers_912.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE inventory;
DROP_TABLE
false
DIFF00099996451
test_suite_cleanup
SQL
mysql-test/suite/products_407.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM shipments;
DELETE_UNQUALIFIED
false
DIFF00099996452
raw_sql_safe
SQL
subscriptions_998.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM customers WHERE email = 'active';
NONE
false
DIFF00099996453
raw_sql_safe
SQL
invoices_434.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE notifications SET order_id = %s WHERE priority = %s;
NONE
false
DIFF00099996454
raw_sql_destructive
SQL
inventory_812.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM subscriptions;
DELETE_UNQUALIFIED
true
DIFF00099996455
test_suite_cleanup
SQL
mysql-test/suite/refunds_51.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM orders;
DELETE_UNQUALIFIED
false
DIFF00099996456
general_code_change
Python
reviews_224.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099996457
general_code_change
JavaScript
customers_514.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
DIFF00099996458
raw_sql_destructive
SQL
reviews_281.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE logs RENAME COLUMN name TO full_name;
ALTER_RENAME
true
DIFF00099996459
raw_sql_safe
SQL
shipments_964.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM payments WHERE amount = 'active';
NONE
false
DIFF00099996460
raw_sql_safe
SQL
employees_182.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO orders (quantity, address) VALUES (%s, %s);
NONE
false
DIFF00099996461
orm_schema_change
JavaScript
transactions_313.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('products', 'address')
NONE
true
DIFF00099996462
raw_sql_destructive
SQL
customers_404.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM refunds;
DELETE_UNQUALIFIED
true
DIFF00099996463
general_code_change
TypeScript
payments_402.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
DIFF00099996464
raw_sql_destructive
SQL
shipments_872.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE subscriptions;
DROP_TABLE
true
DIFF00099996465
test_suite_cleanup
SQL
mysql-test/suite/comments_680.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE inventory DROP COLUMN category;
DROP_COLUMN
false
DIFF00099996466
general_code_change
JavaScript
tickets_120.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099996467
obfuscated_destructive
SQL
payments_885.sql
schema cleanup
@@ -1,3 +1,3 @@ +truNcAtE tablE sHIPmeNts;
TRUNCATE
true
DIFF00099996468
obfuscated_destructive
SQL
comments_669.sql
schema cleanup
@@ -1,3 +1,3 @@ +delete from sessions;
DELETE_UNQUALIFIED
true
DIFF00099996469
raw_sql_safe
SQL
tickets_180.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO orders (updated_at, is_active) VALUES (%s, %s);
NONE
false
DIFF00099996470
raw_sql_destructive
SQL
orders_868.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE invoices;
TRUNCATE
true
DIFF00099996471
raw_sql_safe
SQL
products_892.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO transactions (updated_at, description) VALUES (%s, %s);
NONE
false
DIFF00099996472
test_suite_cleanup
SQL
mysql-test/suite/customers_741.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM employees;
DELETE_UNQUALIFIED
false
DIFF00099996473
raw_sql_safe
SQL
sessions_929.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO sessions (order_id, email) VALUES (%s, %s);
NONE
false
DIFF00099996474
mentioned_in_comment
Python
employees_587.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'UPDATE refunds SET score = CONCAT(score, balance);' manually, handled by migration tool
UPDATE_CONCAT
false
DIFF00099996475
obfuscated_destructive
SQL
shipments_293.sql
schema cleanup
@@ -1,3 +1,3 @@ +update orders set email = concat(email, status);
UPDATE_CONCAT
true
DIFF00099996476
general_code_change
JavaScript
inventory_233.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
DIFF00099996477
orm_schema_change
Ruby
notifications_307.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :sessions, :phone
NONE
true
DIFF00099996478
general_code_change
Python
customers_56.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099996479
test_suite_cleanup
SQL
spec/inventory_23.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE invoices DROP COLUMN name;
DROP_COLUMN
false
DIFF00099996480
raw_sql_safe
SQL
sessions_113.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM invoices WHERE name = 'active';
NONE
false
DIFF00099996481
obfuscated_destructive
SQL
refunds_73.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALteR tAblE REvieWS droP COlUmn is_actIve;
DROP_COLUMN
true
DIFF00099996482
general_code_change
Ruby
products_503.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099996483
general_code_change
TypeScript
events_222.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
DIFF00099996484
test_suite_cleanup
SQL
tests/sessions_431.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE comments;
TRUNCATE
false
DIFF00099996485
general_code_change
TypeScript
refunds_635.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
DIFF00099996486
raw_sql_destructive
SQL
employees_458.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE orders RENAME COLUMN phone TO contact_email;
ALTER_RENAME
true
DIFF00099996487
obfuscated_destructive
SQL
notifications_958.sql
schema cleanup
@@ -1,3 +1,3 @@ +TRUNCATE TABLE refunds;
TRUNCATE
true
DIFF00099996488
raw_sql_destructive
SQL
reviews_305.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE reviews DROP COLUMN created_at;
DROP_COLUMN
true
DIFF00099996489
orm_schema_change
Ruby
shipments_634.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :events, :created_at
NONE
true
DIFF00099996490
general_code_change
JavaScript
accounts_898.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099996491
obfuscated_destructive
SQL
inventory_182.sql
schema cleanup
@@ -1,3 +1,3 @@ +TRUNCATE TABLE refunds;
TRUNCATE
true
DIFF00099996492
orm_schema_change
Python
refunds_604.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='inventory', name='status')
NONE
true
DIFF00099996493
orm_schema_change
JavaScript
transactions_489.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('payments', table => table.dropColumn('updated_at'))
NONE
true
DIFF00099996494
general_code_change
TypeScript
inventory_52.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
DIFF00099996495
orm_schema_change
TypeScript
accounts_636.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Invoices { // removed field: address }
NONE
true
DIFF00099996496
raw_sql_destructive
SQL
inventory_220.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE payments RENAME COLUMN phone TO state;
ALTER_RENAME
true
DIFF00099996497
raw_sql_safe
SQL
customers_265.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE users SET is_active = %s WHERE created_at = %s;
NONE
false
DIFF00099996498
raw_sql_destructive
SQL
events_155.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE payments SET role = CONCAT(role, name);
UPDATE_CONCAT
true
DIFF00099996499
mentioned_in_comment
Python
refunds_828.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'TRUNCATE TABLE orders;' manually, handled by migration tool
TRUNCATE
false