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
DIFF00000006700
mentioned_in_comment
Python
transactions_872.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE refunds RENAME COLUMN price TO contact_email; -- now deprecated"""
ALTER_RENAME
false
DIFF00000006701
raw_sql_destructive
SQL
employees_652.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM shipments;
DELETE_UNQUALIFIED
true
DIFF00000006702
general_code_change
Java
users_985.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000006703
general_code_change
JavaScript
orders_120.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000006704
raw_sql_safe
SQL
orders_772.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_events_metadata ON events (priority);
NONE
false
DIFF00000006705
raw_sql_safe
SQL
subscriptions_281.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE products SET phone = %s WHERE created_at = %s;
NONE
false
DIFF00000006706
raw_sql_destructive
SQL
events_753.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM orders;
DELETE_UNQUALIFIED
true
DIFF00000006707
mentioned_in_comment
Python
tickets_700.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DROP TABLE sessions;' manually, handled by migration tool
DROP_TABLE
false
DIFF00000006708
mentioned_in_comment
Python
events_322.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE refunds RENAME COLUMN order_id TO amount_cents; -- now deprecated"""
ALTER_RENAME
false
DIFF00000006709
raw_sql_destructive
SQL
comments_876.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE events DROP COLUMN address;
DROP_COLUMN
true
DIFF00000006710
raw_sql_safe
SQL
events_139.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM logs WHERE score = 'active';
NONE
false
DIFF00000006711
general_code_change
Python
products_11.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000006712
raw_sql_safe
SQL
refunds_824.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_events_category ON events (metadata);
NONE
false
DIFF00000006713
orm_schema_change
Python
reviews_243.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='reviews', name='updated_at')
NONE
true
DIFF00000006714
orm_schema_change
TypeScript
accounts_589.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Orders { // removed field: updated_at }
NONE
true
DIFF00000006715
test_suite_cleanup
SQL
test/payments_221.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM users;
DELETE_UNQUALIFIED
false
DIFF00000006716
raw_sql_safe
SQL
payments_798.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE employees SET role = %s WHERE status = %s;
NONE
false
DIFF00000006717
raw_sql_safe
SQL
invoices_598.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE sessions ADD COLUMN contact_email VARCHAR(255);
NONE
false
DIFF00000006718
test_suite_cleanup
SQL
tests/employees_491.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE payments RENAME COLUMN metadata TO contact_email;
ALTER_RENAME
false
DIFF00000006719
raw_sql_safe
SQL
products_176.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE reviews ADD COLUMN contact_email VARCHAR(255);
NONE
false
DIFF00000006720
raw_sql_destructive
SQL
logs_508.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE products DROP COLUMN role;
DROP_COLUMN
true
DIFF00000006721
general_code_change
JavaScript
invoices_986.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000006722
obfuscated_destructive
SQL
invoices_549.sql
schema cleanup
@@ -1,3 +1,3 @@ +aLteR taBle EmPlOYeeS RenamE colUMN RoLE to conTACt_eMail;
ALTER_RENAME
true
DIFF00000006723
obfuscated_destructive
SQL
accounts_327.sql
schema cleanup
@@ -1,3 +1,3 @@ +update events set score = concat(score, amount);
UPDATE_CONCAT
true
DIFF00000006724
mentioned_in_comment
Python
payments_484.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DELETE FROM refunds;")
DELETE_UNQUALIFIED
false
DIFF00000006725
test_suite_cleanup
SQL
test/comments_549.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE transactions DROP COLUMN amount;
DROP_COLUMN
false
DIFF00000006726
orm_schema_change
Ruby
logs_604.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :logs, :email
NONE
true
DIFF00000006727
general_code_change
JavaScript
employees_841.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
DIFF00000006728
general_code_change
Ruby
payments_291.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000006729
raw_sql_safe
SQL
employees_344.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO comments (quantity, priority) VALUES (%s, %s);
NONE
false
DIFF00000006730
raw_sql_safe
SQL
inventory_477.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO notifications (is_active, role) VALUES (%s, %s);
NONE
false
DIFF00000006731
raw_sql_destructive
SQL
orders_855.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE subscriptions RENAME COLUMN is_active TO contact_email;
ALTER_RENAME
true
DIFF00000006732
general_code_change
JavaScript
employees_942.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000006733
obfuscated_destructive
SQL
logs_159.sql
schema cleanup
@@ -1,3 +1,3 @@ +Drop TAble sEsSIons;
DROP_TABLE
true
DIFF00000006734
general_code_change
Java
shipments_140.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000006735
orm_schema_change
JavaScript
orders_561.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('accounts', table => table.dropColumn('user_id'))
NONE
true
DIFF00000006736
mentioned_in_comment
Python
transactions_604.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: TRUNCATE TABLE tickets; -- now deprecated"""
TRUNCATE
false
DIFF00000006737
general_code_change
Python
employees_787.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000006738
mentioned_in_comment
Python
payments_520.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'TRUNCATE TABLE subscriptions;' manually, handled by migration tool
TRUNCATE
false
DIFF00000006739
raw_sql_destructive
SQL
invoices_380.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE payments SET metadata = CONCAT(metadata, amount);
UPDATE_CONCAT
true
DIFF00000006740
mentioned_in_comment
Python
comments_748.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'UPDATE transactions SET name = CONCAT(name, role);' manually, handled by migration tool
UPDATE_CONCAT
false
DIFF00000006741
test_suite_cleanup
SQL
spec/reviews_757.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE inventory DROP COLUMN category;
DROP_COLUMN
false
DIFF00000006742
raw_sql_destructive
SQL
subscriptions_953.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM reviews;
DELETE_UNQUALIFIED
true
DIFF00000006743
mentioned_in_comment
Python
products_107.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DELETE FROM logs;' manually, handled by migration tool
DELETE_UNQUALIFIED
false
DIFF00000006744
raw_sql_destructive
SQL
events_333.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE sessions DROP COLUMN category;
DROP_COLUMN
true
DIFF00000006745
mentioned_in_comment
Python
logs_516.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE users RENAME COLUMN description TO full_name;")
ALTER_RENAME
false
DIFF00000006746
raw_sql_safe
SQL
transactions_417.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE transactions ADD COLUMN state VARCHAR(255);
NONE
false
DIFF00000006747
general_code_change
JavaScript
users_668.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000006748
raw_sql_destructive
SQL
users_793.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE notifications RENAME COLUMN created_at TO full_name;
ALTER_RENAME
true
DIFF00000006749
raw_sql_destructive
SQL
sessions_833.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE customers;
TRUNCATE
true
DIFF00000006750
general_code_change
Python
orders_22.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000006751
general_code_change
Go
accounts_965.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000006752
raw_sql_safe
SQL
notifications_448.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_invoices_balance ON invoices (updated_at);
NONE
false
DIFF00000006753
raw_sql_destructive
SQL
employees_668.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM inventory;
DELETE_UNQUALIFIED
true
DIFF00000006754
mentioned_in_comment
Python
users_34.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'TRUNCATE TABLE payments;' manually, handled by migration tool
TRUNCATE
false
DIFF00000006755
raw_sql_destructive
SQL
sessions_548.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE events DROP COLUMN address;
DROP_COLUMN
true
DIFF00000006756
orm_schema_change
Python
shipments_732.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='users', name='email')
NONE
true
DIFF00000006757
obfuscated_destructive
SQL
inventory_143.sql
schema cleanup
@@ -1,3 +1,3 @@ +DELETE FROM customers;
DELETE_UNQUALIFIED
true
DIFF00000006758
raw_sql_safe
SQL
notifications_973.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_customers_status ON customers (price);
NONE
false
DIFF00000006759
general_code_change
Python
tickets_130.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000006760
test_suite_cleanup
SQL
tests/transactions_765.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE invoices RENAME COLUMN description TO state;
ALTER_RENAME
false
DIFF00000006761
test_suite_cleanup
SQL
tests/refunds_485.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE shipments RENAME COLUMN role TO state;
ALTER_RENAME
false
DIFF00000006762
general_code_change
Java
subscriptions_598.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000006763
test_suite_cleanup
SQL
test/users_235.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM logs;
DELETE_UNQUALIFIED
false
DIFF00000006764
raw_sql_safe
SQL
shipments_132.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO invoices (role, priority) VALUES (%s, %s);
NONE
false
DIFF00000006765
test_suite_cleanup
SQL
mysql-test/suite/shipments_729.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE events SET updated_at = CONCAT(updated_at, name);
UPDATE_CONCAT
false
DIFF00000006766
orm_schema_change
Python
notifications_84.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='logs', name='price')
NONE
true
DIFF00000006767
raw_sql_destructive
SQL
products_262.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE logs DROP COLUMN email;
DROP_COLUMN
true
DIFF00000006768
raw_sql_destructive
SQL
refunds_419.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE employees SET user_id = CONCAT(user_id, phone);
UPDATE_CONCAT
true
DIFF00000006769
mentioned_in_comment
Python
products_470.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE payments DROP COLUMN is_active;")
DROP_COLUMN
false
DIFF00000006770
general_code_change
JavaScript
comments_538.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000006771
test_suite_cleanup
SQL
spec/logs_112.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE logs;
TRUNCATE
false
DIFF00000006772
test_suite_cleanup
SQL
mysql-test/suite/inventory_826.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM inventory;
DELETE_UNQUALIFIED
false
DIFF00000006773
mentioned_in_comment
Python
subscriptions_856.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE logs RENAME COLUMN updated_at TO contact_email; -- now deprecated"""
ALTER_RENAME
false
DIFF00000006774
raw_sql_safe
SQL
users_34.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO reviews (price, category) VALUES (%s, %s);
NONE
false
DIFF00000006775
general_code_change
Python
payments_810.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000006776
mentioned_in_comment
Python
employees_819.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE inventory DROP COLUMN metadata;")
DROP_COLUMN
false
DIFF00000006777
test_suite_cleanup
SQL
test/users_840.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE tickets;
TRUNCATE
false
DIFF00000006778
raw_sql_safe
SQL
refunds_936.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO logs (role, name) VALUES (%s, %s);
NONE
false
DIFF00000006779
raw_sql_destructive
SQL
transactions_587.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE users;
DROP_TABLE
true
DIFF00000006780
test_suite_cleanup
SQL
tests/employees_444.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE logs SET updated_at = CONCAT(updated_at, score);
UPDATE_CONCAT
false
DIFF00000006781
orm_schema_change
TypeScript
notifications_47.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Inventory { // removed field: updated_at }
NONE
true
DIFF00000006782
general_code_change
Python
customers_905.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000006783
test_suite_cleanup
SQL
mysql-test/suite/logs_145.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE comments SET updated_at = CONCAT(updated_at, description);
UPDATE_CONCAT
false
DIFF00000006784
general_code_change
Go
logs_17.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000006785
general_code_change
Go
subscriptions_422.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000006786
raw_sql_safe
SQL
orders_263.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE tickets SET category = %s WHERE is_active = %s;
NONE
false
DIFF00000006787
orm_schema_change
JavaScript
products_468.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('accounts', table => table.dropColumn('is_active'))
NONE
true
DIFF00000006788
raw_sql_safe
SQL
notifications_342.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE accounts SET priority = %s WHERE price = %s;
NONE
false
DIFF00000006789
mentioned_in_comment
Python
accounts_234.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE invoices DROP COLUMN score;")
DROP_COLUMN
false
DIFF00000006790
raw_sql_safe
SQL
shipments_913.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE logs SET email = %s WHERE quantity = %s;
NONE
false
DIFF00000006791
raw_sql_destructive
SQL
logs_922.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE comments;
DROP_TABLE
true
DIFF00000006792
raw_sql_destructive
SQL
orders_868.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM payments;
DELETE_UNQUALIFIED
true
DIFF00000006793
orm_schema_change
Python
orders_64.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='events', name='price')
NONE
true
DIFF00000006794
obfuscated_destructive
SQL
inventory_10.sql
schema cleanup
@@ -1,3 +1,3 @@ +update accounts set description = concat(description, address);
UPDATE_CONCAT
true
DIFF00000006795
general_code_change
JavaScript
notifications_337.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000006796
mentioned_in_comment
Python
tickets_229.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DROP TABLE accounts;")
DROP_TABLE
false
DIFF00000006797
test_suite_cleanup
SQL
spec/customers_744.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE reviews SET priority = CONCAT(priority, phone);
UPDATE_CONCAT
false
DIFF00000006798
general_code_change
Python
payments_409.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000006799
raw_sql_destructive
SQL
orders_535.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE products;
TRUNCATE
true