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
DIFF00000005300
raw_sql_safe
SQL
orders_607.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE reviews ADD COLUMN contact_email VARCHAR(255);
NONE
false
DIFF00000005301
raw_sql_safe
SQL
events_533.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM tickets WHERE role = 'active';
NONE
false
DIFF00000005302
raw_sql_safe
SQL
accounts_635.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE tickets ADD COLUMN state VARCHAR(255);
NONE
false
DIFF00000005303
orm_schema_change
Python
reviews_76.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='comments', name='order_id')
NONE
true
DIFF00000005304
raw_sql_safe
SQL
invoices_685.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO users (updated_at, description) VALUES (%s, %s);
NONE
false
DIFF00000005305
orm_schema_change
TypeScript
products_142.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Customers { // removed field: role }
NONE
true
DIFF00000005306
general_code_change
Java
users_47.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000005307
obfuscated_destructive
SQL
orders_431.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE comments RENAME COLUMN quantity TO state;
ALTER_RENAME
true
DIFF00000005308
raw_sql_destructive
SQL
shipments_693.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE transactions SET address = CONCAT(address, category);
UPDATE_CONCAT
true
DIFF00000005309
raw_sql_safe
SQL
events_621.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE tickets ADD COLUMN full_name VARCHAR(255);
NONE
false
DIFF00000005310
raw_sql_destructive
SQL
customers_553.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE users RENAME COLUMN score TO user_role;
ALTER_RENAME
true
DIFF00000005311
raw_sql_safe
SQL
reviews_377.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM inventory WHERE address = 'active';
NONE
false
DIFF00000005312
raw_sql_destructive
SQL
users_228.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE reviews RENAME COLUMN email TO full_name;
ALTER_RENAME
true
DIFF00000005313
raw_sql_safe
SQL
sessions_171.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO invoices (priority, user_id) VALUES (%s, %s);
NONE
false
DIFF00000005314
raw_sql_safe
SQL
inventory_380.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE sessions SET order_id = %s WHERE user_id = %s;
NONE
false
DIFF00000005315
raw_sql_safe
SQL
transactions_520.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE comments SET order_id = %s WHERE name = %s;
NONE
false
DIFF00000005316
general_code_change
TypeScript
logs_390.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
DIFF00000005317
general_code_change
Python
comments_292.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000005318
general_code_change
Java
accounts_405.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000005319
general_code_change
JavaScript
refunds_918.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
DIFF00000005320
raw_sql_safe
SQL
tickets_353.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE refunds SET priority = %s WHERE priority = %s;
NONE
false
DIFF00000005321
orm_schema_change
Python
sessions_665.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='customers', name='updated_at')
NONE
true
DIFF00000005322
general_code_change
Go
employees_524.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000005323
raw_sql_safe
SQL
users_970.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE customers SET description = %s WHERE priority = %s;
NONE
false
DIFF00000005324
mentioned_in_comment
Python
tickets_794.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DROP TABLE notifications;")
DROP_TABLE
false
DIFF00000005325
mentioned_in_comment
Python
events_703.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DELETE FROM events;' manually, handled by migration tool
DELETE_UNQUALIFIED
false
DIFF00000005326
obfuscated_destructive
SQL
users_323.sql
schema cleanup
@@ -1,3 +1,3 @@ +DELETE FROM payments;
DELETE_UNQUALIFIED
true
DIFF00000005327
raw_sql_safe
SQL
comments_104.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_users_amount ON users (score);
NONE
false
DIFF00000005328
obfuscated_destructive
SQL
sessions_976.sql
schema cleanup
@@ -1,3 +1,3 @@ +alter table employees rename column description to contact_email;
ALTER_RENAME
true
DIFF00000005329
mentioned_in_comment
Python
customers_1.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE comments DROP COLUMN order_id;' manually, handled by migration tool
DROP_COLUMN
false
DIFF00000005330
test_suite_cleanup
SQL
tests/employees_108.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE subscriptions DROP COLUMN address;
DROP_COLUMN
false
DIFF00000005331
obfuscated_destructive
SQL
accounts_898.sql
schema cleanup
@@ -1,3 +1,3 @@ +DROP TABLE tickets;
DROP_TABLE
true
DIFF00000005332
raw_sql_destructive
SQL
transactions_854.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE notifications DROP COLUMN status;
DROP_COLUMN
true
DIFF00000005333
raw_sql_destructive
SQL
events_902.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE orders;
TRUNCATE
true
DIFF00000005334
general_code_change
Java
tickets_808.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000005335
mentioned_in_comment
Python
inventory_145.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE logs RENAME COLUMN description TO state;' manually, handled by migration tool
ALTER_RENAME
false
DIFF00000005336
mentioned_in_comment
Python
invoices_850.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE tickets DROP COLUMN category;' manually, handled by migration tool
DROP_COLUMN
false
DIFF00000005337
orm_schema_change
JavaScript
employees_776.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('shipments', table => table.dropColumn('priority'))
NONE
true
DIFF00000005338
general_code_change
JavaScript
reviews_559.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
DIFF00000005339
test_suite_cleanup
SQL
tests/logs_205.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE invoices RENAME COLUMN status TO amount_cents;
ALTER_RENAME
false
DIFF00000005340
test_suite_cleanup
SQL
spec/reviews_685.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE invoices;
TRUNCATE
false
DIFF00000005341
raw_sql_safe
SQL
subscriptions_540.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM users WHERE price = 'active';
NONE
false
DIFF00000005342
raw_sql_safe
SQL
accounts_112.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO tickets (phone, category) VALUES (%s, %s);
NONE
false
DIFF00000005343
raw_sql_safe
SQL
customers_907.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM events WHERE order_id = 'active';
NONE
false
DIFF00000005344
orm_schema_change
Python
employees_666.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='transactions', name='name')
NONE
true
DIFF00000005345
general_code_change
TypeScript
payments_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
DIFF00000005346
obfuscated_destructive
SQL
accounts_988.sql
schema cleanup
@@ -1,3 +1,3 @@ +DROP TABLE employees;
DROP_TABLE
true
DIFF00000005347
orm_schema_change
JavaScript
comments_506.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('transactions', table => table.dropColumn('created_at'))
NONE
true
DIFF00000005348
test_suite_cleanup
SQL
mysql-test/suite/events_402.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE invoices;
DROP_TABLE
false
DIFF00000005349
general_code_change
TypeScript
users_209.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
DIFF00000005350
obfuscated_destructive
SQL
users_174.sql
schema cleanup
@@ -1,3 +1,3 @@ +DROP TABLE transactions;
DROP_TABLE
true
DIFF00000005351
orm_schema_change
JavaScript
tickets_948.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('shipments', 'score')
NONE
true
DIFF00000005352
orm_schema_change
TypeScript
accounts_421.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Notifications { // removed field: user_id }
NONE
true
DIFF00000005353
raw_sql_destructive
SQL
tickets_604.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE logs;
TRUNCATE
true
DIFF00000005354
raw_sql_destructive
SQL
shipments_988.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE events DROP COLUMN address;
DROP_COLUMN
true
DIFF00000005355
test_suite_cleanup
SQL
tests/invoices_770.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE employees SET description = CONCAT(description, name);
UPDATE_CONCAT
false
DIFF00000005356
orm_schema_change
TypeScript
notifications_182.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Notifications { // removed field: score }
NONE
true
DIFF00000005357
raw_sql_safe
SQL
invoices_524.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM events WHERE created_at = 'active';
NONE
false
DIFF00000005358
obfuscated_destructive
SQL
products_340.sql
schema cleanup
@@ -1,3 +1,3 @@ +TRUNCATE TABLE comments;
TRUNCATE
true
DIFF00000005359
test_suite_cleanup
SQL
mysql-test/suite/refunds_784.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE shipments SET metadata = CONCAT(metadata, priority);
UPDATE_CONCAT
false
DIFF00000005360
test_suite_cleanup
SQL
tests/shipments_347.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE employees;
DROP_TABLE
false
DIFF00000005361
raw_sql_destructive
SQL
reviews_781.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE subscriptions;
TRUNCATE
true
DIFF00000005362
obfuscated_destructive
SQL
transactions_387.sql
schema cleanup
@@ -1,3 +1,3 @@ +DElEte fROm tiCkEts;
DELETE_UNQUALIFIED
true
DIFF00000005363
raw_sql_safe
SQL
logs_507.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO notifications (amount, created_at) VALUES (%s, %s);
NONE
false
DIFF00000005364
raw_sql_destructive
SQL
inventory_94.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE products DROP COLUMN phone;
DROP_COLUMN
true
DIFF00000005365
general_code_change
Ruby
employees_546.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000005366
mentioned_in_comment
Python
events_77.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: TRUNCATE TABLE inventory;")
TRUNCATE
false
DIFF00000005367
obfuscated_destructive
SQL
events_184.sql
schema cleanup
@@ -1,3 +1,3 @@ +DELETE FROM payments;
DELETE_UNQUALIFIED
true
DIFF00000005368
raw_sql_destructive
SQL
reviews_882.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM employees;
DELETE_UNQUALIFIED
true
DIFF00000005369
general_code_change
Java
products_75.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000005370
test_suite_cleanup
SQL
mysql-test/suite/transactions_319.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE sessions RENAME COLUMN order_id TO contact_email;
ALTER_RENAME
false
DIFF00000005371
general_code_change
Ruby
events_651.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000005372
general_code_change
Python
inventory_661.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000005373
raw_sql_safe
SQL
subscriptions_779.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE users SET category = %s WHERE address = %s;
NONE
false
DIFF00000005374
orm_schema_change
Python
notifications_337.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='employees', name='user_id')
NONE
true
DIFF00000005375
orm_schema_change
JavaScript
payments_616.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('invoices', 'metadata')
NONE
true
DIFF00000005376
raw_sql_safe
SQL
subscriptions_425.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM inventory WHERE quantity = 'active';
NONE
false
DIFF00000005377
general_code_change
TypeScript
logs_35.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
DIFF00000005378
general_code_change
JavaScript
products_192.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000005379
raw_sql_destructive
SQL
products_381.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE accounts;
DROP_TABLE
true
DIFF00000005380
mentioned_in_comment
Python
transactions_705.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DELETE FROM notifications;")
DELETE_UNQUALIFIED
false
DIFF00000005381
general_code_change
JavaScript
transactions_487.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
DIFF00000005382
raw_sql_safe
SQL
customers_371.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE invoices ADD COLUMN amount_cents VARCHAR(255);
NONE
false
DIFF00000005383
obfuscated_destructive
SQL
refunds_315.sql
schema cleanup
@@ -1,3 +1,3 @@ +DROP TABLE tickets;
DROP_TABLE
true
DIFF00000005384
test_suite_cleanup
SQL
spec/notifications_517.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE notifications SET created_at = CONCAT(created_at, is_active);
UPDATE_CONCAT
false
DIFF00000005385
mentioned_in_comment
Python
orders_441.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE refunds RENAME COLUMN address TO full_name;' manually, handled by migration tool
ALTER_RENAME
false
DIFF00000005386
raw_sql_destructive
SQL
inventory_584.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE subscriptions;
TRUNCATE
true
DIFF00000005387
orm_schema_change
TypeScript
sessions_439.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Products { // removed field: order_id }
NONE
true
DIFF00000005388
mentioned_in_comment
Python
reviews_310.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DELETE FROM reviews;' manually, handled by migration tool
DELETE_UNQUALIFIED
false
DIFF00000005389
orm_schema_change
Ruby
refunds_14.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :users, :amount
NONE
true
DIFF00000005390
raw_sql_safe
SQL
transactions_274.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO products (metadata, priority) VALUES (%s, %s);
NONE
false
DIFF00000005391
obfuscated_destructive
SQL
events_684.sql
schema cleanup
@@ -1,3 +1,3 @@ +TRUNCATE TABLE payments;
TRUNCATE
true
DIFF00000005392
general_code_change
TypeScript
orders_605.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
DIFF00000005393
orm_schema_change
Ruby
accounts_909.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :inventory, :priority
NONE
true
DIFF00000005394
raw_sql_destructive
SQL
tickets_309.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE tickets;
TRUNCATE
true
DIFF00000005395
obfuscated_destructive
SQL
inventory_738.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE users DROP COLUMN metadata;
DROP_COLUMN
true
DIFF00000005396
orm_schema_change
Python
orders_798.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='payments', name='description')
NONE
true
DIFF00000005397
general_code_change
Java
reviews_219.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000005398
raw_sql_safe
SQL
logs_716.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE payments ADD COLUMN user_role VARCHAR(255);
NONE
false
DIFF00000005399
obfuscated_destructive
SQL
customers_515.sql
schema cleanup
@@ -1,3 +1,3 @@ +DROP TABLE comments;
DROP_TABLE
true