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
DIFF00099996300
general_code_change
Python
invoices_824.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099996301
raw_sql_safe
SQL
accounts_914.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM inventory WHERE metadata = 'active';
NONE
false
DIFF00099996302
mentioned_in_comment
Python
products_650.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: DROP TABLE sessions; -- now deprecated"""
DROP_TABLE
false
DIFF00099996303
general_code_change
TypeScript
comments_820.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
DIFF00099996304
obfuscated_destructive
SQL
subscriptions_423.sql
schema cleanup
@@ -1,3 +1,3 @@ +aLTEr TabLe TrAnsACtIons rENAME cOlUMN CAtEGory to AmouNt_cENTs;
ALTER_RENAME
true
DIFF00099996305
orm_schema_change
TypeScript
orders_529.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Inventory { // removed field: metadata }
NONE
true
DIFF00099996306
general_code_change
Python
sessions_540.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099996307
raw_sql_destructive
SQL
customers_335.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE logs RENAME COLUMN address TO state;
ALTER_RENAME
true
DIFF00099996308
general_code_change
JavaScript
customers_268.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099996309
obfuscated_destructive
SQL
refunds_929.sql
schema cleanup
@@ -1,3 +1,3 @@ +DRop TabLe prOduCts;
DROP_TABLE
true
DIFF00099996310
general_code_change
TypeScript
users_122.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
DIFF00099996311
mentioned_in_comment
Python
employees_144.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE notifications RENAME COLUMN order_id TO amount_cents;")
ALTER_RENAME
false
DIFF00099996312
general_code_change
JavaScript
inventory_751.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
DIFF00099996313
general_code_change
Go
users_582.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099996314
obfuscated_destructive
SQL
employees_90.sql
schema cleanup
@@ -1,3 +1,3 @@ +truncate table sessions;
TRUNCATE
true
DIFF00099996315
general_code_change
Ruby
transactions_535.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099996316
general_code_change
Python
comments_196.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099996317
raw_sql_safe
SQL
tickets_381.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE payments ADD COLUMN full_name VARCHAR(255);
NONE
false
DIFF00099996318
general_code_change
Python
inventory_475.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099996319
test_suite_cleanup
SQL
tests/logs_186.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE products RENAME COLUMN order_id TO state;
ALTER_RENAME
false
DIFF00099996320
raw_sql_destructive
SQL
customers_787.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE transactions DROP COLUMN is_active;
DROP_COLUMN
true
DIFF00099996321
general_code_change
Java
refunds_95.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099996322
mentioned_in_comment
Python
transactions_546.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: UPDATE employees SET name = CONCAT(name, name); -- now deprecated"""
UPDATE_CONCAT
false
DIFF00099996323
orm_schema_change
Python
logs_423.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='tickets', name='category')
NONE
true
DIFF00099996324
test_suite_cleanup
SQL
spec/subscriptions_485.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE users DROP COLUMN status;
DROP_COLUMN
false
DIFF00099996325
orm_schema_change
Ruby
events_84.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :inventory, :is_active
NONE
true
DIFF00099996326
raw_sql_destructive
SQL
users_987.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE customers SET is_active = CONCAT(is_active, description);
UPDATE_CONCAT
true
DIFF00099996327
general_code_change
Ruby
inventory_476.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099996328
raw_sql_destructive
SQL
sessions_62.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE notifications DROP COLUMN score;
DROP_COLUMN
true
DIFF00099996329
mentioned_in_comment
Python
employees_507.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE products RENAME COLUMN category TO full_name; -- now deprecated"""
ALTER_RENAME
false
DIFF00099996330
general_code_change
TypeScript
subscriptions_125.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
DIFF00099996331
general_code_change
TypeScript
shipments_344.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
DIFF00099996332
mentioned_in_comment
Python
payments_766.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'UPDATE invoices SET user_id = CONCAT(user_id, is_active);' manually, handled by migration tool
UPDATE_CONCAT
false
DIFF00099996333
obfuscated_destructive
SQL
transactions_135.sql
schema cleanup
@@ -1,3 +1,3 @@ +updAtE PROducts SET pRiCE = cONcAT(PRIcE, NaME);
UPDATE_CONCAT
true
DIFF00099996334
general_code_change
Go
products_522.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099996335
raw_sql_destructive
SQL
payments_821.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE logs;
TRUNCATE
true
DIFF00099996336
obfuscated_destructive
SQL
transactions_408.sql
schema cleanup
@@ -1,3 +1,3 @@ +droP tAbLe rEvIewS;
DROP_TABLE
true
DIFF00099996337
general_code_change
Python
reviews_982.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099996338
general_code_change
Python
inventory_622.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099996339
general_code_change
Python
employees_228.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099996340
general_code_change
JavaScript
inventory_964.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099996341
general_code_change
Ruby
payments_855.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099996342
orm_schema_change
Ruby
sessions_389.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :invoices, :score
NONE
true
DIFF00099996343
raw_sql_destructive
SQL
logs_242.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE sessions;
DROP_TABLE
true
DIFF00099996344
mentioned_in_comment
Python
shipments_47.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DELETE FROM refunds;' manually, handled by migration tool
DELETE_UNQUALIFIED
false
DIFF00099996345
orm_schema_change
JavaScript
employees_353.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('events', table => table.dropColumn('metadata'))
NONE
true
DIFF00099996346
general_code_change
Java
orders_303.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099996347
mentioned_in_comment
Python
employees_182.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'TRUNCATE TABLE refunds;' manually, handled by migration tool
TRUNCATE
false
DIFF00099996348
raw_sql_safe
SQL
accounts_334.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE refunds SET balance = %s WHERE price = %s;
NONE
false
DIFF00099996349
mentioned_in_comment
Python
inventory_688.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: UPDATE products SET quantity = CONCAT(quantity, email);")
UPDATE_CONCAT
false
DIFF00099996350
general_code_change
Java
accounts_807.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099996351
obfuscated_destructive
SQL
orders_273.sql
schema cleanup
@@ -1,3 +1,3 @@ +DeleTe FROm aCcOunts;
DELETE_UNQUALIFIED
true
DIFF00099996352
test_suite_cleanup
SQL
mysql-test/suite/tickets_593.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM refunds;
DELETE_UNQUALIFIED
false
DIFF00099996353
test_suite_cleanup
SQL
test/notifications_160.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE users DROP COLUMN email;
DROP_COLUMN
false
DIFF00099996354
test_suite_cleanup
SQL
mysql-test/suite/shipments_800.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE subscriptions;
TRUNCATE
false
DIFF00099996355
orm_schema_change
JavaScript
invoices_295.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('sessions', 'phone')
NONE
true
DIFF00099996356
general_code_change
Ruby
events_876.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099996357
test_suite_cleanup
SQL
mysql-test/suite/employees_775.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE transactions;
DROP_TABLE
false
DIFF00099996358
test_suite_cleanup
SQL
tests/products_746.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM tickets;
DELETE_UNQUALIFIED
false
DIFF00099996359
general_code_change
JavaScript
events_257.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099996360
general_code_change
TypeScript
events_652.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
DIFF00099996361
raw_sql_destructive
SQL
notifications_548.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE subscriptions SET role = CONCAT(role, price);
UPDATE_CONCAT
true
DIFF00099996362
raw_sql_safe
SQL
comments_254.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO transactions (priority, status) VALUES (%s, %s);
NONE
false
DIFF00099996363
raw_sql_safe
SQL
invoices_73.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_accounts_quantity ON accounts (description);
NONE
false
DIFF00099996364
raw_sql_destructive
SQL
inventory_839.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE accounts SET user_id = CONCAT(user_id, phone);
UPDATE_CONCAT
true
DIFF00099996365
raw_sql_destructive
SQL
employees_229.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE employees;
TRUNCATE
true
DIFF00099996366
obfuscated_destructive
SQL
logs_391.sql
schema cleanup
@@ -1,3 +1,3 @@ +droP TABLE EvEnTS;
DROP_TABLE
true
DIFF00099996367
raw_sql_safe
SQL
transactions_761.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE shipments SET name = %s WHERE quantity = %s;
NONE
false
DIFF00099996368
raw_sql_destructive
SQL
invoices_369.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE events RENAME COLUMN name TO amount_cents;
ALTER_RENAME
true
DIFF00099996369
obfuscated_destructive
SQL
shipments_795.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE accounts DROP COLUMN balance;
DROP_COLUMN
true
DIFF00099996370
raw_sql_destructive
SQL
users_693.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM orders;
DELETE_UNQUALIFIED
true
DIFF00099996371
general_code_change
TypeScript
users_780.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
DIFF00099996372
orm_schema_change
TypeScript
users_725.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Reviews { // removed field: order_id }
NONE
true
DIFF00099996373
raw_sql_safe
SQL
products_290.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_transactions_amount ON transactions (amount);
NONE
false
DIFF00099996374
raw_sql_safe
SQL
products_858.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO logs (priority, metadata) VALUES (%s, %s);
NONE
false
DIFF00099996375
obfuscated_destructive
SQL
subscriptions_491.sql
schema cleanup
@@ -1,3 +1,3 @@ +TRUNCATE TABLE events;
TRUNCATE
true
DIFF00099996376
general_code_change
Ruby
logs_653.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099996377
raw_sql_destructive
SQL
products_489.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE notifications SET user_id = CONCAT(user_id, user_id);
UPDATE_CONCAT
true
DIFF00099996378
general_code_change
JavaScript
invoices_976.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
DIFF00099996379
orm_schema_change
JavaScript
products_658.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('invoices', table => table.dropColumn('order_id'))
NONE
true
DIFF00099996380
general_code_change
TypeScript
inventory_557.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
DIFF00099996381
general_code_change
JavaScript
reviews_880.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
DIFF00099996382
general_code_change
JavaScript
shipments_569.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099996383
general_code_change
Python
products_700.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099996384
raw_sql_destructive
SQL
sessions_743.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE logs;
DROP_TABLE
true
DIFF00099996385
test_suite_cleanup
SQL
mysql-test/suite/events_839.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE products DROP COLUMN balance;
DROP_COLUMN
false
DIFF00099996386
test_suite_cleanup
SQL
test/products_356.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE employees;
TRUNCATE
false
DIFF00099996387
raw_sql_safe
SQL
customers_13.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE tickets ADD COLUMN user_role VARCHAR(255);
NONE
false
DIFF00099996388
raw_sql_destructive
SQL
reviews_928.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE invoices;
DROP_TABLE
true
DIFF00099996389
obfuscated_destructive
SQL
comments_433.sql
schema cleanup
@@ -1,3 +1,3 @@ +DELETE FROM reviews;
DELETE_UNQUALIFIED
true
DIFF00099996390
obfuscated_destructive
SQL
accounts_930.sql
schema cleanup
@@ -1,3 +1,3 @@ +DELETE FROM shipments;
DELETE_UNQUALIFIED
true
DIFF00099996391
general_code_change
TypeScript
comments_477.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
DIFF00099996392
general_code_change
Go
events_737.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099996393
general_code_change
TypeScript
subscriptions_684.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
DIFF00099996394
test_suite_cleanup
SQL
tests/orders_955.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE payments;
DROP_TABLE
false
DIFF00099996395
test_suite_cleanup
SQL
spec/invoices_551.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE invoices SET balance = CONCAT(balance, user_id);
UPDATE_CONCAT
false
DIFF00099996396
obfuscated_destructive
SQL
orders_911.sql
schema cleanup
@@ -1,3 +1,3 @@ +TRUNCATE TABLE notifications;
TRUNCATE
true
DIFF00099996397
orm_schema_change
Python
reviews_786.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='shipments', name='order_id')
NONE
true
DIFF00099996398
raw_sql_destructive
SQL
sessions_917.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM shipments;
DELETE_UNQUALIFIED
true
DIFF00099996399
test_suite_cleanup
SQL
test/logs_3.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE inventory DROP COLUMN category;
DROP_COLUMN
false