Datasets:
mteb
/

Modalities:
Text
Formats:
parquet
Languages:
code
ArXiv:
Libraries:
Datasets
pandas
License:
Samoed commited on
Commit
c700824
·
verified ·
1 Parent(s): 6bf1afe

Add dataset card

Browse files
Files changed (1) hide show
  1. README.md +310 -0
README.md CHANGED
@@ -1,4 +1,15 @@
1
  ---
 
 
 
 
 
 
 
 
 
 
 
2
  dataset_info:
3
  - config_name: go-corpus
4
  features:
@@ -313,4 +324,303 @@ configs:
313
  data_files:
314
  - split: test
315
  path: ruby-queries/test-*
 
 
 
316
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ annotations_creators:
3
+ - derived
4
+ language:
5
+ - code
6
+ license: mit
7
+ multilinguality: monolingual
8
+ source_datasets:
9
+ - CoIR-Retrieval/CodeSearchNet-ccr
10
+ task_categories:
11
+ - text-retrieval
12
+ task_ids: []
13
  dataset_info:
14
  - config_name: go-corpus
15
  features:
 
324
  data_files:
325
  - split: test
326
  path: ruby-queries/test-*
327
+ tags:
328
+ - mteb
329
+ - text
330
  ---
331
+ <!-- adapted from https://github.com/huggingface/huggingface_hub/blob/v0.30.2/src/huggingface_hub/templates/datasetcard_template.md -->
332
+
333
+ <div align="center" style="padding: 40px 20px; background-color: white; border-radius: 12px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); max-width: 600px; margin: 0 auto;">
334
+ <h1 style="font-size: 3.5rem; color: #1a1a1a; margin: 0 0 20px 0; letter-spacing: 2px; font-weight: 700;">CodeSearchNetCCRetrieval</h1>
335
+ <div style="font-size: 1.5rem; color: #4a4a4a; margin-bottom: 5px; font-weight: 300;">An <a href="https://github.com/embeddings-benchmark/mteb" style="color: #2c5282; font-weight: 600; text-decoration: none;" onmouseover="this.style.textDecoration='underline'" onmouseout="this.style.textDecoration='none'">MTEB</a> dataset</div>
336
+ <div style="font-size: 0.9rem; color: #2c5282; margin-top: 10px;">Massive Text Embedding Benchmark</div>
337
+ </div>
338
+
339
+ The dataset is a collection of code snippets. The task is to retrieve the most relevant code snippet for a given code snippet.
340
+
341
+ | | |
342
+ |---------------|---------------------------------------------|
343
+ | Task category | t2t |
344
+ | Domains | Programming, Written |
345
+ | Reference | https://arxiv.org/abs/2407.02883 |
346
+
347
+ Source datasets:
348
+ - [CoIR-Retrieval/CodeSearchNet-ccr](https://huggingface.co/datasets/CoIR-Retrieval/CodeSearchNet-ccr)
349
+
350
+
351
+ ## How to evaluate on this task
352
+
353
+ You can evaluate an embedding model on this dataset using the following code:
354
+
355
+ ```python
356
+ import mteb
357
+
358
+ task = mteb.get_task("CodeSearchNetCCRetrieval")
359
+ evaluator = mteb.MTEB([task])
360
+
361
+ model = mteb.get_model(YOUR_MODEL)
362
+ evaluator.run(model)
363
+ ```
364
+
365
+ <!-- Datasets want link to arxiv in readme to autolink dataset with paper -->
366
+ To learn more about how to run models on `mteb` task check out the [GitHub repository](https://github.com/embeddings-benchmark/mteb).
367
+
368
+ ## Citation
369
+
370
+ If you use this dataset, please cite the dataset as well as [mteb](https://github.com/embeddings-benchmark/mteb), as this dataset likely includes additional processing as a part of the [MMTEB Contribution](https://github.com/embeddings-benchmark/mteb/tree/main/docs/mmteb).
371
+
372
+ ```bibtex
373
+
374
+ @misc{li2024coircomprehensivebenchmarkcode,
375
+ archiveprefix = {arXiv},
376
+ author = {Xiangyang Li and Kuicai Dong and Yi Quan Lee and Wei Xia and Yichun Yin and Hao Zhang and Yong Liu and Yasheng Wang and Ruiming Tang},
377
+ eprint = {2407.02883},
378
+ primaryclass = {cs.IR},
379
+ title = {CoIR: A Comprehensive Benchmark for Code Information Retrieval Models},
380
+ url = {https://arxiv.org/abs/2407.02883},
381
+ year = {2024},
382
+ }
383
+
384
+
385
+ @article{enevoldsen2025mmtebmassivemultilingualtext,
386
+ title={MMTEB: Massive Multilingual Text Embedding Benchmark},
387
+ author={Kenneth Enevoldsen and Isaac Chung and Imene Kerboua and Márton Kardos and Ashwin Mathur and David Stap and Jay Gala and Wissam Siblini and Dominik Krzemiński and Genta Indra Winata and Saba Sturua and Saiteja Utpala and Mathieu Ciancone and Marion Schaeffer and Gabriel Sequeira and Diganta Misra and Shreeya Dhakal and Jonathan Rystrøm and Roman Solomatin and Ömer Çağatan and Akash Kundu and Martin Bernstorff and Shitao Xiao and Akshita Sukhlecha and Bhavish Pahwa and Rafał Poświata and Kranthi Kiran GV and Shawon Ashraf and Daniel Auras and Björn Plüster and Jan Philipp Harries and Loïc Magne and Isabelle Mohr and Mariya Hendriksen and Dawei Zhu and Hippolyte Gisserot-Boukhlef and Tom Aarsen and Jan Kostkan and Konrad Wojtasik and Taemin Lee and Marek Šuppa and Crystina Zhang and Roberta Rocca and Mohammed Hamdy and Andrianos Michail and John Yang and Manuel Faysse and Aleksei Vatolin and Nandan Thakur and Manan Dey and Dipam Vasani and Pranjal Chitale and Simone Tedeschi and Nguyen Tai and Artem Snegirev and Michael Günther and Mengzhou Xia and Weijia Shi and Xing Han Lù and Jordan Clive and Gayatri Krishnakumar and Anna Maksimova and Silvan Wehrli and Maria Tikhonova and Henil Panchal and Aleksandr Abramov and Malte Ostendorff and Zheng Liu and Simon Clematide and Lester James Miranda and Alena Fenogenova and Guangyu Song and Ruqiya Bin Safi and Wen-Ding Li and Alessia Borghini and Federico Cassano and Hongjin Su and Jimmy Lin and Howard Yen and Lasse Hansen and Sara Hooker and Chenghao Xiao and Vaibhav Adlakha and Orion Weller and Siva Reddy and Niklas Muennighoff},
388
+ publisher = {arXiv},
389
+ journal={arXiv preprint arXiv:2502.13595},
390
+ year={2025},
391
+ url={https://arxiv.org/abs/2502.13595},
392
+ doi = {10.48550/arXiv.2502.13595},
393
+ }
394
+
395
+ @article{muennighoff2022mteb,
396
+ author = {Muennighoff, Niklas and Tazi, Nouamane and Magne, Loïc and Reimers, Nils},
397
+ title = {MTEB: Massive Text Embedding Benchmark},
398
+ publisher = {arXiv},
399
+ journal={arXiv preprint arXiv:2210.07316},
400
+ year = {2022}
401
+ url = {https://arxiv.org/abs/2210.07316},
402
+ doi = {10.48550/ARXIV.2210.07316},
403
+ }
404
+ ```
405
+
406
+ # Dataset Statistics
407
+ <details>
408
+ <summary> Dataset Statistics</summary>
409
+
410
+ The following code contains the descriptive statistics from the task. These can also be obtained using:
411
+
412
+ ```python
413
+ import mteb
414
+
415
+ task = mteb.get_task("CodeSearchNetCCRetrieval")
416
+
417
+ desc_stats = task.metadata.descriptive_stats
418
+ ```
419
+
420
+ ```json
421
+ {
422
+ "test": {
423
+ "num_samples": 1058035,
424
+ "number_of_characters": 284081702,
425
+ "documents_text_statistics": {
426
+ "total_text_length": 263684735,
427
+ "min_text_length": 16,
428
+ "average_text_length": 262.249182972409,
429
+ "max_text_length": 139971,
430
+ "unique_texts": 995481
431
+ },
432
+ "documents_image_statistics": null,
433
+ "queries_text_statistics": {
434
+ "total_text_length": 20396967,
435
+ "min_text_length": 23,
436
+ "average_text_length": 388.06276516809044,
437
+ "max_text_length": 214210,
438
+ "unique_texts": 52439
439
+ },
440
+ "queries_image_statistics": null,
441
+ "relevant_docs_statistics": {
442
+ "num_relevant_docs": 52561,
443
+ "min_relevant_docs_per_query": 1,
444
+ "average_relevant_docs_per_query": 1.0,
445
+ "max_relevant_docs_per_query": 1,
446
+ "unique_relevant_docs": 52561
447
+ },
448
+ "top_ranked_statistics": null,
449
+ "hf_subset_descriptive_stats": {
450
+ "python": {
451
+ "num_samples": 295570,
452
+ "number_of_characters": 109985967,
453
+ "documents_text_statistics": {
454
+ "total_text_length": 101754313,
455
+ "min_text_length": 16,
456
+ "average_text_length": 362.56400453230333,
457
+ "max_text_length": 10111,
458
+ "unique_texts": 280036
459
+ },
460
+ "documents_image_statistics": null,
461
+ "queries_text_statistics": {
462
+ "total_text_length": 8231654,
463
+ "min_text_length": 38,
464
+ "average_text_length": 551.7934039415471,
465
+ "max_text_length": 8326,
466
+ "unique_texts": 14918
467
+ },
468
+ "queries_image_statistics": null,
469
+ "relevant_docs_statistics": {
470
+ "num_relevant_docs": 14918,
471
+ "min_relevant_docs_per_query": 1,
472
+ "average_relevant_docs_per_query": 1.0,
473
+ "max_relevant_docs_per_query": 1,
474
+ "unique_relevant_docs": 14918
475
+ },
476
+ "top_ranked_statistics": null
477
+ },
478
+ "javascript": {
479
+ "num_samples": 68492,
480
+ "number_of_characters": 18661880,
481
+ "documents_text_statistics": {
482
+ "total_text_length": 17201640,
483
+ "min_text_length": 17,
484
+ "average_text_length": 263.8247879633748,
485
+ "max_text_length": 139971,
486
+ "unique_texts": 64779
487
+ },
488
+ "documents_image_statistics": null,
489
+ "queries_text_statistics": {
490
+ "total_text_length": 1460240,
491
+ "min_text_length": 40,
492
+ "average_text_length": 443.70707991491946,
493
+ "max_text_length": 214210,
494
+ "unique_texts": 3291
495
+ },
496
+ "queries_image_statistics": null,
497
+ "relevant_docs_statistics": {
498
+ "num_relevant_docs": 3291,
499
+ "min_relevant_docs_per_query": 1,
500
+ "average_relevant_docs_per_query": 1.0,
501
+ "max_relevant_docs_per_query": 1,
502
+ "unique_relevant_docs": 3291
503
+ },
504
+ "top_ranked_statistics": null
505
+ },
506
+ "go": {
507
+ "num_samples": 190857,
508
+ "number_of_characters": 33082384,
509
+ "documents_text_statistics": {
510
+ "total_text_length": 31183720,
511
+ "min_text_length": 16,
512
+ "average_text_length": 170.64995758885817,
513
+ "max_text_length": 51245,
514
+ "unique_texts": 179845
515
+ },
516
+ "documents_image_statistics": null,
517
+ "queries_text_statistics": {
518
+ "total_text_length": 1898664,
519
+ "min_text_length": 23,
520
+ "average_text_length": 233.76803742920464,
521
+ "max_text_length": 3589,
522
+ "unique_texts": 8122
523
+ },
524
+ "queries_image_statistics": null,
525
+ "relevant_docs_statistics": {
526
+ "num_relevant_docs": 8122,
527
+ "min_relevant_docs_per_query": 1,
528
+ "average_relevant_docs_per_query": 1.0,
529
+ "max_relevant_docs_per_query": 1,
530
+ "unique_relevant_docs": 8122
531
+ },
532
+ "top_ranked_statistics": null
533
+ },
534
+ "ruby": {
535
+ "num_samples": 28849,
536
+ "number_of_characters": 5236077,
537
+ "documents_text_statistics": {
538
+ "total_text_length": 4899550,
539
+ "min_text_length": 19,
540
+ "average_text_length": 177.59714368566043,
541
+ "max_text_length": 6201,
542
+ "unique_texts": 26997
543
+ },
544
+ "documents_image_statistics": null,
545
+ "queries_text_statistics": {
546
+ "total_text_length": 336527,
547
+ "min_text_length": 36,
548
+ "average_text_length": 266.8731165741475,
549
+ "max_text_length": 2244,
550
+ "unique_texts": 1261
551
+ },
552
+ "queries_image_statistics": null,
553
+ "relevant_docs_statistics": {
554
+ "num_relevant_docs": 1261,
555
+ "min_relevant_docs_per_query": 1,
556
+ "average_relevant_docs_per_query": 1.0,
557
+ "max_relevant_docs_per_query": 1,
558
+ "unique_relevant_docs": 1261
559
+ },
560
+ "top_ranked_statistics": null
561
+ },
562
+ "java": {
563
+ "num_samples": 192016,
564
+ "number_of_characters": 48626999,
565
+ "documents_text_statistics": {
566
+ "total_text_length": 44874537,
567
+ "min_text_length": 21,
568
+ "average_text_length": 247.8420918916829,
569
+ "max_text_length": 15046,
570
+ "unique_texts": 178984
571
+ },
572
+ "documents_image_statistics": null,
573
+ "queries_text_statistics": {
574
+ "total_text_length": 3752462,
575
+ "min_text_length": 38,
576
+ "average_text_length": 342.5341853035144,
577
+ "max_text_length": 5066,
578
+ "unique_texts": 10844
579
+ },
580
+ "queries_image_statistics": null,
581
+ "relevant_docs_statistics": {
582
+ "num_relevant_docs": 10955,
583
+ "min_relevant_docs_per_query": 1,
584
+ "average_relevant_docs_per_query": 1.0,
585
+ "max_relevant_docs_per_query": 1,
586
+ "unique_relevant_docs": 10955
587
+ },
588
+ "top_ranked_statistics": null
589
+ },
590
+ "php": {
591
+ "num_samples": 282251,
592
+ "number_of_characters": 68488395,
593
+ "documents_text_statistics": {
594
+ "total_text_length": 63770975,
595
+ "min_text_length": 20,
596
+ "average_text_length": 237.74115800579338,
597
+ "max_text_length": 6961,
598
+ "unique_texts": 264876
599
+ },
600
+ "documents_image_statistics": null,
601
+ "queries_text_statistics": {
602
+ "total_text_length": 4717420,
603
+ "min_text_length": 40,
604
+ "average_text_length": 336.62194947909234,
605
+ "max_text_length": 2995,
606
+ "unique_texts": 14003
607
+ },
608
+ "queries_image_statistics": null,
609
+ "relevant_docs_statistics": {
610
+ "num_relevant_docs": 14014,
611
+ "min_relevant_docs_per_query": 1,
612
+ "average_relevant_docs_per_query": 1.0,
613
+ "max_relevant_docs_per_query": 1,
614
+ "unique_relevant_docs": 14014
615
+ },
616
+ "top_ranked_statistics": null
617
+ }
618
+ }
619
+ }
620
+ }
621
+ ```
622
+
623
+ </details>
624
+
625
+ ---
626
+ *This dataset card was automatically generated using [MTEB](https://github.com/embeddings-benchmark/mteb)*