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
DIFF00000003400
general_code_change
Ruby
subscriptions_555.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000003401
test_suite_cleanup
SQL
mysql-test/suite/orders_231.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM products;
DELETE_UNQUALIFIED
false
DIFF00000003402
general_code_change
Go
logs_573.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000003403
raw_sql_destructive
SQL
inventory_627.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE tickets;
DROP_TABLE
true
DIFF00000003404
test_suite_cleanup
SQL
mysql-test/suite/customers_484.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE refunds;
TRUNCATE
false
DIFF00000003405
mentioned_in_comment
Python
refunds_749.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE shipments DROP COLUMN email;")
DROP_COLUMN
false
DIFF00000003406
mentioned_in_comment
Python
subscriptions_935.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: DELETE FROM payments; -- now deprecated"""
DELETE_UNQUALIFIED
false
DIFF00000003407
test_suite_cleanup
SQL
spec/refunds_928.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE products RENAME COLUMN name TO amount_cents;
ALTER_RENAME
false
DIFF00000003408
test_suite_cleanup
SQL
spec/sessions_195.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE payments;
TRUNCATE
false
DIFF00000003409
raw_sql_safe
SQL
comments_423.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO customers (priority, quantity) VALUES (%s, %s);
NONE
false
DIFF00000003410
mentioned_in_comment
Python
inventory_336.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: TRUNCATE TABLE sessions;")
TRUNCATE
false
DIFF00000003411
orm_schema_change
JavaScript
logs_140.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('customers', 'phone')
NONE
true
DIFF00000003412
general_code_change
Python
transactions_171.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000003413
general_code_change
JavaScript
comments_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
DIFF00000003414
general_code_change
Go
users_656.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000003415
obfuscated_destructive
SQL
transactions_967.sql
schema cleanup
@@ -1,3 +1,3 @@ +TRUNCATE TABLE shipments;
TRUNCATE
true
DIFF00000003416
general_code_change
TypeScript
accounts_439.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
DIFF00000003417
mentioned_in_comment
Python
refunds_790.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'UPDATE invoices SET role = CONCAT(role, price);' manually, handled by migration tool
UPDATE_CONCAT
false
DIFF00000003418
raw_sql_destructive
SQL
employees_914.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE reviews;
DROP_TABLE
true
DIFF00000003419
obfuscated_destructive
SQL
employees_319.sql
schema cleanup
@@ -1,3 +1,3 @@ +drOp Table SuBscriPTionS;
DROP_TABLE
true
DIFF00000003420
orm_schema_change
JavaScript
events_172.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('employees', table => table.dropColumn('is_active'))
NONE
true
DIFF00000003421
mentioned_in_comment
Python
sessions_876.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE customers RENAME COLUMN is_active TO user_role;' manually, handled by migration tool
ALTER_RENAME
false
DIFF00000003422
raw_sql_safe
SQL
inventory_557.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM sessions WHERE created_at = 'active';
NONE
false
DIFF00000003423
raw_sql_destructive
SQL
comments_2.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM logs;
DELETE_UNQUALIFIED
true
DIFF00000003424
test_suite_cleanup
SQL
spec/notifications_318.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE products RENAME COLUMN category TO amount_cents;
ALTER_RENAME
false
DIFF00000003425
orm_schema_change
Ruby
payments_103.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :payments, :is_active
NONE
true
DIFF00000003426
orm_schema_change
Ruby
users_958.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :refunds, :updated_at
NONE
true
DIFF00000003427
general_code_change
Java
tickets_418.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000003428
general_code_change
Python
tickets_253.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000003429
orm_schema_change
Python
tickets_128.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='tickets', name='priority')
NONE
true
DIFF00000003430
general_code_change
TypeScript
refunds_124.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
DIFF00000003431
raw_sql_destructive
SQL
logs_911.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE users DROP COLUMN role;
DROP_COLUMN
true
DIFF00000003432
test_suite_cleanup
SQL
spec/invoices_47.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM logs;
DELETE_UNQUALIFIED
false
DIFF00000003433
raw_sql_safe
SQL
notifications_641.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE shipments ADD COLUMN user_role VARCHAR(255);
NONE
false
DIFF00000003434
raw_sql_destructive
SQL
inventory_874.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE shipments SET created_at = CONCAT(created_at, order_id);
UPDATE_CONCAT
true
DIFF00000003435
general_code_change
JavaScript
invoices_225.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000003436
general_code_change
Java
users_554.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000003437
mentioned_in_comment
Python
notifications_383.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DROP TABLE notifications;' manually, handled by migration tool
DROP_TABLE
false
DIFF00000003438
obfuscated_destructive
SQL
accounts_852.sql
schema cleanup
@@ -1,3 +1,3 @@ +alter table sessions rename column price to state;
ALTER_RENAME
true
DIFF00000003439
general_code_change
Go
employees_245.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000003440
raw_sql_safe
SQL
accounts_758.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM shipments WHERE email = 'active';
NONE
false
DIFF00000003441
test_suite_cleanup
SQL
test/tickets_907.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE orders RENAME COLUMN email TO amount_cents;
ALTER_RENAME
false
DIFF00000003442
raw_sql_safe
SQL
refunds_80.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_payments_status ON payments (category);
NONE
false
DIFF00000003443
orm_schema_change
Python
comments_800.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='sessions', name='quantity')
NONE
true
DIFF00000003444
raw_sql_destructive
SQL
refunds_90.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM payments;
DELETE_UNQUALIFIED
true
DIFF00000003445
test_suite_cleanup
SQL
test/payments_995.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE shipments RENAME COLUMN updated_at TO contact_email;
ALTER_RENAME
false
DIFF00000003446
raw_sql_destructive
SQL
shipments_410.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM shipments;
DELETE_UNQUALIFIED
true
DIFF00000003447
general_code_change
Java
comments_564.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000003448
obfuscated_destructive
SQL
subscriptions_226.sql
schema cleanup
@@ -1,3 +1,3 @@ +UPDATE tickets SET score = CONCAT(score, category);
UPDATE_CONCAT
true
DIFF00000003449
raw_sql_destructive
SQL
notifications_304.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE notifications;
DROP_TABLE
true
DIFF00000003450
orm_schema_change
Python
events_26.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='reviews', name='created_at')
NONE
true
DIFF00000003451
orm_schema_change
TypeScript
tickets_121.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Tickets { // removed field: role }
NONE
true
DIFF00000003452
orm_schema_change
JavaScript
employees_745.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('refunds', table => table.dropColumn('created_at'))
NONE
true
DIFF00000003453
orm_schema_change
Ruby
refunds_820.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :comments, :metadata
NONE
true
DIFF00000003454
general_code_change
Ruby
notifications_425.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000003455
raw_sql_safe
SQL
transactions_168.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM users WHERE quantity = 'active';
NONE
false
DIFF00000003456
general_code_change
TypeScript
products_498.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
DIFF00000003457
test_suite_cleanup
SQL
tests/tickets_948.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE sessions;
TRUNCATE
false
DIFF00000003458
raw_sql_safe
SQL
logs_429.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO invoices (price, name) VALUES (%s, %s);
NONE
false
DIFF00000003459
general_code_change
Python
customers_482.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000003460
raw_sql_destructive
SQL
refunds_341.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE reviews;
DROP_TABLE
true
DIFF00000003461
mentioned_in_comment
Python
reviews_529.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DROP TABLE shipments;' manually, handled by migration tool
DROP_TABLE
false
DIFF00000003462
general_code_change
Go
events_364.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000003463
raw_sql_destructive
SQL
subscriptions_580.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE products RENAME COLUMN created_at TO user_role;
ALTER_RENAME
true
DIFF00000003464
orm_schema_change
Ruby
transactions_248.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :payments, :order_id
NONE
true
DIFF00000003465
mentioned_in_comment
Python
notifications_43.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DELETE FROM reviews;' manually, handled by migration tool
DELETE_UNQUALIFIED
false
DIFF00000003466
obfuscated_destructive
SQL
products_574.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE users DROP COLUMN name;
DROP_COLUMN
true
DIFF00000003467
test_suite_cleanup
SQL
spec/customers_364.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE employees RENAME COLUMN created_at TO contact_email;
ALTER_RENAME
false
DIFF00000003468
general_code_change
JavaScript
sessions_240.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
DIFF00000003469
orm_schema_change
TypeScript
products_403.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Refunds { // removed field: priority }
NONE
true
DIFF00000003470
general_code_change
Java
notifications_72.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000003471
test_suite_cleanup
SQL
spec/tickets_738.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE notifications;
DROP_TABLE
false
DIFF00000003472
mentioned_in_comment
Python
users_36.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: TRUNCATE TABLE payments; -- now deprecated"""
TRUNCATE
false
DIFF00000003473
general_code_change
TypeScript
accounts_636.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
DIFF00000003474
raw_sql_safe
SQL
employees_583.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO comments (metadata, order_id) VALUES (%s, %s);
NONE
false
DIFF00000003475
general_code_change
Python
payments_714.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000003476
general_code_change
TypeScript
inventory_901.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
DIFF00000003477
general_code_change
Go
events_89.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000003478
test_suite_cleanup
SQL
mysql-test/suite/events_502.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE notifications;
TRUNCATE
false
DIFF00000003479
general_code_change
Python
employees_539.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000003480
obfuscated_destructive
SQL
transactions_158.sql
schema cleanup
@@ -1,3 +1,3 @@ +UPDATE employees SET balance = CONCAT(balance, category);
UPDATE_CONCAT
true
DIFF00000003481
raw_sql_destructive
SQL
tickets_504.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM shipments;
DELETE_UNQUALIFIED
true
DIFF00000003482
general_code_change
JavaScript
refunds_942.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
DIFF00000003483
orm_schema_change
JavaScript
transactions_995.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('comments', 'status')
NONE
true
DIFF00000003484
test_suite_cleanup
SQL
tests/inventory_324.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE tickets RENAME COLUMN priority TO amount_cents;
ALTER_RENAME
false
DIFF00000003485
raw_sql_safe
SQL
employees_851.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE transactions ADD COLUMN user_role VARCHAR(255);
NONE
false
DIFF00000003486
raw_sql_destructive
SQL
refunds_940.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM shipments;
DELETE_UNQUALIFIED
true
DIFF00000003487
test_suite_cleanup
SQL
tests/employees_575.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE notifications RENAME COLUMN address TO contact_email;
ALTER_RENAME
false
DIFF00000003488
obfuscated_destructive
SQL
accounts_771.sql
schema cleanup
@@ -1,3 +1,3 @@ +drop table events;
DROP_TABLE
true
DIFF00000003489
mentioned_in_comment
Python
payments_50.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DROP TABLE subscriptions;' manually, handled by migration tool
DROP_TABLE
false
DIFF00000003490
general_code_change
Go
logs_823.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000003491
orm_schema_change
Ruby
employees_460.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :orders, :is_active
NONE
true
DIFF00000003492
general_code_change
Python
notifications_532.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000003493
raw_sql_destructive
SQL
accounts_361.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM tickets;
DELETE_UNQUALIFIED
true
DIFF00000003494
mentioned_in_comment
Python
transactions_501.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DELETE FROM comments;")
DELETE_UNQUALIFIED
false
DIFF00000003495
general_code_change
Python
sessions_962.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000003496
general_code_change
Go
products_753.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000003497
general_code_change
JavaScript
reviews_963.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
DIFF00000003498
orm_schema_change
TypeScript
orders_229.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Sessions { // removed field: description }
NONE
true
DIFF00000003499
orm_schema_change
JavaScript
notifications_651.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('payments', table => table.dropColumn('updated_at'))
NONE
true