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
DIFF00099992500
orm_schema_change
JavaScript
inventory_36.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('reviews', 'name')
NONE
true
DIFF00099992501
orm_schema_change
Ruby
users_571.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :comments, :address
NONE
true
DIFF00099992502
raw_sql_safe
SQL
invoices_857.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE subscriptions ADD COLUMN state VARCHAR(255);
NONE
false
DIFF00099992503
obfuscated_destructive
SQL
users_564.sql
schema cleanup
@@ -1,3 +1,3 @@ +aLTeR TABLE LOgs drOp CoLUmN BalaNCe;
DROP_COLUMN
true
DIFF00099992504
test_suite_cleanup
SQL
test/subscriptions_974.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE tickets;
DROP_TABLE
false
DIFF00099992505
obfuscated_destructive
SQL
events_667.sql
schema cleanup
@@ -1,3 +1,3 @@ +UPDATE logs SET user_id = CONCAT(user_id, status);
UPDATE_CONCAT
true
DIFF00099992506
mentioned_in_comment
Python
logs_290.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'UPDATE transactions SET role = CONCAT(role, phone);' manually, handled by migration tool
UPDATE_CONCAT
false
DIFF00099992507
orm_schema_change
JavaScript
comments_300.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('sessions', 'status')
NONE
true
DIFF00099992508
general_code_change
Ruby
users_996.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099992509
general_code_change
Python
orders_517.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099992510
orm_schema_change
Ruby
tickets_488.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :events, :phone
NONE
true
DIFF00099992511
orm_schema_change
JavaScript
sessions_87.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('inventory', 'score')
NONE
true
DIFF00099992512
raw_sql_safe
SQL
invoices_521.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE customers SET category = %s WHERE is_active = %s;
NONE
false
DIFF00099992513
orm_schema_change
Python
employees_781.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='inventory', name='quantity')
NONE
true
DIFF00099992514
raw_sql_safe
SQL
orders_356.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO comments (quantity, name) VALUES (%s, %s);
NONE
false
DIFF00099992515
raw_sql_safe
SQL
orders_939.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE shipments SET price = %s WHERE email = %s;
NONE
false
DIFF00099992516
raw_sql_safe
SQL
refunds_679.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE users SET is_active = %s WHERE balance = %s;
NONE
false
DIFF00099992517
obfuscated_destructive
SQL
sessions_462.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE transactions DROP COLUMN updated_at;
DROP_COLUMN
true
DIFF00099992518
raw_sql_safe
SQL
orders_192.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_payments_status ON payments (quantity);
NONE
false
DIFF00099992519
test_suite_cleanup
SQL
test/accounts_389.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM tickets;
DELETE_UNQUALIFIED
false
DIFF00099992520
mentioned_in_comment
Python
payments_259.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DELETE FROM reviews;")
DELETE_UNQUALIFIED
false
DIFF00099992521
orm_schema_change
Ruby
comments_793.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :refunds, :score
NONE
true
DIFF00099992522
orm_schema_change
JavaScript
tickets_883.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('reviews', table => table.dropColumn('priority'))
NONE
true
DIFF00099992523
raw_sql_destructive
SQL
customers_301.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE orders SET address = CONCAT(address, user_id);
UPDATE_CONCAT
true
DIFF00099992524
obfuscated_destructive
SQL
orders_953.sql
schema cleanup
@@ -1,3 +1,3 @@ +dRoP taBle TICkETS;
DROP_TABLE
true
DIFF00099992525
raw_sql_safe
SQL
transactions_914.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE inventory SET price = %s WHERE category = %s;
NONE
false
DIFF00099992526
orm_schema_change
TypeScript
events_465.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Users { // removed field: created_at }
NONE
true
DIFF00099992527
raw_sql_destructive
SQL
employees_684.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE subscriptions;
DROP_TABLE
true
DIFF00099992528
general_code_change
Java
logs_314.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099992529
orm_schema_change
JavaScript
tickets_850.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('sessions', 'metadata')
NONE
true
DIFF00099992530
general_code_change
Go
accounts_91.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099992531
test_suite_cleanup
SQL
spec/logs_475.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE refunds SET metadata = CONCAT(metadata, category);
UPDATE_CONCAT
false
DIFF00099992532
orm_schema_change
TypeScript
transactions_487.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Comments { // removed field: order_id }
NONE
true
DIFF00099992533
general_code_change
Go
refunds_399.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099992534
obfuscated_destructive
SQL
orders_276.sql
schema cleanup
@@ -1,3 +1,3 @@ +DELETE FROM invoices;
DELETE_UNQUALIFIED
true
DIFF00099992535
test_suite_cleanup
SQL
test/subscriptions_127.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE accounts;
TRUNCATE
false
DIFF00099992536
raw_sql_destructive
SQL
events_824.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE inventory;
TRUNCATE
true
DIFF00099992537
general_code_change
JavaScript
shipments_362.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099992538
general_code_change
JavaScript
logs_766.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099992539
raw_sql_safe
SQL
tickets_835.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM logs WHERE updated_at = 'active';
NONE
false
DIFF00099992540
mentioned_in_comment
Python
notifications_612.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE events DROP COLUMN category; -- now deprecated"""
DROP_COLUMN
false
DIFF00099992541
obfuscated_destructive
SQL
shipments_994.sql
schema cleanup
@@ -1,3 +1,3 @@ +DELETE FROM transactions;
DELETE_UNQUALIFIED
true
DIFF00099992542
raw_sql_safe
SQL
notifications_698.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE events ADD COLUMN amount_cents VARCHAR(255);
NONE
false
DIFF00099992543
obfuscated_destructive
SQL
invoices_380.sql
schema cleanup
@@ -1,3 +1,3 @@ +TRUncATE Table prODUcts;
TRUNCATE
true
DIFF00099992544
obfuscated_destructive
SQL
events_642.sql
schema cleanup
@@ -1,3 +1,3 @@ +alTEr TaBlE TransaCtiOns renAmE cOLUmN phONe To fuLL_Name;
ALTER_RENAME
true
DIFF00099992545
raw_sql_destructive
SQL
events_74.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE refunds SET address = CONCAT(address, category);
UPDATE_CONCAT
true
DIFF00099992546
obfuscated_destructive
SQL
subscriptions_842.sql
schema cleanup
@@ -1,3 +1,3 @@ +DROP TABLE payments;
DROP_TABLE
true
DIFF00099992547
general_code_change
Ruby
refunds_968.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099992548
raw_sql_safe
SQL
products_715.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_employees_name ON employees (status);
NONE
false
DIFF00099992549
raw_sql_destructive
SQL
inventory_626.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE payments RENAME COLUMN description TO full_name;
ALTER_RENAME
true
DIFF00099992550
raw_sql_safe
SQL
reviews_419.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE transactions SET amount = %s WHERE metadata = %s;
NONE
false
DIFF00099992551
orm_schema_change
JavaScript
users_218.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('employees', table => table.dropColumn('description'))
NONE
true
DIFF00099992552
test_suite_cleanup
SQL
test/users_976.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE notifications SET quantity = CONCAT(quantity, quantity);
UPDATE_CONCAT
false
DIFF00099992553
raw_sql_safe
SQL
employees_342.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE employees SET balance = %s WHERE name = %s;
NONE
false
DIFF00099992554
general_code_change
JavaScript
invoices_899.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099992555
orm_schema_change
Python
users_95.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='refunds', name='email')
NONE
true
DIFF00099992556
general_code_change
Java
products_386.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099992557
obfuscated_destructive
SQL
sessions_415.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE events RENAME COLUMN role TO user_role;
ALTER_RENAME
true
DIFF00099992558
general_code_change
Python
inventory_392.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099992559
raw_sql_safe
SQL
transactions_22.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE subscriptions ADD COLUMN amount_cents VARCHAR(255);
NONE
false
DIFF00099992560
mentioned_in_comment
Python
transactions_298.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE products RENAME COLUMN phone TO amount_cents;")
ALTER_RENAME
false
DIFF00099992561
mentioned_in_comment
Python
subscriptions_992.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: TRUNCATE TABLE subscriptions;")
TRUNCATE
false
DIFF00099992562
obfuscated_destructive
SQL
invoices_204.sql
schema cleanup
@@ -1,3 +1,3 @@ +truncate table refunds;
TRUNCATE
true
DIFF00099992563
raw_sql_destructive
SQL
payments_68.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE invoices DROP COLUMN category;
DROP_COLUMN
true
DIFF00099992564
general_code_change
Python
sessions_667.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099992565
mentioned_in_comment
Python
shipments_769.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DROP TABLE payments;' manually, handled by migration tool
DROP_TABLE
false
DIFF00099992566
general_code_change
Java
customers_421.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099992567
general_code_change
TypeScript
invoices_365.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
DIFF00099992568
orm_schema_change
JavaScript
employees_352.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('users', 'balance')
NONE
true
DIFF00099992569
orm_schema_change
JavaScript
shipments_937.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('payments', 'description')
NONE
true
DIFF00099992570
mentioned_in_comment
Python
sessions_974.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'TRUNCATE TABLE reviews;' manually, handled by migration tool
TRUNCATE
false
DIFF00099992571
orm_schema_change
Ruby
tickets_926.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :invoices, :order_id
NONE
true
DIFF00099992572
obfuscated_destructive
SQL
customers_865.sql
schema cleanup
@@ -1,3 +1,3 @@ +truncate table products;
TRUNCATE
true
DIFF00099992573
orm_schema_change
Python
accounts_925.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='customers', name='order_id')
NONE
true
DIFF00099992574
test_suite_cleanup
SQL
tests/refunds_672.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE shipments RENAME COLUMN address TO state;
ALTER_RENAME
false
DIFF00099992575
general_code_change
JavaScript
comments_230.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099992576
raw_sql_safe
SQL
comments_244.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM refunds WHERE balance = 'active';
NONE
false
DIFF00099992577
mentioned_in_comment
Python
orders_206.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: TRUNCATE TABLE users; -- now deprecated"""
TRUNCATE
false
DIFF00099992578
obfuscated_destructive
SQL
events_524.sql
schema cleanup
@@ -1,3 +1,3 @@ +tRunCatE tABLe TiCKEtS;
TRUNCATE
true
DIFF00099992579
general_code_change
Java
subscriptions_469.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099992580
test_suite_cleanup
SQL
test/subscriptions_91.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM notifications;
DELETE_UNQUALIFIED
false
DIFF00099992581
obfuscated_destructive
SQL
shipments_498.sql
schema cleanup
@@ -1,3 +1,3 @@ +delete from accounts;
DELETE_UNQUALIFIED
true
DIFF00099992582
orm_schema_change
JavaScript
logs_160.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('invoices', table => table.dropColumn('user_id'))
NONE
true
DIFF00099992583
raw_sql_destructive
SQL
shipments_769.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE employees;
DROP_TABLE
true
DIFF00099992584
test_suite_cleanup
SQL
tests/subscriptions_627.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE refunds;
DROP_TABLE
false
DIFF00099992585
raw_sql_safe
SQL
refunds_942.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO customers (phone, status) VALUES (%s, %s);
NONE
false
DIFF00099992586
orm_schema_change
JavaScript
shipments_660.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('reviews', table => table.dropColumn('quantity'))
NONE
true
DIFF00099992587
orm_schema_change
Ruby
tickets_885.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :employees, :status
NONE
true
DIFF00099992588
raw_sql_safe
SQL
subscriptions_834.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM subscriptions WHERE price = 'active';
NONE
false
DIFF00099992589
raw_sql_safe
SQL
sessions_906.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO notifications (updated_at, score) VALUES (%s, %s);
NONE
false
DIFF00099992590
general_code_change
JavaScript
products_495.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
DIFF00099992591
mentioned_in_comment
Python
employees_519.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'TRUNCATE TABLE users;' manually, handled by migration tool
TRUNCATE
false
DIFF00099992592
general_code_change
TypeScript
subscriptions_217.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
DIFF00099992593
test_suite_cleanup
SQL
test/tickets_81.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM employees;
DELETE_UNQUALIFIED
false
DIFF00099992594
general_code_change
Go
shipments_239.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099992595
mentioned_in_comment
Python
sessions_54.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'UPDATE events SET updated_at = CONCAT(updated_at, category);' manually, handled by migration tool
UPDATE_CONCAT
false
DIFF00099992596
general_code_change
Java
products_309.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099992597
raw_sql_destructive
SQL
products_350.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE sessions DROP COLUMN price;
DROP_COLUMN
true
DIFF00099992598
obfuscated_destructive
SQL
sessions_352.sql
schema cleanup
@@ -1,3 +1,3 @@ +truncate table orders;
TRUNCATE
true
DIFF00099992599
raw_sql_safe
SQL
shipments_733.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_users_name ON users (address);
NONE
false