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
DIFF00000001600
raw_sql_destructive
SQL
customers_908.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE invoices;
TRUNCATE
true
DIFF00000001601
raw_sql_safe
SQL
inventory_912.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE payments ADD COLUMN state VARCHAR(255);
NONE
false
DIFF00000001602
raw_sql_safe
SQL
logs_632.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE subscriptions SET description = %s WHERE score = %s;
NONE
false
DIFF00000001603
general_code_change
JavaScript
refunds_828.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000001604
general_code_change
Java
tickets_666.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000001605
general_code_change
JavaScript
events_694.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000001606
raw_sql_destructive
SQL
transactions_797.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE shipments;
DROP_TABLE
true
DIFF00000001607
general_code_change
TypeScript
refunds_289.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
DIFF00000001608
obfuscated_destructive
SQL
accounts_316.sql
schema cleanup
@@ -1,3 +1,3 @@ +DELete fRom NoTiFICaTIONs;
DELETE_UNQUALIFIED
true
DIFF00000001609
general_code_change
Ruby
products_713.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000001610
obfuscated_destructive
SQL
reviews_707.sql
schema cleanup
@@ -1,3 +1,3 @@ +Truncate taBLE pAymENtS;
TRUNCATE
true
DIFF00000001611
general_code_change
Go
logs_334.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000001612
obfuscated_destructive
SQL
accounts_905.sql
schema cleanup
@@ -1,3 +1,3 @@ +alter table inventory drop column order_id;
DROP_COLUMN
true
DIFF00000001613
orm_schema_change
Python
tickets_813.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='employees', name='role')
NONE
true
DIFF00000001614
general_code_change
Java
events_68.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000001615
raw_sql_safe
SQL
payments_317.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE logs ADD COLUMN user_role VARCHAR(255);
NONE
false
DIFF00000001616
raw_sql_destructive
SQL
subscriptions_749.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE notifications DROP COLUMN priority;
DROP_COLUMN
true
DIFF00000001617
general_code_change
TypeScript
accounts_118.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
DIFF00000001618
obfuscated_destructive
SQL
subscriptions_961.sql
schema cleanup
@@ -1,3 +1,3 @@ +Drop tabLE CusTOMERs;
DROP_TABLE
true
DIFF00000001619
obfuscated_destructive
SQL
inventory_724.sql
schema cleanup
@@ -1,3 +1,3 @@ +dELETE froM sUbsCriPTIoNS;
DELETE_UNQUALIFIED
true
DIFF00000001620
obfuscated_destructive
SQL
subscriptions_386.sql
schema cleanup
@@ -1,3 +1,3 @@ +DROP TABLE users;
DROP_TABLE
true
DIFF00000001621
test_suite_cleanup
SQL
mysql-test/suite/logs_178.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE tickets DROP COLUMN description;
DROP_COLUMN
false
DIFF00000001622
raw_sql_safe
SQL
sessions_767.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_refunds_description ON refunds (category);
NONE
false
DIFF00000001623
orm_schema_change
TypeScript
employees_186.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Employees { // removed field: user_id }
NONE
true
DIFF00000001624
test_suite_cleanup
SQL
tests/tickets_719.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE shipments;
DROP_TABLE
false
DIFF00000001625
orm_schema_change
TypeScript
events_358.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Shipments { // removed field: is_active }
NONE
true
DIFF00000001626
general_code_change
Ruby
shipments_282.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000001627
general_code_change
Python
comments_566.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000001628
raw_sql_destructive
SQL
employees_150.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE shipments;
DROP_TABLE
true
DIFF00000001629
raw_sql_safe
SQL
subscriptions_483.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO logs (amount, quantity) VALUES (%s, %s);
NONE
false
DIFF00000001630
test_suite_cleanup
SQL
tests/sessions_34.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM reviews;
DELETE_UNQUALIFIED
false
DIFF00000001631
orm_schema_change
Python
subscriptions_450.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='payments', name='role')
NONE
true
DIFF00000001632
test_suite_cleanup
SQL
mysql-test/suite/sessions_936.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM notifications;
DELETE_UNQUALIFIED
false
DIFF00000001633
orm_schema_change
Ruby
shipments_85.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :invoices, :address
NONE
true
DIFF00000001634
general_code_change
JavaScript
payments_614.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
DIFF00000001635
raw_sql_destructive
SQL
logs_170.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM accounts;
DELETE_UNQUALIFIED
true
DIFF00000001636
general_code_change
Python
reviews_676.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000001637
orm_schema_change
Python
accounts_157.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='tickets', name='description')
NONE
true
DIFF00000001638
general_code_change
Ruby
refunds_336.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000001639
mentioned_in_comment
Python
transactions_286.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: UPDATE comments SET priority = CONCAT(priority, status);")
UPDATE_CONCAT
false
DIFF00000001640
test_suite_cleanup
SQL
mysql-test/suite/payments_544.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE subscriptions DROP COLUMN phone;
DROP_COLUMN
false
DIFF00000001641
raw_sql_safe
SQL
tickets_838.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO orders (address, email) VALUES (%s, %s);
NONE
false
DIFF00000001642
raw_sql_destructive
SQL
events_953.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE payments;
DROP_TABLE
true
DIFF00000001643
general_code_change
Ruby
payments_119.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000001644
general_code_change
Ruby
users_749.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000001645
test_suite_cleanup
SQL
spec/notifications_504.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE reviews;
TRUNCATE
false
DIFF00000001646
raw_sql_safe
SQL
comments_562.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM reviews WHERE order_id = 'active';
NONE
false
DIFF00000001647
test_suite_cleanup
SQL
tests/accounts_750.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE logs;
TRUNCATE
false
DIFF00000001648
obfuscated_destructive
SQL
notifications_362.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE shipments RENAME COLUMN quantity TO amount_cents;
ALTER_RENAME
true
DIFF00000001649
obfuscated_destructive
SQL
notifications_149.sql
schema cleanup
@@ -1,3 +1,3 @@ +alter table orders drop column user_id;
DROP_COLUMN
true
DIFF00000001650
orm_schema_change
JavaScript
shipments_223.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('refunds', 'is_active')
NONE
true
DIFF00000001651
orm_schema_change
JavaScript
shipments_119.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('events', table => table.dropColumn('order_id'))
NONE
true
DIFF00000001652
mentioned_in_comment
Python
inventory_323.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: TRUNCATE TABLE shipments; -- now deprecated"""
TRUNCATE
false
DIFF00000001653
mentioned_in_comment
Python
refunds_10.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DROP TABLE logs;' manually, handled by migration tool
DROP_TABLE
false
DIFF00000001654
raw_sql_safe
SQL
shipments_625.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_events_description ON events (updated_at);
NONE
false
DIFF00000001655
mentioned_in_comment
Python
events_820.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE orders DROP COLUMN category;' manually, handled by migration tool
DROP_COLUMN
false
DIFF00000001656
test_suite_cleanup
SQL
mysql-test/suite/inventory_480.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE tickets DROP COLUMN priority;
DROP_COLUMN
false
DIFF00000001657
general_code_change
Java
events_599.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000001658
general_code_change
Java
logs_547.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000001659
general_code_change
JavaScript
accounts_175.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
DIFF00000001660
general_code_change
Go
orders_711.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000001661
general_code_change
JavaScript
subscriptions_328.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
DIFF00000001662
test_suite_cleanup
SQL
tests/subscriptions_583.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE comments;
DROP_TABLE
false
DIFF00000001663
raw_sql_destructive
SQL
accounts_133.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE comments;
DROP_TABLE
true
DIFF00000001664
general_code_change
Go
customers_863.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000001665
general_code_change
Go
users_582.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000001666
raw_sql_safe
SQL
refunds_562.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO payments (email, category) VALUES (%s, %s);
NONE
false
DIFF00000001667
orm_schema_change
Python
invoices_541.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='transactions', name='category')
NONE
true
DIFF00000001668
orm_schema_change
JavaScript
refunds_914.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('events', table => table.dropColumn('email'))
NONE
true
DIFF00000001669
orm_schema_change
TypeScript
transactions_281.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Comments { // removed field: phone }
NONE
true
DIFF00000001670
obfuscated_destructive
SQL
users_209.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE products RENAME COLUMN description TO full_name;
ALTER_RENAME
true
DIFF00000001671
raw_sql_destructive
SQL
invoices_502.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE accounts;
DROP_TABLE
true
DIFF00000001672
mentioned_in_comment
Python
tickets_774.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DROP TABLE accounts;")
DROP_TABLE
false
DIFF00000001673
orm_schema_change
Python
events_280.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='notifications', name='name')
NONE
true
DIFF00000001674
general_code_change
JavaScript
refunds_197.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000001675
general_code_change
Go
shipments_922.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000001676
raw_sql_safe
SQL
refunds_109.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE tickets ADD COLUMN user_role VARCHAR(255);
NONE
false
DIFF00000001677
general_code_change
Python
customers_794.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000001678
raw_sql_safe
SQL
orders_214.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM employees WHERE order_id = 'active';
NONE
false
DIFF00000001679
raw_sql_destructive
SQL
inventory_902.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE tickets;
TRUNCATE
true
DIFF00000001680
raw_sql_safe
SQL
refunds_876.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM sessions WHERE order_id = 'active';
NONE
false
DIFF00000001681
orm_schema_change
JavaScript
refunds_759.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('events', table => table.dropColumn('email'))
NONE
true
DIFF00000001682
orm_schema_change
JavaScript
payments_255.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('notifications', 'description')
NONE
true
DIFF00000001683
obfuscated_destructive
SQL
reviews_786.sql
schema cleanup
@@ -1,3 +1,3 @@ +DELETE FROM inventory;
DELETE_UNQUALIFIED
true
DIFF00000001684
orm_schema_change
JavaScript
notifications_219.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('events', 'email')
NONE
true
DIFF00000001685
raw_sql_destructive
SQL
inventory_487.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE subscriptions RENAME COLUMN quantity TO amount_cents;
ALTER_RENAME
true
DIFF00000001686
general_code_change
Go
notifications_628.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000001687
mentioned_in_comment
Python
invoices_835.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DROP TABLE users;' manually, handled by migration tool
DROP_TABLE
false
DIFF00000001688
raw_sql_safe
SQL
invoices_186.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE transactions SET metadata = %s WHERE user_id = %s;
NONE
false
DIFF00000001689
raw_sql_destructive
SQL
payments_903.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE subscriptions SET phone = CONCAT(phone, status);
UPDATE_CONCAT
true
DIFF00000001690
raw_sql_safe
SQL
employees_520.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_invoices_phone ON invoices (updated_at);
NONE
false
DIFF00000001691
raw_sql_destructive
SQL
subscriptions_944.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE refunds;
DROP_TABLE
true
DIFF00000001692
raw_sql_safe
SQL
accounts_200.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO events (phone, role) VALUES (%s, %s);
NONE
false
DIFF00000001693
orm_schema_change
Python
orders_521.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='events', name='order_id')
NONE
true
DIFF00000001694
raw_sql_safe
SQL
logs_882.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO users (metadata, address) VALUES (%s, %s);
NONE
false
DIFF00000001695
raw_sql_safe
SQL
employees_267.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO notifications (description, priority) VALUES (%s, %s);
NONE
false
DIFF00000001696
general_code_change
Python
users_755.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000001697
raw_sql_destructive
SQL
events_668.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM employees;
DELETE_UNQUALIFIED
true
DIFF00000001698
raw_sql_destructive
SQL
logs_112.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE transactions SET price = CONCAT(price, is_active);
UPDATE_CONCAT
true
DIFF00000001699
general_code_change
JavaScript
subscriptions_990.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false