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
DIFF00000009700
general_code_change
JavaScript
tickets_129.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
DIFF00000009701
raw_sql_safe
SQL
employees_792.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM accounts WHERE email = 'active';
NONE
false
DIFF00000009702
test_suite_cleanup
SQL
tests/comments_848.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE reviews RENAME COLUMN address TO state;
ALTER_RENAME
false
DIFF00000009703
orm_schema_change
Python
users_972.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='employees', name='updated_at')
NONE
true
DIFF00000009704
orm_schema_change
JavaScript
employees_761.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('sessions', 'price')
NONE
true
DIFF00000009705
raw_sql_safe
SQL
accounts_451.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE invoices ADD COLUMN contact_email VARCHAR(255);
NONE
false
DIFF00000009706
obfuscated_destructive
SQL
notifications_834.sql
schema cleanup
@@ -1,3 +1,3 @@ +TRUNCATE TABLE accounts;
TRUNCATE
true
DIFF00000009707
general_code_change
JavaScript
employees_891.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000009708
obfuscated_destructive
SQL
customers_708.sql
schema cleanup
@@ -1,3 +1,3 @@ +drop table sessions;
DROP_TABLE
true
DIFF00000009709
general_code_change
Python
invoices_305.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000009710
raw_sql_destructive
SQL
sessions_342.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE reviews;
DROP_TABLE
true
DIFF00000009711
general_code_change
Python
shipments_4.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000009712
orm_schema_change
Ruby
reviews_510.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :accounts, :description
NONE
true
DIFF00000009713
raw_sql_safe
SQL
users_233.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO inventory (updated_at, quantity) VALUES (%s, %s);
NONE
false
DIFF00000009714
raw_sql_destructive
SQL
subscriptions_81.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM shipments;
DELETE_UNQUALIFIED
true
DIFF00000009715
raw_sql_destructive
SQL
customers_694.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE logs DROP COLUMN priority;
DROP_COLUMN
true
DIFF00000009716
general_code_change
Go
sessions_77.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000009717
general_code_change
Ruby
inventory_670.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000009718
general_code_change
Java
users_150.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000009719
obfuscated_destructive
SQL
sessions_512.sql
schema cleanup
@@ -1,3 +1,3 @@ +drOp tAbLE CoMMenTs;
DROP_TABLE
true
DIFF00000009720
mentioned_in_comment
Python
inventory_132.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: UPDATE customers SET created_at = CONCAT(created_at, user_id); -- now deprecated"""
UPDATE_CONCAT
false
DIFF00000009721
obfuscated_destructive
SQL
events_277.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE payments RENAME COLUMN name TO user_role;
ALTER_RENAME
true
DIFF00000009722
general_code_change
TypeScript
invoices_77.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
DIFF00000009723
general_code_change
JavaScript
tickets_547.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
DIFF00000009724
orm_schema_change
JavaScript
shipments_880.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('payments', table => table.dropColumn('priority'))
NONE
true
DIFF00000009725
general_code_change
Python
shipments_369.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000009726
raw_sql_destructive
SQL
tickets_640.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE customers;
DROP_TABLE
true
DIFF00000009727
test_suite_cleanup
SQL
mysql-test/suite/transactions_551.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE notifications SET phone = CONCAT(phone, is_active);
UPDATE_CONCAT
false
DIFF00000009728
general_code_change
JavaScript
shipments_302.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
DIFF00000009729
general_code_change
Java
transactions_154.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000009730
obfuscated_destructive
SQL
payments_550.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE payments RENAME COLUMN phone TO full_name;
ALTER_RENAME
true
DIFF00000009731
raw_sql_destructive
SQL
customers_301.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM employees;
DELETE_UNQUALIFIED
true
DIFF00000009732
orm_schema_change
JavaScript
orders_739.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('sessions', table => table.dropColumn('is_active'))
NONE
true
DIFF00000009733
raw_sql_destructive
SQL
events_712.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE employees DROP COLUMN role;
DROP_COLUMN
true
DIFF00000009734
orm_schema_change
Python
orders_382.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='transactions', name='created_at')
NONE
true
DIFF00000009735
mentioned_in_comment
Python
accounts_823.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'TRUNCATE TABLE transactions;' manually, handled by migration tool
TRUNCATE
false
DIFF00000009736
mentioned_in_comment
Python
transactions_955.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE comments RENAME COLUMN is_active TO full_name; -- now deprecated"""
ALTER_RENAME
false
DIFF00000009737
orm_schema_change
Python
shipments_998.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='inventory', name='name')
NONE
true
DIFF00000009738
orm_schema_change
Python
events_619.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='logs', name='name')
NONE
true
DIFF00000009739
raw_sql_destructive
SQL
customers_462.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE products;
TRUNCATE
true
DIFF00000009740
orm_schema_change
JavaScript
shipments_596.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('refunds', table => table.dropColumn('quantity'))
NONE
true
DIFF00000009741
orm_schema_change
JavaScript
reviews_559.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('accounts', table => table.dropColumn('category'))
NONE
true
DIFF00000009742
test_suite_cleanup
SQL
tests/products_646.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE products DROP COLUMN metadata;
DROP_COLUMN
false
DIFF00000009743
general_code_change
JavaScript
invoices_285.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000009744
orm_schema_change
TypeScript
reviews_567.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Comments { // removed field: metadata }
NONE
true
DIFF00000009745
orm_schema_change
JavaScript
accounts_580.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('shipments', 'balance')
NONE
true
DIFF00000009746
general_code_change
Ruby
inventory_68.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000009747
mentioned_in_comment
Python
events_492.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: UPDATE refunds SET user_id = CONCAT(user_id, email);")
UPDATE_CONCAT
false
DIFF00000009748
test_suite_cleanup
SQL
spec/events_652.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE refunds RENAME COLUMN quantity TO state;
ALTER_RENAME
false
DIFF00000009749
mentioned_in_comment
Python
accounts_666.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: TRUNCATE TABLE employees;")
TRUNCATE
false
DIFF00000009750
test_suite_cleanup
SQL
tests/invoices_4.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM employees;
DELETE_UNQUALIFIED
false
DIFF00000009751
general_code_change
Go
customers_706.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000009752
general_code_change
Ruby
employees_953.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000009753
obfuscated_destructive
SQL
employees_487.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE users RENAME COLUMN order_id TO state;
ALTER_RENAME
true
DIFF00000009754
general_code_change
JavaScript
employees_324.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000009755
general_code_change
Java
refunds_43.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000009756
raw_sql_destructive
SQL
orders_662.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE notifications SET metadata = CONCAT(metadata, name);
UPDATE_CONCAT
true
DIFF00000009757
raw_sql_destructive
SQL
logs_628.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE users RENAME COLUMN name TO state;
ALTER_RENAME
true
DIFF00000009758
test_suite_cleanup
SQL
spec/products_631.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE logs DROP COLUMN order_id;
DROP_COLUMN
false
DIFF00000009759
general_code_change
JavaScript
subscriptions_987.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
DIFF00000009760
general_code_change
Python
accounts_589.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000009761
test_suite_cleanup
SQL
tests/notifications_361.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE sessions;
TRUNCATE
false
DIFF00000009762
obfuscated_destructive
SQL
refunds_781.sql
schema cleanup
@@ -1,3 +1,3 @@ +DELETE FROM notifications;
DELETE_UNQUALIFIED
true
DIFF00000009763
raw_sql_safe
SQL
logs_472.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM sessions WHERE amount = 'active';
NONE
false
DIFF00000009764
test_suite_cleanup
SQL
tests/inventory_600.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM invoices;
DELETE_UNQUALIFIED
false
DIFF00000009765
mentioned_in_comment
Python
reviews_312.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE sessions RENAME COLUMN role TO full_name;")
ALTER_RENAME
false
DIFF00000009766
orm_schema_change
Ruby
refunds_566.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :subscriptions, :user_id
NONE
true
DIFF00000009767
orm_schema_change
TypeScript
reviews_641.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Notifications { // removed field: email }
NONE
true
DIFF00000009768
raw_sql_destructive
SQL
transactions_620.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE reviews DROP COLUMN role;
DROP_COLUMN
true
DIFF00000009769
mentioned_in_comment
Python
events_491.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DELETE FROM customers;")
DELETE_UNQUALIFIED
false
DIFF00000009770
mentioned_in_comment
Python
employees_154.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: UPDATE sessions SET price = CONCAT(price, balance); -- now deprecated"""
UPDATE_CONCAT
false
DIFF00000009771
obfuscated_destructive
SQL
payments_715.sql
schema cleanup
@@ -1,3 +1,3 @@ +DROP TABLE products;
DROP_TABLE
true
DIFF00000009772
test_suite_cleanup
SQL
mysql-test/suite/payments_77.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE transactions SET status = CONCAT(status, name);
UPDATE_CONCAT
false
DIFF00000009773
raw_sql_destructive
SQL
payments_923.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE inventory;
DROP_TABLE
true
DIFF00000009774
orm_schema_change
TypeScript
accounts_144.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Payments { // removed field: order_id }
NONE
true
DIFF00000009775
general_code_change
TypeScript
sessions_610.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
DIFF00000009776
test_suite_cleanup
SQL
test/sessions_187.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM employees;
DELETE_UNQUALIFIED
false
DIFF00000009777
raw_sql_safe
SQL
customers_865.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_orders_score ON orders (price);
NONE
false
DIFF00000009778
raw_sql_destructive
SQL
users_273.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE inventory;
DROP_TABLE
true
DIFF00000009779
general_code_change
JavaScript
refunds_417.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
DIFF00000009780
raw_sql_safe
SQL
accounts_809.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_transactions_score ON transactions (email);
NONE
false
DIFF00000009781
test_suite_cleanup
SQL
tests/transactions_321.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE inventory;
TRUNCATE
false
DIFF00000009782
raw_sql_destructive
SQL
events_608.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE customers;
DROP_TABLE
true
DIFF00000009783
orm_schema_change
JavaScript
inventory_161.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('orders', table => table.dropColumn('status'))
NONE
true
DIFF00000009784
orm_schema_change
JavaScript
sessions_506.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('employees', table => table.dropColumn('priority'))
NONE
true
DIFF00000009785
raw_sql_destructive
SQL
comments_736.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE inventory;
TRUNCATE
true
DIFF00000009786
orm_schema_change
Python
subscriptions_318.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='products', name='amount')
NONE
true
DIFF00000009787
obfuscated_destructive
SQL
orders_745.sql
schema cleanup
@@ -1,3 +1,3 @@ +alter table products drop column score;
DROP_COLUMN
true
DIFF00000009788
test_suite_cleanup
SQL
tests/tickets_232.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE orders;
DROP_TABLE
false
DIFF00000009789
raw_sql_destructive
SQL
customers_404.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE users;
TRUNCATE
true
DIFF00000009790
raw_sql_destructive
SQL
products_786.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE sessions;
TRUNCATE
true
DIFF00000009791
test_suite_cleanup
SQL
mysql-test/suite/shipments_616.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE shipments RENAME COLUMN amount TO user_role;
ALTER_RENAME
false
DIFF00000009792
test_suite_cleanup
SQL
test/payments_706.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE inventory;
TRUNCATE
false
DIFF00000009793
mentioned_in_comment
Python
tickets_431.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: TRUNCATE TABLE invoices;")
TRUNCATE
false
DIFF00000009794
obfuscated_destructive
SQL
notifications_471.sql
schema cleanup
@@ -1,3 +1,3 @@ +truncate table employees;
TRUNCATE
true
DIFF00000009795
test_suite_cleanup
SQL
mysql-test/suite/accounts_117.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE invoices;
DROP_TABLE
false
DIFF00000009796
raw_sql_destructive
SQL
orders_958.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE events;
TRUNCATE
true
DIFF00000009797
test_suite_cleanup
SQL
tests/events_376.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE comments;
TRUNCATE
false
DIFF00000009798
obfuscated_destructive
SQL
notifications_704.sql
schema cleanup
@@ -1,3 +1,3 @@ +UPDATE notifications SET price = CONCAT(price, quantity);
UPDATE_CONCAT
true
DIFF00000009799
raw_sql_destructive
SQL
inventory_936.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE users;
TRUNCATE
true