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
DIFF00099994300
general_code_change
Go
inventory_318.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099994301
general_code_change
Python
products_514.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099994302
test_suite_cleanup
SQL
tests/tickets_159.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE logs RENAME COLUMN phone TO state;
ALTER_RENAME
false
DIFF00099994303
test_suite_cleanup
SQL
tests/accounts_742.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM logs;
DELETE_UNQUALIFIED
false
DIFF00099994304
mentioned_in_comment
Python
tickets_783.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DROP TABLE reviews;' manually, handled by migration tool
DROP_TABLE
false
DIFF00099994305
test_suite_cleanup
SQL
spec/shipments_156.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE refunds SET created_at = CONCAT(created_at, name);
UPDATE_CONCAT
false
DIFF00099994306
raw_sql_safe
SQL
subscriptions_548.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE orders SET address = %s WHERE role = %s;
NONE
false
DIFF00099994307
general_code_change
Go
payments_201.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099994308
raw_sql_safe
SQL
customers_449.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO shipments (quantity, role) VALUES (%s, %s);
NONE
false
DIFF00099994309
raw_sql_safe
SQL
users_394.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE employees ADD COLUMN user_role VARCHAR(255);
NONE
false
DIFF00099994310
orm_schema_change
TypeScript
notifications_305.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Logs { // removed field: score }
NONE
true
DIFF00099994311
mentioned_in_comment
Python
sessions_299.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DELETE FROM customers;' manually, handled by migration tool
DELETE_UNQUALIFIED
false
DIFF00099994312
orm_schema_change
Ruby
comments_857.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :events, :order_id
NONE
true
DIFF00099994313
general_code_change
JavaScript
sessions_282.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099994314
general_code_change
JavaScript
orders_232.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
DIFF00099994315
raw_sql_safe
SQL
invoices_956.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE shipments ADD COLUMN contact_email VARCHAR(255);
NONE
false
DIFF00099994316
raw_sql_safe
SQL
users_322.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_customers_role ON customers (score);
NONE
false
DIFF00099994317
raw_sql_destructive
SQL
logs_148.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM subscriptions;
DELETE_UNQUALIFIED
true
DIFF00099994318
raw_sql_safe
SQL
accounts_707.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO users (description, order_id) VALUES (%s, %s);
NONE
false
DIFF00099994319
mentioned_in_comment
Python
invoices_243.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DELETE FROM tickets;' manually, handled by migration tool
DELETE_UNQUALIFIED
false
DIFF00099994320
orm_schema_change
JavaScript
shipments_240.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('comments', table => table.dropColumn('priority'))
NONE
true
DIFF00099994321
raw_sql_safe
SQL
products_903.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_payments_address ON payments (status);
NONE
false
DIFF00099994322
orm_schema_change
Python
sessions_330.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='inventory', name='priority')
NONE
true
DIFF00099994323
test_suite_cleanup
SQL
mysql-test/suite/inventory_68.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE notifications RENAME COLUMN order_id TO contact_email;
ALTER_RENAME
false
DIFF00099994324
raw_sql_safe
SQL
events_198.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE subscriptions SET order_id = %s WHERE priority = %s;
NONE
false
DIFF00099994325
general_code_change
JavaScript
payments_3.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099994326
raw_sql_destructive
SQL
payments_120.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM logs;
DELETE_UNQUALIFIED
true
DIFF00099994327
general_code_change
Go
users_712.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099994328
general_code_change
Ruby
subscriptions_168.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099994329
general_code_change
Go
tickets_587.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099994330
general_code_change
JavaScript
comments_147.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099994331
raw_sql_destructive
SQL
employees_918.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE inventory;
DROP_TABLE
true
DIFF00099994332
test_suite_cleanup
SQL
test/comments_553.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE reviews RENAME COLUMN role TO full_name;
ALTER_RENAME
false
DIFF00099994333
general_code_change
TypeScript
logs_142.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
DIFF00099994334
test_suite_cleanup
SQL
tests/orders_568.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE orders SET quantity = CONCAT(quantity, updated_at);
UPDATE_CONCAT
false
DIFF00099994335
general_code_change
Python
invoices_171.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099994336
orm_schema_change
JavaScript
logs_375.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('sessions', table => table.dropColumn('role'))
NONE
true
DIFF00099994337
test_suite_cleanup
SQL
tests/logs_94.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE transactions SET price = CONCAT(price, email);
UPDATE_CONCAT
false
DIFF00099994338
obfuscated_destructive
SQL
users_574.sql
schema cleanup
@@ -1,3 +1,3 @@ +update payments set address = concat(address, amount);
UPDATE_CONCAT
true
DIFF00099994339
raw_sql_safe
SQL
sessions_32.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE employees ADD COLUMN amount_cents VARCHAR(255);
NONE
false
DIFF00099994340
general_code_change
JavaScript
accounts_388.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099994341
obfuscated_destructive
SQL
shipments_105.sql
schema cleanup
@@ -1,3 +1,3 @@ +TRUNCATE TABLE transactions;
TRUNCATE
true
DIFF00099994342
obfuscated_destructive
SQL
subscriptions_340.sql
schema cleanup
@@ -1,3 +1,3 @@ +alter table logs rename column address to full_name;
ALTER_RENAME
true
DIFF00099994343
raw_sql_safe
SQL
users_823.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_invoices_order_id ON invoices (updated_at);
NONE
false
DIFF00099994344
orm_schema_change
TypeScript
logs_54.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Customers { // removed field: order_id }
NONE
true
DIFF00099994345
general_code_change
TypeScript
invoices_414.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
DIFF00099994346
raw_sql_destructive
SQL
products_976.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE users SET category = CONCAT(category, created_at);
UPDATE_CONCAT
true
DIFF00099994347
test_suite_cleanup
SQL
mysql-test/suite/notifications_292.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE tickets SET quantity = CONCAT(quantity, is_active);
UPDATE_CONCAT
false
DIFF00099994348
test_suite_cleanup
SQL
mysql-test/suite/payments_9.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM comments;
DELETE_UNQUALIFIED
false
DIFF00099994349
mentioned_in_comment
Python
users_88.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: DROP TABLE payments; -- now deprecated"""
DROP_TABLE
false
DIFF00099994350
raw_sql_destructive
SQL
shipments_535.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE subscriptions DROP COLUMN is_active;
DROP_COLUMN
true
DIFF00099994351
obfuscated_destructive
SQL
orders_150.sql
schema cleanup
@@ -1,3 +1,3 @@ +alter table sessions rename column name to user_role;
ALTER_RENAME
true
DIFF00099994352
raw_sql_safe
SQL
invoices_14.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE transactions ADD COLUMN user_role VARCHAR(255);
NONE
false
DIFF00099994353
general_code_change
TypeScript
accounts_874.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
DIFF00099994354
raw_sql_safe
SQL
customers_821.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM refunds WHERE name = 'active';
NONE
false
DIFF00099994355
test_suite_cleanup
SQL
test/employees_450.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE reviews RENAME COLUMN quantity TO full_name;
ALTER_RENAME
false
DIFF00099994356
general_code_change
TypeScript
customers_459.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
DIFF00099994357
raw_sql_destructive
SQL
invoices_357.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE sessions DROP COLUMN user_id;
DROP_COLUMN
true
DIFF00099994358
raw_sql_destructive
SQL
accounts_174.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM users;
DELETE_UNQUALIFIED
true
DIFF00099994359
orm_schema_change
JavaScript
employees_73.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('orders', table => table.dropColumn('created_at'))
NONE
true
DIFF00099994360
test_suite_cleanup
SQL
tests/accounts_354.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE subscriptions;
DROP_TABLE
false
DIFF00099994361
general_code_change
Python
refunds_633.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099994362
test_suite_cleanup
SQL
tests/logs_749.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE customers RENAME COLUMN email TO full_name;
ALTER_RENAME
false
DIFF00099994363
general_code_change
Java
customers_795.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099994364
raw_sql_destructive
SQL
orders_224.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE inventory;
DROP_TABLE
true
DIFF00099994365
raw_sql_safe
SQL
customers_532.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_payments_score ON payments (quantity);
NONE
false
DIFF00099994366
general_code_change
JavaScript
comments_944.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099994367
orm_schema_change
JavaScript
invoices_836.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('comments', table => table.dropColumn('role'))
NONE
true
DIFF00099994368
obfuscated_destructive
SQL
orders_480.sql
schema cleanup
@@ -1,3 +1,3 @@ +DELETE FROM refunds;
DELETE_UNQUALIFIED
true
DIFF00099994369
mentioned_in_comment
Python
shipments_384.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DROP TABLE tickets;")
DROP_TABLE
false
DIFF00099994370
obfuscated_destructive
SQL
payments_96.sql
schema cleanup
@@ -1,3 +1,3 @@ +tRuncAte Table suBscRiPTioNs;
TRUNCATE
true
DIFF00099994371
test_suite_cleanup
SQL
test/tickets_56.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE refunds RENAME COLUMN metadata TO state;
ALTER_RENAME
false
DIFF00099994372
obfuscated_destructive
SQL
products_12.sql
schema cleanup
@@ -1,3 +1,3 @@ +UpDAte InvENtORY SeT phOne = cONCaT(PhONE, caTegORy);
UPDATE_CONCAT
true
DIFF00099994373
general_code_change
JavaScript
logs_617.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099994374
obfuscated_destructive
SQL
reviews_199.sql
schema cleanup
@@ -1,3 +1,3 @@ +alter table events drop column metadata;
DROP_COLUMN
true
DIFF00099994375
raw_sql_safe
SQL
subscriptions_868.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE payments ADD COLUMN state VARCHAR(255);
NONE
false
DIFF00099994376
mentioned_in_comment
Python
refunds_505.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE logs DROP COLUMN phone;' manually, handled by migration tool
DROP_COLUMN
false
DIFF00099994377
raw_sql_destructive
SQL
inventory_475.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE transactions DROP COLUMN created_at;
DROP_COLUMN
true
DIFF00099994378
raw_sql_destructive
SQL
inventory_657.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE tickets RENAME COLUMN user_id TO state;
ALTER_RENAME
true
DIFF00099994379
mentioned_in_comment
Python
sessions_277.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'TRUNCATE TABLE orders;' manually, handled by migration tool
TRUNCATE
false
DIFF00099994380
orm_schema_change
JavaScript
users_28.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('products', 'category')
NONE
true
DIFF00099994381
general_code_change
TypeScript
customers_392.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
DIFF00099994382
mentioned_in_comment
Python
notifications_785.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: UPDATE subscriptions SET description = CONCAT(description, price); -- now deprecated"""
UPDATE_CONCAT
false
DIFF00099994383
mentioned_in_comment
Python
subscriptions_388.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE customers RENAME COLUMN price TO state;' manually, handled by migration tool
ALTER_RENAME
false
DIFF00099994384
general_code_change
TypeScript
customers_719.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
DIFF00099994385
test_suite_cleanup
SQL
mysql-test/suite/sessions_952.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE products DROP COLUMN updated_at;
DROP_COLUMN
false
DIFF00099994386
general_code_change
JavaScript
orders_110.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099994387
general_code_change
Python
users_593.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099994388
test_suite_cleanup
SQL
spec/inventory_684.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE products;
DROP_TABLE
false
DIFF00099994389
mentioned_in_comment
Python
payments_311.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DROP TABLE transactions;' manually, handled by migration tool
DROP_TABLE
false
DIFF00099994390
orm_schema_change
Ruby
accounts_110.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :reviews, :status
NONE
true
DIFF00099994391
raw_sql_destructive
SQL
transactions_505.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE events DROP COLUMN updated_at;
DROP_COLUMN
true
DIFF00099994392
mentioned_in_comment
Python
logs_127.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'TRUNCATE TABLE notifications;' manually, handled by migration tool
TRUNCATE
false
DIFF00099994393
general_code_change
TypeScript
transactions_505.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
DIFF00099994394
raw_sql_safe
SQL
payments_287.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO refunds (name, price) VALUES (%s, %s);
NONE
false
DIFF00099994395
raw_sql_safe
SQL
notifications_703.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM tickets WHERE address = 'active';
NONE
false
DIFF00099994396
test_suite_cleanup
SQL
spec/subscriptions_641.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE accounts SET priority = CONCAT(priority, email);
UPDATE_CONCAT
false
DIFF00099994397
raw_sql_safe
SQL
comments_563.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_employees_description ON employees (is_active);
NONE
false
DIFF00099994398
raw_sql_destructive
SQL
subscriptions_309.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE comments DROP COLUMN status;
DROP_COLUMN
true
DIFF00099994399
general_code_change
JavaScript
notifications_547.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