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
DIFF00000002200
obfuscated_destructive
SQL
invoices_194.sql
schema cleanup
@@ -1,3 +1,3 @@ +delete from inventory;
DELETE_UNQUALIFIED
true
DIFF00000002201
mentioned_in_comment
Python
notifications_130.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: UPDATE tickets SET balance = CONCAT(balance, balance);")
UPDATE_CONCAT
false
DIFF00000002202
mentioned_in_comment
Python
refunds_369.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DROP TABLE transactions;' manually, handled by migration tool
DROP_TABLE
false
DIFF00000002203
obfuscated_destructive
SQL
accounts_815.sql
schema cleanup
@@ -1,3 +1,3 @@ +UPdaTe USers Set PHOne = coNcat(pHone, EMaiL);
UPDATE_CONCAT
true
DIFF00000002204
test_suite_cleanup
SQL
spec/reviews_198.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE customers;
TRUNCATE
false
DIFF00000002205
raw_sql_destructive
SQL
invoices_317.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE users;
TRUNCATE
true
DIFF00000002206
general_code_change
JavaScript
accounts_51.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
DIFF00000002207
orm_schema_change
JavaScript
subscriptions_730.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('inventory', table => table.dropColumn('category'))
NONE
true
DIFF00000002208
mentioned_in_comment
Python
events_411.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DROP TABLE reviews;")
DROP_TABLE
false
DIFF00000002209
mentioned_in_comment
Python
comments_445.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: UPDATE shipments SET metadata = CONCAT(metadata, email); -- now deprecated"""
UPDATE_CONCAT
false
DIFF00000002210
test_suite_cleanup
SQL
mysql-test/suite/tickets_584.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE events SET user_id = CONCAT(user_id, description);
UPDATE_CONCAT
false
DIFF00000002211
general_code_change
JavaScript
refunds_978.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
DIFF00000002212
obfuscated_destructive
SQL
sessions_318.sql
schema cleanup
@@ -1,3 +1,3 @@ +DROP TABLE notifications;
DROP_TABLE
true
DIFF00000002213
orm_schema_change
TypeScript
customers_242.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Reviews { // removed field: role }
NONE
true
DIFF00000002214
raw_sql_destructive
SQL
subscriptions_514.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE shipments DROP COLUMN metadata;
DROP_COLUMN
true
DIFF00000002215
general_code_change
Python
tickets_525.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000002216
mentioned_in_comment
Python
customers_334.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE accounts RENAME COLUMN status TO amount_cents;")
ALTER_RENAME
false
DIFF00000002217
orm_schema_change
JavaScript
comments_300.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('sessions', table => table.dropColumn('amount'))
NONE
true
DIFF00000002218
general_code_change
Go
notifications_250.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000002219
mentioned_in_comment
Python
notifications_602.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE refunds DROP COLUMN metadata;")
DROP_COLUMN
false
DIFF00000002220
obfuscated_destructive
SQL
orders_87.sql
schema cleanup
@@ -1,3 +1,3 @@ +DroP tablE evENTs;
DROP_TABLE
true
DIFF00000002221
orm_schema_change
JavaScript
events_905.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('notifications', 'created_at')
NONE
true
DIFF00000002222
raw_sql_destructive
SQL
inventory_563.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE notifications RENAME COLUMN price TO contact_email;
ALTER_RENAME
true
DIFF00000002223
general_code_change
Python
inventory_988.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000002224
mentioned_in_comment
Python
subscriptions_217.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: DELETE FROM sessions; -- now deprecated"""
DELETE_UNQUALIFIED
false
DIFF00000002225
raw_sql_destructive
SQL
invoices_266.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE notifications SET order_id = CONCAT(order_id, created_at);
UPDATE_CONCAT
true
DIFF00000002226
orm_schema_change
Python
tickets_303.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='payments', name='score')
NONE
true
DIFF00000002227
obfuscated_destructive
SQL
tickets_598.sql
schema cleanup
@@ -1,3 +1,3 @@ +alter table transactions rename column amount to full_name;
ALTER_RENAME
true
DIFF00000002228
raw_sql_destructive
SQL
orders_227.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE employees;
DROP_TABLE
true
DIFF00000002229
mentioned_in_comment
Python
inventory_629.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: TRUNCATE TABLE orders;")
TRUNCATE
false
DIFF00000002230
general_code_change
Python
transactions_941.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000002231
test_suite_cleanup
SQL
spec/notifications_436.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE users RENAME COLUMN price TO amount_cents;
ALTER_RENAME
false
DIFF00000002232
mentioned_in_comment
Python
inventory_708.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE refunds RENAME COLUMN is_active TO amount_cents;")
ALTER_RENAME
false
DIFF00000002233
test_suite_cleanup
SQL
mysql-test/suite/invoices_690.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM products;
DELETE_UNQUALIFIED
false
DIFF00000002234
raw_sql_destructive
SQL
orders_363.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE logs SET user_id = CONCAT(user_id, category);
UPDATE_CONCAT
true
DIFF00000002235
obfuscated_destructive
SQL
tickets_962.sql
schema cleanup
@@ -1,3 +1,3 @@ +DElEte frOM REFunds;
DELETE_UNQUALIFIED
true
DIFF00000002236
raw_sql_safe
SQL
employees_766.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE events SET name = %s WHERE order_id = %s;
NONE
false
DIFF00000002237
orm_schema_change
JavaScript
comments_246.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('events', table => table.dropColumn('phone'))
NONE
true
DIFF00000002238
obfuscated_destructive
SQL
refunds_179.sql
schema cleanup
@@ -1,3 +1,3 @@ +AlTeR tABle InVoicEs REnaMe colUmn metADAtA To fulL_NAME;
ALTER_RENAME
true
DIFF00000002239
raw_sql_safe
SQL
payments_828.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO customers (phone, priority) VALUES (%s, %s);
NONE
false
DIFF00000002240
general_code_change
Ruby
notifications_50.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000002241
orm_schema_change
TypeScript
events_376.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Notifications { // removed field: name }
NONE
true
DIFF00000002242
mentioned_in_comment
Python
payments_897.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DELETE FROM transactions;' manually, handled by migration tool
DELETE_UNQUALIFIED
false
DIFF00000002243
mentioned_in_comment
Python
shipments_689.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE invoices RENAME COLUMN updated_at TO contact_email;")
ALTER_RENAME
false
DIFF00000002244
obfuscated_destructive
SQL
sessions_35.sql
schema cleanup
@@ -1,3 +1,3 @@ +truncate table invoices;
TRUNCATE
true
DIFF00000002245
general_code_change
Java
products_10.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000002246
general_code_change
Python
notifications_194.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000002247
general_code_change
JavaScript
shipments_594.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000002248
raw_sql_safe
SQL
comments_6.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE transactions ADD COLUMN contact_email VARCHAR(255);
NONE
false
DIFF00000002249
general_code_change
JavaScript
payments_558.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
DIFF00000002250
mentioned_in_comment
Python
customers_369.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: UPDATE payments SET address = CONCAT(address, name); -- now deprecated"""
UPDATE_CONCAT
false
DIFF00000002251
orm_schema_change
Ruby
orders_245.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :transactions, :status
NONE
true
DIFF00000002252
mentioned_in_comment
Python
shipments_91.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE logs RENAME COLUMN metadata TO full_name;")
ALTER_RENAME
false
DIFF00000002253
raw_sql_destructive
SQL
orders_709.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE comments;
DROP_TABLE
true
DIFF00000002254
orm_schema_change
Python
subscriptions_21.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='inventory', name='role')
NONE
true
DIFF00000002255
orm_schema_change
Ruby
orders_573.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :shipments, :score
NONE
true
DIFF00000002256
raw_sql_destructive
SQL
sessions_406.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE users;
DROP_TABLE
true
DIFF00000002257
general_code_change
Ruby
events_190.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000002258
mentioned_in_comment
Python
transactions_106.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE reviews DROP COLUMN role; -- now deprecated"""
DROP_COLUMN
false
DIFF00000002259
raw_sql_destructive
SQL
events_27.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE shipments RENAME COLUMN score TO full_name;
ALTER_RENAME
true
DIFF00000002260
raw_sql_safe
SQL
subscriptions_568.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE employees ADD COLUMN full_name VARCHAR(255);
NONE
false
DIFF00000002261
orm_schema_change
JavaScript
shipments_844.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('sessions', table => table.dropColumn('price'))
NONE
true
DIFF00000002262
raw_sql_destructive
SQL
sessions_66.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE subscriptions RENAME COLUMN score TO amount_cents;
ALTER_RENAME
true
DIFF00000002263
obfuscated_destructive
SQL
orders_325.sql
schema cleanup
@@ -1,3 +1,3 @@ +tRuNCaTe TaBLE loGs;
TRUNCATE
true
DIFF00000002264
raw_sql_destructive
SQL
reviews_519.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE refunds;
TRUNCATE
true
DIFF00000002265
obfuscated_destructive
SQL
reviews_608.sql
schema cleanup
@@ -1,3 +1,3 @@ +UPDATE transactions SET phone = CONCAT(phone, amount);
UPDATE_CONCAT
true
DIFF00000002266
raw_sql_safe
SQL
shipments_404.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM orders WHERE balance = 'active';
NONE
false
DIFF00000002267
obfuscated_destructive
SQL
shipments_329.sql
schema cleanup
@@ -1,3 +1,3 @@ +update logs set amount = concat(amount, address);
UPDATE_CONCAT
true
DIFF00000002268
mentioned_in_comment
Python
logs_438.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE tickets DROP COLUMN balance; -- now deprecated"""
DROP_COLUMN
false
DIFF00000002269
general_code_change
Python
refunds_882.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000002270
general_code_change
Go
tickets_603.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000002271
general_code_change
Python
transactions_216.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000002272
general_code_change
Python
invoices_547.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000002273
obfuscated_destructive
SQL
subscriptions_434.sql
schema cleanup
@@ -1,3 +1,3 @@ +aLteR tAbLe RefUnds dROP CoLumN QuAnTIty;
DROP_COLUMN
true
DIFF00000002274
raw_sql_safe
SQL
subscriptions_301.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE transactions ADD COLUMN amount_cents VARCHAR(255);
NONE
false
DIFF00000002275
raw_sql_destructive
SQL
refunds_152.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE orders SET name = CONCAT(name, status);
UPDATE_CONCAT
true
DIFF00000002276
orm_schema_change
JavaScript
products_618.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('payments', table => table.dropColumn('status'))
NONE
true
DIFF00000002277
general_code_change
JavaScript
comments_737.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000002278
raw_sql_safe
SQL
shipments_686.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE employees ADD COLUMN state VARCHAR(255);
NONE
false
DIFF00000002279
mentioned_in_comment
Python
shipments_797.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE sessions DROP COLUMN user_id;' manually, handled by migration tool
DROP_COLUMN
false
DIFF00000002280
general_code_change
JavaScript
employees_409.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000002281
test_suite_cleanup
SQL
tests/refunds_758.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE products RENAME COLUMN score TO amount_cents;
ALTER_RENAME
false
DIFF00000002282
orm_schema_change
TypeScript
products_476.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Employees { // removed field: balance }
NONE
true
DIFF00000002283
mentioned_in_comment
Python
orders_898.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: UPDATE invoices SET amount = CONCAT(amount, is_active); -- now deprecated"""
UPDATE_CONCAT
false
DIFF00000002284
raw_sql_destructive
SQL
shipments_364.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE comments SET metadata = CONCAT(metadata, priority);
UPDATE_CONCAT
true
DIFF00000002285
obfuscated_destructive
SQL
invoices_767.sql
schema cleanup
@@ -1,3 +1,3 @@ +DROP TABLE notifications;
DROP_TABLE
true
DIFF00000002286
mentioned_in_comment
Python
shipments_292.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DROP TABLE employees;' manually, handled by migration tool
DROP_TABLE
false
DIFF00000002287
raw_sql_destructive
SQL
refunds_853.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM comments;
DELETE_UNQUALIFIED
true
DIFF00000002288
raw_sql_safe
SQL
tickets_455.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE notifications ADD COLUMN user_role VARCHAR(255);
NONE
false
DIFF00000002289
general_code_change
Go
refunds_297.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000002290
raw_sql_destructive
SQL
payments_376.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE events;
TRUNCATE
true
DIFF00000002291
obfuscated_destructive
SQL
notifications_303.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE subscriptions RENAME COLUMN category TO contact_email;
ALTER_RENAME
true
DIFF00000002292
mentioned_in_comment
Python
refunds_367.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: DROP TABLE customers; -- now deprecated"""
DROP_TABLE
false
DIFF00000002293
general_code_change
Go
transactions_678.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000002294
raw_sql_destructive
SQL
invoices_143.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE sessions RENAME COLUMN updated_at TO state;
ALTER_RENAME
true
DIFF00000002295
orm_schema_change
TypeScript
logs_921.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Orders { // removed field: order_id }
NONE
true
DIFF00000002296
raw_sql_destructive
SQL
products_707.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM notifications;
DELETE_UNQUALIFIED
true
DIFF00000002297
obfuscated_destructive
SQL
reviews_666.sql
schema cleanup
@@ -1,3 +1,3 @@ +alter table events rename column order_id to full_name;
ALTER_RENAME
true
DIFF00000002298
orm_schema_change
TypeScript
reviews_115.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Accounts { // removed field: name }
NONE
true
DIFF00000002299
raw_sql_safe
SQL
sessions_771.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_invoices_role ON invoices (price);
NONE
false