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
DIFF00099993900
general_code_change
JavaScript
invoices_491.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099993901
mentioned_in_comment
Python
accounts_290.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'UPDATE refunds SET email = CONCAT(email, address);' manually, handled by migration tool
UPDATE_CONCAT
false
DIFF00099993902
raw_sql_destructive
SQL
refunds_300.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE tickets SET price = CONCAT(price, is_active);
UPDATE_CONCAT
true
DIFF00099993903
general_code_change
Ruby
sessions_115.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099993904
general_code_change
JavaScript
logs_766.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099993905
obfuscated_destructive
SQL
users_863.sql
schema cleanup
@@ -1,3 +1,3 @@ +truncate table notifications;
TRUNCATE
true
DIFF00099993906
orm_schema_change
Python
users_510.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='refunds', name='is_active')
NONE
true
DIFF00099993907
general_code_change
Python
shipments_203.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099993908
raw_sql_destructive
SQL
orders_867.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE refunds RENAME COLUMN user_id TO amount_cents;
ALTER_RENAME
true
DIFF00099993909
general_code_change
Python
refunds_957.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099993910
test_suite_cleanup
SQL
tests/notifications_460.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE products;
DROP_TABLE
false
DIFF00099993911
general_code_change
Go
logs_159.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099993912
test_suite_cleanup
SQL
tests/tickets_30.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE accounts DROP COLUMN name;
DROP_COLUMN
false
DIFF00099993913
obfuscated_destructive
SQL
customers_271.sql
schema cleanup
@@ -1,3 +1,3 @@ +alter table inventory rename column score to state;
ALTER_RENAME
true
DIFF00099993914
obfuscated_destructive
SQL
shipments_905.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TaBLE ORDeRs Drop COlUmN PrICe;
DROP_COLUMN
true
DIFF00099993915
general_code_change
TypeScript
users_343.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
DIFF00099993916
orm_schema_change
Python
reviews_425.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='shipments', name='quantity')
NONE
true
DIFF00099993917
raw_sql_destructive
SQL
subscriptions_737.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM payments;
DELETE_UNQUALIFIED
true
DIFF00099993918
test_suite_cleanup
SQL
spec/payments_902.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE employees DROP COLUMN quantity;
DROP_COLUMN
false
DIFF00099993919
mentioned_in_comment
Python
customers_522.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE transactions DROP COLUMN is_active;")
DROP_COLUMN
false
DIFF00099993920
general_code_change
Python
tickets_131.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099993921
obfuscated_destructive
SQL
transactions_84.sql
schema cleanup
@@ -1,3 +1,3 @@ +AlTeR TabLe EvENTs rENAME ColUmN baLaNCE TO USER_role;
ALTER_RENAME
true
DIFF00099993922
general_code_change
JavaScript
notifications_445.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099993923
test_suite_cleanup
SQL
test/comments_540.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE shipments;
DROP_TABLE
false
DIFF00099993924
general_code_change
Python
comments_600.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099993925
general_code_change
Python
customers_780.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099993926
mentioned_in_comment
Python
tickets_210.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE accounts DROP COLUMN quantity;")
DROP_COLUMN
false
DIFF00099993927
raw_sql_safe
SQL
inventory_741.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE orders SET status = %s WHERE updated_at = %s;
NONE
false
DIFF00099993928
mentioned_in_comment
Python
products_915.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: DELETE FROM payments; -- now deprecated"""
DELETE_UNQUALIFIED
false
DIFF00099993929
test_suite_cleanup
SQL
tests/shipments_346.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE tickets SET priority = CONCAT(priority, amount);
UPDATE_CONCAT
false
DIFF00099993930
general_code_change
Go
inventory_262.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099993931
obfuscated_destructive
SQL
sessions_285.sql
schema cleanup
@@ -1,3 +1,3 @@ +DELETE FROM tickets;
DELETE_UNQUALIFIED
true
DIFF00099993932
raw_sql_destructive
SQL
products_821.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE comments SET status = CONCAT(status, priority);
UPDATE_CONCAT
true
DIFF00099993933
test_suite_cleanup
SQL
spec/tickets_288.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE invoices DROP COLUMN balance;
DROP_COLUMN
false
DIFF00099993934
test_suite_cleanup
SQL
spec/logs_814.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE tickets RENAME COLUMN amount TO user_role;
ALTER_RENAME
false
DIFF00099993935
raw_sql_destructive
SQL
users_619.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE comments RENAME COLUMN score TO state;
ALTER_RENAME
true
DIFF00099993936
orm_schema_change
TypeScript
refunds_530.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Employees { // removed field: address }
NONE
true
DIFF00099993937
raw_sql_safe
SQL
logs_777.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM employees WHERE balance = 'active';
NONE
false
DIFF00099993938
test_suite_cleanup
SQL
tests/logs_673.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE logs;
TRUNCATE
false
DIFF00099993939
mentioned_in_comment
Python
sessions_985.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'UPDATE accounts SET status = CONCAT(status, status);' manually, handled by migration tool
UPDATE_CONCAT
false
DIFF00099993940
raw_sql_destructive
SQL
customers_829.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE customers SET order_id = CONCAT(order_id, user_id);
UPDATE_CONCAT
true
DIFF00099993941
orm_schema_change
Ruby
comments_246.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :shipments, :is_active
NONE
true
DIFF00099993942
orm_schema_change
TypeScript
tickets_722.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Notifications { // removed field: created_at }
NONE
true
DIFF00099993943
obfuscated_destructive
SQL
orders_42.sql
schema cleanup
@@ -1,3 +1,3 @@ +tRUnCate tablE ReFUndS;
TRUNCATE
true
DIFF00099993944
general_code_change
Ruby
customers_258.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099993945
raw_sql_safe
SQL
products_492.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_invoices_address ON invoices (user_id);
NONE
false
DIFF00099993946
test_suite_cleanup
SQL
mysql-test/suite/logs_161.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE inventory DROP COLUMN created_at;
DROP_COLUMN
false
DIFF00099993947
raw_sql_safe
SQL
logs_487.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE notifications SET score = %s WHERE address = %s;
NONE
false
DIFF00099993948
obfuscated_destructive
SQL
employees_407.sql
schema cleanup
@@ -1,3 +1,3 @@ +UpDate TiCkEts SeT stATuS = ConCaT(StaTus, aDDresS);
UPDATE_CONCAT
true
DIFF00099993949
orm_schema_change
Ruby
orders_277.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :payments, :price
NONE
true
DIFF00099993950
raw_sql_safe
SQL
sessions_409.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE logs SET balance = %s WHERE category = %s;
NONE
false
DIFF00099993951
mentioned_in_comment
Python
reviews_665.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE products RENAME COLUMN phone TO user_role; -- now deprecated"""
ALTER_RENAME
false
DIFF00099993952
general_code_change
Java
shipments_604.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099993953
test_suite_cleanup
SQL
test/accounts_246.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE accounts;
TRUNCATE
false
DIFF00099993954
general_code_change
JavaScript
notifications_6.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
DIFF00099993955
general_code_change
JavaScript
reviews_33.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
DIFF00099993956
obfuscated_destructive
SQL
subscriptions_275.sql
schema cleanup
@@ -1,3 +1,3 @@ +DELETE FROM accounts;
DELETE_UNQUALIFIED
true
DIFF00099993957
orm_schema_change
TypeScript
sessions_952.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Tickets { // removed field: phone }
NONE
true
DIFF00099993958
mentioned_in_comment
Python
comments_837.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: TRUNCATE TABLE invoices; -- now deprecated"""
TRUNCATE
false
DIFF00099993959
obfuscated_destructive
SQL
tickets_997.sql
schema cleanup
@@ -1,3 +1,3 @@ +delete from payments;
DELETE_UNQUALIFIED
true
DIFF00099993960
raw_sql_safe
SQL
products_258.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM accounts WHERE priority = 'active';
NONE
false
DIFF00099993961
test_suite_cleanup
SQL
mysql-test/suite/inventory_88.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM transactions;
DELETE_UNQUALIFIED
false
DIFF00099993962
test_suite_cleanup
SQL
spec/notifications_214.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE accounts;
DROP_TABLE
false
DIFF00099993963
raw_sql_destructive
SQL
inventory_320.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE invoices;
DROP_TABLE
true
DIFF00099993964
test_suite_cleanup
SQL
test/transactions_181.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE events;
DROP_TABLE
false
DIFF00099993965
general_code_change
Python
logs_227.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099993966
obfuscated_destructive
SQL
inventory_359.sql
schema cleanup
@@ -1,3 +1,3 @@ +alter TAble USeRS dROp colUmN iS_ACtive;
DROP_COLUMN
true
DIFF00099993967
raw_sql_safe
SQL
payments_952.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM shipments WHERE status = 'active';
NONE
false
DIFF00099993968
raw_sql_destructive
SQL
transactions_73.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE employees;
TRUNCATE
true
DIFF00099993969
raw_sql_safe
SQL
tickets_553.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_products_price ON products (category);
NONE
false
DIFF00099993970
orm_schema_change
Python
notifications_174.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='sessions', name='price')
NONE
true
DIFF00099993971
orm_schema_change
Python
transactions_993.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='logs', name='balance')
NONE
true
DIFF00099993972
orm_schema_change
Python
notifications_37.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='refunds', name='updated_at')
NONE
true
DIFF00099993973
orm_schema_change
TypeScript
orders_132.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Users { // removed field: address }
NONE
true
DIFF00099993974
general_code_change
TypeScript
users_993.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
DIFF00099993975
mentioned_in_comment
Python
sessions_27.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: UPDATE comments SET quantity = CONCAT(quantity, updated_at);")
UPDATE_CONCAT
false
DIFF00099993976
general_code_change
TypeScript
shipments_526.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
DIFF00099993977
raw_sql_destructive
SQL
accounts_220.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE accounts;
DROP_TABLE
true
DIFF00099993978
obfuscated_destructive
SQL
payments_776.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE payments DROP COLUMN phone;
DROP_COLUMN
true
DIFF00099993979
raw_sql_destructive
SQL
invoices_137.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM customers;
DELETE_UNQUALIFIED
true
DIFF00099993980
raw_sql_destructive
SQL
tickets_542.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE refunds;
TRUNCATE
true
DIFF00099993981
raw_sql_destructive
SQL
logs_571.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE payments RENAME COLUMN created_at TO full_name;
ALTER_RENAME
true
DIFF00099993982
raw_sql_safe
SQL
payments_697.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM refunds WHERE updated_at = 'active';
NONE
false
DIFF00099993983
mentioned_in_comment
Python
subscriptions_189.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: UPDATE subscriptions SET price = CONCAT(price, updated_at);")
UPDATE_CONCAT
false
DIFF00099993984
raw_sql_safe
SQL
sessions_707.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE accounts SET created_at = %s WHERE price = %s;
NONE
false
DIFF00099993985
obfuscated_destructive
SQL
tickets_133.sql
schema cleanup
@@ -1,3 +1,3 @@ +DELETE FROM users;
DELETE_UNQUALIFIED
true
DIFF00099993986
obfuscated_destructive
SQL
subscriptions_45.sql
schema cleanup
@@ -1,3 +1,3 @@ +dRop TaBle aCCoUNtS;
DROP_TABLE
true
DIFF00099993987
orm_schema_change
Python
invoices_366.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='customers', name='priority')
NONE
true
DIFF00099993988
orm_schema_change
JavaScript
notifications_36.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('payments', 'price')
NONE
true
DIFF00099993989
raw_sql_destructive
SQL
invoices_312.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE accounts DROP COLUMN balance;
DROP_COLUMN
true
DIFF00099993990
raw_sql_safe
SQL
users_289.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_refunds_score ON refunds (phone);
NONE
false
DIFF00099993991
general_code_change
JavaScript
accounts_789.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099993992
orm_schema_change
JavaScript
payments_95.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('events', table => table.dropColumn('is_active'))
NONE
true
DIFF00099993993
mentioned_in_comment
Python
logs_331.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: TRUNCATE TABLE transactions; -- now deprecated"""
TRUNCATE
false
DIFF00099993994
test_suite_cleanup
SQL
test/shipments_288.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE sessions DROP COLUMN status;
DROP_COLUMN
false
DIFF00099993995
obfuscated_destructive
SQL
employees_83.sql
schema cleanup
@@ -1,3 +1,3 @@ +alter table users drop column balance;
DROP_COLUMN
true
DIFF00099993996
mentioned_in_comment
Python
customers_857.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE inventory DROP COLUMN is_active;")
DROP_COLUMN
false
DIFF00099993997
orm_schema_change
TypeScript
refunds_948.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Notifications { // removed field: score }
NONE
true
DIFF00099993998
test_suite_cleanup
SQL
tests/subscriptions_997.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE customers;
TRUNCATE
false
DIFF00099993999
test_suite_cleanup
SQL
tests/events_421.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE orders;
TRUNCATE
false