"diff_id","change_category","language","file_path","commit_message","diff_text","sql_pattern","is_destructive_ground_truth" "DIFF00000000000","raw_sql_safe","SQL","users_151.sql","add index / minor schema tweak","@@ -1,3 +1,3 @@ +UPDATE refunds SET score = %s WHERE category = %s;","NONE",false "DIFF00000000001","raw_sql_destructive","SQL","inventory_49.sql","update schema","@@ -1,3 +1,3 @@ +ALTER TABLE refunds DROP COLUMN price;","DROP_COLUMN",true "DIFF00000000002","general_code_change","JavaScript","shipments_418.js","refactor / feature work","@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }","NONE",false "DIFF00000000003","general_code_change","Ruby","notifications_535.rb","refactor / feature work","@@ -1,3 +1,3 @@ +def full_name ""#{first_name} #{last_name}"" end","NONE",false "DIFF00000000004","mentioned_in_comment","Python","employees_766.py","add warning comment","@@ -1,3 +1,3 @@ +# NOTE: do not run 'DROP TABLE inventory;' manually, handled by migration tool","DROP_TABLE",false "DIFF00000000005","mentioned_in_comment","Python","users_489.py","add warning comment","@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE events DROP COLUMN balance;' manually, handled by migration tool","DROP_COLUMN",false "DIFF00000000006","raw_sql_destructive","SQL","products_164.sql","update schema","@@ -1,3 +1,3 @@ +DELETE FROM reviews;","DELETE_UNQUALIFIED",true "DIFF00000000007","obfuscated_destructive","SQL","inventory_882.sql","schema cleanup","@@ -1,3 +1,3 @@ +DROP TABLE users;","DROP_TABLE",true "DIFF00000000008","raw_sql_safe","SQL","shipments_482.sql","add index / minor schema tweak","@@ -1,3 +1,3 @@ +UPDATE customers SET name = %s WHERE amount = %s;","NONE",false "DIFF00000000009","raw_sql_destructive","SQL","inventory_323.sql","update schema","@@ -1,3 +1,3 @@ +UPDATE logs SET priority = CONCAT(priority, role);","UPDATE_CONCAT",true "DIFF00000000010","general_code_change","Ruby","tickets_503.rb","refactor / feature work","@@ -1,3 +1,3 @@ +def full_name ""#{first_name} #{last_name}"" end","NONE",false "DIFF00000000011","raw_sql_destructive","SQL","events_890.sql","update schema","@@ -1,3 +1,3 @@ +ALTER TABLE payments RENAME COLUMN user_id TO amount_cents;","ALTER_RENAME",true "DIFF00000000012","general_code_change","TypeScript","notifications_390.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 "DIFF00000000013","orm_schema_change","Ruby","transactions_245.rb","rails migration: drop unused field","@@ -1,3 +1,3 @@ +remove_column :tickets, :status","NONE",true "DIFF00000000014","obfuscated_destructive","SQL","transactions_390.sql","schema cleanup","@@ -1,3 +1,3 @@ +UPDATE refunds SET name = CONCAT(name, category);","UPDATE_CONCAT",true "DIFF00000000015","raw_sql_destructive","SQL","tickets_767.sql","update schema","@@ -1,3 +1,3 @@ +TRUNCATE TABLE logs;","TRUNCATE",true "DIFF00000000016","raw_sql_safe","SQL","notifications_173.sql","add index / minor schema tweak","@@ -1,3 +1,3 @@ +ALTER TABLE reviews ADD COLUMN state VARCHAR(255);","NONE",false "DIFF00000000017","orm_schema_change","JavaScript","transactions_832.js","knex migration: drop unused field","@@ -1,3 +1,3 @@ +knex.schema.table('inventory', table => table.dropColumn('created_at'))","NONE",true "DIFF00000000018","raw_sql_destructive","SQL","products_9.sql","update schema","@@ -1,3 +1,3 @@ +TRUNCATE TABLE subscriptions;","TRUNCATE",true "DIFF00000000019","general_code_change","Python","events_107.py","refactor / feature work","@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)","NONE",false "DIFF00000000020","raw_sql_safe","SQL","comments_773.sql","add index / minor schema tweak","@@ -1,3 +1,3 @@ +INSERT INTO products (price, role) VALUES (%s, %s);","NONE",false "DIFF00000000021","general_code_change","TypeScript","refunds_973.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 "DIFF00000000022","general_code_change","Python","products_773.py","refactor / feature work","@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)","NONE",false "DIFF00000000023","raw_sql_destructive","SQL","logs_87.sql","update schema","@@ -1,3 +1,3 @@ +ALTER TABLE events RENAME COLUMN role TO state;","ALTER_RENAME",true "DIFF00000000024","test_suite_cleanup","SQL","spec/shipments_847.sql","test cleanup fixture","@@ -1,3 +1,3 @@ +DROP TABLE notifications;","DROP_TABLE",false "DIFF00000000025","test_suite_cleanup","SQL","tests/accounts_105.sql","test cleanup fixture","@@ -1,3 +1,3 @@ +ALTER TABLE inventory RENAME COLUMN user_id TO state;","ALTER_RENAME",false "DIFF00000000026","mentioned_in_comment","Python","comments_262.py","add warning comment","@@ -1,3 +1,3 @@ +logger.warning(""Skipping legacy query: TRUNCATE TABLE products;"")","TRUNCATE",false "DIFF00000000027","general_code_change","JavaScript","events_257.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 "DIFF00000000028","mentioned_in_comment","Python","products_653.py","add warning comment","@@ -1,3 +1,3 @@ +logger.warning(""Skipping legacy query: DROP TABLE shipments;"")","DROP_TABLE",false "DIFF00000000029","raw_sql_destructive","SQL","invoices_729.sql","update schema","@@ -1,3 +1,3 @@ +DROP TABLE transactions;","DROP_TABLE",true "DIFF00000000030","orm_schema_change","Python","events_3.py","django migration: drop unused field","@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='notifications', name='priority')","NONE",true "DIFF00000000031","raw_sql_destructive","SQL","customers_811.sql","update schema","@@ -1,3 +1,3 @@ +DELETE FROM payments;","DELETE_UNQUALIFIED",true "DIFF00000000032","mentioned_in_comment","Python","comments_647.py","add warning comment","@@ -1,3 +1,3 @@ +# NOTE: do not run 'ALTER TABLE subscriptions RENAME COLUMN score TO full_name;' manually, handled by migration tool","ALTER_RENAME",false "DIFF00000000033","orm_schema_change","TypeScript","employees_56.ts","prisma migration: drop unused field","@@ -1,3 +1,3 @@ +model Orders { // removed field: name }","NONE",true "DIFF00000000034","orm_schema_change","Python","logs_287.py","django migration: drop unused field","@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='sessions', name='price')","NONE",true "DIFF00000000035","raw_sql_destructive","SQL","sessions_747.sql","update schema","@@ -1,3 +1,3 @@ +TRUNCATE TABLE shipments;","TRUNCATE",true "DIFF00000000036","general_code_change","JavaScript","payments_141.js","refactor / feature work","@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }","NONE",false "DIFF00000000037","general_code_change","Java","orders_307.java","refactor / feature work","@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }","NONE",false "DIFF00000000038","general_code_change","JavaScript","notifications_831.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 "DIFF00000000039","orm_schema_change","JavaScript","shipments_35.js","knex migration: drop unused field","@@ -1,3 +1,3 @@ +knex.schema.table('accounts', table => table.dropColumn('balance'))","NONE",true "DIFF00000000040","general_code_change","JavaScript","payments_725.js","refactor / feature work","@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }","NONE",false "DIFF00000000041","mentioned_in_comment","Python","transactions_233.py","add warning comment","@@ -1,3 +1,3 @@ +""""""This function used to run: DROP TABLE products; -- now deprecated""""""","DROP_TABLE",false "DIFF00000000042","mentioned_in_comment","Python","orders_210.py","add warning comment","@@ -1,3 +1,3 @@ +# NOTE: do not run 'DROP TABLE inventory;' manually, handled by migration tool","DROP_TABLE",false "DIFF00000000043","raw_sql_destructive","SQL","invoices_509.sql","update schema","@@ -1,3 +1,3 @@ +ALTER TABLE accounts DROP COLUMN priority;","DROP_COLUMN",true "DIFF00000000044","orm_schema_change","JavaScript","accounts_276.js","sequelize migration: drop unused field","@@ -1,3 +1,3 @@ +queryInterface.removeColumn('transactions', 'name')","NONE",true "DIFF00000000045","general_code_change","Ruby","events_34.rb","refactor / feature work","@@ -1,3 +1,3 @@ +def full_name ""#{first_name} #{last_name}"" end","NONE",false "DIFF00000000046","mentioned_in_comment","Python","sessions_38.py","add warning comment","@@ -1,3 +1,3 @@ +""""""This function used to run: ALTER TABLE accounts RENAME COLUMN priority TO user_role; -- now deprecated""""""","ALTER_RENAME",false "DIFF00000000047","test_suite_cleanup","SQL","mysql-test/suite/comments_813.sql","test cleanup fixture","@@ -1,3 +1,3 @@ +DROP TABLE products;","DROP_TABLE",false "DIFF00000000048","raw_sql_destructive","SQL","products_378.sql","update schema","@@ -1,3 +1,3 @@ +UPDATE employees SET email = CONCAT(email, category);","UPDATE_CONCAT",true "DIFF00000000049","orm_schema_change","JavaScript","orders_371.js","sequelize migration: drop unused field","@@ -1,3 +1,3 @@ +queryInterface.removeColumn('events', 'user_id')","NONE",true