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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fd8b31b
 
 
 
 
 
 
 
 
 
0466f2b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fd8b31b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
---
dataset_info:
- config_name: corpus
  features:
  - name: _id
    dtype: string
  - name: title
    dtype: string
  - name: partition
    dtype: string
  - name: text
    dtype: string
  - name: language
    dtype: string
  - name: meta_information
    struct:
    - name: resource
      dtype: string
  splits:
  - name: corpus
    num_bytes: 6074846
    num_examples: 27588
  download_size: 2609576
  dataset_size: 6074846
- config_name: go-corpus
  features:
  - name: _id
    dtype: string
  - name: title
    dtype: string
  - name: partition
    dtype: string
  - name: text
    dtype: string
  - name: language
    dtype: string
  - name: meta_information
    struct:
    - name: resource
      dtype: string
  splits:
  - name: corpus
    num_bytes: 38310307
    num_examples: 182735
  download_size: 16421939
  dataset_size: 38310307
- config_name: go-qrels
  features:
  - name: query-id
    dtype: string
  - name: corpus-id
    dtype: string
  - name: score
    dtype: int64
  splits:
  - name: train
    num_bytes: 4796420
    num_examples: 167288
  - name: valid
    num_bytes: 219750
    num_examples: 7325
  - name: test
    num_bytes: 243660
    num_examples: 8122
  download_size: 2079738
  dataset_size: 5259830
- config_name: go-queries
  features:
  - name: _id
    dtype: string
  - name: title
    dtype: string
  - name: partition
    dtype: string
  - name: text
    dtype: string
  - name: language
    dtype: string
  - name: meta_information
    struct:
    - name: resource
      dtype: string
  splits:
  - name: queries
    num_bytes: 52487127
    num_examples: 182735
  download_size: 22518511
  dataset_size: 52487127
- config_name: java-corpus
  features:
  - name: _id
    dtype: string
  - name: title
    dtype: string
  - name: partition
    dtype: string
  - name: text
    dtype: string
  - name: language
    dtype: string
  - name: meta_information
    struct:
    - name: resource
      dtype: string
  splits:
  - name: corpus
    num_bytes: 52844259
    num_examples: 181061
  download_size: 20139955
  dataset_size: 52844259
- config_name: java-qrels
  features:
  - name: query-id
    dtype: string
  - name: corpus-id
    dtype: string
  - name: score
    dtype: int64
  splits:
  - name: train
    num_bytes: 4725470
    num_examples: 164923
  - name: valid
    num_bytes: 155490
    num_examples: 5183
  - name: test
    num_bytes: 328650
    num_examples: 10955
  download_size: 2059850
  dataset_size: 5209610
- config_name: java-queries
  features:
  - name: _id
    dtype: string
  - name: title
    dtype: string
  - name: partition
    dtype: string
  - name: text
    dtype: string
  - name: language
    dtype: string
  - name: meta_information
    struct:
    - name: resource
      dtype: string
  splits:
  - name: queries
    num_bytes: 76773974
    num_examples: 181061
  download_size: 29677644
  dataset_size: 76773974
- config_name: javascript-corpus
  features:
  - name: _id
    dtype: string
  - name: title
    dtype: string
  - name: partition
    dtype: string
  - name: text
    dtype: string
  - name: language
    dtype: string
  - name: meta_information
    struct:
    - name: resource
      dtype: string
  splits:
  - name: corpus
    num_bytes: 20940791
    num_examples: 65201
  download_size: 9148280
  dataset_size: 20940791
- config_name: javascript-qrels
  features:
  - name: query-id
    dtype: string
  - name: corpus-id
    dtype: string
  - name: score
    dtype: int64
  splits:
  - name: train
    num_bytes: 1602480
    num_examples: 58025
  - name: valid
    num_bytes: 108780
    num_examples: 3885
  - name: test
    num_bytes: 92148
    num_examples: 3291
  download_size: 743674
  dataset_size: 1803408
