Dataset Viewer
Auto-converted to Parquet Duplicate
chunk_id
large_stringlengths
8
11
question_id
large_stringlengths
5
8
language
large_stringclasses
1 value
chunk_index
int64
0
5
chunk_text
large_stringlengths
166
2.96k
sparse_text
large_stringlengths
103
3.24k
dense_vector
listlengths
3.58k
3.58k
sparse_indices
listlengths
9
256
sparse_values
listlengths
9
256
export_source
large_stringclasses
1 value
33585128_c0
33585128
fortran
0
Title: Unexpected results from SGEMM Problem title: Unexpected results from SGEMM Tags: blas, gfortran, fortran Problem: Unexpected results from SGEMM Code signals: SGEMM, Unexpected
Unexpected results from SGEMM Unexpected results from SGEMM blas gfortran fortran SGEMM Unexpected Unexpected results from SGEMM I'm trying to replace the following instance of matmul in the code calculating A*B': with SGEMM: Where mat is an type that contains the following relevant data: Running the code on a small te...
[ -0.0032958984375, 0.007720947265625, -0.0166015625, -0.0228271484375, -0.0186767578125, 0.0024566650390625, 0.0038299560546875, -0.0021820068359375, 0.0213623046875, 0.047119140625, -0.005615234375, 0.01513671875, -0.0026702880859375, 0.00982666015625, 0.002716064453125, -0.00349426269...
[ 992, 83613, 13, 89829, 50339, 1295, 159, 136787, 594, 97612, 17883, 1603, 100, 50713, 31577, 47, 91995, 25632, 110527, 2589, 15458, 18151, 74481, 62, 1639, 571, 25, 678, 10644, 70541, 29191, 2053, 28398, 19336, 3034, 7440, 335, 83, 140992, ...
[ 0.02197265625, 0.07379150390625, 0.055633544921875, 0.040618896484375, 0.133544921875, 0.058868408203125, 0.085693359375, 0.2254638671875, 0.2227783203125, 0.134033203125, 0.064697265625, 0.118408203125, 0.049896240234375, 0.1341552734375, 0.0579833984375, 0.010162353515625, 0.155151...
embed
60768026_c0
60768026
fortran
0
Title: Incompatible rank 0 and 1 in fortran Problem title: Incompatible rank 0 and 1 in fortran Tags: gfortran, fortran, arrays Problem: Incompatible rank 0 and 1 in fortran Code signals: Incompatible
Incompatible rank 0 and 1 in fortran Incompatible rank 0 and 1 in fortran gfortran fortran arrays Incompatible Incompatible rank 0 and 1 in fortran ab is a 4 x 5 matrix i.e., ab(4,5) and x is an array of length 4 i.e., x(4) The do loop says incompatible rank 0 and 1.
[ 0.0101318359375, 0.01007080078125, -0.0294189453125, -0.0157470703125, -0.01434326171875, -0.0186767578125, 0.03466796875, 0.00086212158203125, 0.01953125, 0.039306640625, 0.019287109375, -0.0208740234375, 0.015869140625, -0.00186920166015625, -0.0123291015625, -0.024658203125, 0.007...
[ 360, 277, 10974, 2661, 30648, 757, 136, 106, 23, 100, 50713, 17883, 1603, 10298, 4778, 1563, 83, 201, 1022, 190, 50944, 425, 80389, 140909, 99217, 54, 40956, 17378, 82940, 1888, 615 ]
[ 0.1046142578125, 0.139404296875, 0.2137451171875, 0.1600341796875, 0.25537109375, 0.1702880859375, 0.138916015625, 0.1297607421875, 0.049285888671875, 0.1170654296875, 0.25439453125, 0.0726318359375, 0.148681640625, 0.12890625, 0.042724609375, 0.1663818359375, 0.0243377685546875, 0...
embed
50232296_c1
50232296
fortran
1
0 3.0 4.0 12.0 1.0 9.0 -1.0 2.0 -3.0 -27.0 2.0 -1.0 7.0 3.0 -5.0 14.0 3.0 2.0 3.0 12.0 -1.0 -17.0 4.0 -3.0 -5.0 -1.0 15.0 12.0 Code signals: Having, Fortran, OPEN, FILE, sistema.txt, THEN, READ, END, CLOSE
0 3.0 4.0 12.0 1.0 9.0 -1.0 2.0 -3.0 -27.0 2.0 -1.0 7.0 3.0 -5.0 14.0 3.0 2.0 3.0 12.0 -1.0 -17.0 4.0 -3.0 -5.0 -1.0 15.0 12.0 Code signals: Having, Fortran, OPEN, FILE, sistema.txt, THEN, READ, END, CLOSE
[ 0.020751953125, 0.005767822265625, -0.01483154296875, 0.005035400390625, -0.0010833740234375, -0.00811767578125, -0.0164794921875, 0.007415771484375, 0.017822265625, 0.002655029296875, -0.00799560546875, -0.006805419921875, -0.0230712890625, -0.015869140625, -0.0157470703125, -0.017089...
[ 757, 17596, 40401, 106, 73011, 53855, 3569, 2389, 20, 102107, 16655, 132265, 122297, 129884, 6, 187461, 6370, 68940, 6281, 28864, 26073, 7, 12, 171855, 19953, 1603, 180, 65441, 563, 52099, 3128, 5, 124326, 23373, 839, 188300, 39015, 92933, ...
[ 0.1688232421875, 0.2481689453125, 0.24609375, 0.095947265625, 0.1993408203125, 0.169921875, 0.1483154296875, 0.051239013671875, 0.0282745361328125, 0.1451416015625, 0.2088623046875, 0.216064453125, 0.067138671875, 0.1776123046875, 0.04095458984375, 0.1212158203125, 0.10723876953125, ...
embed
35886412_c0
35886412
fortran
0
"Title: DATA statement from Fortran to C\nProblem title: DATA statement from Fortran to C\nTags: for(...TRUNCATED)
"DATA statement from Fortran to C DATA statement from Fortran to C fortran77 fortran c Fortran DATA (...TRUNCATED)
[0.05810546875,0.00970458984375,-0.03173828125,0.01470947265625,-0.00775146484375,-0.01025390625,0.0(...TRUNCATED)
[391,17758,63805,1295,19953,1603,47,313,100,50713,14546,501,5419,28751,8244,28482,104165,15513,3871,(...TRUNCATED)
[0.08819580078125,0.1722412109375,0.20166015625,0.0931396484375,0.180419921875,0.2095947265625,0.133(...TRUNCATED)
embed
5885994_c0
5885994
fortran
0
"Title: Multitasking in Fortran\nProblem title: Multitasking in Fortran\nTags: fortran\nProblem: Mul(...TRUNCATED)
"Multitasking in Fortran Multitasking in Fortran fortran Multitasking Fortran Multitasking in Fortra(...TRUNCATED)
[0.0218505859375,0.01031494140625,-0.0252685546875,0.0034942626953125,-0.0152587890625,-0.0162353515(...TRUNCATED)
[ 19335, 1073, 6048, 23, 19953, 1603, 100, 50713, 11249, 831, 87, 54, 6024, 136, 1940, 63923, 36398 ]
[0.181640625,0.279296875,0.1448974609375,0.098876953125,0.1761474609375,0.2568359375,0.071044921875,(...TRUNCATED)
embed
50069808_c0
50069808
fortran
0
"Title: Extract substring of Fortran string array\nProblem title: Extract substring of Fortran strin(...TRUNCATED)
"Extract substring of Fortran string array Extract substring of Fortran string array arrays substrin(...TRUNCATED)
[0.01171875,-0.0284423828125,-0.0157470703125,0.010009765625,-0.0213623046875,-0.021484375,0.0097656(...TRUNCATED)
[31501,15390,1614,91693,111,19953,1603,79315,10298,53,100,50713,17,5759,11249,14602,1632,125663,10,1(...TRUNCATED)
[0.1929931640625,0.0693359375,0.2047119140625,0.2398681640625,0.0250396728515625,0.128662109375,0.21(...TRUNCATED)
embed
38329496_c0
38329496
fortran
0
"Title: SELECTED_REAL_KIND in C\nProblem title: SELECTED_REAL_KIND in C\nTags: fortran, c\nProblem: (...TRUNCATED)
"SELECTED_REAL_KIND in C SELECTED_REAL_KIND in C fortran c SELECTED_REAL_KIND SELECTED_REAL_KIND in (...TRUNCATED)
[-0.0002689361572265625,-0.012451171875,0.010009765625,0.00482177734375,0.0098876953125,-0.016967773(...TRUNCATED)
[6755,144832,17610,41519,866,52859,397,23,313,100,50713,501,454,2071,2685,2499,183234,73,19953,1603,(...TRUNCATED)
[0.0975341796875,0.2005615234375,0.12109375,0.167724609375,0.116943359375,0.18408203125,0.1610107421(...TRUNCATED)
embed
12354503_c0
12354503
fortran
0
"Title: Reading format in Fortran 90\nProblem title: Reading format in Fortran 90\nTags: format, for(...TRUNCATED)
"Reading format in Fortran 90 Reading format in Fortran 90 format fortran Reading Fortran F10.4 idx1(...TRUNCATED)
[-0.0076904296875,-0.0179443359375,0.0012359619140625,-0.007293701171875,-0.004791259765625,-0.01275(...TRUNCATED)
[104951,9384,23,19953,1603,2510,100,50713,563,963,617,425,363,8473,1176,58696,11435,47,12301,45646,6(...TRUNCATED)
[0.2088623046875,0.2083740234375,0.031219482421875,0.1243896484375,0.177001953125,0.251708984375,0.0(...TRUNCATED)
embed
70963680_c1
70963680
fortran
1
"76489834 In Python, I have: A[k,k:m] [ 0.888074 0.325058 0.325058] B[k:m,k:m] [[ 1.000000 1.000000 (...TRUNCATED)
"76489834 In Python, I have: A[k,k:m] [ 0.888074 0.325058 0.325058] B[k:m,k:m] [[ 1.000000 1.000000 (...TRUNCATED)
[0.0184326171875,0.00689697265625,0.007354736328125,-0.005157470703125,-0.018310546875,-0.0142822265(...TRUNCATED)
[14810,158287,187716,360,145581,87,765,62,92,4,12,39,268,378,132208,111056,16360,127089,24291,10057,(...TRUNCATED)
[0.029571533203125,0.0576171875,0.10009765625,0.08038330078125,0.321533203125,0.0784912109375,0.1396(...TRUNCATED)
embed
20146241_c3
20146241
fortran
3
", DHAVE_CONFIG_H, DDI88xx, di8810-di8810.o, di8810-di8810.Tpo, di8810.c, di8810-di8810.Po, di8810-g(...TRUNCATED)
", DHAVE_CONFIG_H, DDI88xx, di8810-di8810.o, di8810-di8810.Tpo, di8810.c, di8810-di8810.Po, di8810-g(...TRUNCATED)
[0.004852294921875,-0.003143310546875,-0.0072021484375,0.0003986358642578125,-0.00506591796875,-0.01(...TRUNCATED)
[6,4,132023,24878,454,77980,22724,724,841,391,17507,12772,52219,45,963,9,428,5,31,618,771,238,7192,1(...TRUNCATED)
[0.093017578125,0.1060791015625,0.156982421875,0.292724609375,0.06170654296875,0.1094970703125,0.193(...TRUNCATED)
embed
End of preview. Expand in Data Studio

Fortran StackOverflow Vector Dataset Datasheet

1. What This Dataset Is

This dataset is the Fortran-specific vector shard of the Stack2Graph StackOverflow retrieval corpus. Each Hugging Face dataset repository contains exactly one language dataset.

It is optimized for dense+sparse retrieval, Qdrant restoration, and embedding-based RAG experiments.

It is used in the Stack2Graph project as the vector counterpart to the language-scoped RDF knowledge graph shards.

See the Stack2Graph repository for more details: https://github.com/tha-atlas/Stack2Graph

2. Repository Layout

dataset_manifest.json
question_metadata_*.parquet
chunk_records_*.parquet
question_records_*.parquet
  • dataset_manifest.json: language-scoped manifest for this dataset shard.
  • question_metadata_*.parquet: per-question metadata and retrieval bookkeeping.
  • chunk_records_*.parquet: chunk-level vector rows when parent-child indexing is enabled.
  • question_records_*.parquet: question-level vector rows when chunking is disabled or exported alongside chunk data.

3. Data Model And Coverage

The dataset is derived from Stack Overflow questions selected for the Fortran programming language. It contains the structured records needed to rebuild the Stack2Graph Qdrant collection for that language.

Coverage scope:

  • records are retained when they match the Stack2Graph supported language-tag set
  • this repository contains only the Fortran shard
  • the archive may contain both metadata-only and retrieval-ready vector rows depending on the export mode

4. Recommended Preprocessing

  1. Read dataset_manifest.json first and use it as the source of truth for included Parquet files.
  2. Load all Parquet shards for this repository into your vector indexing pipeline.
  3. Rebuild or restore the Qdrant collection stackoverflow_fortran_vector.
  4. Preserve attribution and license metadata during downstream export.

5. Automatic Download And Vector DB Setup

You do not need to regenerate embeddings from GraphDB to use this dataset.

In the Stack2Graph repository, you can use the automation script python -m experiment.load_hf_datasets_into_services --skip-kg to download dataset artifacts and prepare the vector database service state automatically.

Typical workflow:

  1. Clone and configure Stack2Graph (.env with HF token and service paths).
  2. Clone and configure Stack2Graph (.env with HF token and service paths).
  3. Start required local services:
docker compose up -d
  1. Run the loader script:
python -m experiment.load_hf_datasets_into_services --skip-kg

For manual usage without automation, directly ingest the listed Parquet files into your vector database.

6. Quality Notes And Caveats

  • A Stack Overflow question may belong to multiple language shards when tagged with multiple languages.
  • Embeddings and sparse representations depend on the configured export pipeline and model versions.
  • As with community-generated data, content may include noise, bias, and temporal drift.

7. Intended Use

  • semantic retrieval and reranking
  • RAG and hybrid retriever experiments
  • vector database benchmarking and diagnostics
  • language-scoped developer tooling research

8. Limitations

  • Not a complete mirror of all Stack Overflow content.
  • Not all export modes include the same row types or chunk layouts.
  • Best used together with the Stack2Graph retrieval pipeline and Qdrant-compatible tooling.

9. Licensing And Attribution

This dataset inherits Stack Overflow source licensing and attribution requirements. Ensure compliant attribution and redistribution practices in all derived artifacts.

10. Suggested Citation

If you use this dataset, cite the Stack2Graph work:

  • Stack2Graph: A Structured Knowledge Representation of Stack Overflow Data for Retrieval-based Question Answering
Downloads last month
19