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
DIFF00099999800
general_code_change
JavaScript
products_525.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
DIFF00099999801
raw_sql_safe
SQL
invoices_57.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE comments ADD COLUMN contact_email VARCHAR(255);
NONE
false
DIFF00099999802
obfuscated_destructive
SQL
employees_580.sql
schema cleanup
@@ -1,3 +1,3 @@ +tRuNcatE tABle OrDers;
TRUNCATE
true
DIFF00099999803
raw_sql_safe
SQL
events_87.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE refunds SET amount = %s WHERE name = %s;
NONE
false
DIFF00099999804
general_code_change
TypeScript
invoices_42.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
DIFF00099999805
orm_schema_change
Ruby
shipments_574.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :events, :price
NONE
true
DIFF00099999806
test_suite_cleanup
SQL
test/products_129.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE reviews RENAME COLUMN name TO state;
ALTER_RENAME
false
DIFF00099999807
general_code_change
Python
sessions_282.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099999808
raw_sql_safe
SQL
tickets_830.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE subscriptions SET updated_at = %s WHERE name = %s;
NONE
false
DIFF00099999809
obfuscated_destructive
SQL
sessions_813.sql
schema cleanup
@@ -1,3 +1,3 @@ +altEr tAblE ProdUCTS dROP coLuMn PricE;
DROP_COLUMN
true
DIFF00099999810
general_code_change
Go
events_854.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099999811
raw_sql_destructive
SQL
sessions_903.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE shipments DROP COLUMN metadata;
DROP_COLUMN
true
DIFF00099999812
test_suite_cleanup
SQL
tests/refunds_24.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE invoices;
DROP_TABLE
false
DIFF00099999813
raw_sql_safe
SQL
employees_860.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO employees (created_at, role) VALUES (%s, %s);
NONE
false
DIFF00099999814
raw_sql_destructive
SQL
users_198.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM payments;
DELETE_UNQUALIFIED
true
DIFF00099999815
general_code_change
JavaScript
refunds_535.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099999816
test_suite_cleanup
SQL
spec/refunds_938.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE users RENAME COLUMN user_id TO full_name;
ALTER_RENAME
false
DIFF00099999817
general_code_change
JavaScript
customers_899.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
DIFF00099999818
raw_sql_safe
SQL
orders_776.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE customers SET score = %s WHERE order_id = %s;
NONE
false
DIFF00099999819
raw_sql_safe
SQL
sessions_76.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE employees ADD COLUMN full_name VARCHAR(255);
NONE
false
DIFF00099999820
obfuscated_destructive
SQL
employees_423.sql
schema cleanup
@@ -1,3 +1,3 @@ +delete from invoices;
DELETE_UNQUALIFIED
true
DIFF00099999821
general_code_change
Python
employees_959.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099999822
orm_schema_change
TypeScript
logs_751.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Tickets { // removed field: address }
NONE
true
DIFF00099999823
raw_sql_safe
SQL
products_673.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO users (user_id, updated_at) VALUES (%s, %s);
NONE
false
DIFF00099999824
test_suite_cleanup
SQL
tests/inventory_749.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE inventory;
DROP_TABLE
false
DIFF00099999825
obfuscated_destructive
SQL
employees_627.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALtEr TaBle ordeRS drOp ColuMn pHoNE;
DROP_COLUMN
true
DIFF00099999826
orm_schema_change
Python
shipments_182.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='comments', name='phone')
NONE
true
DIFF00099999827
general_code_change
TypeScript
customers_610.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
DIFF00099999828
general_code_change
TypeScript
comments_683.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
DIFF00099999829
raw_sql_safe
SQL
notifications_274.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE products ADD COLUMN state VARCHAR(255);
NONE
false
DIFF00099999830
obfuscated_destructive
SQL
tickets_784.sql
schema cleanup
@@ -1,3 +1,3 @@ +DeLETe frOm ORdERs;
DELETE_UNQUALIFIED
true
DIFF00099999831
orm_schema_change
TypeScript
tickets_198.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Sessions { // removed field: balance }
NONE
true
DIFF00099999832
general_code_change
Python
inventory_738.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099999833
obfuscated_destructive
SQL
comments_118.sql
schema cleanup
@@ -1,3 +1,3 @@ +DELETE FROM invoices;
DELETE_UNQUALIFIED
true
DIFF00099999834
mentioned_in_comment
Python
sessions_815.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: UPDATE events SET amount = CONCAT(amount, name);")
UPDATE_CONCAT
false
DIFF00099999835
orm_schema_change
Ruby
reviews_206.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :sessions, :amount
NONE
true
DIFF00099999836
raw_sql_safe
SQL
sessions_259.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM subscriptions WHERE quantity = 'active';
NONE
false
DIFF00099999837
general_code_change
Java
tickets_16.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099999838
orm_schema_change
JavaScript
sessions_261.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('notifications', table => table.dropColumn('email'))
NONE
true
DIFF00099999839
general_code_change
JavaScript
events_80.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099999840
test_suite_cleanup
SQL
spec/logs_172.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE invoices RENAME COLUMN address TO full_name;
ALTER_RENAME
false
DIFF00099999841
obfuscated_destructive
SQL
users_379.sql
schema cleanup
@@ -1,3 +1,3 @@ +TrUNCATE TaBLe lOgS;
TRUNCATE
true
DIFF00099999842
test_suite_cleanup
SQL
tests/events_687.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE payments SET order_id = CONCAT(order_id, amount);
UPDATE_CONCAT
false
DIFF00099999843
raw_sql_destructive
SQL
logs_321.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE users;
DROP_TABLE
true
DIFF00099999844
raw_sql_destructive
SQL
transactions_756.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE payments RENAME COLUMN category TO user_role;
ALTER_RENAME
true
DIFF00099999845
mentioned_in_comment
Python
events_44.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: UPDATE sessions SET is_active = CONCAT(is_active, updated_at);")
UPDATE_CONCAT
false
DIFF00099999846
general_code_change
Ruby
reviews_254.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099999847
raw_sql_destructive
SQL
refunds_435.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE users;
TRUNCATE
true
DIFF00099999848
raw_sql_safe
SQL
products_171.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE comments SET priority = %s WHERE updated_at = %s;
NONE
false
DIFF00099999849
mentioned_in_comment
Python
products_397.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: UPDATE accounts SET is_active = CONCAT(is_active, is_active); -- now deprecated"""
UPDATE_CONCAT
false
DIFF00099999850
orm_schema_change
Ruby
sessions_670.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :subscriptions, :price
NONE
true
DIFF00099999851
raw_sql_safe
SQL
inventory_4.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE users ADD COLUMN user_role VARCHAR(255);
NONE
false
DIFF00099999852
general_code_change
TypeScript
users_399.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
DIFF00099999853
test_suite_cleanup
SQL
tests/logs_763.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE payments RENAME COLUMN priority TO contact_email;
ALTER_RENAME
false
DIFF00099999854
orm_schema_change
TypeScript
accounts_615.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Payments { // removed field: category }
NONE
true
DIFF00099999855
general_code_change
JavaScript
employees_981.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099999856
raw_sql_destructive
SQL
refunds_341.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE invoices DROP COLUMN phone;
DROP_COLUMN
true
DIFF00099999857
raw_sql_safe
SQL
tickets_528.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO tickets (quantity, is_active) VALUES (%s, %s);
NONE
false
DIFF00099999858
general_code_change
Ruby
customers_733.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099999859
raw_sql_safe
SQL
users_68.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_products_address ON products (quantity);
NONE
false
DIFF00099999860
orm_schema_change
Python
accounts_719.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='transactions', name='description')
NONE
true
DIFF00099999861
general_code_change
JavaScript
reviews_887.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099999862
obfuscated_destructive
SQL
refunds_739.sql
schema cleanup
@@ -1,3 +1,3 @@ +alter table logs drop column user_id;
DROP_COLUMN
true
DIFF00099999863
raw_sql_destructive
SQL
events_786.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE sessions SET quantity = CONCAT(quantity, balance);
UPDATE_CONCAT
true
DIFF00099999864
test_suite_cleanup
SQL
spec/reviews_215.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE sessions DROP COLUMN score;
DROP_COLUMN
false
DIFF00099999865
test_suite_cleanup
SQL
spec/accounts_678.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE reviews;
DROP_TABLE
false
DIFF00099999866
raw_sql_destructive
SQL
customers_857.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM customers;
DELETE_UNQUALIFIED
true
DIFF00099999867
mentioned_in_comment
Python
shipments_36.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE shipments RENAME COLUMN score TO user_role; -- now deprecated"""
ALTER_RENAME
false
DIFF00099999868
orm_schema_change
JavaScript
users_488.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('accounts', table => table.dropColumn('name'))
NONE
true
DIFF00099999869
raw_sql_destructive
SQL
employees_135.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE notifications DROP COLUMN user_id;
DROP_COLUMN
true
DIFF00099999870
mentioned_in_comment
Python
logs_627.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: DROP TABLE accounts; -- now deprecated"""
DROP_TABLE
false
DIFF00099999871
raw_sql_destructive
SQL
tickets_460.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM transactions;
DELETE_UNQUALIFIED
true
DIFF00099999872
raw_sql_safe
SQL
employees_125.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE inventory SET priority = %s WHERE order_id = %s;
NONE
false
DIFF00099999873
orm_schema_change
JavaScript
notifications_979.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('employees', 'is_active')
NONE
true
DIFF00099999874
test_suite_cleanup
SQL
spec/tickets_686.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE events DROP COLUMN status;
DROP_COLUMN
false
DIFF00099999875
mentioned_in_comment
Python
shipments_699.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: TRUNCATE TABLE users;")
TRUNCATE
false
DIFF00099999876
general_code_change
Python
users_311.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099999877
general_code_change
TypeScript
accounts_908.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
DIFF00099999878
general_code_change
Go
payments_817.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099999879
raw_sql_destructive
SQL
inventory_492.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE users SET score = CONCAT(score, score);
UPDATE_CONCAT
true
DIFF00099999880
orm_schema_change
TypeScript
notifications_370.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Accounts { // removed field: metadata }
NONE
true
DIFF00099999881
test_suite_cleanup
SQL
spec/events_854.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM employees;
DELETE_UNQUALIFIED
false
DIFF00099999882
test_suite_cleanup
SQL
test/orders_930.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE invoices DROP COLUMN role;
DROP_COLUMN
false
DIFF00099999883
raw_sql_safe
SQL
subscriptions_339.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_shipments_balance ON shipments (quantity);
NONE
false
DIFF00099999884
mentioned_in_comment
Python
shipments_492.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'UPDATE notifications SET balance = CONCAT(balance, amount);' manually, handled by migration tool
UPDATE_CONCAT
false
DIFF00099999885
general_code_change
Python
invoices_996.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099999886
general_code_change
Python
sessions_33.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099999887
raw_sql_destructive
SQL
logs_36.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM accounts;
DELETE_UNQUALIFIED
true
DIFF00099999888
obfuscated_destructive
SQL
shipments_410.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE accounts RENAME COLUMN category TO state;
ALTER_RENAME
true
DIFF00099999889
raw_sql_safe
SQL
orders_996.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_reviews_created_at ON reviews (name);
NONE
false
DIFF00099999890
general_code_change
Python
reviews_103.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099999891
mentioned_in_comment
Python
reviews_291.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'UPDATE comments SET address = CONCAT(address, category);' manually, handled by migration tool
UPDATE_CONCAT
false
DIFF00099999892
raw_sql_destructive
SQL
tickets_196.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE shipments;
TRUNCATE
true
DIFF00099999893
general_code_change
JavaScript
transactions_120.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
DIFF00099999894
raw_sql_safe
SQL
payments_289.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE payments SET phone = %s WHERE priority = %s;
NONE
false
DIFF00099999895
general_code_change
Python
tickets_334.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099999896
raw_sql_safe
SQL
reviews_944.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO events (phone, balance) VALUES (%s, %s);
NONE
false
DIFF00099999897
test_suite_cleanup
SQL
spec/tickets_469.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE tickets;
DROP_TABLE
false
DIFF00099999898
obfuscated_destructive
SQL
orders_492.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE inventory RENAME COLUMN email TO state;
ALTER_RENAME
true
DIFF00099999899
general_code_change
JavaScript
comments_424.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