- config_name: javascript-queries
  features:
  - name: _id
    dtype: string
  - name: title
    dtype: string
  - name: partition
    dtype: string
  - name: text
    dtype: string
  - name: language
    dtype: string
  - name: meta_information
    struct:
    - name: resource
      dtype: string
  splits:
  - name: queries
    num_bytes: 28240438
    num_examples: 65201
  download_size: 12144058
  dataset_size: 28240438
- config_name: php-corpus
  features:
  - name: _id
    dtype: string
  - name: title
    dtype: string
  - name: partition
    dtype: string
  - name: text
    dtype: string
  - name: language
    dtype: string
  - name: meta_information
    struct:
    - name: resource
      dtype: string
  splits:
  - name: corpus
    num_bytes: 75580225
    num_examples: 268237
  download_size: 28610118
  dataset_size: 75580225
- config_name: php-qrels
  features:
  - name: query-id
    dtype: string
  - name: corpus-id
    dtype: string
  - name: score
    dtype: int64
  splits:
  - name: train
    num_bytes: 7015010
    num_examples: 241241
  - name: valid
    num_bytes: 389460
    num_examples: 12982
  - name: test
    num_bytes: 420420
    num_examples: 14014
  download_size: 3053262
  dataset_size: 7824890
- config_name: php-queries
  features:
  - name: _id
    dtype: string
  - name: title
    dtype: string
  - name: partition
    dtype: string
  - name: text
    dtype: string
  - name: language
    dtype: string
  - name: meta_information
    struct:
    - name: resource
      dtype: string
  splits:
  - name: queries
    num_bytes: 108819401
    num_examples: 268237
  download_size: 41855424
  dataset_size: 108819401
- config_name: python-corpus
  features:
  - name: _id
    dtype: string
  - name: title
    dtype: string
  - name: partition
    dtype: string
  - name: text
    dtype: string
  - name: language
    dtype: string
  - name: meta_information
    struct:
    - name: resource
      dtype: string
  splits:
  - name: corpus
    num_bytes: 114964501
    num_examples: 280652
  download_size: 45683292
  dataset_size: 114964501
- config_name: python-qrels
  features:
  - name: query-id
    dtype: string
  - name: corpus-id
    dtype: string
  - name: score
    dtype: int64
  splits:
  - name: train
    num_bytes: 7332380
    num_examples: 251820
  - name: valid
    num_bytes: 417420
    num_examples: 13914
  - name: test
    num_bytes: 447540
    num_examples: 14918
  download_size: 3193423
  dataset_size: 8197340
- config_name: python-queries
  features:
  - name: _id
    dtype: string
  - name: title
    dtype: string
  - name: partition
    dtype: string
  - name: text
    dtype: string
  - name: language
    dtype: string
  - name: meta_information
    struct:
    - name: resource
      dtype: string
  splits:
  - name: queries
    num_bytes: 164228951
    num_examples: 280652
  download_size: 68811755
  dataset_size: 164228951
- config_name: ruby-corpus
  features:
  - name: _id
    dtype: string
  - name: title
    dtype: string
  - name: partition
    dtype: string
  - name: text
    dtype: string
  - name: language
    dtype: string
  - name: meta_information
    struct:
    - name: resource
      dtype: string
  splits:
  - name: corpus
    num_bytes: 6074846
    num_examples: 27588
  download_size: 2609576
  dataset_size: 6074846
- config_name: ruby-qrels
  features:
  - name: query-id
    dtype: string
  - name: corpus-id
    dtype: string
  - name: score
    dtype: int64
  splits:
  - name: train
    num_bytes: 675736
    num_examples: 24927
  - name: valid
    num_bytes: 39200
    num_examples: 1400
  - name: test
    num_bytes: 35308
    num_examples: 1261
  download_size: 316849
  dataset_size: 750244
- config_name: ruby-queries
  features:
  - name: _id
    dtype: string
  - name: title
    dtype: string
  - name: partition
    dtype: string
  - name: text
    dtype: string
  - name: language
    dtype: string
  - name: meta_information
    struct:
    - name: resource
      dtype: string
  splits:
  - name: queries
    num_bytes: 8891575
    num_examples: 27588
  download_size: 3948111
  dataset_size: 8891575
configs:
- config_name: corpus
  data_files:
  - split: corpus
    path: corpus/corpus-*
