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
DIFF00000003900
general_code_change
Python
products_257.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000003901
obfuscated_destructive
SQL
transactions_512.sql
schema cleanup
@@ -1,3 +1,3 @@ +aLtEr TabLe ordErs rEnAme coLumn UseR_iD to aMOUnt_cENTs;
ALTER_RENAME
true
DIFF00000003902
orm_schema_change
JavaScript
notifications_182.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('accounts', table => table.dropColumn('category'))
NONE
true
DIFF00000003903
orm_schema_change
Ruby
payments_706.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :inventory, :priority
NONE
true
DIFF00000003904
orm_schema_change
JavaScript
notifications_412.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('reviews', table => table.dropColumn('order_id'))
NONE
true
DIFF00000003905
general_code_change
JavaScript
users_507.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000003906
raw_sql_destructive
SQL
events_848.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE notifications;
TRUNCATE
true
DIFF00000003907
general_code_change
Go
sessions_897.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000003908
raw_sql_safe
SQL
subscriptions_838.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE logs ADD COLUMN contact_email VARCHAR(255);
NONE
false
DIFF00000003909
orm_schema_change
Ruby
employees_126.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :payments, :order_id
NONE
true
DIFF00000003910
test_suite_cleanup
SQL
spec/customers_671.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM payments;
DELETE_UNQUALIFIED
false
DIFF00000003911
general_code_change
Python
payments_658.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000003912
raw_sql_safe
SQL
refunds_869.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO accounts (user_id, quantity) VALUES (%s, %s);
NONE
false
DIFF00000003913
raw_sql_destructive
SQL
sessions_34.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM refunds;
DELETE_UNQUALIFIED
true
DIFF00000003914
test_suite_cleanup
SQL
mysql-test/suite/comments_875.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE products DROP COLUMN address;
DROP_COLUMN
false
DIFF00000003915
general_code_change
Go
logs_418.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000003916
raw_sql_destructive
SQL
employees_890.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM logs;
DELETE_UNQUALIFIED
true
DIFF00000003917
raw_sql_safe
SQL
tickets_659.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE transactions ADD COLUMN amount_cents VARCHAR(255);
NONE
false
DIFF00000003918
mentioned_in_comment
Python
sessions_833.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE logs RENAME COLUMN order_id TO full_name; -- now deprecated"""
ALTER_RENAME
false
DIFF00000003919
test_suite_cleanup
SQL
mysql-test/suite/shipments_679.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE employees RENAME COLUMN score TO contact_email;
ALTER_RENAME
false
DIFF00000003920
general_code_change
Go
customers_949.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000003921
raw_sql_destructive
SQL
shipments_610.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE notifications SET metadata = CONCAT(metadata, email);
UPDATE_CONCAT
true
DIFF00000003922
orm_schema_change
Python
transactions_797.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='invoices', name='amount')
NONE
true
DIFF00000003923
test_suite_cleanup
SQL
test/events_420.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE payments;
TRUNCATE
false
DIFF00000003924
test_suite_cleanup
SQL
tests/employees_10.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE users;
DROP_TABLE
false
DIFF00000003925
general_code_change
Ruby
notifications_185.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000003926
raw_sql_destructive
SQL
transactions_576.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE reviews RENAME COLUMN created_at TO full_name;
ALTER_RENAME
true
DIFF00000003927
orm_schema_change
JavaScript
events_759.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('accounts', 'email')
NONE
true
DIFF00000003928
obfuscated_destructive
SQL
events_42.sql
schema cleanup
@@ -1,3 +1,3 @@ +drop tabLE inVeNtORy;
DROP_TABLE
true
DIFF00000003929
obfuscated_destructive
SQL
transactions_592.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE tickets RENAME COLUMN role TO amount_cents;
ALTER_RENAME
true
DIFF00000003930
raw_sql_safe
SQL
users_975.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE sessions SET quantity = %s WHERE updated_at = %s;
NONE
false
DIFF00000003931
obfuscated_destructive
SQL
sessions_308.sql
schema cleanup
@@ -1,3 +1,3 @@ +drop table invoices;
DROP_TABLE
true
DIFF00000003932
test_suite_cleanup
SQL
mysql-test/suite/comments_5.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE payments RENAME COLUMN order_id TO full_name;
ALTER_RENAME
false
DIFF00000003933
general_code_change
JavaScript
events_687.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000003934
raw_sql_destructive
SQL
refunds_802.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE subscriptions;
TRUNCATE
true
DIFF00000003935
mentioned_in_comment
Python
invoices_349.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE employees RENAME COLUMN is_active TO full_name;")
ALTER_RENAME
false
DIFF00000003936
raw_sql_safe
SQL
payments_541.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO customers (email, price) VALUES (%s, %s);
NONE
false
DIFF00000003937
raw_sql_destructive
SQL
inventory_547.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE orders DROP COLUMN priority;
DROP_COLUMN
true
DIFF00000003938
general_code_change
JavaScript
reviews_295.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
DIFF00000003939
raw_sql_destructive
SQL
subscriptions_130.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE sessions SET amount = CONCAT(amount, score);
UPDATE_CONCAT
true
DIFF00000003940
general_code_change
Go
logs_376.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000003941
raw_sql_safe
SQL
products_969.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO accounts (price, status) VALUES (%s, %s);
NONE
false
DIFF00000003942
mentioned_in_comment
Python
inventory_925.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: TRUNCATE TABLE events; -- now deprecated"""
TRUNCATE
false
DIFF00000003943
raw_sql_destructive
SQL
refunds_88.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE reviews DROP COLUMN description;
DROP_COLUMN
true
DIFF00000003944
raw_sql_destructive
SQL
sessions_348.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE invoices;
TRUNCATE
true
DIFF00000003945
test_suite_cleanup
SQL
spec/reviews_21.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE subscriptions SET role = CONCAT(role, price);
UPDATE_CONCAT
false
DIFF00000003946
mentioned_in_comment
Python
comments_740.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DELETE FROM customers;' manually, handled by migration tool
DELETE_UNQUALIFIED
false
DIFF00000003947
mentioned_in_comment
Python
notifications_464.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DELETE FROM events;' manually, handled by migration tool
DELETE_UNQUALIFIED
false
DIFF00000003948
orm_schema_change
JavaScript
accounts_785.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('tickets', 'metadata')
NONE
true
DIFF00000003949
general_code_change
Ruby
refunds_422.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000003950
orm_schema_change
Ruby
accounts_174.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :orders, :is_active
NONE
true
DIFF00000003951
obfuscated_destructive
SQL
customers_603.sql
schema cleanup
@@ -1,3 +1,3 @@ +delete from payments;
DELETE_UNQUALIFIED
true
DIFF00000003952
raw_sql_destructive
SQL
subscriptions_976.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE accounts RENAME COLUMN updated_at TO full_name;
ALTER_RENAME
true
DIFF00000003953
raw_sql_destructive
SQL
inventory_121.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE events;
TRUNCATE
true
DIFF00000003954
raw_sql_destructive
SQL
shipments_711.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE comments DROP COLUMN score;
DROP_COLUMN
true
DIFF00000003955
general_code_change
TypeScript
invoices_98.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
DIFF00000003956
raw_sql_safe
SQL
payments_74.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE inventory SET metadata = %s WHERE role = %s;
NONE
false
DIFF00000003957
test_suite_cleanup
SQL
tests/notifications_778.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM transactions;
DELETE_UNQUALIFIED
false
DIFF00000003958
raw_sql_safe
SQL
logs_471.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE users SET priority = %s WHERE category = %s;
NONE
false
DIFF00000003959
general_code_change
JavaScript
subscriptions_321.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000003960
orm_schema_change
JavaScript
tickets_55.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('reviews', 'role')
NONE
true
DIFF00000003961
raw_sql_destructive
SQL
refunds_514.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE users RENAME COLUMN name TO user_role;
ALTER_RENAME
true
DIFF00000003962
orm_schema_change
JavaScript
inventory_919.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('users', table => table.dropColumn('description'))
NONE
true
DIFF00000003963
raw_sql_destructive
SQL
refunds_695.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM events;
DELETE_UNQUALIFIED
true
DIFF00000003964
orm_schema_change
JavaScript
customers_750.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('employees', table => table.dropColumn('order_id'))
NONE
true
DIFF00000003965
general_code_change
Go
reviews_26.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000003966
general_code_change
Ruby
transactions_842.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00000003967
raw_sql_destructive
SQL
accounts_774.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM events;
DELETE_UNQUALIFIED
true
DIFF00000003968
general_code_change
Python
shipments_411.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000003969
general_code_change
Python
users_973.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000003970
test_suite_cleanup
SQL
mysql-test/suite/users_512.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE subscriptions RENAME COLUMN phone TO contact_email;
ALTER_RENAME
false
DIFF00000003971
general_code_change
Go
customers_544.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000003972
mentioned_in_comment
Python
notifications_969.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'UPDATE employees SET category = CONCAT(category, email);' manually, handled by migration tool
UPDATE_CONCAT
false
DIFF00000003973
test_suite_cleanup
SQL
test/users_991.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE orders;
TRUNCATE
false
DIFF00000003974
obfuscated_destructive
SQL
sessions_564.sql
schema cleanup
@@ -1,3 +1,3 @@ +aLteR tABle comMeNtS reNAme coLumN usER_iD to CoNtACT_EMAIl;
ALTER_RENAME
true
DIFF00000003975
general_code_change
JavaScript
tickets_642.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00000003976
general_code_change
Python
transactions_702.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000003977
mentioned_in_comment
Python
logs_818.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: UPDATE orders SET is_active = CONCAT(is_active, updated_at);")
UPDATE_CONCAT
false
DIFF00000003978
raw_sql_destructive
SQL
users_433.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE inventory RENAME COLUMN role TO full_name;
ALTER_RENAME
true
DIFF00000003979
orm_schema_change
TypeScript
customers_803.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Users { // removed field: address }
NONE
true
DIFF00000003980
raw_sql_destructive
SQL
subscriptions_578.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM reviews;
DELETE_UNQUALIFIED
true
DIFF00000003981
test_suite_cleanup
SQL
mysql-test/suite/accounts_95.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM payments;
DELETE_UNQUALIFIED
false
DIFF00000003982
raw_sql_destructive
SQL
transactions_29.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE tickets;
TRUNCATE
true
DIFF00000003983
raw_sql_destructive
SQL
reviews_48.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE customers;
DROP_TABLE
true
DIFF00000003984
obfuscated_destructive
SQL
sessions_685.sql
schema cleanup
@@ -1,3 +1,3 @@ +DROP TABLE sessions;
DROP_TABLE
true
DIFF00000003985
general_code_change
Python
payments_339.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00000003986
orm_schema_change
Python
sessions_444.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='invoices', name='user_id')
NONE
true
DIFF00000003987
raw_sql_safe
SQL
employees_130.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO invoices (amount, metadata) VALUES (%s, %s);
NONE
false
DIFF00000003988
raw_sql_destructive
SQL
accounts_193.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE transactions SET metadata = CONCAT(metadata, score);
UPDATE_CONCAT
true
DIFF00000003989
obfuscated_destructive
SQL
inventory_789.sql
schema cleanup
@@ -1,3 +1,3 @@ +UPDATE logs SET category = CONCAT(category, category);
UPDATE_CONCAT
true
DIFF00000003990
test_suite_cleanup
SQL
tests/users_127.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE invoices SET quantity = CONCAT(quantity, balance);
UPDATE_CONCAT
false
DIFF00000003991
raw_sql_safe
SQL
shipments_898.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO comments (price, phone) VALUES (%s, %s);
NONE
false
DIFF00000003992
general_code_change
Python
comments_902.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00000003993
raw_sql_destructive
SQL
sessions_220.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE tickets RENAME COLUMN role TO state;
ALTER_RENAME
true
DIFF00000003994
raw_sql_safe
SQL
notifications_60.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE employees SET is_active = %s WHERE user_id = %s;
NONE
false
DIFF00000003995
raw_sql_destructive
SQL
inventory_238.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM users;
DELETE_UNQUALIFIED
true
DIFF00000003996
general_code_change
Go
logs_89.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00000003997
mentioned_in_comment
Python
invoices_523.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'TRUNCATE TABLE customers;' manually, handled by migration tool
TRUNCATE
false
DIFF00000003998
general_code_change
TypeScript
sessions_323.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
DIFF00000003999
raw_sql_destructive
SQL
employees_876.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE products;
TRUNCATE
true