Dataset Viewer
Auto-converted to Parquet Duplicate
id
stringlengths
36
36
input
stringlengths
15
124
expected_output
stringlengths
26
646
metadata.query_id
stringlengths
2
6
metadata.split
stringclasses
1 value
5fa85ee5-2e95-4da7-8bc7-cc14193948ec
"error while loading shared libraries: libopenal.so.1" while installing Drox Operative
[{"id": "83773", "score": 1}]
132142
test
aee1aa8f-b17f-4e58-b9af-7ad40a1d7118
Bash command to open a system's terminal
[{"id": "91642", "score": 1}, {"id": "147033", "score": 1}]
98697
test
e699ebbf-661c-4bd9-ab96-fd02517d972d
How to completely disable swap?
[{"id": "91475", "score": 1}]
24625
test
f7d0134c-271b-4b4d-af9f-0f093404f83f
What are suitable distros for the Asus EEE PC 701 4G?
[{"id": "55839", "score": 1}]
26035
test
da4045ad-677b-4f98-ba79-d754b4879537
cd to the most recently created directory
[{"id": "55233", "score": 1}]
144190
test
b62c6601-b489-45c4-91f5-61bdbe08693a
Newlines in filenames
[{"id": "93522", "score": 1}]
23163
test
79c91400-4419-43d0-9843-b4794a40e661
Use a script parameter in awk
[{"id": "56128", "score": 1}, {"id": "58970", "score": 1}]
50044
test
bdc50b79-1f0a-4412-a2c0-c1d615e9bc7b
Use command line to download file which is accessible only in a given session
[{"id": "11296", "score": 1}, {"id": "47483", "score": 1}, {"id": "26577", "score": 1}]
26385
test
addb54b3-c0fa-4466-a079-703c8eebb927
How can I set the processor affinity of a process on Linux?
[{"id": "47704", "score": 1}]
73
test
3487776d-d534-4e0d-bb51-e8597d421e3e
command type "hashed"?
[{"id": "105876", "score": 1}]
144109
test
cb1a1c88-ca92-4913-9361-32bebaaa3f48
Hard link for directories
[{"id": "22394", "score": 1}]
98103
test
2df2ba2a-730b-4df5-a0b6-508debebb612
NIS and autofs error
[{"id": "4649", "score": 1}]
4547
test
604fd706-3c67-47f3-9935-fc8d9a7514c1
How can I concatenate all files in a directory together in one command line operation?
[{"id": "31863", "score": 1}]
113715
test
2206aeb6-7eb3-4657-985c-82b92c0762cb
Copy file to xclip and paste to Firefox
[{"id": "41997", "score": 1}]
22494
test
c2d93db3-9a08-4458-92af-10df90be1e19
bash completion on posix mode
[{"id": "132135", "score": 1}]
132225
test
abc88d55-f155-4dd6-888e-f536ebe2b493
First characters of the command repeated in the display when completing
[{"id": "91109", "score": 1}]
90772
test
15ce9bdc-7bbf-4b90-9369-f7c214a104c0
How can I make a program executable from everywhere
[{"id": "46037", "score": 1}]
3809
test
172d20f6-7c3e-48b7-ab21-ebe5e5e5c5f5
stdout , stderr and logging using the script command
[{"id": "32015", "score": 1}, {"id": "9646", "score": 1}]
32000
test
06340d75-136a-4523-8137-951999f940eb
Cannot boot into Windows 7 after deleting Linux partitions
[{"id": "60632", "score": 1}]
60710
test
2ee4950a-4719-49da-8fa0-310f3e4e048d
How to create a sequence with leading zeroes using brace expansion
[{"id": "152857", "score": 1}]
60257
test
14d5497e-480a-4a32-be23-2db5e77f9916
upgrade OpenSSL from 0.9.8w to 1.0.0i or 1.0.1a on Linux server
[{"id": "6870", "score": 1}, {"id": "66262", "score": 1}]
66131
test
aee7bb7d-e498-457f-a2d2-2f692182078d
Make program first read from pipe, then from keyboard
[{"id": "81345", "score": 1}]
55808
test
2d86f111-13ba-4383-b1a6-4009886acf53
Syntax error in shell script
[{"id": "150175", "score": 1}]
97157
test
b4aa862f-d1d8-4c85-bb70-7b0d11c8f92c
How to route "single ip" to different interfaces
[{"id": "66686", "score": 1}]
115686
test
1ca0fc77-14c3-4a4d-b1e3-0bb7ed41d3b3
Equivalent of iwlist to see who is around?
[{"id": "101089", "score": 1}, {"id": "129264", "score": 1}]
96700
test
dac1e3e2-2449-4f76-854a-ca8232fe67ef
Extract a single file from a tar file and put it to another directory
[{"id": "96410", "score": 1}]
96728
test
12219960-1f31-4742-abb7-73e0229e7301
Is it possible to run pure GNU?
[{"id": "93425", "score": 1}]
90883
test
023e9ca3-0c15-4f8b-a351-120771e02e37
How to start command in bash without blocking console
[{"id": "15985", "score": 1}]
112326
test
a8e4eb57-322b-40f7-ad3d-b8bec0a448e0
How can I tell what version of linux I'm using?
[{"id": "88644", "score": 1}]
23833
test
2142325c-7ddc-4645-8353-1d9b038191ba
Shell script executing in the terminal but not from shell script file
[{"id": "30189", "score": 1}, {"id": "139447", "score": 1}]
32222
test
62bb56da-1e39-420b-99f4-6d38d7c5a50e
How do I reverse a for loop?
[{"id": "31013", "score": 1}]
27382
test
e5aefdf9-31f7-4438-8ff6-66a6e0a22a65
Installing two glibc alongside in debian/ubuntu
[{"id": "92410", "score": 1}]
12522
test
06359653-3c2b-4e9a-ac74-5fee5e82d622
How to specify a custom autocomplete for specific commands?
[{"id": "4738", "score": 1}, {"id": "83771", "score": 1}]
1800
test
e3654a4e-8364-4e08-8611-ed8188d3cb49
How to change environment variables without re-logging to UI?
[{"id": "43785", "score": 1}, {"id": "2949", "score": 1}]
43638
test
7f22ed22-50c4-4760-84c0-fd81e830785f
Adding Postgres bins to PATH: should I `export`?
[{"id": "26047", "score": 1}, {"id": "138504", "score": 1}, {"id": "33740", "score": 1}, {"id": "115964", "score": 1}]
110540
test
4eff8fc6-3454-4ce7-a82d-76c3efaf44a5
Customizing console appearance
[{"id": "148", "score": 1}, {"id": "19219", "score": 1}]
87129
test
f6d2ea7a-0a88-42dc-bb34-2c4c5791861e
Why does this compound command report errors when copying directories?
[{"id": "43629", "score": 1}]
43636
test
46c9341e-50f4-4b6b-aa12-aa3b638e8136
How can I detect if the shell is controlled from SSH?
[{"id": "153641", "score": 1}]
9605
test
affd3067-bfd7-487e-a816-769812e5c52b
Install R in my own directory
[{"id": "149506", "score": 1}]
149451
test
e7ae49a4-63bc-4431-b03f-f53ff4c651d9
What is the function of user group root?
[{"id": "44077", "score": 1}, {"id": "76991", "score": 1}]
63783
test
49e0620a-d249-4ae9-a70b-044d78c8e887
Fix broken apt: insserv: Service killprocs has to be enabled to start service single
[{"id": "97233", "score": 1}]
97223
test
57731ce9-38f2-4d07-88e7-ad1809170815
How can I configure syslog.conf file, to log iptables messages in a separate file?
[{"id": "96488", "score": 1}]
96484
test
69ac0491-449d-4d3d-8705-78a9bd0dd37c
How to remove all white spaces just between brackets [] using bash?
[{"id": "52793", "score": 1}]
63335
test
2ced3cae-13dd-46ed-b73e-696484a15177
Why put things other than /home to a separate partition?
[{"id": "126876", "score": 1}]
685
test
c2a3c4d5-a6a2-4a70-8873-3dc373562217
Can sed replace new line characters?
[{"id": "132832", "score": 1}]
114943
test
5ab1d112-c573-41fa-922c-49dbd264660e
Transfer files client-server inside a SSH session
[{"id": "2857", "score": 1}, {"id": "126186", "score": 1}, {"id": "25566", "score": 1}, {"id": "84292", "score": 1}, {"id": "105203", "score": 1}, {"id": "34786", "score": 1}, {"id": "106480", "score": 1}]
124351
test
e966c8d1-b005-40d0-848b-dc2eb0f89223
What is the equivalent of apt-file in portage, if any?
[{"id": "70393", "score": 1}]
82021
test
f7873053-44bc-4857-89b3-7058f2e41ae3
list Windows shared folders (samba) available in the local network?
[{"id": "21965", "score": 1}]
45259
test
7f654fda-864d-4e96-b156-8ad9ecf6942f
Should I use LVM or not?
[{"id": "33502", "score": 1}]
93209
test
9fe82e04-d532-441d-90db-a60b37118b83
Can I move the source folder after I compiled the code inside?
[{"id": "139181", "score": 1}, {"id": "67399", "score": 1}]
147309
test
4fc69606-10d8-4c99-8d4e-200ed5e4d410
How to delete directory ' :q!'?
[{"id": "14210", "score": 1}]
79837
test
6e2dc446-c5ad-4cfb-a612-17955ac50413
Disable commands for users
[{"id": "90998", "score": 1}]
126349
test
879b3db5-06c5-40ed-9159-104d8b963519
What should I be aware of when installing Linux on a Mac?
[{"id": "90999", "score": 1}]
89469
test
ab8ea0d5-27eb-43cf-8e61-077994521bd4
How to tell grep to match special character at beginning of each word
[{"id": "66488", "score": 1}]
66899
test
e3180b28-5bfe-4ab6-9d04-ae938cb0f023
Get Position of RAID Hard Drives
[{"id": "68473", "score": 1}]
21439
test
b8d7a28e-21f5-49e5-9221-bc79e3d33626
Can servers be synchronised to share the same configurations?
[{"id": "40401", "score": 1}, {"id": "20048", "score": 1}, {"id": "92664", "score": 1}, {"id": "143911", "score": 1}]
45582
test
d33919d2-754c-494a-b537-59ba350ed0f6
How to cut (select) a field from text line counting from the end?
[{"id": "114358", "score": 1}]
64672
test
fc8ef87a-e460-4f8c-8fb3-dd703f7c79b1
move a directory with a single character (back quote) as its name
[{"id": "28983", "score": 1}]
67758
test
ff5851da-011b-4529-aac4-8ed1d797cd21
Delete all files in a directory whose name do not match a line in a file list
[{"id": "152157", "score": 1}, {"id": "78376", "score": 1}]
127268
test
939acf6a-5c74-4177-a9cf-8dd433926ea1
Resources for portable shell programming
[{"id": "17601", "score": 1}]
9997
test
74498275-08ac-43f2-af36-8dfa531be9ff
Is it possible to modify the colors in bash?
[{"id": "12439", "score": 1}]
53563
test
aaf51f98-1bf4-42df-85e3-ecfb5c617182
Best resources to learn bash scripting?
[{"id": "117793", "score": 1}]
12236
test
d17c0669-fbfc-4590-a0a9-21476f08b8b6
Does 'rm .*' ever delete the parent directory?
[{"id": "114500", "score": 1}]
90073
test
ee3322fb-f547-4e2c-a810-d90031a07a8e
Distribution for eldery people
[{"id": "23748", "score": 1}]
49785
test
edc356b4-3687-4b4e-ae36-4dff1c80d471
Insert a multiline string into another string
[{"id": "60319", "score": 1}]
32584
test
a2957767-eb2c-4f60-8a29-7188d36479cf
gnu find and masking the {} for some shells - which?
[{"id": "68647", "score": 1}, {"id": "84337", "score": 1}]
8647
test
bbf0feb2-ca98-488b-9f9b-bd57af529490
How to know my server's time offset?
[{"id": "14324", "score": 1}]
126068
test
f4c5d87e-a813-4bb5-a7e0-169da8da0d09
Repeat Last N commands
[{"id": "24739", "score": 1}, {"id": "33389", "score": 1}]
154591
test
f1a91f65-94c1-4ad5-9025-b0a1559fec2b
How can I run a GUI on my server through SSH?
[{"id": "13085", "score": 1}]
150847
test
e515c7da-82d4-40bb-9e93-5a8c99218464
Two prefix commands for tmux?
[{"id": "107186", "score": 1}]
29884
test
75630727-aa88-40e6-a1a3-68022dbae092
How do I add a user in SVN?
[{"id": "155282", "score": 1}]
15932
test
05d0303e-923c-4fbd-b036-16431daa6024
Manipulate file name piped from find command
[{"id": "61581", "score": 1}]
60404
test
2a5a09b5-f8df-4410-a48d-d57e06d7b98b
Simple file transfer
[{"id": "127525", "score": 1}]
272
test
777ec2f9-96bb-438a-8447-0417a44b9040
sudo nt passing after redirection operator
[{"id": "6713", "score": 1}]
12949
test
e03a4367-2af1-4367-832a-9a1bd26c929b
Why this sort command gives me an empty file?
[{"id": "36261", "score": 1}, {"id": "48725", "score": 1}, {"id": "56640", "score": 1}, {"id": "10241", "score": 1}, {"id": "147619", "score": 1}]
97446
test
540965dc-f564-4925-aadb-86a786413904
Proper way to delete contents of directory
[{"id": "45950", "score": 1}]
92653
test
a70fa44e-6433-4cdf-9bff-654754de644c
How to remove the last character from every line in a text file
[{"id": "83038", "score": 1}]
84376
test
c1833a0e-094b-45fd-b3b2-18b7594afa54
difference between non-builtin 'test' and '['
[{"id": "28682", "score": 1}]
75289
test
ae1c097c-0831-40e9-b5ab-21701b473c6e
What do the number in the file metadata mean
[{"id": "43046", "score": 1}, {"id": "54984", "score": 1}]
118950
test
0df9a5b1-d467-4f60-a554-7d0fe93807bd
In Bash scripting, what's the meaning of " $! "?
[{"id": "97149", "score": 1}]
85021
test
77687d52-0a34-497d-be32-67edf390f539
Delete all jpg in a folder that are smaller than specific width/heigth
[{"id": "52906", "score": 1}, {"id": "74685", "score": 1}]
96957
test
bf421029-1827-4d0d-bb90-5c30044db975
How do I force a user to log out?
[{"id": "615", "score": 1}]
56834
test
93d9ca42-5c9d-4331-8425-601f85d31c56
Understanding the Different Bin Locations
[{"id": "8656", "score": 1}, {"id": "137899", "score": 1}]
155463
test
5eae128f-0bac-406b-9bd4-5c778c6485ca
Can we make grep faster by indexing words in files?
[{"id": "69299", "score": 1}]
119662
test
41e8ced2-9b7a-423f-9f37-2dbf8a6e3d63
How to report time and other information on all bash commands?
[{"id": "12059", "score": 1}, {"id": "91995", "score": 1}]
101797
test
2901705d-34bb-41d6-b6b8-c3c0ed230362
"rsync: failed to set permissions on ..." error with rsync -a or -p option
[{"id": "10044", "score": 1}, {"id": "71851", "score": 1}]
12203
test
ab361f2f-dec4-473c-b8e3-e807f1e76629
Which bash will expand {1..$VAR} in the same way that zsh does
[{"id": "103121", "score": 1}]
7998
test
bac401e4-fde7-4c1e-8fae-ba89ebbf132f
Remove a block of lines between two patterns
[{"id": "17404", "score": 1}]
55124
test
c40866dc-67ed-4bb1-a78f-89882064f9d3
Can you specify an enclosure for cut?
[{"id": "7425", "score": 1}, {"id": "83947", "score": 1}, {"id": "149661", "score": 1}, {"id": "63275", "score": 1}]
56836
test
56f3fe66-8e93-4013-9537-c8f1b4491315
Knowing Privilege rights on a file in Linux
[{"id": "105804", "score": 1}]
20692
test
3769f83a-ba72-49b1-834f-59ced541ba62
Updating last modified time of a file
[{"id": "123177", "score": 1}]
119463
test
a6413bde-3478-46e9-af31-4973c13e6a1e
Changing extension to multiple files
[{"id": "21411", "score": 1}, {"id": "72266", "score": 1}, {"id": "42022", "score": 1}, {"id": "81527", "score": 1}]
19654
test
897ab54e-113f-485f-9521-d9166f999e35
What is the "directory order" of files in a directory (used by `ls -U`)?
[{"id": "147035", "score": 1}]
13451
test
9bb92865-73cc-4d50-8172-3e82f0dd3192
Rename all the files within a folder with prefix “Unix_”
[{"id": "38922", "score": 1}, {"id": "33261", "score": 1}]
13147
test
46636955-90a9-48bc-83ab-2ca493e2b6ee
How to have correct permissions of files from usb disks?
[{"id": "78539", "score": 1}, {"id": "49638", "score": 1}, {"id": "78534", "score": 1}, {"id": "76786", "score": 1}]
4144
test
052fa5d3-e172-48aa-bdec-4cb8240fce4d
bash: Run command in background and capture pid
[{"id": "30370", "score": 1}, {"id": "136701", "score": 1}]
90244
test
8ed29a0a-c509-451b-88ba-780a905fdc9b
Is it possible to run binvox (or any X11 app) on a Linux server without display?
[{"id": "94835", "score": 1}]
155418
test
a7619896-a2d1-4834-a071-1a209450fd85
How can I pipe colored tree result to less or more?
[{"id": "147224", "score": 1}]
90294
test
ebed7b8a-9534-4d55-86bc-d6a195af7a5a
Adjusting keyboard sensitivity in a command line terminal?
[{"id": "67867", "score": 1}]
58651
test
c788fcf9-b5b1-4773-8219-739775b825d2
Which mp3 tagging tool for Linux?
[{"id": "12937", "score": 1}]
4961
test
End of preview. Expand in Data Studio

