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
DIFF00000002600
general_code_change
Java
accounts_265.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000002601
obfuscated_destructive
SQL
reviews_817.sql
schema cleanup
@@ -1,3 +1,3 @@ +TRUNcaTE tABlE acCOUnTS;
TRUNCATE
true
DIFF00000002602
orm_schema_change
TypeScript
transactions_980.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Shipments { // removed field: name }
NONE
true
DIFF00000002603
obfuscated_destructive
SQL
shipments_308.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE refunds DROP COLUMN score;
DROP_COLUMN
true
DIFF00000002604
raw_sql_safe
SQL
invoices_116.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE orders SET category = %s WHERE is_active = %s;
NONE
false
DIFF00000002605
orm_schema_change
Ruby
notifications_260.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :subscriptions, :category
NONE
true
DIFF00000002606
orm_schema_change
Ruby
sessions_104.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :employees, :metadata
NONE
true
DIFF00000002607
obfuscated_destructive
SQL
inventory_365.sql
schema cleanup
@@ -1,3 +1,3 @@ +aLTer tABlE InVentory DROp colUMn PhONE;
DROP_COLUMN
true
DIFF00000002608
mentioned_in_comment
Python
users_419.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'UPDATE customers SET is_active = CONCAT(is_active, user_id);' manually, handled by migration tool
UPDATE_CONCAT
false
DIFF00000002609
test_suite_cleanup
SQL
spec/logs_144.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE invoices SET amount = CONCAT(amount, status);
UPDATE_CONCAT
false
DIFF00000002610
mentioned_in_comment
Python
users_121.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: UPDATE sessions SET description = CONCAT(description, phone); -- now deprecated"""
UPDATE_CONCAT
false
DIFF00000002611
raw_sql_safe
SQL
products_799.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE employees SET amount = %s WHERE balance = %s;
NONE
false
DIFF00000002612
orm_schema_change
JavaScript
invoices_437.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('inventory', table => table.dropColumn('price'))
NONE
true
DIFF00000002613
general_code_change
JavaScript
sessions_370.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000002614
general_code_change
Java
payments_813.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000002615
raw_sql_destructive
SQL
sessions_434.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE invoices DROP COLUMN metadata;
DROP_COLUMN
true
DIFF00000002616
general_code_change
Python
transactions_285.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000002617
general_code_change
Python
products_448.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000002618
raw_sql_destructive
SQL
customers_84.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE logs SET address = CONCAT(address, user_id);
UPDATE_CONCAT
true
DIFF00000002619
raw_sql_safe
SQL
notifications_787.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE payments SET category = %s WHERE address = %s;
NONE
false
DIFF00000002620
test_suite_cleanup
SQL
tests/notifications_303.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE logs SET created_at = CONCAT(created_at, category);
UPDATE_CONCAT
false
DIFF00000002621
orm_schema_change
Python
accounts_169.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='subscriptions', name='category')
NONE
true
DIFF00000002622
general_code_change
Java
inventory_797.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000002623
general_code_change
Python
accounts_945.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000002624
general_code_change
Python
inventory_498.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000002625
general_code_change
TypeScript
events_681.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
DIFF00000002626
general_code_change
JavaScript
reviews_762.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
DIFF00000002627
test_suite_cleanup
SQL
mysql-test/suite/logs_289.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE products SET amount = CONCAT(amount, address);
UPDATE_CONCAT
false
DIFF00000002628
obfuscated_destructive
SQL
employees_460.sql
schema cleanup
@@ -1,3 +1,3 @@ +update shipments set price = concat(price, created_at);
UPDATE_CONCAT
true
DIFF00000002629
general_code_change
TypeScript
employees_595.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
DIFF00000002630
general_code_change
Go
notifications_57.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000002631
general_code_change
JavaScript
orders_204.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000002632
general_code_change
Python
events_464.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000002633
raw_sql_destructive
SQL
users_873.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE sessions DROP COLUMN category;
DROP_COLUMN
true
DIFF00000002634
raw_sql_destructive
SQL
products_475.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE invoices;
DROP_TABLE
true
DIFF00000002635
test_suite_cleanup
SQL
mysql-test/suite/reviews_161.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE products SET priority = CONCAT(priority, email);
UPDATE_CONCAT
false
DIFF00000002636
general_code_change
JavaScript
invoices_695.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000002637
raw_sql_safe
SQL
accounts_669.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE logs ADD COLUMN contact_email VARCHAR(255);
NONE
false
DIFF00000002638
mentioned_in_comment
Python
products_669.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: DROP TABLE comments; -- now deprecated"""
DROP_TABLE
false
DIFF00000002639
general_code_change
Go
reviews_111.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000002640
general_code_change
TypeScript
invoices_146.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
DIFF00000002641
raw_sql_destructive
SQL
inventory_453.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE invoices SET role = CONCAT(role, email);
UPDATE_CONCAT
true
DIFF00000002642
raw_sql_destructive
SQL
orders_666.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE employees DROP COLUMN priority;
DROP_COLUMN
true
DIFF00000002643
raw_sql_safe
SQL
events_371.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM notifications WHERE name = 'active';
NONE
false
DIFF00000002644
mentioned_in_comment
Python
events_687.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE products RENAME COLUMN user_id TO amount_cents;' manually, handled by migration tool
ALTER_RENAME
false
DIFF00000002645
general_code_change
TypeScript
accounts_947.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
DIFF00000002646
raw_sql_safe
SQL
logs_19.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE refunds ADD COLUMN user_role VARCHAR(255);
NONE
false
DIFF00000002647
orm_schema_change
TypeScript
reviews_24.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Users { // removed field: user_id }
NONE
true
DIFF00000002648
general_code_change
Go
reviews_426.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000002649
mentioned_in_comment
Python
comments_5.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE inventory RENAME COLUMN email TO contact_email;' manually, handled by migration tool
ALTER_RENAME
false
DIFF00000002650
raw_sql_destructive
SQL
invoices_811.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE refunds RENAME COLUMN score TO state;
ALTER_RENAME
true
DIFF00000002651
test_suite_cleanup
SQL
test/accounts_310.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM inventory;
DELETE_UNQUALIFIED
false
DIFF00000002652
raw_sql_safe
SQL
users_407.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE products ADD COLUMN full_name VARCHAR(255);
NONE
false
DIFF00000002653
raw_sql_destructive
SQL
users_706.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE products;
TRUNCATE
true
DIFF00000002654
general_code_change
Python
payments_481.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000002655
orm_schema_change
JavaScript
users_24.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('invoices', 'email')
NONE
true
DIFF00000002656
general_code_change
JavaScript
refunds_143.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000002657
raw_sql_safe
SQL
accounts_228.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE subscriptions SET role = %s WHERE description = %s;
NONE
false
DIFF00000002658
test_suite_cleanup
SQL
tests/orders_84.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE sessions SET amount = CONCAT(amount, order_id);
UPDATE_CONCAT
false
DIFF00000002659
mentioned_in_comment
Python
sessions_297.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE reviews DROP COLUMN category; -- now deprecated"""
DROP_COLUMN
false
DIFF00000002660
orm_schema_change
Python
comments_31.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='events', name='user_id')
NONE
true
DIFF00000002661
obfuscated_destructive
SQL
accounts_268.sql
schema cleanup
@@ -1,3 +1,3 @@ +TRUNCATE TABLE logs;
TRUNCATE
true
DIFF00000002662
general_code_change
Python
shipments_531.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000002663
test_suite_cleanup
SQL
test/tickets_401.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE reviews;
DROP_TABLE
false
DIFF00000002664
obfuscated_destructive
SQL
comments_258.sql
schema cleanup
@@ -1,3 +1,3 @@ +UpDAte acCOuNts sEt aDDReSs = COncAt(ADDreSS, metadaTA);
UPDATE_CONCAT
true
DIFF00000002665
raw_sql_safe
SQL
users_738.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO transactions (order_id, category) VALUES (%s, %s);
NONE
false
DIFF00000002666
obfuscated_destructive
SQL
products_845.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE notifications RENAME COLUMN name TO amount_cents;
ALTER_RENAME
true
DIFF00000002667
raw_sql_safe
SQL
payments_229.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_logs_priority ON logs (is_active);
NONE
false
DIFF00000002668
orm_schema_change
JavaScript
users_465.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('invoices', 'updated_at')
NONE
true
DIFF00000002669
general_code_change
Ruby
employees_699.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000002670
obfuscated_destructive
SQL
tickets_376.sql
schema cleanup
@@ -1,3 +1,3 @@ +delete from employees;
DELETE_UNQUALIFIED
true
DIFF00000002671
general_code_change
Python
users_893.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000002672
general_code_change
TypeScript
products_398.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
DIFF00000002673
obfuscated_destructive
SQL
sessions_774.sql
schema cleanup
@@ -1,3 +1,3 @@ +delETE fROm AcCOUntS;
DELETE_UNQUALIFIED
true
DIFF00000002674
obfuscated_destructive
SQL
refunds_104.sql
schema cleanup
@@ -1,3 +1,3 @@ +aLTeR tABle SHiPMentS REnAmE cOLuMn USeR_Id tO ContACT_eMaIl;
ALTER_RENAME
true
DIFF00000002675
general_code_change
Go
tickets_82.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000002676
raw_sql_safe
SQL
payments_39.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE payments ADD COLUMN amount_cents VARCHAR(255);
NONE
false
DIFF00000002677
raw_sql_destructive
SQL
sessions_794.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE products RENAME COLUMN score TO full_name;
ALTER_RENAME
true
DIFF00000002678
mentioned_in_comment
Python
notifications_876.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE invoices DROP COLUMN address; -- now deprecated"""
DROP_COLUMN
false
DIFF00000002679
raw_sql_destructive
SQL
inventory_792.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM accounts;
DELETE_UNQUALIFIED
true
DIFF00000002680
general_code_change
JavaScript
sessions_312.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
DIFF00000002681
orm_schema_change
TypeScript
sessions_488.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Employees { // removed field: category }
NONE
true
DIFF00000002682
test_suite_cleanup
SQL
mysql-test/suite/customers_755.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM sessions;
DELETE_UNQUALIFIED
false
DIFF00000002683
general_code_change
Java
customers_186.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000002684
orm_schema_change
JavaScript
inventory_916.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('products', table => table.dropColumn('role'))
NONE
true
DIFF00000002685
raw_sql_destructive
SQL
invoices_841.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE products;
DROP_TABLE
true
DIFF00000002686
raw_sql_destructive
SQL
sessions_534.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE sessions;
DROP_TABLE
true
DIFF00000002687
orm_schema_change
JavaScript
shipments_154.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('invoices', table => table.dropColumn('balance'))
NONE
true
DIFF00000002688
test_suite_cleanup
SQL
spec/reviews_727.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE users RENAME COLUMN metadata TO state;
ALTER_RENAME
false
DIFF00000002689
obfuscated_destructive
SQL
transactions_156.sql
schema cleanup
@@ -1,3 +1,3 @@ +TRUNCATE TABLE products;
TRUNCATE
true
DIFF00000002690
general_code_change
Python
inventory_286.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000002691
raw_sql_destructive
SQL
employees_311.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE users RENAME COLUMN score TO state;
ALTER_RENAME
true
DIFF00000002692
test_suite_cleanup
SQL
test/products_650.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE orders SET address = CONCAT(address, created_at);
UPDATE_CONCAT
false
DIFF00000002693
general_code_change
Go
refunds_318.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000002694
orm_schema_change
JavaScript
shipments_319.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('employees', 'price')
NONE
true
DIFF00000002695
raw_sql_safe
SQL
comments_740.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_users_price ON users (balance);
NONE
false
DIFF00000002696
orm_schema_change
JavaScript
refunds_869.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('events', table => table.dropColumn('email'))
NONE
true
DIFF00000002697
raw_sql_safe
SQL
payments_15.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_notifications_email ON notifications (amount);
NONE
false
DIFF00000002698
general_code_change
JavaScript
accounts_61.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
DIFF00000002699
orm_schema_change
Python
events_200.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='orders', name='score')
NONE
true