File size: 175,394 Bytes
8b7ab06
 
 
 
 
 
 
734b659
 
 
 
 
 
 
 
 
8b7ab06
 
734b659
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8b7ab06
734b659
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8b7ab06
 
 
734b659
8b7ab06
 
 
 
 
 
 
 
 
 
734b659
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8b7ab06
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
734b659
8b7ab06
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
734b659
8b7ab06
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
734b659
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8b7ab06
 
 
 
 
 
 
 
 
 
 
 
 
 
734b659
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8b7ab06
 
 
 
 
 
 
 
 
 
 
 
 
734b659
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8b7ab06
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
---
tags:
- ColBERT
- PyLate
- sentence-transformers
- sentence-similarity
- feature-extraction
- generated_from_trainer
- dataset_size:2117771
- loss:Contrastive
- code
- embeddings
- retrieval
- code search
datasets:
- lightonai/nv-embed-supervised-distill-dedup-code
pipeline_tag: sentence-similarity
library_name: PyLate
license: apache-2.0
language:
- en
- code
metrics:
- MaxSim_accuracy@1
- MaxSim_accuracy@3
- MaxSim_accuracy@5
- MaxSim_accuracy@10
- MaxSim_precision@1
- MaxSim_precision@3
- MaxSim_precision@5
- MaxSim_precision@10
- MaxSim_recall@1
- MaxSim_recall@3
- MaxSim_recall@5
- MaxSim_recall@10
- MaxSim_ndcg@10
- MaxSim_mrr@10
- MaxSim_map@100
model-index:
- name: PyLate
  results:
  - task:
      type: py-late-information-retrieval
      name: Py Late Information Retrieval
    dataset:
      name: CodeSearchNetPython
      type: CodeSearchNetPython
    metrics:
    - type: MaxSim_accuracy@1
      value: 0.884
      name: Maxsim Accuracy@1
    - type: MaxSim_accuracy@3
      value: 0.965
      name: Maxsim Accuracy@3
    - type: MaxSim_accuracy@5
      value: 0.976
      name: Maxsim Accuracy@5
    - type: MaxSim_accuracy@10
      value: 0.984
      name: Maxsim Accuracy@10
    - type: MaxSim_precision@1
      value: 0.884
      name: Maxsim Precision@1
    - type: MaxSim_precision@3
      value: 0.32166666666666666
      name: Maxsim Precision@3
    - type: MaxSim_precision@5
      value: 0.1952
      name: Maxsim Precision@5
    - type: MaxSim_precision@10
      value: 0.09840000000000002
      name: Maxsim Precision@10
    - type: MaxSim_recall@1
      value: 0.884
      name: Maxsim Recall@1
    - type: MaxSim_recall@3
      value: 0.965
      name: Maxsim Recall@3
    - type: MaxSim_recall@5
      value: 0.976
      name: Maxsim Recall@5
    - type: MaxSim_recall@10
      value: 0.984
      name: Maxsim Recall@10
    - type: MaxSim_ndcg@10
      value: 0.9393498920989748
      name: Maxsim Ndcg@10
    - type: MaxSim_mrr@10
      value: 0.924423015873016
      name: Maxsim Mrr@10
    - type: MaxSim_map@100
      value: 0.9250373225417896
      name: Maxsim Map@100
  - task:
      type: py-late-information-retrieval
      name: Py Late Information Retrieval
    dataset:
      name: CodeSearchNetJavascript
      type: CodeSearchNetJavascript
    metrics:
    - type: MaxSim_accuracy@1
      value: 0.737
      name: Maxsim Accuracy@1
    - type: MaxSim_accuracy@3
      value: 0.839
      name: Maxsim Accuracy@3
    - type: MaxSim_accuracy@5
      value: 0.866
      name: Maxsim Accuracy@5
    - type: MaxSim_accuracy@10
      value: 0.888
      name: Maxsim Accuracy@10
    - type: MaxSim_precision@1
      value: 0.737
      name: Maxsim Precision@1
    - type: MaxSim_precision@3
      value: 0.2796666666666666
      name: Maxsim Precision@3
    - type: MaxSim_precision@5
      value: 0.17320000000000002
      name: Maxsim Precision@5
    - type: MaxSim_precision@10
      value: 0.08880000000000002
      name: Maxsim Precision@10
    - type: MaxSim_recall@1
      value: 0.737
      name: Maxsim Recall@1
    - type: MaxSim_recall@3
      value: 0.839
      name: Maxsim Recall@3
    - type: MaxSim_recall@5
      value: 0.866
      name: Maxsim Recall@5
    - type: MaxSim_recall@10
      value: 0.888
      name: Maxsim Recall@10
    - type: MaxSim_ndcg@10
      value: 0.8168737199688113
      name: Maxsim Ndcg@10
    - type: MaxSim_mrr@10
      value: 0.7936519841269841
      name: Maxsim Mrr@10
    - type: MaxSim_map@100
      value: 0.7964670742583586
      name: Maxsim Map@100
  - task:
      type: py-late-information-retrieval
      name: Py Late Information Retrieval
    dataset:
      name: CodeSearchNetGo
      type: CodeSearchNetGo
    metrics:
    - type: MaxSim_accuracy@1
      value: 0.913
      name: Maxsim Accuracy@1
    - type: MaxSim_accuracy@3
      value: 0.98
      name: Maxsim Accuracy@3
    - type: MaxSim_accuracy@5
      value: 0.986
      name: Maxsim Accuracy@5
    - type: MaxSim_accuracy@10
      value: 0.989
      name: Maxsim Accuracy@10
    - type: MaxSim_precision@1
      value: 0.913
      name: Maxsim Precision@1
    - type: MaxSim_precision@3
      value: 0.3266666666666666
      name: Maxsim Precision@3
    - type: MaxSim_precision@5
      value: 0.19720000000000004
      name: Maxsim Precision@5
    - type: MaxSim_precision@10
      value: 0.0989
      name: Maxsim Precision@10
    - type: MaxSim_recall@1
      value: 0.913
      name: Maxsim Recall@1
    - type: MaxSim_recall@3
      value: 0.98
      name: Maxsim Recall@3
    - type: MaxSim_recall@5
      value: 0.986
      name: Maxsim Recall@5
    - type: MaxSim_recall@10
      value: 0.989
      name: Maxsim Recall@10
    - type: MaxSim_ndcg@10
      value: 0.9577258279485291
      name: Maxsim Ndcg@10
    - type: MaxSim_mrr@10
      value: 0.9470083333333337
      name: Maxsim Mrr@10
    - type: MaxSim_map@100
      value: 0.9473656496281496
      name: Maxsim Map@100
  - task:
      type: py-late-information-retrieval
      name: Py Late Information Retrieval
    dataset:
      name: CodeSearchNetRuby
      type: CodeSearchNetRuby
    metrics:
    - type: MaxSim_accuracy@1
      value: 0.776
      name: Maxsim Accuracy@1
    - type: MaxSim_accuracy@3
      value: 0.895
      name: Maxsim Accuracy@3
    - type: MaxSim_accuracy@5
      value: 0.923
      name: Maxsim Accuracy@5
    - type: MaxSim_accuracy@10
      value: 0.936
      name: Maxsim Accuracy@10
    - type: MaxSim_precision@1
      value: 0.776
      name: Maxsim Precision@1
    - type: MaxSim_precision@3
      value: 0.29833333333333334
      name: Maxsim Precision@3
    - type: MaxSim_precision@5
      value: 0.18460000000000001
      name: Maxsim Precision@5
    - type: MaxSim_precision@10
      value: 0.0936
      name: Maxsim Precision@10
    - type: MaxSim_recall@1
      value: 0.776
      name: Maxsim Recall@1
    - type: MaxSim_recall@3
      value: 0.895
      name: Maxsim Recall@3
    - type: MaxSim_recall@5
      value: 0.923
      name: Maxsim Recall@5
    - type: MaxSim_recall@10
      value: 0.936
      name: Maxsim Recall@10
    - type: MaxSim_ndcg@10
      value: 0.8617836059944013
      name: Maxsim Ndcg@10
    - type: MaxSim_mrr@10
      value: 0.8371789682539686
      name: Maxsim Mrr@10
    - type: MaxSim_map@100
      value: 0.8385423447059968
      name: Maxsim Map@100
  - task:
      type: py-late-information-retrieval
      name: Py Late Information Retrieval
    dataset:
      name: CodeSearchNetJava
      type: CodeSearchNetJava
    metrics:
    - type: MaxSim_accuracy@1
      value: 0.814
      name: Maxsim Accuracy@1
    - type: MaxSim_accuracy@3
      value: 0.938
      name: Maxsim Accuracy@3
    - type: MaxSim_accuracy@5
      value: 0.948
      name: Maxsim Accuracy@5
    - type: MaxSim_accuracy@10
      value: 0.961
      name: Maxsim Accuracy@10
    - type: MaxSim_precision@1
      value: 0.814
      name: Maxsim Precision@1
    - type: MaxSim_precision@3
      value: 0.31266666666666665
      name: Maxsim Precision@3
    - type: MaxSim_precision@5
      value: 0.18960000000000002
      name: Maxsim Precision@5
    - type: MaxSim_precision@10
      value: 0.09610000000000002
      name: Maxsim Precision@10
    - type: MaxSim_recall@1
      value: 0.814
      name: Maxsim Recall@1
    - type: MaxSim_recall@3
      value: 0.938
      name: Maxsim Recall@3
    - type: MaxSim_recall@5
      value: 0.948
      name: Maxsim Recall@5
    - type: MaxSim_recall@10
      value: 0.961
      name: Maxsim Recall@10
    - type: MaxSim_ndcg@10
      value: 0.8977616575079257
      name: Maxsim Ndcg@10
    - type: MaxSim_mrr@10
      value: 0.8764706349206353
      name: Maxsim Mrr@10
    - type: MaxSim_map@100
      value: 0.877266009160209
      name: Maxsim Map@100
  - task:
      type: py-late-information-retrieval
      name: Py Late Information Retrieval
    dataset:
      name: CodeSearchNetPhp
      type: CodeSearchNetPhp
    metrics:
    - type: MaxSim_accuracy@1
      value: 0.811
      name: Maxsim Accuracy@1
    - type: MaxSim_accuracy@3
      value: 0.922
      name: Maxsim Accuracy@3
    - type: MaxSim_accuracy@5
      value: 0.947
      name: Maxsim Accuracy@5
    - type: MaxSim_accuracy@10
      value: 0.96
      name: Maxsim Accuracy@10
    - type: MaxSim_precision@1
      value: 0.811
      name: Maxsim Precision@1
    - type: MaxSim_precision@3
      value: 0.30733333333333324
      name: Maxsim Precision@3
    - type: MaxSim_precision@5
      value: 0.1894
      name: Maxsim Precision@5
    - type: MaxSim_precision@10
      value: 0.09600000000000002
      name: Maxsim Precision@10
    - type: MaxSim_recall@1
      value: 0.811
      name: Maxsim Recall@1
    - type: MaxSim_recall@3
      value: 0.922
      name: Maxsim Recall@3
    - type: MaxSim_recall@5
      value: 0.947
      name: Maxsim Recall@5
    - type: MaxSim_recall@10
      value: 0.96
      name: Maxsim Recall@10
    - type: MaxSim_ndcg@10
      value: 0.8917992139530548
      name: Maxsim Ndcg@10
    - type: MaxSim_mrr@10
      value: 0.8691448412698418
      name: Maxsim Mrr@10
    - type: MaxSim_map@100
      value: 0.8695716889369961
      name: Maxsim Map@100
  - task:
      type: code-search-network
      name: Code Search Network
    dataset:
      name: CodeSearchNet mean
      type: CodeSearchNet_mean
    metrics:
    - type: MaxSim_accuracy@1
      value: 0.8224999999999999
      name: Maxsim Accuracy@1
    - type: MaxSim_accuracy@3
      value: 0.9231666666666666
      name: Maxsim Accuracy@3
    - type: MaxSim_accuracy@5
      value: 0.941
      name: Maxsim Accuracy@5
    - type: MaxSim_accuracy@10
      value: 0.953
      name: Maxsim Accuracy@10
    - type: MaxSim_precision@1
      value: 0.8224999999999999
      name: Maxsim Precision@1
    - type: MaxSim_precision@3
      value: 0.3077222222222222
      name: Maxsim Precision@3
    - type: MaxSim_precision@5
      value: 0.1882
      name: Maxsim Precision@5
    - type: MaxSim_precision@10
      value: 0.09530000000000001
      name: Maxsim Precision@10
    - type: MaxSim_recall@1
      value: 0.8224999999999999
      name: Maxsim Recall@1
    - type: MaxSim_recall@3
      value: 0.9231666666666666
      name: Maxsim Recall@3
    - type: MaxSim_recall@5
      value: 0.941
      name: Maxsim Recall@5
    - type: MaxSim_recall@10
      value: 0.953
      name: Maxsim Recall@10
    - type: MaxSim_ndcg@10
      value: 0.8942156529119495
      name: Maxsim Ndcg@10
    - type: MaxSim_mrr@10
      value: 0.8746462962962966
      name: Maxsim Mrr@10
    - type: MaxSim_map@100
      value: 0.8757083482052499
      name: Maxsim Map@100
---
<img src="https://cdn-uploads.huggingface.co/production/uploads/609bbe2f4932693ca2009d6a/BWfClY8hoQIS_Qf9rVa__.png" width="700" height="auto">

# LateOn-Code

