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
DIFF00000003800
raw_sql_safe
SQL
invoices_343.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM shipments WHERE category = 'active';
NONE
false
DIFF00000003801
general_code_change
JavaScript
payments_825.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
DIFF00000003802
orm_schema_change
Python
notifications_252.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='products', name='address')
NONE
true
DIFF00000003803
mentioned_in_comment
Python
sessions_184.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DELETE FROM events;' manually, handled by migration tool
DELETE_UNQUALIFIED
false
DIFF00000003804
orm_schema_change
TypeScript
events_104.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Events { // removed field: priority }
NONE
true
DIFF00000003805
raw_sql_safe
SQL
comments_498.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO transactions (description, user_id) VALUES (%s, %s);
NONE
false
DIFF00000003806
general_code_change
Java
notifications_518.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000003807
raw_sql_destructive
SQL
inventory_767.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE sessions DROP COLUMN created_at;
DROP_COLUMN
true
DIFF00000003808
mentioned_in_comment
Python
employees_510.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DROP TABLE inventory;")
DROP_TABLE
false
DIFF00000003809
orm_schema_change
Python
notifications_743.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='logs', name='address')
NONE
true
DIFF00000003810
mentioned_in_comment
Python
accounts_610.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE users RENAME COLUMN balance TO user_role;")
ALTER_RENAME
false
DIFF00000003811
mentioned_in_comment
Python
comments_374.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DELETE FROM reviews;' manually, handled by migration tool
DELETE_UNQUALIFIED
false
DIFF00000003812
raw_sql_destructive
SQL
orders_149.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE orders RENAME COLUMN role TO state;
ALTER_RENAME
true
DIFF00000003813
mentioned_in_comment
Python
notifications_783.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: DROP TABLE orders; -- now deprecated"""
DROP_TABLE
false
DIFF00000003814
obfuscated_destructive
SQL
sessions_339.sql
schema cleanup
@@ -1,3 +1,3 @@ +alTEr tABLE tRansacTions DRop cOLumN UpDATed_at;
DROP_COLUMN
true
DIFF00000003815
general_code_change
TypeScript
subscriptions_773.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
DIFF00000003816
obfuscated_destructive
SQL
users_516.sql
schema cleanup
@@ -1,3 +1,3 @@ +DROP TABLE comments;
DROP_TABLE
true
DIFF00000003817
orm_schema_change
TypeScript
customers_138.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Notifications { // removed field: status }
NONE
true
DIFF00000003818
raw_sql_destructive
SQL
logs_414.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE shipments DROP COLUMN category;
DROP_COLUMN
true
DIFF00000003819
raw_sql_destructive
SQL
events_218.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE logs DROP COLUMN metadata;
DROP_COLUMN
true
DIFF00000003820
general_code_change
Go
products_766.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000003821
general_code_change
Python
events_694.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000003822
orm_schema_change
TypeScript
employees_205.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Notifications { // removed field: created_at }
NONE
true
DIFF00000003823
test_suite_cleanup
SQL
mysql-test/suite/accounts_710.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM accounts;
DELETE_UNQUALIFIED
false
DIFF00000003824
mentioned_in_comment
Python
users_624.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: UPDATE employees SET name = CONCAT(name, updated_at); -- now deprecated"""
UPDATE_CONCAT
false
DIFF00000003825
mentioned_in_comment
Python
refunds_421.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE payments RENAME COLUMN updated_at TO amount_cents;' manually, handled by migration tool
ALTER_RENAME
false
DIFF00000003826
general_code_change
Ruby
transactions_146.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000003827
general_code_change
JavaScript
payments_27.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000003828
orm_schema_change
JavaScript
sessions_296.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('subscriptions', table => table.dropColumn('address'))
NONE
true
DIFF00000003829
raw_sql_destructive
SQL
invoices_778.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE transactions;
TRUNCATE
true
DIFF00000003830
raw_sql_safe
SQL
refunds_186.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM shipments WHERE phone = 'active';
NONE
false
DIFF00000003831
obfuscated_destructive
SQL
shipments_984.sql
schema cleanup
@@ -1,3 +1,3 @@ +update sessions set description = concat(description, email);
UPDATE_CONCAT
true
DIFF00000003832
general_code_change
TypeScript
reviews_409.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
DIFF00000003833
orm_schema_change
JavaScript
transactions_662.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('orders', 'score')
NONE
true
DIFF00000003834
test_suite_cleanup
SQL
tests/customers_962.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE payments SET created_at = CONCAT(created_at, price);
UPDATE_CONCAT
false
DIFF00000003835
orm_schema_change
Ruby
events_901.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :shipments, :quantity
NONE
true
DIFF00000003836
raw_sql_destructive
SQL
employees_706.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE transactions SET priority = CONCAT(priority, category);
UPDATE_CONCAT
true
DIFF00000003837
general_code_change
Python
payments_164.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000003838
raw_sql_destructive
SQL
accounts_84.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE shipments;
DROP_TABLE
true
DIFF00000003839
raw_sql_safe
SQL
refunds_98.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_inventory_address ON inventory (name);
NONE
false
DIFF00000003840
orm_schema_change
Python
logs_211.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='subscriptions', name='address')
NONE
true
DIFF00000003841
test_suite_cleanup
SQL
test/employees_440.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE sessions SET is_active = CONCAT(is_active, balance);
UPDATE_CONCAT
false
DIFF00000003842
obfuscated_destructive
SQL
events_809.sql
schema cleanup
@@ -1,3 +1,3 @@ +deleTE FROm CoMMenTs;
DELETE_UNQUALIFIED
true
DIFF00000003843
raw_sql_safe
SQL
subscriptions_217.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO notifications (status, quantity) VALUES (%s, %s);
NONE
false
DIFF00000003844
orm_schema_change
TypeScript
users_367.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Inventory { // removed field: category }
NONE
true
DIFF00000003845
raw_sql_safe
SQL
reviews_51.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO notifications (status, balance) VALUES (%s, %s);
NONE
false
DIFF00000003846
raw_sql_safe
SQL
logs_702.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM transactions WHERE category = 'active';
NONE
false
DIFF00000003847
test_suite_cleanup
SQL
spec/transactions_729.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE customers DROP COLUMN priority;
DROP_COLUMN
false
DIFF00000003848
general_code_change
JavaScript
tickets_370.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
DIFF00000003849
raw_sql_destructive
SQL
shipments_375.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE employees;
DROP_TABLE
true
DIFF00000003850
mentioned_in_comment
Python
payments_823.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DROP TABLE tickets;")
DROP_TABLE
false
DIFF00000003851
orm_schema_change
Python
products_495.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='invoices', name='updated_at')
NONE
true
DIFF00000003852
general_code_change
TypeScript
shipments_285.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
DIFF00000003853
raw_sql_destructive
SQL
logs_519.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE payments SET description = CONCAT(description, updated_at);
UPDATE_CONCAT
true
DIFF00000003854
general_code_change
Java
employees_43.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000003855
raw_sql_destructive
SQL
inventory_142.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM products;
DELETE_UNQUALIFIED
true
DIFF00000003856
test_suite_cleanup
SQL
mysql-test/suite/inventory_792.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE inventory SET address = CONCAT(address, priority);
UPDATE_CONCAT
false
DIFF00000003857
raw_sql_safe
SQL
products_698.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_sessions_balance ON sessions (balance);
NONE
false
DIFF00000003858
general_code_change
Python
shipments_828.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000003859
orm_schema_change
Ruby
orders_336.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :orders, :role
NONE
true
DIFF00000003860
general_code_change
Go
logs_376.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000003861
raw_sql_destructive
SQL
accounts_234.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE logs DROP COLUMN user_id;
DROP_COLUMN
true
DIFF00000003862
raw_sql_destructive
SQL
tickets_747.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE tickets RENAME COLUMN metadata TO full_name;
ALTER_RENAME
true
DIFF00000003863
test_suite_cleanup
SQL
mysql-test/suite/shipments_200.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE orders SET address = CONCAT(address, metadata);
UPDATE_CONCAT
false
DIFF00000003864
general_code_change
TypeScript
orders_425.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
DIFF00000003865
raw_sql_destructive
SQL
tickets_432.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE reviews RENAME COLUMN description TO contact_email;
ALTER_RENAME
true
DIFF00000003866
test_suite_cleanup
SQL
test/transactions_313.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM customers;
DELETE_UNQUALIFIED
false
DIFF00000003867
test_suite_cleanup
SQL
mysql-test/suite/products_926.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM reviews;
DELETE_UNQUALIFIED
false
DIFF00000003868
orm_schema_change
JavaScript
sessions_387.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('invoices', table => table.dropColumn('category'))
NONE
true
DIFF00000003869
orm_schema_change
JavaScript
users_264.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('products', 'category')
NONE
true
DIFF00000003870
raw_sql_safe
SQL
notifications_614.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE logs SET order_id = %s WHERE user_id = %s;
NONE
false
DIFF00000003871
orm_schema_change
TypeScript
refunds_877.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Shipments { // removed field: balance }
NONE
true
DIFF00000003872
orm_schema_change
TypeScript
sessions_965.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Inventory { // removed field: amount }
NONE
true
DIFF00000003873
mentioned_in_comment
Python
refunds_603.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: UPDATE products SET price = CONCAT(price, email); -- now deprecated"""
UPDATE_CONCAT
false
DIFF00000003874
test_suite_cleanup
SQL
tests/refunds_531.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE users;
DROP_TABLE
false
DIFF00000003875
obfuscated_destructive
SQL
notifications_819.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE comments DROP COLUMN updated_at;
DROP_COLUMN
true
DIFF00000003876
test_suite_cleanup
SQL
test/events_919.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE sessions SET amount = CONCAT(amount, status);
UPDATE_CONCAT
false
DIFF00000003877
mentioned_in_comment
Python
subscriptions_179.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE comments RENAME COLUMN is_active TO amount_cents; -- now deprecated"""
ALTER_RENAME
false
DIFF00000003878
general_code_change
Python
orders_517.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000003879
raw_sql_safe
SQL
reviews_446.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE users ADD COLUMN full_name VARCHAR(255);
NONE
false
DIFF00000003880
orm_schema_change
TypeScript
subscriptions_921.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Accounts { // removed field: address }
NONE
true
DIFF00000003881
orm_schema_change
TypeScript
users_179.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Customers { // removed field: category }
NONE
true
DIFF00000003882
orm_schema_change
Python
tickets_919.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='inventory', name='email')
NONE
true
DIFF00000003883
orm_schema_change
TypeScript
invoices_52.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Refunds { // removed field: amount }
NONE
true
DIFF00000003884
obfuscated_destructive
SQL
tickets_936.sql
schema cleanup
@@ -1,3 +1,3 @@ +UPDATE inventory SET score = CONCAT(score, quantity);
UPDATE_CONCAT
true
DIFF00000003885
mentioned_in_comment
Python
events_881.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DROP TABLE tickets;")
DROP_TABLE
false
DIFF00000003886
raw_sql_safe
SQL
sessions_278.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO sessions (price, category) VALUES (%s, %s);
NONE
false
DIFF00000003887
orm_schema_change
Ruby
events_305.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :customers, :status
NONE
true
DIFF00000003888
raw_sql_safe
SQL
users_278.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM subscriptions WHERE category = 'active';
NONE
false
DIFF00000003889
orm_schema_change
JavaScript
subscriptions_634.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('subscriptions', table => table.dropColumn('role'))
NONE
true
DIFF00000003890
general_code_change
Go
transactions_590.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000003891
general_code_change
Python
logs_893.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000003892
orm_schema_change
Ruby
inventory_409.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :reviews, :updated_at
NONE
true
DIFF00000003893
orm_schema_change
Python
accounts_563.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='transactions', name='score')
NONE
true
DIFF00000003894
test_suite_cleanup
SQL
spec/employees_102.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE customers RENAME COLUMN name TO user_role;
ALTER_RENAME
false
DIFF00000003895
general_code_change
Python
accounts_508.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000003896
general_code_change
Python
payments_193.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000003897
general_code_change
JavaScript
users_138.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
DIFF00000003898
general_code_change
TypeScript
transactions_313.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
DIFF00000003899
mentioned_in_comment
Python
users_548.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: DELETE FROM logs; -- now deprecated"""
DELETE_UNQUALIFIED
false