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
DIFF00000006100
raw_sql_safe
SQL
subscriptions_479.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM products WHERE is_active = 'active';
NONE
false
DIFF00000006101
orm_schema_change
TypeScript
accounts_121.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Payments { // removed field: order_id }
NONE
true
DIFF00000006102
orm_schema_change
Python
tickets_853.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='subscriptions', name='updated_at')
NONE
true
DIFF00000006103
mentioned_in_comment
Python
orders_655.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE products RENAME COLUMN is_active TO user_role; -- now deprecated"""
ALTER_RENAME
false
DIFF00000006104
test_suite_cleanup
SQL
spec/orders_502.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM notifications;
DELETE_UNQUALIFIED
false
DIFF00000006105
raw_sql_safe
SQL
subscriptions_660.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE customers SET updated_at = %s WHERE email = %s;
NONE
false
DIFF00000006106
general_code_change
JavaScript
customers_183.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
DIFF00000006107
raw_sql_safe
SQL
logs_379.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_comments_order_id ON comments (quantity);
NONE
false
DIFF00000006108
general_code_change
Python
accounts_450.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000006109
test_suite_cleanup
SQL
test/products_732.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM payments;
DELETE_UNQUALIFIED
false
DIFF00000006110
raw_sql_safe
SQL
reviews_770.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_subscriptions_balance ON subscriptions (phone);
NONE
false
DIFF00000006111
obfuscated_destructive
SQL
customers_228.sql
schema cleanup
@@ -1,3 +1,3 @@ +drop table payments;
DROP_TABLE
true
DIFF00000006112
general_code_change
Ruby
reviews_28.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000006113
test_suite_cleanup
SQL
tests/notifications_629.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE transactions DROP COLUMN address;
DROP_COLUMN
false
DIFF00000006114
test_suite_cleanup
SQL
spec/shipments_54.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE customers;
DROP_TABLE
false
DIFF00000006115
orm_schema_change
Python
logs_777.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='tickets', name='status')
NONE
true
DIFF00000006116
raw_sql_destructive
SQL
comments_107.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE inventory;
DROP_TABLE
true
DIFF00000006117
orm_schema_change
JavaScript
tickets_430.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('refunds', table => table.dropColumn('email'))
NONE
true
DIFF00000006118
general_code_change
Python
inventory_136.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000006119
general_code_change
JavaScript
logs_735.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
DIFF00000006120
general_code_change
Python
refunds_81.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000006121
obfuscated_destructive
SQL
sessions_882.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE invoices RENAME COLUMN created_at TO contact_email;
ALTER_RENAME
true
DIFF00000006122
orm_schema_change
Ruby
logs_891.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :payments, :amount
NONE
true
DIFF00000006123
general_code_change
Java
products_988.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000006124
general_code_change
Java
orders_577.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000006125
general_code_change
Python
customers_233.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000006126
raw_sql_safe
SQL
tickets_645.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_events_name ON events (status);
NONE
false
DIFF00000006127
raw_sql_destructive
SQL
products_734.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE customers DROP COLUMN quantity;
DROP_COLUMN
true
DIFF00000006128
orm_schema_change
TypeScript
payments_895.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Notifications { // removed field: role }
NONE
true
DIFF00000006129
orm_schema_change
Python
invoices_307.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='subscriptions', name='role')
NONE
true
DIFF00000006130
raw_sql_destructive
SQL
invoices_53.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE customers DROP COLUMN description;
DROP_COLUMN
true
DIFF00000006131
raw_sql_destructive
SQL
logs_426.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE logs;
DROP_TABLE
true
DIFF00000006132
general_code_change
Python
accounts_730.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000006133
obfuscated_destructive
SQL
products_713.sql
schema cleanup
@@ -1,3 +1,3 @@ +dROp TABle REFUnDS;
DROP_TABLE
true
DIFF00000006134
obfuscated_destructive
SQL
transactions_99.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE invoices RENAME COLUMN order_id TO full_name;
ALTER_RENAME
true
DIFF00000006135
orm_schema_change
JavaScript
tickets_762.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('notifications', 'user_id')
NONE
true
DIFF00000006136
orm_schema_change
Python
events_32.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='orders', name='name')
NONE
true
DIFF00000006137
raw_sql_destructive
SQL
comments_747.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE customers DROP COLUMN balance;
DROP_COLUMN
true
DIFF00000006138
raw_sql_destructive
SQL
comments_928.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM refunds;
DELETE_UNQUALIFIED
true
DIFF00000006139
mentioned_in_comment
Python
refunds_603.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: DELETE FROM employees; -- now deprecated"""
DELETE_UNQUALIFIED
false
DIFF00000006140
raw_sql_safe
SQL
tickets_319.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_employees_category ON employees (price);
NONE
false
DIFF00000006141
obfuscated_destructive
SQL
notifications_901.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE users RENAME COLUMN updated_at TO amount_cents;
ALTER_RENAME
true
DIFF00000006142
obfuscated_destructive
SQL
employees_139.sql
schema cleanup
@@ -1,3 +1,3 @@ +aLtER table eVEnTS DRop COLumN BAlANcE;
DROP_COLUMN
true
DIFF00000006143
general_code_change
TypeScript
transactions_396.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
DIFF00000006144
general_code_change
Go
reviews_255.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000006145
general_code_change
JavaScript
events_859.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
DIFF00000006146
raw_sql_destructive
SQL
inventory_340.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE notifications;
TRUNCATE
true
DIFF00000006147
general_code_change
TypeScript
users_805.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
DIFF00000006148
raw_sql_safe
SQL
accounts_788.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE tickets ADD COLUMN contact_email VARCHAR(255);
NONE
false
DIFF00000006149
general_code_change
Java
shipments_279.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000006150
raw_sql_destructive
SQL
customers_17.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM tickets;
DELETE_UNQUALIFIED
true
DIFF00000006151
raw_sql_destructive
SQL
subscriptions_820.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE reviews RENAME COLUMN amount TO state;
ALTER_RENAME
true
DIFF00000006152
orm_schema_change
Ruby
invoices_49.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :customers, :updated_at
NONE
true
DIFF00000006153
general_code_change
Java
logs_758.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000006154
raw_sql_destructive
SQL
shipments_883.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE sessions;
TRUNCATE
true
DIFF00000006155
general_code_change
Java
sessions_912.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000006156
test_suite_cleanup
SQL
test/customers_291.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM notifications;
DELETE_UNQUALIFIED
false
DIFF00000006157
general_code_change
Python
transactions_782.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000006158
orm_schema_change
TypeScript
inventory_486.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Shipments { // removed field: updated_at }
NONE
true
DIFF00000006159
mentioned_in_comment
Python
sessions_516.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: UPDATE customers SET category = CONCAT(category, role); -- now deprecated"""
UPDATE_CONCAT
false
DIFF00000006160
raw_sql_safe
SQL
events_380.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_invoices_price ON invoices (role);
NONE
false
DIFF00000006161
general_code_change
Python
sessions_102.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000006162
raw_sql_safe
SQL
orders_853.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE subscriptions SET price = %s WHERE quantity = %s;
NONE
false
DIFF00000006163
raw_sql_destructive
SQL
employees_14.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE subscriptions DROP COLUMN order_id;
DROP_COLUMN
true
DIFF00000006164
raw_sql_safe
SQL
invoices_313.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_notifications_email ON notifications (role);
NONE
false
DIFF00000006165
raw_sql_safe
SQL
sessions_51.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE transactions ADD COLUMN contact_email VARCHAR(255);
NONE
false
DIFF00000006166
general_code_change
JavaScript
reviews_43.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000006167
orm_schema_change
TypeScript
shipments_592.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Users { // removed field: balance }
NONE
true
DIFF00000006168
raw_sql_safe
SQL
comments_655.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE notifications SET status = %s WHERE category = %s;
NONE
false
DIFF00000006169
raw_sql_destructive
SQL
payments_596.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE tickets;
DROP_TABLE
true
DIFF00000006170
raw_sql_destructive
SQL
notifications_838.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE reviews SET updated_at = CONCAT(updated_at, metadata);
UPDATE_CONCAT
true
DIFF00000006171
obfuscated_destructive
SQL
subscriptions_646.sql
schema cleanup
@@ -1,3 +1,3 @@ +DROP TABLE customers;
DROP_TABLE
true
DIFF00000006172
mentioned_in_comment
Python
sessions_8.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: TRUNCATE TABLE orders; -- now deprecated"""
TRUNCATE
false
DIFF00000006173
raw_sql_safe
SQL
logs_478.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE tickets ADD COLUMN contact_email VARCHAR(255);
NONE
false
DIFF00000006174
orm_schema_change
JavaScript
users_214.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('subscriptions', table => table.dropColumn('category'))
NONE
true
DIFF00000006175
raw_sql_destructive
SQL
sessions_243.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE orders;
TRUNCATE
true
DIFF00000006176
orm_schema_change
Ruby
transactions_378.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :comments, :description
NONE
true
DIFF00000006177
raw_sql_safe
SQL
employees_761.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE comments SET updated_at = %s WHERE price = %s;
NONE
false
DIFF00000006178
mentioned_in_comment
Python
transactions_451.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DELETE FROM notifications;")
DELETE_UNQUALIFIED
false
DIFF00000006179
raw_sql_destructive
SQL
accounts_772.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE logs;
DROP_TABLE
true
DIFF00000006180
test_suite_cleanup
SQL
tests/comments_577.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE logs RENAME COLUMN metadata TO user_role;
ALTER_RENAME
false
DIFF00000006181
raw_sql_destructive
SQL
inventory_653.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE users RENAME COLUMN updated_at TO full_name;
ALTER_RENAME
true
DIFF00000006182
mentioned_in_comment
Python
transactions_279.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DELETE FROM sessions;")
DELETE_UNQUALIFIED
false
DIFF00000006183
orm_schema_change
TypeScript
payments_962.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Events { // removed field: metadata }
NONE
true
DIFF00000006184
test_suite_cleanup
SQL
tests/notifications_948.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE payments SET status = CONCAT(status, metadata);
UPDATE_CONCAT
false
DIFF00000006185
raw_sql_safe
SQL
users_27.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO logs (metadata, is_active) VALUES (%s, %s);
NONE
false
DIFF00000006186
general_code_change
JavaScript
notifications_262.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000006187
raw_sql_safe
SQL
employees_375.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_transactions_name ON transactions (description);
NONE
false
DIFF00000006188
orm_schema_change
JavaScript
transactions_316.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('shipments', table => table.dropColumn('category'))
NONE
true
DIFF00000006189
orm_schema_change
JavaScript
subscriptions_493.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('comments', table => table.dropColumn('created_at'))
NONE
true
DIFF00000006190
general_code_change
JavaScript
events_939.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000006191
raw_sql_safe
SQL
products_625.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE tickets SET amount = %s WHERE price = %s;
NONE
false
DIFF00000006192
test_suite_cleanup
SQL
test/accounts_28.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE orders;
DROP_TABLE
false
DIFF00000006193
general_code_change
Ruby
events_839.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000006194
raw_sql_destructive
SQL
events_996.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE inventory DROP COLUMN balance;
DROP_COLUMN
true
DIFF00000006195
test_suite_cleanup
SQL
mysql-test/suite/comments_418.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE products;
TRUNCATE
false
DIFF00000006196
general_code_change
Java
orders_418.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000006197
raw_sql_destructive
SQL
refunds_366.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE reviews RENAME COLUMN email TO amount_cents;
ALTER_RENAME
true
DIFF00000006198
general_code_change
Ruby
sessions_239.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000006199
general_code_change
JavaScript
accounts_754.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false