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
DIFF00000005400
orm_schema_change
JavaScript
employees_485.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('logs', 'quantity')
NONE
true
DIFF00000005401
general_code_change
TypeScript
customers_21.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
DIFF00000005402
orm_schema_change
TypeScript
invoices_258.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Tickets { // removed field: balance }
NONE
true
DIFF00000005403
raw_sql_safe
SQL
reviews_535.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE comments SET updated_at = %s WHERE order_id = %s;
NONE
false
DIFF00000005404
orm_schema_change
TypeScript
transactions_468.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Transactions { // removed field: quantity }
NONE
true
DIFF00000005405
orm_schema_change
Ruby
logs_594.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :inventory, :updated_at
NONE
true
DIFF00000005406
orm_schema_change
JavaScript
users_756.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('payments', table => table.dropColumn('order_id'))
NONE
true
DIFF00000005407
raw_sql_safe
SQL
customers_236.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_invoices_address ON invoices (description);
NONE
false
DIFF00000005408
orm_schema_change
Python
subscriptions_225.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='inventory', name='role')
NONE
true
DIFF00000005409
obfuscated_destructive
SQL
refunds_980.sql
schema cleanup
@@ -1,3 +1,3 @@ +drop table employees;
DROP_TABLE
true
DIFF00000005410
test_suite_cleanup
SQL
test/reviews_741.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE subscriptions;
TRUNCATE
false
DIFF00000005411
obfuscated_destructive
SQL
customers_757.sql
schema cleanup
@@ -1,3 +1,3 @@ +UPDATE accounts SET address = CONCAT(address, status);
UPDATE_CONCAT
true
DIFF00000005412
general_code_change
JavaScript
invoices_150.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
DIFF00000005413
test_suite_cleanup
SQL
tests/transactions_373.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE events DROP COLUMN is_active;
DROP_COLUMN
false
DIFF00000005414
raw_sql_destructive
SQL
users_460.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE sessions DROP COLUMN created_at;
DROP_COLUMN
true
DIFF00000005415
general_code_change
JavaScript
subscriptions_966.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
DIFF00000005416
orm_schema_change
Ruby
inventory_378.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :orders, :updated_at
NONE
true
DIFF00000005417
general_code_change
JavaScript
comments_430.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
DIFF00000005418
test_suite_cleanup
SQL
mysql-test/suite/invoices_892.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE orders;
DROP_TABLE
false
DIFF00000005419
raw_sql_destructive
SQL
inventory_439.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE customers;
TRUNCATE
true
DIFF00000005420
general_code_change
TypeScript
reviews_181.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
DIFF00000005421
orm_schema_change
TypeScript
logs_463.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Customers { // removed field: is_active }
NONE
true
DIFF00000005422
raw_sql_destructive
SQL
invoices_527.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE comments RENAME COLUMN user_id TO full_name;
ALTER_RENAME
true
DIFF00000005423
mentioned_in_comment
Python
notifications_393.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE customers DROP COLUMN score;' manually, handled by migration tool
DROP_COLUMN
false
DIFF00000005424
raw_sql_safe
SQL
events_776.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_subscriptions_order_id ON subscriptions (status);
NONE
false
DIFF00000005425
test_suite_cleanup
SQL
tests/sessions_988.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE employees SET is_active = CONCAT(is_active, created_at);
UPDATE_CONCAT
false
DIFF00000005426
test_suite_cleanup
SQL
tests/reviews_537.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE customers SET is_active = CONCAT(is_active, email);
UPDATE_CONCAT
false
DIFF00000005427
general_code_change
TypeScript
invoices_605.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
DIFF00000005428
raw_sql_safe
SQL
customers_641.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE shipments ADD COLUMN contact_email VARCHAR(255);
NONE
false
DIFF00000005429
obfuscated_destructive
SQL
products_657.sql
schema cleanup
@@ -1,3 +1,3 @@ +UPDATE events SET balance = CONCAT(balance, category);
UPDATE_CONCAT
true
DIFF00000005430
raw_sql_destructive
SQL
inventory_51.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE customers;
TRUNCATE
true
DIFF00000005431
raw_sql_safe
SQL
accounts_272.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_accounts_phone ON accounts (description);
NONE
false
DIFF00000005432
mentioned_in_comment
Python
events_309.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: DELETE FROM users; -- now deprecated"""
DELETE_UNQUALIFIED
false
DIFF00000005433
general_code_change
JavaScript
comments_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
DIFF00000005434
raw_sql_destructive
SQL
refunds_199.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE customers DROP COLUMN priority;
DROP_COLUMN
true
DIFF00000005435
test_suite_cleanup
SQL
spec/payments_994.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE shipments DROP COLUMN created_at;
DROP_COLUMN
false
DIFF00000005436
test_suite_cleanup
SQL
test/tickets_802.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE reviews RENAME COLUMN email TO full_name;
ALTER_RENAME
false
DIFF00000005437
raw_sql_safe
SQL
accounts_963.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE subscriptions ADD COLUMN amount_cents VARCHAR(255);
NONE
false
DIFF00000005438
orm_schema_change
TypeScript
products_199.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Refunds { // removed field: priority }
NONE
true
DIFF00000005439
raw_sql_safe
SQL
transactions_789.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM logs WHERE price = 'active';
NONE
false
DIFF00000005440
general_code_change
Python
products_935.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000005441
raw_sql_safe
SQL
customers_5.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_subscriptions_status ON subscriptions (balance);
NONE
false
DIFF00000005442
obfuscated_destructive
SQL
logs_923.sql
schema cleanup
@@ -1,3 +1,3 @@ +DELETE FROM refunds;
DELETE_UNQUALIFIED
true
DIFF00000005443
raw_sql_destructive
SQL
reviews_710.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM subscriptions;
DELETE_UNQUALIFIED
true
DIFF00000005444
raw_sql_destructive
SQL
reviews_823.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE subscriptions RENAME COLUMN email TO state;
ALTER_RENAME
true
DIFF00000005445
general_code_change
Python
accounts_241.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000005446
general_code_change
TypeScript
inventory_564.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
DIFF00000005447
general_code_change
Go
subscriptions_860.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000005448
general_code_change
Python
comments_669.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000005449
orm_schema_change
Ruby
reviews_833.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :events, :price
NONE
true
DIFF00000005450
mentioned_in_comment
Python
sessions_4.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE employees RENAME COLUMN amount TO amount_cents;' manually, handled by migration tool
ALTER_RENAME
false
DIFF00000005451
orm_schema_change
Ruby
logs_425.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :refunds, :is_active
NONE
true
DIFF00000005452
raw_sql_destructive
SQL
transactions_35.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE users SET created_at = CONCAT(created_at, metadata);
UPDATE_CONCAT
true
DIFF00000005453
general_code_change
TypeScript
inventory_470.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
DIFF00000005454
raw_sql_destructive
SQL
sessions_303.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE invoices;
DROP_TABLE
true
DIFF00000005455
raw_sql_safe
SQL
subscriptions_400.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE orders ADD COLUMN full_name VARCHAR(255);
NONE
false
DIFF00000005456
raw_sql_destructive
SQL
invoices_226.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE employees;
DROP_TABLE
true
DIFF00000005457
mentioned_in_comment
Python
employees_63.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: UPDATE inventory SET score = CONCAT(score, is_active); -- now deprecated"""
UPDATE_CONCAT
false
DIFF00000005458
general_code_change
Java
subscriptions_558.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000005459
general_code_change
Go
inventory_420.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000005460
orm_schema_change
TypeScript
notifications_69.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Employees { // removed field: updated_at }
NONE
true
DIFF00000005461
raw_sql_safe
SQL
inventory_288.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE customers ADD COLUMN user_role VARCHAR(255);
NONE
false
DIFF00000005462
raw_sql_safe
SQL
orders_689.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_inventory_email ON inventory (is_active);
NONE
false
DIFF00000005463
raw_sql_safe
SQL
refunds_759.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO refunds (status, name) VALUES (%s, %s);
NONE
false
DIFF00000005464
general_code_change
JavaScript
refunds_985.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
DIFF00000005465
raw_sql_destructive
SQL
subscriptions_777.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE subscriptions;
DROP_TABLE
true
DIFF00000005466
obfuscated_destructive
SQL
transactions_98.sql
schema cleanup
@@ -1,3 +1,3 @@ +drop table sessions;
DROP_TABLE
true
DIFF00000005467
obfuscated_destructive
SQL
sessions_669.sql
schema cleanup
@@ -1,3 +1,3 @@ +truncate table reviews;
TRUNCATE
true
DIFF00000005468
general_code_change
Python
invoices_145.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000005469
mentioned_in_comment
Python
shipments_571.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'UPDATE comments SET quantity = CONCAT(quantity, address);' manually, handled by migration tool
UPDATE_CONCAT
false
DIFF00000005470
orm_schema_change
Python
reviews_121.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='products', name='amount')
NONE
true
DIFF00000005471
general_code_change
Python
employees_685.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000005472
mentioned_in_comment
Python
customers_991.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DELETE FROM reviews;' manually, handled by migration tool
DELETE_UNQUALIFIED
false
DIFF00000005473
raw_sql_destructive
SQL
inventory_443.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE invoices;
TRUNCATE
true
DIFF00000005474
orm_schema_change
TypeScript
accounts_887.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Users { // removed field: quantity }
NONE
true
DIFF00000005475
orm_schema_change
Ruby
subscriptions_96.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :notifications, :email
NONE
true
DIFF00000005476
mentioned_in_comment
Python
transactions_821.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE users RENAME COLUMN address TO amount_cents; -- now deprecated"""
ALTER_RENAME
false
DIFF00000005477
general_code_change
Java
events_816.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000005478
test_suite_cleanup
SQL
test/users_680.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM logs;
DELETE_UNQUALIFIED
false
DIFF00000005479
raw_sql_destructive
SQL
refunds_563.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE customers DROP COLUMN updated_at;
DROP_COLUMN
true
DIFF00000005480
general_code_change
Python
refunds_751.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000005481
test_suite_cleanup
SQL
mysql-test/suite/payments_349.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE events;
DROP_TABLE
false
DIFF00000005482
general_code_change
JavaScript
logs_809.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
DIFF00000005483
orm_schema_change
JavaScript
sessions_608.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('transactions', table => table.dropColumn('amount'))
NONE
true
DIFF00000005484
test_suite_cleanup
SQL
test/customers_905.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM refunds;
DELETE_UNQUALIFIED
false
DIFF00000005485
general_code_change
Go
events_818.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000005486
orm_schema_change
Ruby
payments_739.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :orders, :status
NONE
true
DIFF00000005487
mentioned_in_comment
Python
tickets_462.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: DROP TABLE reviews; -- now deprecated"""
DROP_TABLE
false
DIFF00000005488
raw_sql_destructive
SQL
invoices_159.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE employees RENAME COLUMN is_active TO full_name;
ALTER_RENAME
true
DIFF00000005489
general_code_change
Python
tickets_195.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000005490
general_code_change
Java
notifications_965.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000005491
orm_schema_change
JavaScript
accounts_614.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('refunds', 'phone')
NONE
true
DIFF00000005492
raw_sql_safe
SQL
invoices_118.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE payments SET is_active = %s WHERE priority = %s;
NONE
false
DIFF00000005493
raw_sql_safe
SQL
users_737.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE subscriptions ADD COLUMN user_role VARCHAR(255);
NONE
false
DIFF00000005494
general_code_change
Go
employees_477.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000005495
general_code_change
JavaScript
transactions_573.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000005496
obfuscated_destructive
SQL
payments_232.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE employees RENAME COLUMN metadata TO state;
ALTER_RENAME
true
DIFF00000005497
test_suite_cleanup
SQL
tests/logs_377.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE sessions DROP COLUMN name;
DROP_COLUMN
false
DIFF00000005498
general_code_change
JavaScript
sessions_67.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
DIFF00000005499
raw_sql_safe
SQL
reviews_696.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_customers_name ON customers (category);
NONE
false