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
DIFF00099997500
test_suite_cleanup
SQL
mysql-test/suite/accounts_839.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE products RENAME COLUMN address TO state;
ALTER_RENAME
false
DIFF00099997501
obfuscated_destructive
SQL
tickets_900.sql
schema cleanup
@@ -1,3 +1,3 @@ +truncatE TABLE paymEnts;
TRUNCATE
true
DIFF00099997502
raw_sql_destructive
SQL
notifications_214.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE sessions;
DROP_TABLE
true
DIFF00099997503
orm_schema_change
Ruby
subscriptions_122.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :employees, :priority
NONE
true
DIFF00099997504
raw_sql_destructive
SQL
refunds_128.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM sessions;
DELETE_UNQUALIFIED
true
DIFF00099997505
orm_schema_change
JavaScript
payments_478.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('invoices', 'status')
NONE
true
DIFF00099997506
orm_schema_change
Ruby
events_515.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :subscriptions, :description
NONE
true
DIFF00099997507
obfuscated_destructive
SQL
orders_532.sql
schema cleanup
@@ -1,3 +1,3 @@ +UPDATE tickets SET role = CONCAT(role, score);
UPDATE_CONCAT
true
DIFF00099997508
raw_sql_destructive
SQL
employees_71.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE transactions SET balance = CONCAT(balance, status);
UPDATE_CONCAT
true
DIFF00099997509
orm_schema_change
JavaScript
refunds_646.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('refunds', table => table.dropColumn('phone'))
NONE
true
DIFF00099997510
general_code_change
Python
comments_626.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099997511
general_code_change
Python
comments_992.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099997512
orm_schema_change
Ruby
users_669.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :shipments, :order_id
NONE
true
DIFF00099997513
general_code_change
TypeScript
payments_980.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
DIFF00099997514
general_code_change
Go
payments_921.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099997515
mentioned_in_comment
Python
inventory_339.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE shipments DROP COLUMN phone;")
DROP_COLUMN
false
DIFF00099997516
orm_schema_change
TypeScript
logs_632.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Customers { // removed field: role }
NONE
true
DIFF00099997517
general_code_change
JavaScript
inventory_519.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099997518
raw_sql_safe
SQL
inventory_253.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE logs ADD COLUMN full_name VARCHAR(255);
NONE
false
DIFF00099997519
general_code_change
Python
employees_793.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099997520
raw_sql_safe
SQL
notifications_339.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM transactions WHERE priority = 'active';
NONE
false
DIFF00099997521
raw_sql_safe
SQL
shipments_718.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM sessions WHERE user_id = 'active';
NONE
false
DIFF00099997522
raw_sql_destructive
SQL
users_529.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE refunds;
DROP_TABLE
true
DIFF00099997523
raw_sql_destructive
SQL
users_579.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE users;
TRUNCATE
true
DIFF00099997524
raw_sql_safe
SQL
customers_523.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM reviews WHERE score = 'active';
NONE
false
DIFF00099997525
general_code_change
TypeScript
products_721.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
DIFF00099997526
test_suite_cleanup
SQL
test/customers_215.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE reviews DROP COLUMN role;
DROP_COLUMN
false
DIFF00099997527
mentioned_in_comment
Python
inventory_572.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'TRUNCATE TABLE refunds;' manually, handled by migration tool
TRUNCATE
false
DIFF00099997528
mentioned_in_comment
Python
refunds_952.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE invoices DROP COLUMN quantity;' manually, handled by migration tool
DROP_COLUMN
false
DIFF00099997529
test_suite_cleanup
SQL
mysql-test/suite/accounts_348.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE employees DROP COLUMN address;
DROP_COLUMN
false
DIFF00099997530
general_code_change
JavaScript
shipments_792.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099997531
raw_sql_destructive
SQL
orders_146.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE payments;
TRUNCATE
true
DIFF00099997532
general_code_change
JavaScript
tickets_19.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099997533
test_suite_cleanup
SQL
test/accounts_392.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE invoices;
DROP_TABLE
false
DIFF00099997534
mentioned_in_comment
Python
events_680.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: DELETE FROM refunds; -- now deprecated"""
DELETE_UNQUALIFIED
false
DIFF00099997535
general_code_change
Ruby
notifications_965.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099997536
raw_sql_safe
SQL
refunds_63.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_refunds_user_id ON refunds (order_id);
NONE
false
DIFF00099997537
raw_sql_destructive
SQL
employees_371.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE logs SET created_at = CONCAT(created_at, quantity);
UPDATE_CONCAT
true
DIFF00099997538
orm_schema_change
JavaScript
comments_36.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('shipments', 'description')
NONE
true
DIFF00099997539
general_code_change
Python
reviews_157.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099997540
general_code_change
Python
comments_276.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099997541
test_suite_cleanup
SQL
test/customers_982.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE transactions;
DROP_TABLE
false
DIFF00099997542
test_suite_cleanup
SQL
mysql-test/suite/events_400.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE sessions RENAME COLUMN price TO state;
ALTER_RENAME
false
DIFF00099997543
raw_sql_safe
SQL
products_583.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE comments SET balance = %s WHERE category = %s;
NONE
false
DIFF00099997544
general_code_change
Go
shipments_392.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099997545
test_suite_cleanup
SQL
spec/customers_304.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE customers;
TRUNCATE
false
DIFF00099997546
raw_sql_safe
SQL
customers_967.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM accounts WHERE order_id = 'active';
NONE
false
DIFF00099997547
obfuscated_destructive
SQL
logs_637.sql
schema cleanup
@@ -1,3 +1,3 @@ +TRUNCATE TABLE accounts;
TRUNCATE
true
DIFF00099997548
general_code_change
JavaScript
sessions_30.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099997549
general_code_change
JavaScript
notifications_431.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099997550
mentioned_in_comment
Python
events_886.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: TRUNCATE TABLE notifications;")
TRUNCATE
false
DIFF00099997551
orm_schema_change
Python
comments_174.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='shipments', name='price')
NONE
true
DIFF00099997552
raw_sql_safe
SQL
subscriptions_954.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE logs SET is_active = %s WHERE balance = %s;
NONE
false
DIFF00099997553
raw_sql_destructive
SQL
transactions_869.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE refunds DROP COLUMN address;
DROP_COLUMN
true
DIFF00099997554
raw_sql_destructive
SQL
users_449.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE customers DROP COLUMN metadata;
DROP_COLUMN
true
DIFF00099997555
obfuscated_destructive
SQL
tickets_978.sql
schema cleanup
@@ -1,3 +1,3 @@ +TRUNCATE TABLE notifications;
TRUNCATE
true
DIFF00099997556
obfuscated_destructive
SQL
logs_990.sql
schema cleanup
@@ -1,3 +1,3 @@ +DeLEte From TrANsacTIONS;
DELETE_UNQUALIFIED
true
DIFF00099997557
raw_sql_safe
SQL
tickets_41.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE subscriptions SET status = %s WHERE quantity = %s;
NONE
false
DIFF00099997558
orm_schema_change
TypeScript
products_174.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Transactions { // removed field: status }
NONE
true
DIFF00099997559
raw_sql_safe
SQL
logs_668.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO comments (status, priority) VALUES (%s, %s);
NONE
false
DIFF00099997560
general_code_change
Python
employees_265.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099997561
general_code_change
JavaScript
notifications_973.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
DIFF00099997562
general_code_change
Go
sessions_80.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099997563
general_code_change
Java
events_344.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099997564
raw_sql_safe
SQL
events_810.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE events SET email = %s WHERE address = %s;
NONE
false
DIFF00099997565
test_suite_cleanup
SQL
tests/products_241.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE tickets RENAME COLUMN status TO amount_cents;
ALTER_RENAME
false
DIFF00099997566
general_code_change
JavaScript
reviews_702.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099997567
raw_sql_safe
SQL
payments_355.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE inventory ADD COLUMN user_role VARCHAR(255);
NONE
false
DIFF00099997568
test_suite_cleanup
SQL
mysql-test/suite/employees_878.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE shipments;
DROP_TABLE
false
DIFF00099997569
general_code_change
TypeScript
notifications_219.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
DIFF00099997570
test_suite_cleanup
SQL
test/payments_567.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE tickets DROP COLUMN role;
DROP_COLUMN
false
DIFF00099997571
general_code_change
JavaScript
comments_166.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099997572
orm_schema_change
Ruby
shipments_907.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :tickets, :quantity
NONE
true
DIFF00099997573
test_suite_cleanup
SQL
spec/logs_802.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE sessions;
TRUNCATE
false
DIFF00099997574
test_suite_cleanup
SQL
tests/events_719.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE comments SET created_at = CONCAT(created_at, quantity);
UPDATE_CONCAT
false
DIFF00099997575
mentioned_in_comment
Python
customers_853.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE customers DROP COLUMN phone; -- now deprecated"""
DROP_COLUMN
false
DIFF00099997576
general_code_change
Go
logs_336.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099997577
raw_sql_safe
SQL
products_949.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM transactions WHERE created_at = 'active';
NONE
false
DIFF00099997578
mentioned_in_comment
Python
shipments_857.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE inventory RENAME COLUMN priority TO state;")
ALTER_RENAME
false
DIFF00099997579
raw_sql_destructive
SQL
reviews_596.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM inventory;
DELETE_UNQUALIFIED
true
DIFF00099997580
mentioned_in_comment
Python
reviews_387.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: UPDATE inventory SET email = CONCAT(email, status);")
UPDATE_CONCAT
false
DIFF00099997581
general_code_change
Ruby
accounts_40.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099997582
orm_schema_change
Ruby
employees_339.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :refunds, :email
NONE
true
DIFF00099997583
orm_schema_change
Python
notifications_994.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='reviews', name='balance')
NONE
true
DIFF00099997584
mentioned_in_comment
Python
users_375.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: DELETE FROM sessions; -- now deprecated"""
DELETE_UNQUALIFIED
false
DIFF00099997585
raw_sql_safe
SQL
reviews_499.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE tickets ADD COLUMN state VARCHAR(255);
NONE
false
DIFF00099997586
obfuscated_destructive
SQL
transactions_44.sql
schema cleanup
@@ -1,3 +1,3 @@ +droP tabLE tIckeTs;
DROP_TABLE
true
DIFF00099997587
mentioned_in_comment
Python
logs_963.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE payments DROP COLUMN order_id;")
DROP_COLUMN
false
DIFF00099997588
general_code_change
JavaScript
refunds_512.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099997589
general_code_change
Java
comments_483.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099997590
raw_sql_safe
SQL
inventory_779.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO shipments (price, quantity) VALUES (%s, %s);
NONE
false
DIFF00099997591
orm_schema_change
JavaScript
products_552.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('reviews', 'phone')
NONE
true
DIFF00099997592
raw_sql_safe
SQL
subscriptions_147.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO payments (role, score) VALUES (%s, %s);
NONE
false
DIFF00099997593
general_code_change
Python
reviews_885.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099997594
general_code_change
Ruby
payments_165.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099997595
test_suite_cleanup
SQL
mysql-test/suite/tickets_108.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE accounts;
DROP_TABLE
false
DIFF00099997596
general_code_change
JavaScript
customers_305.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099997597
raw_sql_safe
SQL
orders_200.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE customers SET phone = %s WHERE priority = %s;
NONE
false
DIFF00099997598
raw_sql_safe
SQL
inventory_216.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE events SET amount = %s WHERE quantity = %s;
NONE
false
DIFF00099997599
orm_schema_change
TypeScript
shipments_95.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Tickets { // removed field: phone }
NONE
true