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
DIFF00099993300
obfuscated_destructive
SQL
refunds_234.sql
schema cleanup
@@ -1,3 +1,3 @@ +DrOP TaBLE USeRS;
DROP_TABLE
true
DIFF00099993301
raw_sql_destructive
SQL
subscriptions_26.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE events SET amount = CONCAT(amount, description);
UPDATE_CONCAT
true
DIFF00099993302
raw_sql_safe
SQL
accounts_347.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_logs_quantity ON logs (updated_at);
NONE
false
DIFF00099993303
general_code_change
Go
events_621.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099993304
general_code_change
JavaScript
events_502.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
DIFF00099993305
general_code_change
Python
sessions_477.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099993306
test_suite_cleanup
SQL
mysql-test/suite/payments_251.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM orders;
DELETE_UNQUALIFIED
false
DIFF00099993307
raw_sql_destructive
SQL
products_287.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE transactions RENAME COLUMN created_at TO user_role;
ALTER_RENAME
true
DIFF00099993308
general_code_change
JavaScript
reviews_234.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099993309
raw_sql_destructive
SQL
sessions_202.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE customers DROP COLUMN priority;
DROP_COLUMN
true
DIFF00099993310
orm_schema_change
Python
products_886.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='employees', name='status')
NONE
true
DIFF00099993311
general_code_change
JavaScript
transactions_838.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099993312
general_code_change
JavaScript
reviews_370.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099993313
general_code_change
Java
comments_796.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099993314
raw_sql_destructive
SQL
logs_595.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE customers;
DROP_TABLE
true
DIFF00099993315
obfuscated_destructive
SQL
reviews_497.sql
schema cleanup
@@ -1,3 +1,3 @@ +DROP TABLE employees;
DROP_TABLE
true
DIFF00099993316
test_suite_cleanup
SQL
tests/invoices_294.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE users SET name = CONCAT(name, address);
UPDATE_CONCAT
false
DIFF00099993317
mentioned_in_comment
Python
payments_49.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: TRUNCATE TABLE employees;")
TRUNCATE
false
DIFF00099993318
orm_schema_change
JavaScript
invoices_609.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('reviews', 'address')
NONE
true
DIFF00099993319
raw_sql_destructive
SQL
refunds_70.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE notifications;
TRUNCATE
true
DIFF00099993320
general_code_change
JavaScript
logs_26.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099993321
raw_sql_safe
SQL
products_134.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_accounts_created_at ON accounts (order_id);
NONE
false
DIFF00099993322
test_suite_cleanup
SQL
mysql-test/suite/users_493.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE comments SET email = CONCAT(email, updated_at);
UPDATE_CONCAT
false
DIFF00099993323
raw_sql_destructive
SQL
subscriptions_861.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM inventory;
DELETE_UNQUALIFIED
true
DIFF00099993324
raw_sql_safe
SQL
tickets_517.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_products_status ON products (balance);
NONE
false
DIFF00099993325
obfuscated_destructive
SQL
invoices_156.sql
schema cleanup
@@ -1,3 +1,3 @@ +TRUNCATE TABLE customers;
TRUNCATE
true
DIFF00099993326
obfuscated_destructive
SQL
sessions_918.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLe CUsTOMeRS dROp ColUMN PHoNe;
DROP_COLUMN
true
DIFF00099993327
raw_sql_destructive
SQL
products_866.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE subscriptions;
TRUNCATE
true
DIFF00099993328
mentioned_in_comment
Python
accounts_880.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE reviews DROP COLUMN score;")
DROP_COLUMN
false
DIFF00099993329
orm_schema_change
JavaScript
shipments_747.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('accounts', table => table.dropColumn('category'))
NONE
true
DIFF00099993330
test_suite_cleanup
SQL
mysql-test/suite/tickets_380.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE employees DROP COLUMN price;
DROP_COLUMN
false
DIFF00099993331
raw_sql_destructive
SQL
products_136.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE products;
TRUNCATE
true
DIFF00099993332
obfuscated_destructive
SQL
customers_264.sql
schema cleanup
@@ -1,3 +1,3 @@ +update reviews set is_active = concat(is_active, address);
UPDATE_CONCAT
true
DIFF00099993333
test_suite_cleanup
SQL
spec/users_519.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE subscriptions SET metadata = CONCAT(metadata, name);
UPDATE_CONCAT
false
DIFF00099993334
test_suite_cleanup
SQL
spec/customers_415.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE reviews;
DROP_TABLE
false
DIFF00099993335
mentioned_in_comment
Python
customers_578.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: TRUNCATE TABLE payments;")
TRUNCATE
false
DIFF00099993336
raw_sql_safe
SQL
customers_166.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO employees (user_id, updated_at) VALUES (%s, %s);
NONE
false
DIFF00099993337
general_code_change
Python
orders_351.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099993338
orm_schema_change
JavaScript
events_657.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('sessions', table => table.dropColumn('address'))
NONE
true
DIFF00099993339
raw_sql_destructive
SQL
logs_216.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE accounts;
TRUNCATE
true
DIFF00099993340
test_suite_cleanup
SQL
mysql-test/suite/accounts_842.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE accounts SET order_id = CONCAT(order_id, name);
UPDATE_CONCAT
false
DIFF00099993341
general_code_change
JavaScript
products_733.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099993342
test_suite_cleanup
SQL
tests/comments_801.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE subscriptions SET address = CONCAT(address, priority);
UPDATE_CONCAT
false
DIFF00099993343
orm_schema_change
JavaScript
customers_219.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('orders', table => table.dropColumn('priority'))
NONE
true
DIFF00099993344
general_code_change
JavaScript
refunds_792.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
DIFF00099993345
raw_sql_safe
SQL
users_746.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE logs SET priority = %s WHERE score = %s;
NONE
false
DIFF00099993346
raw_sql_safe
SQL
products_323.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE payments SET price = %s WHERE created_at = %s;
NONE
false
DIFF00099993347
orm_schema_change
Ruby
tickets_328.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :notifications, :is_active
NONE
true
DIFF00099993348
mentioned_in_comment
Python
transactions_615.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DROP TABLE orders;' manually, handled by migration tool
DROP_TABLE
false
DIFF00099993349
orm_schema_change
TypeScript
payments_479.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Reviews { // removed field: is_active }
NONE
true
DIFF00099993350
general_code_change
JavaScript
invoices_988.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
DIFF00099993351
raw_sql_destructive
SQL
invoices_345.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE events;
DROP_TABLE
true
DIFF00099993352
raw_sql_destructive
SQL
employees_225.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE notifications SET metadata = CONCAT(metadata, category);
UPDATE_CONCAT
true
DIFF00099993353
raw_sql_destructive
SQL
reviews_418.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE invoices RENAME COLUMN is_active TO state;
ALTER_RENAME
true
DIFF00099993354
mentioned_in_comment
Python
inventory_715.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE invoices RENAME COLUMN is_active TO contact_email; -- now deprecated"""
ALTER_RENAME
false
DIFF00099993355
test_suite_cleanup
SQL
test/employees_125.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE sessions DROP COLUMN description;
DROP_COLUMN
false
DIFF00099993356
general_code_change
Ruby
reviews_118.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099993357
general_code_change
Ruby
orders_768.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099993358
orm_schema_change
Python
transactions_645.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='payments', name='category')
NONE
true
DIFF00099993359
mentioned_in_comment
Python
accounts_517.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: DELETE FROM inventory; -- now deprecated"""
DELETE_UNQUALIFIED
false
DIFF00099993360
raw_sql_destructive
SQL
orders_536.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE inventory RENAME COLUMN priority TO full_name;
ALTER_RENAME
true
DIFF00099993361
general_code_change
TypeScript
refunds_856.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
DIFF00099993362
general_code_change
JavaScript
refunds_767.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
DIFF00099993363
general_code_change
JavaScript
employees_371.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099993364
orm_schema_change
JavaScript
customers_494.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('accounts', 'balance')
NONE
true
DIFF00099993365
mentioned_in_comment
Python
inventory_876.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE accounts DROP COLUMN balance; -- now deprecated"""
DROP_COLUMN
false
DIFF00099993366
raw_sql_destructive
SQL
sessions_932.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE logs SET updated_at = CONCAT(updated_at, amount);
UPDATE_CONCAT
true
DIFF00099993367
raw_sql_safe
SQL
comments_391.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO accounts (role, phone) VALUES (%s, %s);
NONE
false
DIFF00099993368
general_code_change
JavaScript
comments_32.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
DIFF00099993369
raw_sql_safe
SQL
comments_327.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM transactions WHERE amount = 'active';
NONE
false
DIFF00099993370
general_code_change
TypeScript
payments_604.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
DIFF00099993371
test_suite_cleanup
SQL
mysql-test/suite/sessions_46.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE invoices RENAME COLUMN created_at TO contact_email;
ALTER_RENAME
false
DIFF00099993372
orm_schema_change
TypeScript
employees_404.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Transactions { // removed field: order_id }
NONE
true
DIFF00099993373
general_code_change
Ruby
invoices_620.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099993374
raw_sql_safe
SQL
employees_100.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO products (email, updated_at) VALUES (%s, %s);
NONE
false
DIFF00099993375
mentioned_in_comment
Python
inventory_379.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: TRUNCATE TABLE subscriptions; -- now deprecated"""
TRUNCATE
false
DIFF00099993376
general_code_change
Python
refunds_809.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099993377
mentioned_in_comment
Python
products_210.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE events DROP COLUMN is_active;' manually, handled by migration tool
DROP_COLUMN
false
DIFF00099993378
general_code_change
Java
products_213.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099993379
general_code_change
Python
events_426.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099993380
mentioned_in_comment
Python
invoices_192.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE comments DROP COLUMN amount;")
DROP_COLUMN
false
DIFF00099993381
general_code_change
TypeScript
sessions_955.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
DIFF00099993382
raw_sql_safe
SQL
logs_187.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM orders WHERE balance = 'active';
NONE
false
DIFF00099993383
orm_schema_change
Python
tickets_271.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='comments', name='user_id')
NONE
true
DIFF00099993384
general_code_change
TypeScript
employees_646.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
DIFF00099993385
raw_sql_safe
SQL
refunds_235.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE transactions ADD COLUMN state VARCHAR(255);
NONE
false
DIFF00099993386
orm_schema_change
Ruby
transactions_84.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :tickets, :phone
NONE
true
DIFF00099993387
raw_sql_destructive
SQL
orders_597.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE users;
TRUNCATE
true
DIFF00099993388
mentioned_in_comment
Python
sessions_368.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: DROP TABLE sessions; -- now deprecated"""
DROP_TABLE
false
DIFF00099993389
mentioned_in_comment
Python
events_848.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DROP TABLE logs;")
DROP_TABLE
false
DIFF00099993390
orm_schema_change
Python
reviews_512.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='logs', name='updated_at')
NONE
true
DIFF00099993391
raw_sql_safe
SQL
shipments_124.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_payments_quantity ON payments (balance);
NONE
false
DIFF00099993392
test_suite_cleanup
SQL
test/refunds_435.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE reviews;
DROP_TABLE
false
DIFF00099993393
orm_schema_change
Ruby
tickets_496.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :products, :updated_at
NONE
true
DIFF00099993394
general_code_change
Go
tickets_77.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099993395
raw_sql_destructive
SQL
events_415.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM products;
DELETE_UNQUALIFIED
true
DIFF00099993396
orm_schema_change
JavaScript
sessions_600.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('employees', table => table.dropColumn('balance'))
NONE
true
DIFF00099993397
orm_schema_change
Python
employees_551.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='tickets', name='price')
NONE
true
DIFF00099993398
raw_sql_safe
SQL
comments_826.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE products SET is_active = %s WHERE address = %s;
NONE
false
DIFF00099993399
general_code_change
JavaScript
notifications_952.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