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
DIFF00099999500
mentioned_in_comment
Python
comments_835.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE inventory RENAME COLUMN quantity TO full_name;")
ALTER_RENAME
false
DIFF00099999501
test_suite_cleanup
SQL
tests/payments_553.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE subscriptions SET price = CONCAT(price, email);
UPDATE_CONCAT
false
DIFF00099999502
orm_schema_change
TypeScript
orders_99.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Shipments { // removed field: price }
NONE
true
DIFF00099999503
test_suite_cleanup
SQL
mysql-test/suite/employees_547.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM payments;
DELETE_UNQUALIFIED
false
DIFF00099999504
orm_schema_change
Python
refunds_480.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='reviews', name='created_at')
NONE
true
DIFF00099999505
general_code_change
JavaScript
invoices_227.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
DIFF00099999506
mentioned_in_comment
Python
employees_495.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: TRUNCATE TABLE reviews; -- now deprecated"""
TRUNCATE
false
DIFF00099999507
raw_sql_safe
SQL
customers_744.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_transactions_quantity ON transactions (created_at);
NONE
false
DIFF00099999508
general_code_change
TypeScript
sessions_294.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
DIFF00099999509
raw_sql_safe
SQL
accounts_473.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO subscriptions (updated_at, description) VALUES (%s, %s);
NONE
false
DIFF00099999510
raw_sql_destructive
SQL
refunds_202.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE sessions;
TRUNCATE
true
DIFF00099999511
raw_sql_destructive
SQL
events_455.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM tickets;
DELETE_UNQUALIFIED
true
DIFF00099999512
raw_sql_safe
SQL
reviews_14.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE invoices ADD COLUMN contact_email VARCHAR(255);
NONE
false
DIFF00099999513
raw_sql_destructive
SQL
orders_41.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE shipments DROP COLUMN description;
DROP_COLUMN
true
DIFF00099999514
general_code_change
Ruby
reviews_902.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099999515
raw_sql_safe
SQL
shipments_669.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM invoices WHERE order_id = 'active';
NONE
false
DIFF00099999516
obfuscated_destructive
SQL
customers_819.sql
schema cleanup
@@ -1,3 +1,3 @@ +UPDATE employees SET address = CONCAT(address, quantity);
UPDATE_CONCAT
true
DIFF00099999517
obfuscated_destructive
SQL
inventory_554.sql
schema cleanup
@@ -1,3 +1,3 @@ +AlteR Table ReViews DRop COlUMN BaLAnCe;
DROP_COLUMN
true
DIFF00099999518
general_code_change
TypeScript
products_269.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
DIFF00099999519
general_code_change
TypeScript
orders_387.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
DIFF00099999520
general_code_change
Ruby
shipments_389.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099999521
general_code_change
Go
reviews_634.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099999522
test_suite_cleanup
SQL
spec/notifications_909.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE users DROP COLUMN score;
DROP_COLUMN
false
DIFF00099999523
orm_schema_change
TypeScript
employees_753.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Inventory { // removed field: updated_at }
NONE
true
DIFF00099999524
raw_sql_destructive
SQL
logs_731.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE users DROP COLUMN created_at;
DROP_COLUMN
true
DIFF00099999525
general_code_change
JavaScript
reviews_909.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
DIFF00099999526
raw_sql_destructive
SQL
users_606.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE subscriptions SET order_id = CONCAT(order_id, metadata);
UPDATE_CONCAT
true
DIFF00099999527
mentioned_in_comment
Python
logs_369.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE tickets RENAME COLUMN email TO state; -- now deprecated"""
ALTER_RENAME
false
DIFF00099999528
general_code_change
Python
orders_722.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099999529
obfuscated_destructive
SQL
customers_405.sql
schema cleanup
@@ -1,3 +1,3 @@ +truncate table shipments;
TRUNCATE
true
DIFF00099999530
general_code_change
Go
employees_827.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099999531
general_code_change
Python
payments_623.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099999532
orm_schema_change
TypeScript
accounts_432.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Transactions { // removed field: order_id }
NONE
true
DIFF00099999533
raw_sql_destructive
SQL
sessions_569.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE employees DROP COLUMN email;
DROP_COLUMN
true
DIFF00099999534
general_code_change
Java
orders_621.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099999535
mentioned_in_comment
Python
reviews_129.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: DROP TABLE events; -- now deprecated"""
DROP_TABLE
false
DIFF00099999536
obfuscated_destructive
SQL
users_481.sql
schema cleanup
@@ -1,3 +1,3 @@ +truncate table subscriptions;
TRUNCATE
true
DIFF00099999537
test_suite_cleanup
SQL
tests/employees_326.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE employees DROP COLUMN description;
DROP_COLUMN
false
DIFF00099999538
mentioned_in_comment
Python
products_846.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DROP TABLE accounts;")
DROP_TABLE
false
DIFF00099999539
mentioned_in_comment
Python
tickets_536.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE inventory RENAME COLUMN is_active TO user_role;' manually, handled by migration tool
ALTER_RENAME
false
DIFF00099999540
general_code_change
Python
events_230.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099999541
mentioned_in_comment
Python
subscriptions_578.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE notifications RENAME COLUMN metadata TO amount_cents;' manually, handled by migration tool
ALTER_RENAME
false
DIFF00099999542
orm_schema_change
Python
orders_858.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='logs', name='description')
NONE
true
DIFF00099999543
test_suite_cleanup
SQL
tests/tickets_253.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE logs SET amount = CONCAT(amount, address);
UPDATE_CONCAT
false
DIFF00099999544
mentioned_in_comment
Python
notifications_441.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE reviews RENAME COLUMN balance TO contact_email;")
ALTER_RENAME
false
DIFF00099999545
mentioned_in_comment
Python
events_802.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE orders DROP COLUMN status; -- now deprecated"""
DROP_COLUMN
false
DIFF00099999546
test_suite_cleanup
SQL
mysql-test/suite/transactions_981.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE payments RENAME COLUMN name TO user_role;
ALTER_RENAME
false
DIFF00099999547
raw_sql_destructive
SQL
comments_460.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM subscriptions;
DELETE_UNQUALIFIED
true
DIFF00099999548
mentioned_in_comment
Python
accounts_791.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DELETE FROM reviews;")
DELETE_UNQUALIFIED
false
DIFF00099999549
general_code_change
Ruby
subscriptions_490.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099999550
obfuscated_destructive
SQL
orders_857.sql
schema cleanup
@@ -1,3 +1,3 @@ +aLtEr tabLE iNVoICES REnamE CoLUMn pRioriTY To aMOuNT_CENtS;
ALTER_RENAME
true
DIFF00099999551
raw_sql_destructive
SQL
accounts_864.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE reviews RENAME COLUMN quantity TO state;
ALTER_RENAME
true
DIFF00099999552
general_code_change
JavaScript
inventory_189.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099999553
mentioned_in_comment
Python
refunds_986.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: TRUNCATE TABLE subscriptions;")
TRUNCATE
false
DIFF00099999554
raw_sql_destructive
SQL
reviews_937.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE logs;
DROP_TABLE
true
DIFF00099999555
mentioned_in_comment
Python
employees_59.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: UPDATE users SET metadata = CONCAT(metadata, phone);")
UPDATE_CONCAT
false
DIFF00099999556
test_suite_cleanup
SQL
tests/events_527.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE events;
TRUNCATE
false
DIFF00099999557
raw_sql_destructive
SQL
shipments_319.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE comments SET email = CONCAT(email, amount);
UPDATE_CONCAT
true
DIFF00099999558
raw_sql_destructive
SQL
orders_825.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE users;
DROP_TABLE
true
DIFF00099999559
raw_sql_destructive
SQL
tickets_330.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE inventory DROP COLUMN metadata;
DROP_COLUMN
true
DIFF00099999560
raw_sql_safe
SQL
reviews_514.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE tickets SET name = %s WHERE order_id = %s;
NONE
false
DIFF00099999561
general_code_change
JavaScript
logs_840.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
DIFF00099999562
mentioned_in_comment
Python
inventory_672.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: DROP TABLE products; -- now deprecated"""
DROP_TABLE
false
DIFF00099999563
raw_sql_destructive
SQL
events_316.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE logs;
DROP_TABLE
true
DIFF00099999564
orm_schema_change
JavaScript
inventory_458.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('payments', 'name')
NONE
true
DIFF00099999565
orm_schema_change
JavaScript
reviews_619.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('notifications', 'status')
NONE
true
DIFF00099999566
mentioned_in_comment
Python
invoices_440.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: UPDATE orders SET price = CONCAT(price, updated_at);")
UPDATE_CONCAT
false
DIFF00099999567
raw_sql_safe
SQL
transactions_396.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO subscriptions (name, phone) VALUES (%s, %s);
NONE
false
DIFF00099999568
general_code_change
JavaScript
accounts_569.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099999569
test_suite_cleanup
SQL
mysql-test/suite/inventory_671.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM customers;
DELETE_UNQUALIFIED
false
DIFF00099999570
obfuscated_destructive
SQL
sessions_922.sql
schema cleanup
@@ -1,3 +1,3 @@ +truNCate taBlE subsCrIpTIOns;
TRUNCATE
true
DIFF00099999571
obfuscated_destructive
SQL
refunds_167.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE reviews DROP COLUMN amount;
DROP_COLUMN
true
DIFF00099999572
test_suite_cleanup
SQL
test/orders_739.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM payments;
DELETE_UNQUALIFIED
false
DIFF00099999573
orm_schema_change
JavaScript
notifications_534.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('notifications', 'quantity')
NONE
true
DIFF00099999574
raw_sql_safe
SQL
sessions_778.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO orders (phone, score) VALUES (%s, %s);
NONE
false
DIFF00099999575
raw_sql_safe
SQL
events_994.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM customers WHERE role = 'active';
NONE
false
DIFF00099999576
test_suite_cleanup
SQL
tests/employees_930.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM customers;
DELETE_UNQUALIFIED
false
DIFF00099999577
general_code_change
Java
comments_490.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099999578
general_code_change
JavaScript
refunds_687.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
DIFF00099999579
orm_schema_change
JavaScript
notifications_470.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('shipments', 'amount')
NONE
true
DIFF00099999580
test_suite_cleanup
SQL
test/users_682.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE comments;
TRUNCATE
false
DIFF00099999581
raw_sql_safe
SQL
employees_959.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE accounts ADD COLUMN user_role VARCHAR(255);
NONE
false
DIFF00099999582
general_code_change
Ruby
inventory_572.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099999583
raw_sql_safe
SQL
users_905.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO transactions (phone, category) VALUES (%s, %s);
NONE
false
DIFF00099999584
test_suite_cleanup
SQL
mysql-test/suite/logs_113.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE transactions SET balance = CONCAT(balance, created_at);
UPDATE_CONCAT
false
DIFF00099999585
obfuscated_destructive
SQL
payments_191.sql
schema cleanup
@@ -1,3 +1,3 @@ +truncate table subscriptions;
TRUNCATE
true
DIFF00099999586
general_code_change
JavaScript
invoices_567.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
DIFF00099999587
obfuscated_destructive
SQL
payments_23.sql
schema cleanup
@@ -1,3 +1,3 @@ +truncate table invoices;
TRUNCATE
true
DIFF00099999588
general_code_change
Python
reviews_558.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099999589
obfuscated_destructive
SQL
sessions_489.sql
schema cleanup
@@ -1,3 +1,3 @@ +TRUNCATE TABLE refunds;
TRUNCATE
true
DIFF00099999590
general_code_change
Go
shipments_3.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099999591
obfuscated_destructive
SQL
transactions_675.sql
schema cleanup
@@ -1,3 +1,3 @@ +AlTER TaBle oRDErS DrOP coLuMn upDaTED_at;
DROP_COLUMN
true
DIFF00099999592
raw_sql_safe
SQL
notifications_631.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM inventory WHERE role = 'active';
NONE
false
DIFF00099999593
general_code_change
Go
users_241.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099999594
general_code_change
Java
refunds_682.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099999595
orm_schema_change
JavaScript
payments_762.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('refunds', table => table.dropColumn('score'))
NONE
true
DIFF00099999596
general_code_change
Python
subscriptions_738.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099999597
raw_sql_safe
SQL
sessions_362.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO inventory (priority, role) VALUES (%s, %s);
NONE
false
DIFF00099999598
orm_schema_change
Ruby
accounts_843.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :comments, :quantity
NONE
true
DIFF00099999599
raw_sql_destructive
SQL
users_76.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE reviews;
TRUNCATE
true