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
DIFF00000006400
raw_sql_destructive
SQL
transactions_82.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM customers;
DELETE_UNQUALIFIED
true
DIFF00000006401
raw_sql_safe
SQL
accounts_865.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE products SET category = %s WHERE phone = %s;
NONE
false
DIFF00000006402
general_code_change
Ruby
employees_503.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000006403
obfuscated_destructive
SQL
employees_686.sql
schema cleanup
@@ -1,3 +1,3 @@ +UPDATE subscriptions SET priority = CONCAT(priority, metadata);
UPDATE_CONCAT
true
DIFF00000006404
raw_sql_safe
SQL
events_980.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM comments WHERE is_active = 'active';
NONE
false
DIFF00000006405
general_code_change
Go
tickets_594.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000006406
orm_schema_change
TypeScript
users_376.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Tickets { // removed field: phone }
NONE
true
DIFF00000006407
obfuscated_destructive
SQL
events_91.sql
schema cleanup
@@ -1,3 +1,3 @@ +alter table logs drop column metadata;
DROP_COLUMN
true
DIFF00000006408
obfuscated_destructive
SQL
shipments_430.sql
schema cleanup
@@ -1,3 +1,3 @@ +UPDATE refunds SET description = CONCAT(description, role);
UPDATE_CONCAT
true
DIFF00000006409
general_code_change
Go
customers_201.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000006410
raw_sql_destructive
SQL
inventory_212.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM products;
DELETE_UNQUALIFIED
true
DIFF00000006411
raw_sql_destructive
SQL
orders_171.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE notifications;
DROP_TABLE
true
DIFF00000006412
general_code_change
JavaScript
invoices_18.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000006413
orm_schema_change
TypeScript
tickets_95.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Comments { // removed field: user_id }
NONE
true
DIFF00000006414
general_code_change
Ruby
orders_662.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000006415
orm_schema_change
JavaScript
notifications_820.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('notifications', table => table.dropColumn('name'))
NONE
true
DIFF00000006416
mentioned_in_comment
Python
shipments_768.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE comments RENAME COLUMN quantity TO contact_email;' manually, handled by migration tool
ALTER_RENAME
false
DIFF00000006417
raw_sql_safe
SQL
tickets_9.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE subscriptions SET created_at = %s WHERE name = %s;
NONE
false
DIFF00000006418
general_code_change
Python
events_981.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000006419
obfuscated_destructive
SQL
logs_930.sql
schema cleanup
@@ -1,3 +1,3 @@ +update employees set balance = concat(balance, phone);
UPDATE_CONCAT
true
DIFF00000006420
mentioned_in_comment
Python
transactions_891.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: UPDATE accounts SET price = CONCAT(price, created_at);")
UPDATE_CONCAT
false
DIFF00000006421
general_code_change
Go
logs_198.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000006422
orm_schema_change
JavaScript
invoices_996.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('notifications', 'description')
NONE
true
DIFF00000006423
test_suite_cleanup
SQL
test/comments_471.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE orders SET balance = CONCAT(balance, amount);
UPDATE_CONCAT
false
DIFF00000006424
general_code_change
Python
refunds_152.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000006425
test_suite_cleanup
SQL
mysql-test/suite/transactions_924.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE accounts;
TRUNCATE
false
DIFF00000006426
general_code_change
Java
accounts_566.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000006427
raw_sql_safe
SQL
tickets_481.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE products SET email = %s WHERE user_id = %s;
NONE
false
DIFF00000006428
mentioned_in_comment
Python
transactions_519.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE tickets RENAME COLUMN user_id TO user_role;' manually, handled by migration tool
ALTER_RENAME
false
DIFF00000006429
general_code_change
Python
refunds_63.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000006430
orm_schema_change
JavaScript
tickets_900.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('subscriptions', 'amount')
NONE
true
DIFF00000006431
mentioned_in_comment
Python
shipments_246.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE orders DROP COLUMN category; -- now deprecated"""
DROP_COLUMN
false
DIFF00000006432
general_code_change
TypeScript
products_141.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
DIFF00000006433
raw_sql_safe
SQL
logs_773.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE reviews SET score = %s WHERE priority = %s;
NONE
false
DIFF00000006434
orm_schema_change
JavaScript
reviews_788.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('customers', 'balance')
NONE
true
DIFF00000006435
raw_sql_destructive
SQL
orders_480.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE sessions SET order_id = CONCAT(order_id, balance);
UPDATE_CONCAT
true
DIFF00000006436
raw_sql_destructive
SQL
notifications_300.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE notifications RENAME COLUMN order_id TO full_name;
ALTER_RENAME
true
DIFF00000006437
mentioned_in_comment
Python
refunds_766.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE reviews DROP COLUMN balance;' manually, handled by migration tool
DROP_COLUMN
false
DIFF00000006438
raw_sql_destructive
SQL
invoices_163.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM events;
DELETE_UNQUALIFIED
true
DIFF00000006439
mentioned_in_comment
Python
notifications_522.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: TRUNCATE TABLE employees; -- now deprecated"""
TRUNCATE
false
DIFF00000006440
general_code_change
Java
subscriptions_440.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000006441
general_code_change
Python
payments_420.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000006442
orm_schema_change
JavaScript
orders_334.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('inventory', 'description')
NONE
true
DIFF00000006443
general_code_change
TypeScript
accounts_811.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
DIFF00000006444
test_suite_cleanup
SQL
test/shipments_378.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE comments;
DROP_TABLE
false
DIFF00000006445
general_code_change
JavaScript
customers_941.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000006446
obfuscated_destructive
SQL
sessions_583.sql
schema cleanup
@@ -1,3 +1,3 @@ +DELETE frOM SuBscRIPTIONS;
DELETE_UNQUALIFIED
true
DIFF00000006447
general_code_change
JavaScript
employees_380.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
DIFF00000006448
raw_sql_safe
SQL
products_588.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE inventory ADD COLUMN user_role VARCHAR(255);
NONE
false
DIFF00000006449
test_suite_cleanup
SQL
tests/products_948.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE tickets SET score = CONCAT(score, category);
UPDATE_CONCAT
false
DIFF00000006450
raw_sql_destructive
SQL
customers_565.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE sessions;
DROP_TABLE
true
DIFF00000006451
general_code_change
Python
tickets_825.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000006452
orm_schema_change
JavaScript
products_962.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('users', table => table.dropColumn('order_id'))
NONE
true
DIFF00000006453
general_code_change
Java
orders_874.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000006454
raw_sql_destructive
SQL
transactions_11.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE payments RENAME COLUMN name TO user_role;
ALTER_RENAME
true
DIFF00000006455
test_suite_cleanup
SQL
spec/payments_838.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE logs RENAME COLUMN amount TO amount_cents;
ALTER_RENAME
false
DIFF00000006456
raw_sql_safe
SQL
subscriptions_526.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO notifications (is_active, updated_at) VALUES (%s, %s);
NONE
false
DIFF00000006457
test_suite_cleanup
SQL
mysql-test/suite/users_648.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM sessions;
DELETE_UNQUALIFIED
false
DIFF00000006458
general_code_change
Python
reviews_559.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000006459
general_code_change
JavaScript
sessions_651.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000006460
raw_sql_safe
SQL
products_112.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_subscriptions_is_active ON subscriptions (updated_at);
NONE
false
DIFF00000006461
general_code_change
Python
notifications_756.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000006462
raw_sql_safe
SQL
payments_846.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO payments (category, updated_at) VALUES (%s, %s);
NONE
false
DIFF00000006463
test_suite_cleanup
SQL
tests/invoices_950.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE events DROP COLUMN quantity;
DROP_COLUMN
false
DIFF00000006464
obfuscated_destructive
SQL
notifications_321.sql
schema cleanup
@@ -1,3 +1,3 @@ +TRUNCATE TABLE refunds;
TRUNCATE
true
DIFF00000006465
obfuscated_destructive
SQL
refunds_689.sql
schema cleanup
@@ -1,3 +1,3 @@ +DELETE FROM products;
DELETE_UNQUALIFIED
true
DIFF00000006466
orm_schema_change
Ruby
users_476.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :orders, :created_at
NONE
true
DIFF00000006467
test_suite_cleanup
SQL
mysql-test/suite/accounts_509.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM inventory;
DELETE_UNQUALIFIED
false
DIFF00000006468
test_suite_cleanup
SQL
mysql-test/suite/inventory_939.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE notifications;
TRUNCATE
false
DIFF00000006469
raw_sql_destructive
SQL
payments_40.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE notifications;
TRUNCATE
true
DIFF00000006470
general_code_change
Python
events_135.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000006471
general_code_change
Python
payments_255.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000006472
general_code_change
JavaScript
transactions_619.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
DIFF00000006473
test_suite_cleanup
SQL
spec/users_1.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE employees;
DROP_TABLE
false
DIFF00000006474
general_code_change
JavaScript
payments_6.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
DIFF00000006475
general_code_change
JavaScript
reviews_841.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000006476
raw_sql_safe
SQL
subscriptions_668.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO refunds (address, quantity) VALUES (%s, %s);
NONE
false
DIFF00000006477
raw_sql_safe
SQL
notifications_916.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE comments SET amount = %s WHERE price = %s;
NONE
false
DIFF00000006478
general_code_change
JavaScript
tickets_976.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
DIFF00000006479
raw_sql_destructive
SQL
transactions_429.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE accounts RENAME COLUMN role TO user_role;
ALTER_RENAME
true
DIFF00000006480
test_suite_cleanup
SQL
tests/refunds_281.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE logs RENAME COLUMN metadata TO state;
ALTER_RENAME
false
DIFF00000006481
general_code_change
JavaScript
orders_906.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000006482
general_code_change
Python
users_302.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000006483
test_suite_cleanup
SQL
spec/products_906.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE transactions DROP COLUMN priority;
DROP_COLUMN
false
DIFF00000006484
raw_sql_safe
SQL
users_875.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE reviews SET quantity = %s WHERE quantity = %s;
NONE
false
DIFF00000006485
raw_sql_safe
SQL
customers_475.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_tickets_email ON tickets (price);
NONE
false
DIFF00000006486
raw_sql_safe
SQL
sessions_600.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE events ADD COLUMN amount_cents VARCHAR(255);
NONE
false
DIFF00000006487
raw_sql_destructive
SQL
notifications_735.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE shipments DROP COLUMN address;
DROP_COLUMN
true
DIFF00000006488
general_code_change
JavaScript
subscriptions_46.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
DIFF00000006489
mentioned_in_comment
Python
orders_584.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: TRUNCATE TABLE subscriptions;")
TRUNCATE
false
DIFF00000006490
raw_sql_destructive
SQL
shipments_636.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE notifications;
DROP_TABLE
true
DIFF00000006491
obfuscated_destructive
SQL
payments_826.sql
schema cleanup
@@ -1,3 +1,3 @@ +alter table shipments rename column name to full_name;
ALTER_RENAME
true
DIFF00000006492
general_code_change
JavaScript
events_629.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000006493
test_suite_cleanup
SQL
mysql-test/suite/comments_821.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE notifications RENAME COLUMN quantity TO amount_cents;
ALTER_RENAME
false
DIFF00000006494
raw_sql_safe
SQL
tickets_987.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE logs SET balance = %s WHERE quantity = %s;
NONE
false
DIFF00000006495
raw_sql_safe
SQL
transactions_866.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO refunds (address, balance) VALUES (%s, %s);
NONE
false
DIFF00000006496
obfuscated_destructive
SQL
notifications_858.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE inventory DROP COLUMN created_at;
DROP_COLUMN
true
DIFF00000006497
test_suite_cleanup
SQL
tests/shipments_507.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE shipments;
TRUNCATE
false
DIFF00000006498
general_code_change
JavaScript
sessions_690.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000006499
raw_sql_destructive
SQL
tickets_388.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE customers;
DROP_TABLE
true