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
DIFF00099992700
raw_sql_safe
SQL
tickets_670.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO logs (quantity, created_at) VALUES (%s, %s);
NONE
false
DIFF00099992701
obfuscated_destructive
SQL
transactions_895.sql
schema cleanup
@@ -1,3 +1,3 @@ +TrUnCATe TAblE eveNTS;
TRUNCATE
true
DIFF00099992702
orm_schema_change
JavaScript
reviews_639.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('reviews', 'amount')
NONE
true
DIFF00099992703
orm_schema_change
Ruby
employees_216.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :employees, :order_id
NONE
true
DIFF00099992704
general_code_change
Ruby
customers_665.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099992705
raw_sql_safe
SQL
notifications_53.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_events_metadata ON events (metadata);
NONE
false
DIFF00099992706
mentioned_in_comment
Python
users_380.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: TRUNCATE TABLE notifications;")
TRUNCATE
false
DIFF00099992707
general_code_change
JavaScript
accounts_806.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
DIFF00099992708
general_code_change
TypeScript
shipments_112.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
DIFF00099992709
test_suite_cleanup
SQL
mysql-test/suite/invoices_130.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE events;
DROP_TABLE
false
DIFF00099992710
mentioned_in_comment
Python
comments_431.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE customers RENAME COLUMN phone TO contact_email;")
ALTER_RENAME
false
DIFF00099992711
general_code_change
JavaScript
users_707.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
DIFF00099992712
general_code_change
Go
sessions_231.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099992713
raw_sql_safe
SQL
orders_515.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM subscriptions WHERE name = 'active';
NONE
false
DIFF00099992714
raw_sql_safe
SQL
payments_609.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE customers SET description = %s WHERE role = %s;
NONE
false
DIFF00099992715
general_code_change
Ruby
logs_276.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099992716
general_code_change
JavaScript
refunds_466.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099992717
obfuscated_destructive
SQL
subscriptions_667.sql
schema cleanup
@@ -1,3 +1,3 @@ +DELETE FROM invoices;
DELETE_UNQUALIFIED
true
DIFF00099992718
raw_sql_destructive
SQL
comments_590.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE reviews;
TRUNCATE
true
DIFF00099992719
raw_sql_safe
SQL
orders_319.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE invoices SET metadata = %s WHERE user_id = %s;
NONE
false
DIFF00099992720
obfuscated_destructive
SQL
sessions_423.sql
schema cleanup
@@ -1,3 +1,3 @@ +dROp tABle shIPMeNTs;
DROP_TABLE
true
DIFF00099992721
raw_sql_safe
SQL
inventory_115.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM transactions WHERE balance = 'active';
NONE
false
DIFF00099992722
obfuscated_destructive
SQL
accounts_380.sql
schema cleanup
@@ -1,3 +1,3 @@ +TRUNCATE TABLE shipments;
TRUNCATE
true
DIFF00099992723
general_code_change
JavaScript
accounts_431.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
DIFF00099992724
raw_sql_destructive
SQL
invoices_645.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE customers;
TRUNCATE
true
DIFF00099992725
raw_sql_safe
SQL
refunds_642.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM accounts WHERE price = 'active';
NONE
false
DIFF00099992726
mentioned_in_comment
Python
accounts_611.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: TRUNCATE TABLE refunds;")
TRUNCATE
false
DIFF00099992727
general_code_change
TypeScript
sessions_343.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
DIFF00099992728
test_suite_cleanup
SQL
test/notifications_136.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE users RENAME COLUMN balance TO user_role;
ALTER_RENAME
false
DIFF00099992729
test_suite_cleanup
SQL
tests/transactions_757.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE sessions DROP COLUMN created_at;
DROP_COLUMN
false
DIFF00099992730
general_code_change
JavaScript
employees_541.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099992731
orm_schema_change
Python
products_636.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='invoices', name='score')
NONE
true
DIFF00099992732
general_code_change
JavaScript
inventory_241.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
DIFF00099992733
orm_schema_change
JavaScript
orders_708.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('notifications', 'status')
NONE
true
DIFF00099992734
general_code_change
Python
accounts_211.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099992735
mentioned_in_comment
Python
users_85.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'TRUNCATE TABLE inventory;' manually, handled by migration tool
TRUNCATE
false
DIFF00099992736
raw_sql_destructive
SQL
accounts_671.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE logs;
DROP_TABLE
true
DIFF00099992737
test_suite_cleanup
SQL
test/reviews_876.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE invoices;
TRUNCATE
false
DIFF00099992738
mentioned_in_comment
Python
orders_375.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: UPDATE products SET role = CONCAT(role, metadata); -- now deprecated"""
UPDATE_CONCAT
false
DIFF00099992739
raw_sql_safe
SQL
invoices_271.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE events ADD COLUMN amount_cents VARCHAR(255);
NONE
false
DIFF00099992740
orm_schema_change
Python
sessions_900.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='customers', name='role')
NONE
true
DIFF00099992741
mentioned_in_comment
Python
inventory_421.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DELETE FROM reviews;")
DELETE_UNQUALIFIED
false
DIFF00099992742
general_code_change
Go
tickets_243.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099992743
raw_sql_destructive
SQL
events_862.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE shipments;
TRUNCATE
true
DIFF00099992744
mentioned_in_comment
Python
transactions_851.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DROP TABLE products;' manually, handled by migration tool
DROP_TABLE
false
DIFF00099992745
raw_sql_safe
SQL
events_42.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE comments ADD COLUMN user_role VARCHAR(255);
NONE
false
DIFF00099992746
general_code_change
JavaScript
invoices_592.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
DIFF00099992747
orm_schema_change
Python
refunds_498.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='logs', name='name')
NONE
true
DIFF00099992748
raw_sql_safe
SQL
employees_546.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE sessions SET quantity = %s WHERE role = %s;
NONE
false
DIFF00099992749
raw_sql_safe
SQL
accounts_705.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM customers WHERE user_id = 'active';
NONE
false
DIFF00099992750
general_code_change
Ruby
comments_590.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099992751
test_suite_cleanup
SQL
mysql-test/suite/inventory_434.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE transactions DROP COLUMN amount;
DROP_COLUMN
false
DIFF00099992752
general_code_change
Java
orders_590.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099992753
raw_sql_destructive
SQL
employees_49.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM comments;
DELETE_UNQUALIFIED
true
DIFF00099992754
general_code_change
Python
subscriptions_940.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099992755
general_code_change
Go
users_39.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099992756
obfuscated_destructive
SQL
refunds_584.sql
schema cleanup
@@ -1,3 +1,3 @@ +alter table subscriptions drop column order_id;
DROP_COLUMN
true
DIFF00099992757
general_code_change
JavaScript
invoices_336.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099992758
general_code_change
Python
customers_613.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099992759
general_code_change
Ruby
employees_574.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099992760
orm_schema_change
JavaScript
tickets_38.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('tickets', 'order_id')
NONE
true
DIFF00099992761
mentioned_in_comment
Python
employees_371.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'TRUNCATE TABLE users;' manually, handled by migration tool
TRUNCATE
false
DIFF00099992762
raw_sql_destructive
SQL
refunds_661.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE tickets;
TRUNCATE
true
DIFF00099992763
test_suite_cleanup
SQL
spec/users_558.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE reviews DROP COLUMN category;
DROP_COLUMN
false
DIFF00099992764
general_code_change
Python
notifications_699.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099992765
obfuscated_destructive
SQL
transactions_769.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE products DROP COLUMN phone;
DROP_COLUMN
true
DIFF00099992766
test_suite_cleanup
SQL
mysql-test/suite/payments_983.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE accounts;
DROP_TABLE
false
DIFF00099992767
raw_sql_destructive
SQL
tickets_704.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE invoices;
DROP_TABLE
true
DIFF00099992768
general_code_change
JavaScript
logs_303.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099992769
raw_sql_destructive
SQL
comments_138.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE reviews DROP COLUMN user_id;
DROP_COLUMN
true
DIFF00099992770
general_code_change
TypeScript
invoices_641.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
DIFF00099992771
orm_schema_change
JavaScript
tickets_700.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('payments', 'priority')
NONE
true
DIFF00099992772
orm_schema_change
Python
inventory_636.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='reviews', name='email')
NONE
true
DIFF00099992773
obfuscated_destructive
SQL
sessions_103.sql
schema cleanup
@@ -1,3 +1,3 @@ +UpDAte iNvENtOry seT AMOunt = coNCat(amount, NaME);
UPDATE_CONCAT
true
DIFF00099992774
orm_schema_change
TypeScript
shipments_375.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Transactions { // removed field: description }
NONE
true
DIFF00099992775
general_code_change
Python
sessions_548.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099992776
general_code_change
Python
events_196.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099992777
orm_schema_change
Ruby
events_45.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :logs, :address
NONE
true
DIFF00099992778
orm_schema_change
TypeScript
employees_804.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Payments { // removed field: updated_at }
NONE
true
DIFF00099992779
general_code_change
Java
tickets_326.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099992780
general_code_change
TypeScript
payments_7.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
DIFF00099992781
test_suite_cleanup
SQL
mysql-test/suite/orders_746.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE accounts;
TRUNCATE
false
DIFF00099992782
general_code_change
Python
users_764.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099992783
raw_sql_destructive
SQL
payments_424.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE orders RENAME COLUMN order_id TO contact_email;
ALTER_RENAME
true
DIFF00099992784
raw_sql_destructive
SQL
sessions_428.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE transactions RENAME COLUMN address TO full_name;
ALTER_RENAME
true
DIFF00099992785
general_code_change
JavaScript
refunds_452.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
DIFF00099992786
general_code_change
JavaScript
refunds_760.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
DIFF00099992787
orm_schema_change
Python
invoices_644.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='customers', name='role')
NONE
true
DIFF00099992788
raw_sql_safe
SQL
notifications_678.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM orders WHERE order_id = 'active';
NONE
false
DIFF00099992789
general_code_change
Go
invoices_471.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099992790
raw_sql_safe
SQL
products_680.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE notifications ADD COLUMN amount_cents VARCHAR(255);
NONE
false
DIFF00099992791
general_code_change
Python
customers_500.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099992792
orm_schema_change
JavaScript
sessions_145.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('users', 'quantity')
NONE
true
DIFF00099992793
general_code_change
TypeScript
transactions_66.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
DIFF00099992794
orm_schema_change
Python
notifications_656.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='invoices', name='address')
NONE
true
DIFF00099992795
raw_sql_destructive
SQL
tickets_255.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM comments;
DELETE_UNQUALIFIED
true
DIFF00099992796
raw_sql_safe
SQL
shipments_99.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE accounts SET order_id = %s WHERE address = %s;
NONE
false
DIFF00099992797
obfuscated_destructive
SQL
invoices_567.sql
schema cleanup
@@ -1,3 +1,3 @@ +alter table payments rename column name to contact_email;
ALTER_RENAME
true
DIFF00099992798
mentioned_in_comment
Python
accounts_684.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: DROP TABLE reviews; -- now deprecated"""
DROP_TABLE
false
DIFF00099992799
raw_sql_destructive
SQL
tickets_664.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE events;
TRUNCATE
true