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
DIFF00000006800
orm_schema_change
Python
products_574.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='tickets', name='balance')
NONE
true
DIFF00000006801
mentioned_in_comment
Python
comments_605.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: TRUNCATE TABLE shipments; -- now deprecated"""
TRUNCATE
false
DIFF00000006802
raw_sql_destructive
SQL
payments_795.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE users SET score = CONCAT(score, status);
UPDATE_CONCAT
true
DIFF00000006803
general_code_change
JavaScript
payments_783.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
DIFF00000006804
orm_schema_change
Python
payments_46.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='invoices', name='created_at')
NONE
true
DIFF00000006805
raw_sql_destructive
SQL
inventory_879.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE events RENAME COLUMN order_id TO contact_email;
ALTER_RENAME
true
DIFF00000006806
raw_sql_destructive
SQL
logs_944.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE notifications DROP COLUMN created_at;
DROP_COLUMN
true
DIFF00000006807
general_code_change
Java
reviews_793.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000006808
orm_schema_change
TypeScript
logs_208.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Notifications { // removed field: phone }
NONE
true
DIFF00000006809
raw_sql_destructive
SQL
employees_606.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE events;
DROP_TABLE
true
DIFF00000006810
mentioned_in_comment
Python
customers_97.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE products RENAME COLUMN name TO contact_email;' manually, handled by migration tool
ALTER_RENAME
false
DIFF00000006811
test_suite_cleanup
SQL
spec/orders_400.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE payments DROP COLUMN email;
DROP_COLUMN
false
DIFF00000006812
general_code_change
Go
sessions_209.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000006813
general_code_change
Ruby
customers_992.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000006814
raw_sql_destructive
SQL
events_218.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM logs;
DELETE_UNQUALIFIED
true
DIFF00000006815
general_code_change
Ruby
refunds_297.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000006816
orm_schema_change
JavaScript
employees_452.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('customers', table => table.dropColumn('price'))
NONE
true
DIFF00000006817
general_code_change
JavaScript
users_987.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
DIFF00000006818
obfuscated_destructive
SQL
users_907.sql
schema cleanup
@@ -1,3 +1,3 @@ +drop table subscriptions;
DROP_TABLE
true
DIFF00000006819
general_code_change
JavaScript
sessions_31.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
DIFF00000006820
general_code_change
Java
users_534.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000006821
general_code_change
Go
users_834.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000006822
mentioned_in_comment
Python
transactions_235.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: DELETE FROM employees; -- now deprecated"""
DELETE_UNQUALIFIED
false
DIFF00000006823
general_code_change
TypeScript
comments_631.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
DIFF00000006824
test_suite_cleanup
SQL
spec/orders_769.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE payments SET address = CONCAT(address, order_id);
UPDATE_CONCAT
false
DIFF00000006825
obfuscated_destructive
SQL
sessions_831.sql
schema cleanup
@@ -1,3 +1,3 @@ +DELETE FROM inventory;
DELETE_UNQUALIFIED
true
DIFF00000006826
general_code_change
Python
logs_535.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000006827
general_code_change
Python
users_529.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000006828
orm_schema_change
TypeScript
events_398.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Orders { // removed field: description }
NONE
true
DIFF00000006829
raw_sql_safe
SQL
comments_215.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM invoices WHERE description = 'active';
NONE
false
DIFF00000006830
test_suite_cleanup
SQL
spec/users_519.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM products;
DELETE_UNQUALIFIED
false
DIFF00000006831
raw_sql_safe
SQL
accounts_393.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO transactions (address, balance) VALUES (%s, %s);
NONE
false
DIFF00000006832
general_code_change
JavaScript
tickets_487.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000006833
general_code_change
Go
sessions_966.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000006834
orm_schema_change
JavaScript
employees_739.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('events', 'score')
NONE
true
DIFF00000006835
test_suite_cleanup
SQL
mysql-test/suite/invoices_415.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE reviews;
DROP_TABLE
false
DIFF00000006836
raw_sql_destructive
SQL
sessions_727.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE notifications SET metadata = CONCAT(metadata, priority);
UPDATE_CONCAT
true
DIFF00000006837
general_code_change
Ruby
events_429.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000006838
raw_sql_safe
SQL
sessions_255.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE orders ADD COLUMN state VARCHAR(255);
NONE
false
DIFF00000006839
raw_sql_safe
SQL
reviews_390.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO accounts (price, category) VALUES (%s, %s);
NONE
false
DIFF00000006840
raw_sql_destructive
SQL
notifications_945.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE payments RENAME COLUMN balance TO state;
ALTER_RENAME
true
DIFF00000006841
general_code_change
Python
accounts_410.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000006842
general_code_change
Java
users_985.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000006843
raw_sql_safe
SQL
comments_15.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM transactions WHERE priority = 'active';
NONE
false
DIFF00000006844
raw_sql_safe
SQL
refunds_308.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE events ADD COLUMN state VARCHAR(255);
NONE
false
DIFF00000006845
mentioned_in_comment
Python
transactions_472.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: UPDATE sessions SET email = CONCAT(email, name);")
UPDATE_CONCAT
false
DIFF00000006846
raw_sql_destructive
SQL
accounts_719.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM shipments;
DELETE_UNQUALIFIED
true
DIFF00000006847
raw_sql_destructive
SQL
products_93.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE accounts RENAME COLUMN category TO amount_cents;
ALTER_RENAME
true
DIFF00000006848
raw_sql_destructive
SQL
notifications_668.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE logs RENAME COLUMN metadata TO state;
ALTER_RENAME
true
DIFF00000006849
obfuscated_destructive
SQL
shipments_735.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE orders RENAME COLUMN quantity TO amount_cents;
ALTER_RENAME
true
DIFF00000006850
orm_schema_change
JavaScript
products_426.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('sessions', 'balance')
NONE
true
DIFF00000006851
raw_sql_safe
SQL
products_737.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE transactions SET status = %s WHERE score = %s;
NONE
false
DIFF00000006852
general_code_change
Python
employees_997.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000006853
raw_sql_safe
SQL
inventory_50.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE reviews ADD COLUMN full_name VARCHAR(255);
NONE
false
DIFF00000006854
mentioned_in_comment
Python
inventory_421.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE products DROP COLUMN address; -- now deprecated"""
DROP_COLUMN
false
DIFF00000006855
obfuscated_destructive
SQL
transactions_31.sql
schema cleanup
@@ -1,3 +1,3 @@ +DROP TABLE invoices;
DROP_TABLE
true
DIFF00000006856
general_code_change
JavaScript
comments_844.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000006857
raw_sql_safe
SQL
reviews_180.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_logs_order_id ON logs (category);
NONE
false
DIFF00000006858
raw_sql_destructive
SQL
tickets_24.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE comments DROP COLUMN balance;
DROP_COLUMN
true
DIFF00000006859
raw_sql_destructive
SQL
events_651.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM reviews;
DELETE_UNQUALIFIED
true
DIFF00000006860
general_code_change
TypeScript
inventory_937.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
DIFF00000006861
raw_sql_destructive
SQL
products_447.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE notifications DROP COLUMN user_id;
DROP_COLUMN
true
DIFF00000006862
orm_schema_change
JavaScript
accounts_185.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('transactions', table => table.dropColumn('status'))
NONE
true
DIFF00000006863
raw_sql_safe
SQL
invoices_861.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO notifications (order_id, order_id) VALUES (%s, %s);
NONE
false
DIFF00000006864
general_code_change
Java
comments_355.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000006865
general_code_change
Ruby
subscriptions_651.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000006866
obfuscated_destructive
SQL
comments_500.sql
schema cleanup
@@ -1,3 +1,3 @@ +uPdAtE Comments sEt RoLE = cOnCAT(rOLe, quaNtITy);
UPDATE_CONCAT
true
DIFF00000006867
test_suite_cleanup
SQL
test/refunds_59.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE transactions;
TRUNCATE
false
DIFF00000006868
general_code_change
Java
subscriptions_869.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000006869
orm_schema_change
Python
comments_271.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='invoices', name='user_id')
NONE
true
DIFF00000006870
test_suite_cleanup
SQL
test/users_84.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE tickets;
TRUNCATE
false
DIFF00000006871
raw_sql_safe
SQL
orders_334.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE inventory ADD COLUMN amount_cents VARCHAR(255);
NONE
false
DIFF00000006872
obfuscated_destructive
SQL
products_453.sql
schema cleanup
@@ -1,3 +1,3 @@ +TRUNCATE TABLE inventory;
TRUNCATE
true
DIFF00000006873
general_code_change
TypeScript
shipments_675.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
DIFF00000006874
general_code_change
Python
shipments_709.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000006875
orm_schema_change
JavaScript
notifications_939.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('employees', table => table.dropColumn('score'))
NONE
true
DIFF00000006876
orm_schema_change
Ruby
shipments_245.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :comments, :amount
NONE
true
DIFF00000006877
raw_sql_safe
SQL
users_220.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_reviews_amount ON reviews (created_at);
NONE
false
DIFF00000006878
raw_sql_safe
SQL
employees_780.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_refunds_metadata ON refunds (description);
NONE
false
DIFF00000006879
mentioned_in_comment
Python
comments_997.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE orders RENAME COLUMN status TO state;")
ALTER_RENAME
false
DIFF00000006880
general_code_change
Java
reviews_518.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000006881
raw_sql_safe
SQL
notifications_39.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_logs_updated_at ON logs (description);
NONE
false
DIFF00000006882
raw_sql_destructive
SQL
events_105.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE transactions;
DROP_TABLE
true
DIFF00000006883
raw_sql_safe
SQL
employees_879.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE orders ADD COLUMN state VARCHAR(255);
NONE
false
DIFF00000006884
general_code_change
Java
accounts_443.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000006885
raw_sql_destructive
SQL
subscriptions_680.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE payments DROP COLUMN created_at;
DROP_COLUMN
true
DIFF00000006886
general_code_change
Python
accounts_68.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000006887
mentioned_in_comment
Python
comments_493.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE reviews RENAME COLUMN description TO contact_email;' manually, handled by migration tool
ALTER_RENAME
false
DIFF00000006888
obfuscated_destructive
SQL
comments_99.sql
schema cleanup
@@ -1,3 +1,3 @@ +DELETE FROM employees;
DELETE_UNQUALIFIED
true
DIFF00000006889
orm_schema_change
JavaScript
shipments_742.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('invoices', 'amount')
NONE
true
DIFF00000006890
orm_schema_change
JavaScript
comments_296.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('invoices', table => table.dropColumn('name'))
NONE
true
DIFF00000006891
general_code_change
Ruby
tickets_214.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000006892
raw_sql_destructive
SQL
employees_532.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM payments;
DELETE_UNQUALIFIED
true
DIFF00000006893
general_code_change
Go
subscriptions_875.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000006894
orm_schema_change
Python
payments_363.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='accounts', name='address')
NONE
true
DIFF00000006895
general_code_change
Python
reviews_709.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000006896
general_code_change
Go
customers_994.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000006897
raw_sql_safe
SQL
inventory_949.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE events ADD COLUMN full_name VARCHAR(255);
NONE
false
DIFF00000006898
raw_sql_safe
SQL
refunds_933.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE inventory ADD COLUMN state VARCHAR(255);
NONE
false
DIFF00000006899
raw_sql_safe
SQL
refunds_217.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM accounts WHERE metadata = 'active';
NONE
false