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
DIFF00099998400
raw_sql_safe
SQL
tickets_543.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE accounts SET updated_at = %s WHERE name = %s;
NONE
false
DIFF00099998401
general_code_change
TypeScript
sessions_186.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
DIFF00099998402
orm_schema_change
JavaScript
shipments_648.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('shipments', 'phone')
NONE
true
DIFF00099998403
mentioned_in_comment
Python
events_216.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE invoices DROP COLUMN name;' manually, handled by migration tool
DROP_COLUMN
false
DIFF00099998404
test_suite_cleanup
SQL
spec/shipments_502.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE payments;
TRUNCATE
false
DIFF00099998405
general_code_change
JavaScript
notifications_536.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
DIFF00099998406
obfuscated_destructive
SQL
invoices_941.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTer tABle paymEnTS DROP CoLuMN BaLance;
DROP_COLUMN
true
DIFF00099998407
raw_sql_safe
SQL
subscriptions_852.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_refunds_phone ON refunds (role);
NONE
false
DIFF00099998408
general_code_change
TypeScript
refunds_662.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
DIFF00099998409
obfuscated_destructive
SQL
subscriptions_683.sql
schema cleanup
@@ -1,3 +1,3 @@ +UPDATE comments SET user_id = CONCAT(user_id, order_id);
UPDATE_CONCAT
true
DIFF00099998410
raw_sql_safe
SQL
users_602.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE shipments SET category = %s WHERE created_at = %s;
NONE
false
DIFF00099998411
general_code_change
TypeScript
products_558.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
DIFF00099998412
obfuscated_destructive
SQL
shipments_851.sql
schema cleanup
@@ -1,3 +1,3 @@ +drop table shipments;
DROP_TABLE
true
DIFF00099998413
orm_schema_change
JavaScript
orders_688.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('users', 'order_id')
NONE
true
DIFF00099998414
general_code_change
Python
transactions_735.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099998415
general_code_change
Python
tickets_899.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099998416
orm_schema_change
TypeScript
accounts_226.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Subscriptions { // removed field: amount }
NONE
true
DIFF00099998417
general_code_change
Go
payments_335.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099998418
mentioned_in_comment
Python
transactions_162.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE reviews DROP COLUMN role;' manually, handled by migration tool
DROP_COLUMN
false
DIFF00099998419
raw_sql_destructive
SQL
tickets_712.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE inventory RENAME COLUMN score TO amount_cents;
ALTER_RENAME
true
DIFF00099998420
raw_sql_safe
SQL
events_566.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE users ADD COLUMN full_name VARCHAR(255);
NONE
false
DIFF00099998421
general_code_change
Ruby
accounts_414.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099998422
orm_schema_change
JavaScript
users_737.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('reviews', 'phone')
NONE
true
DIFF00099998423
raw_sql_safe
SQL
products_990.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_subscriptions_category ON subscriptions (order_id);
NONE
false
DIFF00099998424
general_code_change
JavaScript
reviews_393.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099998425
test_suite_cleanup
SQL
test/orders_513.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE tickets;
TRUNCATE
false
DIFF00099998426
raw_sql_safe
SQL
comments_551.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE tickets ADD COLUMN contact_email VARCHAR(255);
NONE
false
DIFF00099998427
raw_sql_destructive
SQL
refunds_592.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE notifications RENAME COLUMN user_id TO contact_email;
ALTER_RENAME
true
DIFF00099998428
raw_sql_destructive
SQL
reviews_943.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE shipments RENAME COLUMN address TO full_name;
ALTER_RENAME
true
DIFF00099998429
obfuscated_destructive
SQL
events_877.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE products DROP COLUMN updated_at;
DROP_COLUMN
true
DIFF00099998430
raw_sql_destructive
SQL
employees_376.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE inventory DROP COLUMN priority;
DROP_COLUMN
true
DIFF00099998431
raw_sql_safe
SQL
products_695.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE reviews SET order_id = %s WHERE quantity = %s;
NONE
false
DIFF00099998432
orm_schema_change
TypeScript
products_94.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Subscriptions { // removed field: phone }
NONE
true
DIFF00099998433
general_code_change
Go
comments_809.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099998434
general_code_change
TypeScript
refunds_901.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
DIFF00099998435
raw_sql_destructive
SQL
payments_172.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE logs SET updated_at = CONCAT(updated_at, order_id);
UPDATE_CONCAT
true
DIFF00099998436
raw_sql_safe
SQL
logs_955.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE comments SET updated_at = %s WHERE created_at = %s;
NONE
false
DIFF00099998437
obfuscated_destructive
SQL
employees_539.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE inventory RENAME COLUMN metadata TO full_name;
ALTER_RENAME
true
DIFF00099998438
raw_sql_destructive
SQL
transactions_996.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE products SET order_id = CONCAT(order_id, quantity);
UPDATE_CONCAT
true
DIFF00099998439
obfuscated_destructive
SQL
logs_900.sql
schema cleanup
@@ -1,3 +1,3 @@ +DELETE FrOM PayMEnts;
DELETE_UNQUALIFIED
true
DIFF00099998440
general_code_change
Python
sessions_545.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099998441
orm_schema_change
JavaScript
invoices_61.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('shipments', 'user_id')
NONE
true
DIFF00099998442
general_code_change
TypeScript
sessions_930.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
DIFF00099998443
orm_schema_change
Python
shipments_621.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='events', name='balance')
NONE
true
DIFF00099998444
general_code_change
Python
products_405.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099998445
orm_schema_change
Python
events_637.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='comments', name='metadata')
NONE
true
DIFF00099998446
orm_schema_change
Ruby
products_304.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :users, :status
NONE
true
DIFF00099998447
raw_sql_safe
SQL
transactions_610.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_subscriptions_role ON subscriptions (status);
NONE
false
DIFF00099998448
test_suite_cleanup
SQL
spec/payments_828.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE accounts;
TRUNCATE
false
DIFF00099998449
orm_schema_change
JavaScript
users_688.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('orders', table => table.dropColumn('phone'))
NONE
true
DIFF00099998450
orm_schema_change
Python
accounts_225.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='employees', name='price')
NONE
true
DIFF00099998451
test_suite_cleanup
SQL
tests/notifications_5.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM users;
DELETE_UNQUALIFIED
false
DIFF00099998452
raw_sql_safe
SQL
logs_233.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_tickets_score ON tickets (metadata);
NONE
false
DIFF00099998453
general_code_change
Ruby
users_368.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099998454
raw_sql_destructive
SQL
shipments_220.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE notifications SET price = CONCAT(price, status);
UPDATE_CONCAT
true
DIFF00099998455
general_code_change
Go
comments_520.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099998456
general_code_change
Python
events_9.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099998457
raw_sql_destructive
SQL
notifications_777.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE users;
TRUNCATE
true
DIFF00099998458
obfuscated_destructive
SQL
events_684.sql
schema cleanup
@@ -1,3 +1,3 @@ +truncate table comments;
TRUNCATE
true
DIFF00099998459
obfuscated_destructive
SQL
tickets_367.sql
schema cleanup
@@ -1,3 +1,3 @@ +truncate table refunds;
TRUNCATE
true
DIFF00099998460
orm_schema_change
Ruby
subscriptions_508.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :transactions, :phone
NONE
true
DIFF00099998461
raw_sql_safe
SQL
accounts_248.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE comments SET description = %s WHERE phone = %s;
NONE
false
DIFF00099998462
mentioned_in_comment
Python
customers_711.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DROP TABLE orders;")
DROP_TABLE
false
DIFF00099998463
orm_schema_change
JavaScript
payments_847.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('users', table => table.dropColumn('is_active'))
NONE
true
DIFF00099998464
raw_sql_destructive
SQL
notifications_894.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE subscriptions RENAME COLUMN status TO state;
ALTER_RENAME
true
DIFF00099998465
raw_sql_safe
SQL
payments_773.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE orders SET created_at = %s WHERE name = %s;
NONE
false
DIFF00099998466
raw_sql_safe
SQL
invoices_289.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE refunds ADD COLUMN amount_cents VARCHAR(255);
NONE
false
DIFF00099998467
general_code_change
Go
transactions_201.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099998468
general_code_change
Python
logs_791.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099998469
raw_sql_destructive
SQL
notifications_36.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE notifications RENAME COLUMN quantity TO user_role;
ALTER_RENAME
true
DIFF00099998470
orm_schema_change
Ruby
customers_685.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :shipments, :balance
NONE
true
DIFF00099998471
mentioned_in_comment
Python
customers_818.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
DIFF00099998472
orm_schema_change
Python
inventory_118.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='payments', name='is_active')
NONE
true
DIFF00099998473
obfuscated_destructive
SQL
payments_231.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE tickets DROP COLUMN amount;
DROP_COLUMN
true
DIFF00099998474
raw_sql_safe
SQL
inventory_102.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE events SET priority = %s WHERE order_id = %s;
NONE
false
DIFF00099998475
raw_sql_destructive
SQL
refunds_583.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM users;
DELETE_UNQUALIFIED
true
DIFF00099998476
orm_schema_change
JavaScript
orders_950.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('accounts', table => table.dropColumn('balance'))
NONE
true
DIFF00099998477
mentioned_in_comment
Python
reviews_700.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DROP TABLE transactions;' manually, handled by migration tool
DROP_TABLE
false
DIFF00099998478
orm_schema_change
JavaScript
tickets_229.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('orders', table => table.dropColumn('email'))
NONE
true
DIFF00099998479
general_code_change
TypeScript
transactions_184.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
DIFF00099998480
raw_sql_destructive
SQL
customers_54.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE notifications DROP COLUMN price;
DROP_COLUMN
true
DIFF00099998481
mentioned_in_comment
Python
logs_194.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DROP TABLE tickets;")
DROP_TABLE
false
DIFF00099998482
orm_schema_change
TypeScript
tickets_540.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Invoices { // removed field: phone }
NONE
true
DIFF00099998483
test_suite_cleanup
SQL
tests/transactions_107.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE accounts;
DROP_TABLE
false
DIFF00099998484
test_suite_cleanup
SQL
tests/accounts_109.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE payments;
TRUNCATE
false
DIFF00099998485
raw_sql_safe
SQL
inventory_686.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO transactions (user_id, amount) VALUES (%s, %s);
NONE
false
DIFF00099998486
obfuscated_destructive
SQL
subscriptions_2.sql
schema cleanup
@@ -1,3 +1,3 @@ +DELEtE frOM commenTS;
DELETE_UNQUALIFIED
true
DIFF00099998487
orm_schema_change
JavaScript
subscriptions_915.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('logs', table => table.dropColumn('metadata'))
NONE
true
DIFF00099998488
orm_schema_change
Ruby
shipments_864.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :orders, :metadata
NONE
true
DIFF00099998489
orm_schema_change
TypeScript
sessions_587.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Events { // removed field: role }
NONE
true
DIFF00099998490
raw_sql_destructive
SQL
events_841.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM notifications;
DELETE_UNQUALIFIED
true
DIFF00099998491
general_code_change
Ruby
orders_321.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099998492
raw_sql_destructive
SQL
refunds_304.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE events;
TRUNCATE
true
DIFF00099998493
raw_sql_safe
SQL
accounts_2.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE employees ADD COLUMN amount_cents VARCHAR(255);
NONE
false
DIFF00099998494
orm_schema_change
TypeScript
shipments_205.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Reviews { // removed field: priority }
NONE
true
DIFF00099998495
raw_sql_safe
SQL
employees_369.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM employees WHERE balance = 'active';
NONE
false
DIFF00099998496
orm_schema_change
Python
invoices_295.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='invoices', name='score')
NONE
true
DIFF00099998497
raw_sql_destructive
SQL
refunds_43.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE inventory RENAME COLUMN score TO amount_cents;
ALTER_RENAME
true
DIFF00099998498
raw_sql_destructive
SQL
accounts_30.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE subscriptions DROP COLUMN user_id;
DROP_COLUMN
true
DIFF00099998499
raw_sql_safe
SQL
tickets_163.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE accounts SET status = %s WHERE order_id = %s;
NONE
false