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
DIFF00099993600
raw_sql_destructive
SQL
transactions_839.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE invoices;
TRUNCATE
true
DIFF00099993601
orm_schema_change
TypeScript
invoices_559.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Refunds { // removed field: price }
NONE
true
DIFF00099993602
raw_sql_destructive
SQL
logs_415.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE events DROP COLUMN user_id;
DROP_COLUMN
true
DIFF00099993603
raw_sql_safe
SQL
sessions_232.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE reviews SET metadata = %s WHERE name = %s;
NONE
false
DIFF00099993604
orm_schema_change
Python
shipments_851.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='invoices', name='price')
NONE
true
DIFF00099993605
raw_sql_destructive
SQL
refunds_530.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE orders RENAME COLUMN role TO amount_cents;
ALTER_RENAME
true
DIFF00099993606
raw_sql_destructive
SQL
orders_206.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE orders;
TRUNCATE
true
DIFF00099993607
mentioned_in_comment
Python
comments_693.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: TRUNCATE TABLE refunds; -- now deprecated"""
TRUNCATE
false
DIFF00099993608
general_code_change
Go
reviews_795.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099993609
test_suite_cleanup
SQL
spec/notifications_323.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE orders;
TRUNCATE
false
DIFF00099993610
obfuscated_destructive
SQL
products_731.sql
schema cleanup
@@ -1,3 +1,3 @@ +drop table employees;
DROP_TABLE
true
DIFF00099993611
raw_sql_destructive
SQL
shipments_725.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE events SET phone = CONCAT(phone, created_at);
UPDATE_CONCAT
true
DIFF00099993612
orm_schema_change
Python
events_582.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='shipments', name='category')
NONE
true
DIFF00099993613
general_code_change
TypeScript
comments_368.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
DIFF00099993614
orm_schema_change
JavaScript
inventory_399.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('logs', 'amount')
NONE
true
DIFF00099993615
raw_sql_safe
SQL
users_71.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE logs ADD COLUMN contact_email VARCHAR(255);
NONE
false
DIFF00099993616
raw_sql_safe
SQL
inventory_244.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM orders WHERE user_id = 'active';
NONE
false
DIFF00099993617
obfuscated_destructive
SQL
inventory_179.sql
schema cleanup
@@ -1,3 +1,3 @@ +TRUNCATE TABLE subscriptions;
TRUNCATE
true
DIFF00099993618
general_code_change
TypeScript
events_63.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
DIFF00099993619
test_suite_cleanup
SQL
mysql-test/suite/users_658.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE accounts;
TRUNCATE
false
DIFF00099993620
general_code_change
JavaScript
notifications_915.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099993621
test_suite_cleanup
SQL
spec/notifications_913.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE orders DROP COLUMN amount;
DROP_COLUMN
false
DIFF00099993622
mentioned_in_comment
Python
events_263.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DROP TABLE reviews;' manually, handled by migration tool
DROP_TABLE
false
DIFF00099993623
general_code_change
JavaScript
reviews_503.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099993624
orm_schema_change
JavaScript
notifications_966.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('invoices', table => table.dropColumn('order_id'))
NONE
true
DIFF00099993625
raw_sql_destructive
SQL
subscriptions_345.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE notifications;
DROP_TABLE
true
DIFF00099993626
general_code_change
Ruby
orders_464.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099993627
general_code_change
JavaScript
events_813.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
DIFF00099993628
mentioned_in_comment
Python
customers_440.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'UPDATE subscriptions SET balance = CONCAT(balance, user_id);' manually, handled by migration tool
UPDATE_CONCAT
false
DIFF00099993629
general_code_change
Python
events_841.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099993630
orm_schema_change
JavaScript
comments_660.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('transactions', table => table.dropColumn('created_at'))
NONE
true
DIFF00099993631
general_code_change
JavaScript
sessions_991.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099993632
raw_sql_destructive
SQL
sessions_926.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE events DROP COLUMN updated_at;
DROP_COLUMN
true
DIFF00099993633
orm_schema_change
JavaScript
employees_48.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('events', 'is_active')
NONE
true
DIFF00099993634
test_suite_cleanup
SQL
mysql-test/suite/notifications_142.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE users DROP COLUMN created_at;
DROP_COLUMN
false
DIFF00099993635
general_code_change
Go
notifications_262.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099993636
mentioned_in_comment
Python
transactions_801.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'UPDATE notifications SET address = CONCAT(address, updated_at);' manually, handled by migration tool
UPDATE_CONCAT
false
DIFF00099993637
raw_sql_safe
SQL
transactions_776.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO customers (amount, priority) VALUES (%s, %s);
NONE
false
DIFF00099993638
orm_schema_change
JavaScript
accounts_446.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('refunds', table => table.dropColumn('email'))
NONE
true
DIFF00099993639
general_code_change
Python
refunds_605.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099993640
mentioned_in_comment
Python
comments_969.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'UPDATE users SET score = CONCAT(score, category);' manually, handled by migration tool
UPDATE_CONCAT
false
DIFF00099993641
general_code_change
TypeScript
events_431.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
DIFF00099993642
general_code_change
JavaScript
employees_843.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099993643
raw_sql_safe
SQL
employees_105.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO shipments (phone, user_id) VALUES (%s, %s);
NONE
false
DIFF00099993644
orm_schema_change
Ruby
refunds_178.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :orders, :quantity
NONE
true
DIFF00099993645
general_code_change
JavaScript
refunds_655.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099993646
general_code_change
Python
payments_780.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099993647
raw_sql_safe
SQL
employees_780.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO accounts (email, status) VALUES (%s, %s);
NONE
false
DIFF00099993648
raw_sql_destructive
SQL
refunds_668.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE customers;
DROP_TABLE
true
DIFF00099993649
general_code_change
Java
shipments_57.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099993650
test_suite_cleanup
SQL
tests/inventory_739.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE users RENAME COLUMN category TO amount_cents;
ALTER_RENAME
false
DIFF00099993651
general_code_change
Go
logs_29.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099993652
mentioned_in_comment
Python
customers_827.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DROP TABLE tickets;")
DROP_TABLE
false
DIFF00099993653
test_suite_cleanup
SQL
test/shipments_943.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE notifications SET name = CONCAT(name, order_id);
UPDATE_CONCAT
false
DIFF00099993654
raw_sql_safe
SQL
payments_134.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM payments WHERE phone = 'active';
NONE
false
DIFF00099993655
test_suite_cleanup
SQL
test/employees_45.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE customers RENAME COLUMN metadata TO contact_email;
ALTER_RENAME
false
DIFF00099993656
raw_sql_safe
SQL
shipments_21.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE notifications SET address = %s WHERE is_active = %s;
NONE
false
DIFF00099993657
raw_sql_destructive
SQL
reviews_998.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM products;
DELETE_UNQUALIFIED
true
DIFF00099993658
raw_sql_safe
SQL
logs_665.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM refunds WHERE is_active = 'active';
NONE
false
DIFF00099993659
orm_schema_change
JavaScript
users_791.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('accounts', 'email')
NONE
true
DIFF00099993660
general_code_change
Ruby
accounts_931.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099993661
general_code_change
JavaScript
shipments_860.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099993662
mentioned_in_comment
Python
employees_523.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DROP TABLE accounts;' manually, handled by migration tool
DROP_TABLE
false
DIFF00099993663
orm_schema_change
JavaScript
tickets_918.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('sessions', 'created_at')
NONE
true
DIFF00099993664
orm_schema_change
JavaScript
orders_187.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('logs', 'priority')
NONE
true
DIFF00099993665
test_suite_cleanup
SQL
tests/reviews_566.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE customers RENAME COLUMN quantity TO user_role;
ALTER_RENAME
false
DIFF00099993666
orm_schema_change
Python
orders_197.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='products', name='category')
NONE
true
DIFF00099993667
mentioned_in_comment
Python
invoices_942.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE comments RENAME COLUMN quantity TO contact_email; -- now deprecated"""
ALTER_RENAME
false
DIFF00099993668
general_code_change
Java
notifications_463.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099993669
orm_schema_change
Python
comments_292.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='comments', name='role')
NONE
true
DIFF00099993670
raw_sql_destructive
SQL
transactions_6.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM invoices;
DELETE_UNQUALIFIED
true
DIFF00099993671
general_code_change
JavaScript
employees_129.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
DIFF00099993672
raw_sql_destructive
SQL
users_727.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE transactions DROP COLUMN email;
DROP_COLUMN
true
DIFF00099993673
general_code_change
Python
logs_713.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099993674
general_code_change
Go
accounts_172.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099993675
general_code_change
Ruby
comments_902.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099993676
obfuscated_destructive
SQL
logs_935.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALteR TaBLe INvENtoRy rENaMe COLumn catEgorY to cONTAct_EMAIl;
ALTER_RENAME
true
DIFF00099993677
test_suite_cleanup
SQL
test/transactions_577.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE shipments;
TRUNCATE
false
DIFF00099993678
obfuscated_destructive
SQL
notifications_250.sql
schema cleanup
@@ -1,3 +1,3 @@ +update comments set status = concat(status, price);
UPDATE_CONCAT
true
DIFF00099993679
raw_sql_safe
SQL
events_607.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM inventory WHERE description = 'active';
NONE
false
DIFF00099993680
test_suite_cleanup
SQL
tests/orders_736.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE tickets DROP COLUMN balance;
DROP_COLUMN
false
DIFF00099993681
raw_sql_safe
SQL
accounts_400.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE refunds SET amount = %s WHERE order_id = %s;
NONE
false
DIFF00099993682
general_code_change
Ruby
notifications_943.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099993683
general_code_change
Python
invoices_581.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099993684
general_code_change
JavaScript
subscriptions_120.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099993685
general_code_change
Python
reviews_276.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099993686
general_code_change
TypeScript
shipments_828.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
DIFF00099993687
test_suite_cleanup
SQL
tests/invoices_350.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE invoices DROP COLUMN price;
DROP_COLUMN
false
DIFF00099993688
test_suite_cleanup
SQL
mysql-test/suite/customers_236.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM notifications;
DELETE_UNQUALIFIED
false
DIFF00099993689
raw_sql_safe
SQL
customers_269.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_logs_balance ON logs (metadata);
NONE
false
DIFF00099993690
mentioned_in_comment
Python
events_576.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'UPDATE accounts SET category = CONCAT(category, price);' manually, handled by migration tool
UPDATE_CONCAT
false
DIFF00099993691
test_suite_cleanup
SQL
tests/payments_249.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM sessions;
DELETE_UNQUALIFIED
false
DIFF00099993692
orm_schema_change
Ruby
customers_965.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :employees, :is_active
NONE
true
DIFF00099993693
raw_sql_safe
SQL
subscriptions_580.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO customers (price, metadata) VALUES (%s, %s);
NONE
false
DIFF00099993694
raw_sql_safe
SQL
users_786.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO users (balance, email) VALUES (%s, %s);
NONE
false
DIFF00099993695
mentioned_in_comment
Python
customers_10.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE refunds RENAME COLUMN metadata TO state; -- now deprecated"""
ALTER_RENAME
false
DIFF00099993696
raw_sql_safe
SQL
customers_335.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_customers_score ON customers (quantity);
NONE
false
DIFF00099993697
general_code_change
TypeScript
employees_708.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
DIFF00099993698
test_suite_cleanup
SQL
test/inventory_752.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE accounts DROP COLUMN status;
DROP_COLUMN
false
DIFF00099993699
raw_sql_destructive
SQL
products_808.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE refunds;
TRUNCATE
true