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
DIFF00000000400
general_code_change
JavaScript
comments_61.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000000401
test_suite_cleanup
SQL
spec/customers_83.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE tickets DROP COLUMN metadata;
DROP_COLUMN
false
DIFF00000000402
general_code_change
Python
customers_32.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000000403
orm_schema_change
JavaScript
accounts_806.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('refunds', table => table.dropColumn('updated_at'))
NONE
true
DIFF00000000404
general_code_change
JavaScript
customers_25.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
DIFF00000000405
mentioned_in_comment
Python
products_191.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE accounts RENAME COLUMN phone TO user_role;' manually, handled by migration tool
ALTER_RENAME
false
DIFF00000000406
raw_sql_safe
SQL
notifications_144.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_invoices_user_id ON invoices (category);
NONE
false
DIFF00000000407
raw_sql_safe
SQL
accounts_654.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE transactions ADD COLUMN full_name VARCHAR(255);
NONE
false
DIFF00000000408
orm_schema_change
TypeScript
sessions_755.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Orders { // removed field: amount }
NONE
true
DIFF00000000409
raw_sql_safe
SQL
comments_985.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM customers WHERE balance = 'active';
NONE
false
DIFF00000000410
general_code_change
JavaScript
notifications_606.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000000411
raw_sql_safe
SQL
reviews_428.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM comments WHERE category = 'active';
NONE
false
DIFF00000000412
raw_sql_destructive
SQL
transactions_188.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE accounts;
DROP_TABLE
true
DIFF00000000413
general_code_change
TypeScript
tickets_389.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
DIFF00000000414
orm_schema_change
Ruby
tickets_269.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :accounts, :phone
NONE
true
DIFF00000000415
obfuscated_destructive
SQL
customers_858.sql
schema cleanup
@@ -1,3 +1,3 @@ +TRUNCATE TABLE accounts;
TRUNCATE
true
DIFF00000000416
mentioned_in_comment
Python
invoices_902.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE notifications RENAME COLUMN amount TO contact_email;' manually, handled by migration tool
ALTER_RENAME
false
DIFF00000000417
raw_sql_safe
SQL
shipments_107.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM payments WHERE metadata = 'active';
NONE
false
DIFF00000000418
general_code_change
Python
tickets_148.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000000419
obfuscated_destructive
SQL
refunds_946.sql
schema cleanup
@@ -1,3 +1,3 @@ +TRUNCATE TABLE logs;
TRUNCATE
true
DIFF00000000420
mentioned_in_comment
Python
orders_967.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'UPDATE subscriptions SET phone = CONCAT(phone, amount);' manually, handled by migration tool
UPDATE_CONCAT
false
DIFF00000000421
raw_sql_safe
SQL
shipments_501.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_users_score ON users (email);
NONE
false
DIFF00000000422
orm_schema_change
JavaScript
invoices_767.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('products', 'address')
NONE
true
DIFF00000000423
raw_sql_safe
SQL
shipments_748.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE inventory SET role = %s WHERE email = %s;
NONE
false
DIFF00000000424
general_code_change
Python
comments_351.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000000425
raw_sql_safe
SQL
payments_138.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO logs (amount, category) VALUES (%s, %s);
NONE
false
DIFF00000000426
orm_schema_change
Ruby
customers_139.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :payments, :amount
NONE
true
DIFF00000000427
general_code_change
Ruby
refunds_583.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000000428
test_suite_cleanup
SQL
test/refunds_245.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE payments SET amount = CONCAT(amount, phone);
UPDATE_CONCAT
false
DIFF00000000429
test_suite_cleanup
SQL
spec/invoices_470.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM comments;
DELETE_UNQUALIFIED
false
DIFF00000000430
general_code_change
TypeScript
events_839.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
DIFF00000000431
general_code_change
Java
reviews_368.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000000432
raw_sql_safe
SQL
logs_22.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM employees WHERE category = 'active';
NONE
false
DIFF00000000433
general_code_change
Java
payments_10.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000000434
general_code_change
JavaScript
notifications_22.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000000435
mentioned_in_comment
Python
payments_30.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE users DROP COLUMN is_active;' manually, handled by migration tool
DROP_COLUMN
false
DIFF00000000436
general_code_change
TypeScript
invoices_890.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
DIFF00000000437
test_suite_cleanup
SQL
spec/sessions_384.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE products RENAME COLUMN is_active TO state;
ALTER_RENAME
false
DIFF00000000438
raw_sql_safe
SQL
employees_905.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM payments WHERE priority = 'active';
NONE
false
DIFF00000000439
orm_schema_change
TypeScript
accounts_299.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Orders { // removed field: name }
NONE
true
DIFF00000000440
mentioned_in_comment
Python
payments_812.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DROP TABLE products;' manually, handled by migration tool
DROP_TABLE
false
DIFF00000000441
raw_sql_safe
SQL
sessions_98.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO events (category, is_active) VALUES (%s, %s);
NONE
false
DIFF00000000442
raw_sql_destructive
SQL
users_611.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE shipments;
DROP_TABLE
true
DIFF00000000443
raw_sql_safe
SQL
accounts_204.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM subscriptions WHERE name = 'active';
NONE
false
DIFF00000000444
orm_schema_change
JavaScript
transactions_94.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('users', table => table.dropColumn('created_at'))
NONE
true
DIFF00000000445
general_code_change
Python
tickets_916.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000000446
orm_schema_change
TypeScript
users_596.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Logs { // removed field: quantity }
NONE
true
DIFF00000000447
raw_sql_destructive
SQL
tickets_455.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM users;
DELETE_UNQUALIFIED
true
DIFF00000000448
test_suite_cleanup
SQL
tests/logs_81.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE events;
DROP_TABLE
false
DIFF00000000449
raw_sql_destructive
SQL
users_585.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE subscriptions RENAME COLUMN quantity TO state;
ALTER_RENAME
true
DIFF00000000450
raw_sql_destructive
SQL
comments_875.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE customers RENAME COLUMN updated_at TO amount_cents;
ALTER_RENAME
true
DIFF00000000451
general_code_change
Java
refunds_853.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000000452
raw_sql_destructive
SQL
tickets_745.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE products;
DROP_TABLE
true
DIFF00000000453
general_code_change
Python
notifications_822.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000000454
general_code_change
Python
inventory_49.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000000455
orm_schema_change
Ruby
shipments_776.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :customers, :balance
NONE
true
DIFF00000000456
orm_schema_change
JavaScript
reviews_890.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('subscriptions', 'description')
NONE
true
DIFF00000000457
test_suite_cleanup
SQL
spec/transactions_356.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE users DROP COLUMN price;
DROP_COLUMN
false
DIFF00000000458
mentioned_in_comment
Python
reviews_155.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: UPDATE comments SET score = CONCAT(score, role); -- now deprecated"""
UPDATE_CONCAT
false
DIFF00000000459
orm_schema_change
JavaScript
users_857.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('subscriptions', table => table.dropColumn('metadata'))
NONE
true
DIFF00000000460
obfuscated_destructive
SQL
payments_148.sql
schema cleanup
@@ -1,3 +1,3 @@ +DELETE FROM reviews;
DELETE_UNQUALIFIED
true
DIFF00000000461
mentioned_in_comment
Python
users_614.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: TRUNCATE TABLE subscriptions;")
TRUNCATE
false
DIFF00000000462
general_code_change
TypeScript
customers_613.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
DIFF00000000463
raw_sql_safe
SQL
transactions_404.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM employees WHERE address = 'active';
NONE
false
DIFF00000000464
orm_schema_change
JavaScript
invoices_644.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('employees', table => table.dropColumn('email'))
NONE
true
DIFF00000000465
mentioned_in_comment
Python
shipments_848.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE logs RENAME COLUMN score TO amount_cents;' manually, handled by migration tool
ALTER_RENAME
false
DIFF00000000466
general_code_change
Ruby
accounts_875.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000000467
general_code_change
Java
tickets_393.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000000468
obfuscated_destructive
SQL
tickets_408.sql
schema cleanup
@@ -1,3 +1,3 @@ +alteR TABlE eVEnTs reNAME colUmn aMOUnT TO UsER_role;
ALTER_RENAME
true
DIFF00000000469
test_suite_cleanup
SQL
mysql-test/suite/payments_471.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE events RENAME COLUMN quantity TO state;
ALTER_RENAME
false
DIFF00000000470
orm_schema_change
JavaScript
accounts_501.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('events', table => table.dropColumn('description'))
NONE
true
DIFF00000000471
raw_sql_destructive
SQL
comments_556.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE sessions RENAME COLUMN description TO contact_email;
ALTER_RENAME
true
DIFF00000000472
test_suite_cleanup
SQL
mysql-test/suite/comments_530.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE transactions DROP COLUMN is_active;
DROP_COLUMN
false
DIFF00000000473
orm_schema_change
TypeScript
sessions_681.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Transactions { // removed field: role }
NONE
true
DIFF00000000474
general_code_change
Ruby
invoices_269.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000000475
orm_schema_change
Python
notifications_32.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='shipments', name='phone')
NONE
true
DIFF00000000476
raw_sql_destructive
SQL
events_538.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE reviews;
TRUNCATE
true
DIFF00000000477
orm_schema_change
Python
customers_184.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='notifications', name='name')
NONE
true
DIFF00000000478
orm_schema_change
Python
invoices_829.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='invoices', name='balance')
NONE
true
DIFF00000000479
raw_sql_safe
SQL
shipments_234.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE payments ADD COLUMN user_role VARCHAR(255);
NONE
false
DIFF00000000480
raw_sql_destructive
SQL
products_787.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE payments;
TRUNCATE
true
DIFF00000000481
general_code_change
JavaScript
reviews_184.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
DIFF00000000482
raw_sql_safe
SQL
refunds_719.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM comments WHERE status = 'active';
NONE
false
DIFF00000000483
test_suite_cleanup
SQL
spec/refunds_274.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE customers RENAME COLUMN address TO contact_email;
ALTER_RENAME
false
DIFF00000000484
raw_sql_destructive
SQL
subscriptions_993.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE customers RENAME COLUMN is_active TO amount_cents;
ALTER_RENAME
true
DIFF00000000485
raw_sql_safe
SQL
reviews_448.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE products SET balance = %s WHERE updated_at = %s;
NONE
false
DIFF00000000486
obfuscated_destructive
SQL
sessions_466.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE customers RENAME COLUMN balance TO user_role;
ALTER_RENAME
true
DIFF00000000487
mentioned_in_comment
Python
customers_740.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: UPDATE sessions SET is_active = CONCAT(is_active, status); -- now deprecated"""
UPDATE_CONCAT
false
DIFF00000000488
test_suite_cleanup
SQL
tests/logs_957.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE notifications DROP COLUMN price;
DROP_COLUMN
false
DIFF00000000489
general_code_change
TypeScript
reviews_25.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
DIFF00000000490
raw_sql_safe
SQL
tickets_554.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE invoices ADD COLUMN full_name VARCHAR(255);
NONE
false
DIFF00000000491
raw_sql_destructive
SQL
comments_881.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE invoices RENAME COLUMN address TO contact_email;
ALTER_RENAME
true
DIFF00000000492
raw_sql_destructive
SQL
comments_344.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE orders DROP COLUMN address;
DROP_COLUMN
true
DIFF00000000493
raw_sql_safe
SQL
employees_508.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_subscriptions_metadata ON subscriptions (phone);
NONE
false
DIFF00000000494
orm_schema_change
JavaScript
refunds_994.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('events', table => table.dropColumn('metadata'))
NONE
true
DIFF00000000495
general_code_change
JavaScript
reviews_848.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
DIFF00000000496
general_code_change
JavaScript
customers_715.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
DIFF00000000497
raw_sql_destructive
SQL
invoices_715.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE notifications DROP COLUMN priority;
DROP_COLUMN
true
DIFF00000000498
general_code_change
Python
payments_959.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000000499
general_code_change
Python
notifications_871.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false