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
DIFF00099997900
raw_sql_safe
SQL
events_816.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM sessions WHERE name = 'active';
NONE
false
DIFF00099997901
raw_sql_destructive
SQL
comments_293.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE sessions;
DROP_TABLE
true
DIFF00099997902
orm_schema_change
TypeScript
events_485.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Events { // removed field: order_id }
NONE
true
DIFF00099997903
orm_schema_change
Python
subscriptions_615.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='notifications', name='priority')
NONE
true
DIFF00099997904
general_code_change
TypeScript
orders_924.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
DIFF00099997905
raw_sql_destructive
SQL
customers_354.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE comments;
TRUNCATE
true
DIFF00099997906
general_code_change
TypeScript
payments_757.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
DIFF00099997907
raw_sql_destructive
SQL
shipments_984.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM subscriptions;
DELETE_UNQUALIFIED
true
DIFF00099997908
orm_schema_change
TypeScript
orders_581.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Users { // removed field: status }
NONE
true
DIFF00099997909
orm_schema_change
Ruby
comments_206.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :inventory, :updated_at
NONE
true
DIFF00099997910
obfuscated_destructive
SQL
users_52.sql
schema cleanup
@@ -1,3 +1,3 @@ +alter table products drop column category;
DROP_COLUMN
true
DIFF00099997911
general_code_change
JavaScript
orders_885.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099997912
general_code_change
Python
comments_837.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099997913
general_code_change
Go
notifications_176.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099997914
raw_sql_safe
SQL
transactions_687.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE payments ADD COLUMN user_role VARCHAR(255);
NONE
false
DIFF00099997915
mentioned_in_comment
Python
subscriptions_397.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DELETE FROM orders;")
DELETE_UNQUALIFIED
false
DIFF00099997916
raw_sql_safe
SQL
inventory_845.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO customers (address, status) VALUES (%s, %s);
NONE
false
DIFF00099997917
general_code_change
Ruby
orders_887.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099997918
raw_sql_safe
SQL
comments_639.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO shipments (address, description) VALUES (%s, %s);
NONE
false
DIFF00099997919
raw_sql_destructive
SQL
refunds_40.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE users;
DROP_TABLE
true
DIFF00099997920
raw_sql_destructive
SQL
shipments_558.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE employees SET email = CONCAT(email, amount);
UPDATE_CONCAT
true
DIFF00099997921
obfuscated_destructive
SQL
payments_228.sql
schema cleanup
@@ -1,3 +1,3 @@ +tRuncaTe tabLe tRansacTions;
TRUNCATE
true
DIFF00099997922
test_suite_cleanup
SQL
test/customers_580.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE shipments;
TRUNCATE
false
DIFF00099997923
mentioned_in_comment
Python
tickets_879.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: UPDATE employees SET price = CONCAT(price, role);")
UPDATE_CONCAT
false
DIFF00099997924
raw_sql_safe
SQL
subscriptions_897.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_sessions_priority ON sessions (name);
NONE
false
DIFF00099997925
test_suite_cleanup
SQL
test/events_268.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE subscriptions SET is_active = CONCAT(is_active, metadata);
UPDATE_CONCAT
false
DIFF00099997926
raw_sql_destructive
SQL
employees_643.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE transactions DROP COLUMN is_active;
DROP_COLUMN
true
DIFF00099997927
raw_sql_safe
SQL
payments_460.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO shipments (metadata, updated_at) VALUES (%s, %s);
NONE
false
DIFF00099997928
test_suite_cleanup
SQL
spec/logs_630.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE refunds SET phone = CONCAT(phone, address);
UPDATE_CONCAT
false
DIFF00099997929
general_code_change
Ruby
invoices_803.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099997930
general_code_change
Java
notifications_298.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099997931
mentioned_in_comment
Python
tickets_149.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE inventory DROP COLUMN order_id;' manually, handled by migration tool
DROP_COLUMN
false
DIFF00099997932
general_code_change
Java
subscriptions_926.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099997933
general_code_change
JavaScript
subscriptions_804.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
DIFF00099997934
raw_sql_destructive
SQL
users_481.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM products;
DELETE_UNQUALIFIED
true
DIFF00099997935
test_suite_cleanup
SQL
test/subscriptions_675.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE comments;
DROP_TABLE
false
DIFF00099997936
mentioned_in_comment
Python
tickets_715.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE subscriptions DROP COLUMN metadata;' manually, handled by migration tool
DROP_COLUMN
false
DIFF00099997937
obfuscated_destructive
SQL
subscriptions_928.sql
schema cleanup
@@ -1,3 +1,3 @@ +UPDATE events SET metadata = CONCAT(metadata, priority);
UPDATE_CONCAT
true
DIFF00099997938
general_code_change
TypeScript
payments_525.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
DIFF00099997939
general_code_change
JavaScript
products_88.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099997940
raw_sql_safe
SQL
refunds_192.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE employees SET priority = %s WHERE phone = %s;
NONE
false
DIFF00099997941
general_code_change
Python
refunds_415.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099997942
general_code_change
Python
reviews_833.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099997943
orm_schema_change
Python
customers_166.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='customers', name='role')
NONE
true
DIFF00099997944
raw_sql_destructive
SQL
notifications_715.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE payments;
TRUNCATE
true
DIFF00099997945
mentioned_in_comment
Python
users_794.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DELETE FROM events;")
DELETE_UNQUALIFIED
false
DIFF00099997946
general_code_change
Go
transactions_357.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099997947
obfuscated_destructive
SQL
tickets_353.sql
schema cleanup
@@ -1,3 +1,3 @@ +TRUNCATE TABLE users;
TRUNCATE
true
DIFF00099997948
raw_sql_destructive
SQL
comments_136.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE logs;
DROP_TABLE
true
DIFF00099997949
test_suite_cleanup
SQL
mysql-test/suite/comments_444.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE reviews;
DROP_TABLE
false
DIFF00099997950
raw_sql_safe
SQL
tickets_604.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM events WHERE metadata = 'active';
NONE
false
DIFF00099997951
orm_schema_change
Ruby
transactions_502.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :tickets, :description
NONE
true
DIFF00099997952
orm_schema_change
JavaScript
logs_893.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('subscriptions', table => table.dropColumn('user_id'))
NONE
true
DIFF00099997953
obfuscated_destructive
SQL
orders_494.sql
schema cleanup
@@ -1,3 +1,3 @@ +DRop TAbLe CuStomErS;
DROP_TABLE
true
DIFF00099997954
raw_sql_safe
SQL
payments_764.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_accounts_phone ON accounts (score);
NONE
false
DIFF00099997955
obfuscated_destructive
SQL
logs_557.sql
schema cleanup
@@ -1,3 +1,3 @@ +DeLete from orDeRs;
DELETE_UNQUALIFIED
true
DIFF00099997956
obfuscated_destructive
SQL
customers_506.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE transactions RENAME COLUMN is_active TO state;
ALTER_RENAME
true
DIFF00099997957
orm_schema_change
Ruby
tickets_191.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :logs, :category
NONE
true
DIFF00099997958
orm_schema_change
Python
customers_259.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='reviews', name='role')
NONE
true
DIFF00099997959
orm_schema_change
JavaScript
shipments_635.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('invoices', 'updated_at')
NONE
true
DIFF00099997960
mentioned_in_comment
Python
logs_4.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: UPDATE events SET quantity = CONCAT(quantity, phone); -- now deprecated"""
UPDATE_CONCAT
false
DIFF00099997961
orm_schema_change
Python
inventory_803.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='sessions', name='user_id')
NONE
true
DIFF00099997962
general_code_change
Java
logs_478.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099997963
orm_schema_change
TypeScript
notifications_737.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Logs { // removed field: quantity }
NONE
true
DIFF00099997964
general_code_change
TypeScript
comments_228.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
DIFF00099997965
orm_schema_change
JavaScript
orders_928.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('payments', table => table.dropColumn('order_id'))
NONE
true
DIFF00099997966
raw_sql_safe
SQL
notifications_118.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_logs_created_at ON logs (phone);
NONE
false
DIFF00099997967
orm_schema_change
TypeScript
sessions_953.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Subscriptions { // removed field: name }
NONE
true
DIFF00099997968
raw_sql_destructive
SQL
accounts_252.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE subscriptions DROP COLUMN category;
DROP_COLUMN
true
DIFF00099997969
obfuscated_destructive
SQL
logs_647.sql
schema cleanup
@@ -1,3 +1,3 @@ +DELETE FROM notifications;
DELETE_UNQUALIFIED
true
DIFF00099997970
raw_sql_destructive
SQL
inventory_109.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM subscriptions;
DELETE_UNQUALIFIED
true
DIFF00099997971
raw_sql_destructive
SQL
users_143.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE products;
DROP_TABLE
true
DIFF00099997972
general_code_change
Go
subscriptions_350.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099997973
raw_sql_destructive
SQL
reviews_252.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE events SET user_id = CONCAT(user_id, address);
UPDATE_CONCAT
true
DIFF00099997974
orm_schema_change
Python
products_765.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='customers', name='email')
NONE
true
DIFF00099997975
obfuscated_destructive
SQL
logs_376.sql
schema cleanup
@@ -1,3 +1,3 @@ +DELETE FROM invoices;
DELETE_UNQUALIFIED
true
DIFF00099997976
mentioned_in_comment
Python
invoices_165.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DELETE FROM sessions;")
DELETE_UNQUALIFIED
false
DIFF00099997977
general_code_change
Python
orders_981.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099997978
raw_sql_destructive
SQL
accounts_176.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE logs;
DROP_TABLE
true
DIFF00099997979
raw_sql_safe
SQL
employees_501.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE customers SET name = %s WHERE amount = %s;
NONE
false
DIFF00099997980
raw_sql_destructive
SQL
payments_504.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM logs;
DELETE_UNQUALIFIED
true
DIFF00099997981
mentioned_in_comment
Python
tickets_665.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DROP TABLE logs;")
DROP_TABLE
false
DIFF00099997982
obfuscated_destructive
SQL
logs_57.sql
schema cleanup
@@ -1,3 +1,3 @@ +alter table reviews drop column metadata;
DROP_COLUMN
true
DIFF00099997983
general_code_change
Java
refunds_34.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099997984
mentioned_in_comment
Python
invoices_911.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: DROP TABLE refunds; -- now deprecated"""
DROP_TABLE
false
DIFF00099997985
general_code_change
Python
transactions_582.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099997986
general_code_change
Python
transactions_237.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099997987
general_code_change
Python
logs_993.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099997988
raw_sql_safe
SQL
refunds_669.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE subscriptions ADD COLUMN full_name VARCHAR(255);
NONE
false
DIFF00099997989
orm_schema_change
TypeScript
comments_753.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Logs { // removed field: quantity }
NONE
true
DIFF00099997990
general_code_change
Go
accounts_42.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099997991
raw_sql_safe
SQL
invoices_111.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_shipments_quantity ON shipments (phone);
NONE
false
DIFF00099997992
obfuscated_destructive
SQL
users_973.sql
schema cleanup
@@ -1,3 +1,3 @@ +DROP TABLE products;
DROP_TABLE
true
DIFF00099997993
raw_sql_destructive
SQL
transactions_604.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE payments DROP COLUMN price;
DROP_COLUMN
true
DIFF00099997994
general_code_change
Ruby
invoices_8.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099997995
mentioned_in_comment
Python
refunds_974.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: DROP TABLE subscriptions; -- now deprecated"""
DROP_TABLE
false
DIFF00099997996
obfuscated_destructive
SQL
notifications_274.sql
schema cleanup
@@ -1,3 +1,3 @@ +update transactions set status = concat(status, is_active);
UPDATE_CONCAT
true
DIFF00099997997
raw_sql_safe
SQL
employees_672.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE subscriptions SET score = %s WHERE metadata = %s;
NONE
false
DIFF00099997998
raw_sql_safe
SQL
orders_452.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO tickets (is_active, price) VALUES (%s, %s);
NONE
false
DIFF00099997999
general_code_change
JavaScript
subscriptions_714.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