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
DIFF00099992900
raw_sql_safe
SQL
users_638.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_sessions_amount ON sessions (quantity);
NONE
false
DIFF00099992901
orm_schema_change
Python
notifications_70.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='customers', name='is_active')
NONE
true
DIFF00099992902
general_code_change
Java
invoices_621.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099992903
general_code_change
Ruby
tickets_368.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099992904
obfuscated_destructive
SQL
comments_448.sql
schema cleanup
@@ -1,3 +1,3 @@ +UPDATE sessions SET metadata = CONCAT(metadata, score);
UPDATE_CONCAT
true
DIFF00099992905
general_code_change
Ruby
comments_474.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099992906
orm_schema_change
TypeScript
employees_98.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Sessions { // removed field: quantity }
NONE
true
DIFF00099992907
test_suite_cleanup
SQL
test/orders_143.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE customers SET quantity = CONCAT(quantity, balance);
UPDATE_CONCAT
false
DIFF00099992908
general_code_change
JavaScript
employees_127.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
DIFF00099992909
general_code_change
JavaScript
shipments_761.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
DIFF00099992910
orm_schema_change
Ruby
products_580.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :payments, :user_id
NONE
true
DIFF00099992911
mentioned_in_comment
Python
refunds_902.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE products DROP COLUMN status;' manually, handled by migration tool
DROP_COLUMN
false
DIFF00099992912
raw_sql_safe
SQL
customers_699.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_employees_is_active ON employees (description);
NONE
false
DIFF00099992913
obfuscated_destructive
SQL
sessions_993.sql
schema cleanup
@@ -1,3 +1,3 @@ +deleTe FROm evenTS;
DELETE_UNQUALIFIED
true
DIFF00099992914
mentioned_in_comment
Python
tickets_23.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE employees DROP COLUMN amount;")
DROP_COLUMN
false
DIFF00099992915
test_suite_cleanup
SQL
spec/logs_941.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE refunds;
DROP_TABLE
false
DIFF00099992916
obfuscated_destructive
SQL
shipments_10.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTEr TaBlE OrdErS drOp COLumn updATeD_aT;
DROP_COLUMN
true
DIFF00099992917
raw_sql_destructive
SQL
payments_808.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE transactions;
DROP_TABLE
true
DIFF00099992918
orm_schema_change
JavaScript
notifications_905.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('users', 'status')
NONE
true
DIFF00099992919
test_suite_cleanup
SQL
tests/payments_975.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE users DROP COLUMN description;
DROP_COLUMN
false
DIFF00099992920
orm_schema_change
JavaScript
shipments_431.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('users', 'status')
NONE
true
DIFF00099992921
general_code_change
Python
employees_947.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099992922
general_code_change
TypeScript
sessions_671.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
DIFF00099992923
general_code_change
Go
transactions_372.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099992924
general_code_change
Ruby
users_921.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099992925
general_code_change
Ruby
refunds_187.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099992926
general_code_change
Java
transactions_633.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099992927
mentioned_in_comment
Python
reviews_346.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE products DROP COLUMN price;' manually, handled by migration tool
DROP_COLUMN
false
DIFF00099992928
mentioned_in_comment
Python
customers_648.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE inventory RENAME COLUMN email TO full_name;")
ALTER_RENAME
false
DIFF00099992929
raw_sql_destructive
SQL
tickets_306.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE users DROP COLUMN priority;
DROP_COLUMN
true
DIFF00099992930
raw_sql_safe
SQL
logs_203.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE notifications SET user_id = %s WHERE email = %s;
NONE
false
DIFF00099992931
raw_sql_safe
SQL
products_798.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE comments ADD COLUMN amount_cents VARCHAR(255);
NONE
false
DIFF00099992932
mentioned_in_comment
Python
inventory_91.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE logs RENAME COLUMN description TO amount_cents;")
ALTER_RENAME
false
DIFF00099992933
raw_sql_safe
SQL
sessions_680.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE events ADD COLUMN amount_cents VARCHAR(255);
NONE
false
DIFF00099992934
mentioned_in_comment
Python
inventory_118.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: DROP TABLE tickets; -- now deprecated"""
DROP_TABLE
false
DIFF00099992935
raw_sql_destructive
SQL
products_436.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE logs;
TRUNCATE
true
DIFF00099992936
test_suite_cleanup
SQL
mysql-test/suite/tickets_297.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE invoices RENAME COLUMN quantity TO user_role;
ALTER_RENAME
false
DIFF00099992937
general_code_change
Java
events_581.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099992938
orm_schema_change
TypeScript
payments_520.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Subscriptions { // removed field: balance }
NONE
true
DIFF00099992939
obfuscated_destructive
SQL
transactions_673.sql
schema cleanup
@@ -1,3 +1,3 @@ +DELETE FROM events;
DELETE_UNQUALIFIED
true
DIFF00099992940
general_code_change
TypeScript
accounts_172.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
DIFF00099992941
raw_sql_destructive
SQL
reviews_196.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE shipments SET order_id = CONCAT(order_id, address);
UPDATE_CONCAT
true
DIFF00099992942
mentioned_in_comment
Python
invoices_277.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE comments DROP COLUMN name; -- now deprecated"""
DROP_COLUMN
false
DIFF00099992943
mentioned_in_comment
Python
payments_234.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: DELETE FROM payments; -- now deprecated"""
DELETE_UNQUALIFIED
false
DIFF00099992944
general_code_change
Ruby
inventory_34.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099992945
general_code_change
Ruby
employees_115.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099992946
test_suite_cleanup
SQL
spec/invoices_359.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE reviews SET quantity = CONCAT(quantity, user_id);
UPDATE_CONCAT
false
DIFF00099992947
raw_sql_safe
SQL
transactions_335.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM comments WHERE balance = 'active';
NONE
false
DIFF00099992948
raw_sql_destructive
SQL
orders_475.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE accounts DROP COLUMN status;
DROP_COLUMN
true
DIFF00099992949
general_code_change
TypeScript
events_625.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
DIFF00099992950
obfuscated_destructive
SQL
reviews_114.sql
schema cleanup
@@ -1,3 +1,3 @@ +update transactions set role = concat(role, description);
UPDATE_CONCAT
true
DIFF00099992951
orm_schema_change
JavaScript
orders_989.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('reviews', 'email')
NONE
true
DIFF00099992952
test_suite_cleanup
SQL
test/inventory_272.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM users;
DELETE_UNQUALIFIED
false
DIFF00099992953
test_suite_cleanup
SQL
tests/customers_101.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE accounts SET balance = CONCAT(balance, score);
UPDATE_CONCAT
false
DIFF00099992954
general_code_change
Go
tickets_595.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099992955
general_code_change
TypeScript
accounts_216.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
DIFF00099992956
test_suite_cleanup
SQL
mysql-test/suite/payments_158.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE subscriptions;
DROP_TABLE
false
DIFF00099992957
general_code_change
TypeScript
transactions_951.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
DIFF00099992958
test_suite_cleanup
SQL
test/transactions_849.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE reviews RENAME COLUMN role TO full_name;
ALTER_RENAME
false
DIFF00099992959
orm_schema_change
Python
employees_292.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='inventory', name='role')
NONE
true
DIFF00099992960
orm_schema_change
JavaScript
refunds_351.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('payments', table => table.dropColumn('description'))
NONE
true
DIFF00099992961
general_code_change
Python
users_433.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099992962
general_code_change
Go
inventory_900.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099992963
raw_sql_destructive
SQL
payments_563.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE payments DROP COLUMN quantity;
DROP_COLUMN
true
DIFF00099992964
mentioned_in_comment
Python
customers_772.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: UPDATE employees SET status = CONCAT(status, score); -- now deprecated"""
UPDATE_CONCAT
false
DIFF00099992965
general_code_change
Python
tickets_460.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099992966
orm_schema_change
JavaScript
employees_179.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('refunds', 'amount')
NONE
true
DIFF00099992967
raw_sql_destructive
SQL
employees_482.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE products DROP COLUMN description;
DROP_COLUMN
true
DIFF00099992968
general_code_change
Python
products_748.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099992969
test_suite_cleanup
SQL
spec/employees_858.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE customers RENAME COLUMN price TO amount_cents;
ALTER_RENAME
false
DIFF00099992970
obfuscated_destructive
SQL
invoices_497.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE notifications RENAME COLUMN quantity TO contact_email;
ALTER_RENAME
true
DIFF00099992971
general_code_change
JavaScript
transactions_274.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
DIFF00099992972
test_suite_cleanup
SQL
mysql-test/suite/products_356.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE invoices;
DROP_TABLE
false
DIFF00099992973
raw_sql_safe
SQL
sessions_825.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM orders WHERE priority = 'active';
NONE
false
DIFF00099992974
general_code_change
TypeScript
refunds_589.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
DIFF00099992975
mentioned_in_comment
Python
accounts_382.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: TRUNCATE TABLE reviews; -- now deprecated"""
TRUNCATE
false
DIFF00099992976
obfuscated_destructive
SQL
logs_557.sql
schema cleanup
@@ -1,3 +1,3 @@ +update tickets set metadata = concat(metadata, balance);
UPDATE_CONCAT
true
DIFF00099992977
test_suite_cleanup
SQL
tests/customers_215.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE reviews RENAME COLUMN category TO amount_cents;
ALTER_RENAME
false
DIFF00099992978
general_code_change
Python
inventory_423.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099992979
test_suite_cleanup
SQL
mysql-test/suite/reviews_417.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE orders DROP COLUMN address;
DROP_COLUMN
false
DIFF00099992980
raw_sql_safe
SQL
users_101.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM reviews WHERE score = 'active';
NONE
false
DIFF00099992981
raw_sql_destructive
SQL
logs_455.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM products;
DELETE_UNQUALIFIED
true
DIFF00099992982
obfuscated_destructive
SQL
invoices_954.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE reviews DROP COLUMN score;
DROP_COLUMN
true
DIFF00099992983
general_code_change
JavaScript
reviews_382.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
DIFF00099992984
test_suite_cleanup
SQL
spec/shipments_137.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM transactions;
DELETE_UNQUALIFIED
false
DIFF00099992985
general_code_change
TypeScript
comments_850.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
DIFF00099992986
raw_sql_safe
SQL
refunds_736.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE tickets ADD COLUMN amount_cents VARCHAR(255);
NONE
false
DIFF00099992987
raw_sql_destructive
SQL
shipments_914.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE inventory SET created_at = CONCAT(created_at, created_at);
UPDATE_CONCAT
true
DIFF00099992988
raw_sql_safe
SQL
tickets_416.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE orders ADD COLUMN user_role VARCHAR(255);
NONE
false
DIFF00099992989
general_code_change
TypeScript
refunds_436.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
DIFF00099992990
general_code_change
TypeScript
orders_624.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
DIFF00099992991
orm_schema_change
Ruby
events_371.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :invoices, :metadata
NONE
true
DIFF00099992992
raw_sql_safe
SQL
logs_260.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_inventory_score ON inventory (priority);
NONE
false
DIFF00099992993
orm_schema_change
Ruby
events_336.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :invoices, :address
NONE
true
DIFF00099992994
obfuscated_destructive
SQL
users_987.sql
schema cleanup
@@ -1,3 +1,3 @@ +Alter taBLE inVEnTOry renamE CoLumn MeTADATa tO uSEr_roLE;
ALTER_RENAME
true
DIFF00099992995
raw_sql_safe
SQL
payments_143.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE logs ADD COLUMN contact_email VARCHAR(255);
NONE
false
DIFF00099992996
raw_sql_destructive
SQL
shipments_27.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE users RENAME COLUMN status TO amount_cents;
ALTER_RENAME
true
DIFF00099992997
raw_sql_destructive
SQL
tickets_153.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE invoices;
DROP_TABLE
true
DIFF00099992998
raw_sql_destructive
SQL
invoices_339.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE refunds SET role = CONCAT(role, updated_at);
UPDATE_CONCAT
true
DIFF00099992999
mentioned_in_comment
Python
sessions_156.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE notifications RENAME COLUMN is_active TO user_role; -- now deprecated"""
ALTER_RENAME
false