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
DIFF00000000800
general_code_change
Java
notifications_805.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000000801
general_code_change
Ruby
accounts_226.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000000802
raw_sql_safe
SQL
invoices_472.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_transactions_is_active ON transactions (amount);
NONE
false
DIFF00000000803
orm_schema_change
TypeScript
accounts_721.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Reviews { // removed field: email }
NONE
true
DIFF00000000804
orm_schema_change
JavaScript
subscriptions_121.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('events', 'email')
NONE
true
DIFF00000000805
obfuscated_destructive
SQL
refunds_356.sql
schema cleanup
@@ -1,3 +1,3 @@ +alter table orders rename column user_id to amount_cents;
ALTER_RENAME
true
DIFF00000000806
orm_schema_change
JavaScript
inventory_839.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('logs', table => table.dropColumn('category'))
NONE
true
DIFF00000000807
raw_sql_destructive
SQL
tickets_287.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE subscriptions;
TRUNCATE
true
DIFF00000000808
orm_schema_change
Ruby
comments_567.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :employees, :phone
NONE
true
DIFF00000000809
obfuscated_destructive
SQL
sessions_348.sql
schema cleanup
@@ -1,3 +1,3 @@ +DELETE FROM subscriptions;
DELETE_UNQUALIFIED
true
DIFF00000000810
test_suite_cleanup
SQL
tests/users_930.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE comments SET order_id = CONCAT(order_id, description);
UPDATE_CONCAT
false
DIFF00000000811
mentioned_in_comment
Python
accounts_363.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: DELETE FROM invoices; -- now deprecated"""
DELETE_UNQUALIFIED
false
DIFF00000000812
orm_schema_change
Python
refunds_889.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='transactions', name='user_id')
NONE
true
DIFF00000000813
raw_sql_destructive
SQL
invoices_936.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE refunds DROP COLUMN quantity;
DROP_COLUMN
true
DIFF00000000814
raw_sql_safe
SQL
payments_423.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_comments_updated_at ON comments (category);
NONE
false
DIFF00000000815
test_suite_cleanup
SQL
test/customers_378.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE customers DROP COLUMN status;
DROP_COLUMN
false
DIFF00000000816
orm_schema_change
JavaScript
sessions_638.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('sessions', table => table.dropColumn('user_id'))
NONE
true
DIFF00000000817
general_code_change
JavaScript
transactions_317.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
DIFF00000000818
raw_sql_destructive
SQL
products_621.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE users;
TRUNCATE
true
DIFF00000000819
general_code_change
Go
invoices_771.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000000820
test_suite_cleanup
SQL
spec/comments_959.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE orders DROP COLUMN quantity;
DROP_COLUMN
false
DIFF00000000821
mentioned_in_comment
Python
refunds_725.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DELETE FROM customers;' manually, handled by migration tool
DELETE_UNQUALIFIED
false
DIFF00000000822
raw_sql_destructive
SQL
subscriptions_114.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM events;
DELETE_UNQUALIFIED
true
DIFF00000000823
general_code_change
JavaScript
comments_704.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000000824
obfuscated_destructive
SQL
sessions_261.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE notifications RENAME COLUMN order_id TO amount_cents;
ALTER_RENAME
true
DIFF00000000825
test_suite_cleanup
SQL
tests/users_191.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE payments DROP COLUMN email;
DROP_COLUMN
false
DIFF00000000826
raw_sql_safe
SQL
comments_124.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_comments_metadata ON comments (balance);
NONE
false
DIFF00000000827
obfuscated_destructive
SQL
reviews_269.sql
schema cleanup
@@ -1,3 +1,3 @@ +truncate table shipments;
TRUNCATE
true
DIFF00000000828
mentioned_in_comment
Python
comments_461.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE accounts DROP COLUMN is_active; -- now deprecated"""
DROP_COLUMN
false
DIFF00000000829
test_suite_cleanup
SQL
mysql-test/suite/accounts_498.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE products RENAME COLUMN category TO contact_email;
ALTER_RENAME
false
DIFF00000000830
mentioned_in_comment
Python
inventory_815.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DELETE FROM subscriptions;' manually, handled by migration tool
DELETE_UNQUALIFIED
false
DIFF00000000831
orm_schema_change
JavaScript
transactions_463.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('customers', table => table.dropColumn('price'))
NONE
true
DIFF00000000832
orm_schema_change
JavaScript
users_488.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('shipments', table => table.dropColumn('address'))
NONE
true
DIFF00000000833
general_code_change
Python
orders_734.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000000834
general_code_change
Python
events_958.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000000835
raw_sql_safe
SQL
events_709.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM accounts WHERE email = 'active';
NONE
false
DIFF00000000836
raw_sql_destructive
SQL
payments_366.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE subscriptions RENAME COLUMN quantity TO contact_email;
ALTER_RENAME
true
DIFF00000000837
general_code_change
Go
customers_38.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000000838
mentioned_in_comment
Python
reviews_514.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE comments RENAME COLUMN balance TO contact_email; -- now deprecated"""
ALTER_RENAME
false
DIFF00000000839
raw_sql_destructive
SQL
employees_621.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE payments RENAME COLUMN updated_at TO user_role;
ALTER_RENAME
true
DIFF00000000840
general_code_change
Python
logs_692.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000000841
orm_schema_change
Python
logs_135.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='employees', name='created_at')
NONE
true
DIFF00000000842
general_code_change
Go
reviews_807.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000000843
orm_schema_change
Python
orders_384.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='invoices', name='balance')
NONE
true
DIFF00000000844
general_code_change
Python
customers_418.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000000845
orm_schema_change
Ruby
invoices_752.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :inventory, :email
NONE
true
DIFF00000000846
raw_sql_destructive
SQL
products_174.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE subscriptions SET metadata = CONCAT(metadata, role);
UPDATE_CONCAT
true
DIFF00000000847
obfuscated_destructive
SQL
invoices_691.sql
schema cleanup
@@ -1,3 +1,3 @@ +TrUncAte table INvOIcES;
TRUNCATE
true
DIFF00000000848
orm_schema_change
JavaScript
orders_615.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('events', 'role')
NONE
true
DIFF00000000849
general_code_change
Python
products_236.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000000850
test_suite_cleanup
SQL
mysql-test/suite/subscriptions_513.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE events;
TRUNCATE
false
DIFF00000000851
orm_schema_change
TypeScript
logs_123.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Accounts { // removed field: amount }
NONE
true
DIFF00000000852
general_code_change
JavaScript
payments_713.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000000853
general_code_change
Python
comments_690.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000000854
raw_sql_destructive
SQL
orders_296.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM logs;
DELETE_UNQUALIFIED
true
DIFF00000000855
orm_schema_change
JavaScript
customers_229.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('reviews', 'user_id')
NONE
true
DIFF00000000856
general_code_change
Go
refunds_508.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000000857
orm_schema_change
JavaScript
transactions_188.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('tickets', 'email')
NONE
true
DIFF00000000858
general_code_change
Python
users_417.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000000859
test_suite_cleanup
SQL
tests/sessions_209.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE logs;
TRUNCATE
false
DIFF00000000860
raw_sql_destructive
SQL
comments_713.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE shipments;
DROP_TABLE
true
DIFF00000000861
raw_sql_safe
SQL
payments_954.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM subscriptions WHERE role = 'active';
NONE
false
DIFF00000000862
orm_schema_change
JavaScript
notifications_798.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('inventory', table => table.dropColumn('updated_at'))
NONE
true
DIFF00000000863
mentioned_in_comment
Python
payments_721.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DROP TABLE notifications;")
DROP_TABLE
false
DIFF00000000864
raw_sql_safe
SQL
invoices_227.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE transactions SET created_at = %s WHERE updated_at = %s;
NONE
false
DIFF00000000865
orm_schema_change
Ruby
logs_636.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :inventory, :user_id
NONE
true
DIFF00000000866
general_code_change
Ruby
notifications_700.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000000867
mentioned_in_comment
Python
accounts_980.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: DROP TABLE refunds; -- now deprecated"""
DROP_TABLE
false
DIFF00000000868
general_code_change
Java
tickets_25.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000000869
orm_schema_change
TypeScript
transactions_497.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Users { // removed field: price }
NONE
true
DIFF00000000870
orm_schema_change
TypeScript
customers_881.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Subscriptions { // removed field: price }
NONE
true
DIFF00000000871
mentioned_in_comment
Python
accounts_730.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE inventory RENAME COLUMN email TO contact_email;")
ALTER_RENAME
false
DIFF00000000872
raw_sql_safe
SQL
users_883.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE accounts ADD COLUMN state VARCHAR(255);
NONE
false
DIFF00000000873
raw_sql_destructive
SQL
events_648.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM accounts;
DELETE_UNQUALIFIED
true
DIFF00000000874
mentioned_in_comment
Python
inventory_140.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DELETE FROM tickets;' manually, handled by migration tool
DELETE_UNQUALIFIED
false
DIFF00000000875
raw_sql_safe
SQL
invoices_15.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE transactions ADD COLUMN full_name VARCHAR(255);
NONE
false
DIFF00000000876
general_code_change
Python
subscriptions_540.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000000877
test_suite_cleanup
SQL
tests/shipments_837.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE comments RENAME COLUMN user_id TO full_name;
ALTER_RENAME
false
DIFF00000000878
orm_schema_change
JavaScript
transactions_556.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('sessions', 'quantity')
NONE
true
DIFF00000000879
general_code_change
Go
products_268.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000000880
orm_schema_change
Ruby
payments_942.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :comments, :user_id
NONE
true
DIFF00000000881
test_suite_cleanup
SQL
mysql-test/suite/notifications_590.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM events;
DELETE_UNQUALIFIED
false
DIFF00000000882
raw_sql_destructive
SQL
users_850.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE notifications SET priority = CONCAT(priority, status);
UPDATE_CONCAT
true
DIFF00000000883
raw_sql_destructive
SQL
invoices_104.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE shipments RENAME COLUMN role TO state;
ALTER_RENAME
true
DIFF00000000884
mentioned_in_comment
Python
inventory_10.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE events DROP COLUMN role;")
DROP_COLUMN
false
DIFF00000000885
raw_sql_destructive
SQL
shipments_941.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE subscriptions;
TRUNCATE
true
DIFF00000000886
mentioned_in_comment
Python
transactions_951.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE users DROP COLUMN balance; -- now deprecated"""
DROP_COLUMN
false
DIFF00000000887
orm_schema_change
JavaScript
users_88.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('logs', 'balance')
NONE
true
DIFF00000000888
general_code_change
TypeScript
notifications_753.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
DIFF00000000889
general_code_change
JavaScript
users_890.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
DIFF00000000890
raw_sql_safe
SQL
shipments_222.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE notifications SET updated_at = %s WHERE role = %s;
NONE
false
DIFF00000000891
orm_schema_change
Ruby
accounts_913.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :subscriptions, :category
NONE
true
DIFF00000000892
orm_schema_change
TypeScript
employees_435.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Transactions { // removed field: description }
NONE
true
DIFF00000000893
general_code_change
Java
products_822.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000000894
orm_schema_change
TypeScript
invoices_69.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Subscriptions { // removed field: status }
NONE
true
DIFF00000000895
orm_schema_change
JavaScript
invoices_244.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('users', table => table.dropColumn('role'))
NONE
true
DIFF00000000896
test_suite_cleanup
SQL
tests/reviews_590.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE reviews RENAME COLUMN status TO amount_cents;
ALTER_RENAME
false
DIFF00000000897
orm_schema_change
JavaScript
tickets_533.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('transactions', table => table.dropColumn('priority'))
NONE
true
DIFF00000000898
raw_sql_safe
SQL
customers_138.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM events WHERE user_id = 'active';
NONE
false
DIFF00000000899
orm_schema_change
Python
refunds_95.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='sessions', name='balance')
NONE
true