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
DIFF00000004200
orm_schema_change
Python
tickets_217.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='subscriptions', name='address')
NONE
true
DIFF00000004201
raw_sql_destructive
SQL
subscriptions_928.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE events;
TRUNCATE
true
DIFF00000004202
orm_schema_change
Ruby
invoices_508.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :notifications, :priority
NONE
true
DIFF00000004203
orm_schema_change
Python
orders_405.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='transactions', name='balance')
NONE
true
DIFF00000004204
orm_schema_change
JavaScript
events_631.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('notifications', table => table.dropColumn('phone'))
NONE
true
DIFF00000004205
raw_sql_safe
SQL
inventory_627.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE users SET status = %s WHERE email = %s;
NONE
false
DIFF00000004206
general_code_change
Go
transactions_219.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000004207
orm_schema_change
TypeScript
invoices_479.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Invoices { // removed field: email }
NONE
true
DIFF00000004208
obfuscated_destructive
SQL
refunds_261.sql
schema cleanup
@@ -1,3 +1,3 @@ +UPDATE sESSionS sET METADATA = coNCAT(METADAtA, PRioRiTy);
UPDATE_CONCAT
true
DIFF00000004209
test_suite_cleanup
SQL
mysql-test/suite/accounts_65.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE notifications;
TRUNCATE
false
DIFF00000004210
general_code_change
Python
events_367.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000004211
raw_sql_destructive
SQL
customers_616.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE comments DROP COLUMN score;
DROP_COLUMN
true
DIFF00000004212
obfuscated_destructive
SQL
orders_239.sql
schema cleanup
@@ -1,3 +1,3 @@ +delete from inventory;
DELETE_UNQUALIFIED
true
DIFF00000004213
test_suite_cleanup
SQL
mysql-test/suite/inventory_176.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE payments;
DROP_TABLE
false
DIFF00000004214
raw_sql_destructive
SQL
employees_190.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE sessions;
TRUNCATE
true
DIFF00000004215
general_code_change
Ruby
tickets_126.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000004216
general_code_change
Python
transactions_127.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000004217
orm_schema_change
JavaScript
transactions_876.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('reviews', table => table.dropColumn('metadata'))
NONE
true
DIFF00000004218
mentioned_in_comment
Python
notifications_17.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: TRUNCATE TABLE notifications; -- now deprecated"""
TRUNCATE
false
DIFF00000004219
mentioned_in_comment
Python
transactions_997.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE sessions RENAME COLUMN order_id TO state;")
ALTER_RENAME
false
DIFF00000004220
mentioned_in_comment
Python
reviews_373.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'TRUNCATE TABLE transactions;' manually, handled by migration tool
TRUNCATE
false
DIFF00000004221
raw_sql_destructive
SQL
products_619.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE invoices DROP COLUMN score;
DROP_COLUMN
true
DIFF00000004222
general_code_change
Go
users_430.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000004223
general_code_change
JavaScript
transactions_267.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000004224
raw_sql_safe
SQL
invoices_596.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE products SET address = %s WHERE metadata = %s;
NONE
false
DIFF00000004225
general_code_change
Ruby
orders_252.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000004226
orm_schema_change
Python
orders_417.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='accounts', name='priority')
NONE
true
DIFF00000004227
raw_sql_destructive
SQL
accounts_876.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE payments SET balance = CONCAT(balance, is_active);
UPDATE_CONCAT
true
DIFF00000004228
general_code_change
JavaScript
customers_135.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
DIFF00000004229
obfuscated_destructive
SQL
inventory_937.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE products DROP COLUMN amount;
DROP_COLUMN
true
DIFF00000004230
general_code_change
JavaScript
customers_560.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000004231
mentioned_in_comment
Python
products_681.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DROP TABLE shipments;' manually, handled by migration tool
DROP_TABLE
false
DIFF00000004232
raw_sql_destructive
SQL
payments_513.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE inventory SET category = CONCAT(category, is_active);
UPDATE_CONCAT
true
DIFF00000004233
mentioned_in_comment
Python
subscriptions_91.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE comments RENAME COLUMN role TO contact_email; -- now deprecated"""
ALTER_RENAME
false
DIFF00000004234
mentioned_in_comment
Python
comments_53.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE subscriptions DROP COLUMN metadata;' manually, handled by migration tool
DROP_COLUMN
false
DIFF00000004235
general_code_change
JavaScript
products_312.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000004236
mentioned_in_comment
Python
payments_813.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DELETE FROM inventory;")
DELETE_UNQUALIFIED
false
DIFF00000004237
raw_sql_destructive
SQL
tickets_809.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM logs;
DELETE_UNQUALIFIED
true
DIFF00000004238
general_code_change
TypeScript
inventory_322.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
DIFF00000004239
raw_sql_safe
SQL
sessions_467.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE inventory ADD COLUMN amount_cents VARCHAR(255);
NONE
false
DIFF00000004240
general_code_change
Python
events_532.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000004241
raw_sql_destructive
SQL
logs_925.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE employees RENAME COLUMN created_at TO contact_email;
ALTER_RENAME
true
DIFF00000004242
mentioned_in_comment
Python
orders_847.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE accounts RENAME COLUMN email TO amount_cents;")
ALTER_RENAME
false
DIFF00000004243
general_code_change
JavaScript
invoices_45.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000004244
raw_sql_destructive
SQL
subscriptions_831.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE shipments;
DROP_TABLE
true
DIFF00000004245
general_code_change
Python
tickets_66.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000004246
raw_sql_destructive
SQL
orders_850.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE shipments;
DROP_TABLE
true
DIFF00000004247
general_code_change
Go
accounts_97.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000004248
raw_sql_destructive
SQL
users_871.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM tickets;
DELETE_UNQUALIFIED
true
DIFF00000004249
orm_schema_change
TypeScript
subscriptions_299.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Reviews { // removed field: email }
NONE
true
DIFF00000004250
raw_sql_destructive
SQL
invoices_887.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE payments SET email = CONCAT(email, amount);
UPDATE_CONCAT
true
DIFF00000004251
general_code_change
Ruby
orders_643.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000004252
test_suite_cleanup
SQL
mysql-test/suite/orders_406.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE events;
DROP_TABLE
false
DIFF00000004253
general_code_change
Ruby
transactions_248.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000004254
raw_sql_safe
SQL
accounts_768.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_sessions_phone ON sessions (metadata);
NONE
false
DIFF00000004255
general_code_change
JavaScript
products_73.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
DIFF00000004256
general_code_change
JavaScript
inventory_819.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
DIFF00000004257
general_code_change
JavaScript
refunds_964.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000004258
obfuscated_destructive
SQL
events_648.sql
schema cleanup
@@ -1,3 +1,3 @@ +alter table refunds drop column user_id;
DROP_COLUMN
true
DIFF00000004259
raw_sql_safe
SQL
reviews_380.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_accounts_updated_at ON accounts (role);
NONE
false
DIFF00000004260
orm_schema_change
JavaScript
inventory_481.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('transactions', table => table.dropColumn('amount'))
NONE
true
DIFF00000004261
mentioned_in_comment
Python
notifications_339.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DELETE FROM users;' manually, handled by migration tool
DELETE_UNQUALIFIED
false
DIFF00000004262
general_code_change
Ruby
logs_802.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000004263
obfuscated_destructive
SQL
inventory_114.sql
schema cleanup
@@ -1,3 +1,3 @@ +truncate table refunds;
TRUNCATE
true
DIFF00000004264
raw_sql_safe
SQL
refunds_39.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO notifications (email, name) VALUES (%s, %s);
NONE
false
DIFF00000004265
mentioned_in_comment
Python
logs_584.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE orders RENAME COLUMN status TO amount_cents;' manually, handled by migration tool
ALTER_RENAME
false
DIFF00000004266
obfuscated_destructive
SQL
comments_911.sql
schema cleanup
@@ -1,3 +1,3 @@ +TRUNCATE TABLE reviews;
TRUNCATE
true
DIFF00000004267
raw_sql_destructive
SQL
users_208.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE payments;
TRUNCATE
true
DIFF00000004268
orm_schema_change
JavaScript
invoices_211.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('payments', table => table.dropColumn('status'))
NONE
true
DIFF00000004269
mentioned_in_comment
Python
subscriptions_287.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DROP TABLE logs;' manually, handled by migration tool
DROP_TABLE
false
DIFF00000004270
orm_schema_change
Ruby
reviews_306.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :tickets, :email
NONE
true
DIFF00000004271
test_suite_cleanup
SQL
tests/customers_147.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE customers DROP COLUMN score;
DROP_COLUMN
false
DIFF00000004272
orm_schema_change
TypeScript
products_486.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Notifications { // removed field: category }
NONE
true
DIFF00000004273
general_code_change
JavaScript
notifications_985.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
DIFF00000004274
general_code_change
Python
accounts_574.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000004275
raw_sql_safe
SQL
logs_832.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO customers (category, category) VALUES (%s, %s);
NONE
false
DIFF00000004276
general_code_change
TypeScript
subscriptions_920.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
DIFF00000004277
mentioned_in_comment
Python
employees_876.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE customers RENAME COLUMN name TO full_name; -- now deprecated"""
ALTER_RENAME
false
DIFF00000004278
raw_sql_safe
SQL
users_56.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO subscriptions (metadata, status) VALUES (%s, %s);
NONE
false
DIFF00000004279
general_code_change
Python
customers_664.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000004280
raw_sql_safe
SQL
shipments_317.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_users_balance ON users (role);
NONE
false
DIFF00000004281
general_code_change
Python
invoices_903.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000004282
obfuscated_destructive
SQL
subscriptions_789.sql
schema cleanup
@@ -1,3 +1,3 @@ +TRUNCATE TABLE notifications;
TRUNCATE
true
DIFF00000004283
raw_sql_safe
SQL
events_77.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE accounts ADD COLUMN contact_email VARCHAR(255);
NONE
false
DIFF00000004284
raw_sql_destructive
SQL
logs_472.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE notifications;
DROP_TABLE
true
DIFF00000004285
raw_sql_safe
SQL
notifications_136.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM reviews WHERE description = 'active';
NONE
false
DIFF00000004286
general_code_change
TypeScript
payments_793.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
DIFF00000004287
raw_sql_safe
SQL
inventory_198.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_transactions_score ON transactions (status);
NONE
false
DIFF00000004288
general_code_change
Python
comments_939.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000004289
raw_sql_safe
SQL
comments_912.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_comments_metadata ON comments (score);
NONE
false
DIFF00000004290
mentioned_in_comment
Python
accounts_111.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: TRUNCATE TABLE transactions; -- now deprecated"""
TRUNCATE
false
DIFF00000004291
general_code_change
TypeScript
refunds_379.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
DIFF00000004292
raw_sql_safe
SQL
users_210.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE inventory ADD COLUMN full_name VARCHAR(255);
NONE
false
DIFF00000004293
test_suite_cleanup
SQL
test/payments_409.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM comments;
DELETE_UNQUALIFIED
false
DIFF00000004294
mentioned_in_comment
Python
subscriptions_370.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DELETE FROM invoices;")
DELETE_UNQUALIFIED
false
DIFF00000004295
general_code_change
JavaScript
subscriptions_42.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000004296
orm_schema_change
Python
users_374.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='transactions', name='price')
NONE
true
DIFF00000004297
raw_sql_safe
SQL
subscriptions_594.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO shipments (email, quantity) VALUES (%s, %s);
NONE
false
DIFF00000004298
general_code_change
Go
employees_995.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000004299
orm_schema_change
Ruby
products_374.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :sessions, :name
NONE
true