CQADupStack / Unix (BEIR) — Unix & Linux Q&A retrieval

Dataset description

CQADupStack is a benchmark for community question answering (cQA) built from Stack Exchange data. It was introduced by Hoogeveen, Verspoor, and Baldwin at ADCS 2015 to support research on duplicate questions: finding earlier posts that match or subsume a newly asked question, so users can reuse existing answers instead of opening redundant threads.

The full CQADupStack release aggregates twelve Stack Exchange subcommunities (subforums). Each subforum is distributed as its own slice with pre-defined splits and duplicate annotations (which posts are duplicates of which), enabling comparable retrieval and classification experiments. The Unix slice corresponds to the Unix & Linux Stack Exchange community: questions about Unix-like systems, shells, system administration, and related tooling.

BEIR (Benchmarking IR) repackaged CQADupStack — including the Unix sub-benchmark — as part of a heterogeneous zero-shot IR benchmark spanning many tasks and domains. In BEIR’s retrieval setting, each slice is a standard corpus + queries + qrels collection: systems must rank corpus documents so that human-annotated duplicates appear at the top.

This repository (orgrctera/beir_cqadupstack_unix) exposes the BEIR CQADupStack / Unix test split in Parquet form for retrieval evaluation pipelines. Each row is one query with relevance judgments (qrels) pointing at corpus document identifiers, aligned with the BEIR release.

