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
DIFF00000001400
mentioned_in_comment
Python
users_190.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'UPDATE logs SET email = CONCAT(email, phone);' manually, handled by migration tool
UPDATE_CONCAT
false
DIFF00000001401
raw_sql_safe
SQL
accounts_686.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_tickets_quantity ON tickets (address);
NONE
false
DIFF00000001402
obfuscated_destructive
SQL
orders_383.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE logs RENAME COLUMN balance TO amount_cents;
ALTER_RENAME
true
DIFF00000001403
mentioned_in_comment
Python
subscriptions_317.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE inventory DROP COLUMN role;")
DROP_COLUMN
false
DIFF00000001404
obfuscated_destructive
SQL
inventory_360.sql
schema cleanup
@@ -1,3 +1,3 @@ +upDAte CoMmeNTS SEt CreAtED_At = CoNCAT(cReAtED_At, namE);
UPDATE_CONCAT
true
DIFF00000001405
raw_sql_destructive
SQL
comments_175.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE tickets RENAME COLUMN created_at TO full_name;
ALTER_RENAME
true
DIFF00000001406
test_suite_cleanup
SQL
spec/products_104.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE accounts RENAME COLUMN status TO user_role;
ALTER_RENAME
false
DIFF00000001407
test_suite_cleanup
SQL
spec/users_598.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE products;
TRUNCATE
false
DIFF00000001408
general_code_change
JavaScript
employees_786.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000001409
orm_schema_change
Ruby
customers_24.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :subscriptions, :amount
NONE
true
DIFF00000001410
general_code_change
TypeScript
logs_859.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
DIFF00000001411
general_code_change
JavaScript
tickets_793.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
DIFF00000001412
orm_schema_change
JavaScript
accounts_131.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('inventory', 'description')
NONE
true
DIFF00000001413
raw_sql_destructive
SQL
invoices_470.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE notifications RENAME COLUMN amount TO state;
ALTER_RENAME
true
DIFF00000001414
raw_sql_safe
SQL
subscriptions_321.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM shipments WHERE description = 'active';
NONE
false
DIFF00000001415
mentioned_in_comment
Python
products_201.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: UPDATE orders SET is_active = CONCAT(is_active, updated_at);")
UPDATE_CONCAT
false
DIFF00000001416
test_suite_cleanup
SQL
spec/tickets_182.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE notifications;
TRUNCATE
false
DIFF00000001417
test_suite_cleanup
SQL
mysql-test/suite/events_616.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE invoices;
TRUNCATE
false
DIFF00000001418
obfuscated_destructive
SQL
notifications_272.sql
schema cleanup
@@ -1,3 +1,3 @@ +TRUNCATE TABLE logs;
TRUNCATE
true
DIFF00000001419
raw_sql_destructive
SQL
refunds_416.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM reviews;
DELETE_UNQUALIFIED
true
DIFF00000001420
mentioned_in_comment
Python
sessions_714.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: UPDATE transactions SET status = CONCAT(status, role); -- now deprecated"""
UPDATE_CONCAT
false
DIFF00000001421
general_code_change
TypeScript
tickets_347.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
DIFF00000001422
raw_sql_safe
SQL
employees_396.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM reviews WHERE is_active = 'active';
NONE
false
DIFF00000001423
obfuscated_destructive
SQL
employees_400.sql
schema cleanup
@@ -1,3 +1,3 @@ +alter table customers rename column metadata to full_name;
ALTER_RENAME
true
DIFF00000001424
orm_schema_change
JavaScript
accounts_157.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('products', table => table.dropColumn('status'))
NONE
true
DIFF00000001425
general_code_change
TypeScript
logs_313.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
DIFF00000001426
raw_sql_safe
SQL
orders_442.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM users WHERE category = 'active';
NONE
false
DIFF00000001427
general_code_change
TypeScript
users_113.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
DIFF00000001428
raw_sql_safe
SQL
payments_324.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO products (description, quantity) VALUES (%s, %s);
NONE
false
DIFF00000001429
obfuscated_destructive
SQL
sessions_377.sql
schema cleanup
@@ -1,3 +1,3 @@ +alter table shipments drop column updated_at;
DROP_COLUMN
true
DIFF00000001430
general_code_change
TypeScript
shipments_315.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
DIFF00000001431
mentioned_in_comment
Python
employees_244.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: DROP TABLE orders; -- now deprecated"""
DROP_TABLE
false
DIFF00000001432
general_code_change
Python
tickets_763.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000001433
orm_schema_change
Python
inventory_447.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='tickets', name='email')
NONE
true
DIFF00000001434
general_code_change
Go
users_209.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000001435
orm_schema_change
JavaScript
inventory_658.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('users', 'address')
NONE
true
DIFF00000001436
orm_schema_change
JavaScript
employees_662.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('transactions', 'role')
NONE
true
DIFF00000001437
raw_sql_safe
SQL
notifications_804.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO payments (priority, email) VALUES (%s, %s);
NONE
false
DIFF00000001438
test_suite_cleanup
SQL
mysql-test/suite/events_811.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM refunds;
DELETE_UNQUALIFIED
false
DIFF00000001439
raw_sql_destructive
SQL
orders_238.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE refunds RENAME COLUMN updated_at TO user_role;
ALTER_RENAME
true
DIFF00000001440
raw_sql_destructive
SQL
payments_103.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE refunds;
DROP_TABLE
true
DIFF00000001441
mentioned_in_comment
Python
comments_722.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DELETE FROM refunds;")
DELETE_UNQUALIFIED
false
DIFF00000001442
raw_sql_safe
SQL
transactions_305.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE subscriptions SET user_id = %s WHERE amount = %s;
NONE
false
DIFF00000001443
mentioned_in_comment
Python
sessions_768.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'UPDATE employees SET amount = CONCAT(amount, is_active);' manually, handled by migration tool
UPDATE_CONCAT
false
DIFF00000001444
raw_sql_safe
SQL
employees_283.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE orders ADD COLUMN amount_cents VARCHAR(255);
NONE
false
DIFF00000001445
obfuscated_destructive
SQL
events_773.sql
schema cleanup
@@ -1,3 +1,3 @@ +TRUNCATE TABLE refunds;
TRUNCATE
true
DIFF00000001446
raw_sql_destructive
SQL
products_526.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE refunds;
TRUNCATE
true
DIFF00000001447
orm_schema_change
Ruby
invoices_567.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :events, :address
NONE
true
DIFF00000001448
raw_sql_safe
SQL
sessions_136.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_orders_description ON orders (priority);
NONE
false
DIFF00000001449
test_suite_cleanup
SQL
spec/sessions_501.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE logs SET category = CONCAT(category, address);
UPDATE_CONCAT
false
DIFF00000001450
general_code_change
Java
accounts_728.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000001451
raw_sql_destructive
SQL
employees_132.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE inventory;
TRUNCATE
true
DIFF00000001452
orm_schema_change
Ruby
tickets_212.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :subscriptions, :user_id
NONE
true
DIFF00000001453
general_code_change
TypeScript
subscriptions_599.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
DIFF00000001454
mentioned_in_comment
Python
products_6.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: DROP TABLE customers; -- now deprecated"""
DROP_TABLE
false
DIFF00000001455
mentioned_in_comment
Python
logs_825.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DROP TABLE invoices;' manually, handled by migration tool
DROP_TABLE
false
DIFF00000001456
test_suite_cleanup
SQL
test/logs_537.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE subscriptions RENAME COLUMN updated_at TO amount_cents;
ALTER_RENAME
false
DIFF00000001457
test_suite_cleanup
SQL
mysql-test/suite/users_174.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE subscriptions;
TRUNCATE
false
DIFF00000001458
test_suite_cleanup
SQL
test/refunds_553.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE invoices;
TRUNCATE
false
DIFF00000001459
raw_sql_destructive
SQL
accounts_715.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM invoices;
DELETE_UNQUALIFIED
true
DIFF00000001460
obfuscated_destructive
SQL
subscriptions_239.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE customers DROP COLUMN name;
DROP_COLUMN
true
DIFF00000001461
raw_sql_destructive
SQL
transactions_536.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE sessions RENAME COLUMN score TO state;
ALTER_RENAME
true
DIFF00000001462
general_code_change
Java
subscriptions_402.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000001463
general_code_change
JavaScript
invoices_374.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
DIFF00000001464
obfuscated_destructive
SQL
accounts_858.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE reviews RENAME COLUMN order_id TO user_role;
ALTER_RENAME
true
DIFF00000001465
general_code_change
Python
subscriptions_795.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000001466
raw_sql_safe
SQL
tickets_594.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE tickets ADD COLUMN full_name VARCHAR(255);
NONE
false
DIFF00000001467
general_code_change
Ruby
subscriptions_952.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000001468
general_code_change
Java
transactions_231.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000001469
general_code_change
Go
transactions_158.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000001470
raw_sql_safe
SQL
inventory_81.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO shipments (quantity, score) VALUES (%s, %s);
NONE
false
DIFF00000001471
test_suite_cleanup
SQL
tests/sessions_347.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM customers;
DELETE_UNQUALIFIED
false
DIFF00000001472
general_code_change
Ruby
logs_545.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000001473
test_suite_cleanup
SQL
spec/sessions_819.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE products RENAME COLUMN email TO contact_email;
ALTER_RENAME
false
DIFF00000001474
raw_sql_destructive
SQL
inventory_593.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE employees SET name = CONCAT(name, description);
UPDATE_CONCAT
true
DIFF00000001475
general_code_change
Java
events_394.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000001476
general_code_change
JavaScript
tickets_873.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000001477
obfuscated_destructive
SQL
accounts_758.sql
schema cleanup
@@ -1,3 +1,3 @@ +DELETE FROM products;
DELETE_UNQUALIFIED
true
DIFF00000001478
raw_sql_safe
SQL
invoices_948.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_events_metadata ON events (description);
NONE
false
DIFF00000001479
raw_sql_destructive
SQL
employees_859.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE payments DROP COLUMN address;
DROP_COLUMN
true
DIFF00000001480
raw_sql_destructive
SQL
logs_586.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE accounts RENAME COLUMN address TO state;
ALTER_RENAME
true
DIFF00000001481
general_code_change
Python
sessions_683.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000001482
general_code_change
Ruby
invoices_41.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000001483
raw_sql_destructive
SQL
transactions_196.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE comments SET score = CONCAT(score, updated_at);
UPDATE_CONCAT
true
DIFF00000001484
general_code_change
JavaScript
events_877.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
DIFF00000001485
general_code_change
JavaScript
products_78.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
DIFF00000001486
general_code_change
Ruby
payments_974.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000001487
general_code_change
Python
tickets_71.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000001488
orm_schema_change
JavaScript
orders_740.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('accounts', 'phone')
NONE
true
DIFF00000001489
mentioned_in_comment
Python
shipments_865.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: TRUNCATE TABLE invoices;")
TRUNCATE
false
DIFF00000001490
raw_sql_safe
SQL
shipments_95.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO subscriptions (email, description) VALUES (%s, %s);
NONE
false
DIFF00000001491
orm_schema_change
JavaScript
users_189.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('payments', table => table.dropColumn('is_active'))
NONE
true
DIFF00000001492
general_code_change
TypeScript
shipments_709.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
DIFF00000001493
raw_sql_destructive
SQL
transactions_330.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE users DROP COLUMN status;
DROP_COLUMN
true
DIFF00000001494
orm_schema_change
Ruby
orders_428.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :subscriptions, :phone
NONE
true
DIFF00000001495
orm_schema_change
TypeScript
customers_676.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Orders { // removed field: category }
NONE
true
DIFF00000001496
orm_schema_change
Ruby
sessions_147.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :orders, :amount
NONE
true
DIFF00000001497
orm_schema_change
Python
accounts_766.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='comments', name='category')
NONE
true
DIFF00000001498
mentioned_in_comment
Python
orders_306.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE comments DROP COLUMN score; -- now deprecated"""
DROP_COLUMN
false
DIFF00000001499
raw_sql_destructive
SQL
inventory_457.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE employees DROP COLUMN amount;
DROP_COLUMN
true