text stringlengths 7 2.39k | embedding listlengths 768 768 |
|---|---|
Returns the value of the 'go_package' option of the first .proto file found in the same directory as projectFile | [
0.29218512773513794,
1.0244531631469727,
0.5635340809822083,
0.6876126527786255,
1.2332277297973633,
0.9348811507225037,
1.0247529745101929,
0.006024382542818785,
-1.2411741018295288,
0.34207066893577576,
0.3346578776836395,
-0.3064194619655609,
-0.8579627275466919,
0.552191436290741,
-0... |
NewQueueManager instantiates a new QueueManager object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed | [
-1.2839741706848145,
-1.5047563314437866,
0.5983316898345947,
0.22469879686832428,
0.218587264418602,
-0.36108824610710144,
-0.9102876782417297,
0.12458863854408264,
0.4127471446990967,
-0.6550997495651245,
-0.36308518052101135,
0.06459105014801025,
-0.7786985039710999,
1.7953795194625854,... |
NewQueueManagerWithDefaults instantiates a new QueueManager object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set | [
-0.688385009765625,
-1.0044387578964233,
0.21814219653606415,
0.3026096224784851,
0.7271078824996948,
-0.8913369178771973,
-1.3494571447372437,
-0.31811583042144775,
0.7244095802307129,
-0.5942124724388123,
-0.8285030126571655,
-1.0721862316131592,
-0.5681724548339844,
1.8633428812026978,
... |
GetName returns the Name field value | [
-0.8269666433334351,
0.051356278359889984,
0.18010643124580383,
0.061485402286052704,
-0.330118864774704,
-0.003393458668142557,
0.42632296681404114,
-0.012071345932781696,
-0.6578257083892822,
1.4507031440734863,
-0.6893348097801208,
-1.337437391281128,
0.029867148026823997,
-0.1308183073... |
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set. | [
-0.9021196365356445,
0.14785581827163696,
0.7652137875556946,
0.21087558567523956,
-0.3038471043109894,
0.42501357197761536,
0.32345423102378845,
0.09614304453134537,
-0.9209078550338745,
2.0257863998413086,
-1.882273554801941,
-1.7038390636444092,
0.46443748474121094,
0.4642808437347412,
... |
SetName sets field value | [
-0.5740866661071777,
0.12532870471477509,
0.15470218658447266,
-0.5047356486320496,
-1.0663871765136719,
0.01132421474903822,
-0.15366776287555695,
-0.630322277545929,
-0.5116041302680969,
1.0443826913833618,
-1.369942545890808,
-1.2353695631027222,
0.9665693640708923,
0.6261243224143982,
... |
GetClusters returns the Clusters field value | [
-0.627435028553009,
1.100071668624878,
-0.010734466835856438,
0.3337286412715912,
0.8086608052253723,
-0.01461486704647541,
0.8113682270050049,
-0.5920442938804626,
0.9313129782676697,
-0.7128276228904724,
0.4941689074039459,
-0.2400808334350586,
-0.6164430975914001,
-0.8685732483863831,
... |
GetClustersOk returns a tuple with the Clusters field value and a boolean to check if the value has been set. | [
-0.657686710357666,
0.9469112753868103,
0.61762535572052,
0.7823339700698853,
0.5502892732620239,
-0.04403867572546005,
1.0215466022491455,
-0.02779608964920044,
-0.11231216043233871,
0.7236675024032593,
-0.919370710849762,
-1.1048580408096313,
-0.28980886936187744,
-0.23171159625053406,
... |
SetClusters sets field value | [
0.40508586168289185,
0.8882174491882324,
0.21754321455955505,
-0.28892359137535095,
0.5936369895935059,
0.11653918027877808,
1.1518663167953491,
-1.0084505081176758,
0.4811840355396271,
-0.2978261709213257,
-0.2342083901166916,
-0.7007380127906799,
-0.27009186148643494,
-0.4869334101676941... |
GetAliasQueues returns the AliasQueues field value | [
0.9371768236160278,
-0.7916545867919922,
0.49450230598449707,
-0.26485154032707214,
-0.07370611280202866,
0.13183198869228363,
-0.13850027322769165,
0.5543791055679321,
0.6662029027938843,
0.8473033905029297,
0.2754853069782257,
-0.11858992278575897,
0.2957865297794342,
0.8412706255912781,... |
GetAliasQueuesOk returns a tuple with the AliasQueues field value and a boolean to check if the value has been set. | [
0.29826822876930237,
-0.5544091463088989,
0.6875366568565369,
0.15546610951423645,
-0.1387639045715332,
0.19736367464065552,
0.3992183208465576,
0.7250186204910278,
-0.0465373694896698,
1.4871279001235962,
-1.014054775238037,
-0.8765633702278137,
0.5265728831291199,
0.8869870901107788,
0... |
SetAliasQueues sets field value | [
1.0186645984649658,
-0.18640662729740143,
0.33404773473739624,
-0.5489338636398315,
0.08868777006864548,
0.030462846159934998,
0.2578728199005127,
0.11167893558740616,
0.6470017433166504,
1.0055397748947144,
-0.3467613160610199,
-0.7438818216323853,
0.7307127714157104,
0.9905300736427307,
... |
GetRemoteQueues returns the RemoteQueues field value | [
0.38741135597229004,
-0.6737699508666992,
0.7360517382621765,
-0.7265241146087646,
-0.09299515187740326,
0.8773010969161987,
-0.8647384643554688,
-0.33008360862731934,
0.3641257882118225,
0.10772983729839325,
-1.236942172050476,
0.4474133849143982,
-1.0820088386535645,
-0.26759931445121765... |
End of preview. Expand in Data Studio
minishlab/tokenlearn-cornstack-queries-coderankembed-v2 Dataset Card
This dataset was created with Tokenlearn for training Model2Vec models on code retrieval. It contains mean token embeddings produced by nomic-ai/CodeRankEmbed, used as training targets for static embedding distillation.
The dataset contains code documents from CornStack across 6 programming languages (100,000 rows per language, 600,000 total).
Dataset Details
| Field | Value |
|---|---|
| Source | CornStack (nomic-ai) |
| Embedding model | nomic-ai/CodeRankEmbed |
| Embedding dimension | 768 |
| Languages | Python, Java, PHP, Go, JavaScript, Ruby |
| Rows per language | 100,000 |
| Total rows | 600,000 |
| Field | query |
Source Datasets
| Language | Source |
|---|---|
python |
nomic-ai/cornstack-python-v1 |
java |
nomic-ai/cornstack-java-v1 |
php |
nomic-ai/cornstack-php-v1 |
go |
nomic-ai/cornstack-go-v1 |
javascript |
nomic-ai/cornstack-javascript-v1 |
ruby |
nomic-ai/cornstack-ruby-v1 |
Dataset Structure
| Column | Type | Description |
|---|---|---|
text |
string |
Truncated input text (tokenizer max length 512) |
embedding |
list[float32] |
Mean token embedding from nomic-ai/CodeRankEmbed, excluding BOS/EOS tokens |
Usage
Load a single language config:
from datasets import load_dataset
# Load Python code documents
dataset = load_dataset("minishlab/tokenlearn-cornstack-docs-coderankembed", name="python")
# Load all languages and concatenate
from datasets import concatenate_datasets
all_langs = concatenate_datasets([
load_dataset("minishlab/tokenlearn-cornstack-docs-coderankembed", name=lang)["train"]
for lang in ["python", "java", "php", "go", "javascript", "ruby"]
])
Creation
Featurized from CornStack using nomic-ai/CodeRankEmbed with mean token pooling (BOS/EOS excluded). Two sampling seeds (42 and 100) were used with a 10k streaming shuffle buffer to maximise diversity. Texts are truncated to 512 tokens.
Library Authors
Tokenlearn was developed by the Minish team consisting of Stephan Tulkens and Thomas van Dongen.
Citation
@software{minishlab2024model2vec,
author = {Stephan Tulkens and {van Dongen}, Thomas},
title = {Model2Vec: Fast State-of-the-Art Static Embeddings},
year = {2024},
publisher = {Zenodo},
doi = {10.5281/zenodo.17270888},
url = {https://github.com/MinishLab/model2vec},
license = {MIT}
}
- Downloads last month
- 20