The [LateOn-Code collection](https://huggingface.co/collections/lightonai/lateon-code) is composed of [PyLate](https://github.com/lightonai/pylate) models optimized for code retrieval. These late interaction models are first pre-trained following the methodology of [CoRNStack](https://arxiv.org/pdf/2412.01007). These pre-trained models are then further fine-tuned on train sets of CoIR using the [nv-retriever](https://arxiv.org/abs/2407.15831) methodology to mine hard negatives while preventing false negatives. 

We started from the two best ColBERT models on the BEIR benchmark for their respective sizes. The first one, [LateOn-Code](https://huggingface.co/lightonai/LateOn-Code) is based on in-house LateOn model, a new version of [GTE-ModernColBERT-v1](https://huggingface.co/lightonai/GTE-ModernColBERT-v1) built on ModernBERT-base (also developed at LightOn). This version underwent significantly deeper training, crossing the 57 mark on BEIR, almost a 2.5-point improvement and is thus SOTA by a large margin. We'll release this base model along with training data and boilerplates in the near future, so stay tuned\! The second, [LateOn-Code-edge](https://huggingface.co/lightonai/LateOn-Code-edge) is a smaller model based on the [edge-colbert model family from mixedbread](https://www.mixedbread.com/blog/edge-v0), using the [smallest variant (Ettin-17M)](https://huggingface.co/mixedbread-ai/mxbai-edge-colbert-v0-17m) for maximum efficiency. For more details on the training setup, please refer to our [blogpost](https://huggingface.co/blog/lightonai/colgrep-lateon-code). 

The original [CoRNStack data](https://huggingface.co/collections/nomic-ai/cornstack) in a format compatible with PyLate can be found [here](https://huggingface.co/datasets/lightonai/cornstack) while the fine-tuning data can be found [here](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code). Training boilerplates can be found [here in the PyLate repository](https://github.com/lightonai/pylate/tree/main/examples/train/lateon_code)

## MTEB (Code, v1) benchmark results
<img src="https://cdn-uploads.huggingface.co/production/uploads/609bbe2f4932693ca2009d6a/Dw9JADjB5tdiSsv4wiDbe.png" width="1000" height="auto">

Pre-trained models achieve very competitive results as the 17M model outperforms the very strong granite-embedding-small-english-r2 by an average of 1.7. This is truly impressive, as the granite model is almost three times bigger (17M vs 48M), but is also a beast on its own in the <100M parameters range. It also outperforms the larger granite variant (149M). The larger version nicely scales by improving over the performance of its little sibling by 6.5 on average.

Although the pre-training results are already very impressive given that they are mostly out-of-domain, running a proper fine-tuning using the training data of CoIR significantly boost the performance of the models. Notably, the 17M model increases from 57.50 to 66.64 (+9.14), getting pretty close to EmbeddingGemma-300M while being 17 times smaller. The larger one increases from 63.77 to 74.12 (+10.35), strongly outperforming EmbeddingGemma-300M and getting closer to strong LLM models such as Qwen3-Embedding-0.6B and C2LLM-0.5B while being much smaller.

| Model | Params | Type | **Avg** | Apps | COIR CSNet | CodeEdit | CodeFB MT | CodeFB ST | CSNet CC | CSNet | CodeTrans Contest | CodeTrans DL | CosQA | StackOF QA | Synth T2SQL |
|:---|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|
| **Baseline** | | | | | | | | | | | | | | | |
| BM25 | - | Lexical | 44.41 | 4.76 | 40.86 | 49.85 | 59.19 | 68.15 | 53.97 | 60.01 | 47.78 | 34.42 | 18.75 | 70.26 | 24.94 |
| **Small (≤50M)** | | | | | | | | | | | | | | | |
| granite-embedding-small-english-r2 | 47M | Single vector | 55.84 | 13.54 | 60.46 | 57.16 | 52.19 | 76.85 | 48.42 | 78.28 | **77.63** | 33.63 | 35.58 | **90.04** | 46.33 |
| [LateOn-Code-edge-pretrain](https://huggingface.co/lightonai/LateOn-Code-edge-pretrain) | 17M | Multi vector | 57.50 | 10.81 | 73.78 | 62.07 | 51.92 | 76.65 | 63.22 | **88.03** | 71.31 | 33.16 | 30.53 | 74.63 | 53.83 |
| [LateOn-Code-edge](https://huggingface.co/lightonai/LateOn-Code-edge) | 17M | Multi vector | **66.64** | **26.22** | **81.60** | **62.21** | **74.25** | **87.12** | **79.26** | 87.85 | 75.36 | **37.08** | **40.54** | 85.63 | **62.57** |
| *Δ (fine-tune - pretrain)* | | | *+9.14* | *+15.41* | *+7.82* | *+0.14* | *+22.33* | *+10.47* | *+16.04* | *-0.18* | *+4.05* | *+3.92* | *+10.01* | *+11.00* | *+8.74* |
| **Medium (100M–300M)** | | | | | | | | | | | | | | | |
| granite-embedding-english-r2 | 149M | Single vector | 57.22 | 13.96 | 64.65 | 59.35 | 52.54 | 77.18 | 47.67 | 80.79 | 77.07 | 35.03 | 37.01 | 91.80 | 49.55 |
| CodeRankEmbed | 137M | Single vector | 60.47 | 23.45 | 83.20 | 59.98 | 42.61 | 78.10 | 68.89 | 89.50 | 66.43 | 34.49 | 35.17 | 80.53 | 63.27 |
| GTE-ModernBERT | 149M | Single vector | 71.66 | 57.72 | 83.10 | 55.83 | **86.15** | 86.00 | **93.61** | 88.76 | 72.35 | 37.27 | 43.36 | 91.14 | **64.61** |
| embeddinggemma-300m | 300M | Single vector | 68.76 | **<u>84.39</u>** | 75.54 | 62.10 | 51.42 | 80.26 | 73.71 | 90.15 | 85.51 | 33.52 | 43.60 | 86.47 | 58.42 |
| [LateOn-Code-pretrain](https://huggingface.co/lightonai/LateOn-Code-pretrain) | 149M | Multi vector | 63.77 | 23.09 | 80.27 | **68.74** | 50.21 | 82.66 | 71.47 | **<u>91.05</u>** | 82.20 | 34.46 | 34.15 | 85.61 | 61.34 |
| [LateOn-Code](https://huggingface.co/lightonai/LateOn-Code) | 149M | Multi vector | **74.12** | 54.76 | **86.57** | 64.99 | 82.22 | **<u>90.40</u>** | 89.32 | 90.40 | **<u>87.44</u>** | **<u>41.00</u>** | **<u>45.23</u>** | **<u>93.43</u>** | 63.67 |
| *Δ (fine-tune - pretrain)* | | | *+10.35* | *+31.67* | *+6.30* | *-3.75* | *+32.01* | *+7.74* | *+17.85* | *-0.65* | *+5.24* | *+6.54* | *+11.08* | *+7.82* | *+2.33* |
| **Large (≥500M)** | | | | | | | | | | | | | | | |
| C2LLM-0.5B | 500M | Single vector | **<u>75.46</u>** | 61.02 | **<u>86.71</u>** | **<u>71.39</u>** | **<u>92.29</u>** | 88.63 | **<u>96.29</u>** | 89.20 | 84.27 | **33.99** | **38.30** | 89.40 | 74.08 |
| Qwen3-Embedding-0.6B | 600M | Single vector | 75.42 | **75.34** | 84.69 | 64.42 | 90.82 | **86.39** | 91.72 | **91.01** | **86.05** | 31.36 | 36.48 | **89.99** | **<u>76.74</u>** |

Best result across all sizes is <u>underlined</u>. Best within each size category is **bolded**.

# Colgrep

The LateOn-Code family model can easily be used within ColGrep, an easy-to-use search tool that give their powerful search capabilities to coding agent. It has been designed to extend grep capabilities to get the best of both world and is very effective to enhance the quality of the answer while diminishing answer time and tokens consumption. Given the performance of the very light-weight 17M model, it can easily run quickly on any computer.

## Install ColGrep
```bash
# macOS / Linux
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/lightonai/next-plaid/releases/latest/download/colgrep-installer.sh | sh

# Windows (PowerShell)
powershell -c "irm https://github.com/lightonai/next-plaid/releases/latest/download/colgrep-installer.ps1 | iex"
```

## Search

```bash
# Semantic search — find code by meaning
colgrep "function that retries HTTP requests"

# Regex search
colgrep -e "async fn\s+\w+"

# Hybrid — regex narrows candidates, semantics ranks them
colgrep -e "Result<" "error handling" --include="*.rs"
```

## Install for Claude Code

```bash
colgrep --install-claude-code
```

## Choose a Model

```bash
# Set the model
colgrep set-model lightonai/LateOn-Code  # default: lightonai/LateOn-Code-edge
```
For more information about ColGrep, please refer to the [official documentation](https://github.com/lightonai/next-plaid/tree/main/colgrep)


# PyLate

This is a [PyLate](https://github.com/lightonai/pylate) model finetuned from [lightonai/LateOn-Code-pretrain](https://huggingface.co/lightonai/LateOn-Code-pretrain) on the [apps](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code), [synthetictext2sql](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code), [cosqa](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code), [codefeedbackst](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code), [codefeedbackmt](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code), [stackoverflowqa](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code), [codetranscontest](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code), [codetransdl](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code), [CodeSearchNet_go](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code), [CodeSearchNet_java](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code), [CodeSearchNet_javascript](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code), [CodeSearchNet_php](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code), [CodeSearchNet_python](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code), [CodeSearchNet_ruby](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code), [CodeSearchNet_ccr_go](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code), [CodeSearchNet_ccr_java](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code), [CodeSearchNet_ccr_javascript](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code), [CodeSearchNet_ccr_php](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code), [CodeSearchNet_ccr_python](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code) and [CodeSearchNet_ccr_ruby](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code) datasets. It maps sentences & paragraphs to sequences of 128-dimensional dense vectors and can be used for semantic textual similarity using the MaxSim operator.

## Model Details

### Model Description
- **Model Type:** PyLate model
<!-- - **Base model:** [Unknown](https://huggingface.co/unknown) -->
- **Document Length:** 2048 tokens
- **Query Length:** 256 tokens
- **Output Dimensionality:** 128 tokens
- **Similarity Function:** MaxSim
- **Training Datasets:**
    - [apps](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code)
    - [synthetictext2sql](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code)
    - [cosqa](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code)
    - [codefeedbackst](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code)
    - [codefeedbackmt](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code)
    - [stackoverflowqa](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code)
    - [codetranscontest](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code)
    - [codetransdl](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code)
    - [CodeSearchNet_go](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code)
    - [CodeSearchNet_java](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code)
    - [CodeSearchNet_javascript](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code)
    - [CodeSearchNet_php](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code)
    - [CodeSearchNet_python](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code)
    - [CodeSearchNet_ruby](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code)
    - [CodeSearchNet_ccr_go](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code)
    - [CodeSearchNet_ccr_java](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code)
    - [CodeSearchNet_ccr_javascript](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code)
    - [CodeSearchNet_ccr_php](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code)
    - [CodeSearchNet_ccr_python](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code)
    - [CodeSearchNet_ccr_ruby](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code)
- **Language:** English, code
- **License:** Apache 2.0

### Model Sources

- **Documentation:** [PyLate Documentation](https://lightonai.github.io/pylate/)
- **Repository:** [PyLate on GitHub](https://github.com/lightonai/pylate)
- **Hugging Face:** [PyLate models on Hugging Face](https://huggingface.co/models?library=PyLate)

### Full Model Architecture

```
ColBERT(
  (0): Transformer({'max_seq_length': 2047, 'do_lower_case': False, 'architecture': 'ModernBertModel'})
  (1): Dense({'in_features': 768, 'out_features': 128, 'bias': False, 'activation_function': 'torch.nn.modules.linear.Identity', 'use_residual': False})
)
```

## Usage
First install the PyLate library:

```bash
pip install -U pylate
```

### Retrieval

Use this model with PyLate to index and retrieve documents. The index uses [FastPLAID](https://github.com/lightonai/fast-plaid) for efficient similarity search.

#### Indexing documents

Load the ColBERT model and initialize the PLAID index, then encode and index your documents:

```python
from pylate import indexes, models, retrieve

# Step 1: Load the ColBERT model
model = models.ColBERT(
    model_name_or_path="pylate_model_id",
)

# Step 2: Initialize the PLAID index
index = indexes.PLAID(
    index_folder="pylate-index",
    index_name="index",
    override=True,  # This overwrites the existing index if any
)

# Step 3: Encode the documents
documents_ids = ["1", "2", "3"]
documents = ["document 1 text", "document 2 text", "document 3 text"]

documents_embeddings = model.encode(
    documents,
    batch_size=32,
    is_query=False,  # Ensure that it is set to False to indicate that these are documents, not queries
    show_progress_bar=True,
)

# Step 4: Add document embeddings to the index by providing embeddings and corresponding ids
index.add_documents(
    documents_ids=documents_ids,
    documents_embeddings=documents_embeddings,
)
```

Note that you do not have to recreate the index and encode the documents every time. Once you have created an index and added the documents, you can re-use the index later by loading it:

```python
# To load an index, simply instantiate it with the correct folder/name and without overriding it
index = indexes.PLAID(
    index_folder="pylate-index",
    index_name="index",
)
```

#### Retrieving top-k documents for queries

Once the documents are indexed, you can retrieve the top-k most relevant documents for a given set of queries.
To do so, initialize the ColBERT retriever with the index you want to search in, encode the queries and then retrieve the top-k documents to get the top matches ids and relevance scores:

```python
# Step 1: Initialize the ColBERT retriever
retriever = retrieve.ColBERT(index=index)

# Step 2: Encode the queries
queries_embeddings = model.encode(
    ["query for document 3", "query for document 1"],
    batch_size=32,
    is_query=True,  #  # Ensure that it is set to False to indicate that these are queries
    show_progress_bar=True,
)

# Step 3: Retrieve top-k documents
scores = retriever.retrieve(
    queries_embeddings=queries_embeddings,
    k=10,  # Retrieve the top 10 matches for each query
)
```

### Reranking
If you only want to use the ColBERT model to perform reranking on top of your first-stage retrieval pipeline without building an index, you can simply use rank function and pass the queries and documents to rerank:

```python
from pylate import rank, models

queries = [
    "query A",
    "query B",
]

documents = [
    ["document A", "document B"],
    ["document 1", "document C", "document B"],
]

documents_ids = [
    [1, 2],
    [1, 3, 2],
]

model = models.ColBERT(
    model_name_or_path="pylate_model_id",
)

queries_embeddings = model.encode(
    queries,
    is_query=True,
)

documents_embeddings = model.encode(
    documents,
    is_query=False,
)

reranked_documents = rank.rerank(
    documents_ids=documents_ids,
    queries_embeddings=queries_embeddings,
    documents_embeddings=documents_embeddings,
)
```

<!--
### Direct Usage (Transformers)

<details><summary>Click to see the direct usage in Transformers</summary>

</details>
-->

<!--
### Downstream Usage (Sentence Transformers)

You can finetune this model on your own dataset.

<details><summary>Click to expand</summary>

</details>
-->

<!--
### Out-of-Scope Use

*List how the model may foreseeably be misused and address what users ought not to do with the model.*
-->

## Evaluation

### Metrics

#### Py Late Information Retrieval
* Dataset: `['CodeSearchNetPython', 'CodeSearchNetJavascript', 'CodeSearchNetGo', 'CodeSearchNetRuby', 'CodeSearchNetJava', 'CodeSearchNetPhp']`
* Evaluated with <code>pylate.evaluation.pylate_information_retrieval_evaluator.PyLateInformationRetrievalEvaluator</code>

| Metric              | CodeSearchNetPython | CodeSearchNetJavascript | CodeSearchNetGo | CodeSearchNetRuby | CodeSearchNetJava | CodeSearchNetPhp |
|:--------------------|:--------------------|:------------------------|:----------------|:------------------|:------------------|:-----------------|
| MaxSim_accuracy@1   | 0.884               | 0.737                   | 0.913           | 0.776             | 0.814             | 0.811            |
| MaxSim_accuracy@3   | 0.965               | 0.839                   | 0.98            | 0.895             | 0.938             | 0.922            |
| MaxSim_accuracy@5   | 0.976               | 0.866                   | 0.986           | 0.923             | 0.948             | 0.947            |
| MaxSim_accuracy@10  | 0.984               | 0.888                   | 0.989           | 0.936             | 0.961             | 0.96             |
| MaxSim_precision@1  | 0.884               | 0.737                   | 0.913           | 0.776             | 0.814             | 0.811            |
| MaxSim_precision@3  | 0.3217              | 0.2797                  | 0.3267          | 0.2983            | 0.3127            | 0.3073           |
| MaxSim_precision@5  | 0.1952              | 0.1732                  | 0.1972          | 0.1846            | 0.1896            | 0.1894           |
| MaxSim_precision@10 | 0.0984              | 0.0888                  | 0.0989          | 0.0936            | 0.0961            | 0.096            |
| MaxSim_recall@1     | 0.884               | 0.737                   | 0.913           | 0.776             | 0.814             | 0.811            |
| MaxSim_recall@3     | 0.965               | 0.839                   | 0.98            | 0.895             | 0.938             | 0.922            |
| MaxSim_recall@5     | 0.976               | 0.866                   | 0.986           | 0.923             | 0.948             | 0.947            |
| MaxSim_recall@10    | 0.984               | 0.888                   | 0.989           | 0.936             | 0.961             | 0.96             |
| **MaxSim_ndcg@10**  | **0.9393**          | **0.8169**              | **0.9577**      | **0.8618**        | **0.8978**        | **0.8918**       |
| MaxSim_mrr@10       | 0.9244              | 0.7937                  | 0.947           | 0.8372            | 0.8765            | 0.8691           |
| MaxSim_map@100      | 0.925               | 0.7965                  | 0.9474          | 0.8385            | 0.8773            | 0.8696           |

#### Code Search Network
* Dataset: `CodeSearchNet_mean`
* Evaluated with <code>pylate.evaluation.code_search_network_evaluator.CodeSearchNetworkEvaluator</code>

| Metric              | Value      |
|:--------------------|:-----------|
| MaxSim_accuracy@1   | 0.8225     |
| MaxSim_accuracy@3   | 0.9232     |
| MaxSim_accuracy@5   | 0.941      |
| MaxSim_accuracy@10  | 0.953      |
| MaxSim_precision@1  | 0.8225     |
| MaxSim_precision@3  | 0.3077     |
| MaxSim_precision@5  | 0.1882     |
| MaxSim_precision@10 | 0.0953     |
| MaxSim_recall@1     | 0.8225     |
| MaxSim_recall@3     | 0.9232     |
| MaxSim_recall@5     | 0.941      |
| MaxSim_recall@10    | 0.953      |
| **MaxSim_ndcg@10**  | **0.8942** |
| MaxSim_mrr@10       | 0.8746     |
| MaxSim_map@100      | 0.8757     |

<!--
## Bias, Risks and Limitations

*What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
-->

<!--
### Recommendations

*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
-->

## Training Details

### Training Datasets

#### apps

* Dataset: [apps](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code) at [68d15dc](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code/tree/68d15dc382d1ab682bb3435318eece8d49949b9f)
* Size: 4,985 training samples
* Approximate statistics based on the first 1000 samples:
  |         | query              | positive           | negative_0         | negative_1         | negative_2         | negative_3         | negative_4         | negative_5         | negative_6         | negative_7         | negative_8         | negative_9         | negative_10        | negative_11        | negative_12        | negative_13        | negative_14        | negative_15        | negative_16        | negative_17        | negative_18        | negative_19        | negative_20        | negative_21        | negative_22        | negative_23        | negative_24        | negative_25        | negative_26        | negative_27        | negative_28        | negative_29        | negative_30        | negative_31        | negative_32        | negative_33        | negative_34        | negative_35        | negative_36        | negative_37        | negative_38        | negative_39        | negative_40        | negative_41        | negative_42        | negative_43        | negative_44        | negative_45        | negative_46        | negative_47        | negative_48        | negative_49        |
  |:--------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|
  | type    | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               |
  | details |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
* Samples:
  | query | positive | negative_0 |
  |:------|:---------|:-----------|
  | <code>{'query': 'Polycarp has $n$ different binary words. A word called binary if it contains only characters \'0\' and \'1\'. For example, these words are binary: "0001", "11", "0" and "0011100".\n\nPolycarp wants to offer his set of $n$ binary words to play a game "words". In this game, players name words and each next word (starting from the second) must start with the last character of the previous word. The first word can be any. For example, these sequence of words can be named during the game: "0101", "1", "10", "00", "00001".\n\nWord reversal is the operation of reversing the order of the characters. For example, the word "0111" after the reversal becomes "1110", the word "11010" after the reversal becomes "01011".\n\nProbably, Polycarp has such a set of words that there is no way to put them in the order correspondent to the game rules. In this situation, he wants to reverse some words from his set so that:  the final set of $n$ words still contains different words (i.e. all words are unique);  there is a way to put all words of the final set of words in the order so that the final sequence of $n$ words is consistent with the game rules. \n\nPolycarp wants to reverse minimal number of words. Please, help him.\n\n\n-----Input-----\n\nThe first line of the input contains one integer $t$ ($1 \\le t \\le 10^4$) — the number of test cases in the input. Then $t$ test cases follow.\n\nThe first line of a test case contains one integer $n$ ($1 \\le n \\le 2\\cdot10^5$) — the number of words in the Polycarp\'s set. Next $n$ lines contain these words. All of $n$ words aren\'t empty and contains only characters \'0\' and \'1\'. The sum of word lengths doesn\'t exceed $4\\cdot10^6$. All words are different.\n\nGuaranteed, that the sum of $n$ for all test cases in the input doesn\'t exceed $2\\cdot10^5$. Also, guaranteed that the sum of word lengths for all test cases in the input doesn\'t exceed $4\\cdot10^6$.\n\n\n-----Output-----\n\nPrint answer for all of $t$ test cases in the order they appear.\n\nIf there is no answer for the test case, print -1. Otherwise, the first line of the output should contain $k$ ($0 \\le k \\le n$) — the minimal number of words in the set which should be reversed. The second line of the output should contain $k$ distinct integers — the indexes of the words in the set which should be reversed. Words are numerated from $1$ to $n$ in the order they appear. If $k=0$ you can skip this line (or you can print an empty line). If there are many answers you can print any of them.\n\n\n-----Example-----\nInput\n4\n4\n0001\n1000\n0011\n0111\n3\n010\n101\n0\n2\n00000\n00001\n4\n01\n001\n0001\n00001\n\nOutput\n1\n3 \n-1\n0\n\n2\n1 2', 'query_id': 0}</code> | <code>{'document': "for _ in range(int(input())):\n    n = int(input())\n    mass = []\n    zo = 0\n    oz = 0\n    zz = 0\n    oo = 0\n    ozs = []\n    zos = []\n    ozss = set()\n    zoss = set()\n    for j in range(n):\n        k = input()\n        mass.append(k)\n        if k[0] == '0' and k[-1] == '1':\n            zoss.add(k)\n            zos.append(j + 1)\n            zo += 1\n        elif k[0] == '1' and k[-1] == '0':\n            ozss.add(k)\n            ozs.append(j + 1)\n            oz += 1\n        elif k[0] == '0' and k[-1] == '0':\n            zz += 1\n        else:\n            oo += 1\n    if zz and oo and not oz and not zo:\n        print(-1)\n        continue\n    else:\n        if zo &gt; oz:\n            print((zo - oz) // 2)\n            ans = []\n            need = (zo - oz) // 2\n            i = 0\n            while need:\n                zzz = mass[zos[i] - 1][len(mass[zos[i] - 1]) - 1:: -1]\n                if zzz not in ozss:\n                    ans.append(zos[i])\n                    need -= 1\n                i += 1\n            print(*ans)\n        else:\n            print((oz - zo) // 2)\n            ans = []\n            need = (oz - zo) // 2\n            i = 0\n            while need:\n                zzz = mass[ozs[i] - 1][len(mass[ozs[i] - 1]) - 1:: -1]\n                if zzz not in zoss:\n                    ans.append(ozs[i])\n                    need -= 1\n                i += 1\n            print(*ans)\n", 'document_id': 0}</code> | <code>{'document': "t=int(input())\nfor _ in range(t):\n n=int(input())\n l=list(map(int,input().split()))\n if sum(l)!=n or max(l)==n:\n  print('-1')\n else:\n  d=dict()\n  ans=[-1]*n\n  for i in range(0,n):\n   d[i]=1\n  for i in range(n):\n   if l[i]!=0:\n    count=l[i]\n    for k,v in list(d.items()):\n     if count&gt;0 and v==1 and i!=k:\n      d[k]=0\n      ans[k]=i+1\n      count-=1\n  ind=-1\n  for i in range(0,len(ans)):\n   if ans[i]==-1:\n    ind=i\n  if ind==-1:\n   print(*ans)\n  else:\n   for i in range(len(ans)):\n    if ans[i]!=ind+1:\n     \n    \n     ans[ind]=ans[i]\n     ans[i]=ind+1\n     break\n   print(*ans)\n   \n    \n   \n  \n\n      \n \n    \n\n \n", 'document_id': 866}</code> |
* Loss: <code>pylate.losses.contrastive.Contrastive</code>

#### synthetictext2sql

* Dataset: [synthetictext2sql](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code) at [68d15dc](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code/tree/68d15dc382d1ab682bb3435318eece8d49949b9f)
* Size: 99,996 training samples
* Approximate statistics based on the first 1000 samples:
  |         | query              | positive           | negative_0         | negative_1         | negative_2         | negative_3         | negative_4         | negative_5         | negative_6         | negative_7         | negative_8         | negative_9         | negative_10        | negative_11        | negative_12        | negative_13        | negative_14        | negative_15        | negative_16        | negative_17        | negative_18        | negative_19        | negative_20        | negative_21        | negative_22        | negative_23        | negative_24        | negative_25        | negative_26        | negative_27        | negative_28        | negative_29        | negative_30        | negative_31        | negative_32        | negative_33        | negative_34        | negative_35        | negative_36        | negative_37        | negative_38        | negative_39        | negative_40        | negative_41        | negative_42        | negative_43        | negative_44        | negative_45        | negative_46        | negative_47        | negative_48        | negative_49        |
  |:--------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|
  | type    | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               |
  | details |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
* Samples:
  | query | positive | negative_0 |
  |:------|:---------|:-----------|
  | <code>{'query': 'What is the total volume of timber sold by each salesperson, sorted by salesperson?', 'query_id': 0}</code> | <code>{'document': 'SELECT salesperson_id, name, SUM(volume) as total_volume FROM timber_sales JOIN salesperson ON timber_sales.salesperson_id = salesperson.salesperson_id GROUP BY salesperson_id, name ORDER BY total_volume DESC;', 'document_id': 0}</code> | <code>{'document': 'SELECT salesperson_id, SUM(volume) as total_volume FROM timber_sales JOIN salesperson ON timber_sales.salesperson_id = salesperson.salesperson_id GROUP BY salesperson_id ORDER BY total_volume DESC LIMIT 1;', 'document_id': 53110}</code> |
* Loss: <code>pylate.losses.contrastive.Contrastive</code>

#### cosqa

* Dataset: [cosqa](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code) at [68d15dc](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code/tree/68d15dc382d1ab682bb3435318eece8d49949b9f)
* Size: 9,018 training samples
* Approximate statistics based on the first 1000 samples:
  |         | query              | positive           | negative_0         | negative_1         | negative_2         | negative_3         | negative_4         | negative_5         | negative_6         | negative_7         | negative_8         | negative_9         | negative_10        | negative_11        | negative_12        | negative_13        | negative_14        | negative_15        | negative_16        | negative_17        | negative_18        | negative_19        | negative_20        | negative_21        | negative_22        | negative_23        | negative_24        | negative_25        | negative_26        | negative_27        | negative_28        | negative_29        | negative_30        | negative_31        | negative_32        | negative_33        | negative_34        | negative_35        | negative_36        | negative_37        | negative_38        | negative_39        | negative_40        | negative_41        | negative_42        | negative_43        | negative_44        | negative_45        | negative_46        | negative_47        | negative_48        | negative_49        |
  |:--------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|
  | type    | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               |
  | details |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
* Samples:
  | query | positive | negative_0 |
  |:------|:---------|:-----------|
  | <code>{'query': '1d array in char datatype in python', 'query_id': 9}</code> | <code>{'document': 'def _convert_to_array(array_like, dtype):\n        """\n        Convert Matrix attributes which are array-like or buffer to array.\n        """\n        if isinstance(array_like, bytes):\n            return np.frombuffer(array_like, dtype=dtype)\n        return np.asarray(array_like, dtype=dtype)', 'document_id': 9}</code> | <code>{'document': 'def astype(array, y):\n  """A functional form of the `astype` method.\n\n  Args:\n    array: The array or number to cast.\n    y: An array or number, as the input, whose type should be that of array.\n\n  Returns:\n    An array or number with the same dtype as `y`.\n  """\n  if isinstance(y, autograd.core.Node):\n    return array.astype(numpy.array(y.value).dtype)\n  return array.astype(numpy.array(y).dtype)', 'document_id': 14052}</code> |
* Loss: <code>pylate.losses.contrastive.Contrastive</code>

#### codefeedbackst

* Dataset: [codefeedbackst](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code) at [68d15dc](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code/tree/68d15dc382d1ab682bb3435318eece8d49949b9f)
* Size: 125,124 training samples
* Approximate statistics based on the first 1000 samples:
  |         | query              | positive           | negative_0         | negative_1         | negative_2         | negative_3         | negative_4         | negative_5         | negative_6         | negative_7         | negative_8         | negative_9         | negative_10        | negative_11        | negative_12        | negative_13        | negative_14        | negative_15        | negative_16        | negative_17        | negative_18        | negative_19        | negative_20        | negative_21        | negative_22        | negative_23        | negative_24        | negative_25        | negative_26        | negative_27        | negative_28        | negative_29        | negative_30        | negative_31        | negative_32        | negative_33        | negative_34        | negative_35        | negative_36        | negative_37        | negative_38        | negative_39        | negative_40        | negative_41        | negative_42        | negative_43        | negative_44        | negative_45        | negative_46        | negative_47        | negative_48        | negative_49        |
  |:--------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|
  | type    | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               |
  | details |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
* Samples:
  | query | positive | negative_0 |
  |:------|:---------|:-----------|
  | <code>{'query': 'You are tasked with implementing a Python class that extends a base class and overrides its methods. Your task is to create a class called `TestsslFinding` that inherits from the `VSFinding` class. The `VSFinding` class is not explicitly defined in the given code snippet, but it is assumed to be a base class with certain methods that need to be overridden in the `TestsslFinding` class. Your implementation should include the necessary method overrides and any additional methods or attributes required to fulfill the specified functionality.\n\nYour `TestsslFinding` class should provide the following functionality:\n1. Override the `process_finding` method: This method should take in a finding as input and process it according to the specific requirements of the `TestsslFinding` class. The exact implementation of this method is not provided, but it should be tailored to the needs of the `TestsslFinding` class.\n2. Any additional methods or attributes required to support the functionality of the `TestsslFinding` class.\n\nYour implementation should adhere to the principles of object-oriented programming and demonstrate a clear understanding of class inheritance and method overriding in Python.', 'query_id': 0}</code> | <code>{'document': '```python\nclass TestsslFinding(VSFinding):\n    def process_finding(self, finding):\n        # Custom implementation of processing finding for TestsslFinding\n        pass\n\n    # Additional methods or attributes can be added as per specific requirements\n```\nIn the solution, the `TestsslFinding` class is defined to inherit from the `VSFinding` class. The `process_finding` method is overridden to provide a custom implementation tailored to the needs of the `TestsslFinding` class. Additional methods or attributes can be included as per the specific requirements of the class. This solution demonstrates the implementation of class inheritance and method overriding in Python.', 'document_id': 0}</code> | <code>{'document': '```python\nfrom googlecloudsdk.calliope import base\nfrom googlecloudsdk.api_lib.sql import ssl_certs_api\n\n\nclass SslCerts(base.Group):\n    """Provide commands for managing SSL certificates of Cloud SQL instances."""\n\n    def create_certificate(self, instance_id, common_name):\n        """Create a new SSL certificate for the specified Cloud SQL instance."""\n        ssl_certs_api.SslCertsApi().insert(\n            project=self.project,\n            instance=instance_id,\n            body={\'commonName\': common_name}\n        )\n\n    def delete_certificate(self, instance_id, sha1_fingerprint):\n        """Delete the SSL certificate with the specified SHA-1 fingerprint from the Cloud SQL instance."""\n        ssl_certs_api.SslCertsApi().delete(\n            project=self.project,\n            instance=instance_id,\n            sha1Fingerprint=sha1_fingerprint\n        )\n\n    def list_certificates(self, instance_id):\n        """List all SSL certificates associated with the specified Cloud SQL instance."""\n        return ssl_certs_api.SslCertsApi().list(\n            project=self.project,\n            instance=instance_id\n        )\n\n    def get_certificate(self, instance_id, sha1_fingerprint):\n        """Retrieve detailed information about the SSL certificate with the specified SHA-1 fingerprint."""\n        return ssl_certs_api.SslCertsApi().get(\n            project=self.project,\n            instance=instance_id,\n            sha1Fingerprint=sha1_fingerprint\n        )\n```\nIn the solution, the `SslCerts` class inherits from the `base.Group` class and provides methods for creating, deleting, listing, and retrieving information about SSL certificates associated with Cloud SQL instances. Each method interacts with the `ssl_certs_api` to perform the respective operations, ensuring seamless management of SSL certificates for Cloud SQL instances.', 'document_id': 108284}</code> |
* Loss: <code>pylate.losses.contrastive.Contrastive</code>

#### codefeedbackmt

* Dataset: [codefeedbackmt](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code) at [68d15dc](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code/tree/68d15dc382d1ab682bb3435318eece8d49949b9f)
* Size: 52,941 training samples
* Approximate statistics based on the first 1000 samples:
  |         | query              | positive           | negative_0         | negative_1         | negative_2         | negative_3         | negative_4         | negative_5         | negative_6         | negative_7         | negative_8         | negative_9         | negative_10        | negative_11        | negative_12        | negative_13        | negative_14        | negative_15        | negative_16        | negative_17        | negative_18        | negative_19        | negative_20        | negative_21        | negative_22        | negative_23        | negative_24        | negative_25        | negative_26        | negative_27        | negative_28        | negative_29        | negative_30        | negative_31        | negative_32        | negative_33        | negative_34        | negative_35        | negative_36        | negative_37        | negative_38        | negative_39        | negative_40        | negative_41        | negative_42        | negative_43        | negative_44        | negative_45        | negative_46        | negative_47        | negative_48        | negative_49        |
  |:--------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|
  | type    | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               |
  | details |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
* Samples:
  | query | positive | negative_0 |
  |:------|:---------|:-----------|
  | <code>{'query': "'user': Embark on a comprehensive journey through the intricate realm of quantum computing, with a specific focus on its paramount significance in the realm of high-performance computing. Could you meticulously construct a narrative that systematically outlines the genesis, progression, and practical implementation of computational models deeply entrenched in the principles of quantum computing, capitalizing on their inherent computational supremacy? This narrative should aim for the pinnacle of computational efficiency while addressing potential limitations inherent to quantum computing, concentrating on systematic approaches for identifying and rectifying computational irregularities. Moreover, it should incorporate a refined, structured analytical framework for surmounting hurdles, necessitating a wide range of analytical prowess and adaptable problem-solving skills. It should also highlight potential impediments and their solutions, intertwined with a profound comprehension of quantum superposition and its influence on computational efficiency. Additionally, it should delve into the intricacies of quantum bit manipulation and data accuracy, along with the most effective techniques for continuous surveillance and upkeep in the quantum computing industry. In conclusion, it should provide a detailed analysis of potential computational threats and the most effective strategies to ensure the ongoing advancement and widespread acceptance of quantum computing principles in the era of high-performance computing. Could you also elucidate the role of quantum computing within the architecture of state-of-the-art computational systems, and how it can be harnessed to construct a sturdy and efficient computational infrastructure in the face of intricate computational challenges?, 'assistant': Quantum computing is a relatively new and rapidly advancing field that holds immense promise for revolutionizing the realm of high-performance computing. In this narrative, we will delve into the genesis, progression, and practical implementation of computational models grounded in the principles of quantum computing. We will explore their inherent computational supremacy, while also addressing potential limitations and providing systematic approaches for identifying and rectifying computational irregularities.\n\nThe journey through the intricate realm of quantum computing begins with understanding its genesis. Quantum computing originated from the fusion of quantum mechanics and computer science. It leverages the principles of quantum mechanics, such as superposition and entanglement, to perform computations in ways that surpass classical computers' capabilities.\n\nAs quantum computing has progressed, researchers and scientists have made significant strides in exploring its practical implementation. Quantum computers operate using quantum bits, also known as qubits, which are the fundamental building blocks of quantum information. Unlike classical bits, which can only be in a state of 0 or 1, qubits can exist in a superposition of both states simultaneously. This quantum superposition allows for parallel processing, exponentially increasing the computational power of quantum computers.\n\nHowever, along with the immense potential, quantum computing faces several challenges. One of the primary limitations is decoherence, where the delicate quantum states of qubits interact with the environment, causing them to lose their quantum properties. This leads to errors and computational irregularities. To overcome this, systematic approaches are employed to identify and rectify these irregularities, such as error correction codes and noise reduction techniques.\n\nTo harness the power of quantum computing effectively, a refined and structured analytical framework is essential. Adaptable problem-solving skills and analytical prowess are needed to address the intricacies of quantum bit manipulation and ensure data accuracy. Continuous surveillance and upkeep are crucial in the quantum computing industry to maintain the integrity of quantum systems.\n\nDespite its potential, quantum computing still faces potential impediments. Computational threats, such as quantum algorithms capable of breaking modern cryptographic systems, need to be carefully analyzed and addressed. Therefore, effective strategies for safeguarding data and communication channels must be devised to ensure the ongoing advancement and widespread acceptance of quantum computing principles.\n\nFurthermore, quantum computing plays a crucial role within the architecture of state-of-the-art computational systems. It can be harnessed to construct a sturdy and efficient computational infrastructure to tackle intricate computational challenges. By leveraging the computational supremacy of quantum computing, complex problems in fields such as optimization, material science, and machine learning can be solved more efficiently.\n\nIn summary, the journey through the realm of quantum computing highlights its genesis, progression, and practical implementation. We have explored the concept of computational supremacy, potential limitations, and systematic approaches for identifying and rectifying computational irregularities. It has also emphasized the importance of a refined analytical framework, comprehension of quantum superposition, and effective techniques for continuous surveillance and upkeep. Finally, we have analyzed potential computational threats and the strategies needed to ensure the ongoing advancement and widespread acceptance of quantum computing principles in the era of high-performance computing., 'user': No code has been generated yet. Could you please generate a code snippet related to quantum computing?", 'query_id': 0}</code> | <code>{'document': "Regrettably, there are no standard Python libraries available for quantum computing that could generate a simple block of code relevant to this conversation. Quantum computing requires specialized software and hardware that typically are not available on conventional computer systems and neither on the interpreter I use currently. However, for educational purposes, here's a general template of a theoretical quantum program using an open-source quantum computing framework Qiskit. Note that this Python code will not run in the current environment.\n\n```python\nfrom qiskit import QuantumCircuit, ClassicalRegister, QuantumRegister\nfrom qiskit import execute, Aer\n\n# Create a Quantum Register with 2 qubits.\nq = QuantumRegister(2)\n\n# Create a Classical Register with 2 bits.\nc = ClassicalRegister(2)\n\n# Create a Quantum Circuit\nqc = QuantumCircuit(q, c)\n\n# Add a H gate on qubit 0, putting this qubit in superposition.\nqc.h(q[0])\n\n# Add a CX (CNOT) gate on control qubit 0 and target qubit 1, putting the qubits in a Bell state.\nqc.cx(q[0], q[1])\n\n# Add a Measure gate to see the state.\nqc.measure(q, c)\n\nprint(qc)\n```\n\nThis is a basic quantum circuit in Qiskit that sets up two qubits in a Bell state. A Bell state is a quantum state of a system where the amount of information about the overall system does not fully specify the possible results of measurements on the subsystems. This gives rise to the interesting and non-intuitive phenomena in quantum mechanics such as quantum entanglement.\n\nIn this example, we apply a Hadamard (H) gate to put the first qubit in a superposition state (a state of both 0 and 1 simultaneously). We then apply a CNOT gate with the first qubit as control and the second as the target. This creates entanglement between the two qubits. Finally, we measure the two qubits.", 'document_id': 0}</code> | <code>{'document': "The provided code block constructs a quantum circuit with a Hadamard gate (which allows us to establish a superposition state), and a measurement gate. When we measure a qubit in a superposition state, we observe one of the possible states and the qubit will collapse to that measured state.\n\nThe measurement results are then plotted in a histogram. Here, you can observe that we obtain both '0' and '1' states close to an equal number of times. This represents the probabilistic outcomes when measuring a qubit initially put in a superposition state via a Hadamard gate. The '0' state was measured 495 times, and the '1' state was measured 529 times, out of a (default) total of 1024 runs in the Qiskit quantum simulator ('qasm_simulator').\n\nThis showcases the fundamental principle of quantum superposition - where a qubit isn't merely in a '0' or '1' state but can exist in a superposition of these states until measured.", 'document_id': 51749}</code> |
* Loss: <code>pylate.losses.contrastive.Contrastive</code>

#### stackoverflowqa

* Dataset: [stackoverflowqa](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code) at [68d15dc](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code/tree/68d15dc382d1ab682bb3435318eece8d49949b9f)
* Size: 13,934 training samples
* Approximate statistics based on the first 1000 samples:
  |         | query              | positive           | negative_0         | negative_1         | negative_2         | negative_3         | negative_4         | negative_5         | negative_6         | negative_7         | negative_8         | negative_9         | negative_10        | negative_11        | negative_12        | negative_13        | negative_14        | negative_15        | negative_16        | negative_17        | negative_18        | negative_19        | negative_20        | negative_21        | negative_22        | negative_23        | negative_24        | negative_25        | negative_26        | negative_27        | negative_28        | negative_29        | negative_30        | negative_31        | negative_32        | negative_33        | negative_34        | negative_35        | negative_36        | negative_37        | negative_38        | negative_39        | negative_40        | negative_41        | negative_42        | negative_43        | negative_44        | negative_45        | negative_46        | negative_47        | negative_48        | negative_49        |
  |:--------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|
  | type    | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               |
  | details |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
* Samples:
  | query | positive | negative_0 |
  |:------|:---------|:-----------|
  | <code>{'query': 'sphinxsearch-0.9 in mediawiki-1.32.0 error 2019/01/14 12:04:51 [error] 21549#21549: *3558 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Class SphinxMWSearch contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (SearchDatabase::doSearchTextInDB, SearchDatabase::doSearchTitleInDB) in /var/opt/www/extensions/SphinxSearch/SphinxMWSearch.php on line 15" while reading response header from upstream, client: 192.168.122.1, server: wiki.yuyizhi.org, request: "GET /index.php?title=Special:%E6%90%9C%E7%B4%A2&amp;search=sphinx HTTP/1.0", upstream: "fastcgi://unix:/var/run/php-fpm/php5-fpm.sock:", host: "wiki.yuyizhi.org"\n\nFastCGI sent in stderr: "PHP message: PHP Fatal error:  Class SphinxMWSearch contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (SearchDatabase::doSearchTextInDB, SearchDatabase::doSearchTitleInDB) in /var/opt/www/extensions/SphinxSearch/SphinxMWSearch.php on line 15", client: 192.168.122.1, server: wiki.abc.com, request: "GET /api.php?action=opensearch&amp;search=bai&amp;namespace=0 HTTP/1.0", host: "wiki.abc.com"', 'query_id': 0}</code> | <code>{'document': 'The SearchDatabase class that SphinxSearch extends was changed from REL1_31 to REL1_32. It now requires you to define doSearchTextInDB and doSearchTitleInDB methods.\nSee REL1_31 https://doc.wikimedia.org/mediawiki-core/REL1_31/php/classSearchDatabase.html\nvs REL1_32 https://doc.wikimedia.org/mediawiki-core/REL1_32/php/classSearchDatabase.html\nThis is sortof mentioned in the patch notes if you search for Search under deprecation (note this is a Backwards compatibility break instead) https://www.mediawiki.org/wiki/Release_notes/1.32#Compatibility:\n\nOverriding SearchEngine::{searchText,searchTitle,searchArchiveTitle} in extending classes is deprecated. Extend related doSearch* methods instead.\n\nIf you are like me and not comfortable fixing the extension yourself, you will have to wait for one of the extension contributors to update the extension to work with REL1_32. Until then you will have to stay on REL1_31 if you wish to use the extension.\n\nA: Just adding these two empty functions to SphinxMWSearch.php under the definition of SphinxMWSearch class seems to do the trick. It makes it stop complaining and - as far as I can tell - search function is working fine.\nfunction doSearchTextInDB($term) {\n}\nfunction doSearchTitleInDB($term) {\n}\n\nHopefully developers of this extension will come up with a proper fix soon.', 'document_id': 0}</code> | <code>{'document': 'I was running MediaWiki 1.16.0.  I upgraded to MediaWiki 1.16.2 and this resolved the issue.', 'document_id': 5766}</code> |
* Loss: <code>pylate.losses.contrastive.Contrastive</code>

#### codetranscontest

* Dataset: [codetranscontest](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code) at [68d15dc](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code/tree/68d15dc382d1ab682bb3435318eece8d49949b9f)
* Size: 561 training samples
* Approximate statistics based on the first 561 samples:
  |         | query              | positive           | negative_0         | negative_1         | negative_2         | negative_3         | negative_4         | negative_5         | negative_6         | negative_7         | negative_8         | negative_9         | negative_10        | negative_11        | negative_12        | negative_13        | negative_14        | negative_15        | negative_16        | negative_17        | negative_18        | negative_19        | negative_20        | negative_21        | negative_22        | negative_23        | negative_24        | negative_25        | negative_26        | negative_27        | negative_28        | negative_29        | negative_30        | negative_31        | negative_32        | negative_33        | negative_34        | negative_35        | negative_36        | negative_37        | negative_38        | negative_39        | negative_40        | negative_41        | negative_42        | negative_43        | negative_44        | negative_45        | negative_46        | negative_47        | negative_48        | negative_49        |
  |:--------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|
  | type    | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               |
  | details |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
* Samples:
  | query | positive | negative_0 |
  |:------|:---------|:-----------|
  | <code>{'query': 'Julia set from __future__ import division\n\ncX = -0.7\ncY = 0.27015\nmaxIter = 300\n\ndef setup():\n    size(640, 480)\n\ndef draw():\n    for x in range(width):\n        for y in range(height):\n            zx = 1.5 * (x - width / 2) / (0.5 * width)\n            zy = (y - height / 2) / (0.5 * height)\n            i = maxIter\n            while zx * zx + zy * zy &lt; 4 and i &gt; 0:\n                tmp = zx * zx - zy * zy + cX\n                zy = 2.0 * zx * zy + cY\n                zx = tmp\n                i -= 1\n            colorMode(HSB)\n            c = color(i / maxIter * 255, 255, 255 if i &gt; 1 else 0)\n            set(x, y, c)\n', 'query_id': 0}</code> | <code>{'document': '#include &lt;windows.h&gt;\n#include &lt;string&gt;\n#include &lt;complex&gt;\n\nconst int BMP_SIZE = 600, ITERATIONS = 512;\nconst long double FCT = 2.85, hFCT = FCT / 2.0;\n\nclass myBitmap {\npublic:\n    myBitmap() : pen( NULL ), brush( NULL ), clr( 0 ), wid( 1 ) {}\n    ~myBitmap() {\n        DeleteObject( pen ); DeleteObject( brush );\n        DeleteDC( hdc ); DeleteObject( bmp );\n    }\n    bool create( int w, int h ) {\n        BITMAPINFO bi;\n        ZeroMemory( &amp;bi, sizeof( bi ) );\n        bi.bmiHeader.biSize        = sizeof( bi.bmiHeader );\n        bi.bmiHeader.biBitCount    = sizeof( DWORD ) * 8;\n        bi.bmiHeader.biCompression = BI_RGB;\n        bi.bmiHeader.biPlanes      = 1;\n        bi.bmiHeader.biWidth       =  w;\n        bi.bmiHeader.biHeight      = -h;\n        HDC dc = GetDC( GetConsoleWindow() );\n        bmp = CreateDIBSection( dc, &amp;bi, DIB_RGB_COLORS, &amp;pBits, NULL, 0 );\n        if( !bmp ) return false;\n        hdc = CreateCompatibleDC( dc );\n        SelectObject( hdc, bmp );\n        ReleaseDC( GetConsoleWindow(), dc );\n        width = w; height = h;\n        return true;\n    }\n    void clear( BYTE clr = 0 ) {\n        memset( pBits, clr, width * height * sizeof( DWORD ) );\n    }\n    void setBrushColor( DWORD bClr ) {\n        if( brush ) DeleteObject( brush );\n        brush = CreateSolidBrush( bClr );\n        SelectObject( hdc, brush );\n    }\n    void setPenColor( DWORD c ) {\n        clr = c; createPen();\n    }\n    void setPenWidth( int w ) {\n        wid = w; createPen();\n    }\n    void saveBitmap( std::string path ) {\n        BITMAPFILEHEADER fileheader;\n        BITMAPINFO       infoheader;\n        BITMAP           bitmap;\n        DWORD            wb;\n        GetObject( bmp, sizeof( bitmap ), &amp;bitmap );\n        DWORD* dwpBits = new DWORD[bitmap.bmWidth * bitmap.bmHeight];\n        ZeroMemory( dwpBits, bitmap.bmWidth * bitmap.bmHeight * sizeof( DWORD ) );\n        ZeroMemory( &amp;infoheader, sizeof( BITMAPINFO ) );\n        ZeroMemory( &amp;fileheader, sizeof( BITMAPFILEHEADER ) );\n        infoheader.bmiHeader.biBitCount = sizeof( DWORD ) * 8;\n        infoheader.bmiHeader.biCompression = BI_RGB;\n        infoheader.bmiHeader.biPlanes = 1;\n        infoheader.bmiHeader.biSize = sizeof( infoheader.bmiHeader );\n        infoheader.bmiHeader.biHeight = bitmap.bmHeight;\n        infoheader.bmiHeader.biWidth = bitmap.bmWidth;\n        infoheader.bmiHeader.biSizeImage = bitmap.bmWidth * bitmap.bmHeight * sizeof( DWORD );\n        fileheader.bfType    = 0x4D42;\n        fileheader.bfOffBits = sizeof( infoheader.bmiHeader ) + sizeof( BITMAPFILEHEADER );\n        fileheader.bfSize    = fileheader.bfOffBits + infoheader.bmiHeader.biSizeImage;\n        GetDIBits( hdc, bmp, 0, height, ( LPVOID )dwpBits, &amp;infoheader, DIB_RGB_COLORS );\n        HANDLE file = CreateFile( path.c_str(), GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, \n            FILE_ATTRIBUTE_NORMAL, NULL );\n        WriteFile( file, &amp;fileheader, sizeof( BITMAPFILEHEADER ), &amp;wb, NULL );\n        WriteFile( file, &amp;infoheader.bmiHeader, sizeof( infoheader.bmiHeader ), &amp;wb, NULL );\n        WriteFile( file, dwpBits, bitmap.bmWidth * bitmap.bmHeight * 4, &amp;wb, NULL );\n        CloseHandle( file );\n        delete [] dwpBits;\n    }\n    HDC getDC() const     { return hdc; }\n    int getWidth() const  { return width; }\n    int getHeight() const { return height; }\n    DWORD* bits() const { return ( DWORD* )pBits; }\nprivate:\n    void createPen() {\n        if( pen ) DeleteObject( pen );\n        pen = CreatePen( PS_SOLID, wid, clr );\n        SelectObject( hdc, pen );\n    }\n    HBITMAP bmp; HDC    hdc;\n    HPEN    pen; HBRUSH brush;\n    void    *pBits; int    width, height, wid;\n    DWORD    clr;\n};\nclass julia {\npublic:\n    void draw( std::complex&lt;long double&gt; k ) {\n        bmp.create( BMP_SIZE, BMP_SIZE );\n        DWORD* bits = bmp.bits();\n        int res, pos;\n        std::complex&lt;long double&gt; c, factor( FCT / BMP_SIZE, FCT / BMP_SIZE ) ;\n\n        for( int y = 0; y &lt; BMP_SIZE; y++ ) {\n            pos = y * BMP_SIZE;\n\n            c.imag( ( factor.imag() * y ) + -hFCT );\n\n            for( int x = 0; x &lt; BMP_SIZE; x++ ) {\n                c.real( factor.real() * x + -hFCT );\n                res = inSet( c, k );\n                if( res ) {\n                    int n_res = res % 255;\n                    if( res &lt; ( ITERATIONS &gt;&gt; 1 ) ) res = RGB( n_res &lt;&lt; 2, n_res &lt;&lt; 3, n_res &lt;&lt; 4 );\n                    else res = RGB( n_res &lt;&lt; 4, n_res &lt;&lt; 2, n_res &lt;&lt; 5 );\n                }\n                bits[pos++] = res;\n            }\n        }\n        bmp.saveBitmap( "./js.bmp" );\n    }\nprivate:\n    int inSet( std::complex&lt;long double&gt; z, std::complex&lt;long double&gt; c ) {\n        long double dist;\n        for( int ec = 0; ec &lt; ITERATIONS; ec++ ) {\n            z = z * z; z = z + c;\n            dist = ( z.imag() * z.imag() ) + ( z.real() * z.real() );\n            if( dist &gt; 3 ) return( ec );\n        }\n        return 0;\n    }\n    myBitmap bmp;\n};\nint main( int argc, char* argv[] ) {\n    std::complex&lt;long double&gt; c;\n    long double factor = FCT / BMP_SIZE;\n    c.imag( ( factor * 184 ) + -1.4 );\n    c.real( ( factor * 307 ) + -2.0 );\n    julia j; j.draw( c ); return 0;    \n}\n', 'document_id': 0}</code> | <code>{'document': '#include &lt;windows.h&gt;\n#include &lt;ctime&gt;\n#include &lt;string&gt;\n\nconst int BMP_SIZE = 600, ITERATIONS = static_cast&lt;int&gt;( 15e5 );\n\nclass myBitmap {\npublic:\n    myBitmap() : pen( NULL ), brush( NULL ), clr( 0 ), wid( 1 ) {}\n    ~myBitmap() {\n        DeleteObject( pen ); DeleteObject( brush );\n        DeleteDC( hdc ); DeleteObject( bmp );\n    }\n    bool create( int w, int h ) {\n        BITMAPINFO bi;\n        ZeroMemory( &amp;bi, sizeof( bi ) );\n        bi.bmiHeader.biSize        = sizeof( bi.bmiHeader );\n        bi.bmiHeader.biBitCount    = sizeof( DWORD ) * 8;\n        bi.bmiHeader.biCompression = BI_RGB;\n        bi.bmiHeader.biPlanes      = 1;\n        bi.bmiHeader.biWidth       =  w;\n        bi.bmiHeader.biHeight      = -h;\n        HDC dc = GetDC( GetConsoleWindow() );\n        bmp = CreateDIBSection( dc, &amp;bi, DIB_RGB_COLORS, &amp;pBits, NULL, 0 );\n        if( !bmp ) return false;\n        hdc = CreateCompatibleDC( dc );\n        SelectObject( hdc, bmp );\n        ReleaseDC( GetConsoleWindow(), dc );\n        width = w; height = h;\n        return true;\n    }\n    void clear( BYTE clr = 0 ) {\n        memset( pBits, clr, width * height * sizeof( DWORD ) );\n    }\n    void setBrushColor( DWORD bClr ) {\n        if( brush ) DeleteObject( brush );\n        brush = CreateSolidBrush( bClr );\n        SelectObject( hdc, brush );\n    }\n    void setPenColor( DWORD c ) {\n        clr = c; createPen();\n    }\n    void setPenWidth( int w ) {\n        wid = w; createPen();\n    }\n    void saveBitmap( std::string path ) {\n        BITMAPFILEHEADER fileheader;\n        BITMAPINFO       infoheader;\n        BITMAP           bitmap;\n        DWORD            wb;\n        GetObject( bmp, sizeof( bitmap ), &amp;bitmap );\n        DWORD* dwpBits = new DWORD[bitmap.bmWidth * bitmap.bmHeight];\n        ZeroMemory( dwpBits, bitmap.bmWidth * bitmap.bmHeight * sizeof( DWORD ) );\n        ZeroMemory( &amp;infoheader, sizeof( BITMAPINFO ) );\n        ZeroMemory( &amp;fileheader, sizeof( BITMAPFILEHEADER ) );\n        infoheader.bmiHeader.biBitCount = sizeof( DWORD ) * 8;\n        infoheader.bmiHeader.biCompression = BI_RGB;\n        infoheader.bmiHeader.biPlanes = 1;\n        infoheader.bmiHeader.biSize = sizeof( infoheader.bmiHeader );\n        infoheader.bmiHeader.biHeight = bitmap.bmHeight;\n        infoheader.bmiHeader.biWidth = bitmap.bmWidth;\n        infoheader.bmiHeader.biSizeImage = bitmap.bmWidth * bitmap.bmHeight * sizeof( DWORD );\n        fileheader.bfType    = 0x4D42;\n        fileheader.bfOffBits = sizeof( infoheader.bmiHeader ) + sizeof( BITMAPFILEHEADER );\n        fileheader.bfSize    = fileheader.bfOffBits + infoheader.bmiHeader.biSizeImage;\n        GetDIBits( hdc, bmp, 0, height, ( LPVOID )dwpBits, &amp;infoheader, DIB_RGB_COLORS );\n        HANDLE file = CreateFile( path.c_str(), GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, \n            FILE_ATTRIBUTE_NORMAL, NULL );\n        WriteFile( file, &amp;fileheader, sizeof( BITMAPFILEHEADER ), &amp;wb, NULL );\n        WriteFile( file, &amp;infoheader.bmiHeader, sizeof( infoheader.bmiHeader ), &amp;wb, NULL );\n        WriteFile( file, dwpBits, bitmap.bmWidth * bitmap.bmHeight * 4, &amp;wb, NULL );\n        CloseHandle( file );\n        delete [] dwpBits;\n    }\n    HDC getDC() const     { return hdc; }\n    int getWidth() const  { return width; }\n    int getHeight() const { return height; }\nprivate:\n    void createPen() {\n        if( pen ) DeleteObject( pen );\n        pen = CreatePen( PS_SOLID, wid, clr );\n        SelectObject( hdc, pen );\n    }\n    HBITMAP bmp; HDC    hdc;\n    HPEN    pen; HBRUSH brush;\n    void    *pBits; int    width, height, wid;\n    DWORD    clr;\n};\nclass fern {\npublic:\n    void draw() {\n        bmp.create( BMP_SIZE, BMP_SIZE );\n        float x = 0, y = 0; HDC dc = bmp.getDC();\n        int hs = BMP_SIZE &gt;&gt; 1;\n        for( int f = 0; f &lt; ITERATIONS; f++ ) {\n            SetPixel( dc, hs + static_cast&lt;int&gt;( x * 55.f ), \n                      BMP_SIZE - 15 - static_cast&lt;int&gt;( y * 55.f ), \n                      RGB( static_cast&lt;int&gt;( rnd() * 80.f ) + 20, \n                           static_cast&lt;int&gt;( rnd() * 128.f ) + 128, \n                           static_cast&lt;int&gt;( rnd() * 80.f ) + 30 ) ); \n            getXY( x, y );\n        }\n        bmp.saveBitmap( "./bf.bmp" );\n    }\nprivate:\n    void getXY( float&amp; x, float&amp; y ) {\n        float g, xl, yl;\n        g = rnd();\n        if( g &lt; .01f ) { xl = 0; yl = .16f * y; } \n        else if( g &lt; .07f ) {\n            xl = .2f * x - .26f * y;\n            yl = .23f * x + .22f * y + 1.6f;\n        } else if( g &lt; .14f ) {\n            xl = -.15f * x + .28f * y;\n            yl = .26f * x + .24f * y + .44f;\n        } else {\n            xl = .85f * x + .04f * y;\n            yl = -.04f * x + .85f * y + 1.6f;\n        }\n        x = xl; y = yl;\n    }\n    float rnd() {\n        return static_cast&lt;float&gt;( rand() ) / static_cast&lt;float&gt;( RAND_MAX );\n    }\n    myBitmap bmp;\n};\nint main( int argc, char* argv[]) {\n    srand( static_cast&lt;unsigned&gt;( time( 0 ) ) );\n    fern f; f.draw(); return 0;    \n}\n', 'document_id': 449}</code> |
* Loss: <code>pylate.losses.contrastive.Contrastive</code>

#### codetransdl

* Dataset: [codetransdl](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code) at [68d15dc](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code/tree/68d15dc382d1ab682bb3435318eece8d49949b9f)
* Size: 564 training samples
* Approximate statistics based on the first 564 samples:
  |         | query              | positive           | negative_0         | negative_1         | negative_2         | negative_3         | negative_4         | negative_5         | negative_6         | negative_7         | negative_8         | negative_9         | negative_10        | negative_11        | negative_12        | negative_13        | negative_14        | negative_15        | negative_16        | negative_17        | negative_18        | negative_19        | negative_20        | negative_21        | negative_22        | negative_23        | negative_24        | negative_25        | negative_26        | negative_27        | negative_28        | negative_29        | negative_30        | negative_31        | negative_32        | negative_33        | negative_34        | negative_35        | negative_36        | negative_37        | negative_38        | negative_39        | negative_40        | negative_41        | negative_42        | negative_43        | negative_44        | negative_45        | negative_46        | negative_47        | negative_48        | negative_49        |
  |:--------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|
  | type    | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               |
  | details |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
* Samples:
  | query | positive | negative_0 |
  |:------|:---------|:-----------|
  | <code>{'query': 'x = tf.range(12)\ntf.size(x)\nX = tf.reshape(x, (3, 4))\ntf.zeros((2, 3, 4))\ntf.ones((2, 3, 4))\ntf.random.normal(shape=[3, 4])\ntf.constant([[2, 1, 4, 3], [1, 2, 3, 4], [4, 3, 2, 1]])\nx = tf.constant([1.0, 2, 4, 8])\ny = tf.constant([2.0, 2, 2, 2])\nx + y, x - y, x * y, x / y, x ** y\ntf.exp(x)\nX = tf.reshape(tf.range(12, dtype=tf.float32), (3, 4))\nY = tf.constant([[2.0, 1, 4, 3], [1, 2, 3, 4], [4, 3, 2, 1]])\ntf.concat([X, Y], axis=0), tf.concat([X, Y], axis=1)\ntf.reduce_sum(X)\na = tf.reshape(tf.range(3), (3, 1))\nb = tf.reshape(tf.range(2), (1, 2))\nX_var = tf.Variable(X)\nX_var[1, 2].assign(9)\nX_var = tf.Variable(X)\nX_var[0:2, :].assign(tf.ones(X_var[0:2,:].shape, dtype = tf.float32) * 12)\nZ = tf.Variable(tf.zeros_like(Y))\nZ.assign(X + Y)\n@tf.function\ndef computation(X, Y):\n    Z = tf.zeros_like(Y)\n    A = X + Y\n    B = A + Y\n    C = B + Y\n    return C + Y\ncomputation(X, Y)\nA = X.numpy()\nB = tf.constant(A)\na = tf.constant([3.5]).numpy()\nprint(a, a.item(), float(a), int(a))', 'query_id': 0}</code> | <code>{'document': "x = paddle.arange(12)\nx.numel()\nX = paddle.reshape(x, (3, 4))\npaddle.zeros((2, 3, 4))\npaddle.ones((2, 3, 4))\npaddle.randn((3, 4),'float32')\npaddle.to_tensor([[2, 1, 4, 3], [1, 2, 3, 4], [4, 3, 2, 1]])\nx = paddle.to_tensor([1.0, 2, 4, 8])\ny = paddle.to_tensor([2, 2, 2, 2])\nx + y, x - y, x * y, x / y, x**y\npaddle.exp(x)\nX = paddle.arange(12, dtype='float32').reshape((3, 4))\nY = paddle.to_tensor([[2.0, 1, 4, 3], [1, 2, 3, 4], [4, 3, 2, 1]])\npaddle.concat((X, Y), axis=0), paddle.concat((X, Y), axis=1)\nX.sum()\na = paddle.reshape(paddle.arange(3), (3, 1))\nb = paddle.reshape(paddle.arange(2), (1, 2))\nX[1, 2] = 9\nX[0:2, :] = 12\nZ = paddle.zeros_like(Y)\nZ = X + Y\nbefore = id(X)\nX += Y\nid(X) == before\nA = X.numpy()\nB = paddle.to_tensor(A)\ntype(A), type(B)\na = paddle.to_tensor([3.5])\na, a.item(), float(a), int(a)", 'document_id': 0}</code> | <code>{'document': 'x = torch.arange(12)\nx.numel()\nX = x.reshape(3, 4)\ntorch.zeros((2, 3, 4))\ntorch.ones((2, 3, 4))\ntorch.randn(3, 4)\ntorch.tensor([[2, 1, 4, 3], [1, 2, 3, 4], [4, 3, 2, 1]])\nx = torch.tensor([1.0, 2, 4, 8])\ny = torch.tensor([2, 2, 2, 2])\nx + y, x - y, x * y, x / y, x ** y\ntorch.exp(x)\nX = torch.arange(12, dtype=torch.float32).reshape((3,4))\nY = torch.tensor([[2.0, 1, 4, 3], [1, 2, 3, 4], [4, 3, 2, 1]])\ntorch.cat((X, Y), dim=0), torch.cat((X, Y), dim=1)\nX.sum()\na = torch.arange(3).reshape((3, 1))\nb = torch.arange(2).reshape((1, 2))\nX[1, 2] = 9\nX[0:2, :] = 12\nZ = torch.zeros_like(Y)\nZ[:] = X + Y\nbefore = id(X)\nX += Y\nid(X) == before\nA = X.numpy()\nB = torch.tensor(A)\na = torch.tensor([3.5])\nprint(a, a.item(), float(a), int(a))', 'document_id': 188}</code> |
* Loss: <code>pylate.losses.contrastive.Contrastive</code>

#### CodeSearchNet_go

* Dataset: [CodeSearchNet_go](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code) at [9f89bdc](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code/tree/9f89bdc63567c5d86771d9e92c024625d59e13b0)
* Size: 166,972 training samples
* Approximate statistics based on the first 1000 samples:
  |         | query              | positive           | negative_0         | negative_1         | negative_2         | negative_3         | negative_4         | negative_5         | negative_6         | negative_7         | negative_8         | negative_9         | negative_10        | negative_11        | negative_12        | negative_13        | negative_14        | negative_15        | negative_16        | negative_17        | negative_18        | negative_19        | negative_20        | negative_21        | negative_22        | negative_23        | negative_24        | negative_25        | negative_26        | negative_27        | negative_28        | negative_29        | negative_30        | negative_31        | negative_32        | negative_33        | negative_34        | negative_35        | negative_36        | negative_37        | negative_38        | negative_39        | negative_40        | negative_41        | negative_42        | negative_43        | negative_44        | negative_45        | negative_46        | negative_47        | negative_48        | negative_49        |
  |:--------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|
  | type    | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               |
  | details |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
* Samples:
  | query | positive | negative_0 |
  |:------|:---------|:-----------|
  | <code>{'query': 'getStringValue func getStringValue(b []rune) (int, error) {\n\tif b[0] != \'"\' {\n\t\treturn 0, NewParseError("strings must start with \'\\"\'")\n\t}\n\n\tendQuote := false\n\ti := 1\n\n\tfor ; i &lt; len(b) &amp;&amp; !endQuote; i++ {\n\t\tif escaped := isEscaped(b[:i], b[i]); b[i] == \'"\' &amp;&amp; !escaped {\n\t\t\tendQuote = true\n\t\t\tbreak\n\t\t} else if escaped {\n\t\t\t/*c, err := getEscapedByte(b[i])\n\t\t\tif err != nil {\n\t\t\t\treturn 0, err\n\t\t\t}\n\n\t\t\tb[i-1] = c\n\t\t\tb = append(b[:i], b[i+1:]...)\n\t\t\ti--*/\n\n\t\t\tcontinue\n\t\t}\n\t}\n\n\tif !endQuote {\n\t\treturn 0, NewParseError("missing \'\\"\' in string value")\n\t}\n\n\treturn i + 1, nil\n}', 'query_id': 0}</code> | <code>{'document': '// getStringValue will return a quoted string and the amount\n// of bytes read\n//\n// an error will be returned if the string is not properly formatted', 'document_id': 0}</code> | <code>{'document': '// stringValue returns the string value of string literal e.', 'document_id': 18454}</code> |
* Loss: <code>pylate.losses.contrastive.Contrastive</code>

#### CodeSearchNet_java

* Dataset: [CodeSearchNet_java](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code) at [9f89bdc](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code/tree/9f89bdc63567c5d86771d9e92c024625d59e13b0)
* Size: 162,773 training samples
* Approximate statistics based on the first 1000 samples:
  |         | query              | positive           | negative_0         | negative_1         | negative_2         | negative_3         | negative_4         | negative_5         | negative_6         | negative_7         | negative_8         | negative_9         | negative_10        | negative_11        | negative_12        | negative_13        | negative_14        | negative_15        | negative_16        | negative_17        | negative_18        | negative_19        | negative_20        | negative_21        | negative_22        | negative_23        | negative_24        | negative_25        | negative_26        | negative_27        | negative_28        | negative_29        | negative_30        | negative_31        | negative_32        | negative_33        | negative_34        | negative_35        | negative_36        | negative_37        | negative_38        | negative_39        | negative_40        | negative_41        | negative_42        | negative_43        | negative_44        | negative_45        | negative_46        | negative_47        | negative_48        | negative_49        |
  |:--------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|
  | type    | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               |
  | details |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
* Samples:
  | query | positive | negative_0 |
  |:------|:---------|:-----------|
  | <code>{'query': 'SCryptUtil.check public static boolean check(String passwd, String hashed) {\n        try {\n            String[] parts = hashed.split("\\\\$");\n\n            if (parts.length != 5 \|\| !parts[1].equals("s0")) {\n                throw new IllegalArgumentException("Invalid hashed value");\n            }\n\n            long params = Long.parseLong(parts[2], 16);\n            byte[] salt = decode(parts[3].toCharArray());\n            byte[] derived0 = decode(parts[4].toCharArray());\n\n            int N = (int) Math.pow(2, params &gt;&gt; 16 &amp; 0xffff);\n            int r = (int) params &gt;&gt; 8 &amp; 0xff;\n            int p = (int) params      &amp; 0xff;\n\n            byte[] derived1 = SCrypt.scrypt(passwd.getBytes("UTF-8"), salt, N, r, p, 32);\n\n            if (derived0.length != derived1.length) return false;\n\n            int result = 0;\n            for (int i = 0; i &lt; derived0.length; i++) {\n                result \|= derived0[i] ^ derived1[i];\n            }\n            return result == 0;\n        } catch (UnsupportedEncodingException e) {\n            throw new IllegalStateException("JVM doesn\'t support UTF-8?");\n        } catch (GeneralSecurityException e) {\n            throw new IllegalStateException("JVM doesn\'t support SHA1PRNG or HMAC_SHA256?");\n        }\n    }', 'query_id': 0}</code> | <code>{'document': 'Compare the supplied plaintext password to a hashed password.\n\n@param   passwd  Plaintext password.\n@param   hashed  scrypt hashed password.\n\n@return true if passwd matches hashed value.', 'document_id': 0}</code> | <code>{'document': 'Compute the the hash value for the String.\n\n@param passwd\nthe password String\n@return\nthe Hash digest byte.\n@throws NoSuchAlgorithmException\nthe NoSuchAlgorithmException.', 'document_id': 86052}</code> |
* Loss: <code>pylate.losses.contrastive.Contrastive</code>

#### CodeSearchNet_javascript

* Dataset: [CodeSearchNet_javascript](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code) at [9f89bdc](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code/tree/9f89bdc63567c5d86771d9e92c024625d59e13b0)
* Size: 56,734 training samples
* Approximate statistics based on the first 1000 samples:
  |         | query              | positive           | negative_0         | negative_1         | negative_2         | negative_3         | negative_4         | negative_5         | negative_6         | negative_7         | negative_8         | negative_9         | negative_10        | negative_11        | negative_12        | negative_13        | negative_14        | negative_15        | negative_16        | negative_17        | negative_18        | negative_19        | negative_20        | negative_21        | negative_22        | negative_23        | negative_24        | negative_25        | negative_26        | negative_27        | negative_28        | negative_29        | negative_30        | negative_31        | negative_32        | negative_33        | negative_34        | negative_35        | negative_36        | negative_37        | negative_38        | negative_39        | negative_40        | negative_41        | negative_42        | negative_43        | negative_44        | negative_45        | negative_46        | negative_47        | negative_48        | negative_49        |
  |:--------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|
  | type    | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               |
  | details |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
* Samples:
  | query | positive | negative_0 |
  |:------|:---------|:-----------|
  | <code>{'query': 'function (state, action) {\n    return _.defaults({\n      isValidating: action.isValidating,\n      lastAction: IS_VALIDATING\n    }, state)\n  }', 'query_id': 0}</code> | <code>{'document': 'Update is validating result\n@param {State} state - state to update\n@param {Action} action - action\n@returns {State} - updated state', 'document_id': 0}</code> | <code>{'document': 'Updates state with newsletter settings submit error\nHolds information only for latest request\n\n@param  {Object} state  Current state\n@param  {Object} action Action\n@return {Object}        Updated state', 'document_id': 58211}</code> |
* Loss: <code>pylate.losses.contrastive.Contrastive</code>

#### CodeSearchNet_php

* Dataset: [CodeSearchNet_php](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code) at [9f89bdc](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code/tree/9f89bdc63567c5d86771d9e92c024625d59e13b0)
* Size: 240,327 training samples
* Approximate statistics based on the first 1000 samples:
  |         | query              | positive           | negative_0         | negative_1         | negative_2         | negative_3         | negative_4         | negative_5         | negative_6         | negative_7         | negative_8         | negative_9         | negative_10        | negative_11        | negative_12        | negative_13        | negative_14        | negative_15        | negative_16        | negative_17        | negative_18        | negative_19        | negative_20        | negative_21        | negative_22        | negative_23        | negative_24        | negative_25        | negative_26        | negative_27        | negative_28        | negative_29        | negative_30        | negative_31        | negative_32        | negative_33        | negative_34        | negative_35        | negative_36        | negative_37        | negative_38        | negative_39        | negative_40        | negative_41        | negative_42        | negative_43        | negative_44        | negative_45        | negative_46        | negative_47        | negative_48        | negative_49        |
  |:--------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|
  | type    | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               |
  | details |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
* Samples:
  | query | positive | negative_0 |
  |:------|:---------|:-----------|
  | <code>{'query': 'BreadcrumbCollection.addOne public function addOne($title, $url, array $data = [])\n    {\n        return $this-&gt;addBreadcrumb(\n            BreadcrumbItem::make($title, $url, $data)\n        );\n    }', 'query_id': 0}</code> | <code>{'document': 'Add a breadcrumb item to collection.\n\n@param  string  $title\n@param  string  $url\n@param  array   $data\n\n@return self', 'document_id': 0}</code> | <code>{'document': 'Add a breadcrumb to the collection.\n\n@param  string  $title\n@param  string  $url\n@return void', 'document_id': 135797}</code> |
* Loss: <code>pylate.losses.contrastive.Contrastive</code>

#### CodeSearchNet_python

* Dataset: [CodeSearchNet_python](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code) at [9f89bdc](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code/tree/9f89bdc63567c5d86771d9e92c024625d59e13b0)
* Size: 251,063 training samples
* Approximate statistics based on the first 1000 samples:
  |         | query              | positive           | negative_0         | negative_1         | negative_2         | negative_3         | negative_4         | negative_5         | negative_6         | negative_7         | negative_8         | negative_9         | negative_10        | negative_11        | negative_12        | negative_13        | negative_14        | negative_15        | negative_16        | negative_17        | negative_18        | negative_19        | negative_20        | negative_21        | negative_22        | negative_23        | negative_24        | negative_25        | negative_26        | negative_27        | negative_28        | negative_29        | negative_30        | negative_31        | negative_32        | negative_33        | negative_34        | negative_35        | negative_36        | negative_37        | negative_38        | negative_39        | negative_40        | negative_41        | negative_42        | negative_43        | negative_44        | negative_45        | negative_46        | negative_47        | negative_48        | negative_49        |
  |:--------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|
  | type    | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               |
  | details |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
* Samples:
  | query | positive | negative_0 |
  |:------|:---------|:-----------|
  | <code>{'query': 'AbstractElement.settext def settext(self, text, cls=\'current\'):\n        """Set the text for this element.\n\n        Arguments:\n            text (str): The text\n            cls (str): The class of the text, defaults to ``current`` (leave this unless you know what you are doing). There may be only one text content element of each class associated with the element.\n        """\n        self.replace(TextContent, value=text, cls=cls)', 'query_id': 0}</code> | <code>{'document': 'Set the text for this element.\n\n        Arguments:\n            text (str): The text\n            cls (str): The class of the text, defaults to ``current`` (leave this unless you know what you are doing). There may be only one text content element of each class associated with the element.', 'document_id': 0}</code> | <code>{'document': 'Set text value as sole Text child node of element; any existing\n        Text nodes are removed', 'document_id': 107570}</code> |
* Loss: <code>pylate.losses.contrastive.Contrastive</code>

#### CodeSearchNet_ruby

* Dataset: [CodeSearchNet_ruby](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code) at [9f89bdc](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code/tree/9f89bdc63567c5d86771d9e92c024625d59e13b0)
* Size: 24,731 training samples
* Approximate statistics based on the first 1000 samples:
  |         | query              | positive           | negative_0         | negative_1         | negative_2         | negative_3         | negative_4         | negative_5         | negative_6         | negative_7         | negative_8         | negative_9         | negative_10        | negative_11        | negative_12        | negative_13        | negative_14        | negative_15        | negative_16        | negative_17        | negative_18        | negative_19        | negative_20        | negative_21        | negative_22        | negative_23        | negative_24        | negative_25        | negative_26        | negative_27        | negative_28        | negative_29        | negative_30        | negative_31        | negative_32        | negative_33        | negative_34        | negative_35        | negative_36        | negative_37        | negative_38        | negative_39        | negative_40        | negative_41        | negative_42        | negative_43        | negative_44        | negative_45        | negative_46        | negative_47        | negative_48        | negative_49        |
  |:--------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|
  | type    | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               |
  | details |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
* Samples:
  | query | positive | negative_0 |
  |:------|:---------|:-----------|
  | <code>{'query': 'CelluloidPubsub.Reactor.handle_parsed_websocket_message def handle_parsed_websocket_message(json_data)\n      data =  json_data.is_a?(Hash) ? json_data.stringify_keys : {}\n      if CelluloidPubsub::Reactor::AVAILABLE_ACTIONS.include?(data[\'client_action\'].to_s)\n        log_debug "#{self.class} finds actions for  #{json_data}"\n        delegate_action(data) if data[\'client_action\'].present?\n      else\n        handle_unknown_action(data[\'channel\'], json_data)\n      end\n    end', 'query_id': 0}</code> | <code>{'document': 'method that checks if the data is a Hash\n\n if the data is a hash then will stringify the keys and will call the method {#delegate_action}\n that will handle the message, otherwise will call the method {#handle_unknown_action}\n\n @see #delegate_action\n @see #handle_unknown_action\n\n @param [Hash] json_data\n\n @return [void]\n\n @api public', 'document_id': 0}</code> | <code>{'document': "If the message can be parsed into a Hash it will respond to the reactor's websocket connection with the same message in JSON format\n otherwise will try send the message how it is and escaped into JSON format\n\n @param [CelluloidPubsub::Reactor] reactor The  reactor that received an unhandled message\n @param [Object] data The message that the reactor could not handle\n\n @return [void]\n\n @api public", 'document_id': 24862}</code> |
* Loss: <code>pylate.losses.contrastive.Contrastive</code>

#### CodeSearchNet_ccr_go

* Dataset: [CodeSearchNet_ccr_go](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code) at [9f89bdc](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code/tree/9f89bdc63567c5d86771d9e92c024625d59e13b0)
* Size: 167,278 training samples
* Approximate statistics based on the first 1000 samples:
  |         | query              | positive           | negative_0         | negative_1         | negative_2         | negative_3         | negative_4         | negative_5         | negative_6         | negative_7         | negative_8         | negative_9         | negative_10        | negative_11        | negative_12        | negative_13        | negative_14        | negative_15        | negative_16        | negative_17        | negative_18        | negative_19        | negative_20        | negative_21        | negative_22        | negative_23        | negative_24        | negative_25        | negative_26        | negative_27        | negative_28        | negative_29        | negative_30        | negative_31        | negative_32        | negative_33        | negative_34        | negative_35        | negative_36        | negative_37        | negative_38        | negative_39        | negative_40        | negative_41        | negative_42        | negative_43        | negative_44        | negative_45        | negative_46        | negative_47        | negative_48        | negative_49        |
  |:--------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|
  | type    | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               |
  | details |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
* Samples:
  | query | positive | negative_0 |
  |:------|:---------|:-----------|
  | <code>{'query': 'getStringValue func getStringValue(b []rune) (int, error) {\n\tif b[0] != \'"\' {\n\t\treturn 0, NewParseError("strings must start with \'\\"\'")\n\t}\n\n\tendQuote := false\n\ti := 1\n\n\tfor ; i &lt; len(b) &amp;&amp; !endQuote; i++ {\n\t\tif escaped := isEscaped(b[:i], b[i]); b[i] == \'"\' &amp;&amp; !escaped {\n\t\t\tendQuote = true\n\t\t\tbreak\n\t\t} else if escaped {\n\t\t\t/*c, err := getEscapedByte(b[i])\n\t\t\tif err !=', 'query_id': 0}</code> | <code>{'document': ' nil {\n\t\t\t\treturn 0, err\n\t\t\t}\n\n\t\t\tb[i-1] = c\n\t\t\tb = append(b[:i], b[i+1:]...)\n\t\t\ti--*/\n\n\t\t\tcontinue\n\t\t}\n\t}\n\n\tif !endQuote {\n\t\treturn 0, NewParseError("missing \'\\"\' in string value")\n\t}\n\n\treturn i + 1, nil\n}', 'document_id': 0}</code> | <code>{'document': '\t\t\treturn 0, "", fmt.Errorf("nothing following final escape in %q", s)\n\t\t\t}\n\t\t\tb = s[i]\n\t\t}\n\t\tunesc = append(unesc, b)\n\t}\n\treturn i, string(unesc), nil\n}', 'document_id': 153298}</code> |
* Loss: <code>pylate.losses.contrastive.Contrastive</code>

#### CodeSearchNet_ccr_java

* Dataset: [CodeSearchNet_ccr_java](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code) at [9f89bdc](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code/tree/9f89bdc63567c5d86771d9e92c024625d59e13b0)
* Size: 164,900 training samples
* Approximate statistics based on the first 1000 samples:
  |         | query              | positive           | negative_0         | negative_1         | negative_2         | negative_3         | negative_4         | negative_5         | negative_6         | negative_7         | negative_8         | negative_9         | negative_10        | negative_11        | negative_12        | negative_13        | negative_14        | negative_15        | negative_16        | negative_17        | negative_18        | negative_19        | negative_20        | negative_21        | negative_22        | negative_23        | negative_24        | negative_25        | negative_26        | negative_27        | negative_28        | negative_29        | negative_30        | negative_31        | negative_32        | negative_33        | negative_34        | negative_35        | negative_36        | negative_37        | negative_38        | negative_39        | negative_40        | negative_41        | negative_42        | negative_43        | negative_44        | negative_45        | negative_46        | negative_47        | negative_48        | negative_49        |
  |:--------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|
  | type    | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               |
  | details |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
* Samples:
  | query | positive | negative_0 |
  |:------|:---------|:-----------|
  | <code>{'query': 'SCryptUtil.check public static boolean check(String passwd, String hashed) {\n        try {\n            String[] parts = hashed.split("\\\\$");\n\n            if (parts.length != 5 \|\| !parts[1].equals("s0")) {\n                throw new IllegalArgumentException("Invalid hashed value");\n            }\n\n            long params = Long.parseLong(parts[2], 16);\n            byte[] salt = decode(parts[3].toCharArray());\n            byte[] derived0 = decode(parts[4].toCharArray());\n\n            int N = (int) Math.pow(2, params &gt;&gt; 16 &amp; 0xffff);\n  ', 'query_id': 0}</code> | <code>{'document': '          int r = (int) params &gt;&gt; 8 &amp; 0xff;\n            int p = (int) params      &amp; 0xff;\n\n            byte[] derived1 = SCrypt.scrypt(passwd.getBytes("UTF-8"), salt, N, r, p, 32);\n\n            if (derived0.length != derived1.length) return false;\n\n            int result = 0;\n            for (int i = 0; i &lt; derived0.length; i++) {\n                result \|= derived0[i] ^ derived1[i];\n            }\n            return result == 0;\n        } catch (UnsupportedEncodingException e) {\n            throw new IllegalStateException("JVM doesn\'t support UTF-8?");\n        } catch (GeneralSecurityException e) {\n            throw new IllegalStateException("JVM doesn\'t support SHA1PRNG or HMAC_SHA256?");\n        }\n    }', 'document_id': 0}</code> | <code>{'document': '\n    } catch (Exception e) {\n      throw new IllegalStateException("Validity checks failed for pass: " + passName, e);\n    }\n  }', 'document_id': 148733}</code> |
* Loss: <code>pylate.losses.contrastive.Contrastive</code>

#### CodeSearchNet_ccr_javascript

* Dataset: [CodeSearchNet_ccr_javascript](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code) at [9f89bdc](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code/tree/9f89bdc63567c5d86771d9e92c024625d59e13b0)
* Size: 58,017 training samples
* Approximate statistics based on the first 1000 samples:
  |         | query              | positive           | negative_0         | negative_1         | negative_2         | negative_3         | negative_4         | negative_5         | negative_6         | negative_7         | negative_8         | negative_9         | negative_10        | negative_11        | negative_12        | negative_13        | negative_14        | negative_15        | negative_16        | negative_17        | negative_18        | negative_19        | negative_20        | negative_21        | negative_22        | negative_23        | negative_24        | negative_25        | negative_26        | negative_27        | negative_28        | negative_29        | negative_30        | negative_31        | negative_32        | negative_33        | negative_34        | negative_35        | negative_36        | negative_37        | negative_38        | negative_39        | negative_40        | negative_41        | negative_42        | negative_43        | negative_44        | negative_45        | negative_46        | negative_47        | negative_48        | negative_49        |
  |:--------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|
  | type    | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               |
  | details |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
* Samples:
  | query | positive | negative_0 |
  |:------|:---------|:-----------|
  | <code>{'query': 'function (state, action) {\n    return _.defaults({\n     ', 'query_id': 0}</code> | <code>{'document': ' isValidating: action.isValidating,\n      lastAction: IS_VALIDATING\n    }, state)\n  }', 'document_id': 0}</code> | <code>{'document': '        baz: action.payload,\n      };\n    default:\n      return state;\n  }\n}', 'document_id': 47204}</code> |
* Loss: <code>pylate.losses.contrastive.Contrastive</code>

#### CodeSearchNet_ccr_php

* Dataset: [CodeSearchNet_ccr_php](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code) at [9f89bdc](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code/tree/9f89bdc63567c5d86771d9e92c024625d59e13b0)
* Size: 241,177 training samples
* Approximate statistics based on the first 1000 samples:
  |         | query              | positive           | negative_0         | negative_1         | negative_2         | negative_3         | negative_4         | negative_5         | negative_6         | negative_7         | negative_8         | negative_9         | negative_10        | negative_11        | negative_12        | negative_13        | negative_14        | negative_15        | negative_16        | negative_17        | negative_18        | negative_19        | negative_20        | negative_21        | negative_22        | negative_23        | negative_24        | negative_25        | negative_26        | negative_27        | negative_28        | negative_29        | negative_30        | negative_31        | negative_32        | negative_33        | negative_34        | negative_35        | negative_36        | negative_37        | negative_38        | negative_39        | negative_40        | negative_41        | negative_42        | negative_43        | negative_44        | negative_45        | negative_46        | negative_47        | negative_48        | negative_49        |
  |:--------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|
  | type    | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               |
  | details |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
* Samples:
  | query | positive | negative_0 |
  |:------|:---------|:-----------|
  | <code>{'query': 'BreadcrumbCollection.addOne public function addOne($title, $url, array $data = [])\n    {\n       ', 'query_id': 0}</code> | <code>{'document': ' return $this-&gt;addBreadcrumb(\n            BreadcrumbItem::make($title, $url, $data)\n        );\n    }', 'document_id': 0}</code> | <code>{'document': '   $this-&gt;breadcrumbs-&gt;push(new Breadcrumb($title, $url));\n    }', 'document_id': 135797}</code> |
* Loss: <code>pylate.losses.contrastive.Contrastive</code>

#### CodeSearchNet_ccr_python

* Dataset: [CodeSearchNet_ccr_python](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code) at [9f89bdc](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code/tree/9f89bdc63567c5d86771d9e92c024625d59e13b0)
* Size: 251,758 training samples
* Approximate statistics based on the first 1000 samples:
  |         | query              | positive           | negative_0         | negative_1         | negative_2         | negative_3         | negative_4         | negative_5         | negative_6         | negative_7         | negative_8         | negative_9         | negative_10        | negative_11        | negative_12        | negative_13        | negative_14        | negative_15        | negative_16        | negative_17        | negative_18        | negative_19        | negative_20        | negative_21        | negative_22        | negative_23        | negative_24        | negative_25        | negative_26        | negative_27        | negative_28        | negative_29        | negative_30        | negative_31        | negative_32        | negative_33        | negative_34        | negative_35        | negative_36        | negative_37        | negative_38        | negative_39        | negative_40        | negative_41        | negative_42        | negative_43        | negative_44        | negative_45        | negative_46        | negative_47        | negative_48        | negative_49        |
  |:--------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|
  | type    | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               |
  | details |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
* Samples:
  | query | positive | negative_0 |
  |:------|:---------|:-----------|
  | <code>{'query': 'AbstractElement.settext def settext(self, text, cls=\'current\'):\n        """Set the text for this element.\n\n        Arguments:\n            text (str): The text\n            cls (str): The class of the text, defaults to ``current`` (leave this unless you know what you are doing). There may be', 'query_id': 0}</code> | <code>{'document': ' only one text content element of each class associated with the element.\n        """\n        self.replace(TextContent, value=text, cls=cls)', 'document_id': 0}</code> | <code>{'document': '\n        Jython and has been superseded by the \'ast\' module in Python 2.6 and\n        later.\n        """\n        return cls.interpret(parser.expr(text).totuple(1)[1])', 'document_id': 276506}</code> |
* Loss: <code>pylate.losses.contrastive.Contrastive</code>

#### CodeSearchNet_ccr_ruby

* Dataset: [CodeSearchNet_ccr_ruby](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code) at [9f89bdc](https://huggingface.co/datasets/lightonai/nv-embed-supervised-distill-dedup-code/tree/9f89bdc63567c5d86771d9e92c024625d59e13b0)
* Size: 24,918 training samples
* Approximate statistics based on the first 1000 samples:
  |         | query              | positive           | negative_0         | negative_1         | negative_2         | negative_3         | negative_4         | negative_5         | negative_6         | negative_7         | negative_8         | negative_9         | negative_10        | negative_11        | negative_12        | negative_13        | negative_14        | negative_15        | negative_16        | negative_17        | negative_18        | negative_19        | negative_20        | negative_21        | negative_22        | negative_23        | negative_24        | negative_25        | negative_26        | negative_27        | negative_28        | negative_29        | negative_30        | negative_31        | negative_32        | negative_33        | negative_34        | negative_35        | negative_36        | negative_37        | negative_38        | negative_39        | negative_40        | negative_41        | negative_42        | negative_43        | negative_44        | negative_45        | negative_46        | negative_47        | negative_48        | negative_49        |
  |:--------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|:-------------------|
  | type    | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               | dict               |
  | details |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
* Samples:
  | query | positive | negative_0 |
  |:------|:---------|:-----------|
  | <code>{'query': 'CelluloidPubsub.Reactor.handle_parsed_websocket_message def handle_parsed_websocket_message(json_data)\n      data =  json_data.is_a?(Hash) ? json_data.stringify_keys : {}\n      if CelluloidPubsub::Reactor::AVAILABLE_ACTIONS.include?(data[\'client_action\'].to_s)\n        log_debug "#{self.class} finds actions for  #{json_data}"\n  ', 'query_id': 0}</code> | <code>{'document': "      delegate_action(data) if data['client_action'].present?\n      else\n        handle_unknown_action(data['channel'], json_data)\n      end\n    end", 'document_id': 0}</code> | <code>{'document': ' elsif data[\'method\']\n      # RPC notice.\n      event = { name: data[\'method\'], data: data[\'params\'] }\n      @events &lt;&lt; event\n      return nil\n    else\n      close\n      raise RuntimeError, "Unexpected / invalid RPC message #{data.inspect}"\n    end\n  end', 'document_id': 3560}</code> |
* Loss: <code>pylate.losses.contrastive.Contrastive</code>

### Training Hyperparameters
#### Non-Default Hyperparameters

- `eval_strategy`: steps
- `per_device_train_batch_size`: 128
- `per_device_eval_batch_size`: 128
- `learning_rate`: 3e-05
- `num_train_epochs`: 1
- `bf16`: True
- `dataloader_num_workers`: 8
- `accelerator_config`: {'split_batches': True, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}

#### All Hyperparameters
<details><summary>Click to expand</summary>

- `overwrite_output_dir`: False
- `do_predict`: False
- `eval_strategy`: steps
- `prediction_loss_only`: True
- `per_device_train_batch_size`: 128
- `per_device_eval_batch_size`: 128
- `per_gpu_train_batch_size`: None
- `per_gpu_eval_batch_size`: None
- `gradient_accumulation_steps`: 1
- `eval_accumulation_steps`: None
- `torch_empty_cache_steps`: None
- `learning_rate`: 3e-05
- `weight_decay`: 0.0
- `adam_beta1`: 0.9
- `adam_beta2`: 0.999
- `adam_epsilon`: 1e-08
- `max_grad_norm`: 1.0
- `num_train_epochs`: 1
- `max_steps`: -1
- `lr_scheduler_type`: linear
- `lr_scheduler_kwargs`: {}
- `warmup_ratio`: 0.0
- `warmup_steps`: 0
- `log_level`: passive
- `log_level_replica`: warning
- `log_on_each_node`: True
- `logging_nan_inf_filter`: True
- `save_safetensors`: True
- `save_on_each_node`: False
- `save_only_model`: False
- `restore_callback_states_from_checkpoint`: False
- `no_cuda`: False
- `use_cpu`: False
- `use_mps_device`: False
- `seed`: 42
- `data_seed`: None
- `jit_mode_eval`: False
- `bf16`: True
- `fp16`: False
- `fp16_opt_level`: O1
- `half_precision_backend`: auto
- `bf16_full_eval`: False
- `fp16_full_eval`: False
- `tf32`: None
- `local_rank`: 0
- `ddp_backend`: None
- `tpu_num_cores`: None
- `tpu_metrics_debug`: False
- `debug`: []
- `dataloader_drop_last`: True
- `dataloader_num_workers`: 8
- `dataloader_prefetch_factor`: None
- `past_index`: -1
- `disable_tqdm`: False
- `remove_unused_columns`: True
- `label_names`: None
- `load_best_model_at_end`: False
- `ignore_data_skip`: False
- `fsdp`: []
- `fsdp_min_num_params`: 0
- `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
- `fsdp_transformer_layer_cls_to_wrap`: None
- `accelerator_config`: {'split_batches': True, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
- `parallelism_config`: None
- `deepspeed`: None
- `label_smoothing_factor`: 0.0
- `optim`: adamw_torch_fused
- `optim_args`: None
- `adafactor`: False
- `group_by_length`: False
- `length_column_name`: length
- `project`: huggingface
- `trackio_space_id`: trackio
- `ddp_find_unused_parameters`: None
- `ddp_bucket_cap_mb`: None
- `ddp_broadcast_buffers`: False
- `dataloader_pin_memory`: True
- `dataloader_persistent_workers`: False
- `skip_memory_metrics`: True
- `use_legacy_prediction_loop`: False
- `push_to_hub`: False
- `resume_from_checkpoint`: None
- `hub_model_id`: None
- `hub_strategy`: every_save
- `hub_private_repo`: None
- `hub_always_push`: False
- `hub_revision`: None
- `gradient_checkpointing`: False
- `gradient_checkpointing_kwargs`: None
- `include_inputs_for_metrics`: False
- `include_for_metrics`: []
- `eval_do_concat_batches`: True
- `fp16_backend`: auto
- `push_to_hub_model_id`: None
- `push_to_hub_organization`: None
- `mp_parameters`: 
- `auto_find_batch_size`: False
- `full_determinism`: False
- `torchdynamo`: None
- `ray_scope`: last
- `ddp_timeout`: 1800
- `torch_compile`: False
- `torch_compile_backend`: None
- `torch_compile_mode`: None
- `include_tokens_per_second`: False
- `include_num_input_tokens_seen`: no
- `neftune_noise_alpha`: None
- `optim_target_modules`: None
- `batch_eval_metrics`: False
- `eval_on_start`: False
- `use_liger_kernel`: False
- `liger_kernel_config`: None
- `eval_use_gather_object`: False
- `average_tokens_across_devices`: True
- `prompts`: None
- `batch_sampler`: batch_sampler
- `router_mapping`: {}
- `learning_rate_mapping`: {}

</details>

### Training Logs
<details><summary>Click to expand</summary>

| Epoch  | Step  | Training Loss | CodeSearchNetPython_MaxSim_ndcg@10 | CodeSearchNetJavascript_MaxSim_ndcg@10 | CodeSearchNetGo_MaxSim_ndcg@10 | CodeSearchNetRuby_MaxSim_ndcg@10 | CodeSearchNetJava_MaxSim_ndcg@10 | CodeSearchNetPhp_MaxSim_ndcg@10 | CodeSearchNet_mean_MaxSim_ndcg@10 |
|:------:|:-----:|:-------------:|:----------------------------------:|:--------------------------------------:|:------------------------------:|:--------------------------------:|:--------------------------------:|:-------------------------------:|:---------------------------------:|
| 0.0000 | 1     | 4.3841        | -                                  | -                                      | -                              | -                                | -                                | -                               | -                                 |
| 0.0391 | 1250  | 2.5783        | -                                  | -                                      | -                              | -                                | -                                | -                               | -                                 |
| 0.0781 | 2500  | 14.8593       | 0.9461                             | 0.8261                                 | 0.9628                         | 0.8694                           | 0.9076                           | 0.8934                          | 0.9009                            |
| 0.1172 | 3750  | 3.7439        | -                                  | -                                      | -                              | -                                | -                                | -                               | -                                 |
| 0.1562 | 5000  | 1.155         | 0.9389                             | 0.8242                                 | 0.9612                         | 0.8656                           | 0.8926                           | 0.8944                          | 0.8962                            |
| 0.1953 | 6250  | 1.2135        | -                                  | -                                      | -                              | -                                | -                                | -                               | -                                 |
| 0.2344 | 7500  | 1.4362        | 0.9380                             | 0.8173                                 | 0.9594                         | 0.8662                           | 0.8956                           | 0.8945                          | 0.8952                            |
| 0.2734 | 8750  | 0.5526        | -                                  | -                                      | -                              | -                                | -                                | -                               | -                                 |
| 0.3125 | 10000 | 0.0012        | 0.9398                             | 0.8178                                 | 0.9577                         | 0.8640                           | 0.8969                           | 0.8929                          | 0.8948                            |
| 0.3515 | 11250 | 1.5271        | -                                  | -                                      | -                              | -                                | -                                | -                               | -                                 |
| 0.3906 | 12500 | 4.9461        | 0.9390                             | 0.8178                                 | 0.9604                         | 0.8661                           | 0.8994                           | 0.8938                          | 0.8961                            |
| 0.4297 | 13750 | 0.7561        | -                                  | -                                      | -                              | -                                | -                                | -                               | -                                 |
| 0.4687 | 15000 | 0.4343        | 0.9387                             | 0.8169                                 | 0.9570                         | 0.8628                           | 0.8982                           | 0.8941                          | 0.8946                            |
| 0.5078 | 16250 | 0.7035        | -                                  | -                                      | -                              | -                                | -                                | -                               | -                                 |
| 0.5468 | 17500 | 0.1123        | 0.9365                             | 0.8066                                 | 0.9587                         | 0.8654                           | 0.8930                           | 0.8941                          | 0.8924                            |
| 0.5859 | 18750 | 0.6777        | -                                  | -                                      | -                              | -                                | -                                | -                               | -                                 |
| 0.6250 | 20000 | 0.5334        | 0.9367                             | 0.8182                                 | 0.9607                         | 0.8672                           | 0.9004                           | 0.8934                          | 0.8961                            |
| 0.6640 | 21250 | 11.0835       | -                                  | -                                      | -                              | -                                | -                                | -                               | -                                 |
| 0.7031 | 22500 | 0.1712        | 0.9353                             | 0.8168                                 | 0.9563                         | 0.8604                           | 0.8935                           | 0.8921                          | 0.8924                            |
| 0.7421 | 23750 | 2.1508        | -                                  | -                                      | -                              | -                                | -                                | -                               | -                                 |
| 0.7812 | 25000 | 0.4721        | 0.9369                             | 0.8138                                 | 0.9564                         | 0.8662                           | 0.8922                           | 0.8916                          | 0.8929                            |
| 0.8203 | 26250 | 0.0174        | -                                  | -                                      | -                              | -                                | -                                | -                               | -                                 |
| 0.8593 | 27500 | 0.1141        | 0.9397                             | 0.8135                                 | 0.9570                         | 0.8627                           | 0.8979                           | 0.8924                          | 0.8939                            |
| 0.8984 | 28750 | 1.2164        | -                                  | -                                      | -                              | -                                | -                                | -                               | -                                 |
| 0.9374 | 30000 | 0.0546        | 0.9393                             | 0.8169                                 | 0.9577                         | 0.8618                           | 0.8978                           | 0.8918                          | 0.8942                            |

</details>

### Framework Versions
- Python: 3.12.12
- Sentence Transformers: 5.1.1
- PyLate: 1.3.4
- Transformers: 4.57.3
- PyTorch: 2.9.0+cu128
- Accelerate: 1.12.0
- Datasets: 4.4.2
- Tokenizers: 0.22.2


## Citation
### BibTeX
#### LateOn-Code
```bibtex
@misc{LateOn-Code,
  title  = {LateOn-Code: a Family of State-Of-The-Art Late Interaction Code Retrieval Models},
  author = {Chaffin, Antoine},
  url    = {https://huggingface.co/collections/lightonai/lateon-code},
  year   = {2026}
}
```
#### ColGrep
```bibtex
@software{next-plaid,
  title  = {NextPlaid, ColGREP: Multi-vector search, from database to coding agents.},
  url    = {https://github.com/lightonai/next-plaid},
  author = {Raphaël Sourty},
  year   = {2026},
}
```

#### CoRNStack
```bibtex
@inproceedings{DBLP:conf/iclr/SureshRXNMDJ25,
  author       = {Tarun Suresh and
                  Revanth Gangi Reddy and
                  Yifei Xu and
                  Zach Nussbaum and
                  Andriy Mulyar and
                  Brandon Duderstadt and
                  Heng Ji},
  title        = {CoRNStack: High-Quality Contrastive Data for Better Code Retrieval
                  and Reranking},
  booktitle    = {The Thirteenth International Conference on Learning Representations,
                  {ICLR} 2025, Singapore, April 24-28, 2025},
  publisher    = {OpenReview.net},
  year         = {2025},
  url          = {https://openreview.net/forum?id=iyJOUELYir},
  timestamp    = {Sun, 25 May 2025 21:25:19 +0200},
  biburl       = {https://dblp.org/rec/conf/iclr/SureshRXNMDJ25.bib},
  bibsource    = {dblp computer science bibliography, https://dblp.org}
}
```

#### CoIR
```bibtex
@inproceedings{li2025coir,
  title     = {Coir: A comprehensive benchmark for code information retrieval models},
  author    = {Li, Xiangyang and Dong, Kuicai and Lee, Yi Quan and Xia, Wei and Zhang, Hao and Dai, Xinyi and Wang, Yasheng and Tang, Ruiming},
  booktitle = {Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
  pages     = {22074--22091},
  year      = {2025}
}
```

#### Sentence Transformers
```bibtex
@inproceedings{reimers-2019-sentence-bert,
  title     = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
  author    = "Reimers, Nils and Gurevych, Iryna",
  booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
  month     = "11",
  year      = "2019",
  publisher = "Association for Computational Linguistics",
  url       = "https://arxiv.org/abs/1908.10084"
}
```

#### PyLate
```bibtex
@inproceedings{DBLP:conf/cikm/ChaffinS25,
  author       = {Antoine Chaffin and
                  Rapha{"{e}}l Sourty},
  editor       = {Meeyoung Cha and
                  Chanyoung Park and
                  Noseong Park and
                  Carl Yang and
                  Senjuti Basu Roy and
                  Jessie Li and
                  Jaap Kamps and
                  Kijung Shin and
                  Bryan Hooi and
                  Lifang He},
  title        = {PyLate: Flexible Training and Retrieval for Late Interaction Models},
  booktitle    = {Proceedings of the 34th {ACM} International Conference on Information
                  and Knowledge Management, {CIKM} 2025, Seoul, Republic of Korea, November
                  10-14, 2025},
  pages        = {6334--6339},
  publisher    = {{ACM}},
  year         = {2025},
  url          = {https://github.com/lightonai/pylate},
  doi          = {10.1145/3746252.3761608},
}
```

<!--
## Glossary

*Clearly define terms in order to be accessible across audiences.*
-->

<!--
## Model Card Authors

*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
-->

<!--
## Model Card Contact

*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
-->