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
DIFF00099999400
obfuscated_destructive
SQL
users_843.sql
schema cleanup
@@ -1,3 +1,3 @@ +dElete FROM lOGs;
DELETE_UNQUALIFIED
true
DIFF00099999401
general_code_change
Python
shipments_708.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099999402
test_suite_cleanup
SQL
test/comments_931.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE products;
TRUNCATE
false
DIFF00099999403
general_code_change
JavaScript
events_557.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099999404
test_suite_cleanup
SQL
spec/reviews_884.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE customers DROP COLUMN address;
DROP_COLUMN
false
DIFF00099999405
raw_sql_destructive
SQL
inventory_595.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM notifications;
DELETE_UNQUALIFIED
true
DIFF00099999406
orm_schema_change
TypeScript
inventory_878.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Invoices { // removed field: role }
NONE
true
DIFF00099999407
orm_schema_change
Python
events_18.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='sessions', name='email')
NONE
true
DIFF00099999408
obfuscated_destructive
SQL
reviews_763.sql
schema cleanup
@@ -1,3 +1,3 @@ +update customers set user_id = concat(user_id, updated_at);
UPDATE_CONCAT
true
DIFF00099999409
general_code_change
Python
customers_509.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099999410
test_suite_cleanup
SQL
tests/tickets_958.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE sessions DROP COLUMN balance;
DROP_COLUMN
false
DIFF00099999411
general_code_change
Go
inventory_467.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099999412
raw_sql_destructive
SQL
payments_281.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE sessions RENAME COLUMN created_at TO contact_email;
ALTER_RENAME
true
DIFF00099999413
general_code_change
TypeScript
refunds_117.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
DIFF00099999414
general_code_change
TypeScript
employees_215.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
DIFF00099999415
test_suite_cleanup
SQL
test/tickets_481.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE invoices;
DROP_TABLE
false
DIFF00099999416
mentioned_in_comment
Python
products_60.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE inventory DROP COLUMN name;' manually, handled by migration tool
DROP_COLUMN
false
DIFF00099999417
raw_sql_destructive
SQL
payments_202.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE employees RENAME COLUMN address TO user_role;
ALTER_RENAME
true
DIFF00099999418
raw_sql_safe
SQL
events_161.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE inventory SET metadata = %s WHERE score = %s;
NONE
false
DIFF00099999419
orm_schema_change
Python
inventory_307.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='customers', name='amount')
NONE
true
DIFF00099999420
raw_sql_destructive
SQL
transactions_885.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE sessions;
DROP_TABLE
true
DIFF00099999421
raw_sql_safe
SQL
payments_934.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE payments SET is_active = %s WHERE email = %s;
NONE
false
DIFF00099999422
general_code_change
Go
inventory_918.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099999423
raw_sql_destructive
SQL
refunds_639.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE comments SET price = CONCAT(price, role);
UPDATE_CONCAT
true
DIFF00099999424
general_code_change
Python
payments_928.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099999425
mentioned_in_comment
Python
reviews_737.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE reviews RENAME COLUMN status TO state;' manually, handled by migration tool
ALTER_RENAME
false
DIFF00099999426
mentioned_in_comment
Python
shipments_759.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE transactions RENAME COLUMN price TO state; -- now deprecated"""
ALTER_RENAME
false
DIFF00099999427
mentioned_in_comment
Python
sessions_209.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DROP TABLE refunds;")
DROP_TABLE
false
DIFF00099999428
orm_schema_change
JavaScript
customers_315.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('employees', 'address')
NONE
true
DIFF00099999429
orm_schema_change
JavaScript
invoices_367.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('reviews', 'price')
NONE
true
DIFF00099999430
general_code_change
Ruby
sessions_210.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099999431
general_code_change
Python
refunds_385.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099999432
mentioned_in_comment
Python
transactions_33.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: TRUNCATE TABLE invoices;")
TRUNCATE
false
DIFF00099999433
general_code_change
TypeScript
inventory_819.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
DIFF00099999434
raw_sql_safe
SQL
notifications_898.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE events SET created_at = %s WHERE updated_at = %s;
NONE
false
DIFF00099999435
raw_sql_safe
SQL
products_801.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE logs SET updated_at = %s WHERE description = %s;
NONE
false
DIFF00099999436
general_code_change
Python
accounts_174.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099999437
mentioned_in_comment
Python
products_970.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: UPDATE products SET status = CONCAT(status, balance); -- now deprecated"""
UPDATE_CONCAT
false
DIFF00099999438
mentioned_in_comment
Python
payments_63.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE customers DROP COLUMN created_at;' manually, handled by migration tool
DROP_COLUMN
false
DIFF00099999439
general_code_change
TypeScript
payments_567.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
DIFF00099999440
general_code_change
JavaScript
customers_417.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099999441
raw_sql_destructive
SQL
subscriptions_291.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE orders;
TRUNCATE
true
DIFF00099999442
general_code_change
Python
events_246.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099999443
general_code_change
Ruby
subscriptions_549.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099999444
test_suite_cleanup
SQL
test/subscriptions_797.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE notifications RENAME COLUMN priority TO full_name;
ALTER_RENAME
false
DIFF00099999445
test_suite_cleanup
SQL
mysql-test/suite/reviews_175.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE subscriptions RENAME COLUMN name TO amount_cents;
ALTER_RENAME
false
DIFF00099999446
general_code_change
Python
users_691.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099999447
raw_sql_safe
SQL
customers_737.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE payments ADD COLUMN contact_email VARCHAR(255);
NONE
false
DIFF00099999448
raw_sql_destructive
SQL
refunds_239.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM users;
DELETE_UNQUALIFIED
true
DIFF00099999449
obfuscated_destructive
SQL
sessions_47.sql
schema cleanup
@@ -1,3 +1,3 @@ +update events set metadata = concat(metadata, phone);
UPDATE_CONCAT
true
DIFF00099999450
general_code_change
TypeScript
accounts_951.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
DIFF00099999451
orm_schema_change
Python
notifications_584.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='inventory', name='address')
NONE
true
DIFF00099999452
orm_schema_change
TypeScript
subscriptions_68.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Tickets { // removed field: is_active }
NONE
true
DIFF00099999453
mentioned_in_comment
Python
payments_321.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DELETE FROM payments;")
DELETE_UNQUALIFIED
false
DIFF00099999454
orm_schema_change
JavaScript
notifications_935.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('refunds', table => table.dropColumn('score'))
NONE
true
DIFF00099999455
general_code_change
JavaScript
invoices_335.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
DIFF00099999456
raw_sql_safe
SQL
accounts_172.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE reviews SET quantity = %s WHERE updated_at = %s;
NONE
false
DIFF00099999457
test_suite_cleanup
SQL
spec/customers_23.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE invoices;
TRUNCATE
false
DIFF00099999458
test_suite_cleanup
SQL
spec/employees_607.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE subscriptions RENAME COLUMN phone TO user_role;
ALTER_RENAME
false
DIFF00099999459
general_code_change
Ruby
users_171.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099999460
raw_sql_destructive
SQL
payments_248.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE employees RENAME COLUMN address TO amount_cents;
ALTER_RENAME
true
DIFF00099999461
obfuscated_destructive
SQL
accounts_127.sql
schema cleanup
@@ -1,3 +1,3 @@ +update subscriptions set updated_at = concat(updated_at, category);
UPDATE_CONCAT
true
DIFF00099999462
general_code_change
Python
accounts_350.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099999463
mentioned_in_comment
Python
reviews_110.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: DELETE FROM employees; -- now deprecated"""
DELETE_UNQUALIFIED
false
DIFF00099999464
obfuscated_destructive
SQL
orders_825.sql
schema cleanup
@@ -1,3 +1,3 @@ +altER tablE oRdeRS rEname COLumn rolE to AmouNt_CEntS;
ALTER_RENAME
true
DIFF00099999465
mentioned_in_comment
Python
reviews_285.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE accounts DROP COLUMN amount; -- now deprecated"""
DROP_COLUMN
false
DIFF00099999466
orm_schema_change
Ruby
subscriptions_649.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :shipments, :metadata
NONE
true
DIFF00099999467
raw_sql_destructive
SQL
tickets_61.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE logs DROP COLUMN order_id;
DROP_COLUMN
true
DIFF00099999468
mentioned_in_comment
Python
users_852.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DELETE FROM shipments;' manually, handled by migration tool
DELETE_UNQUALIFIED
false
DIFF00099999469
general_code_change
JavaScript
comments_109.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
DIFF00099999470
general_code_change
Python
subscriptions_798.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099999471
test_suite_cleanup
SQL
test/reviews_427.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE notifications DROP COLUMN priority;
DROP_COLUMN
false
DIFF00099999472
mentioned_in_comment
Python
logs_755.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE shipments RENAME COLUMN category TO full_name;' manually, handled by migration tool
ALTER_RENAME
false
DIFF00099999473
orm_schema_change
Ruby
orders_182.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :inventory, :category
NONE
true
DIFF00099999474
obfuscated_destructive
SQL
reviews_350.sql
schema cleanup
@@ -1,3 +1,3 @@ +truncate table comments;
TRUNCATE
true
DIFF00099999475
general_code_change
Ruby
comments_174.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099999476
general_code_change
JavaScript
employees_486.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099999477
raw_sql_safe
SQL
tickets_453.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO notifications (score, score) VALUES (%s, %s);
NONE
false
DIFF00099999478
obfuscated_destructive
SQL
events_625.sql
schema cleanup
@@ -1,3 +1,3 @@ +TRUNCATE TABLE products;
TRUNCATE
true
DIFF00099999479
raw_sql_destructive
SQL
transactions_906.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE comments;
TRUNCATE
true
DIFF00099999480
mentioned_in_comment
Python
orders_315.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: TRUNCATE TABLE refunds;")
TRUNCATE
false
DIFF00099999481
general_code_change
Ruby
transactions_622.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099999482
raw_sql_safe
SQL
logs_220.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE payments ADD COLUMN state VARCHAR(255);
NONE
false
DIFF00099999483
raw_sql_destructive
SQL
subscriptions_895.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE payments;
TRUNCATE
true
DIFF00099999484
orm_schema_change
Python
products_799.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='employees', name='description')
NONE
true
DIFF00099999485
orm_schema_change
Python
logs_479.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='events', name='created_at')
NONE
true
DIFF00099999486
test_suite_cleanup
SQL
spec/employees_145.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE tickets;
DROP_TABLE
false
DIFF00099999487
obfuscated_destructive
SQL
products_645.sql
schema cleanup
@@ -1,3 +1,3 @@ +UPDATE employees SET is_active = CONCAT(is_active, order_id);
UPDATE_CONCAT
true
DIFF00099999488
orm_schema_change
Python
sessions_492.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='subscriptions', name='user_id')
NONE
true
DIFF00099999489
raw_sql_destructive
SQL
sessions_753.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE employees RENAME COLUMN category TO contact_email;
ALTER_RENAME
true
DIFF00099999490
general_code_change
Python
payments_187.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099999491
orm_schema_change
Ruby
logs_50.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :products, :email
NONE
true
DIFF00099999492
orm_schema_change
Python
subscriptions_32.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='invoices', name='address')
NONE
true
DIFF00099999493
mentioned_in_comment
Python
refunds_440.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DROP TABLE orders;")
DROP_TABLE
false
DIFF00099999494
mentioned_in_comment
Python
notifications_746.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: DELETE FROM sessions; -- now deprecated"""
DELETE_UNQUALIFIED
false
DIFF00099999495
general_code_change
Python
transactions_374.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099999496
test_suite_cleanup
SQL
tests/refunds_201.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE products;
DROP_TABLE
false
DIFF00099999497
raw_sql_safe
SQL
refunds_659.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO transactions (order_id, updated_at) VALUES (%s, %s);
NONE
false
DIFF00099999498
orm_schema_change
TypeScript
comments_852.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Events { // removed field: order_id }
NONE
true
DIFF00099999499
raw_sql_destructive
SQL
logs_399.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE orders;
DROP_TABLE
true