ziadatalabs commited on
Commit
7988d3b
·
verified ·
1 Parent(s): 1d38d08

Upload sample_50rows.csv with huggingface_hub

Browse files
Files changed (1) hide show
  1. sample_50rows.csv +111 -0
sample_50rows.csv ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "diff_id","change_category","language","file_path","commit_message","diff_text","sql_pattern","is_destructive_ground_truth"
2
+ "DIFF00000000000","raw_sql_safe","SQL","users_151.sql","add index / minor schema tweak","@@ -1,3 +1,3 @@
3
+ +UPDATE refunds SET score = %s WHERE category = %s;","NONE",false
4
+ "DIFF00000000001","raw_sql_destructive","SQL","inventory_49.sql","update schema","@@ -1,3 +1,3 @@
5
+ +ALTER TABLE refunds DROP COLUMN price;","DROP_COLUMN",true
6
+ "DIFF00000000002","general_code_change","JavaScript","shipments_418.js","refactor / feature work","@@ -1,3 +1,3 @@
7
+ +function formatDate(d) { return d.toISOString(); }","NONE",false
8
+ "DIFF00000000003","general_code_change","Ruby","notifications_535.rb","refactor / feature work","@@ -1,3 +1,3 @@
9
+ +def full_name
10
+ ""#{first_name} #{last_name}""
11
+ end","NONE",false
12
+ "DIFF00000000004","mentioned_in_comment","Python","employees_766.py","add warning comment","@@ -1,3 +1,3 @@
13
+ +# NOTE: do not run 'DROP TABLE inventory;' manually, handled by migration tool","DROP_TABLE",false
14
+ "DIFF00000000005","mentioned_in_comment","Python","users_489.py","add warning comment","@@ -1,3 +1,3 @@
15
+ +# NOTE: do not run 'ALTER TABLE events DROP COLUMN balance;' manually, handled by migration tool","DROP_COLUMN",false
16
+ "DIFF00000000006","raw_sql_destructive","SQL","products_164.sql","update schema","@@ -1,3 +1,3 @@
17
+ +DELETE FROM reviews;","DELETE_UNQUALIFIED",true
18
+ "DIFF00000000007","obfuscated_destructive","SQL","inventory_882.sql","schema cleanup","@@ -1,3 +1,3 @@
19
+ +DROP
20
+ TABLE
21
+ users;","DROP_TABLE",true
22
+ "DIFF00000000008","raw_sql_safe","SQL","shipments_482.sql","add index / minor schema tweak","@@ -1,3 +1,3 @@
23
+ +UPDATE customers SET name = %s WHERE amount = %s;","NONE",false
24
+ "DIFF00000000009","raw_sql_destructive","SQL","inventory_323.sql","update schema","@@ -1,3 +1,3 @@
25
+ +UPDATE logs SET priority = CONCAT(priority, role);","UPDATE_CONCAT",true
26
+ "DIFF00000000010","general_code_change","Ruby","tickets_503.rb","refactor / feature work","@@ -1,3 +1,3 @@
27
+ +def full_name
28
+ ""#{first_name} #{last_name}""
29
+ end","NONE",false
30
+ "DIFF00000000011","raw_sql_destructive","SQL","events_890.sql","update schema","@@ -1,3 +1,3 @@
31
+ +ALTER TABLE payments RENAME COLUMN user_id TO amount_cents;","ALTER_RENAME",true
32
+ "DIFF00000000012","general_code_change","TypeScript","notifications_390.ts","refactor / feature work","@@ -1,3 +1,3 @@
33
+ +export function toTitleCase(s: string): string { return s.replace(/\w\S*/g, t => t[0].toUpperCase() + t.slice(1)); }","NONE",false
34
+ "DIFF00000000013","orm_schema_change","Ruby","transactions_245.rb","rails migration: drop unused field","@@ -1,3 +1,3 @@
35
+ +remove_column :tickets, :status","NONE",true
36
+ "DIFF00000000014","obfuscated_destructive","SQL","transactions_390.sql","schema cleanup","@@ -1,3 +1,3 @@
37
+ +UPDATE refunds SET name = CONCAT(name, category);","UPDATE_CONCAT",true
38
+ "DIFF00000000015","raw_sql_destructive","SQL","tickets_767.sql","update schema","@@ -1,3 +1,3 @@
39
+ +TRUNCATE TABLE logs;","TRUNCATE",true
40
+ "DIFF00000000016","raw_sql_safe","SQL","notifications_173.sql","add index / minor schema tweak","@@ -1,3 +1,3 @@
41
+ +ALTER TABLE reviews ADD COLUMN state VARCHAR(255);","NONE",false
42
+ "DIFF00000000017","orm_schema_change","JavaScript","transactions_832.js","knex migration: drop unused field","@@ -1,3 +1,3 @@
43
+ +knex.schema.table('inventory', table => table.dropColumn('created_at'))","NONE",true
44
+ "DIFF00000000018","raw_sql_destructive","SQL","products_9.sql","update schema","@@ -1,3 +1,3 @@
45
+ +TRUNCATE TABLE subscriptions;","TRUNCATE",true
46
+ "DIFF00000000019","general_code_change","Python","events_107.py","refactor / feature work","@@ -1,3 +1,3 @@
47
+ +def calculate_total(items):
48
+ return sum(i.price for i in items)","NONE",false
49
+ "DIFF00000000020","raw_sql_safe","SQL","comments_773.sql","add index / minor schema tweak","@@ -1,3 +1,3 @@
50
+ +INSERT INTO products (price, role) VALUES (%s, %s);","NONE",false
51
+ "DIFF00000000021","general_code_change","TypeScript","refunds_973.ts","refactor / feature work","@@ -1,3 +1,3 @@
52
+ +export function toTitleCase(s: string): string { return s.replace(/\w\S*/g, t => t[0].toUpperCase() + t.slice(1)); }","NONE",false
53
+ "DIFF00000000022","general_code_change","Python","products_773.py","refactor / feature work","@@ -1,3 +1,3 @@
54
+ +def calculate_total(items):
55
+ return sum(i.price for i in items)","NONE",false
56
+ "DIFF00000000023","raw_sql_destructive","SQL","logs_87.sql","update schema","@@ -1,3 +1,3 @@
57
+ +ALTER TABLE events RENAME COLUMN role TO state;","ALTER_RENAME",true
58
+ "DIFF00000000024","test_suite_cleanup","SQL","spec/shipments_847.sql","test cleanup fixture","@@ -1,3 +1,3 @@
59
+ +DROP TABLE notifications;","DROP_TABLE",false
60
+ "DIFF00000000025","test_suite_cleanup","SQL","tests/accounts_105.sql","test cleanup fixture","@@ -1,3 +1,3 @@
61
+ +ALTER TABLE inventory RENAME COLUMN user_id TO state;","ALTER_RENAME",false
62
+ "DIFF00000000026","mentioned_in_comment","Python","comments_262.py","add warning comment","@@ -1,3 +1,3 @@
63
+ +logger.warning(""Skipping legacy query: TRUNCATE TABLE products;"")","TRUNCATE",false
64
+ "DIFF00000000027","general_code_change","JavaScript","events_257.js","refactor / feature work","@@ -1,3 +1,3 @@
65
+ +const debounce = (fn, ms) => { let t; return (...a) => { clearTimeout(t); t = setTimeout(() => fn(...a), ms); }; };","NONE",false
66
+ "DIFF00000000028","mentioned_in_comment","Python","products_653.py","add warning comment","@@ -1,3 +1,3 @@
67
+ +logger.warning(""Skipping legacy query: DROP TABLE shipments;"")","DROP_TABLE",false
68
+ "DIFF00000000029","raw_sql_destructive","SQL","invoices_729.sql","update schema","@@ -1,3 +1,3 @@
69
+ +DROP TABLE transactions;","DROP_TABLE",true
70
+ "DIFF00000000030","orm_schema_change","Python","events_3.py","django migration: drop unused field","@@ -1,3 +1,3 @@
71
+ +migrations.RemoveField(model_name='notifications', name='priority')","NONE",true
72
+ "DIFF00000000031","raw_sql_destructive","SQL","customers_811.sql","update schema","@@ -1,3 +1,3 @@
73
+ +DELETE FROM payments;","DELETE_UNQUALIFIED",true
74
+ "DIFF00000000032","mentioned_in_comment","Python","comments_647.py","add warning comment","@@ -1,3 +1,3 @@
75
+ +# NOTE: do not run 'ALTER TABLE subscriptions RENAME COLUMN score TO full_name;' manually, handled by migration tool","ALTER_RENAME",false
76
+ "DIFF00000000033","orm_schema_change","TypeScript","employees_56.ts","prisma migration: drop unused field","@@ -1,3 +1,3 @@
77
+ +model Orders { // removed field: name }","NONE",true
78
+ "DIFF00000000034","orm_schema_change","Python","logs_287.py","django migration: drop unused field","@@ -1,3 +1,3 @@
79
+ +migrations.RemoveField(model_name='sessions', name='price')","NONE",true
80
+ "DIFF00000000035","raw_sql_destructive","SQL","sessions_747.sql","update schema","@@ -1,3 +1,3 @@
81
+ +TRUNCATE TABLE shipments;","TRUNCATE",true
82
+ "DIFF00000000036","general_code_change","JavaScript","payments_141.js","refactor / feature work","@@ -1,3 +1,3 @@
83
+ +function formatDate(d) { return d.toISOString(); }","NONE",false
84
+ "DIFF00000000037","general_code_change","Java","orders_307.java","refactor / feature work","@@ -1,3 +1,3 @@
85
+ +public class UserService { public User findById(Long id) { return repo.find(id); } }","NONE",false
86
+ "DIFF00000000038","general_code_change","JavaScript","notifications_831.js","refactor / feature work","@@ -1,3 +1,3 @@
87
+ +const debounce = (fn, ms) => { let t; return (...a) => { clearTimeout(t); t = setTimeout(() => fn(...a), ms); }; };","NONE",false
88
+ "DIFF00000000039","orm_schema_change","JavaScript","shipments_35.js","knex migration: drop unused field","@@ -1,3 +1,3 @@
89
+ +knex.schema.table('accounts', table => table.dropColumn('balance'))","NONE",true
90
+ "DIFF00000000040","general_code_change","JavaScript","payments_725.js","refactor / feature work","@@ -1,3 +1,3 @@
91
+ +function formatDate(d) { return d.toISOString(); }","NONE",false
92
+ "DIFF00000000041","mentioned_in_comment","Python","transactions_233.py","add warning comment","@@ -1,3 +1,3 @@
93
+ +""""""This function used to run: DROP TABLE products; -- now deprecated""""""","DROP_TABLE",false
94
+ "DIFF00000000042","mentioned_in_comment","Python","orders_210.py","add warning comment","@@ -1,3 +1,3 @@
95
+ +# NOTE: do not run 'DROP TABLE inventory;' manually, handled by migration tool","DROP_TABLE",false
96
+ "DIFF00000000043","raw_sql_destructive","SQL","invoices_509.sql","update schema","@@ -1,3 +1,3 @@
97
+ +ALTER TABLE accounts DROP COLUMN priority;","DROP_COLUMN",true
98
+ "DIFF00000000044","orm_schema_change","JavaScript","accounts_276.js","sequelize migration: drop unused field","@@ -1,3 +1,3 @@
99
+ +queryInterface.removeColumn('transactions', 'name')","NONE",true
100
+ "DIFF00000000045","general_code_change","Ruby","events_34.rb","refactor / feature work","@@ -1,3 +1,3 @@
101
+ +def full_name
102
+ ""#{first_name} #{last_name}""
103
+ end","NONE",false
104
+ "DIFF00000000046","mentioned_in_comment","Python","sessions_38.py","add warning comment","@@ -1,3 +1,3 @@
105
+ +""""""This function used to run: ALTER TABLE accounts RENAME COLUMN priority TO user_role; -- now deprecated""""""","ALTER_RENAME",false
106
+ "DIFF00000000047","test_suite_cleanup","SQL","mysql-test/suite/comments_813.sql","test cleanup fixture","@@ -1,3 +1,3 @@
107
+ +DROP TABLE products;","DROP_TABLE",false
108
+ "DIFF00000000048","raw_sql_destructive","SQL","products_378.sql","update schema","@@ -1,3 +1,3 @@
109
+ +UPDATE employees SET email = CONCAT(email, category);","UPDATE_CONCAT",true
110
+ "DIFF00000000049","orm_schema_change","JavaScript","orders_371.js","sequelize migration: drop unused field","@@ -1,3 +1,3 @@
111
+ +queryInterface.removeColumn('events', 'user_id')","NONE",true