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
DIFF00099995900
test_suite_cleanup
SQL
test/notifications_790.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE transactions RENAME COLUMN category TO state;
ALTER_RENAME
false
DIFF00099995901
obfuscated_destructive
SQL
products_730.sql
schema cleanup
@@ -1,3 +1,3 @@ +alter table subscriptions drop column priority;
DROP_COLUMN
true
DIFF00099995902
obfuscated_destructive
SQL
shipments_475.sql
schema cleanup
@@ -1,3 +1,3 @@ +UPDATE refunds SET updated_at = CONCAT(updated_at, priority);
UPDATE_CONCAT
true
DIFF00099995903
raw_sql_destructive
SQL
events_741.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE comments;
DROP_TABLE
true
DIFF00099995904
test_suite_cleanup
SQL
tests/comments_637.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE users DROP COLUMN order_id;
DROP_COLUMN
false
DIFF00099995905
orm_schema_change
JavaScript
notifications_946.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('sessions', table => table.dropColumn('is_active'))
NONE
true
DIFF00099995906
raw_sql_safe
SQL
sessions_580.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE subscriptions SET score = %s WHERE updated_at = %s;
NONE
false
DIFF00099995907
general_code_change
Java
comments_378.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099995908
general_code_change
TypeScript
orders_62.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
DIFF00099995909
raw_sql_destructive
SQL
employees_827.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE employees;
TRUNCATE
true
DIFF00099995910
mentioned_in_comment
Python
accounts_891.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE comments DROP COLUMN quantity;")
DROP_COLUMN
false
DIFF00099995911
raw_sql_safe
SQL
invoices_616.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE orders SET address = %s WHERE created_at = %s;
NONE
false
DIFF00099995912
general_code_change
Python
payments_488.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099995913
mentioned_in_comment
Python
shipments_859.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: UPDATE refunds SET role = CONCAT(role, phone);")
UPDATE_CONCAT
false
DIFF00099995914
obfuscated_destructive
SQL
sessions_69.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE notifications RENAME COLUMN price TO full_name;
ALTER_RENAME
true
DIFF00099995915
obfuscated_destructive
SQL
shipments_241.sql
schema cleanup
@@ -1,3 +1,3 @@ +drop table refunds;
DROP_TABLE
true
DIFF00099995916
raw_sql_safe
SQL
employees_549.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_reviews_category ON reviews (address);
NONE
false
DIFF00099995917
general_code_change
JavaScript
shipments_177.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099995918
general_code_change
Python
users_878.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099995919
raw_sql_safe
SQL
accounts_20.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE sessions ADD COLUMN user_role VARCHAR(255);
NONE
false
DIFF00099995920
obfuscated_destructive
SQL
invoices_922.sql
schema cleanup
@@ -1,3 +1,3 @@ +DROP TABLE payments;
DROP_TABLE
true
DIFF00099995921
mentioned_in_comment
Python
tickets_918.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE payments DROP COLUMN updated_at; -- now deprecated"""
DROP_COLUMN
false
DIFF00099995922
raw_sql_destructive
SQL
payments_742.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE orders;
DROP_TABLE
true
DIFF00099995923
test_suite_cleanup
SQL
test/shipments_575.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE invoices DROP COLUMN quantity;
DROP_COLUMN
false
DIFF00099995924
raw_sql_destructive
SQL
events_559.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE users;
DROP_TABLE
true
DIFF00099995925
orm_schema_change
Python
inventory_517.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='tickets', name='is_active')
NONE
true
DIFF00099995926
raw_sql_destructive
SQL
payments_412.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM comments;
DELETE_UNQUALIFIED
true
DIFF00099995927
orm_schema_change
Ruby
logs_589.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :employees, :status
NONE
true
DIFF00099995928
orm_schema_change
Python
invoices_916.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='reviews', name='phone')
NONE
true
DIFF00099995929
orm_schema_change
JavaScript
logs_757.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('transactions', 'address')
NONE
true
DIFF00099995930
obfuscated_destructive
SQL
customers_380.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE reviews RENAME COLUMN is_active TO state;
ALTER_RENAME
true
DIFF00099995931
general_code_change
Python
shipments_733.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099995932
raw_sql_safe
SQL
orders_575.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE tickets ADD COLUMN contact_email VARCHAR(255);
NONE
false
DIFF00099995933
general_code_change
JavaScript
inventory_764.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099995934
raw_sql_safe
SQL
comments_161.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE logs SET is_active = %s WHERE order_id = %s;
NONE
false
DIFF00099995935
general_code_change
Go
refunds_314.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099995936
raw_sql_destructive
SQL
tickets_738.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE subscriptions;
TRUNCATE
true
DIFF00099995937
orm_schema_change
JavaScript
logs_563.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('logs', table => table.dropColumn('balance'))
NONE
true
DIFF00099995938
general_code_change
Java
shipments_955.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099995939
orm_schema_change
Ruby
logs_36.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :logs, :role
NONE
true
DIFF00099995940
test_suite_cleanup
SQL
tests/invoices_945.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE shipments RENAME COLUMN category TO state;
ALTER_RENAME
false
DIFF00099995941
general_code_change
TypeScript
shipments_595.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
DIFF00099995942
orm_schema_change
JavaScript
sessions_22.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('transactions', table => table.dropColumn('amount'))
NONE
true
DIFF00099995943
raw_sql_safe
SQL
notifications_270.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE events ADD COLUMN full_name VARCHAR(255);
NONE
false
DIFF00099995944
orm_schema_change
Python
tickets_409.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='users', name='updated_at')
NONE
true
DIFF00099995945
raw_sql_destructive
SQL
transactions_912.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE employees;
DROP_TABLE
true
DIFF00099995946
general_code_change
JavaScript
comments_904.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
DIFF00099995947
general_code_change
JavaScript
inventory_921.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099995948
general_code_change
Java
comments_56.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099995949
general_code_change
JavaScript
reviews_948.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099995950
general_code_change
Ruby
tickets_344.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099995951
test_suite_cleanup
SQL
tests/refunds_268.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE accounts DROP COLUMN order_id;
DROP_COLUMN
false
DIFF00099995952
general_code_change
Python
employees_879.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099995953
raw_sql_destructive
SQL
users_902.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE payments RENAME COLUMN description TO state;
ALTER_RENAME
true
DIFF00099995954
raw_sql_destructive
SQL
tickets_919.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE shipments SET status = CONCAT(status, priority);
UPDATE_CONCAT
true
DIFF00099995955
general_code_change
Go
employees_345.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099995956
test_suite_cleanup
SQL
spec/users_134.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE payments RENAME COLUMN address TO user_role;
ALTER_RENAME
false
DIFF00099995957
orm_schema_change
TypeScript
employees_731.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Notifications { // removed field: score }
NONE
true
DIFF00099995958
raw_sql_destructive
SQL
users_377.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE transactions;
TRUNCATE
true
DIFF00099995959
raw_sql_destructive
SQL
reviews_22.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE users;
TRUNCATE
true
DIFF00099995960
raw_sql_safe
SQL
reviews_963.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO invoices (order_id, priority) VALUES (%s, %s);
NONE
false
DIFF00099995961
general_code_change
Python
transactions_938.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099995962
raw_sql_safe
SQL
payments_293.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_invoices_category ON invoices (created_at);
NONE
false
DIFF00099995963
general_code_change
Ruby
sessions_427.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099995964
obfuscated_destructive
SQL
products_621.sql
schema cleanup
@@ -1,3 +1,3 @@ +UPDATE notifications SET metadata = CONCAT(metadata, name);
UPDATE_CONCAT
true
DIFF00099995965
test_suite_cleanup
SQL
test/payments_928.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE transactions;
TRUNCATE
false
DIFF00099995966
raw_sql_destructive
SQL
inventory_103.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE notifications DROP COLUMN priority;
DROP_COLUMN
true
DIFF00099995967
obfuscated_destructive
SQL
sessions_53.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE notifications DROP COLUMN created_at;
DROP_COLUMN
true
DIFF00099995968
raw_sql_destructive
SQL
tickets_264.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM accounts;
DELETE_UNQUALIFIED
true
DIFF00099995969
raw_sql_safe
SQL
products_259.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO sessions (category, created_at) VALUES (%s, %s);
NONE
false
DIFF00099995970
raw_sql_safe
SQL
sessions_36.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_notifications_score ON notifications (score);
NONE
false
DIFF00099995971
raw_sql_safe
SQL
customers_949.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM orders WHERE category = 'active';
NONE
false
DIFF00099995972
general_code_change
TypeScript
refunds_19.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
DIFF00099995973
raw_sql_safe
SQL
accounts_18.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_tickets_score ON tickets (is_active);
NONE
false
DIFF00099995974
general_code_change
Python
shipments_63.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099995975
general_code_change
TypeScript
orders_824.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
DIFF00099995976
raw_sql_destructive
SQL
tickets_590.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE comments RENAME COLUMN balance TO amount_cents;
ALTER_RENAME
true
DIFF00099995977
mentioned_in_comment
Python
reviews_445.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DELETE FROM products;")
DELETE_UNQUALIFIED
false
DIFF00099995978
general_code_change
Python
sessions_146.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099995979
orm_schema_change
JavaScript
sessions_263.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('reviews', 'amount')
NONE
true
DIFF00099995980
obfuscated_destructive
SQL
users_690.sql
schema cleanup
@@ -1,3 +1,3 @@ +TRUNCATE TABLE orders;
TRUNCATE
true
DIFF00099995981
general_code_change
Python
refunds_429.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099995982
orm_schema_change
Python
events_445.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='tickets', name='description')
NONE
true
DIFF00099995983
general_code_change
Go
products_587.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099995984
obfuscated_destructive
SQL
inventory_623.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TabLe PAYmeNtS REnaMe ColUMN AMOUnT TO COntaCT_emaiL;
ALTER_RENAME
true
DIFF00099995985
raw_sql_safe
SQL
reviews_443.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE customers ADD COLUMN full_name VARCHAR(255);
NONE
false
DIFF00099995986
obfuscated_destructive
SQL
payments_47.sql
schema cleanup
@@ -1,3 +1,3 @@ +alter table orders rename column role to state;
ALTER_RENAME
true
DIFF00099995987
raw_sql_destructive
SQL
invoices_21.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE payments;
TRUNCATE
true
DIFF00099995988
general_code_change
Python
users_24.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099995989
general_code_change
Java
notifications_491.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099995990
orm_schema_change
Ruby
reviews_639.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :transactions, :price
NONE
true
DIFF00099995991
obfuscated_destructive
SQL
refunds_313.sql
schema cleanup
@@ -1,3 +1,3 @@ +alter table tickets rename column description to contact_email;
ALTER_RENAME
true
DIFF00099995992
raw_sql_destructive
SQL
shipments_487.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM sessions;
DELETE_UNQUALIFIED
true
DIFF00099995993
mentioned_in_comment
Python
invoices_91.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DROP TABLE shipments;' manually, handled by migration tool
DROP_TABLE
false
DIFF00099995994
general_code_change
Go
refunds_610.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099995995
raw_sql_destructive
SQL
notifications_870.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM users;
DELETE_UNQUALIFIED
true
DIFF00099995996
general_code_change
Java
orders_373.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099995997
mentioned_in_comment
Python
shipments_787.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: UPDATE tickets SET metadata = CONCAT(metadata, phone); -- now deprecated"""
UPDATE_CONCAT
false
DIFF00099995998
mentioned_in_comment
Python
notifications_423.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: UPDATE comments SET role = CONCAT(role, email); -- now deprecated"""
UPDATE_CONCAT
false
DIFF00099995999
general_code_change
Python
shipments_204.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false