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
DIFF00000008500
mentioned_in_comment
Python
products_570.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: TRUNCATE TABLE accounts;")
TRUNCATE
false
DIFF00000008501
orm_schema_change
TypeScript
tickets_650.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Customers { // removed field: amount }
NONE
true
DIFF00000008502
general_code_change
Python
transactions_89.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000008503
general_code_change
JavaScript
sessions_439.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000008504
raw_sql_destructive
SQL
users_306.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE orders RENAME COLUMN phone TO amount_cents;
ALTER_RENAME
true
DIFF00000008505
orm_schema_change
Python
subscriptions_968.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='invoices', name='metadata')
NONE
true
DIFF00000008506
orm_schema_change
JavaScript
logs_553.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('products', 'priority')
NONE
true
DIFF00000008507
test_suite_cleanup
SQL
spec/accounts_568.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE shipments SET address = CONCAT(address, user_id);
UPDATE_CONCAT
false
DIFF00000008508
raw_sql_safe
SQL
refunds_248.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE sessions SET phone = %s WHERE order_id = %s;
NONE
false
DIFF00000008509
raw_sql_destructive
SQL
accounts_97.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE reviews;
DROP_TABLE
true
DIFF00000008510
general_code_change
Python
sessions_776.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000008511
orm_schema_change
TypeScript
refunds_471.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Reviews { // removed field: is_active }
NONE
true
DIFF00000008512
general_code_change
JavaScript
subscriptions_845.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
DIFF00000008513
raw_sql_destructive
SQL
logs_123.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM notifications;
DELETE_UNQUALIFIED
true
DIFF00000008514
orm_schema_change
JavaScript
sessions_115.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('sessions', table => table.dropColumn('description'))
NONE
true
DIFF00000008515
general_code_change
Python
sessions_961.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000008516
mentioned_in_comment
Python
products_291.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: TRUNCATE TABLE orders; -- now deprecated"""
TRUNCATE
false
DIFF00000008517
mentioned_in_comment
Python
logs_117.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: UPDATE notifications SET address = CONCAT(address, role); -- now deprecated"""
UPDATE_CONCAT
false
DIFF00000008518
general_code_change
Ruby
reviews_646.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000008519
obfuscated_destructive
SQL
inventory_608.sql
schema cleanup
@@ -1,3 +1,3 @@ +TRUNCATE TABLE invoices;
TRUNCATE
true
DIFF00000008520
raw_sql_destructive
SQL
inventory_109.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE shipments;
DROP_TABLE
true
DIFF00000008521
general_code_change
JavaScript
products_12.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000008522
general_code_change
JavaScript
subscriptions_951.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
DIFF00000008523
raw_sql_safe
SQL
tickets_383.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE accounts SET name = %s WHERE phone = %s;
NONE
false
DIFF00000008524
obfuscated_destructive
SQL
notifications_722.sql
schema cleanup
@@ -1,3 +1,3 @@ +DELETE FROM comments;
DELETE_UNQUALIFIED
true
DIFF00000008525
general_code_change
Java
events_378.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000008526
mentioned_in_comment
Python
employees_968.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'TRUNCATE TABLE accounts;' manually, handled by migration tool
TRUNCATE
false
DIFF00000008527
raw_sql_safe
SQL
comments_507.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM customers WHERE address = 'active';
NONE
false
DIFF00000008528
raw_sql_destructive
SQL
customers_188.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE events DROP COLUMN metadata;
DROP_COLUMN
true
DIFF00000008529
raw_sql_destructive
SQL
tickets_751.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE inventory;
DROP_TABLE
true
DIFF00000008530
mentioned_in_comment
Python
products_604.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE tickets RENAME COLUMN amount TO state;' manually, handled by migration tool
ALTER_RENAME
false
DIFF00000008531
raw_sql_safe
SQL
reviews_609.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM employees WHERE score = 'active';
NONE
false
DIFF00000008532
test_suite_cleanup
SQL
test/users_342.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE events;
DROP_TABLE
false
DIFF00000008533
test_suite_cleanup
SQL
mysql-test/suite/notifications_405.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE invoices RENAME COLUMN quantity TO amount_cents;
ALTER_RENAME
false
DIFF00000008534
general_code_change
Python
invoices_442.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000008535
general_code_change
TypeScript
inventory_647.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
DIFF00000008536
general_code_change
Go
notifications_589.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000008537
raw_sql_safe
SQL
events_973.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE orders SET email = %s WHERE updated_at = %s;
NONE
false
DIFF00000008538
obfuscated_destructive
SQL
comments_386.sql
schema cleanup
@@ -1,3 +1,3 @@ +uPdATe TrANSActIOns sEt pRice = cONcat(PRiCE, pRice);
UPDATE_CONCAT
true
DIFF00000008539
test_suite_cleanup
SQL
test/tickets_535.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM logs;
DELETE_UNQUALIFIED
false
DIFF00000008540
general_code_change
Ruby
reviews_562.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000008541
obfuscated_destructive
SQL
shipments_655.sql
schema cleanup
@@ -1,3 +1,3 @@ +alter TaBle sEssIonS RENAmE cOLuMN cAtegorY tO amouNt_CENtS;
ALTER_RENAME
true
DIFF00000008542
orm_schema_change
JavaScript
refunds_532.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('shipments', table => table.dropColumn('created_at'))
NONE
true
DIFF00000008543
raw_sql_destructive
SQL
events_156.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE transactions SET score = CONCAT(score, price);
UPDATE_CONCAT
true
DIFF00000008544
general_code_change
Go
users_212.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000008545
mentioned_in_comment
Python
users_30.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DROP TABLE accounts;")
DROP_TABLE
false
DIFF00000008546
general_code_change
Java
accounts_729.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000008547
orm_schema_change
Ruby
accounts_383.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :sessions, :phone
NONE
true
DIFF00000008548
general_code_change
Go
subscriptions_777.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000008549
general_code_change
Java
transactions_814.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000008550
orm_schema_change
TypeScript
notifications_992.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Accounts { // removed field: name }
NONE
true
DIFF00000008551
mentioned_in_comment
Python
users_108.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: TRUNCATE TABLE products; -- now deprecated"""
TRUNCATE
false
DIFF00000008552
raw_sql_destructive
SQL
invoices_784.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM comments;
DELETE_UNQUALIFIED
true
DIFF00000008553
obfuscated_destructive
SQL
shipments_991.sql
schema cleanup
@@ -1,3 +1,3 @@ +DELETE FROM reviews;
DELETE_UNQUALIFIED
true
DIFF00000008554
mentioned_in_comment
Python
sessions_316.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: UPDATE inventory SET amount = CONCAT(amount, role); -- now deprecated"""
UPDATE_CONCAT
false
DIFF00000008555
mentioned_in_comment
Python
users_576.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE reviews RENAME COLUMN balance TO contact_email;")
ALTER_RENAME
false
DIFF00000008556
test_suite_cleanup
SQL
mysql-test/suite/inventory_176.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE reviews SET updated_at = CONCAT(updated_at, status);
UPDATE_CONCAT
false
DIFF00000008557
mentioned_in_comment
Python
logs_989.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE users RENAME COLUMN quantity TO contact_email;' manually, handled by migration tool
ALTER_RENAME
false
DIFF00000008558
test_suite_cleanup
SQL
test/orders_222.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE shipments DROP COLUMN order_id;
DROP_COLUMN
false
DIFF00000008559
raw_sql_safe
SQL
reviews_960.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE transactions SET phone = %s WHERE user_id = %s;
NONE
false
DIFF00000008560
obfuscated_destructive
SQL
sessions_480.sql
schema cleanup
@@ -1,3 +1,3 @@ +delEte fROM invoicES;
DELETE_UNQUALIFIED
true
DIFF00000008561
orm_schema_change
TypeScript
shipments_251.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Orders { // removed field: address }
NONE
true
DIFF00000008562
orm_schema_change
Python
notifications_75.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='inventory', name='quantity')
NONE
true
DIFF00000008563
orm_schema_change
Python
users_336.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='accounts', name='category')
NONE
true
DIFF00000008564
general_code_change
JavaScript
invoices_474.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
DIFF00000008565
mentioned_in_comment
Python
subscriptions_149.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE customers DROP COLUMN user_id;")
DROP_COLUMN
false
DIFF00000008566
raw_sql_safe
SQL
comments_767.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO notifications (order_id, price) VALUES (%s, %s);
NONE
false
DIFF00000008567
general_code_change
JavaScript
products_746.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
DIFF00000008568
test_suite_cleanup
SQL
test/products_296.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE shipments RENAME COLUMN metadata TO contact_email;
ALTER_RENAME
false
DIFF00000008569
orm_schema_change
JavaScript
subscriptions_851.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('notifications', table => table.dropColumn('status'))
NONE
true
DIFF00000008570
obfuscated_destructive
SQL
logs_55.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE refunds DROP COLUMN price;
DROP_COLUMN
true
DIFF00000008571
general_code_change
Go
refunds_330.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000008572
raw_sql_safe
SQL
subscriptions_376.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE tickets SET category = %s WHERE name = %s;
NONE
false
DIFF00000008573
test_suite_cleanup
SQL
tests/logs_929.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE products SET amount = CONCAT(amount, score);
UPDATE_CONCAT
false
DIFF00000008574
raw_sql_destructive
SQL
customers_847.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE users;
TRUNCATE
true
DIFF00000008575
general_code_change
Java
orders_395.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000008576
general_code_change
Ruby
transactions_148.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000008577
raw_sql_safe
SQL
comments_889.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO transactions (address, amount) VALUES (%s, %s);
NONE
false
DIFF00000008578
test_suite_cleanup
SQL
spec/users_22.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE sessions;
TRUNCATE
false
DIFF00000008579
raw_sql_safe
SQL
inventory_933.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE customers SET email = %s WHERE address = %s;
NONE
false
DIFF00000008580
orm_schema_change
Python
invoices_647.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='reviews', name='metadata')
NONE
true
DIFF00000008581
raw_sql_safe
SQL
sessions_449.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_inventory_category ON inventory (is_active);
NONE
false
DIFF00000008582
general_code_change
TypeScript
transactions_733.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
DIFF00000008583
raw_sql_safe
SQL
logs_280.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO logs (score, updated_at) VALUES (%s, %s);
NONE
false
DIFF00000008584
raw_sql_safe
SQL
payments_543.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE customers SET user_id = %s WHERE price = %s;
NONE
false
DIFF00000008585
raw_sql_destructive
SQL
payments_453.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE events SET email = CONCAT(email, address);
UPDATE_CONCAT
true
DIFF00000008586
raw_sql_destructive
SQL
shipments_522.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE payments;
DROP_TABLE
true
DIFF00000008587
general_code_change
Python
users_834.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000008588
general_code_change
Go
reviews_794.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000008589
raw_sql_safe
SQL
transactions_725.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM events WHERE is_active = 'active';
NONE
false
DIFF00000008590
raw_sql_safe
SQL
products_470.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_customers_user_id ON customers (phone);
NONE
false
DIFF00000008591
general_code_change
JavaScript
sessions_246.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000008592
general_code_change
Go
reviews_996.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000008593
obfuscated_destructive
SQL
orders_601.sql
schema cleanup
@@ -1,3 +1,3 @@ +dElEte frOM PAyMeNTs;
DELETE_UNQUALIFIED
true
DIFF00000008594
general_code_change
JavaScript
employees_460.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
DIFF00000008595
mentioned_in_comment
Python
employees_349.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'UPDATE invoices SET name = CONCAT(name, order_id);' manually, handled by migration tool
UPDATE_CONCAT
false
DIFF00000008596
test_suite_cleanup
SQL
tests/refunds_192.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE reviews DROP COLUMN role;
DROP_COLUMN
false
DIFF00000008597
test_suite_cleanup
SQL
test/users_889.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE users SET created_at = CONCAT(created_at, description);
UPDATE_CONCAT
false
DIFF00000008598
raw_sql_safe
SQL
comments_411.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM events WHERE status = 'active';
NONE
false
DIFF00000008599
general_code_change
Python
invoices_91.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false