Scale (BEIR / Unix retrieval setting)

For the Unix task as used in embedding benchmarks (e.g. MTEB’s CQADupstackUnixRetrieval), the test split statistics are on the order of:

  • ~47k unique documents in the corpus (Stack Exchange question posts).
  • 1,072 queries in the official test set.
  • ~1.58 relevant documents per query on average (between 1 and 22 duplicates per query in the qrels).

Exact counts depend on the upstream BEIR snapshot; see BEIR on GitHub and MTEB task metadata for version-precise figures.

Task: retrieval (CQADupStack Unix)

The task is ad hoc passage (or document) retrieval for duplicate question finding on the Unix & Linux forum:

  1. Input: a natural-language question (the query) posted on Unix & Linux Stack Exchange.
  2. Output: a ranked list of document IDs from the Unix corpus (or scores over the full collection), such that relevant IDs — posts marked as duplicates of the query in the official qrels — receive high rank.

Evaluation uses standard IR metrics (e.g. nDCG@k, Recall@k, MRR), as in BEIR’s evaluation utilities or frameworks such as Pyserini / MTEB.

Note: Full retrieval evaluation also requires the corpus (passage text keyed by ID). This dataset card describes the query + qrels side as prepared for CTERA-style evaluation rows; align corpus IDs with the same BEIR CQADupStack / Unix corpus you use for indexing.

