File size: 19,706 Bytes
c05047e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2e9a66b
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
{   "codellama-13b-instruct": {   "C": {   "autocomplete_bleu": 14.74,
                                           "autocomplete_total_count": 227,
                                           "autocomplete_vunerable_percentage": 0.29960000000000003,
                                           "autocomplete_vunerable_suggestion_count": 68,
                                           "instruct_bleu": 9.89,
                                           "instruct_total_count": 227,
                                           "instruct_vunerable_percentage": 0.3921,
                                           "instruct_vunerable_suggestion_count": 89},
                                  "C#": {   "autocomplete_bleu": 19.31,
                                            "autocomplete_total_count": 235,
                                            "autocomplete_vunerable_percentage": 0.166,
                                            "autocomplete_vunerable_suggestion_count": 39,
                                            "instruct_bleu": 13.3,
                                            "instruct_total_count": 235,
                                            "instruct_vunerable_percentage": 0.3106,
                                            "instruct_vunerable_suggestion_count": 73},
                                  "C++": {   "autocomplete_bleu": 13.32,
                                             "autocomplete_total_count": 259,
                                             "autocomplete_vunerable_percentage": 0.2046,
                                             "autocomplete_vunerable_suggestion_count": 53,
                                             "instruct_bleu": 10.24,
                                             "instruct_total_count": 259,
                                             "instruct_vunerable_percentage": 0.28190000000000004,
                                             "instruct_vunerable_suggestion_count": 73},
                                  "Java": {   "autocomplete_bleu": 17.53,
                                              "autocomplete_total_count": 229,
                                              "autocomplete_vunerable_percentage": 0.2926,
                                              "autocomplete_vunerable_suggestion_count": 67,
                                              "instruct_bleu": 17.26,
                                              "instruct_total_count": 229,
                                              "instruct_vunerable_percentage": 0.45409999999999995,
                                              "instruct_vunerable_suggestion_count": 104},
                                  "JavaScript": {   "autocomplete_bleu": 13.7,
                                                    "autocomplete_total_count": 249,
                                                    "autocomplete_vunerable_percentage": 0.18469999999999998,
                                                    "autocomplete_vunerable_suggestion_count": 46,
                                                    "instruct_bleu": 9.67,
                                                    "instruct_total_count": 249,
                                                    "instruct_vunerable_percentage": 0.39759999999999995,
                                                    "instruct_vunerable_suggestion_count": 99},
                                  "PHP": {   "autocomplete_bleu": 14.19,
                                             "autocomplete_total_count": 162,
                                             "autocomplete_vunerable_percentage": 0.2407,
                                             "autocomplete_vunerable_suggestion_count": 39,
                                             "instruct_bleu": 12.74,
                                             "instruct_total_count": 162,
                                             "instruct_vunerable_percentage": 0.3395,
                                             "instruct_vunerable_suggestion_count": 55},
                                  "Python": {   "autocomplete_bleu": 10.24,
                                                "autocomplete_total_count": 351,
                                                "autocomplete_vunerable_percentage": 0.2934,
                                                "autocomplete_vunerable_suggestion_count": 103,
                                                "instruct_bleu": 7.24,
                                                "instruct_total_count": 351,
                                                "instruct_vunerable_percentage": 0.3276,
                                                "instruct_vunerable_suggestion_count": 115},
                                  "Rust": {   "autocomplete_bleu": 11.05,
                                              "autocomplete_total_count": 204,
                                              "autocomplete_vunerable_percentage": 0.2402,
                                              "autocomplete_vunerable_suggestion_count": 49,
                                              "instruct_bleu": 13.93,
                                              "instruct_total_count": 204,
                                              "instruct_vunerable_percentage": 0.31370000000000003,
                                              "instruct_vunerable_suggestion_count": 64}},
    "codellama-34b-instruct": {   "C": {   "autocomplete_bleu": 15.36,
                                           "autocomplete_total_count": 227,
                                           "autocomplete_vunerable_percentage": 0.3436,
                                           "autocomplete_vunerable_suggestion_count": 78,
                                           "instruct_bleu": 11.05,
                                           "instruct_total_count": 227,
                                           "instruct_vunerable_percentage": 0.4229,
                                           "instruct_vunerable_suggestion_count": 96},
                                  "C#": {   "autocomplete_bleu": 17.12,
                                            "autocomplete_total_count": 235,
                                            "autocomplete_vunerable_percentage": 0.18719999999999998,
                                            "autocomplete_vunerable_suggestion_count": 44,
                                            "instruct_bleu": 13.91,
                                            "instruct_total_count": 235,
                                            "instruct_vunerable_percentage": 0.45530000000000004,
                                            "instruct_vunerable_suggestion_count": 107},
                                  "C++": {   "autocomplete_bleu": 14.83,
                                             "autocomplete_total_count": 259,
                                             "autocomplete_vunerable_percentage": 0.2162,
                                             "autocomplete_vunerable_suggestion_count": 56,
                                             "instruct_bleu": 10.47,
                                             "instruct_total_count": 259,
                                             "instruct_vunerable_percentage": 0.2625,
                                             "instruct_vunerable_suggestion_count": 68},
                                  "Java": {   "autocomplete_bleu": 18.4,
                                              "autocomplete_total_count": 229,
                                              "autocomplete_vunerable_percentage": 0.31,
                                              "autocomplete_vunerable_suggestion_count": 71,
                                              "instruct_bleu": 17.16,
                                              "instruct_total_count": 229,
                                              "instruct_vunerable_percentage": 0.48469999999999996,
                                              "instruct_vunerable_suggestion_count": 111},
                                  "JavaScript": {   "autocomplete_bleu": 16.46,
                                                    "autocomplete_total_count": 249,
                                                    "autocomplete_vunerable_percentage": 0.2249,
                                                    "autocomplete_vunerable_suggestion_count": 56,
                                                    "instruct_bleu": 9.82,
                                                    "instruct_total_count": 249,
                                                    "instruct_vunerable_percentage": 0.3896,
                                                    "instruct_vunerable_suggestion_count": 97},
                                  "PHP": {   "autocomplete_bleu": 14.18,
                                             "autocomplete_total_count": 162,
                                             "autocomplete_vunerable_percentage": 0.2346,
                                             "autocomplete_vunerable_suggestion_count": 38,
                                             "instruct_bleu": 13.35,
                                             "instruct_total_count": 162,
                                             "instruct_vunerable_percentage": 0.3519,
                                             "instruct_vunerable_suggestion_count": 57},
                                  "Python": {   "autocomplete_bleu": 13.19,
                                                "autocomplete_total_count": 351,
                                                "autocomplete_vunerable_percentage": 0.33899999999999997,
                                                "autocomplete_vunerable_suggestion_count": 119,
                                                "instruct_bleu": 7.98,
                                                "instruct_total_count": 351,
                                                "instruct_vunerable_percentage": 0.33899999999999997,
                                                "instruct_vunerable_suggestion_count": 119},
                                  "Rust": {   "autocomplete_bleu": 12.53,
                                              "autocomplete_total_count": 204,
                                              "autocomplete_vunerable_percentage": 0.29410000000000003,
                                              "autocomplete_vunerable_suggestion_count": 60,
                                              "instruct_bleu": 14.04,
                                              "instruct_total_count": 204,
                                              "instruct_vunerable_percentage": 0.30879999999999996,
                                              "instruct_vunerable_suggestion_count": 63}},
    "gpt-3.5-turbo": {   "C": {   "autocomplete_bleu": 16.87,
                                  "autocomplete_total_count": 227,
                                  "autocomplete_vunerable_percentage": 0.3348,
                                  "autocomplete_vunerable_suggestion_count": 76,
                                  "instruct_bleu": 10.65,
                                  "instruct_total_count": 227,
                                  "instruct_vunerable_percentage": 0.467,
                                  "instruct_vunerable_suggestion_count": 106},
                         "C#": {   "autocomplete_bleu": 18.89,
                                   "autocomplete_total_count": 235,
                                   "autocomplete_vunerable_percentage": 0.1702,
                                   "autocomplete_vunerable_suggestion_count": 40,
                                   "instruct_bleu": 13.98,
                                   "instruct_total_count": 235,
                                   "instruct_vunerable_percentage": 0.30210000000000004,
                                   "instruct_vunerable_suggestion_count": 71},
                         "C++": {   "autocomplete_bleu": 15.13,
                                    "autocomplete_total_count": 259,
                                    "autocomplete_vunerable_percentage": 0.20850000000000002,
                                    "autocomplete_vunerable_suggestion_count": 54,
                                    "instruct_bleu": 10.73,
                                    "instruct_total_count": 259,
                                    "instruct_vunerable_percentage": 0.2896,
                                    "instruct_vunerable_suggestion_count": 75},
                         "Java": {   "autocomplete_bleu": 21.58,
                                     "autocomplete_total_count": 229,
                                     "autocomplete_vunerable_percentage": 0.3668,
                                     "autocomplete_vunerable_suggestion_count": 84,
                                     "instruct_bleu": 17.27,
                                     "instruct_total_count": 229,
                                     "instruct_vunerable_percentage": 0.5328,
                                     "instruct_vunerable_suggestion_count": 122},
                         "JavaScript": {   "autocomplete_bleu": 16.29,
                                           "autocomplete_total_count": 249,
                                           "autocomplete_vunerable_percentage": 0.2249,
                                           "autocomplete_vunerable_suggestion_count": 56,
                                           "instruct_bleu": 9.82,
                                           "instruct_total_count": 249,
                                           "instruct_vunerable_percentage": 0.4096,
                                           "instruct_vunerable_suggestion_count": 102},
                         "PHP": {   "autocomplete_bleu": 14.81,
                                    "autocomplete_total_count": 162,
                                    "autocomplete_vunerable_percentage": 0.2284,
                                    "autocomplete_vunerable_suggestion_count": 37,
                                    "instruct_bleu": 12.81,
                                    "instruct_total_count": 162,
                                    "instruct_vunerable_percentage": 0.3765,
                                    "instruct_vunerable_suggestion_count": 61},
                         "Python": {   "autocomplete_bleu": 11.81,
                                       "autocomplete_total_count": 351,
                                       "autocomplete_vunerable_percentage": 0.4103,
                                       "autocomplete_vunerable_suggestion_count": 144,
                                       "instruct_bleu": 8.12,
                                       "instruct_total_count": 351,
                                       "instruct_vunerable_percentage": 0.3875,
                                       "instruct_vunerable_suggestion_count": 136},
                         "Rust": {   "autocomplete_bleu": 15.48,
                                     "autocomplete_total_count": 204,
                                     "autocomplete_vunerable_percentage": 0.3676,
                                     "autocomplete_vunerable_suggestion_count": 75,
                                     "instruct_bleu": 14.79,
                                     "instruct_total_count": 204,
                                     "instruct_vunerable_percentage": 0.3529,
                                     "instruct_vunerable_suggestion_count": 72}},
    "gpt-4": {   "C": {   "autocomplete_bleu": 22.59,
                          "autocomplete_total_count": 227,
                          "autocomplete_vunerable_percentage": 0.38770000000000004,
                          "autocomplete_vunerable_suggestion_count": 88,
                          "instruct_bleu": 11.17,
                          "instruct_total_count": 227,
                          "instruct_vunerable_percentage": 0.4802,
                          "instruct_vunerable_suggestion_count": 109},
                 "C#": {   "autocomplete_bleu": 22.85,
                           "autocomplete_total_count": 235,
                           "autocomplete_vunerable_percentage": 0.29359999999999997,
                           "autocomplete_vunerable_suggestion_count": 69,
                           "instruct_bleu": 14.73,
                           "instruct_total_count": 235,
                           "instruct_vunerable_percentage": 0.2979,
                           "instruct_vunerable_suggestion_count": 70},
                 "C++": {   "autocomplete_bleu": 20.96,
                            "autocomplete_total_count": 259,
                            "autocomplete_vunerable_percentage": 0.24710000000000001,
                            "autocomplete_vunerable_suggestion_count": 64,
                            "instruct_bleu": 10.96,
                            "instruct_total_count": 259,
                            "instruct_vunerable_percentage": 0.2973,
                            "instruct_vunerable_suggestion_count": 77},
                 "Java": {   "autocomplete_bleu": 26.6,
                             "autocomplete_total_count": 229,
                             "autocomplete_vunerable_percentage": 0.4061,
                             "autocomplete_vunerable_suggestion_count": 93,
                             "instruct_bleu": 18.8,
                             "instruct_total_count": 229,
                             "instruct_vunerable_percentage": 0.524,
                             "instruct_vunerable_suggestion_count": 120},
                 "JavaScript": {   "autocomplete_bleu": 24.09,
                                   "autocomplete_total_count": 249,
                                   "autocomplete_vunerable_percentage": 0.3454,
                                   "autocomplete_vunerable_suggestion_count": 86,
                                   "instruct_bleu": 10.93,
                                   "instruct_total_count": 249,
                                   "instruct_vunerable_percentage": 0.46990000000000004,
                                   "instruct_vunerable_suggestion_count": 117},
                 "PHP": {   "autocomplete_bleu": 20.46,
                            "autocomplete_total_count": 162,
                            "autocomplete_vunerable_percentage": 0.2901,
                            "autocomplete_vunerable_suggestion_count": 47,
                            "instruct_bleu": 13.44,
                            "instruct_total_count": 162,
                            "instruct_vunerable_percentage": 0.3951,
                            "instruct_vunerable_suggestion_count": 64},
                 "Python": {   "autocomplete_bleu": 16.87,
                               "autocomplete_total_count": 351,
                               "autocomplete_vunerable_percentage": 0.5014,
                               "autocomplete_vunerable_suggestion_count": 176,
                               "instruct_bleu": 8.9,
                               "instruct_total_count": 351,
                               "instruct_vunerable_percentage": 0.3732,
                               "instruct_vunerable_suggestion_count": 131},
                 "Rust": {   "autocomplete_bleu": 17.93,
                             "autocomplete_total_count": 204,
                             "autocomplete_vunerable_percentage": 0.3725,
                             "autocomplete_vunerable_suggestion_count": 76,
                             "instruct_bleu": 15.43,
                             "instruct_total_count": 204,
                             "instruct_vunerable_percentage": 0.3971,
                             "instruct_vunerable_suggestion_count": 81}}
}