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
DIFF00099993500
test_suite_cleanup
SQL
spec/products_968.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE invoices DROP COLUMN description;
DROP_COLUMN
false
DIFF00099993501
raw_sql_destructive
SQL
logs_902.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE comments;
DROP_TABLE
true
DIFF00099993502
general_code_change
TypeScript
notifications_565.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
DIFF00099993503
test_suite_cleanup
SQL
spec/events_924.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE refunds;
DROP_TABLE
false
DIFF00099993504
raw_sql_destructive
SQL
tickets_145.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE employees;
DROP_TABLE
true
DIFF00099993505
raw_sql_safe
SQL
shipments_86.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM accounts WHERE balance = 'active';
NONE
false
DIFF00099993506
raw_sql_safe
SQL
tickets_106.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO customers (status, score) VALUES (%s, %s);
NONE
false
DIFF00099993507
general_code_change
JavaScript
accounts_610.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099993508
orm_schema_change
JavaScript
subscriptions_836.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('customers', 'balance')
NONE
true
DIFF00099993509
general_code_change
TypeScript
payments_753.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
DIFF00099993510
general_code_change
Go
comments_132.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099993511
raw_sql_destructive
SQL
notifications_856.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE events;
DROP_TABLE
true
DIFF00099993512
orm_schema_change
JavaScript
accounts_213.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('sessions', 'amount')
NONE
true
DIFF00099993513
orm_schema_change
Ruby
inventory_81.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :payments, :address
NONE
true
DIFF00099993514
orm_schema_change
JavaScript
reviews_662.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('accounts', 'status')
NONE
true
DIFF00099993515
general_code_change
JavaScript
logs_611.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099993516
mentioned_in_comment
Python
employees_945.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE inventory DROP COLUMN phone;")
DROP_COLUMN
false
DIFF00099993517
mentioned_in_comment
Python
sessions_460.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE users DROP COLUMN quantity;")
DROP_COLUMN
false
DIFF00099993518
orm_schema_change
JavaScript
notifications_472.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('logs', 'order_id')
NONE
true
DIFF00099993519
orm_schema_change
Ruby
reviews_178.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :reviews, :is_active
NONE
true
DIFF00099993520
general_code_change
Ruby
inventory_23.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099993521
general_code_change
Python
customers_385.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099993522
general_code_change
Go
logs_48.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099993523
test_suite_cleanup
SQL
test/comments_408.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE subscriptions RENAME COLUMN email TO full_name;
ALTER_RENAME
false
DIFF00099993524
raw_sql_destructive
SQL
accounts_358.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE invoices RENAME COLUMN order_id TO amount_cents;
ALTER_RENAME
true
DIFF00099993525
raw_sql_destructive
SQL
users_500.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE orders RENAME COLUMN quantity TO amount_cents;
ALTER_RENAME
true
DIFF00099993526
general_code_change
Ruby
inventory_611.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099993527
test_suite_cleanup
SQL
mysql-test/suite/tickets_183.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE sessions SET role = CONCAT(role, metadata);
UPDATE_CONCAT
false
DIFF00099993528
raw_sql_destructive
SQL
logs_354.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM invoices;
DELETE_UNQUALIFIED
true
DIFF00099993529
general_code_change
TypeScript
comments_679.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
DIFF00099993530
obfuscated_destructive
SQL
customers_169.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE orders RENAME COLUMN name TO user_role;
ALTER_RENAME
true
DIFF00099993531
raw_sql_destructive
SQL
users_391.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE invoices;
TRUNCATE
true
DIFF00099993532
general_code_change
Go
employees_435.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099993533
general_code_change
Java
comments_40.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099993534
raw_sql_safe
SQL
accounts_60.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE accounts ADD COLUMN full_name VARCHAR(255);
NONE
false
DIFF00099993535
general_code_change
JavaScript
customers_661.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
DIFF00099993536
orm_schema_change
JavaScript
events_693.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('notifications', 'phone')
NONE
true
DIFF00099993537
orm_schema_change
TypeScript
comments_468.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Notifications { // removed field: updated_at }
NONE
true
DIFF00099993538
orm_schema_change
JavaScript
tickets_214.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('sessions', table => table.dropColumn('priority'))
NONE
true
DIFF00099993539
test_suite_cleanup
SQL
spec/comments_284.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM subscriptions;
DELETE_UNQUALIFIED
false
DIFF00099993540
general_code_change
JavaScript
employees_183.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099993541
general_code_change
Python
subscriptions_343.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099993542
test_suite_cleanup
SQL
mysql-test/suite/users_247.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE comments;
DROP_TABLE
false
DIFF00099993543
raw_sql_destructive
SQL
subscriptions_672.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE notifications DROP COLUMN user_id;
DROP_COLUMN
true
DIFF00099993544
orm_schema_change
TypeScript
payments_328.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Events { // removed field: description }
NONE
true
DIFF00099993545
obfuscated_destructive
SQL
users_179.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE transactions DROP COLUMN priority;
DROP_COLUMN
true
DIFF00099993546
raw_sql_safe
SQL
accounts_103.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE reviews ADD COLUMN state VARCHAR(255);
NONE
false
DIFF00099993547
raw_sql_safe
SQL
payments_889.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM sessions WHERE name = 'active';
NONE
false
DIFF00099993548
general_code_change
JavaScript
orders_358.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
DIFF00099993549
orm_schema_change
TypeScript
payments_129.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Users { // removed field: order_id }
NONE
true
DIFF00099993550
raw_sql_safe
SQL
comments_74.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO reviews (priority, address) VALUES (%s, %s);
NONE
false
DIFF00099993551
orm_schema_change
JavaScript
invoices_961.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('customers', 'amount')
NONE
true
DIFF00099993552
orm_schema_change
JavaScript
notifications_179.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('payments', 'role')
NONE
true
DIFF00099993553
general_code_change
Python
subscriptions_226.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099993554
raw_sql_safe
SQL
orders_57.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_logs_phone ON logs (price);
NONE
false
DIFF00099993555
mentioned_in_comment
Python
products_667.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DELETE FROM logs;")
DELETE_UNQUALIFIED
false
DIFF00099993556
mentioned_in_comment
Python
tickets_141.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DROP TABLE events;")
DROP_TABLE
false
DIFF00099993557
raw_sql_safe
SQL
customers_700.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO refunds (price, priority) VALUES (%s, %s);
NONE
false
DIFF00099993558
general_code_change
Go
events_493.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099993559
raw_sql_destructive
SQL
invoices_103.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE shipments RENAME COLUMN name TO contact_email;
ALTER_RENAME
true
DIFF00099993560
general_code_change
JavaScript
accounts_376.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099993561
mentioned_in_comment
Python
invoices_465.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE orders RENAME COLUMN email TO state;' manually, handled by migration tool
ALTER_RENAME
false
DIFF00099993562
general_code_change
Python
events_432.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099993563
general_code_change
Go
logs_696.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099993564
raw_sql_destructive
SQL
shipments_541.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE comments;
TRUNCATE
true
DIFF00099993565
raw_sql_destructive
SQL
reviews_869.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE payments;
TRUNCATE
true
DIFF00099993566
raw_sql_destructive
SQL
tickets_50.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE products;
DROP_TABLE
true
DIFF00099993567
test_suite_cleanup
SQL
test/invoices_652.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE orders RENAME COLUMN category TO contact_email;
ALTER_RENAME
false
DIFF00099993568
test_suite_cleanup
SQL
spec/inventory_175.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE payments DROP COLUMN email;
DROP_COLUMN
false
DIFF00099993569
general_code_change
JavaScript
employees_42.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099993570
orm_schema_change
JavaScript
sessions_370.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('payments', 'name')
NONE
true
DIFF00099993571
obfuscated_destructive
SQL
comments_429.sql
schema cleanup
@@ -1,3 +1,3 @@ +TRUNCATE TABLE accounts;
TRUNCATE
true
DIFF00099993572
orm_schema_change
TypeScript
products_265.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Inventory { // removed field: updated_at }
NONE
true
DIFF00099993573
general_code_change
Python
shipments_483.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099993574
test_suite_cleanup
SQL
tests/notifications_732.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE refunds;
DROP_TABLE
false
DIFF00099993575
mentioned_in_comment
Python
comments_820.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DROP TABLE transactions;")
DROP_TABLE
false
DIFF00099993576
raw_sql_destructive
SQL
logs_169.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE shipments RENAME COLUMN description TO user_role;
ALTER_RENAME
true
DIFF00099993577
raw_sql_destructive
SQL
users_371.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE sessions SET updated_at = CONCAT(updated_at, created_at);
UPDATE_CONCAT
true
DIFF00099993578
general_code_change
JavaScript
employees_917.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099993579
general_code_change
TypeScript
logs_566.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
DIFF00099993580
general_code_change
Python
subscriptions_146.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099993581
orm_schema_change
Ruby
employees_191.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :users, :description
NONE
true
DIFF00099993582
mentioned_in_comment
Python
customers_894.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DELETE FROM payments;")
DELETE_UNQUALIFIED
false
DIFF00099993583
general_code_change
JavaScript
reviews_891.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
DIFF00099993584
orm_schema_change
TypeScript
comments_629.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Products { // removed field: quantity }
NONE
true
DIFF00099993585
test_suite_cleanup
SQL
spec/orders_185.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE accounts;
TRUNCATE
false
DIFF00099993586
test_suite_cleanup
SQL
tests/invoices_945.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE employees;
DROP_TABLE
false
DIFF00099993587
mentioned_in_comment
Python
sessions_509.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DROP TABLE notifications;")
DROP_TABLE
false
DIFF00099993588
general_code_change
TypeScript
reviews_834.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
DIFF00099993589
test_suite_cleanup
SQL
spec/reviews_547.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE notifications RENAME COLUMN order_id TO state;
ALTER_RENAME
false
DIFF00099993590
raw_sql_safe
SQL
logs_778.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_products_email ON products (balance);
NONE
false
DIFF00099993591
test_suite_cleanup
SQL
spec/invoices_947.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE inventory SET created_at = CONCAT(created_at, role);
UPDATE_CONCAT
false
DIFF00099993592
raw_sql_destructive
SQL
accounts_813.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE notifications;
TRUNCATE
true
DIFF00099993593
test_suite_cleanup
SQL
spec/invoices_307.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE reviews DROP COLUMN amount;
DROP_COLUMN
false
DIFF00099993594
raw_sql_safe
SQL
sessions_214.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO shipments (user_id, name) VALUES (%s, %s);
NONE
false
DIFF00099993595
test_suite_cleanup
SQL
mysql-test/suite/orders_529.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE orders;
TRUNCATE
false
DIFF00099993596
raw_sql_safe
SQL
products_521.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE comments SET user_id = %s WHERE updated_at = %s;
NONE
false
DIFF00099993597
test_suite_cleanup
SQL
test/inventory_551.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE payments RENAME COLUMN score TO full_name;
ALTER_RENAME
false
DIFF00099993598
obfuscated_destructive
SQL
users_454.sql
schema cleanup
@@ -1,3 +1,3 @@ +drop table sessions;
DROP_TABLE
true
DIFF00099993599
mentioned_in_comment
Python
invoices_330.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'UPDATE payments SET role = CONCAT(role, description);' manually, handled by migration tool
UPDATE_CONCAT
false