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
DIFF00000006200
raw_sql_safe
SQL
users_925.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_invoices_name ON invoices (status);
NONE
false
DIFF00000006201
general_code_change
Java
shipments_872.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000006202
general_code_change
Java
sessions_743.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000006203
test_suite_cleanup
SQL
tests/transactions_112.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE subscriptions;
TRUNCATE
false
DIFF00000006204
mentioned_in_comment
Python
payments_302.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: TRUNCATE TABLE payments;")
TRUNCATE
false
DIFF00000006205
test_suite_cleanup
SQL
tests/inventory_473.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE users DROP COLUMN status;
DROP_COLUMN
false
DIFF00000006206
general_code_change
TypeScript
comments_525.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
DIFF00000006207
orm_schema_change
Ruby
shipments_390.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :orders, :order_id
NONE
true
DIFF00000006208
raw_sql_safe
SQL
inventory_283.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE accounts ADD COLUMN amount_cents VARCHAR(255);
NONE
false
DIFF00000006209
general_code_change
Java
invoices_118.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000006210
obfuscated_destructive
SQL
notifications_223.sql
schema cleanup
@@ -1,3 +1,3 @@ +DelEtE frOm tickEts;
DELETE_UNQUALIFIED
true
DIFF00000006211
general_code_change
Java
inventory_603.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000006212
orm_schema_change
JavaScript
orders_602.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('products', table => table.dropColumn('priority'))
NONE
true
DIFF00000006213
test_suite_cleanup
SQL
tests/transactions_863.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE accounts SET price = CONCAT(price, metadata);
UPDATE_CONCAT
false
DIFF00000006214
raw_sql_destructive
SQL
customers_706.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE comments;
DROP_TABLE
true
DIFF00000006215
test_suite_cleanup
SQL
tests/invoices_306.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE comments RENAME COLUMN user_id TO amount_cents;
ALTER_RENAME
false
DIFF00000006216
obfuscated_destructive
SQL
products_82.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALter taBLe cUSTOmErs DROp CoLUMn meTADATa;
DROP_COLUMN
true
DIFF00000006217
raw_sql_safe
SQL
notifications_946.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO payments (order_id, priority) VALUES (%s, %s);
NONE
false
DIFF00000006218
general_code_change
JavaScript
sessions_262.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
DIFF00000006219
raw_sql_destructive
SQL
tickets_695.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE events;
TRUNCATE
true
DIFF00000006220
orm_schema_change
Ruby
payments_657.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :customers, :is_active
NONE
true
DIFF00000006221
obfuscated_destructive
SQL
payments_494.sql
schema cleanup
@@ -1,3 +1,3 @@ +drop table sessions;
DROP_TABLE
true
DIFF00000006222
test_suite_cleanup
SQL
test/payments_589.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE products;
TRUNCATE
false
DIFF00000006223
orm_schema_change
JavaScript
orders_436.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('refunds', table => table.dropColumn('score'))
NONE
true
DIFF00000006224
raw_sql_destructive
SQL
transactions_51.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE users DROP COLUMN metadata;
DROP_COLUMN
true
DIFF00000006225
raw_sql_destructive
SQL
payments_188.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE refunds DROP COLUMN name;
DROP_COLUMN
true
DIFF00000006226
orm_schema_change
JavaScript
subscriptions_805.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('products', 'address')
NONE
true
DIFF00000006227
general_code_change
Ruby
events_322.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000006228
raw_sql_safe
SQL
events_210.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE invoices ADD COLUMN state VARCHAR(255);
NONE
false
DIFF00000006229
orm_schema_change
Python
tickets_132.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='refunds', name='score')
NONE
true
DIFF00000006230
raw_sql_destructive
SQL
transactions_589.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE sessions DROP COLUMN order_id;
DROP_COLUMN
true
DIFF00000006231
raw_sql_destructive
SQL
events_199.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE transactions;
DROP_TABLE
true
DIFF00000006232
general_code_change
JavaScript
users_100.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
DIFF00000006233
raw_sql_safe
SQL
accounts_888.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE users SET order_id = %s WHERE email = %s;
NONE
false
DIFF00000006234
raw_sql_safe
SQL
refunds_557.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE employees ADD COLUMN user_role VARCHAR(255);
NONE
false
DIFF00000006235
raw_sql_safe
SQL
events_965.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_notifications_updated_at ON notifications (category);
NONE
false
DIFF00000006236
mentioned_in_comment
Python
accounts_634.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE invoices RENAME COLUMN amount TO contact_email;")
ALTER_RENAME
false
DIFF00000006237
orm_schema_change
Python
inventory_664.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='users', name='status')
NONE
true
DIFF00000006238
raw_sql_destructive
SQL
accounts_88.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE shipments;
DROP_TABLE
true
DIFF00000006239
raw_sql_safe
SQL
notifications_221.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE accounts SET created_at = %s WHERE email = %s;
NONE
false
DIFF00000006240
raw_sql_destructive
SQL
orders_989.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE accounts;
DROP_TABLE
true
DIFF00000006241
mentioned_in_comment
Python
invoices_624.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: UPDATE orders SET order_id = CONCAT(order_id, name); -- now deprecated"""
UPDATE_CONCAT
false
DIFF00000006242
raw_sql_destructive
SQL
invoices_740.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE orders DROP COLUMN price;
DROP_COLUMN
true
DIFF00000006243
raw_sql_destructive
SQL
products_619.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE employees;
TRUNCATE
true
DIFF00000006244
mentioned_in_comment
Python
accounts_455.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE refunds RENAME COLUMN status TO amount_cents; -- now deprecated"""
ALTER_RENAME
false
DIFF00000006245
raw_sql_destructive
SQL
sessions_297.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE orders SET score = CONCAT(score, score);
UPDATE_CONCAT
true
DIFF00000006246
general_code_change
Python
events_281.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000006247
raw_sql_destructive
SQL
reviews_619.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE employees;
DROP_TABLE
true
DIFF00000006248
orm_schema_change
TypeScript
tickets_523.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Payments { // removed field: address }
NONE
true
DIFF00000006249
raw_sql_safe
SQL
shipments_479.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE customers SET metadata = %s WHERE name = %s;
NONE
false
DIFF00000006250
orm_schema_change
Ruby
accounts_181.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :inventory, :updated_at
NONE
true
DIFF00000006251
mentioned_in_comment
Python
reviews_299.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'TRUNCATE TABLE reviews;' manually, handled by migration tool
TRUNCATE
false
DIFF00000006252
orm_schema_change
Python
inventory_329.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='transactions', name='name')
NONE
true
DIFF00000006253
orm_schema_change
JavaScript
customers_857.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('logs', 'status')
NONE
true
DIFF00000006254
obfuscated_destructive
SQL
reviews_63.sql
schema cleanup
@@ -1,3 +1,3 @@ +AlTeR taBlE AcCOunts drOP cOluMN emaIL;
DROP_COLUMN
true
DIFF00000006255
raw_sql_destructive
SQL
inventory_458.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM transactions;
DELETE_UNQUALIFIED
true
DIFF00000006256
test_suite_cleanup
SQL
mysql-test/suite/employees_649.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE orders;
DROP_TABLE
false
DIFF00000006257
orm_schema_change
Python
invoices_956.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='sessions', name='priority')
NONE
true
DIFF00000006258
raw_sql_destructive
SQL
events_126.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE products;
TRUNCATE
true
DIFF00000006259
general_code_change
JavaScript
employees_644.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
DIFF00000006260
test_suite_cleanup
SQL
spec/orders_867.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE accounts SET amount = CONCAT(amount, created_at);
UPDATE_CONCAT
false
DIFF00000006261
general_code_change
JavaScript
subscriptions_498.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
DIFF00000006262
mentioned_in_comment
Python
transactions_419.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE reviews RENAME COLUMN updated_at TO state;")
ALTER_RENAME
false
DIFF00000006263
test_suite_cleanup
SQL
tests/sessions_868.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM invoices;
DELETE_UNQUALIFIED
false
DIFF00000006264
general_code_change
Go
sessions_878.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000006265
general_code_change
Python
reviews_751.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000006266
test_suite_cleanup
SQL
test/orders_21.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM logs;
DELETE_UNQUALIFIED
false
DIFF00000006267
orm_schema_change
Ruby
customers_92.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :shipments, :quantity
NONE
true
DIFF00000006268
test_suite_cleanup
SQL
mysql-test/suite/products_530.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE inventory RENAME COLUMN amount TO amount_cents;
ALTER_RENAME
false
DIFF00000006269
general_code_change
JavaScript
sessions_256.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000006270
general_code_change
Java
inventory_457.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000006271
obfuscated_destructive
SQL
users_460.sql
schema cleanup
@@ -1,3 +1,3 @@ +DELETE FROM sessions;
DELETE_UNQUALIFIED
true
DIFF00000006272
orm_schema_change
TypeScript
refunds_388.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Refunds { // removed field: order_id }
NONE
true
DIFF00000006273
raw_sql_safe
SQL
tickets_588.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_tickets_user_id ON tickets (order_id);
NONE
false
DIFF00000006274
general_code_change
JavaScript
accounts_673.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
DIFF00000006275
general_code_change
JavaScript
inventory_617.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
DIFF00000006276
orm_schema_change
JavaScript
customers_541.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('notifications', table => table.dropColumn('amount'))
NONE
true
DIFF00000006277
general_code_change
Python
tickets_883.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000006278
orm_schema_change
Ruby
employees_764.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :orders, :description
NONE
true
DIFF00000006279
raw_sql_safe
SQL
tickets_649.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO accounts (status, is_active) VALUES (%s, %s);
NONE
false
DIFF00000006280
general_code_change
Go
shipments_218.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000006281
general_code_change
Python
comments_880.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000006282
raw_sql_destructive
SQL
notifications_171.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE employees RENAME COLUMN created_at TO user_role;
ALTER_RENAME
true
DIFF00000006283
raw_sql_safe
SQL
tickets_848.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE sessions SET name = %s WHERE description = %s;
NONE
false
DIFF00000006284
mentioned_in_comment
Python
employees_829.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: DROP TABLE users; -- now deprecated"""
DROP_TABLE
false
DIFF00000006285
orm_schema_change
Ruby
reviews_169.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :employees, :phone
NONE
true
DIFF00000006286
orm_schema_change
JavaScript
reviews_825.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('customers', 'category')
NONE
true
DIFF00000006287
obfuscated_destructive
SQL
inventory_213.sql
schema cleanup
@@ -1,3 +1,3 @@ +DROP TABLE payments;
DROP_TABLE
true
DIFF00000006288
test_suite_cleanup
SQL
tests/comments_560.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE payments RENAME COLUMN is_active TO full_name;
ALTER_RENAME
false
DIFF00000006289
raw_sql_destructive
SQL
logs_606.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE users;
DROP_TABLE
true
DIFF00000006290
test_suite_cleanup
SQL
mysql-test/suite/customers_806.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE transactions;
DROP_TABLE
false
DIFF00000006291
raw_sql_safe
SQL
notifications_479.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM accounts WHERE phone = 'active';
NONE
false
DIFF00000006292
test_suite_cleanup
SQL
mysql-test/suite/reviews_893.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE sessions;
DROP_TABLE
false
DIFF00000006293
raw_sql_safe
SQL
users_288.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_events_created_at ON events (phone);
NONE
false
DIFF00000006294
mentioned_in_comment
Python
events_386.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: DROP TABLE notifications; -- now deprecated"""
DROP_TABLE
false
DIFF00000006295
general_code_change
Go
events_907.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000006296
general_code_change
Ruby
shipments_669.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000006297
obfuscated_destructive
SQL
users_876.sql
schema cleanup
@@ -1,3 +1,3 @@ +DELETE FROM transactions;
DELETE_UNQUALIFIED
true
DIFF00000006298
obfuscated_destructive
SQL
subscriptions_436.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE orders DROP COLUMN description;
DROP_COLUMN
true
DIFF00000006299
general_code_change
Python
transactions_567.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false