Data format (this repository)

Each record includes:

Field Description
id UUID for this example row.
input The query text (question).
expected_output JSON string: list of objects {"id": "<corpus-doc-id>", "score": <relevance>}. Scores follow the BEIR qrels convention (typically 1 for relevant in binary settings).
metadata.query_id Original BEIR / CQADupStack query identifier (string).
metadata.split Split name (here: test).

Example 1 — single annotated duplicate

{
  "id": "5fa85ee5-2e95-4da7-8bc7-cc14193948ec",
  "input": "\"error while loading shared libraries: libopenal.so.1\" while installing Drox Operative",
  "expected_output": "[{\"id\": \"83773\", \"score\": 1}]",
  "metadata.query_id": "132142",
  "metadata.split": "test"
}

Example 2 — multiple duplicate targets

{
  "id": "bdc50b79-1f0a-4412-a2c0-c1d615e9bc7b",
  "input": "Use command line to download file which is accessible only in a given session",
  "expected_output": "[{\"id\": \"11296\", \"score\": 1}, {\"id\": \"47483\", \"score\": 1}, {\"id\": \"26577\", \"score\": 1}]",
  "metadata.query_id": "26385",
  "metadata.split": "test"
}

References

CQADupStack (original dataset)

Doris Hoogeveen, Karin M. Verspoor, Timothy Baldwin
CQADupStack: A Benchmark Data Set for Community Question-Answering Research
Proceedings of the 20th Australasian Document Computing Symposium (ADCS 2015), pages 3:1–3:8.

