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
DIFF00000001800
general_code_change
JavaScript
events_828.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
DIFF00000001801
test_suite_cleanup
SQL
test/events_18.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE comments DROP COLUMN priority;
DROP_COLUMN
false
DIFF00000001802
general_code_change
Go
events_163.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000001803
general_code_change
Go
logs_424.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000001804
general_code_change
Java
invoices_74.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000001805
orm_schema_change
JavaScript
reviews_427.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('refunds', table => table.dropColumn('order_id'))
NONE
true
DIFF00000001806
general_code_change
JavaScript
refunds_288.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000001807
raw_sql_safe
SQL
employees_103.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE notifications ADD COLUMN state VARCHAR(255);
NONE
false
DIFF00000001808
general_code_change
Java
transactions_901.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000001809
general_code_change
TypeScript
orders_360.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
DIFF00000001810
general_code_change
JavaScript
sessions_130.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
DIFF00000001811
general_code_change
TypeScript
shipments_85.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
DIFF00000001812
raw_sql_safe
SQL
subscriptions_412.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_orders_address ON orders (updated_at);
NONE
false
DIFF00000001813
raw_sql_safe
SQL
invoices_571.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE transactions SET quantity = %s WHERE status = %s;
NONE
false
DIFF00000001814
general_code_change
JavaScript
orders_583.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
DIFF00000001815
orm_schema_change
Ruby
notifications_973.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :accounts, :description
NONE
true
DIFF00000001816
mentioned_in_comment
Python
inventory_748.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE accounts DROP COLUMN email;")
DROP_COLUMN
false
DIFF00000001817
raw_sql_safe
SQL
customers_30.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO subscriptions (score, role) VALUES (%s, %s);
NONE
false
DIFF00000001818
orm_schema_change
JavaScript
products_744.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('transactions', table => table.dropColumn('created_at'))
NONE
true
DIFF00000001819
test_suite_cleanup
SQL
test/payments_764.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE customers RENAME COLUMN category TO state;
ALTER_RENAME
false
DIFF00000001820
orm_schema_change
JavaScript
payments_760.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('tickets', 'name')
NONE
true
DIFF00000001821
general_code_change
Go
employees_184.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000001822
orm_schema_change
JavaScript
employees_261.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('orders', table => table.dropColumn('role'))
NONE
true
DIFF00000001823
raw_sql_safe
SQL
refunds_157.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_sessions_category ON sessions (score);
NONE
false
DIFF00000001824
raw_sql_safe
SQL
invoices_803.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_accounts_status ON accounts (updated_at);
NONE
false
DIFF00000001825
general_code_change
Go
refunds_890.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000001826
general_code_change
Java
products_109.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000001827
raw_sql_destructive
SQL
subscriptions_539.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE transactions SET order_id = CONCAT(order_id, address);
UPDATE_CONCAT
true
DIFF00000001828
test_suite_cleanup
SQL
mysql-test/suite/customers_319.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE notifications;
TRUNCATE
false
DIFF00000001829
general_code_change
Java
reviews_612.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00000001830
general_code_change
JavaScript
notifications_99.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
DIFF00000001831
obfuscated_destructive
SQL
products_552.sql
schema cleanup
@@ -1,3 +1,3 @@ +DROP TABLE events;
DROP_TABLE
true
DIFF00000001832
raw_sql_safe
SQL
events_986.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM payments WHERE role = 'active';
NONE
false
DIFF00000001833
obfuscated_destructive
SQL
accounts_780.sql
schema cleanup
@@ -1,3 +1,3 @@ +drop table transactions;
DROP_TABLE
true
DIFF00000001834
orm_schema_change
JavaScript
inventory_705.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('payments', table => table.dropColumn('price'))
NONE
true
DIFF00000001835
general_code_change
JavaScript
notifications_409.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000001836
obfuscated_destructive
SQL
reviews_207.sql
schema cleanup
@@ -1,3 +1,3 @@ +UPDATE shipments SET priority = CONCAT(priority, score);
UPDATE_CONCAT
true
DIFF00000001837
raw_sql_destructive
SQL
payments_435.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE reviews DROP COLUMN category;
DROP_COLUMN
true
DIFF00000001838
raw_sql_safe
SQL
invoices_16.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO payments (phone, email) VALUES (%s, %s);
NONE
false
DIFF00000001839
raw_sql_safe
SQL
shipments_233.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE accounts SET user_id = %s WHERE score = %s;
NONE
false
DIFF00000001840
general_code_change
Ruby
inventory_305.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000001841
raw_sql_destructive
SQL
tickets_958.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM inventory;
DELETE_UNQUALIFIED
true
DIFF00000001842
raw_sql_safe
SQL
products_827.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE shipments SET email = %s WHERE description = %s;
NONE
false
DIFF00000001843
mentioned_in_comment
Python
inventory_760.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE sessions DROP COLUMN updated_at;")
DROP_COLUMN
false
DIFF00000001844
test_suite_cleanup
SQL
spec/employees_309.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE events DROP COLUMN role;
DROP_COLUMN
false
DIFF00000001845
obfuscated_destructive
SQL
accounts_732.sql
schema cleanup
@@ -1,3 +1,3 @@ +truncate table payments;
TRUNCATE
true
DIFF00000001846
orm_schema_change
JavaScript
accounts_475.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('orders', 'name')
NONE
true
DIFF00000001847
mentioned_in_comment
Python
reviews_719.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: TRUNCATE TABLE payments;")
TRUNCATE
false
DIFF00000001848
test_suite_cleanup
SQL
mysql-test/suite/orders_875.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE notifications;
DROP_TABLE
false
DIFF00000001849
raw_sql_safe
SQL
notifications_387.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE inventory ADD COLUMN full_name VARCHAR(255);
NONE
false
DIFF00000001850
general_code_change
JavaScript
sessions_493.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000001851
general_code_change
Python
customers_140.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000001852
general_code_change
JavaScript
inventory_260.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
DIFF00000001853
raw_sql_safe
SQL
logs_867.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO inventory (address, status) VALUES (%s, %s);
NONE
false
DIFF00000001854
raw_sql_safe
SQL
invoices_858.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE products SET priority = %s WHERE is_active = %s;
NONE
false
DIFF00000001855
general_code_change
TypeScript
refunds_968.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
DIFF00000001856
test_suite_cleanup
SQL
mysql-test/suite/logs_769.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE customers;
DROP_TABLE
false
DIFF00000001857
raw_sql_safe
SQL
refunds_687.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_employees_role ON employees (quantity);
NONE
false
DIFF00000001858
obfuscated_destructive
SQL
accounts_50.sql
schema cleanup
@@ -1,3 +1,3 @@ +TRUNCATE TABLE customers;
TRUNCATE
true
DIFF00000001859
raw_sql_safe
SQL
reviews_681.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE tickets SET email = %s WHERE email = %s;
NONE
false
DIFF00000001860
raw_sql_safe
SQL
customers_296.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE subscriptions SET email = %s WHERE status = %s;
NONE
false
DIFF00000001861
obfuscated_destructive
SQL
customers_57.sql
schema cleanup
@@ -1,3 +1,3 @@ +uPdaTE SuBscRIpTioNS SET upDATEd_at = coNcaT(UPdAtED_at, aMouNT);
UPDATE_CONCAT
true
DIFF00000001862
raw_sql_destructive
SQL
inventory_260.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM events;
DELETE_UNQUALIFIED
true
DIFF00000001863
orm_schema_change
JavaScript
logs_261.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('tickets', 'category')
NONE
true
DIFF00000001864
general_code_change
JavaScript
invoices_941.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000001865
general_code_change
TypeScript
notifications_332.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
DIFF00000001866
raw_sql_destructive
SQL
logs_353.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE refunds SET role = CONCAT(role, user_id);
UPDATE_CONCAT
true
DIFF00000001867
general_code_change
Python
transactions_386.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000001868
raw_sql_destructive
SQL
orders_64.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE customers SET updated_at = CONCAT(updated_at, quantity);
UPDATE_CONCAT
true
DIFF00000001869
raw_sql_safe
SQL
shipments_857.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_payments_balance ON payments (balance);
NONE
false
DIFF00000001870
obfuscated_destructive
SQL
accounts_625.sql
schema cleanup
@@ -1,3 +1,3 @@ +truncate table transactions;
TRUNCATE
true
DIFF00000001871
orm_schema_change
TypeScript
comments_539.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Comments { // removed field: created_at }
NONE
true
DIFF00000001872
general_code_change
JavaScript
invoices_246.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
DIFF00000001873
raw_sql_destructive
SQL
invoices_363.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE invoices;
DROP_TABLE
true
DIFF00000001874
general_code_change
JavaScript
notifications_423.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
DIFF00000001875
orm_schema_change
Python
payments_513.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='employees', name='amount')
NONE
true
DIFF00000001876
general_code_change
TypeScript
users_688.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
DIFF00000001877
obfuscated_destructive
SQL
events_162.sql
schema cleanup
@@ -1,3 +1,3 @@ +alter table sessions rename column created_at to user_role;
ALTER_RENAME
true
DIFF00000001878
general_code_change
Ruby
users_193.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000001879
raw_sql_safe
SQL
logs_633.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE shipments SET metadata = %s WHERE balance = %s;
NONE
false
DIFF00000001880
test_suite_cleanup
SQL
spec/employees_202.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE customers RENAME COLUMN amount TO amount_cents;
ALTER_RENAME
false
DIFF00000001881
raw_sql_destructive
SQL
transactions_107.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE customers SET order_id = CONCAT(order_id, name);
UPDATE_CONCAT
true
DIFF00000001882
raw_sql_destructive
SQL
notifications_135.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE users RENAME COLUMN score TO amount_cents;
ALTER_RENAME
true
DIFF00000001883
raw_sql_safe
SQL
payments_558.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE tickets SET description = %s WHERE user_id = %s;
NONE
false
DIFF00000001884
obfuscated_destructive
SQL
invoices_41.sql
schema cleanup
@@ -1,3 +1,3 @@ +TRUNCATE TABLE inventory;
TRUNCATE
true
DIFF00000001885
obfuscated_destructive
SQL
logs_480.sql
schema cleanup
@@ -1,3 +1,3 @@ +drop table reviews;
DROP_TABLE
true
DIFF00000001886
obfuscated_destructive
SQL
employees_287.sql
schema cleanup
@@ -1,3 +1,3 @@ +TRUNCATE TABLE comments;
TRUNCATE
true
DIFF00000001887
raw_sql_destructive
SQL
inventory_473.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM invoices;
DELETE_UNQUALIFIED
true
DIFF00000001888
raw_sql_destructive
SQL
comments_69.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE sessions DROP COLUMN category;
DROP_COLUMN
true
DIFF00000001889
general_code_change
JavaScript
customers_624.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000001890
test_suite_cleanup
SQL
tests/payments_581.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE payments DROP COLUMN quantity;
DROP_COLUMN
false
DIFF00000001891
test_suite_cleanup
SQL
tests/users_128.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE logs DROP COLUMN amount;
DROP_COLUMN
false
DIFF00000001892
raw_sql_safe
SQL
refunds_955.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_sessions_created_at ON sessions (updated_at);
NONE
false
DIFF00000001893
raw_sql_safe
SQL
subscriptions_597.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE customers ADD COLUMN state VARCHAR(255);
NONE
false
DIFF00000001894
raw_sql_safe
SQL
transactions_206.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE orders SET metadata = %s WHERE metadata = %s;
NONE
false
DIFF00000001895
mentioned_in_comment
Python
reviews_856.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE subscriptions DROP COLUMN updated_at; -- now deprecated"""
DROP_COLUMN
false
DIFF00000001896
general_code_change
TypeScript
customers_14.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
DIFF00000001897
mentioned_in_comment
Python
invoices_585.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: DELETE FROM inventory; -- now deprecated"""
DELETE_UNQUALIFIED
false
DIFF00000001898
raw_sql_destructive
SQL
customers_722.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE invoices RENAME COLUMN metadata TO contact_email;
ALTER_RENAME
true
DIFF00000001899
obfuscated_destructive
SQL
products_150.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTeR tAbLe acCOunTS renAme cOLUmN UseR_ID tO FuLL_naME;
ALTER_RENAME
true