Datasets:
id string | question_id int64 | chunk_index int32 | embedding_text string | dense_tokens int32 | sparse_tokens int32 | languages list | tags list | payload_json string | dense list | sparse_indices list | sparse_values list |
|---|---|---|---|---|---|---|---|---|---|---|---|
7c9c403f-d664-5e08-8861-aba3b14c445b | 3,033 | 0 | Title: What's the safest way to iterate through the keys of a Perl hash?
If I have a Perl hash with a bunch of (key, value) pairs, what is the preferred method of iterating through all the keys? I have heard that using each may in some way have unintended side effects. So, is that true, and is one of the two following... | 132 | 147 | [
"perl"
] | [
"perl",
"hash",
"iteration",
"each"
] | {"accepted_answer_id":3360,"answer_count":9,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-06T02:53:13.033000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["perl"],"last_activity_date":"2015-12-05T23:00:21.943000+00:00","last_edit_date":"2008-12-03T04:11:28.983000+00:00",... | [
-0.0122528076171875,
-0.0225982666015625,
-0.0092010498046875,
0.01314544677734375,
0.0080718994140625,
-0.0013675689697265625,
-0.0248565673828125,
0.0042724609375,
-0.0138092041015625,
-0.0176849365234375,
-0.0167388916015625,
0.01345062255859375,
-0.00812530517578125,
-0.02606201171875,... | [
7,
17,
57,
67,
70,
100,
106,
116,
127,
141,
756,
759,
765,
908,
1176,
1543,
1556,
2203,
2822,
2965,
3650,
3917,
5609,
6626,
8305,
8560,
11522,
12601,
12638,
12960,
13576,
17368,
19770,
22799,
25632,
27494,
29272,
29568,
34292,
41581,
48... | [
0.125,
0.06298828125,
0.138671875,
0.171875,
0.0244140625,
0.07666015625,
0.078125,
0.138671875,
0.1435546875,
0.1650390625,
0.0751953125,
0.044921875,
0.00146484375,
0.1767578125,
0.07373046875,
0.0595703125,
0.1904296875,
0.0233154296875,
0.0693359375,
0.1171875,
0.05151367... |
c747078b-e270-5407-aba4-458ada9e9694 | 3,112 | 0 | Title: Can you force either a scalar or array ref to be an array in Perl?
I have a perl variable $results that gets returned from a service. The value is supposed to be an array, and $results should be an array reference. However, when the array has only one item in it, $results will be set to that value, and not a re... | 208 | 236 | [
"perl"
] | [
"perl",
"arrays",
"reference",
"scalar"
] | {"accepted_answer_id":3134,"answer_count":6,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-06T05:56:00.933000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["perl"],"last_activity_date":"2017-04-21T15:03:26.520000+00:00","last_edit_date":"2008-09-09T23:13:45.940000+00:00",... | [
0.006069183349609375,
-0.0274200439453125,
0.0026569366455078125,
0.0044708251953125,
-0.00026988983154296875,
-0.031402587890625,
-0.0057373046875,
0.006099700927734375,
0.0014801025390625,
-0.01050567626953125,
-0.004680633544921875,
0.025970458984375,
0.0024318695068359375,
-0.009963989... | [
7,
42,
53,
54,
100,
117,
141,
142,
186,
864,
908,
1632,
1723,
2109,
2967,
3650,
3917,
4171,
4369,
4516,
4734,
5423,
7136,
8781,
10298,
15549,
18151,
18831,
34292,
35735,
37772,
40956,
41581,
41895,
77336,
84751,
91067,
121413,
123996,
134... | [
0.05126953125,
0.1572265625,
0.1259765625,
0.01025390625,
0.08203125,
0.1416015625,
0.1689453125,
0.0029296875,
0.04736328125,
0.0771484375,
0.1552734375,
0.0615234375,
0.078125,
0.13671875,
0.06494140625,
0.03955078125,
0.0255126953125,
0.05615234375,
0.016845703125,
0.1386718... |
ff7737c7-82e9-543d-ab53-3b7a32fb9d8e | 5,024 | 0 | "Title: Is The Perl Journal available online?\n\nDoes anyone know where online copies of the old The(...TRUNCATED) | 126 | 130 | [
"perl"
] | [
"perl"
] | "{\"accepted_answer_id\":5041,\"answer_count\":3,\"chunk_count\":1,\"chunk_index\":0,\"closed_date\"(...TRUNCATED) | [-0.017608642578125,-0.00798797607421875,-0.006839752197265625,-0.023956298828125,0.020904541015625,(...TRUNCATED) | [7,25,99,111,141,390,581,831,908,984,1118,1556,1764,1773,1836,1919,2071,2499,2831,2856,3714,3789,412(...TRUNCATED) | [0.150390625,0.10546875,0.003173828125,0.010498046875,0.2373046875,0.03076171875,0.1220703125,0.0996(...TRUNCATED) |
c1029ebe-4d2f-5432-8966-145d7e8febb5 | 7,651 | 0 | "Title: How do I remove duplicate items from an array in Perl?\n\nI have an array in Perl:\n \nmy @m(...TRUNCATED) | 51 | 67 | [
"perl"
] | [
"perl",
"arrays",
"unique",
"duplicates"
] | "{\"accepted_answer_id\":7657,\"answer_count\":11,\"chunk_count\":1,\"chunk_index\":0,\"closed_date\(...TRUNCATED) | [0.0189361572265625,0.00415802001953125,-0.003414154052734375,0.01256561279296875,0.0195465087890625(...TRUNCATED) | [23,53,54,67,70,87,107,141,759,908,1176,1295,1374,1636,2203,3630,10298,11249,19305,48962,55547,55769(...TRUNCATED) | [0.0303955078125,0.1787109375,0.03955078125,0.154296875,0.0216064453125,0.03173828125,0.0859375,0.16(...TRUNCATED) |
ecf790a6-96bc-50bf-98c7-fe90d38966f4 | 7,885 | 0 | "Title: How do you create objects in Perl?\n\nPerl has OOP features, but they are somewhat rarely us(...TRUNCATED) | 38 | 44 | [
"perl"
] | [
"perl",
"oop",
"syntax"
] | "{\"accepted_answer_id\":8668,\"answer_count\":7,\"chunk_count\":1,\"chunk_index\":0,\"closed_date\"(...TRUNCATED) | [-0.011810302734375,0.02703857421875,0.0030841827392578125,0.01097869873046875,0.020660400390625,-0.(...TRUNCATED) | [7,23,54,136,141,180,398,538,621,678,908,1284,1556,4527,11249,11814,20880,28282,36746,41207,48962,66(...TRUNCATED) | [0.068359375,0.03466796875,0.0169677734375,0.05419921875,0.1953125,0.08203125,0.00634765625,0.006347(...TRUNCATED) |
afc2b5ad-20ac-5044-ac23-00c74287ff9f | 8,276 | 0 | "Title: Class::DBI-like library for php?\n\nI have inherited an old crusty PHP application, and I'd (...TRUNCATED) | 149 | 174 | [
"perl",
"php"
] | [
"php",
"perl",
"orm"
] | "{\"accepted_answer_id\":8310,\"answer_count\":5,\"chunk_count\":1,\"chunk_index\":0,\"closed_date\"(...TRUNCATED) | [-0.01538848876953125,-0.02398681640625,0.0213623046875,-0.0189666748046875,0.049163818359375,-0.015(...TRUNCATED) | [9,12,23,32,56,100,111,117,141,313,397,456,617,854,903,1294,1884,3021,3674,3714,3934,3958,4527,5062,(...TRUNCATED) | [0.00390625,0.038330078125,0.004150390625,0.03564453125,0.034912109375,0.0927734375,0.017822265625,0(...TRUNCATED) |
563223f4-ccd4-586c-b8bc-2b22e3aa1f20 | 9,009 | 0 | "Title: Assignment inside Perl ternary conditional operator problems\n\nThis snippet of Perl code in(...TRUNCATED) | 68 | 70 | [
"perl"
] | [
"perl",
"conditional-operator",
"operator-precedence"
] | "{\"accepted_answer_id\":9011,\"answer_count\":5,\"chunk_count\":1,\"chunk_index\":0,\"closed_date\"(...TRUNCATED) | [0.0205535888671875,-0.00986480712890625,0.013702392578125,-0.0108642578125,0.0222015380859375,-0.02(...TRUNCATED) | [11,70,83,93,116,138,141,152,289,759,908,1294,1301,1380,1528,2203,3642,3650,11343,16750,18151,26866,(...TRUNCATED) | [0.08837890625,0.0147705078125,0.039306640625,0.04443359375,0.134765625,0.2060546875,0.1708984375,0.(...TRUNCATED) |
5c819e5f-e5f4-5859-9660-24c672332d5f | 9,303 | 0 | "Title: How do you retrieve selected text using Regex in C#?\n\nHow do you retrieve selected text us(...TRUNCATED) | 71 | 80 | [
"c#",
"perl"
] | [
"c#",
"regex",
"perl"
] | "{\"accepted_answer_id\":9306,\"answer_count\":5,\"chunk_count\":1,\"chunk_index\":0,\"closed_date\"(...TRUNCATED) | [0.017974853515625,-0.01125335693359375,-0.00887298583984375,-0.037628173828125,0.0036163330078125,-(...TRUNCATED) | [23,54,141,248,313,456,757,903,908,2174,2203,2306,3134,3355,3996,4153,4711,4904,7986,11249,11678,164(...TRUNCATED) | [0.0625,0.027587890625,0.107421875,0.0262451171875,0.05029296875,0.076171875,0.0908203125,0.01367187(...TRUNCATED) |
ff9c07b3-3f71-567c-ae04-721fe923ef33 | 10,533 | 0 | "Title: Parsing attributes with regex in Perl\n\nHere's a problem I ran into recently. I have attrib(...TRUNCATED) | 273 | 292 | [
"perl"
] | [
"regex",
"perl"
] | "{\"accepted_answer_id\":10573,\"answer_count\":5,\"chunk_count\":1,\"chunk_index\":0,\"closed_date\(...TRUNCATED) | [0.027252197265625,0.0081024169921875,-0.0019502639770507812,-0.0259246826171875,-0.0220794677734375(...TRUNCATED) | [53,54,67,90,97,100,106,107,113,136,141,144,169,177,184,238,366,425,617,678,765,820,908,1022,1405,20(...TRUNCATED) | [0.072265625,0.00830078125,0.0245361328125,0.119140625,0.076171875,0.007080078125,0.0712890625,0.033(...TRUNCATED) |
c08c24e2-570a-52ac-9129-45eadbf75124 | 11,085 | 0 | "Title: How can I determine the type of a blessed reference in Perl?\n\nIn Perl, an object is just a(...TRUNCATED) | 115 | 126 | [
"perl"
] | [
"perl",
"reference",
"types"
] | "{\"accepted_answer_id\":64160,\"answer_count\":3,\"chunk_count\":1,\"chunk_index\":0,\"closed_date\(...TRUNCATED) | [0.00928497314453125,-0.0023670196533203125,0.0175933837890625,-0.01134490966796875,0.00107669830322(...TRUNCATED) | [23,47,51,70,83,87,111,132,141,297,360,538,621,831,908,1379,2053,2367,3444,3714,3934,4527,5281,8561,(...TRUNCATED) | [0.032470703125,0.039794921875,0.05029296875,0.003662109375,0.0208740234375,0.0206298828125,0.044677(...TRUNCATED) |
Stack2Graph vector database: perl
This release contains 74219 text chunks from Stack Overflow with dense and
sparse embeddings, selected by the producer's programming-language memberships.
Memberships can overlap: a chunk may occur in several language datasets. These
labels describe programming languages, not the natural language of the text.
extra-languages, when present, contains source rows without a language match.
An absent language is never replaced with an empty dataset.
Files and fields
data/vectors-*.parquet contains Zstandard-compressed tables. Each row has a
stable id, question_id, chunk_index, embedding_text, model token counts,
languages, tags, dense, sparse_indices, sparse_values and payload_json.
The last field preserves the complete original Qdrant payload, including source
snapshot identity, source dates, scores and answer flags when available.
Dense values are float32 representations of the producer's stored float16
values; this does not recover precision discarded during embedding. Sparse
weights preserve float32 values and uint32 token indices.
On Hugging Face, load the vectors config with datasets.load_dataset and use
streaming for large releases. The dataset viewer uses only the explicitly listed
Parquet files. data/dataset.tar.gz is the portable package also used by MDC:
extract it to obtain the same Parquet bytes, README and publication.json.
The archive is an exchange dataset, not a Qdrant binary snapshot. Import in
bounded batches using each row's id, named dense/sparse vectors and decoded
payload_json. Recreate collection settings deliberately for your Qdrant version.
Provenance and reproducibility
{
"after_id": -9223372036854775808,
"chunk_overlap": 128,
"chunk_tokens": 1024,
"collection": "stackoverflow_questions",
"dense_dimension": 4096,
"dense_model": "Qwen/Qwen3-Embedding-8B",
"dense_revision": "1d8ad4ca9b3dd8059ad90a75d4983776a23d44af",
"question_limit": null,
"registry_digest": "d2a7357c04e7f47d9bb598189aeeb7db0680d6b35f0d9695d8d2e544121afb8e",
"snapshot_digest": "56fe643952cec74b17ea13d91edc8ad95181326156177c94cce48d3fed9834b9",
"snapshot_id": "stackexchange_20260630_sakura",
"sparse_model": "BAAI/bge-m3",
"sparse_revision": "5617a9f61b028005a4858fdac845db406aefb181"
}
Export identity: bc9f696c9588560e3be547879c58b96c50c64e3828495471bee43e504392ec7f.
Point-ID configuration digest: d16d58c9e7b8007664e3f77b4e9f4a1689a8b8de2c6727b479595621b25e3460.
Point IDs use the same snapshot/configuration/question/chunk UUID derivation as
the project's Qdrant loader. publication.json lists exact file sizes, SHA-256
hashes, row count, source identity and model/chunking settings. On HF,
release.json additionally verifies all managed remote files.
Only locally finalized runs with matching stage/report counts are published.
The uploader does not re-embed text or query a running database.
Uses and limitations
Intended for dense, sparse and hybrid retrieval, retrieval-augmented generation and reproducible search experiments. Retrieval quality depends on the pinned models and chunking configuration. Overlapping chunks and language memberships are not independent samples; split evaluations by source question to avoid leakage. Source questions can contain personal data, obsolete code, errors and biases. Source-window limits are recorded above. No retrieval benchmark or completeness beyond the recorded source window is claimed.
Attribution and licensing
Derived from Stack Overflow content. Preserve the original post/author attribution and applicable Stack Overflow licensing when redistributing or displaying source content. Question IDs and source snapshot are retained to resolve source posts. This publication declares CC BY-SA 4.0; embedding model licenses and any upstream obligations still apply. Pinned model names and revisions above identify their model cards for review.
Source and procedures: https://github.com/tha-atlas/Stack2Graph. When citing this dataset, include the dataset repository, immutable release revision, source snapshot, export identity, model revisions and the project.
Project citation: Kleybolte, Ventura and Zarcone (2026), Stack2Graph, KG-LLM at LREC26. https://doi.org/10.63317/583q4d3mwbdu.
- Downloads last month
- 60