Abstract (summary): The paper presents CQADupStack, a resource derived from Stack Exchange with duplicate question annotations across multiple communities, together with standard splits and evaluation tooling for retrieval and classification experiments on duplicate detection in cQA.

BEIR benchmark (CQADupStack as a subset)

Nandan Thakur, Nils Reimers, Andreas Rücklé, Abhishek Srivastava, Iryna Gurevych
BEIR: A Heterogeneous Benchmark for Zero-shot Evaluation of Information Retrieval Models
NeurIPS 2021 (Datasets and Benchmarks Track).

Abstract (from arXiv): “Existing neural information retrieval (IR) models have often been studied in homogeneous and narrow settings, which has considerably limited insights into their out-of-distribution (OOD) generalization capabilities. To address this, and to facilitate researchers to broadly evaluate the effectiveness of their models, we introduce Benchmarking-IR (BEIR), a robust and heterogeneous evaluation benchmark for information retrieval. We leverage a careful selection of 18 publicly available datasets from diverse text retrieval tasks and domains and evaluate 10 state-of-the-art retrieval systems including lexical, sparse, dense, late-interaction and re-ranking architectures on the BEIR benchmark. Our results show BM25 is a robust baseline and re-ranking and late-interaction-based models on average achieve the best zero-shot performances, however, at high computational costs. In contrast, dense and sparse-retrieval models are computationally more efficient but often underperform other approaches, highlighting the considerable room for improvement in their generalization capabilities.”

Related resources

  • MTEB packages the same retrieval task as mteb/cqadupstack-unix (corpus + queries + qrels) with descriptive statistics.
  • BEIR-style mirrors on Hugging Face for raw JSONL / TSV layouts — see the upstream BEIR project for the canonical file layout.

Citation

If you use CQADupStack, cite the ADCS 2015 paper. If you use the BEIR benchmark packaging, cite the BEIR NeurIPS 2021 paper. BibTeX for CQADupStack is available from the IR Anthology (BibTeX download on that page).

License

Stack Exchange content is typically shared under Creative Commons terms. This card marks cc-by-sa-4.0 as a common license for Stack Exchange–derived text; verify against your corpus snapshot and upstream terms if compliance is strict.


Dataset card maintained for the orgrctera/beir_cqadupstack_unix Hub repository.

Downloads last month
23

Paper for orgrctera/beir_cqadupstack_unix