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
DIFF00099994000
test_suite_cleanup
SQL
mysql-test/suite/subscriptions_423.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE customers DROP COLUMN score;
DROP_COLUMN
false
DIFF00099994001
mentioned_in_comment
Python
tickets_710.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE employees RENAME COLUMN amount TO amount_cents; -- now deprecated"""
ALTER_RENAME
false
DIFF00099994002
raw_sql_safe
SQL
products_764.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_payments_quantity ON payments (status);
NONE
false
DIFF00099994003
general_code_change
Python
tickets_22.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099994004
orm_schema_change
Python
invoices_591.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='tickets', name='quantity')
NONE
true
DIFF00099994005
raw_sql_safe
SQL
subscriptions_653.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM accounts WHERE price = 'active';
NONE
false
DIFF00099994006
general_code_change
Python
sessions_600.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099994007
test_suite_cleanup
SQL
tests/logs_498.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM comments;
DELETE_UNQUALIFIED
false
DIFF00099994008
raw_sql_destructive
SQL
inventory_925.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM employees;
DELETE_UNQUALIFIED
true
DIFF00099994009
orm_schema_change
JavaScript
invoices_682.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('tickets', 'score')
NONE
true
DIFF00099994010
general_code_change
TypeScript
reviews_324.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
DIFF00099994011
general_code_change
Go
sessions_554.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099994012
test_suite_cleanup
SQL
mysql-test/suite/inventory_434.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE accounts;
TRUNCATE
false
DIFF00099994013
test_suite_cleanup
SQL
spec/transactions_174.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE subscriptions;
TRUNCATE
false
DIFF00099994014
test_suite_cleanup
SQL
spec/orders_858.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE sessions DROP COLUMN user_id;
DROP_COLUMN
false
DIFF00099994015
general_code_change
TypeScript
inventory_411.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
DIFF00099994016
test_suite_cleanup
SQL
test/employees_201.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE accounts;
TRUNCATE
false
DIFF00099994017
orm_schema_change
Ruby
customers_800.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :products, :created_at
NONE
true
DIFF00099994018
obfuscated_destructive
SQL
logs_15.sql
schema cleanup
@@ -1,3 +1,3 @@ +dRop TAbLE SESSIOnS;
DROP_TABLE
true
DIFF00099994019
orm_schema_change
Python
shipments_501.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='transactions', name='score')
NONE
true
DIFF00099994020
general_code_change
Python
shipments_352.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099994021
mentioned_in_comment
Python
tickets_707.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DROP TABLE tickets;")
DROP_TABLE
false
DIFF00099994022
raw_sql_destructive
SQL
products_487.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE subscriptions DROP COLUMN description;
DROP_COLUMN
true
DIFF00099994023
raw_sql_safe
SQL
refunds_988.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_sessions_email ON sessions (priority);
NONE
false
DIFF00099994024
general_code_change
JavaScript
payments_150.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
DIFF00099994025
raw_sql_safe
SQL
sessions_860.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM invoices WHERE quantity = 'active';
NONE
false
DIFF00099994026
obfuscated_destructive
SQL
logs_753.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE refunds DROP COLUMN metadata;
DROP_COLUMN
true
DIFF00099994027
general_code_change
JavaScript
reviews_753.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099994028
general_code_change
TypeScript
products_666.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
DIFF00099994029
raw_sql_safe
SQL
tickets_865.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE comments SET address = %s WHERE amount = %s;
NONE
false
DIFF00099994030
orm_schema_change
JavaScript
events_235.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('shipments', 'priority')
NONE
true
DIFF00099994031
mentioned_in_comment
Python
subscriptions_755.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: TRUNCATE TABLE customers;")
TRUNCATE
false
DIFF00099994032
raw_sql_destructive
SQL
users_371.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM invoices;
DELETE_UNQUALIFIED
true
DIFF00099994033
raw_sql_safe
SQL
payments_111.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_tickets_email ON tickets (updated_at);
NONE
false
DIFF00099994034
mentioned_in_comment
Python
orders_425.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DELETE FROM employees;")
DELETE_UNQUALIFIED
false
DIFF00099994035
test_suite_cleanup
SQL
tests/accounts_2.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE sessions;
DROP_TABLE
false
DIFF00099994036
obfuscated_destructive
SQL
products_923.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE transactions DROP COLUMN metadata;
DROP_COLUMN
true
DIFF00099994037
raw_sql_destructive
SQL
shipments_920.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE users;
TRUNCATE
true
DIFF00099994038
general_code_change
Java
customers_870.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099994039
raw_sql_destructive
SQL
products_197.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE refunds;
DROP_TABLE
true
DIFF00099994040
obfuscated_destructive
SQL
logs_424.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE orders DROP COLUMN score;
DROP_COLUMN
true
DIFF00099994041
orm_schema_change
TypeScript
events_465.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Transactions { // removed field: amount }
NONE
true
DIFF00099994042
general_code_change
Go
logs_862.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099994043
general_code_change
Go
events_485.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099994044
general_code_change
JavaScript
invoices_899.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099994045
general_code_change
JavaScript
employees_113.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099994046
test_suite_cleanup
SQL
test/notifications_817.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM tickets;
DELETE_UNQUALIFIED
false
DIFF00099994047
general_code_change
JavaScript
logs_668.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
DIFF00099994048
raw_sql_destructive
SQL
sessions_817.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE sessions DROP COLUMN created_at;
DROP_COLUMN
true
DIFF00099994049
obfuscated_destructive
SQL
customers_654.sql
schema cleanup
@@ -1,3 +1,3 @@ +Alter TabLE EVENTS DroP cOluMN NaME;
DROP_COLUMN
true
DIFF00099994050
test_suite_cleanup
SQL
mysql-test/suite/events_79.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM inventory;
DELETE_UNQUALIFIED
false
DIFF00099994051
raw_sql_safe
SQL
refunds_533.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE payments SET metadata = %s WHERE score = %s;
NONE
false
DIFF00099994052
raw_sql_safe
SQL
events_743.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE reviews SET status = %s WHERE category = %s;
NONE
false
DIFF00099994053
raw_sql_destructive
SQL
transactions_381.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE refunds SET phone = CONCAT(phone, phone);
UPDATE_CONCAT
true
DIFF00099994054
general_code_change
Go
products_959.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099994055
raw_sql_safe
SQL
accounts_841.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_customers_name ON customers (is_active);
NONE
false
DIFF00099994056
test_suite_cleanup
SQL
mysql-test/suite/reviews_212.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE reviews;
DROP_TABLE
false
DIFF00099994057
orm_schema_change
JavaScript
events_631.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('orders', table => table.dropColumn('is_active'))
NONE
true
DIFF00099994058
raw_sql_safe
SQL
refunds_446.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM invoices WHERE priority = 'active';
NONE
false
DIFF00099994059
raw_sql_destructive
SQL
sessions_942.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE payments RENAME COLUMN status TO full_name;
ALTER_RENAME
true
DIFF00099994060
obfuscated_destructive
SQL
transactions_391.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE customers DROP COLUMN address;
DROP_COLUMN
true
DIFF00099994061
orm_schema_change
Ruby
accounts_334.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :subscriptions, :is_active
NONE
true
DIFF00099994062
mentioned_in_comment
Python
subscriptions_789.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE refunds RENAME COLUMN phone TO amount_cents; -- now deprecated"""
ALTER_RENAME
false
DIFF00099994063
orm_schema_change
Python
users_695.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='comments', name='role')
NONE
true
DIFF00099994064
obfuscated_destructive
SQL
events_663.sql
schema cleanup
@@ -1,3 +1,3 @@ +aLtEr taBle accoUNTs rENAmE COLuMN oRdeR_id to fuLl_NaMe;
ALTER_RENAME
true
DIFF00099994065
mentioned_in_comment
Python
products_532.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: DELETE FROM events; -- now deprecated"""
DELETE_UNQUALIFIED
false
DIFF00099994066
orm_schema_change
Python
invoices_962.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='shipments', name='is_active')
NONE
true
DIFF00099994067
mentioned_in_comment
Python
products_118.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE tickets RENAME COLUMN description TO contact_email; -- now deprecated"""
ALTER_RENAME
false
DIFF00099994068
raw_sql_destructive
SQL
logs_269.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE sessions SET category = CONCAT(category, address);
UPDATE_CONCAT
true
DIFF00099994069
orm_schema_change
JavaScript
orders_504.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('users', table => table.dropColumn('address'))
NONE
true
DIFF00099994070
general_code_change
Go
subscriptions_48.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099994071
raw_sql_destructive
SQL
orders_386.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE shipments DROP COLUMN order_id;
DROP_COLUMN
true
DIFF00099994072
general_code_change
Java
accounts_101.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099994073
mentioned_in_comment
Python
users_58.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: TRUNCATE TABLE reviews;")
TRUNCATE
false
DIFF00099994074
raw_sql_safe
SQL
payments_131.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE inventory ADD COLUMN state VARCHAR(255);
NONE
false
DIFF00099994075
raw_sql_destructive
SQL
customers_858.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE invoices;
DROP_TABLE
true
DIFF00099994076
general_code_change
Python
customers_732.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099994077
obfuscated_destructive
SQL
subscriptions_421.sql
schema cleanup
@@ -1,3 +1,3 @@ +DELETE FROM reviews;
DELETE_UNQUALIFIED
true
DIFF00099994078
obfuscated_destructive
SQL
events_214.sql
schema cleanup
@@ -1,3 +1,3 @@ +uPDaTE REfUNDs Set SCORe = concaT(ScORe, pHOne);
UPDATE_CONCAT
true
DIFF00099994079
general_code_change
Ruby
users_763.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099994080
general_code_change
Python
employees_599.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099994081
mentioned_in_comment
Python
subscriptions_548.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'TRUNCATE TABLE invoices;' manually, handled by migration tool
TRUNCATE
false
DIFF00099994082
general_code_change
JavaScript
sessions_946.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
DIFF00099994083
raw_sql_destructive
SQL
refunds_368.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE logs;
DROP_TABLE
true
DIFF00099994084
orm_schema_change
Python
refunds_574.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='notifications', name='status')
NONE
true
DIFF00099994085
mentioned_in_comment
Python
logs_267.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DROP TABLE accounts;' manually, handled by migration tool
DROP_TABLE
false
DIFF00099994086
orm_schema_change
Ruby
reviews_453.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :refunds, :email
NONE
true
DIFF00099994087
raw_sql_safe
SQL
inventory_435.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM subscriptions WHERE score = 'active';
NONE
false
DIFF00099994088
raw_sql_safe
SQL
customers_507.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO notifications (is_active, email) VALUES (%s, %s);
NONE
false
DIFF00099994089
raw_sql_destructive
SQL
comments_741.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE orders SET address = CONCAT(address, score);
UPDATE_CONCAT
true
DIFF00099994090
general_code_change
Python
customers_912.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099994091
test_suite_cleanup
SQL
spec/notifications_294.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE reviews;
TRUNCATE
false
DIFF00099994092
raw_sql_safe
SQL
accounts_539.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_tickets_name ON tickets (priority);
NONE
false
DIFF00099994093
raw_sql_safe
SQL
accounts_646.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM orders WHERE created_at = 'active';
NONE
false
DIFF00099994094
raw_sql_destructive
SQL
notifications_658.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE sessions;
DROP_TABLE
true
DIFF00099994095
general_code_change
Go
sessions_472.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099994096
general_code_change
Ruby
transactions_196.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099994097
raw_sql_safe
SQL
sessions_45.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO sessions (balance, user_id) VALUES (%s, %s);
NONE
false
DIFF00099994098
general_code_change
Go
users_275.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099994099
general_code_change
Go
accounts_104.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false