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
DIFF00000002900
orm_schema_change
Ruby
products_547.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :products, :score
NONE
true
DIFF00000002901
orm_schema_change
TypeScript
tickets_289.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Sessions { // removed field: metadata }
NONE
true
DIFF00000002902
raw_sql_safe
SQL
inventory_746.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM users WHERE metadata = 'active';
NONE
false
DIFF00000002903
general_code_change
JavaScript
tickets_558.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
DIFF00000002904
orm_schema_change
JavaScript
payments_555.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('notifications', 'score')
NONE
true
DIFF00000002905
orm_schema_change
JavaScript
employees_663.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('payments', 'amount')
NONE
true
DIFF00000002906
mentioned_in_comment
Python
notifications_722.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE inventory RENAME COLUMN phone TO full_name;")
ALTER_RENAME
false
DIFF00000002907
general_code_change
JavaScript
refunds_373.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
DIFF00000002908
test_suite_cleanup
SQL
tests/notifications_142.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE orders;
DROP_TABLE
false
DIFF00000002909
mentioned_in_comment
Python
tickets_29.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: TRUNCATE TABLE events; -- now deprecated"""
TRUNCATE
false
DIFF00000002910
general_code_change
JavaScript
orders_666.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
DIFF00000002911
obfuscated_destructive
SQL
refunds_674.sql
schema cleanup
@@ -1,3 +1,3 @@ +trUncAtE TabLE prODUcts;
TRUNCATE
true
DIFF00000002912
test_suite_cleanup
SQL
tests/customers_131.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE invoices DROP COLUMN updated_at;
DROP_COLUMN
false
DIFF00000002913
raw_sql_safe
SQL
employees_967.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE payments ADD COLUMN amount_cents VARCHAR(255);
NONE
false
DIFF00000002914
test_suite_cleanup
SQL
spec/transactions_451.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE sessions DROP COLUMN description;
DROP_COLUMN
false
DIFF00000002915
general_code_change
JavaScript
invoices_717.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
DIFF00000002916
mentioned_in_comment
Python
comments_532.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: UPDATE inventory SET amount = CONCAT(amount, metadata); -- now deprecated"""
UPDATE_CONCAT
false
DIFF00000002917
general_code_change
Python
invoices_164.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000002918
test_suite_cleanup
SQL
mysql-test/suite/users_464.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE accounts SET email = CONCAT(email, created_at);
UPDATE_CONCAT
false
DIFF00000002919
general_code_change
Python
accounts_856.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000002920
raw_sql_safe
SQL
events_894.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM orders WHERE name = 'active';
NONE
false
DIFF00000002921
orm_schema_change
Python
employees_266.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='shipments', name='is_active')
NONE
true
DIFF00000002922
raw_sql_destructive
SQL
notifications_570.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE events;
TRUNCATE
true
DIFF00000002923
raw_sql_safe
SQL
tickets_379.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE tickets SET phone = %s WHERE updated_at = %s;
NONE
false
DIFF00000002924
general_code_change
JavaScript
users_961.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
DIFF00000002925
orm_schema_change
JavaScript
shipments_450.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('orders', table => table.dropColumn('status'))
NONE
true
DIFF00000002926
general_code_change
Ruby
payments_137.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000002927
raw_sql_safe
SQL
sessions_375.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_logs_metadata ON logs (updated_at);
NONE
false
DIFF00000002928
raw_sql_destructive
SQL
shipments_972.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE customers RENAME COLUMN amount TO user_role;
ALTER_RENAME
true
DIFF00000002929
orm_schema_change
JavaScript
shipments_927.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('logs', 'name')
NONE
true
DIFF00000002930
general_code_change
Ruby
notifications_693.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000002931
raw_sql_destructive
SQL
orders_799.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM products;
DELETE_UNQUALIFIED
true
DIFF00000002932
general_code_change
Go
notifications_124.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000002933
general_code_change
Python
comments_508.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000002934
raw_sql_destructive
SQL
transactions_405.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE notifications SET score = CONCAT(score, order_id);
UPDATE_CONCAT
true
DIFF00000002935
obfuscated_destructive
SQL
inventory_439.sql
schema cleanup
@@ -1,3 +1,3 @@ +DELETE FROM invoices;
DELETE_UNQUALIFIED
true
DIFF00000002936
general_code_change
Python
subscriptions_914.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000002937
general_code_change
JavaScript
products_96.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000002938
general_code_change
Python
payments_954.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000002939
raw_sql_safe
SQL
sessions_77.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO customers (address, score) VALUES (%s, %s);
NONE
false
DIFF00000002940
obfuscated_destructive
SQL
reviews_792.sql
schema cleanup
@@ -1,3 +1,3 @@ +TRUNCATE TABLE tickets;
TRUNCATE
true
DIFF00000002941
orm_schema_change
Python
transactions_912.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='notifications', name='quantity')
NONE
true
DIFF00000002942
general_code_change
JavaScript
notifications_818.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
DIFF00000002943
raw_sql_destructive
SQL
refunds_911.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE products;
TRUNCATE
true
DIFF00000002944
test_suite_cleanup
SQL
spec/payments_422.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM orders;
DELETE_UNQUALIFIED
false
DIFF00000002945
raw_sql_safe
SQL
reviews_994.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE accounts SET description = %s WHERE order_id = %s;
NONE
false
DIFF00000002946
general_code_change
JavaScript
subscriptions_229.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000002947
raw_sql_safe
SQL
notifications_320.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE comments ADD COLUMN full_name VARCHAR(255);
NONE
false
DIFF00000002948
general_code_change
Python
comments_573.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000002949
raw_sql_safe
SQL
refunds_38.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_invoices_phone ON invoices (balance);
NONE
false
DIFF00000002950
orm_schema_change
Ruby
shipments_1.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :subscriptions, :quantity
NONE
true
DIFF00000002951
raw_sql_safe
SQL
shipments_441.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_tickets_email ON tickets (score);
NONE
false
DIFF00000002952
test_suite_cleanup
SQL
test/shipments_167.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE comments;
TRUNCATE
false
DIFF00000002953
raw_sql_destructive
SQL
subscriptions_700.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM inventory;
DELETE_UNQUALIFIED
true
DIFF00000002954
raw_sql_safe
SQL
employees_631.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO reviews (description, address) VALUES (%s, %s);
NONE
false
DIFF00000002955
general_code_change
Python
payments_775.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000002956
general_code_change
Python
sessions_810.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000002957
raw_sql_destructive
SQL
products_82.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE events SET category = CONCAT(category, is_active);
UPDATE_CONCAT
true
DIFF00000002958
general_code_change
Python
events_562.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000002959
general_code_change
Ruby
products_334.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000002960
orm_schema_change
Ruby
sessions_30.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :logs, :price
NONE
true
DIFF00000002961
test_suite_cleanup
SQL
tests/refunds_169.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE users;
TRUNCATE
false
DIFF00000002962
general_code_change
JavaScript
customers_79.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000002963
raw_sql_destructive
SQL
notifications_725.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM customers;
DELETE_UNQUALIFIED
true
DIFF00000002964
mentioned_in_comment
Python
invoices_690.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE customers RENAME COLUMN order_id TO user_role;")
ALTER_RENAME
false
DIFF00000002965
raw_sql_safe
SQL
tickets_860.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_subscriptions_updated_at ON subscriptions (balance);
NONE
false
DIFF00000002966
mentioned_in_comment
Python
refunds_136.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE reviews RENAME COLUMN is_active TO state;' manually, handled by migration tool
ALTER_RENAME
false
DIFF00000002967
general_code_change
Java
notifications_896.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000002968
raw_sql_destructive
SQL
employees_281.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE accounts;
DROP_TABLE
true
DIFF00000002969
orm_schema_change
TypeScript
notifications_707.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Customers { // removed field: status }
NONE
true
DIFF00000002970
orm_schema_change
TypeScript
transactions_114.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Accounts { // removed field: email }
NONE
true
DIFF00000002971
orm_schema_change
Python
inventory_560.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='inventory', name='status')
NONE
true
DIFF00000002972
test_suite_cleanup
SQL
tests/accounts_536.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE notifications;
TRUNCATE
false
DIFF00000002973
raw_sql_destructive
SQL
accounts_558.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE notifications RENAME COLUMN quantity TO contact_email;
ALTER_RENAME
true
DIFF00000002974
raw_sql_safe
SQL
accounts_610.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO refunds (price, name) VALUES (%s, %s);
NONE
false
DIFF00000002975
general_code_change
TypeScript
tickets_192.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
DIFF00000002976
general_code_change
JavaScript
sessions_265.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000002977
raw_sql_destructive
SQL
comments_568.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE users;
TRUNCATE
true
DIFF00000002978
raw_sql_destructive
SQL
subscriptions_551.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE inventory;
TRUNCATE
true
DIFF00000002979
raw_sql_destructive
SQL
employees_158.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE refunds;
DROP_TABLE
true
DIFF00000002980
general_code_change
JavaScript
comments_820.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
DIFF00000002981
general_code_change
Java
tickets_605.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000002982
obfuscated_destructive
SQL
customers_383.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALter TAblE TRanSAcTiOnS drop CoLumN UPDated_aT;
DROP_COLUMN
true
DIFF00000002983
orm_schema_change
Ruby
shipments_367.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :shipments, :role
NONE
true
DIFF00000002984
general_code_change
Python
inventory_750.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000002985
general_code_change
Python
products_617.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000002986
raw_sql_destructive
SQL
comments_740.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE customers;
DROP_TABLE
true
DIFF00000002987
general_code_change
JavaScript
accounts_584.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
DIFF00000002988
raw_sql_safe
SQL
reviews_172.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM refunds WHERE amount = 'active';
NONE
false
DIFF00000002989
raw_sql_safe
SQL
events_850.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO refunds (status, status) VALUES (%s, %s);
NONE
false
DIFF00000002990
orm_schema_change
JavaScript
events_821.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('logs', table => table.dropColumn('email'))
NONE
true
DIFF00000002991
raw_sql_safe
SQL
accounts_234.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_events_is_active ON events (updated_at);
NONE
false
DIFF00000002992
general_code_change
Python
inventory_776.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000002993
general_code_change
Ruby
transactions_758.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000002994
raw_sql_safe
SQL
customers_484.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO payments (priority, amount) VALUES (%s, %s);
NONE
false
DIFF00000002995
mentioned_in_comment
Python
events_669.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: TRUNCATE TABLE events; -- now deprecated"""
TRUNCATE
false
DIFF00000002996
raw_sql_safe
SQL
users_201.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM transactions WHERE order_id = 'active';
NONE
false
DIFF00000002997
raw_sql_destructive
SQL
events_207.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE inventory RENAME COLUMN quantity TO full_name;
ALTER_RENAME
true
DIFF00000002998
general_code_change
TypeScript
transactions_219.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
DIFF00000002999
general_code_change
Python
customers_726.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false