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
DIFF00000001300
raw_sql_destructive
SQL
events_628.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM shipments;
DELETE_UNQUALIFIED
true
DIFF00000001301
general_code_change
Python
transactions_510.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000001302
general_code_change
Java
employees_620.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000001303
general_code_change
TypeScript
inventory_992.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
DIFF00000001304
general_code_change
Java
orders_217.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000001305
raw_sql_destructive
SQL
employees_893.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE products;
DROP_TABLE
true
DIFF00000001306
orm_schema_change
TypeScript
shipments_156.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Invoices { // removed field: updated_at }
NONE
true
DIFF00000001307
general_code_change
Java
events_946.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000001308
general_code_change
Python
comments_302.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000001309
general_code_change
TypeScript
payments_243.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
DIFF00000001310
orm_schema_change
JavaScript
notifications_200.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('comments', 'metadata')
NONE
true
DIFF00000001311
mentioned_in_comment
Python
employees_912.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DROP TABLE payments;")
DROP_TABLE
false
DIFF00000001312
raw_sql_safe
SQL
refunds_8.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO events (amount, phone) VALUES (%s, %s);
NONE
false
DIFF00000001313
test_suite_cleanup
SQL
tests/tickets_421.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE invoices;
TRUNCATE
false
DIFF00000001314
raw_sql_destructive
SQL
comments_692.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM invoices;
DELETE_UNQUALIFIED
true
DIFF00000001315
test_suite_cleanup
SQL
spec/logs_731.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE products;
TRUNCATE
false
DIFF00000001316
general_code_change
JavaScript
invoices_554.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000001317
general_code_change
Ruby
refunds_133.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000001318
obfuscated_destructive
SQL
inventory_405.sql
schema cleanup
@@ -1,3 +1,3 @@ +UPDATE inventory SET description = CONCAT(description, created_at);
UPDATE_CONCAT
true
DIFF00000001319
general_code_change
JavaScript
reviews_60.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000001320
general_code_change
TypeScript
sessions_798.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
DIFF00000001321
test_suite_cleanup
SQL
test/notifications_437.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE subscriptions DROP COLUMN status;
DROP_COLUMN
false
DIFF00000001322
general_code_change
Go
tickets_894.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000001323
obfuscated_destructive
SQL
logs_352.sql
schema cleanup
@@ -1,3 +1,3 @@ +UPDATE logs SET updated_at = CONCAT(updated_at, category);
UPDATE_CONCAT
true
DIFF00000001324
test_suite_cleanup
SQL
test/orders_497.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE invoices RENAME COLUMN phone TO amount_cents;
ALTER_RENAME
false
DIFF00000001325
mentioned_in_comment
Python
employees_603.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'TRUNCATE TABLE products;' manually, handled by migration tool
TRUNCATE
false
DIFF00000001326
obfuscated_destructive
SQL
customers_498.sql
schema cleanup
@@ -1,3 +1,3 @@ +alter table sessions drop column email;
DROP_COLUMN
true
DIFF00000001327
raw_sql_safe
SQL
logs_76.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE comments ADD COLUMN user_role VARCHAR(255);
NONE
false
DIFF00000001328
orm_schema_change
Ruby
subscriptions_905.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :orders, :updated_at
NONE
true
DIFF00000001329
test_suite_cleanup
SQL
tests/products_436.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE employees RENAME COLUMN email TO state;
ALTER_RENAME
false
DIFF00000001330
general_code_change
JavaScript
payments_303.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000001331
orm_schema_change
Ruby
transactions_577.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :payments, :amount
NONE
true
DIFF00000001332
general_code_change
Go
transactions_320.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000001333
obfuscated_destructive
SQL
subscriptions_662.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE payments RENAME COLUMN priority TO amount_cents;
ALTER_RENAME
true
DIFF00000001334
mentioned_in_comment
Python
refunds_220.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DELETE FROM reviews;' manually, handled by migration tool
DELETE_UNQUALIFIED
false
DIFF00000001335
general_code_change
Ruby
inventory_585.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000001336
raw_sql_safe
SQL
transactions_965.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE transactions SET amount = %s WHERE phone = %s;
NONE
false
DIFF00000001337
orm_schema_change
Ruby
inventory_602.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :notifications, :quantity
NONE
true
DIFF00000001338
raw_sql_destructive
SQL
products_862.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE logs;
TRUNCATE
true
DIFF00000001339
general_code_change
Java
payments_372.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000001340
raw_sql_destructive
SQL
refunds_951.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE shipments DROP COLUMN address;
DROP_COLUMN
true
DIFF00000001341
general_code_change
Ruby
products_546.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000001342
test_suite_cleanup
SQL
tests/invoices_554.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE transactions;
TRUNCATE
false
DIFF00000001343
raw_sql_destructive
SQL
events_925.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE employees DROP COLUMN metadata;
DROP_COLUMN
true
DIFF00000001344
general_code_change
JavaScript
sessions_231.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
DIFF00000001345
orm_schema_change
TypeScript
customers_314.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Events { // removed field: description }
NONE
true
DIFF00000001346
raw_sql_destructive
SQL
notifications_551.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE comments SET status = CONCAT(status, quantity);
UPDATE_CONCAT
true
DIFF00000001347
orm_schema_change
Python
comments_710.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='notifications', name='role')
NONE
true
DIFF00000001348
general_code_change
Ruby
tickets_51.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000001349
general_code_change
Python
payments_993.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000001350
general_code_change
Go
payments_477.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000001351
general_code_change
TypeScript
comments_232.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
DIFF00000001352
test_suite_cleanup
SQL
mysql-test/suite/payments_777.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE transactions SET quantity = CONCAT(quantity, role);
UPDATE_CONCAT
false
DIFF00000001353
raw_sql_safe
SQL
notifications_59.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM subscriptions WHERE user_id = 'active';
NONE
false
DIFF00000001354
raw_sql_safe
SQL
invoices_388.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE payments ADD COLUMN full_name VARCHAR(255);
NONE
false
DIFF00000001355
orm_schema_change
JavaScript
invoices_955.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('transactions', table => table.dropColumn('phone'))
NONE
true
DIFF00000001356
raw_sql_safe
SQL
subscriptions_188.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE tickets SET order_id = %s WHERE quantity = %s;
NONE
false
DIFF00000001357
general_code_change
TypeScript
comments_955.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
DIFF00000001358
raw_sql_destructive
SQL
payments_806.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE users RENAME COLUMN updated_at TO user_role;
ALTER_RENAME
true
DIFF00000001359
raw_sql_safe
SQL
logs_579.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM reviews WHERE description = 'active';
NONE
false
DIFF00000001360
raw_sql_destructive
SQL
payments_777.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE logs RENAME COLUMN metadata TO contact_email;
ALTER_RENAME
true
DIFF00000001361
test_suite_cleanup
SQL
tests/users_232.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE customers SET user_id = CONCAT(user_id, phone);
UPDATE_CONCAT
false
DIFF00000001362
general_code_change
TypeScript
events_254.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
DIFF00000001363
raw_sql_destructive
SQL
orders_281.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE comments SET amount = CONCAT(amount, metadata);
UPDATE_CONCAT
true
DIFF00000001364
general_code_change
Java
events_619.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000001365
raw_sql_destructive
SQL
tickets_180.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE products RENAME COLUMN balance TO state;
ALTER_RENAME
true
DIFF00000001366
test_suite_cleanup
SQL
spec/subscriptions_267.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE tickets;
DROP_TABLE
false
DIFF00000001367
obfuscated_destructive
SQL
comments_419.sql
schema cleanup
@@ -1,3 +1,3 @@ +TRUNCATE TABLE products;
TRUNCATE
true
DIFF00000001368
general_code_change
Go
users_963.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000001369
raw_sql_destructive
SQL
users_616.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE logs RENAME COLUMN category TO full_name;
ALTER_RENAME
true
DIFF00000001370
mentioned_in_comment
Python
sessions_982.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: UPDATE payments SET balance = CONCAT(balance, address);")
UPDATE_CONCAT
false
DIFF00000001371
test_suite_cleanup
SQL
mysql-test/suite/invoices_889.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE refunds SET metadata = CONCAT(metadata, is_active);
UPDATE_CONCAT
false
DIFF00000001372
raw_sql_destructive
SQL
transactions_573.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE accounts SET price = CONCAT(price, balance);
UPDATE_CONCAT
true
DIFF00000001373
obfuscated_destructive
SQL
sessions_39.sql
schema cleanup
@@ -1,3 +1,3 @@ +DElETe frOM TrANSaCtIons;
DELETE_UNQUALIFIED
true
DIFF00000001374
general_code_change
JavaScript
employees_320.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
DIFF00000001375
mentioned_in_comment
Python
customers_82.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE tickets DROP COLUMN price;")
DROP_COLUMN
false
DIFF00000001376
raw_sql_destructive
SQL
notifications_340.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE events RENAME COLUMN role TO state;
ALTER_RENAME
true
DIFF00000001377
general_code_change
Ruby
subscriptions_661.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000001378
raw_sql_safe
SQL
products_735.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE subscriptions SET name = %s WHERE description = %s;
NONE
false
DIFF00000001379
orm_schema_change
TypeScript
tickets_104.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Transactions { // removed field: price }
NONE
true
DIFF00000001380
orm_schema_change
JavaScript
accounts_199.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('transactions', table => table.dropColumn('quantity'))
NONE
true
DIFF00000001381
obfuscated_destructive
SQL
payments_359.sql
schema cleanup
@@ -1,3 +1,3 @@ +truncate table shipments;
TRUNCATE
true
DIFF00000001382
general_code_change
Python
invoices_300.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000001383
general_code_change
TypeScript
payments_673.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
DIFF00000001384
general_code_change
Python
sessions_983.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000001385
general_code_change
Python
accounts_433.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000001386
raw_sql_safe
SQL
shipments_713.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO customers (email, created_at) VALUES (%s, %s);
NONE
false
DIFF00000001387
raw_sql_safe
SQL
notifications_489.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE employees SET description = %s WHERE priority = %s;
NONE
false
DIFF00000001388
general_code_change
Go
sessions_199.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000001389
raw_sql_destructive
SQL
tickets_543.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM payments;
DELETE_UNQUALIFIED
true
DIFF00000001390
raw_sql_destructive
SQL
transactions_238.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE shipments RENAME COLUMN score TO full_name;
ALTER_RENAME
true
DIFF00000001391
raw_sql_safe
SQL
notifications_13.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE orders ADD COLUMN contact_email VARCHAR(255);
NONE
false
DIFF00000001392
orm_schema_change
Ruby
users_619.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :refunds, :metadata
NONE
true
DIFF00000001393
obfuscated_destructive
SQL
products_30.sql
schema cleanup
@@ -1,3 +1,3 @@ +UPDATE subscriptions SET score = CONCAT(score, score);
UPDATE_CONCAT
true
DIFF00000001394
general_code_change
TypeScript
users_333.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
DIFF00000001395
general_code_change
Go
comments_544.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000001396
general_code_change
JavaScript
refunds_644.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000001397
obfuscated_destructive
SQL
notifications_197.sql
schema cleanup
@@ -1,3 +1,3 @@ +TRUNCATE TABLE payments;
TRUNCATE
true
DIFF00000001398
general_code_change
Python
events_941.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000001399
general_code_change
JavaScript
comments_348.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