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
DIFF00000002400
general_code_change
Java
inventory_695.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000002401
general_code_change
Java
payments_347.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000002402
mentioned_in_comment
Python
accounts_345.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE users DROP COLUMN category;")
DROP_COLUMN
false
DIFF00000002403
raw_sql_destructive
SQL
shipments_576.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM comments;
DELETE_UNQUALIFIED
true
DIFF00000002404
mentioned_in_comment
Python
products_294.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE logs RENAME COLUMN role TO user_role; -- now deprecated"""
ALTER_RENAME
false
DIFF00000002405
general_code_change
Python
reviews_494.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000002406
test_suite_cleanup
SQL
tests/reviews_210.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM payments;
DELETE_UNQUALIFIED
false
DIFF00000002407
general_code_change
Java
subscriptions_42.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000002408
general_code_change
Go
refunds_443.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000002409
raw_sql_safe
SQL
accounts_371.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_events_metadata ON events (price);
NONE
false
DIFF00000002410
general_code_change
JavaScript
sessions_840.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
DIFF00000002411
raw_sql_safe
SQL
sessions_133.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM products WHERE quantity = 'active';
NONE
false
DIFF00000002412
test_suite_cleanup
SQL
spec/customers_836.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE sessions SET price = CONCAT(price, quantity);
UPDATE_CONCAT
false
DIFF00000002413
mentioned_in_comment
Python
users_168.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: UPDATE invoices SET quantity = CONCAT(quantity, category); -- now deprecated"""
UPDATE_CONCAT
false
DIFF00000002414
raw_sql_destructive
SQL
inventory_523.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM refunds;
DELETE_UNQUALIFIED
true
DIFF00000002415
raw_sql_destructive
SQL
payments_473.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE tickets;
TRUNCATE
true
DIFF00000002416
general_code_change
JavaScript
comments_477.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000002417
test_suite_cleanup
SQL
spec/events_37.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE accounts SET email = CONCAT(email, price);
UPDATE_CONCAT
false
DIFF00000002418
raw_sql_safe
SQL
shipments_590.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM events WHERE address = 'active';
NONE
false
DIFF00000002419
orm_schema_change
JavaScript
inventory_117.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('subscriptions', 'name')
NONE
true
DIFF00000002420
general_code_change
Java
transactions_870.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000002421
mentioned_in_comment
Python
reviews_905.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE events RENAME COLUMN category TO full_name; -- now deprecated"""
ALTER_RENAME
false
DIFF00000002422
raw_sql_safe
SQL
invoices_138.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM events WHERE email = 'active';
NONE
false
DIFF00000002423
raw_sql_destructive
SQL
sessions_479.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM refunds;
DELETE_UNQUALIFIED
true
DIFF00000002424
test_suite_cleanup
SQL
test/notifications_797.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE subscriptions DROP COLUMN is_active;
DROP_COLUMN
false
DIFF00000002425
test_suite_cleanup
SQL
tests/notifications_305.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM comments;
DELETE_UNQUALIFIED
false
DIFF00000002426
obfuscated_destructive
SQL
tickets_36.sql
schema cleanup
@@ -1,3 +1,3 @@ +delete from sessions;
DELETE_UNQUALIFIED
true
DIFF00000002427
raw_sql_safe
SQL
products_319.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM comments WHERE updated_at = 'active';
NONE
false
DIFF00000002428
obfuscated_destructive
SQL
events_741.sql
schema cleanup
@@ -1,3 +1,3 @@ +truncate table employees;
TRUNCATE
true
DIFF00000002429
orm_schema_change
TypeScript
employees_909.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Subscriptions { // removed field: email }
NONE
true
DIFF00000002430
raw_sql_safe
SQL
inventory_588.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE logs SET name = %s WHERE score = %s;
NONE
false
DIFF00000002431
mentioned_in_comment
Python
events_994.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE tickets DROP COLUMN created_at;")
DROP_COLUMN
false
DIFF00000002432
test_suite_cleanup
SQL
spec/employees_695.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE products;
DROP_TABLE
false
DIFF00000002433
raw_sql_destructive
SQL
inventory_557.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE notifications;
TRUNCATE
true
DIFF00000002434
orm_schema_change
TypeScript
accounts_341.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Transactions { // removed field: status }
NONE
true
DIFF00000002435
general_code_change
Go
notifications_904.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000002436
general_code_change
Python
comments_528.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000002437
general_code_change
Go
inventory_751.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000002438
general_code_change
Ruby
sessions_971.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000002439
obfuscated_destructive
SQL
orders_653.sql
schema cleanup
@@ -1,3 +1,3 @@ +UPDATE tickets SET updated_at = CONCAT(updated_at, address);
UPDATE_CONCAT
true
DIFF00000002440
obfuscated_destructive
SQL
sessions_398.sql
schema cleanup
@@ -1,3 +1,3 @@ +alter table refunds drop column updated_at;
DROP_COLUMN
true
DIFF00000002441
orm_schema_change
TypeScript
inventory_454.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Orders { // removed field: priority }
NONE
true
DIFF00000002442
general_code_change
JavaScript
products_812.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000002443
obfuscated_destructive
SQL
employees_821.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE products RENAME COLUMN priority TO user_role;
ALTER_RENAME
true
DIFF00000002444
mentioned_in_comment
Python
notifications_857.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE reviews RENAME COLUMN name TO full_name; -- now deprecated"""
ALTER_RENAME
false
DIFF00000002445
raw_sql_safe
SQL
tickets_968.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_shipments_user_id ON shipments (created_at);
NONE
false
DIFF00000002446
obfuscated_destructive
SQL
reviews_128.sql
schema cleanup
@@ -1,3 +1,3 @@ +tRuncATE TaBlE eMploYEEs;
TRUNCATE
true
DIFF00000002447
raw_sql_destructive
SQL
events_435.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE invoices;
DROP_TABLE
true
DIFF00000002448
general_code_change
Go
payments_883.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000002449
general_code_change
TypeScript
refunds_791.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
DIFF00000002450
obfuscated_destructive
SQL
inventory_750.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE orders RENAME COLUMN priority TO user_role;
ALTER_RENAME
true
DIFF00000002451
mentioned_in_comment
Python
reviews_551.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE tickets RENAME COLUMN user_id TO contact_email;")
ALTER_RENAME
false
DIFF00000002452
orm_schema_change
JavaScript
shipments_103.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('users', 'status')
NONE
true
DIFF00000002453
orm_schema_change
JavaScript
orders_263.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('users', 'balance')
NONE
true
DIFF00000002454
raw_sql_safe
SQL
reviews_783.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO events (name, user_id) VALUES (%s, %s);
NONE
false
DIFF00000002455
general_code_change
Python
accounts_656.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000002456
orm_schema_change
Python
refunds_23.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='logs', name='priority')
NONE
true
DIFF00000002457
raw_sql_safe
SQL
sessions_836.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE shipments SET price = %s WHERE address = %s;
NONE
false
DIFF00000002458
raw_sql_safe
SQL
sessions_745.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM comments WHERE priority = 'active';
NONE
false
DIFF00000002459
general_code_change
Ruby
reviews_394.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000002460
general_code_change
Ruby
comments_546.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000002461
orm_schema_change
JavaScript
orders_137.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('orders', 'priority')
NONE
true
DIFF00000002462
general_code_change
Ruby
users_847.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000002463
orm_schema_change
Python
payments_613.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='products', name='status')
NONE
true
DIFF00000002464
raw_sql_destructive
SQL
subscriptions_647.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE customers;
DROP_TABLE
true
DIFF00000002465
test_suite_cleanup
SQL
test/logs_648.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE tickets SET name = CONCAT(name, status);
UPDATE_CONCAT
false
DIFF00000002466
raw_sql_safe
SQL
subscriptions_670.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO orders (phone, created_at) VALUES (%s, %s);
NONE
false
DIFF00000002467
test_suite_cleanup
SQL
spec/logs_162.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE reviews DROP COLUMN role;
DROP_COLUMN
false
DIFF00000002468
obfuscated_destructive
SQL
products_229.sql
schema cleanup
@@ -1,3 +1,3 @@ +DELETE FROM refunds;
DELETE_UNQUALIFIED
true
DIFF00000002469
mentioned_in_comment
Python
notifications_217.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: TRUNCATE TABLE employees; -- now deprecated"""
TRUNCATE
false
DIFF00000002470
mentioned_in_comment
Python
orders_495.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE customers RENAME COLUMN updated_at TO full_name;' manually, handled by migration tool
ALTER_RENAME
false
DIFF00000002471
general_code_change
Ruby
refunds_650.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000002472
orm_schema_change
Python
users_819.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='users', name='quantity')
NONE
true
DIFF00000002473
raw_sql_destructive
SQL
payments_992.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE accounts DROP COLUMN category;
DROP_COLUMN
true
DIFF00000002474
raw_sql_destructive
SQL
employees_471.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE reviews RENAME COLUMN is_active TO user_role;
ALTER_RENAME
true
DIFF00000002475
obfuscated_destructive
SQL
transactions_322.sql
schema cleanup
@@ -1,3 +1,3 @@ +trUNcate TAble prodUcts;
TRUNCATE
true
DIFF00000002476
orm_schema_change
JavaScript
subscriptions_888.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('notifications', 'quantity')
NONE
true
DIFF00000002477
general_code_change
Python
employees_3.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000002478
raw_sql_safe
SQL
reviews_793.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE products ADD COLUMN full_name VARCHAR(255);
NONE
false
DIFF00000002479
orm_schema_change
JavaScript
events_806.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('orders', 'phone')
NONE
true
DIFF00000002480
raw_sql_safe
SQL
logs_675.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE users ADD COLUMN amount_cents VARCHAR(255);
NONE
false
DIFF00000002481
orm_schema_change
Ruby
transactions_557.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :refunds, :email
NONE
true
DIFF00000002482
test_suite_cleanup
SQL
tests/subscriptions_505.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE inventory;
DROP_TABLE
false
DIFF00000002483
test_suite_cleanup
SQL
test/payments_68.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE transactions SET balance = CONCAT(balance, address);
UPDATE_CONCAT
false
DIFF00000002484
raw_sql_safe
SQL
customers_968.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_employees_user_id ON employees (name);
NONE
false
DIFF00000002485
raw_sql_safe
SQL
products_588.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM logs WHERE balance = 'active';
NONE
false
DIFF00000002486
raw_sql_destructive
SQL
events_462.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM accounts;
DELETE_UNQUALIFIED
true
DIFF00000002487
general_code_change
Go
notifications_3.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000002488
obfuscated_destructive
SQL
events_163.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALteR tAbLe shiPMeNtS RENAmE COLumN is_actiVe TO fULl_naMe;
ALTER_RENAME
true
DIFF00000002489
orm_schema_change
Ruby
payments_814.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :orders, :is_active
NONE
true
DIFF00000002490
raw_sql_safe
SQL
reviews_272.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO payments (price, quantity) VALUES (%s, %s);
NONE
false
DIFF00000002491
orm_schema_change
TypeScript
invoices_168.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Accounts { // removed field: status }
NONE
true
DIFF00000002492
test_suite_cleanup
SQL
test/transactions_47.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM subscriptions;
DELETE_UNQUALIFIED
false
DIFF00000002493
raw_sql_destructive
SQL
logs_908.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE comments;
DROP_TABLE
true
DIFF00000002494
general_code_change
Java
accounts_289.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000002495
mentioned_in_comment
Python
comments_54.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE invoices RENAME COLUMN created_at TO contact_email; -- now deprecated"""
ALTER_RENAME
false
DIFF00000002496
mentioned_in_comment
Python
users_824.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: TRUNCATE TABLE customers; -- now deprecated"""
TRUNCATE
false
DIFF00000002497
obfuscated_destructive
SQL
events_828.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE sessions RENAME COLUMN phone TO contact_email;
ALTER_RENAME
true
DIFF00000002498
general_code_change
JavaScript
tickets_68.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
DIFF00000002499
raw_sql_destructive
SQL
events_556.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM orders;
DELETE_UNQUALIFIED
true