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
DIFF00000003700
raw_sql_destructive
SQL
transactions_951.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE subscriptions RENAME COLUMN user_id TO contact_email;
ALTER_RENAME
true
DIFF00000003701
raw_sql_safe
SQL
shipments_456.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE events ADD COLUMN full_name VARCHAR(255);
NONE
false
DIFF00000003702
raw_sql_safe
SQL
accounts_907.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO transactions (score, description) VALUES (%s, %s);
NONE
false
DIFF00000003703
general_code_change
Ruby
notifications_50.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000003704
general_code_change
Python
employees_608.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000003705
general_code_change
Python
shipments_653.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000003706
raw_sql_safe
SQL
employees_407.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE comments SET score = %s WHERE metadata = %s;
NONE
false
DIFF00000003707
orm_schema_change
JavaScript
orders_409.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('refunds', table => table.dropColumn('description'))
NONE
true
DIFF00000003708
raw_sql_destructive
SQL
subscriptions_219.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE accounts SET order_id = CONCAT(order_id, created_at);
UPDATE_CONCAT
true
DIFF00000003709
obfuscated_destructive
SQL
logs_792.sql
schema cleanup
@@ -1,3 +1,3 @@ +DELETE FROM comments;
DELETE_UNQUALIFIED
true
DIFF00000003710
orm_schema_change
JavaScript
orders_397.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('refunds', 'quantity')
NONE
true
DIFF00000003711
raw_sql_safe
SQL
orders_293.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO accounts (category, score) VALUES (%s, %s);
NONE
false
DIFF00000003712
raw_sql_destructive
SQL
invoices_673.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE notifications DROP COLUMN metadata;
DROP_COLUMN
true
DIFF00000003713
general_code_change
Go
invoices_864.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000003714
mentioned_in_comment
Python
shipments_447.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'TRUNCATE TABLE accounts;' manually, handled by migration tool
TRUNCATE
false
DIFF00000003715
raw_sql_safe
SQL
orders_679.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM refunds WHERE name = 'active';
NONE
false
DIFF00000003716
raw_sql_safe
SQL
invoices_446.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO shipments (amount, category) VALUES (%s, %s);
NONE
false
DIFF00000003717
orm_schema_change
Ruby
notifications_709.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :comments, :created_at
NONE
true
DIFF00000003718
general_code_change
Ruby
events_284.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000003719
general_code_change
TypeScript
accounts_267.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
DIFF00000003720
test_suite_cleanup
SQL
spec/refunds_744.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM orders;
DELETE_UNQUALIFIED
false
DIFF00000003721
test_suite_cleanup
SQL
spec/accounts_105.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM logs;
DELETE_UNQUALIFIED
false
DIFF00000003722
test_suite_cleanup
SQL
mysql-test/suite/users_332.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE shipments;
TRUNCATE
false
DIFF00000003723
orm_schema_change
JavaScript
shipments_475.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('refunds', 'email')
NONE
true
DIFF00000003724
obfuscated_destructive
SQL
employees_799.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE invoices RENAME COLUMN is_active TO amount_cents;
ALTER_RENAME
true
DIFF00000003725
test_suite_cleanup
SQL
mysql-test/suite/inventory_793.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM accounts;
DELETE_UNQUALIFIED
false
DIFF00000003726
mentioned_in_comment
Python
customers_190.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'UPDATE sessions SET updated_at = CONCAT(updated_at, created_at);' manually, handled by migration tool
UPDATE_CONCAT
false
DIFF00000003727
raw_sql_destructive
SQL
employees_934.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE reviews;
DROP_TABLE
true
DIFF00000003728
test_suite_cleanup
SQL
spec/events_556.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE notifications;
DROP_TABLE
false
DIFF00000003729
raw_sql_safe
SQL
inventory_933.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE orders ADD COLUMN amount_cents VARCHAR(255);
NONE
false
DIFF00000003730
raw_sql_destructive
SQL
tickets_906.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE comments RENAME COLUMN phone TO contact_email;
ALTER_RENAME
true
DIFF00000003731
raw_sql_destructive
SQL
orders_239.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE payments RENAME COLUMN address TO full_name;
ALTER_RENAME
true
DIFF00000003732
raw_sql_safe
SQL
notifications_901.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE employees ADD COLUMN amount_cents VARCHAR(255);
NONE
false
DIFF00000003733
raw_sql_safe
SQL
reviews_232.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE shipments SET category = %s WHERE order_id = %s;
NONE
false
DIFF00000003734
raw_sql_safe
SQL
events_491.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_payments_email ON payments (user_id);
NONE
false
DIFF00000003735
raw_sql_safe
SQL
shipments_312.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE orders ADD COLUMN state VARCHAR(255);
NONE
false
DIFF00000003736
raw_sql_destructive
SQL
reviews_40.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE subscriptions;
DROP_TABLE
true
DIFF00000003737
mentioned_in_comment
Python
tickets_51.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: UPDATE customers SET order_id = CONCAT(order_id, category);")
UPDATE_CONCAT
false
DIFF00000003738
obfuscated_destructive
SQL
payments_461.sql
schema cleanup
@@ -1,3 +1,3 @@ +TrUNCATE TAbLE INveNTOry;
TRUNCATE
true
DIFF00000003739
mentioned_in_comment
Python
users_556.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: DELETE FROM accounts; -- now deprecated"""
DELETE_UNQUALIFIED
false
DIFF00000003740
orm_schema_change
JavaScript
reviews_204.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('transactions', table => table.dropColumn('quantity'))
NONE
true
DIFF00000003741
general_code_change
Ruby
payments_667.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000003742
test_suite_cleanup
SQL
mysql-test/suite/orders_306.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE transactions RENAME COLUMN is_active TO full_name;
ALTER_RENAME
false
DIFF00000003743
obfuscated_destructive
SQL
comments_474.sql
schema cleanup
@@ -1,3 +1,3 @@ +drop table subscriptions;
DROP_TABLE
true
DIFF00000003744
obfuscated_destructive
SQL
logs_912.sql
schema cleanup
@@ -1,3 +1,3 @@ +UPdaTe ShiPMENTs SEt dEsCRiPtIoN = conCat(dEscrIption, CATegory);
UPDATE_CONCAT
true
DIFF00000003745
obfuscated_destructive
SQL
orders_385.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTEr Table lOGs dROP COLuMn orDeR_Id;
DROP_COLUMN
true
DIFF00000003746
obfuscated_destructive
SQL
comments_203.sql
schema cleanup
@@ -1,3 +1,3 @@ +alter table accounts rename column status to full_name;
ALTER_RENAME
true
DIFF00000003747
raw_sql_safe
SQL
comments_172.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE sessions ADD COLUMN user_role VARCHAR(255);
NONE
false
DIFF00000003748
raw_sql_safe
SQL
transactions_365.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO users (quantity, updated_at) VALUES (%s, %s);
NONE
false
DIFF00000003749
raw_sql_safe
SQL
comments_900.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_employees_status ON employees (category);
NONE
false
DIFF00000003750
mentioned_in_comment
Python
refunds_82.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: TRUNCATE TABLE shipments;")
TRUNCATE
false
DIFF00000003751
general_code_change
Python
users_597.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000003752
general_code_change
Python
payments_947.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000003753
obfuscated_destructive
SQL
shipments_12.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE transactions DROP COLUMN order_id;
DROP_COLUMN
true
DIFF00000003754
test_suite_cleanup
SQL
spec/logs_543.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM transactions;
DELETE_UNQUALIFIED
false
DIFF00000003755
general_code_change
Ruby
subscriptions_113.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000003756
mentioned_in_comment
Python
orders_609.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DELETE FROM reviews;")
DELETE_UNQUALIFIED
false
DIFF00000003757
raw_sql_destructive
SQL
customers_858.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM logs;
DELETE_UNQUALIFIED
true
DIFF00000003758
general_code_change
JavaScript
notifications_354.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
DIFF00000003759
raw_sql_destructive
SQL
reviews_915.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE inventory;
DROP_TABLE
true
DIFF00000003760
raw_sql_destructive
SQL
events_88.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE invoices DROP COLUMN description;
DROP_COLUMN
true
DIFF00000003761
orm_schema_change
Python
customers_827.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='payments', name='order_id')
NONE
true
DIFF00000003762
general_code_change
JavaScript
refunds_430.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000003763
mentioned_in_comment
Python
logs_921.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: TRUNCATE TABLE subscriptions;")
TRUNCATE
false
DIFF00000003764
obfuscated_destructive
SQL
events_592.sql
schema cleanup
@@ -1,3 +1,3 @@ +dRoP tAble loGS;
DROP_TABLE
true
DIFF00000003765
raw_sql_safe
SQL
subscriptions_87.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE orders SET priority = %s WHERE balance = %s;
NONE
false
DIFF00000003766
raw_sql_destructive
SQL
tickets_152.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE employees SET status = CONCAT(status, score);
UPDATE_CONCAT
true
DIFF00000003767
raw_sql_destructive
SQL
reviews_854.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE refunds DROP COLUMN is_active;
DROP_COLUMN
true
DIFF00000003768
general_code_change
TypeScript
subscriptions_67.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
DIFF00000003769
general_code_change
Ruby
orders_523.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000003770
raw_sql_safe
SQL
sessions_824.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE employees ADD COLUMN full_name VARCHAR(255);
NONE
false
DIFF00000003771
orm_schema_change
Ruby
subscriptions_92.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :subscriptions, :amount
NONE
true
DIFF00000003772
general_code_change
Go
comments_321.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000003773
orm_schema_change
TypeScript
notifications_864.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Customers { // removed field: quantity }
NONE
true
DIFF00000003774
general_code_change
Python
events_645.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000003775
mentioned_in_comment
Python
refunds_426.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: UPDATE shipments SET name = CONCAT(name, score); -- now deprecated"""
UPDATE_CONCAT
false
DIFF00000003776
raw_sql_destructive
SQL
logs_594.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM users;
DELETE_UNQUALIFIED
true
DIFF00000003777
obfuscated_destructive
SQL
orders_43.sql
schema cleanup
@@ -1,3 +1,3 @@ +DROP TABLE customers;
DROP_TABLE
true
DIFF00000003778
mentioned_in_comment
Python
events_384.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DELETE FROM shipments;")
DELETE_UNQUALIFIED
false
DIFF00000003779
raw_sql_safe
SQL
subscriptions_735.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_reviews_created_at ON reviews (is_active);
NONE
false
DIFF00000003780
general_code_change
JavaScript
comments_244.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000003781
general_code_change
Go
inventory_1.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000003782
raw_sql_destructive
SQL
comments_607.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE refunds RENAME COLUMN price TO user_role;
ALTER_RENAME
true
DIFF00000003783
general_code_change
Go
products_461.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000003784
raw_sql_safe
SQL
sessions_205.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE products ADD COLUMN state VARCHAR(255);
NONE
false
DIFF00000003785
orm_schema_change
Ruby
tickets_114.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :events, :description
NONE
true
DIFF00000003786
mentioned_in_comment
Python
payments_154.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: DELETE FROM accounts; -- now deprecated"""
DELETE_UNQUALIFIED
false
DIFF00000003787
orm_schema_change
JavaScript
employees_246.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('invoices', 'phone')
NONE
true
DIFF00000003788
general_code_change
Java
products_376.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000003789
general_code_change
Go
logs_61.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000003790
obfuscated_destructive
SQL
employees_255.sql
schema cleanup
@@ -1,3 +1,3 @@ +UPDATE customers SET email = CONCAT(email, description);
UPDATE_CONCAT
true
DIFF00000003791
orm_schema_change
JavaScript
transactions_97.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('invoices', table => table.dropColumn('description'))
NONE
true
DIFF00000003792
mentioned_in_comment
Python
logs_250.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE transactions DROP COLUMN order_id;")
DROP_COLUMN
false
DIFF00000003793
raw_sql_safe
SQL
shipments_324.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_employees_metadata ON employees (price);
NONE
false
DIFF00000003794
obfuscated_destructive
SQL
subscriptions_117.sql
schema cleanup
@@ -1,3 +1,3 @@ +update invoices set email = concat(email, role);
UPDATE_CONCAT
true
DIFF00000003795
raw_sql_safe
SQL
sessions_351.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE payments SET description = %s WHERE updated_at = %s;
NONE
false
DIFF00000003796
obfuscated_destructive
SQL
notifications_904.sql
schema cleanup
@@ -1,3 +1,3 @@ +truNCATE TAbLe ORDErs;
TRUNCATE
true
DIFF00000003797
test_suite_cleanup
SQL
test/accounts_288.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE transactions;
DROP_TABLE
false
DIFF00000003798
mentioned_in_comment
Python
logs_177.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: UPDATE sessions SET updated_at = CONCAT(updated_at, score); -- now deprecated"""
UPDATE_CONCAT
false
DIFF00000003799
orm_schema_change
Ruby
transactions_905.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :sessions, :phone
NONE
true