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
DIFF00099996900
test_suite_cleanup
SQL
mysql-test/suite/comments_861.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE products DROP COLUMN price;
DROP_COLUMN
false
DIFF00099996901
raw_sql_safe
SQL
refunds_36.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE payments SET created_at = %s WHERE created_at = %s;
NONE
false
DIFF00099996902
mentioned_in_comment
Python
transactions_222.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE comments DROP COLUMN email; -- now deprecated"""
DROP_COLUMN
false
DIFF00099996903
obfuscated_destructive
SQL
transactions_992.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE events RENAME COLUMN amount TO state;
ALTER_RENAME
true
DIFF00099996904
raw_sql_safe
SQL
tickets_993.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE employees SET role = %s WHERE category = %s;
NONE
false
DIFF00099996905
obfuscated_destructive
SQL
employees_942.sql
schema cleanup
@@ -1,3 +1,3 @@ +truncate table comments;
TRUNCATE
true
DIFF00099996906
test_suite_cleanup
SQL
tests/comments_674.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE inventory DROP COLUMN priority;
DROP_COLUMN
false
DIFF00099996907
raw_sql_destructive
SQL
reviews_187.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE users RENAME COLUMN category TO user_role;
ALTER_RENAME
true
DIFF00099996908
raw_sql_destructive
SQL
subscriptions_280.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE notifications;
TRUNCATE
true
DIFF00099996909
mentioned_in_comment
Python
subscriptions_741.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE subscriptions RENAME COLUMN address TO state;' manually, handled by migration tool
ALTER_RENAME
false
DIFF00099996910
general_code_change
JavaScript
users_124.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
DIFF00099996911
general_code_change
JavaScript
reviews_772.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
DIFF00099996912
orm_schema_change
Ruby
reviews_936.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :employees, :user_id
NONE
true
DIFF00099996913
test_suite_cleanup
SQL
tests/comments_579.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE reviews RENAME COLUMN is_active TO full_name;
ALTER_RENAME
false
DIFF00099996914
raw_sql_safe
SQL
events_928.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE payments SET score = %s WHERE role = %s;
NONE
false
DIFF00099996915
raw_sql_destructive
SQL
logs_970.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE transactions RENAME COLUMN role TO user_role;
ALTER_RENAME
true
DIFF00099996916
test_suite_cleanup
SQL
test/invoices_963.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE invoices DROP COLUMN balance;
DROP_COLUMN
false
DIFF00099996917
orm_schema_change
JavaScript
transactions_316.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('refunds', table => table.dropColumn('email'))
NONE
true
DIFF00099996918
general_code_change
Ruby
shipments_436.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099996919
general_code_change
JavaScript
logs_684.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
DIFF00099996920
test_suite_cleanup
SQL
test/employees_866.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE sessions;
DROP_TABLE
false
DIFF00099996921
orm_schema_change
JavaScript
products_241.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('products', table => table.dropColumn('score'))
NONE
true
DIFF00099996922
general_code_change
Java
comments_937.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099996923
general_code_change
Java
orders_618.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099996924
obfuscated_destructive
SQL
sessions_558.sql
schema cleanup
@@ -1,3 +1,3 @@ +DELETE FROM orders;
DELETE_UNQUALIFIED
true
DIFF00099996925
general_code_change
Python
events_514.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099996926
orm_schema_change
JavaScript
employees_19.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('reviews', table => table.dropColumn('order_id'))
NONE
true
DIFF00099996927
test_suite_cleanup
SQL
spec/logs_743.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE shipments;
TRUNCATE
false
DIFF00099996928
raw_sql_destructive
SQL
logs_859.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE events;
TRUNCATE
true
DIFF00099996929
orm_schema_change
JavaScript
sessions_623.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('payments', 'is_active')
NONE
true
DIFF00099996930
raw_sql_safe
SQL
customers_339.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_products_email ON products (address);
NONE
false
DIFF00099996931
general_code_change
TypeScript
inventory_534.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
DIFF00099996932
mentioned_in_comment
Python
customers_575.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE employees RENAME COLUMN metadata TO full_name;' manually, handled by migration tool
ALTER_RENAME
false
DIFF00099996933
raw_sql_destructive
SQL
events_223.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE comments;
TRUNCATE
true
DIFF00099996934
mentioned_in_comment
Python
inventory_181.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: TRUNCATE TABLE tickets; -- now deprecated"""
TRUNCATE
false
DIFF00099996935
orm_schema_change
TypeScript
products_272.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Refunds { // removed field: price }
NONE
true
DIFF00099996936
obfuscated_destructive
SQL
comments_649.sql
schema cleanup
@@ -1,3 +1,3 @@ +AltER table revIEWS droP coLUMN PriOriTY;
DROP_COLUMN
true
DIFF00099996937
obfuscated_destructive
SQL
shipments_491.sql
schema cleanup
@@ -1,3 +1,3 @@ +UPDATE invoices SET address = CONCAT(address, description);
UPDATE_CONCAT
true
DIFF00099996938
raw_sql_safe
SQL
events_654.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_inventory_name ON inventory (amount);
NONE
false
DIFF00099996939
raw_sql_destructive
SQL
customers_175.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM invoices;
DELETE_UNQUALIFIED
true
DIFF00099996940
obfuscated_destructive
SQL
invoices_659.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE tickets RENAME COLUMN metadata TO user_role;
ALTER_RENAME
true
DIFF00099996941
general_code_change
JavaScript
orders_979.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099996942
orm_schema_change
Ruby
products_182.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :tickets, :is_active
NONE
true
DIFF00099996943
orm_schema_change
TypeScript
sessions_809.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Employees { // removed field: category }
NONE
true
DIFF00099996944
general_code_change
JavaScript
users_622.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
DIFF00099996945
general_code_change
JavaScript
reviews_784.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099996946
mentioned_in_comment
Python
orders_631.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DELETE FROM subscriptions;")
DELETE_UNQUALIFIED
false
DIFF00099996947
orm_schema_change
JavaScript
refunds_974.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('comments', table => table.dropColumn('updated_at'))
NONE
true
DIFF00099996948
general_code_change
JavaScript
users_367.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
DIFF00099996949
test_suite_cleanup
SQL
test/customers_790.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM sessions;
DELETE_UNQUALIFIED
false
DIFF00099996950
raw_sql_destructive
SQL
inventory_667.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM shipments;
DELETE_UNQUALIFIED
true
DIFF00099996951
orm_schema_change
JavaScript
products_406.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('sessions', table => table.dropColumn('price'))
NONE
true
DIFF00099996952
mentioned_in_comment
Python
sessions_886.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DROP TABLE notifications;' manually, handled by migration tool
DROP_TABLE
false
DIFF00099996953
general_code_change
Go
events_152.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099996954
general_code_change
JavaScript
transactions_376.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099996955
raw_sql_destructive
SQL
tickets_806.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE orders DROP COLUMN balance;
DROP_COLUMN
true
DIFF00099996956
general_code_change
JavaScript
payments_659.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099996957
orm_schema_change
JavaScript
shipments_700.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('payments', table => table.dropColumn('amount'))
NONE
true
DIFF00099996958
test_suite_cleanup
SQL
tests/payments_924.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE refunds SET address = CONCAT(address, name);
UPDATE_CONCAT
false
DIFF00099996959
orm_schema_change
TypeScript
subscriptions_192.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Shipments { // removed field: created_at }
NONE
true
DIFF00099996960
general_code_change
Ruby
events_249.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099996961
mentioned_in_comment
Python
subscriptions_274.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DELETE FROM invoices;' manually, handled by migration tool
DELETE_UNQUALIFIED
false
DIFF00099996962
general_code_change
Python
tickets_336.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099996963
general_code_change
TypeScript
shipments_874.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
DIFF00099996964
orm_schema_change
Python
transactions_827.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='events', name='priority')
NONE
true
DIFF00099996965
general_code_change
Ruby
users_130.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099996966
mentioned_in_comment
Python
orders_903.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: TRUNCATE TABLE comments;")
TRUNCATE
false
DIFF00099996967
raw_sql_destructive
SQL
notifications_700.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE users DROP COLUMN priority;
DROP_COLUMN
true
DIFF00099996968
orm_schema_change
Ruby
refunds_30.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :logs, :phone
NONE
true
DIFF00099996969
raw_sql_destructive
SQL
comments_705.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE tickets;
DROP_TABLE
true
DIFF00099996970
test_suite_cleanup
SQL
tests/invoices_576.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE events RENAME COLUMN address TO full_name;
ALTER_RENAME
false
DIFF00099996971
orm_schema_change
Ruby
refunds_278.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :sessions, :priority
NONE
true
DIFF00099996972
mentioned_in_comment
Python
events_564.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DROP TABLE refunds;' manually, handled by migration tool
DROP_TABLE
false
DIFF00099996973
general_code_change
JavaScript
tickets_306.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099996974
raw_sql_destructive
SQL
inventory_8.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM refunds;
DELETE_UNQUALIFIED
true
DIFF00099996975
obfuscated_destructive
SQL
accounts_902.sql
schema cleanup
@@ -1,3 +1,3 @@ +UPDATE invoices SET priority = CONCAT(priority, balance);
UPDATE_CONCAT
true
DIFF00099996976
raw_sql_destructive
SQL
notifications_204.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE events;
DROP_TABLE
true
DIFF00099996977
raw_sql_safe
SQL
products_176.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_orders_category ON orders (is_active);
NONE
false
DIFF00099996978
raw_sql_destructive
SQL
employees_372.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE subscriptions RENAME COLUMN score TO full_name;
ALTER_RENAME
true
DIFF00099996979
general_code_change
Go
tickets_403.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099996980
raw_sql_destructive
SQL
notifications_171.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE events;
DROP_TABLE
true
DIFF00099996981
raw_sql_safe
SQL
products_833.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE products ADD COLUMN contact_email VARCHAR(255);
NONE
false
DIFF00099996982
raw_sql_destructive
SQL
transactions_151.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE reviews;
TRUNCATE
true
DIFF00099996983
general_code_change
TypeScript
invoices_964.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
DIFF00099996984
test_suite_cleanup
SQL
mysql-test/suite/notifications_414.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE reviews;
DROP_TABLE
false
DIFF00099996985
general_code_change
JavaScript
transactions_157.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
DIFF00099996986
general_code_change
JavaScript
sessions_770.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099996987
raw_sql_destructive
SQL
tickets_179.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE subscriptions SET score = CONCAT(score, created_at);
UPDATE_CONCAT
true
DIFF00099996988
test_suite_cleanup
SQL
test/logs_931.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE orders RENAME COLUMN balance TO state;
ALTER_RENAME
false
DIFF00099996989
orm_schema_change
JavaScript
inventory_886.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('sessions', 'role')
NONE
true
DIFF00099996990
obfuscated_destructive
SQL
events_664.sql
schema cleanup
@@ -1,3 +1,3 @@ +DELETE FROM subscriptions;
DELETE_UNQUALIFIED
true
DIFF00099996991
mentioned_in_comment
Python
transactions_364.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'TRUNCATE TABLE employees;' manually, handled by migration tool
TRUNCATE
false
DIFF00099996992
test_suite_cleanup
SQL
mysql-test/suite/reviews_926.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE accounts;
DROP_TABLE
false
DIFF00099996993
orm_schema_change
JavaScript
orders_913.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('customers', 'priority')
NONE
true
DIFF00099996994
raw_sql_safe
SQL
shipments_905.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE orders ADD COLUMN user_role VARCHAR(255);
NONE
false
DIFF00099996995
raw_sql_safe
SQL
reviews_545.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO tickets (quantity, email) VALUES (%s, %s);
NONE
false
DIFF00099996996
obfuscated_destructive
SQL
comments_907.sql
schema cleanup
@@ -1,3 +1,3 @@ +TrUNCAtE TabLe SubsCRIPTIONS;
TRUNCATE
true
DIFF00099996997
orm_schema_change
Python
logs_423.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='invoices', name='order_id')
NONE
true
DIFF00099996998
mentioned_in_comment
Python
products_493.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE invoices RENAME COLUMN category TO state;")
ALTER_RENAME
false
DIFF00099996999
orm_schema_change
JavaScript
notifications_920.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('payments', 'order_id')
NONE
true