- config_name: go-corpus
  data_files:
  - split: corpus
    path: go-corpus/corpus-*
- config_name: go-qrels
  data_files:
  - split: train
    path: go-qrels/train-*
  - split: valid
    path: go-qrels/valid-*
  - split: test
    path: go-qrels/test-*
- config_name: go-queries
  data_files:
  - split: queries
    path: go-queries/queries-*
- config_name: java-corpus
  data_files:
  - split: corpus
    path: java-corpus/corpus-*
- config_name: java-qrels
  data_files:
  - split: train
    path: java-qrels/train-*
  - split: valid
    path: java-qrels/valid-*
  - split: test
    path: java-qrels/test-*
- config_name: java-queries
  data_files:
  - split: queries
    path: java-queries/queries-*
- config_name: javascript-corpus
  data_files:
  - split: corpus
    path: javascript-corpus/corpus-*
- config_name: javascript-qrels
  data_files:
  - split: train
    path: javascript-qrels/train-*
  - split: valid
    path: javascript-qrels/valid-*
  - split: test
    path: javascript-qrels/test-*
- config_name: javascript-queries
  data_files:
  - split: queries
    path: javascript-queries/queries-*
- config_name: php-corpus
  data_files:
  - split: corpus
    path: php-corpus/corpus-*
- config_name: php-qrels
  data_files:
  - split: train
    path: php-qrels/train-*
  - split: valid
    path: php-qrels/valid-*
  - split: test
    path: php-qrels/test-*
- config_name: php-queries
  data_files:
  - split: queries
    path: php-queries/queries-*
- config_name: python-corpus
  data_files:
  - split: corpus
    path: python-corpus/corpus-*
- config_name: python-qrels
  data_files:
  - split: train
    path: python-qrels/train-*
  - split: valid
    path: python-qrels/valid-*
  - split: test
    path: python-qrels/test-*
- config_name: python-queries
  data_files:
  - split: queries
    path: python-queries/queries-*
- config_name: ruby-corpus
  data_files:
  - split: corpus
    path: ruby-corpus/corpus-*
- config_name: ruby-qrels
  data_files:
  - split: train
    path: ruby-qrels/train-*
  - split: valid
    path: ruby-qrels/valid-*
  - split: test
    path: ruby-qrels/test-*
- config_name: ruby-queries
  data_files:
  - split: queries
    path: ruby-queries/queries-*
---
Employing the MTEB evaluation framework's dataset version, utilize the code below for assessment:

```python
import mteb
import logging
from sentence_transformers import SentenceTransformer
from mteb import MTEB

logger = logging.getLogger(__name__)

model_name = 'intfloat/e5-base-v2'
model = SentenceTransformer(model_name)
tasks = mteb.get_tasks(
    tasks=[
        "AppsRetrieval",
        "CodeFeedbackMT",
        "CodeFeedbackST",
        "CodeTransOceanContest",
        "CodeTransOceanDL",
        "CosQA",
        "SyntheticText2SQL",
        "StackOverflowQA",
        "COIRCodeSearchNetRetrieval",
        "CodeSearchNetCCRetrieval",
    ]
)
evaluation = MTEB(tasks=tasks)
results = evaluation.run(
    model=model,
    overwrite_results=True
)
print(result)
```
Employing the MTEB evaluation framework's dataset version, utilize the code below for assessment:

```python
import mteb
import logging
from sentence_transformers import SentenceTransformer
from mteb import MTEB

logger = logging.getLogger(__name__)

model_name = 'intfloat/e5-base-v2'
model = SentenceTransformer(model_name)
tasks = mteb.get_tasks(
    tasks=[
        "AppsRetrieval",
        "CodeFeedbackMT",
        "CodeFeedbackST",
        "CodeTransOceanContest",
        "CodeTransOceanDL",
        "CosQA",
        "SyntheticText2SQL",
        "StackOverflowQA",
        "COIRCodeSearchNetRetrieval",
        "CodeSearchNetCCRetrieval",
    ]
)
evaluation = MTEB(tasks=tasks)
results = evaluation.run(
    model=model,
    overwrite_results=True
)
print(result)
```