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
DIFF00000009500
raw_sql_safe
SQL
subscriptions_302.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE tickets ADD COLUMN amount_cents VARCHAR(255);
NONE
false
DIFF00000009501
raw_sql_destructive
SQL
shipments_919.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE transactions;
TRUNCATE
true
DIFF00000009502
raw_sql_safe
SQL
tickets_391.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_transactions_quantity ON transactions (address);
NONE
false
DIFF00000009503
obfuscated_destructive
SQL
subscriptions_585.sql
schema cleanup
@@ -1,3 +1,3 @@ +TRuNcAtE TaBLe ShiPMEnTS;
TRUNCATE
true
DIFF00000009504
raw_sql_safe
SQL
payments_952.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE subscriptions ADD COLUMN contact_email VARCHAR(255);
NONE
false
DIFF00000009505
orm_schema_change
JavaScript
shipments_537.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('employees', table => table.dropColumn('category'))
NONE
true
DIFF00000009506
obfuscated_destructive
SQL
customers_219.sql
schema cleanup
@@ -1,3 +1,3 @@ +tRuNCatE TaBLE shIpmENTs;
TRUNCATE
true
DIFF00000009507
test_suite_cleanup
SQL
test/inventory_375.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE payments;
TRUNCATE
false
DIFF00000009508
general_code_change
JavaScript
subscriptions_588.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000009509
mentioned_in_comment
Python
logs_649.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: UPDATE shipments SET address = CONCAT(address, user_id); -- now deprecated"""
UPDATE_CONCAT
false
DIFF00000009510
obfuscated_destructive
SQL
comments_214.sql
schema cleanup
@@ -1,3 +1,3 @@ +alTer tABLE REViEws drOp coLUmN usER_ID;
DROP_COLUMN
true
DIFF00000009511
obfuscated_destructive
SQL
inventory_886.sql
schema cleanup
@@ -1,3 +1,3 @@ +DelETE from uSers;
DELETE_UNQUALIFIED
true
DIFF00000009512
mentioned_in_comment
Python
comments_595.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE reviews DROP COLUMN score; -- now deprecated"""
DROP_COLUMN
false
DIFF00000009513
mentioned_in_comment
Python
payments_513.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE employees RENAME COLUMN balance TO amount_cents; -- now deprecated"""
ALTER_RENAME
false
DIFF00000009514
general_code_change
TypeScript
transactions_646.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
DIFF00000009515
general_code_change
Python
invoices_265.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000009516
general_code_change
TypeScript
notifications_745.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
DIFF00000009517
mentioned_in_comment
Python
tickets_254.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE products RENAME COLUMN updated_at TO full_name;")
ALTER_RENAME
false
DIFF00000009518
general_code_change
JavaScript
inventory_642.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000009519
raw_sql_safe
SQL
events_778.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM tickets WHERE price = 'active';
NONE
false
DIFF00000009520
raw_sql_safe
SQL
accounts_868.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE inventory SET status = %s WHERE user_id = %s;
NONE
false
DIFF00000009521
orm_schema_change
JavaScript
comments_998.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('products', 'category')
NONE
true
DIFF00000009522
general_code_change
JavaScript
shipments_560.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000009523
raw_sql_destructive
SQL
payments_794.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE payments SET name = CONCAT(name, email);
UPDATE_CONCAT
true
DIFF00000009524
general_code_change
Go
sessions_289.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000009525
general_code_change
Ruby
shipments_896.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000009526
raw_sql_safe
SQL
comments_173.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE users SET price = %s WHERE price = %s;
NONE
false
DIFF00000009527
mentioned_in_comment
Python
customers_113.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DELETE FROM payments;' manually, handled by migration tool
DELETE_UNQUALIFIED
false
DIFF00000009528
mentioned_in_comment
Python
subscriptions_946.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE employees DROP COLUMN phone; -- now deprecated"""
DROP_COLUMN
false
DIFF00000009529
obfuscated_destructive
SQL
shipments_423.sql
schema cleanup
@@ -1,3 +1,3 @@ +UPDATE payments SET price = CONCAT(price, score);
UPDATE_CONCAT
true
DIFF00000009530
obfuscated_destructive
SQL
notifications_578.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE refunds RENAME COLUMN priority TO full_name;
ALTER_RENAME
true
DIFF00000009531
general_code_change
Python
shipments_984.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000009532
raw_sql_safe
SQL
sessions_467.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM logs WHERE phone = 'active';
NONE
false
DIFF00000009533
orm_schema_change
Python
subscriptions_606.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='logs', name='description')
NONE
true
DIFF00000009534
obfuscated_destructive
SQL
accounts_556.sql
schema cleanup
@@ -1,3 +1,3 @@ +UPDATE employees SET name = CONCAT(name, priority);
UPDATE_CONCAT
true
DIFF00000009535
orm_schema_change
TypeScript
subscriptions_626.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Employees { // removed field: quantity }
NONE
true
DIFF00000009536
orm_schema_change
Ruby
orders_257.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :inventory, :amount
NONE
true
DIFF00000009537
test_suite_cleanup
SQL
test/tickets_914.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE invoices;
TRUNCATE
false
DIFF00000009538
raw_sql_safe
SQL
orders_458.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE employees SET balance = %s WHERE name = %s;
NONE
false
DIFF00000009539
general_code_change
JavaScript
accounts_23.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
DIFF00000009540
raw_sql_safe
SQL
shipments_22.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE payments SET created_at = %s WHERE created_at = %s;
NONE
false
DIFF00000009541
obfuscated_destructive
SQL
tickets_276.sql
schema cleanup
@@ -1,3 +1,3 @@ +alter table payments rename column user_id to full_name;
ALTER_RENAME
true
DIFF00000009542
general_code_change
Python
logs_31.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000009543
raw_sql_destructive
SQL
inventory_803.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE customers DROP COLUMN amount;
DROP_COLUMN
true
DIFF00000009544
orm_schema_change
JavaScript
products_617.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('subscriptions', 'priority')
NONE
true
DIFF00000009545
test_suite_cleanup
SQL
mysql-test/suite/notifications_395.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE sessions;
DROP_TABLE
false
DIFF00000009546
raw_sql_safe
SQL
users_293.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM events WHERE status = 'active';
NONE
false
DIFF00000009547
general_code_change
Python
customers_269.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000009548
obfuscated_destructive
SQL
products_821.sql
schema cleanup
@@ -1,3 +1,3 @@ +aLteR TAbLe seSSiONS dROP colUmn nAmE;
DROP_COLUMN
true
DIFF00000009549
general_code_change
Go
reviews_378.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000009550
general_code_change
Go
events_145.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000009551
orm_schema_change
JavaScript
sessions_602.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('refunds', table => table.dropColumn('order_id'))
NONE
true
DIFF00000009552
raw_sql_safe
SQL
shipments_341.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE accounts SET address = %s WHERE user_id = %s;
NONE
false
DIFF00000009553
orm_schema_change
Ruby
employees_215.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :logs, :quantity
NONE
true
DIFF00000009554
raw_sql_destructive
SQL
payments_81.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE logs;
DROP_TABLE
true
DIFF00000009555
raw_sql_destructive
SQL
products_774.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE comments RENAME COLUMN priority TO state;
ALTER_RENAME
true
DIFF00000009556
general_code_change
JavaScript
accounts_425.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000009557
raw_sql_destructive
SQL
accounts_483.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE sessions RENAME COLUMN phone TO state;
ALTER_RENAME
true
DIFF00000009558
obfuscated_destructive
SQL
shipments_671.sql
schema cleanup
@@ -1,3 +1,3 @@ +drop table notifications;
DROP_TABLE
true
DIFF00000009559
general_code_change
JavaScript
transactions_573.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
DIFF00000009560
raw_sql_destructive
SQL
users_325.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM shipments;
DELETE_UNQUALIFIED
true
DIFF00000009561
raw_sql_safe
SQL
payments_979.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE products ADD COLUMN amount_cents VARCHAR(255);
NONE
false
DIFF00000009562
test_suite_cleanup
SQL
spec/products_688.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM notifications;
DELETE_UNQUALIFIED
false
DIFF00000009563
raw_sql_safe
SQL
tickets_331.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE subscriptions ADD COLUMN amount_cents VARCHAR(255);
NONE
false
DIFF00000009564
raw_sql_destructive
SQL
products_815.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE events;
TRUNCATE
true
DIFF00000009565
obfuscated_destructive
SQL
reviews_732.sql
schema cleanup
@@ -1,3 +1,3 @@ +update customers set email = concat(email, category);
UPDATE_CONCAT
true
DIFF00000009566
general_code_change
Python
customers_838.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000009567
raw_sql_destructive
SQL
products_993.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE logs SET balance = CONCAT(balance, metadata);
UPDATE_CONCAT
true
DIFF00000009568
obfuscated_destructive
SQL
refunds_110.sql
schema cleanup
@@ -1,3 +1,3 @@ +UPDATE shipments SET category = CONCAT(category, amount);
UPDATE_CONCAT
true
DIFF00000009569
general_code_change
JavaScript
shipments_747.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000009570
test_suite_cleanup
SQL
tests/orders_180.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE notifications;
DROP_TABLE
false
DIFF00000009571
raw_sql_safe
SQL
orders_125.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM orders WHERE updated_at = 'active';
NONE
false
DIFF00000009572
test_suite_cleanup
SQL
mysql-test/suite/sessions_711.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE customers;
DROP_TABLE
false
DIFF00000009573
general_code_change
TypeScript
transactions_660.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
DIFF00000009574
obfuscated_destructive
SQL
sessions_809.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER tabLE accoUNTS DROp CoLUmN PrIce;
DROP_COLUMN
true
DIFF00000009575
mentioned_in_comment
Python
tickets_569.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DELETE FROM refunds;")
DELETE_UNQUALIFIED
false
DIFF00000009576
orm_schema_change
Ruby
refunds_485.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :logs, :category
NONE
true
DIFF00000009577
raw_sql_safe
SQL
events_249.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE logs SET score = %s WHERE metadata = %s;
NONE
false
DIFF00000009578
raw_sql_destructive
SQL
reviews_125.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE notifications;
TRUNCATE
true
DIFF00000009579
test_suite_cleanup
SQL
tests/invoices_591.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE reviews RENAME COLUMN user_id TO full_name;
ALTER_RENAME
false
DIFF00000009580
general_code_change
JavaScript
sessions_644.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
DIFF00000009581
obfuscated_destructive
SQL
notifications_170.sql
schema cleanup
@@ -1,3 +1,3 @@ +TRUNCATE TABLE accounts;
TRUNCATE
true
DIFF00000009582
mentioned_in_comment
Python
reviews_764.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE logs DROP COLUMN price; -- now deprecated"""
DROP_COLUMN
false
DIFF00000009583
general_code_change
TypeScript
employees_619.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
DIFF00000009584
orm_schema_change
JavaScript
customers_208.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('sessions', 'balance')
NONE
true
DIFF00000009585
general_code_change
Python
inventory_91.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000009586
orm_schema_change
JavaScript
reviews_213.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('products', 'price')
NONE
true
DIFF00000009587
orm_schema_change
Ruby
notifications_973.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :employees, :status
NONE
true
DIFF00000009588
test_suite_cleanup
SQL
spec/customers_729.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE customers;
TRUNCATE
false
DIFF00000009589
orm_schema_change
JavaScript
inventory_203.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('transactions', 'amount')
NONE
true
DIFF00000009590
raw_sql_safe
SQL
users_629.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM sessions WHERE status = 'active';
NONE
false
DIFF00000009591
obfuscated_destructive
SQL
comments_92.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTer tABle suBscrIPtIonS rENaME COLumN orDER_ID To coNTAcT_emAIL;
ALTER_RENAME
true
DIFF00000009592
orm_schema_change
Ruby
subscriptions_798.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :reviews, :email
NONE
true
DIFF00000009593
orm_schema_change
Python
comments_610.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='products', name='phone')
NONE
true
DIFF00000009594
raw_sql_destructive
SQL
orders_42.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE accounts DROP COLUMN name;
DROP_COLUMN
true
DIFF00000009595
obfuscated_destructive
SQL
invoices_215.sql
schema cleanup
@@ -1,3 +1,3 @@ +TRUNCATE TABLE subscriptions;
TRUNCATE
true
DIFF00000009596
test_suite_cleanup
SQL
mysql-test/suite/notifications_393.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE payments SET price = CONCAT(price, role);
UPDATE_CONCAT
false
DIFF00000009597
mentioned_in_comment
Python
users_350.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE employees DROP COLUMN name;")
DROP_COLUMN
false
DIFF00000009598
obfuscated_destructive
SQL
refunds_556.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE tickets DROP COLUMN balance;
DROP_COLUMN
true
DIFF00000009599
orm_schema_change
TypeScript
employees_951.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Payments { // removed field: balance }
NONE
true