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
DIFF00099998800
orm_schema_change
JavaScript
users_405.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('transactions', table => table.dropColumn('phone'))
NONE
true
DIFF00099998801
general_code_change
Java
subscriptions_142.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099998802
raw_sql_safe
SQL
events_943.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE notifications ADD COLUMN amount_cents VARCHAR(255);
NONE
false
DIFF00099998803
general_code_change
JavaScript
logs_71.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099998804
orm_schema_change
JavaScript
subscriptions_121.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('shipments', 'order_id')
NONE
true
DIFF00099998805
test_suite_cleanup
SQL
spec/subscriptions_800.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE customers SET name = CONCAT(name, name);
UPDATE_CONCAT
false
DIFF00099998806
orm_schema_change
Python
employees_102.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='tickets', name='metadata')
NONE
true
DIFF00099998807
general_code_change
Ruby
shipments_695.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099998808
general_code_change
Ruby
notifications_983.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099998809
general_code_change
Ruby
notifications_85.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099998810
general_code_change
JavaScript
payments_710.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099998811
raw_sql_destructive
SQL
sessions_867.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE reviews DROP COLUMN is_active;
DROP_COLUMN
true
DIFF00099998812
obfuscated_destructive
SQL
subscriptions_27.sql
schema cleanup
@@ -1,3 +1,3 @@ +DELETE FROM shipments;
DELETE_UNQUALIFIED
true
DIFF00099998813
mentioned_in_comment
Python
shipments_42.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: TRUNCATE TABLE customers; -- now deprecated"""
TRUNCATE
false
DIFF00099998814
raw_sql_destructive
SQL
payments_662.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE comments;
TRUNCATE
true
DIFF00099998815
raw_sql_safe
SQL
comments_194.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE payments ADD COLUMN contact_email VARCHAR(255);
NONE
false
DIFF00099998816
raw_sql_safe
SQL
invoices_405.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE employees SET name = %s WHERE price = %s;
NONE
false
DIFF00099998817
general_code_change
Python
tickets_116.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099998818
general_code_change
Java
invoices_466.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099998819
raw_sql_destructive
SQL
customers_287.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM subscriptions;
DELETE_UNQUALIFIED
true
DIFF00099998820
obfuscated_destructive
SQL
invoices_634.sql
schema cleanup
@@ -1,3 +1,3 @@ +drop table notifications;
DROP_TABLE
true
DIFF00099998821
orm_schema_change
JavaScript
transactions_840.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('products', 'metadata')
NONE
true
DIFF00099998822
raw_sql_destructive
SQL
refunds_79.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM accounts;
DELETE_UNQUALIFIED
true
DIFF00099998823
orm_schema_change
JavaScript
orders_510.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('events', table => table.dropColumn('priority'))
NONE
true
DIFF00099998824
raw_sql_destructive
SQL
inventory_992.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE employees;
DROP_TABLE
true
DIFF00099998825
general_code_change
JavaScript
orders_69.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099998826
mentioned_in_comment
Python
invoices_486.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE logs RENAME COLUMN phone TO full_name;")
ALTER_RENAME
false
DIFF00099998827
obfuscated_destructive
SQL
orders_257.sql
schema cleanup
@@ -1,3 +1,3 @@ +alter table employees rename column user_id to full_name;
ALTER_RENAME
true
DIFF00099998828
general_code_change
JavaScript
refunds_163.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
DIFF00099998829
general_code_change
JavaScript
sessions_54.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
DIFF00099998830
general_code_change
JavaScript
transactions_60.js
refactor / feature work
@@ -1,3 +1,3 @@ +function formatDate(d) { return d.toISOString(); }
NONE
false
DIFF00099998831
general_code_change
Java
sessions_736.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099998832
mentioned_in_comment
Python
subscriptions_77.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: ALTER TABLE events RENAME COLUMN address TO state; -- now deprecated"""
ALTER_RENAME
false
DIFF00099998833
obfuscated_destructive
SQL
products_51.sql
schema cleanup
@@ -1,3 +1,3 @@ +DrOp TAble NotIfIcaTIoNs;
DROP_TABLE
true
DIFF00099998834
obfuscated_destructive
SQL
payments_109.sql
schema cleanup
@@ -1,3 +1,3 @@ +ALTER TABLE orders DROP COLUMN created_at;
DROP_COLUMN
true
DIFF00099998835
obfuscated_destructive
SQL
comments_388.sql
schema cleanup
@@ -1,3 +1,3 @@ +truncATe TabLe ordeRs;
TRUNCATE
true
DIFF00099998836
test_suite_cleanup
SQL
mysql-test/suite/comments_679.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE logs RENAME COLUMN address TO state;
ALTER_RENAME
false
DIFF00099998837
general_code_change
Ruby
tickets_870.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099998838
raw_sql_destructive
SQL
reviews_508.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE products SET category = CONCAT(category, created_at);
UPDATE_CONCAT
true
DIFF00099998839
raw_sql_safe
SQL
orders_85.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM orders WHERE phone = 'active';
NONE
false
DIFF00099998840
raw_sql_safe
SQL
invoices_830.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE tickets ADD COLUMN user_role VARCHAR(255);
NONE
false
DIFF00099998841
test_suite_cleanup
SQL
tests/shipments_969.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE accounts RENAME COLUMN created_at TO amount_cents;
ALTER_RENAME
false
DIFF00099998842
raw_sql_safe
SQL
notifications_395.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM products WHERE price = 'active';
NONE
false
DIFF00099998843
mentioned_in_comment
Python
events_922.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE notifications DROP COLUMN address;")
DROP_COLUMN
false
DIFF00099998844
general_code_change
TypeScript
orders_111.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
DIFF00099998845
general_code_change
JavaScript
tickets_876.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
DIFF00099998846
raw_sql_safe
SQL
tickets_721.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE notifications ADD COLUMN full_name VARCHAR(255);
NONE
false
DIFF00099998847
obfuscated_destructive
SQL
logs_673.sql
schema cleanup
@@ -1,3 +1,3 @@ +AlTEr tAbLe cuSTOMERs Drop column bALAnCe;
DROP_COLUMN
true
DIFF00099998848
raw_sql_safe
SQL
orders_212.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO notifications (is_active, created_at) VALUES (%s, %s);
NONE
false
DIFF00099998849
orm_schema_change
Ruby
refunds_370.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :events, :score
NONE
true
DIFF00099998850
orm_schema_change
Python
inventory_313.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='employees', name='user_id')
NONE
true
DIFF00099998851
general_code_change
TypeScript
inventory_821.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
DIFF00099998852
orm_schema_change
JavaScript
accounts_494.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('events', table => table.dropColumn('is_active'))
NONE
true
DIFF00099998853
raw_sql_destructive
SQL
comments_575.sql
update schema
@@ -1,3 +1,3 @@ +UPDATE inventory SET role = CONCAT(role, score);
UPDATE_CONCAT
true
DIFF00099998854
raw_sql_safe
SQL
employees_950.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +UPDATE events SET email = %s WHERE name = %s;
NONE
false
DIFF00099998855
raw_sql_destructive
SQL
shipments_432.sql
update schema
@@ -1,3 +1,3 @@ +DELETE FROM orders;
DELETE_UNQUALIFIED
true
DIFF00099998856
raw_sql_safe
SQL
logs_180.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM employees WHERE amount = 'active';
NONE
false
DIFF00099998857
orm_schema_change
TypeScript
products_257.ts
prisma migration: drop unused field
@@ -1,3 +1,3 @@ +model Inventory { // removed field: user_id }
NONE
true
DIFF00099998858
general_code_change
Ruby
events_481.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099998859
raw_sql_destructive
SQL
events_683.sql
update schema
@@ -1,3 +1,3 @@ +DROP TABLE accounts;
DROP_TABLE
true
DIFF00099998860
orm_schema_change
JavaScript
sessions_264.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('refunds', table => table.dropColumn('status'))
NONE
true
DIFF00099998861
mentioned_in_comment
Python
inventory_303.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE comments RENAME COLUMN description TO contact_email;")
ALTER_RENAME
false
DIFF00099998862
raw_sql_destructive
SQL
payments_540.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE logs RENAME COLUMN priority TO amount_cents;
ALTER_RENAME
true
DIFF00099998863
orm_schema_change
Python
sessions_239.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='sessions', name='created_at')
NONE
true
DIFF00099998864
general_code_change
JavaScript
inventory_797.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
DIFF00099998865
obfuscated_destructive
SQL
payments_403.sql
schema cleanup
@@ -1,3 +1,3 @@ +DELETE FROM reviews;
DELETE_UNQUALIFIED
true
DIFF00099998866
orm_schema_change
Python
logs_373.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='orders', name='priority')
NONE
true
DIFF00099998867
test_suite_cleanup
SQL
test/shipments_887.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +UPDATE shipments SET description = CONCAT(description, priority);
UPDATE_CONCAT
false
DIFF00099998868
mentioned_in_comment
Python
sessions_138.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: DROP TABLE comments; -- now deprecated"""
DROP_TABLE
false
DIFF00099998869
obfuscated_destructive
SQL
notifications_796.sql
schema cleanup
@@ -1,3 +1,3 @@ +alter table employees rename column category to amount_cents;
ALTER_RENAME
true
DIFF00099998870
raw_sql_safe
SQL
orders_176.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM orders WHERE description = 'active';
NONE
false
DIFF00099998871
raw_sql_safe
SQL
subscriptions_42.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +INSERT INTO comments (category, metadata) VALUES (%s, %s);
NONE
false
DIFF00099998872
general_code_change
Python
sessions_404.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false
DIFF00099998873
orm_schema_change
Ruby
orders_637.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :comments, :user_id
NONE
true
DIFF00099998874
general_code_change
Python
sessions_878.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099998875
orm_schema_change
JavaScript
users_676.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('products', table => table.dropColumn('address'))
NONE
true
DIFF00099998876
general_code_change
Ruby
tickets_156.rb
refactor / feature work
@@ -1,3 +1,3 @@ +def full_name "#{first_name} #{last_name}" end
NONE
false
DIFF00099998877
raw_sql_safe
SQL
events_557.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE invoices ADD COLUMN full_name VARCHAR(255);
NONE
false
DIFF00099998878
orm_schema_change
Ruby
payments_305.rb
rails migration: drop unused field
@@ -1,3 +1,3 @@ +remove_column :comments, :user_id
NONE
true
DIFF00099998879
mentioned_in_comment
Python
customers_882.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: ALTER TABLE comments RENAME COLUMN is_active TO contact_email;")
ALTER_RENAME
false
DIFF00099998880
raw_sql_safe
SQL
customers_503.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +ALTER TABLE events ADD COLUMN state VARCHAR(255);
NONE
false
DIFF00099998881
mentioned_in_comment
Python
reviews_251.py
add warning comment
@@ -1,3 +1,3 @@ +"""This function used to run: DELETE FROM users; -- now deprecated"""
DELETE_UNQUALIFIED
false
DIFF00099998882
obfuscated_destructive
SQL
events_789.sql
schema cleanup
@@ -1,3 +1,3 @@ +truncate table customers;
TRUNCATE
true
DIFF00099998883
orm_schema_change
JavaScript
accounts_398.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('logs', 'role')
NONE
true
DIFF00099998884
mentioned_in_comment
Python
users_421.py
add warning comment
@@ -1,3 +1,3 @@ +logger.warning("Skipping legacy query: DELETE FROM customers;")
DELETE_UNQUALIFIED
false
DIFF00099998885
orm_schema_change
JavaScript
refunds_169.js
sequelize migration: drop unused field
@@ -1,3 +1,3 @@ +queryInterface.removeColumn('inventory', 'created_at')
NONE
true
DIFF00099998886
orm_schema_change
Python
events_401.py
django migration: drop unused field
@@ -1,3 +1,3 @@ +migrations.RemoveField(model_name='payments', name='score')
NONE
true
DIFF00099998887
orm_schema_change
JavaScript
shipments_495.js
knex migration: drop unused field
@@ -1,3 +1,3 @@ +knex.schema.table('logs', table => table.dropColumn('order_id'))
NONE
true
DIFF00099998888
raw_sql_destructive
SQL
orders_332.sql
update schema
@@ -1,3 +1,3 @@ +TRUNCATE TABLE shipments;
TRUNCATE
true
DIFF00099998889
general_code_change
Python
transactions_479.py
refactor / feature work
@@ -1,3 +1,3 @@ +class Cache: def __init__(self): self._store = {}
NONE
false
DIFF00099998890
raw_sql_safe
SQL
refunds_130.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM subscriptions WHERE is_active = 'active';
NONE
false
DIFF00099998891
test_suite_cleanup
SQL
test/payments_505.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DELETE FROM orders;
DELETE_UNQUALIFIED
false
DIFF00099998892
general_code_change
Java
payments_791.java
refactor / feature work
@@ -1,3 +1,3 @@ +public class UserService { public User findById(Long id) { return repo.find(id); } }
NONE
false
DIFF00099998893
general_code_change
TypeScript
payments_856.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
DIFF00099998894
test_suite_cleanup
SQL
tests/logs_540.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +DROP TABLE invoices;
DROP_TABLE
false
DIFF00099998895
raw_sql_destructive
SQL
events_296.sql
update schema
@@ -1,3 +1,3 @@ +ALTER TABLE accounts DROP COLUMN name;
DROP_COLUMN
true
DIFF00099998896
raw_sql_safe
SQL
users_42.sql
add index / minor schema tweak
@@ -1,3 +1,3 @@ +SELECT * FROM users WHERE priority = 'active';
NONE
false
DIFF00099998897
test_suite_cleanup
SQL
mysql-test/suite/comments_485.sql
test cleanup fixture
@@ -1,3 +1,3 @@ +ALTER TABLE logs DROP COLUMN score;
DROP_COLUMN
false
DIFF00099998898
general_code_change
Go
invoices_10.go
refactor / feature work
@@ -1,3 +1,3 @@ +func HandleRequest(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "ok") }
NONE
false
DIFF00099998899
general_code_change
Python
logs_389.py
refactor / feature work
@@ -1,3 +1,3 @@ +def calculate_total(items): return sum(i.price for i in items)
NONE
false