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
DIFF00099994800
mentioned_in_comment
Python
transactions_806.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: UPDATE tickets SET updated_at = CONCAT(updated_at, amount);")
UPDATE_CONCAT
false
DIFF00099994801
raw_sql_safe
SQL
employees_510.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE inventory SET score = %s WHERE updated_at = %s;
NONE
false
DIFF00099994802
general_code_change
Go
inventory_237.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099994803
general_code_change
JavaScript
events_608.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099994804
raw_sql_safe
SQL
logs_530.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE sessions ADD COLUMN full_name VARCHAR(255);
NONE
false
DIFF00099994805
raw_sql_destructive
SQL
notifications_989.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE payments RENAME COLUMN email TO contact_email;
ALTER_RENAME
true
DIFF00099994806
orm_schema_change
TypeScript
events_945.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Reviews { // removed field: score }
NONE
true
DIFF00099994807
obfuscated_destructive
SQL
products_504.sql
schema cleanup
@@ -1,3 +1,3 @@ +DROP TABLE subscriptions;
DROP_TABLE
true
DIFF00099994808
general_code_change
Python
orders_88.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099994809
general_code_change
Go
sessions_321.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099994810
raw_sql_safe
SQL
users_760.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO refunds (created_at, amount) VALUES (%s, %s);
NONE
false
DIFF00099994811
raw_sql_destructive
SQL
logs_534.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE transactions DROP COLUMN description;
DROP_COLUMN
true
DIFF00099994812
mentioned_in_comment
Python
subscriptions_553.py
add warning comment
@@ -1,3 +1,3 @@ +# NOTE: do not run 'TRUNCATE TABLE tickets;' manually, handled by migration tool
TRUNCATE
false
DIFF00099994813
obfuscated_destructive
SQL
transactions_136.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE subscriptions RENAME COLUMN name TO state;
ALTER_RENAME
true
DIFF00099994814
general_code_change
Python
tickets_625.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099994815
orm_schema_change
JavaScript
logs_193.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('orders', 'price')
NONE
true
DIFF00099994816
orm_schema_change
Ruby
notifications_700.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :accounts, :order_id
NONE
true
DIFF00099994817
orm_schema_change
Python
users_342.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='subscriptions', name='order_id')
NONE
true
DIFF00099994818
raw_sql_destructive
SQL
comments_159.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE subscriptions;
TRUNCATE
true
DIFF00099994819
general_code_change
Java
events_617.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099994820
raw_sql_destructive
SQL
customers_887.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE orders SET category = CONCAT(category, role);
UPDATE_CONCAT
true
DIFF00099994821
raw_sql_safe
SQL
events_452.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_orders_phone ON orders (role);
NONE
false
DIFF00099994822
general_code_change
JavaScript
transactions_257.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099994823
orm_schema_change
TypeScript
reviews_213.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Notifications { // removed field: is_active }
NONE
true
DIFF00099994824
general_code_change
Java
sessions_125.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099994825
general_code_change
Java
orders_5.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099994826
test_suite_cleanup
SQL
mysql-test/suite/logs_772.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE transactions;
DROP_TABLE
false
DIFF00099994827
test_suite_cleanup
SQL
spec/employees_555.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE comments;
TRUNCATE
false
DIFF00099994828
test_suite_cleanup
SQL
test/events_509.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE refunds DROP COLUMN created_at;
DROP_COLUMN
false
DIFF00099994829
orm_schema_change
Python
users_6.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='shipments', name='description')
NONE
true
DIFF00099994830
raw_sql_destructive
SQL
users_257.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE sessions;
TRUNCATE
true
DIFF00099994831
raw_sql_destructive
SQL
refunds_121.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE subscriptions SET name = CONCAT(name, balance);
UPDATE_CONCAT
true
DIFF00099994832
test_suite_cleanup
SQL
test/events_772.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM transactions;
DELETE_UNQUALIFIED
false
DIFF00099994833
raw_sql_safe
SQL
accounts_461.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM products WHERE quantity = 'active';
NONE
false
DIFF00099994834
test_suite_cleanup
SQL
mysql-test/suite/reviews_733.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE users SET role = CONCAT(role, priority);
UPDATE_CONCAT
false
DIFF00099994835
mentioned_in_comment
Python
notifications_711.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: TRUNCATE TABLE logs;")
TRUNCATE
false
DIFF00099994836
obfuscated_destructive
SQL
subscriptions_37.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE products DROP COLUMN description;
DROP_COLUMN
true
DIFF00099994837
mentioned_in_comment
Python
tickets_166.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DELETE FROM invoices;")
DELETE_UNQUALIFIED
false
DIFF00099994838
test_suite_cleanup
SQL
tests/orders_546.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE employees SET address = CONCAT(address, balance);
UPDATE_CONCAT
false
DIFF00099994839
general_code_change
JavaScript
subscriptions_672.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
DIFF00099994840
general_code_change
Go
invoices_11.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099994841
orm_schema_change
TypeScript
accounts_418.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Subscriptions { // removed field: created_at }
NONE
true
DIFF00099994842
general_code_change
Python
transactions_922.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099994843
general_code_change
Java
events_109.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099994844
raw_sql_destructive
SQL
notifications_29.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE transactions RENAME COLUMN order_id TO amount_cents;
ALTER_RENAME
true
DIFF00099994845
general_code_change
Python
employees_18.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099994846
obfuscated_destructive
SQL
shipments_342.sql
schema cleanup
@@ -1,3 +1,3 @@ +drop table orders;
DROP_TABLE
true
DIFF00099994847
raw_sql_destructive
SQL
sessions_574.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM payments;
DELETE_UNQUALIFIED
true
DIFF00099994848
raw_sql_destructive
SQL
logs_331.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE payments;
DROP_TABLE
true
DIFF00099994849
general_code_change
Python
logs_371.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099994850
raw_sql_destructive
SQL
reviews_506.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM events;
DELETE_UNQUALIFIED
true
DIFF00099994851
general_code_change
Python
transactions_352.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099994852
general_code_change
Ruby
events_805.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099994853
raw_sql_safe
SQL
comments_304.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM transactions WHERE amount = 'active';
NONE
false
DIFF00099994854
orm_schema_change
JavaScript
employees_66.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('events', table => table.dropColumn('category'))
NONE
true
DIFF00099994855
orm_schema_change
Python
notifications_709.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='orders', name='phone')
NONE
true
DIFF00099994856
general_code_change
TypeScript
reviews_461.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
DIFF00099994857
raw_sql_safe
SQL
products_896.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE shipments ADD COLUMN state VARCHAR(255);
NONE
false
DIFF00099994858
raw_sql_destructive
SQL
inventory_749.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE logs DROP COLUMN quantity;
DROP_COLUMN
true
DIFF00099994859
orm_schema_change
Python
inventory_537.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='comments', name='address')
NONE
true
DIFF00099994860
raw_sql_destructive
SQL
customers_684.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE logs;
TRUNCATE
true
DIFF00099994861
raw_sql_safe
SQL
products_818.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_orders_category ON orders (phone);
NONE
false
DIFF00099994862
obfuscated_destructive
SQL
orders_276.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE refunds DROP COLUMN name;
DROP_COLUMN
true
DIFF00099994863
raw_sql_safe
SQL
comments_593.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE transactions SET score = %s WHERE amount = %s;
NONE
false
DIFF00099994864
general_code_change
JavaScript
users_499.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099994865
mentioned_in_comment
Python
subscriptions_274.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DROP TABLE orders;")
DROP_TABLE
false
DIFF00099994866
obfuscated_destructive
SQL
products_706.sql
schema cleanup
@@ -1,3 +1,3 @@ +alTER tABlE eVenTs ReNAMe coLumN upDatED_At TO amounT_cENtS;
ALTER_RENAME
true
DIFF00099994867
raw_sql_safe
SQL
reviews_445.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO employees (phone, price) VALUES (%s, %s);
NONE
false
DIFF00099994868
raw_sql_safe
SQL
orders_320.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE comments SET email = %s WHERE status = %s;
NONE
false
DIFF00099994869
orm_schema_change
Python
logs_226.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='users', name='name')
NONE
true
DIFF00099994870
obfuscated_destructive
SQL
logs_410.sql
schema cleanup
@@ -1,3 +1,3 @@ +drop table invoices;
DROP_TABLE
true
DIFF00099994871
general_code_change
TypeScript
users_771.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
DIFF00099994872
raw_sql_safe
SQL
employees_502.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +CREATE INDEX idx_products_email ON products (description);
NONE
false
DIFF00099994873
orm_schema_change
Ruby
transactions_587.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :refunds, :balance
NONE
true
DIFF00099994874
general_code_change
Go
inventory_743.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099994875
test_suite_cleanup
SQL
spec/inventory_619.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +TRUNCATE TABLE events;
TRUNCATE
false
DIFF00099994876
raw_sql_safe
SQL
products_167.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE orders SET priority = %s WHERE created_at = %s;
NONE
false
DIFF00099994877
mentioned_in_comment
Python
shipments_415.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE invoices RENAME COLUMN user_id TO state;")
ALTER_RENAME
false
DIFF00099994878
orm_schema_change
TypeScript
refunds_901.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Invoices { // removed field: order_id }
NONE
true
DIFF00099994879
orm_schema_change
JavaScript
reviews_428.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('subscriptions', 'name')
NONE
true
DIFF00099994880
general_code_change
JavaScript
inventory_738.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
DIFF00099994881
raw_sql_safe
SQL
events_486.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO products (email, score) VALUES (%s, %s);
NONE
false
DIFF00099994882
raw_sql_destructive
SQL
sessions_259.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE employees DROP COLUMN category;
DROP_COLUMN
true
DIFF00099994883
raw_sql_destructive
SQL
accounts_991.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE transactions SET quantity = CONCAT(quantity, user_id);
UPDATE_CONCAT
true
DIFF00099994884
general_code_change
Python
logs_944.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099994885
general_code_change
Python
users_246.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099994886
general_code_change
Python
reviews_736.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099994887
raw_sql_destructive
SQL
subscriptions_927.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE orders DROP COLUMN quantity;
DROP_COLUMN
true
DIFF00099994888
orm_schema_change
JavaScript
sessions_855.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('customers', table => table.dropColumn('email'))
NONE
true
DIFF00099994889
raw_sql_safe
SQL
notifications_720.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE sessions SET description = %s WHERE address = %s;
NONE
false
DIFF00099994890
orm_schema_change
JavaScript
payments_38.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('shipments', table => table.dropColumn('created_at'))
NONE
true
DIFF00099994891
test_suite_cleanup
SQL
tests/subscriptions_408.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE sessions RENAME COLUMN created_at TO full_name;
ALTER_RENAME
false
DIFF00099994892
orm_schema_change
JavaScript
subscriptions_216.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('tickets', table => table.dropColumn('created_at'))
NONE
true
DIFF00099994893
obfuscated_destructive
SQL
customers_110.sql
schema cleanup
@@ -1,3 +1,3 @@ +TRUNCATE TABLE orders;
TRUNCATE
true
DIFF00099994894
raw_sql_safe
SQL
subscriptions_137.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE inventory ADD COLUMN user_role VARCHAR(255);
NONE
false
DIFF00099994895
general_code_change
TypeScript
accounts_254.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
DIFF00099994896
raw_sql_destructive
SQL
accounts_844.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE employees RENAME COLUMN category TO state;
ALTER_RENAME
true
DIFF00099994897
mentioned_in_comment
Python
reviews_262.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: DROP TABLE refunds; -- now deprecated"""
DROP_TABLE
false
DIFF00099994898
general_code_change
Python
events_793.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099994899
obfuscated_destructive
SQL
logs_383.sql
schema cleanup
@@ -1,3 +1,3 @@ +DELETE FROM customers;
DELETE_UNQUALIFIED
true