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
DIFF00099999000
orm_schema_change
JavaScript
transactions_530.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('sessions', table => table.dropColumn('updated_at'))
NONE
true
DIFF00099999001
raw_sql_destructive
SQL
invoices_954.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE accounts;
TRUNCATE
true
DIFF00099999002
raw_sql_destructive
SQL
sessions_284.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM payments;
DELETE_UNQUALIFIED
true
DIFF00099999003
general_code_change
Python
notifications_341.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099999004
obfuscated_destructive
SQL
employees_634.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE orders RENAME COLUMN price TO full_name;
ALTER_RENAME
true
DIFF00099999005
orm_schema_change
TypeScript
customers_32.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Orders { // removed field: priority }
NONE
true
DIFF00099999006
test_suite_cleanup
SQL
spec/logs_899.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE employees DROP COLUMN category;
DROP_COLUMN
false
DIFF00099999007
test_suite_cleanup
SQL
mysql-test/suite/logs_355.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE employees SET quantity = CONCAT(quantity, priority);
UPDATE_CONCAT
false
DIFF00099999008
general_code_change
JavaScript
invoices_839.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099999009
raw_sql_safe
SQL
inventory_147.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_tickets_category ON tickets (phone);
NONE
false
DIFF00099999010
test_suite_cleanup
SQL
mysql-test/suite/accounts_693.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE transactions;
TRUNCATE
false
DIFF00099999011
raw_sql_destructive
SQL
subscriptions_933.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE sessions RENAME COLUMN name TO state;
ALTER_RENAME
true
DIFF00099999012
raw_sql_destructive
SQL
accounts_709.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE orders SET role = CONCAT(role, price);
UPDATE_CONCAT
true
DIFF00099999013
obfuscated_destructive
SQL
inventory_583.sql
schema cleanup
@@ -1,3 +1,3 @@ +TRUNCATE TABLE comments;
TRUNCATE
true
DIFF00099999014
test_suite_cleanup
SQL
test/events_861.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE inventory DROP COLUMN category;
DROP_COLUMN
false
DIFF00099999015
orm_schema_change
JavaScript
shipments_179.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('logs', 'balance')
NONE
true
DIFF00099999016
orm_schema_change
JavaScript
subscriptions_102.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('logs', table => table.dropColumn('description'))
NONE
true
DIFF00099999017
test_suite_cleanup
SQL
mysql-test/suite/accounts_248.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE orders;
DROP_TABLE
false
DIFF00099999018
obfuscated_destructive
SQL
notifications_421.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE sessions RENAME COLUMN metadata TO user_role;
ALTER_RENAME
true
DIFF00099999019
general_code_change
JavaScript
orders_214.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099999020
general_code_change
TypeScript
logs_991.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
DIFF00099999021
raw_sql_safe
SQL
logs_306.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_orders_role ON orders (price);
NONE
false
DIFF00099999022
mentioned_in_comment
Python
sessions_965.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'DELETE FROM subscriptions;' manually, handled by migration tool
DELETE_UNQUALIFIED
false
DIFF00099999023
test_suite_cleanup
SQL
spec/users_784.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE invoices;
DROP_TABLE
false
DIFF00099999024
raw_sql_destructive
SQL
employees_659.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM refunds;
DELETE_UNQUALIFIED
true
DIFF00099999025
orm_schema_change
TypeScript
reviews_624.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Products { // removed field: metadata }
NONE
true
DIFF00099999026
obfuscated_destructive
SQL
subscriptions_109.sql
schema cleanup
@@ -1,3 +1,3 @@ +UPDATE reviews SET role = CONCAT(role, score);
UPDATE_CONCAT
true
DIFF00099999027
general_code_change
Ruby
payments_812.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099999028
general_code_change
Python
shipments_65.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099999029
raw_sql_destructive
SQL
refunds_853.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM logs;
DELETE_UNQUALIFIED
true
DIFF00099999030
test_suite_cleanup
SQL
test/orders_703.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE orders RENAME COLUMN balance TO contact_email;
ALTER_RENAME
false
DIFF00099999031
raw_sql_destructive
SQL
accounts_691.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE tickets SET status = CONCAT(status, role);
UPDATE_CONCAT
true
DIFF00099999032
general_code_change
JavaScript
users_925.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
DIFF00099999033
obfuscated_destructive
SQL
users_601.sql
schema cleanup
@@ -1,3 +1,3 @@ +trUncaTe tAblE aCcOUNTs;
TRUNCATE
true
DIFF00099999034
raw_sql_safe
SQL
notifications_608.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM transactions WHERE user_id = 'active';
NONE
false
DIFF00099999035
raw_sql_safe
SQL
products_444.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_reviews_is_active ON reviews (created_at);
NONE
false
DIFF00099999036
general_code_change
Ruby
events_533.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099999037
orm_schema_change
JavaScript
comments_708.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('reviews', 'score')
NONE
true
DIFF00099999038
obfuscated_destructive
SQL
payments_106.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE tickets RENAME COLUMN phone TO state;
ALTER_RENAME
true
DIFF00099999039
mentioned_in_comment
Python
products_184.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: TRUNCATE TABLE comments;")
TRUNCATE
false
DIFF00099999040
orm_schema_change
JavaScript
shipments_935.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('invoices', table => table.dropColumn('updated_at'))
NONE
true
DIFF00099999041
mentioned_in_comment
Python
notifications_146.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DELETE FROM notifications;")
DELETE_UNQUALIFIED
false
DIFF00099999042
test_suite_cleanup
SQL
test/invoices_131.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE users SET email = CONCAT(email, is_active);
UPDATE_CONCAT
false
DIFF00099999043
orm_schema_change
JavaScript
invoices_352.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('subscriptions', table => table.dropColumn('category'))
NONE
true
DIFF00099999044
obfuscated_destructive
SQL
tickets_153.sql
schema cleanup
@@ -1,3 +1,3 @@ +TRUNCATE TABLE comments;
TRUNCATE
true
DIFF00099999045
general_code_change
Python
users_226.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099999046
general_code_change
Python
sessions_778.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099999047
general_code_change
Python
notifications_60.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099999048
general_code_change
Python
logs_860.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099999049
test_suite_cleanup
SQL
tests/orders_741.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM reviews;
DELETE_UNQUALIFIED
false
DIFF00099999050
mentioned_in_comment
Python
notifications_932.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: UPDATE refunds SET name = CONCAT(name, price);")
UPDATE_CONCAT
false
DIFF00099999051
obfuscated_destructive
SQL
shipments_698.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTeR TABlE Events renaME cOLUmN iS_aCtiVE To User_role;
ALTER_RENAME
true
DIFF00099999052
raw_sql_destructive
SQL
shipments_108.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE orders SET order_id = CONCAT(order_id, priority);
UPDATE_CONCAT
true
DIFF00099999053
obfuscated_destructive
SQL
subscriptions_652.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE users DROP COLUMN score;
DROP_COLUMN
true
DIFF00099999054
general_code_change
TypeScript
shipments_317.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
DIFF00099999055
raw_sql_safe
SQL
employees_75.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO payments (metadata, category) VALUES (%s, %s);
NONE
false
DIFF00099999056
raw_sql_safe
SQL
notifications_273.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE invoices SET score = %s WHERE price = %s;
NONE
false
DIFF00099999057
raw_sql_safe
SQL
reviews_19.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM logs WHERE description = 'active';
NONE
false
DIFF00099999058
general_code_change
Ruby
reviews_967.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099999059
general_code_change
Java
customers_262.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099999060
general_code_change
Java
products_603.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099999061
general_code_change
TypeScript
invoices_686.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
DIFF00099999062
orm_schema_change
Python
invoices_651.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='products', name='is_active')
NONE
true
DIFF00099999063
orm_schema_change
Python
payments_813.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='employees', name='user_id')
NONE
true
DIFF00099999064
orm_schema_change
JavaScript
sessions_237.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('customers', table => table.dropColumn('order_id'))
NONE
true
DIFF00099999065
mentioned_in_comment
Python
accounts_248.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: DROP TABLE invoices; -- now deprecated"""
DROP_TABLE
false
DIFF00099999066
general_code_change
TypeScript
shipments_479.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
DIFF00099999067
general_code_change
JavaScript
notifications_620.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
DIFF00099999068
general_code_change
TypeScript
customers_882.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
DIFF00099999069
general_code_change
Go
tickets_777.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099999070
orm_schema_change
JavaScript
users_312.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('events', table => table.dropColumn('user_id'))
NONE
true
DIFF00099999071
test_suite_cleanup
SQL
tests/employees_507.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE products RENAME COLUMN role TO state;
ALTER_RENAME
false
DIFF00099999072
raw_sql_safe
SQL
comments_131.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE employees SET address = %s WHERE order_id = %s;
NONE
false
DIFF00099999073
raw_sql_destructive
SQL
accounts_467.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE products;
DROP_TABLE
true
DIFF00099999074
obfuscated_destructive
SQL
invoices_226.sql
schema cleanup
@@ -1,3 +1,3 @@ +trUNcATe tAblE rEFundS;
TRUNCATE
true
DIFF00099999075
test_suite_cleanup
SQL
test/payments_174.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM invoices;
DELETE_UNQUALIFIED
false
DIFF00099999076
raw_sql_destructive
SQL
products_386.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE subscriptions;
TRUNCATE
true
DIFF00099999077
raw_sql_safe
SQL
events_924.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_inventory_created_at ON inventory (description);
NONE
false
DIFF00099999078
raw_sql_safe
SQL
inventory_152.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM notifications WHERE amount = 'active';
NONE
false
DIFF00099999079
general_code_change
Ruby
customers_943.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099999080
raw_sql_destructive
SQL
events_717.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE users SET priority = CONCAT(priority, metadata);
UPDATE_CONCAT
true
DIFF00099999081
general_code_change
Ruby
accounts_719.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099999082
mentioned_in_comment
Python
notifications_514.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: DELETE FROM sessions; -- now deprecated"""
DELETE_UNQUALIFIED
false
DIFF00099999083
general_code_change
JavaScript
inventory_113.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099999084
raw_sql_safe
SQL
employees_394.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO refunds (email, phone) VALUES (%s, %s);
NONE
false
DIFF00099999085
general_code_change
Ruby
events_675.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099999086
general_code_change
Python
notifications_777.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099999087
orm_schema_change
TypeScript
transactions_220.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Payments { // removed field: email }
NONE
true
DIFF00099999088
obfuscated_destructive
SQL
inventory_344.sql
schema cleanup
@@ -1,3 +1,3 @@ +DELETE FROM invoices;
DELETE_UNQUALIFIED
true
DIFF00099999089
raw_sql_destructive
SQL
events_568.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE tickets SET created_at = CONCAT(created_at, description);
UPDATE_CONCAT
true
DIFF00099999090
raw_sql_destructive
SQL
customers_535.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE reviews DROP COLUMN name;
DROP_COLUMN
true
DIFF00099999091
general_code_change
JavaScript
invoices_449.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099999092
raw_sql_destructive
SQL
inventory_123.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE tickets SET score = CONCAT(score, order_id);
UPDATE_CONCAT
true
DIFF00099999093
general_code_change
JavaScript
tickets_925.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099999094
general_code_change
TypeScript
products_88.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
DIFF00099999095
raw_sql_destructive
SQL
tickets_399.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE logs SET amount = CONCAT(amount, phone);
UPDATE_CONCAT
true
DIFF00099999096
raw_sql_safe
SQL
inventory_556.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO users (is_active, user_id) VALUES (%s, %s);
NONE
false
DIFF00099999097
raw_sql_destructive
SQL
events_321.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE reviews;
DROP_TABLE
true
DIFF00099999098
raw_sql_destructive
SQL
subscriptions_937.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM shipments;
DELETE_UNQUALIFIED
true
DIFF00099999099
general_code_change
Go
payments_821.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false