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
DIFF00000008300
orm_schema_change
JavaScript
payments_467.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('subscriptions', table => table.dropColumn('metadata'))
NONE
true
DIFF00000008301
general_code_change
JavaScript
events_211.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000008302
test_suite_cleanup
SQL
spec/payments_615.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE customers RENAME COLUMN email TO user_role;
ALTER_RENAME
false
DIFF00000008303
general_code_change
Python
notifications_588.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000008304
raw_sql_destructive
SQL
shipments_704.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE shipments;
DROP_TABLE
true
DIFF00000008305
general_code_change
Java
products_337.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000008306
raw_sql_destructive
SQL
products_968.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE comments SET description = CONCAT(description, price);
UPDATE_CONCAT
true
DIFF00000008307
orm_schema_change
Python
notifications_871.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='notifications', name='address')
NONE
true
DIFF00000008308
obfuscated_destructive
SQL
shipments_930.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE shipments DROP COLUMN price;
DROP_COLUMN
true
DIFF00000008309
mentioned_in_comment
Python
reviews_986.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DELETE FROM transactions;' manually, handled by migration tool
DELETE_UNQUALIFIED
false
DIFF00000008310
raw_sql_destructive
SQL
reviews_199.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE notifications;
DROP_TABLE
true
DIFF00000008311
test_suite_cleanup
SQL
spec/shipments_363.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE orders;
DROP_TABLE
false
DIFF00000008312
test_suite_cleanup
SQL
spec/comments_161.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE comments RENAME COLUMN address TO contact_email;
ALTER_RENAME
false
DIFF00000008313
raw_sql_destructive
SQL
sessions_501.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE logs SET amount = CONCAT(amount, category);
UPDATE_CONCAT
true
DIFF00000008314
raw_sql_destructive
SQL
products_925.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE reviews;
TRUNCATE
true
DIFF00000008315
raw_sql_safe
SQL
payments_935.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO comments (score, order_id) VALUES (%s, %s);
NONE
false
DIFF00000008316
raw_sql_safe
SQL
shipments_152.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO products (updated_at, order_id) VALUES (%s, %s);
NONE
false
DIFF00000008317
general_code_change
Python
users_667.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000008318
test_suite_cleanup
SQL
tests/invoices_346.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE transactions;
TRUNCATE
false
DIFF00000008319
orm_schema_change
Ruby
reviews_447.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :reviews, :updated_at
NONE
true
DIFF00000008320
orm_schema_change
Python
shipments_470.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='payments', name='quantity')
NONE
true
DIFF00000008321
mentioned_in_comment
Python
sessions_931.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DELETE FROM employees;")
DELETE_UNQUALIFIED
false
DIFF00000008322
test_suite_cleanup
SQL
test/users_387.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE inventory DROP COLUMN updated_at;
DROP_COLUMN
false
DIFF00000008323
obfuscated_destructive
SQL
customers_638.sql
schema cleanup
@@ -1,3 +1,3 @@ +TRUNCATE TABLE invoices;
TRUNCATE
true
DIFF00000008324
raw_sql_safe
SQL
notifications_672.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE logs ADD COLUMN state VARCHAR(255);
NONE
false
DIFF00000008325
general_code_change
TypeScript
users_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
DIFF00000008326
raw_sql_safe
SQL
comments_57.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE events ADD COLUMN state VARCHAR(255);
NONE
false
DIFF00000008327
test_suite_cleanup
SQL
spec/payments_73.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE tickets SET is_active = CONCAT(is_active, role);
UPDATE_CONCAT
false
DIFF00000008328
obfuscated_destructive
SQL
orders_538.sql
schema cleanup
@@ -1,3 +1,3 @@ +drop table users;
DROP_TABLE
true
DIFF00000008329
general_code_change
TypeScript
logs_301.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
DIFF00000008330
raw_sql_destructive
SQL
reviews_304.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE events;
DROP_TABLE
true
DIFF00000008331
test_suite_cleanup
SQL
mysql-test/suite/inventory_5.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE products DROP COLUMN balance;
DROP_COLUMN
false
DIFF00000008332
orm_schema_change
JavaScript
invoices_53.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('tickets', table => table.dropColumn('description'))
NONE
true
DIFF00000008333
raw_sql_safe
SQL
payments_540.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM users WHERE amount = 'active';
NONE
false
DIFF00000008334
orm_schema_change
Ruby
refunds_543.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :reviews, :amount
NONE
true
DIFF00000008335
orm_schema_change
JavaScript
refunds_821.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('logs', 'metadata')
NONE
true
DIFF00000008336
raw_sql_safe
SQL
subscriptions_477.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE customers ADD COLUMN full_name VARCHAR(255);
NONE
false
DIFF00000008337
obfuscated_destructive
SQL
employees_497.sql
schema cleanup
@@ -1,3 +1,3 @@ +UPDATE logs SET created_at = CONCAT(created_at, user_id);
UPDATE_CONCAT
true
DIFF00000008338
raw_sql_destructive
SQL
refunds_93.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE shipments;
DROP_TABLE
true
DIFF00000008339
orm_schema_change
Ruby
tickets_220.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :employees, :description
NONE
true
DIFF00000008340
obfuscated_destructive
SQL
products_344.sql
schema cleanup
@@ -1,3 +1,3 @@ +AlTeR TaBLE RevIEwS reNaMe coLumn CategorY To useR_ROLE;
ALTER_RENAME
true
DIFF00000008341
mentioned_in_comment
Python
transactions_547.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: UPDATE customers SET price = CONCAT(price, category);")
UPDATE_CONCAT
false
DIFF00000008342
raw_sql_safe
SQL
payments_404.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_events_priority ON events (created_at);
NONE
false
DIFF00000008343
obfuscated_destructive
SQL
employees_450.sql
schema cleanup
@@ -1,3 +1,3 @@ +droP TaBLE sHiPMEntS;
DROP_TABLE
true
DIFF00000008344
general_code_change
JavaScript
tickets_914.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000008345
raw_sql_destructive
SQL
reviews_490.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE shipments SET price = CONCAT(price, quantity);
UPDATE_CONCAT
true
DIFF00000008346
test_suite_cleanup
SQL
test/transactions_153.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE customers;
TRUNCATE
false
DIFF00000008347
raw_sql_destructive
SQL
comments_910.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE transactions RENAME COLUMN metadata TO amount_cents;
ALTER_RENAME
true
DIFF00000008348
general_code_change
JavaScript
customers_885.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000008349
general_code_change
Ruby
employees_5.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000008350
orm_schema_change
JavaScript
payments_441.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('sessions', 'category')
NONE
true
DIFF00000008351
general_code_change
Go
users_662.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000008352
orm_schema_change
JavaScript
refunds_489.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('subscriptions', table => table.dropColumn('metadata'))
NONE
true
DIFF00000008353
raw_sql_safe
SQL
tickets_452.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO logs (metadata, email) VALUES (%s, %s);
NONE
false
DIFF00000008354
raw_sql_destructive
SQL
users_87.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE logs;
TRUNCATE
true
DIFF00000008355
general_code_change
Python
reviews_516.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000008356
mentioned_in_comment
Python
sessions_501.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: UPDATE products SET created_at = CONCAT(created_at, status); -- now deprecated"""
UPDATE_CONCAT
false
DIFF00000008357
raw_sql_destructive
SQL
invoices_547.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE invoices DROP COLUMN address;
DROP_COLUMN
true
DIFF00000008358
orm_schema_change
JavaScript
payments_869.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('subscriptions', 'phone')
NONE
true
DIFF00000008359
test_suite_cleanup
SQL
test/customers_714.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM users;
DELETE_UNQUALIFIED
false
DIFF00000008360
test_suite_cleanup
SQL
test/sessions_582.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM sessions;
DELETE_UNQUALIFIED
false
DIFF00000008361
general_code_change
Python
employees_336.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000008362
general_code_change
Python
events_445.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000008363
test_suite_cleanup
SQL
spec/logs_721.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE shipments DROP COLUMN address;
DROP_COLUMN
false
DIFF00000008364
general_code_change
Python
payments_788.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000008365
mentioned_in_comment
Python
products_300.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DELETE FROM accounts;")
DELETE_UNQUALIFIED
false
DIFF00000008366
raw_sql_safe
SQL
invoices_166.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE reviews SET priority = %s WHERE status = %s;
NONE
false
DIFF00000008367
general_code_change
Python
products_795.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000008368
raw_sql_destructive
SQL
payments_199.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE accounts RENAME COLUMN score TO user_role;
ALTER_RENAME
true
DIFF00000008369
general_code_change
Go
inventory_628.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000008370
general_code_change
TypeScript
users_490.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
DIFF00000008371
orm_schema_change
Ruby
orders_184.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :transactions, :phone
NONE
true
DIFF00000008372
raw_sql_safe
SQL
reviews_813.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_payments_amount ON payments (user_id);
NONE
false
DIFF00000008373
raw_sql_safe
SQL
transactions_477.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE logs ADD COLUMN user_role VARCHAR(255);
NONE
false
DIFF00000008374
orm_schema_change
Ruby
events_386.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :transactions, :description
NONE
true
DIFF00000008375
obfuscated_destructive
SQL
tickets_298.sql
schema cleanup
@@ -1,3 +1,3 @@ +DELETE FROM tickets;
DELETE_UNQUALIFIED
true
DIFF00000008376
general_code_change
JavaScript
payments_970.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
DIFF00000008377
general_code_change
Ruby
inventory_872.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000008378
mentioned_in_comment
Python
tickets_810.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE accounts DROP COLUMN name;' manually, handled by migration tool
DROP_COLUMN
false
DIFF00000008379
general_code_change
Java
payments_234.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000008380
orm_schema_change
JavaScript
inventory_585.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('products', 'description')
NONE
true
DIFF00000008381
general_code_change
Python
reviews_541.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000008382
general_code_change
Java
comments_726.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000008383
general_code_change
JavaScript
shipments_289.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
DIFF00000008384
raw_sql_destructive
SQL
orders_14.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE tickets;
TRUNCATE
true
DIFF00000008385
mentioned_in_comment
Python
events_903.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DROP TABLE subscriptions;")
DROP_TABLE
false
DIFF00000008386
general_code_change
Go
inventory_917.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000008387
obfuscated_destructive
SQL
payments_69.sql
schema cleanup
@@ -1,3 +1,3 @@ +delete from sessions;
DELETE_UNQUALIFIED
true
DIFF00000008388
test_suite_cleanup
SQL
test/products_598.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE transactions;
DROP_TABLE
false
DIFF00000008389
raw_sql_safe
SQL
notifications_766.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE orders ADD COLUMN state VARCHAR(255);
NONE
false
DIFF00000008390
raw_sql_destructive
SQL
products_962.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE users RENAME COLUMN amount TO full_name;
ALTER_RENAME
true
DIFF00000008391
general_code_change
TypeScript
logs_574.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
DIFF00000008392
general_code_change
Go
reviews_614.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000008393
general_code_change
TypeScript
invoices_249.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
DIFF00000008394
mentioned_in_comment
Python
employees_135.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'TRUNCATE TABLE invoices;' manually, handled by migration tool
TRUNCATE
false
DIFF00000008395
raw_sql_destructive
SQL
subscriptions_55.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE customers DROP COLUMN description;
DROP_COLUMN
true
DIFF00000008396
mentioned_in_comment
Python
subscriptions_569.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: DROP TABLE payments; -- now deprecated"""
DROP_TABLE
false
DIFF00000008397
orm_schema_change
JavaScript
inventory_736.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('subscriptions', table => table.dropColumn('priority'))
NONE
true
DIFF00000008398
orm_schema_change
JavaScript
invoices_621.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('subscriptions', 'address')
NONE
true
DIFF00000008399
general_code_change
Java
notifications_879.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false