Commit
·
c0c3c81
0
Parent(s):
Inital Commit
Browse files- .gitattributes +55 -0
- README.md +96 -0
- data/dev_files.jsonl +0 -0
- data/dev_index.json +412 -0
- tools/devopedia.py +106 -0
.gitattributes
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
11 |
+
*.lz4 filter=lfs diff=lfs merge=lfs -text
|
12 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
13 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
14 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
15 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
16 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
17 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
18 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
19 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
20 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
21 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
22 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
23 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
24 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
25 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
26 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
27 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
28 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
29 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
30 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
31 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
32 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
33 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
34 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
35 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
36 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
37 |
+
# Audio files - uncompressed
|
38 |
+
*.pcm filter=lfs diff=lfs merge=lfs -text
|
39 |
+
*.sam filter=lfs diff=lfs merge=lfs -text
|
40 |
+
*.raw filter=lfs diff=lfs merge=lfs -text
|
41 |
+
# Audio files - compressed
|
42 |
+
*.aac filter=lfs diff=lfs merge=lfs -text
|
43 |
+
*.flac filter=lfs diff=lfs merge=lfs -text
|
44 |
+
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
45 |
+
*.ogg filter=lfs diff=lfs merge=lfs -text
|
46 |
+
*.wav filter=lfs diff=lfs merge=lfs -text
|
47 |
+
# Image files - uncompressed
|
48 |
+
*.bmp filter=lfs diff=lfs merge=lfs -text
|
49 |
+
*.gif filter=lfs diff=lfs merge=lfs -text
|
50 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
51 |
+
*.tiff filter=lfs diff=lfs merge=lfs -text
|
52 |
+
# Image files - compressed
|
53 |
+
*.jpg filter=lfs diff=lfs merge=lfs -text
|
54 |
+
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
55 |
+
*.webp filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
annotations_creators:
|
3 |
+
- no-annotation
|
4 |
+
language_creators:
|
5 |
+
- crowdsourced
|
6 |
+
license:
|
7 |
+
- cc-by-sa-3.0
|
8 |
+
task_categories:
|
9 |
+
- text-generation
|
10 |
+
- fill-mask
|
11 |
+
task_ids:
|
12 |
+
- language-modeling
|
13 |
+
- masked-language-modeling
|
14 |
+
source_datasets:
|
15 |
+
- original
|
16 |
+
language:
|
17 |
+
- en
|
18 |
+
configs:
|
19 |
+
- config_name: default
|
20 |
+
data_files:
|
21 |
+
- split: articles
|
22 |
+
path: data/dev_files.jsonl
|
23 |
+
- split: index
|
24 |
+
path: data/dev_index.json
|
25 |
+
pretty_name: Devopedia
|
26 |
+
---
|
27 |
+
|
28 |
+
# Dataset Card for Devopedia
|
29 |
+
|
30 |
+
<!-- TODO: Waifu-->
|
31 |
+
|
32 |
+
*Waifu to catch your attention.*
|
33 |
+
|
34 |
+
### Dataset Description
|
35 |
+
|
36 |
+
*Devopedia* is a **~1.15 M** Tokens (llama-2-7b-chat-tokenizer) / **~999.32K** Tokens (RWKV Tokenizer) scrape of [Devopedia](https://devopedia.org/).
|
37 |
+
It serves as a training resource for large language models and other NLP tasks.
|
38 |
+
This card details the dataset's origin, content, and limitations.
|
39 |
+
|
40 |
+
|
41 |
+
- **Curated by:** KaraKaraWitch
|
42 |
+
- **Funded by [optional]:** Recursal.ai (I work there lol)
|
43 |
+
- **Shared by [optional]:** KaraKaraWitch
|
44 |
+
- **Language(s) (NLP):** English
|
45 |
+
- **License:** cc-by-sa-4.0
|
46 |
+
|
47 |
+
Devopedia was created under time constraints for the release of [EagleX v1](https://huggingface.co/recursal/EagleX_1-7T_HF), and may contain biases in selection.
|
48 |
+
|
49 |
+
### Supported Tasks and Leaderboards
|
50 |
+
|
51 |
+
Primarily used for language modeling.
|
52 |
+
|
53 |
+
### Languages
|
54 |
+
|
55 |
+
While the dataset is focused on English. Keep in mind there are other languages as well.
|
56 |
+
|
57 |
+
### Processing and Filtering
|
58 |
+
|
59 |
+
We scraped the Devopedia for a list of articles. Writing them to a compiled file `dev_index.json`. Before scraping individual article for its page contents.
|
60 |
+
|
61 |
+
The article contents are then selected by sections. Each section is converted to Markdown. Including the appropriate title. No filtering was done over the dataset.
|
62 |
+
|
63 |
+
### Data Instances
|
64 |
+
|
65 |
+
Refer to the following sample:
|
66 |
+
|
67 |
+
```json
|
68 |
+
{
|
69 |
+
"text": "# Hypothesis Testing and Types of Errors\n\n## Summary\n\n\nSuppose we want to study income of a population. We study a sample from the population and draw conclusions. The sample should represent the population for our study to be a reliable one.\n\n**Null hypothesis** \\((H\\_0)\\) is that sample represents population. Hypothesis testing provides us with framework to conclude if we have sufficient evidence to either accept or reject null hypothesis. \n\nPopulation characteristics are either assumed or drawn from third-party sources or judgements by subject matter experts. Population data and sample data are characterised by moments of its distribution (mean, variance, skewness and kurtosis). We test null hypothesis for equality of moments where population characteristic is available and conclude if sample represents population.\n\nFor example, given only mean income of population, <TRUNCATED...>"
|
70 |
+
}
|
71 |
+
```
|
72 |
+
|
73 |
+
### Data Keys
|
74 |
+
|
75 |
+
Each json line is a dictionary with a `text` str.
|
76 |
+
|
77 |
+
### Dataset Curators
|
78 |
+
|
79 |
+
KaraKaraWitch. (I typically hang out in PygmalionAI discord, sometimes EleutherAI. If something is wrong, `@karakarawitch` on discord.)
|
80 |
+
|
81 |
+
I'd be happy if you could spread the word and recommend this dataset.
|
82 |
+
|
83 |
+
### Licensing Information
|
84 |
+
|
85 |
+
Devopedia lists their content as under CC-BY-SA.
|
86 |
+
|
87 |
+
### Citation Information
|
88 |
+
|
89 |
+
```
|
90 |
+
@misc{Devopedia,
|
91 |
+
title = {Devopedia},
|
92 |
+
author = {KaraKaraWitch, recursal.ai},
|
93 |
+
year = {2023},
|
94 |
+
howpublished = {\url{https://huggingface.co/datasets/recursal/Devopedia}},
|
95 |
+
}
|
96 |
+
```
|
data/dev_files.jsonl
ADDED
The diff for this file is too large to render.
See raw diff
|
|
data/dev_index.json
ADDED
@@ -0,0 +1,412 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[
|
2 |
+
"https://devopedia.org/hypothesis-testing-and-types-of-errors",
|
3 |
+
"https://devopedia.org/polygonal-modelling",
|
4 |
+
"https://devopedia.org/relation-extraction",
|
5 |
+
"https://devopedia.org/react-native",
|
6 |
+
"https://devopedia.org/web-of-things",
|
7 |
+
"https://devopedia.org/tensorflow",
|
8 |
+
"https://devopedia.org/wi-fi-calling",
|
9 |
+
"https://devopedia.org/design-thinking",
|
10 |
+
"https://devopedia.org/single-page-application",
|
11 |
+
"https://devopedia.org/document-object-model",
|
12 |
+
"https://devopedia.org/open-data",
|
13 |
+
"https://devopedia.org/remote-pair-programming",
|
14 |
+
"https://devopedia.org/continuous-integration",
|
15 |
+
"https://devopedia.org/grammar-and-spell-checker",
|
16 |
+
"https://devopedia.org/question-answering",
|
17 |
+
"https://devopedia.org/inter-service-communication-for-microservices",
|
18 |
+
"https://devopedia.org/technical-debt",
|
19 |
+
"https://devopedia.org/document-development-life-cycle",
|
20 |
+
"https://devopedia.org/dotdot",
|
21 |
+
"https://devopedia.org/bidirectional-rnn",
|
22 |
+
"https://devopedia.org/word-sense-disambiguation",
|
23 |
+
"https://devopedia.org/confusion-matrix",
|
24 |
+
"https://devopedia.org/neural-networks-for-nlp",
|
25 |
+
"https://devopedia.org/probabilistic-neural-network",
|
26 |
+
"https://devopedia.org/richardson-maturity-model",
|
27 |
+
"https://devopedia.org/leaky-abstractions",
|
28 |
+
"https://devopedia.org/grpc",
|
29 |
+
"https://devopedia.org/functional-programming",
|
30 |
+
"https://devopedia.org/web-storage",
|
31 |
+
"https://devopedia.org/arduino-programming",
|
32 |
+
"https://devopedia.org/entity-linking",
|
33 |
+
"https://devopedia.org/non-destructive-testing",
|
34 |
+
"https://devopedia.org/css-specificity",
|
35 |
+
"https://devopedia.org/naming-conventions",
|
36 |
+
"https://devopedia.org/search-engine-optimization",
|
37 |
+
"https://devopedia.org/word-embedding",
|
38 |
+
"https://devopedia.org/open-source-hardware",
|
39 |
+
"https://devopedia.org/slim-framework",
|
40 |
+
"https://devopedia.org/information-security-principles",
|
41 |
+
"https://devopedia.org/apache-spark",
|
42 |
+
"https://devopedia.org/profiling-python-code",
|
43 |
+
"https://devopedia.org/transformer-neural-network-architecture",
|
44 |
+
"https://devopedia.org/microservices-observability",
|
45 |
+
"https://devopedia.org/end-to-end-principle",
|
46 |
+
"https://devopedia.org/redis-streams",
|
47 |
+
"https://devopedia.org/machine-learning-model",
|
48 |
+
"https://devopedia.org/mioty",
|
49 |
+
"https://devopedia.org/css-selectors",
|
50 |
+
"https://devopedia.org/tools-to-manage-technical-debt",
|
51 |
+
"https://devopedia.org/apache-beam",
|
52 |
+
"https://devopedia.org/packet-forwarding-control-protocol",
|
53 |
+
"https://devopedia.org/cap-theorem",
|
54 |
+
"https://devopedia.org/microservices",
|
55 |
+
"https://devopedia.org/promises",
|
56 |
+
"https://devopedia.org/javascript",
|
57 |
+
"https://devopedia.org/5g-core-restful-apis",
|
58 |
+
"https://devopedia.org/cryptography",
|
59 |
+
"https://devopedia.org/xamarin",
|
60 |
+
"https://devopedia.org/natural-language-toolkit",
|
61 |
+
"https://devopedia.org/5g-nr-phy",
|
62 |
+
"https://devopedia.org/ethical-ai",
|
63 |
+
"https://devopedia.org/wi-fi",
|
64 |
+
"https://devopedia.org/web-exploitation",
|
65 |
+
"https://devopedia.org/typescript",
|
66 |
+
"https://devopedia.org/probability-for-data-scientists",
|
67 |
+
"https://devopedia.org/deadlock",
|
68 |
+
"https://devopedia.org/5g-ue-data-rate",
|
69 |
+
"https://devopedia.org/quantum-computing",
|
70 |
+
"https://devopedia.org/python-2-vs-3",
|
71 |
+
"https://devopedia.org/gradle",
|
72 |
+
"https://devopedia.org/mongodb",
|
73 |
+
"https://devopedia.org/language-modelling",
|
74 |
+
"https://devopedia.org/github",
|
75 |
+
"https://devopedia.org/android-things",
|
76 |
+
"https://devopedia.org/telegram-splitting-ultra-narrow-band",
|
77 |
+
"https://devopedia.org/semantic-role-labelling",
|
78 |
+
"https://devopedia.org/python",
|
79 |
+
"https://devopedia.org/nb-iot",
|
80 |
+
"https://devopedia.org/5g-ecosystem",
|
81 |
+
"https://devopedia.org/apache-kafka",
|
82 |
+
"https://devopedia.org/dark-data",
|
83 |
+
"https://devopedia.org/5g-technology",
|
84 |
+
"https://devopedia.org/web-font",
|
85 |
+
"https://devopedia.org/secure-shell",
|
86 |
+
"https://devopedia.org/natural-language-parsing",
|
87 |
+
"https://devopedia.org/magic-methods-in-python",
|
88 |
+
"https://devopedia.org/java-language",
|
89 |
+
"https://devopedia.org/border-gateway-protocol",
|
90 |
+
"https://devopedia.org/n-gram-model",
|
91 |
+
"https://devopedia.org/standard-library",
|
92 |
+
"https://devopedia.org/cryptocurrency",
|
93 |
+
"https://devopedia.org/iot-analytics",
|
94 |
+
"https://devopedia.org/text-summarization",
|
95 |
+
"https://devopedia.org/material-design",
|
96 |
+
"https://devopedia.org/web-components",
|
97 |
+
"https://devopedia.org/mongodb-sharding",
|
98 |
+
"https://devopedia.org/ohif-viewer",
|
99 |
+
"https://devopedia.org/dataflow-programming",
|
100 |
+
"https://devopedia.org/5g-nr-bandwidth-part",
|
101 |
+
"https://devopedia.org/devops",
|
102 |
+
"https://devopedia.org/fingerprinting-algorithms",
|
103 |
+
"https://devopedia.org/dpdk",
|
104 |
+
"https://devopedia.org/multicloud",
|
105 |
+
"https://devopedia.org/logistic-regression",
|
106 |
+
"https://devopedia.org/5g-nr-hybrid-arq",
|
107 |
+
"https://devopedia.org/css-box-model",
|
108 |
+
"https://devopedia.org/carrier-aggregation",
|
109 |
+
"https://devopedia.org/dependency-manager",
|
110 |
+
"https://devopedia.org/3d-modelling",
|
111 |
+
"https://devopedia.org/wi-fi-mac-layer",
|
112 |
+
"https://devopedia.org/openapi-specification",
|
113 |
+
"https://devopedia.org/wi-fi-performance-testing",
|
114 |
+
"https://devopedia.org/greedy-algorithms",
|
115 |
+
"https://devopedia.org/k-means-clustering",
|
116 |
+
"https://devopedia.org/metaprogramming",
|
117 |
+
"https://devopedia.org/real-user-monitoring",
|
118 |
+
"https://devopedia.org/github-actions",
|
119 |
+
"https://devopedia.org/control-and-user-plane-separation",
|
120 |
+
"https://devopedia.org/r-data-structures",
|
121 |
+
"https://devopedia.org/edge-computing",
|
122 |
+
"https://devopedia.org/python-distributions-and-packaging",
|
123 |
+
"https://devopedia.org/cross-validation",
|
124 |
+
"https://devopedia.org/pandas-dataframe-operations",
|
125 |
+
"https://devopedia.org/solid-design-principles",
|
126 |
+
"https://devopedia.org/linux",
|
127 |
+
"https://devopedia.org/progressive-web-applications",
|
128 |
+
"https://devopedia.org/structured-vs-unstructured-data",
|
129 |
+
"https://devopedia.org/roc-curve",
|
130 |
+
"https://devopedia.org/acid-transactions",
|
131 |
+
"https://devopedia.org/asynchronous-programming-in-python",
|
132 |
+
"https://devopedia.org/artificial-neural-network",
|
133 |
+
"https://devopedia.org/question-generation",
|
134 |
+
"https://devopedia.org/maximum-entropy-markov-model",
|
135 |
+
"https://devopedia.org/static-site-generators",
|
136 |
+
"https://devopedia.org/a-b-testing",
|
137 |
+
"https://devopedia.org/5g-nr-channels",
|
138 |
+
"https://devopedia.org/http-cookie",
|
139 |
+
"https://devopedia.org/xgboost",
|
140 |
+
"https://devopedia.org/tor-network",
|
141 |
+
"https://devopedia.org/accelerated-mobile-pages",
|
142 |
+
"https://devopedia.org/3gpp-release",
|
143 |
+
"https://devopedia.org/topic-modelling",
|
144 |
+
"https://devopedia.org/data-science",
|
145 |
+
"https://devopedia.org/regression-modelling",
|
146 |
+
"https://devopedia.org/dual-connectivity",
|
147 |
+
"https://devopedia.org/linux-signals",
|
148 |
+
"https://devopedia.org/bem-methodology",
|
149 |
+
"https://devopedia.org/tensor-processing-unit",
|
150 |
+
"https://devopedia.org/bias-variance-trade-off",
|
151 |
+
"https://devopedia.org/pandas",
|
152 |
+
"https://devopedia.org/secure-coding-with-python",
|
153 |
+
"https://devopedia.org/denial-of-service-attack",
|
154 |
+
"https://devopedia.org/kotlin-language",
|
155 |
+
"https://devopedia.org/r-plotting-systems",
|
156 |
+
"https://devopedia.org/dependency-injection",
|
157 |
+
"https://devopedia.org/container-orchestration",
|
158 |
+
"https://devopedia.org/5g-nr-transmission-time-interval",
|
159 |
+
"https://devopedia.org/pytorch",
|
160 |
+
"https://devopedia.org/java-modifiers",
|
161 |
+
"https://devopedia.org/semantic-web",
|
162 |
+
"https://devopedia.org/firebase",
|
163 |
+
"https://devopedia.org/pair-programming",
|
164 |
+
"https://devopedia.org/sentiment-analysis",
|
165 |
+
"https://devopedia.org/artificial-intelligence",
|
166 |
+
"https://devopedia.org/database-sharding",
|
167 |
+
"https://devopedia.org/attention-mechanism-in-neural-networks",
|
168 |
+
"https://devopedia.org/exploratory-data-analysis",
|
169 |
+
"https://devopedia.org/web-annotation",
|
170 |
+
"https://devopedia.org/css-design-patterns",
|
171 |
+
"https://devopedia.org/quantum-algorithm",
|
172 |
+
"https://devopedia.org/openwrt",
|
173 |
+
"https://devopedia.org/flask",
|
174 |
+
"https://devopedia.org/package-manager",
|
175 |
+
"https://devopedia.org/database-compression",
|
176 |
+
"https://devopedia.org/hoisting",
|
177 |
+
"https://devopedia.org/5g-nr-rlc",
|
178 |
+
"https://devopedia.org/constrained-application-protocol",
|
179 |
+
"https://devopedia.org/big-data",
|
180 |
+
"https://devopedia.org/daps-handover",
|
181 |
+
"https://devopedia.org/network-security",
|
182 |
+
"https://devopedia.org/pandas-data-structures",
|
183 |
+
"https://devopedia.org/stemming",
|
184 |
+
"https://devopedia.org/data-preparation",
|
185 |
+
"https://devopedia.org/domain-name-system",
|
186 |
+
"https://devopedia.org/r-language",
|
187 |
+
"https://devopedia.org/node-js",
|
188 |
+
"https://devopedia.org/design-thinking-for-requirements-engineering",
|
189 |
+
"https://devopedia.org/reinforcement-learning",
|
190 |
+
"https://devopedia.org/deep-packet-inspection",
|
191 |
+
"https://devopedia.org/augmented-reality",
|
192 |
+
"https://devopedia.org/software-architecture",
|
193 |
+
"https://devopedia.org/units-of-information",
|
194 |
+
"https://devopedia.org/long-short-term-memory",
|
195 |
+
"https://devopedia.org/text-corpus-for-nlp",
|
196 |
+
"https://devopedia.org/ansible",
|
197 |
+
"https://devopedia.org/mongodb-aggregation",
|
198 |
+
"https://devopedia.org/yeoman",
|
199 |
+
"https://devopedia.org/avionics-data-bus",
|
200 |
+
"https://devopedia.org/penetration-testing",
|
201 |
+
"https://devopedia.org/test-frameworks",
|
202 |
+
"https://devopedia.org/transpiler",
|
203 |
+
"https://devopedia.org/programming-concepts-for-beginners",
|
204 |
+
"https://devopedia.org/application-programming-interface",
|
205 |
+
"https://devopedia.org/docker",
|
206 |
+
"https://devopedia.org/iot-security-model",
|
207 |
+
"https://devopedia.org/python-descriptor",
|
208 |
+
"https://devopedia.org/lora",
|
209 |
+
"https://devopedia.org/google-kubernetes-engine",
|
210 |
+
"https://devopedia.org/cloud-computing",
|
211 |
+
"https://devopedia.org/joule-thief-circuit",
|
212 |
+
"https://devopedia.org/5g-nr-mac",
|
213 |
+
"https://devopedia.org/scratch-language",
|
214 |
+
"https://devopedia.org/arduino",
|
215 |
+
"https://devopedia.org/css-flexbox",
|
216 |
+
"https://devopedia.org/go-language",
|
217 |
+
"https://devopedia.org/low-power-wide-area-network",
|
218 |
+
"https://devopedia.org/text-normalization",
|
219 |
+
"https://devopedia.org/natural-language-generation",
|
220 |
+
"https://devopedia.org/log-level-per-request",
|
221 |
+
"https://devopedia.org/kubernetes",
|
222 |
+
"https://devopedia.org/object-oriented-programming-concepts",
|
223 |
+
"https://devopedia.org/captcha",
|
224 |
+
"https://devopedia.org/mongodb-view",
|
225 |
+
"https://devopedia.org/5g-nr-measurement-gaps",
|
226 |
+
"https://devopedia.org/software-as-a-service",
|
227 |
+
"https://devopedia.org/qubit",
|
228 |
+
"https://devopedia.org/javascript-to-typescript-migration",
|
229 |
+
"https://devopedia.org/aspect-based-opinion-mining",
|
230 |
+
"https://devopedia.org/graphql",
|
231 |
+
"https://devopedia.org/rust-language",
|
232 |
+
"https://devopedia.org/5g-nr-mac-pdu",
|
233 |
+
"https://devopedia.org/ransomware",
|
234 |
+
"https://devopedia.org/3d-printing",
|
235 |
+
"https://devopedia.org/code-refactoring",
|
236 |
+
"https://devopedia.org/content-management-system",
|
237 |
+
"https://devopedia.org/blockchain",
|
238 |
+
"https://devopedia.org/quic",
|
239 |
+
"https://devopedia.org/language-integrated-query",
|
240 |
+
"https://devopedia.org/python-oop",
|
241 |
+
"https://devopedia.org/vue-js",
|
242 |
+
"https://devopedia.org/raspberry-pi",
|
243 |
+
"https://devopedia.org/software-performance-testing",
|
244 |
+
"https://devopedia.org/concurrency-vs-parallelism",
|
245 |
+
"https://devopedia.org/container-security",
|
246 |
+
"https://devopedia.org/wi-fi-security",
|
247 |
+
"https://devopedia.org/xamarin-forms",
|
248 |
+
"https://devopedia.org/three-rs-of-security",
|
249 |
+
"https://devopedia.org/speech-synthesis-markup-language",
|
250 |
+
"https://devopedia.org/continuous-delivery",
|
251 |
+
"https://devopedia.org/principal-component-analysis",
|
252 |
+
"https://devopedia.org/latent-dirichlet-allocation",
|
253 |
+
"https://devopedia.org/internet-engineering-task-force",
|
254 |
+
"https://devopedia.org/cloud-native-5g-core",
|
255 |
+
"https://devopedia.org/types-of-mobile-apps",
|
256 |
+
"https://devopedia.org/levenshtein-distance",
|
257 |
+
"https://devopedia.org/binary-search",
|
258 |
+
"https://devopedia.org/webrtc",
|
259 |
+
"https://devopedia.org/ieee-802-11ax",
|
260 |
+
"https://devopedia.org/blockchain-consensus",
|
261 |
+
"https://devopedia.org/bad-requirements",
|
262 |
+
"https://devopedia.org/session-hijacking",
|
263 |
+
"https://devopedia.org/developing-ar-apps",
|
264 |
+
"https://devopedia.org/regular-expression",
|
265 |
+
"https://devopedia.org/part-of-speech-tagging",
|
266 |
+
"https://devopedia.org/containerization",
|
267 |
+
"https://devopedia.org/market-basket-analysis",
|
268 |
+
"https://devopedia.org/amazon-alexa",
|
269 |
+
"https://devopedia.org/ipsec",
|
270 |
+
"https://devopedia.org/aws-well-architected-framework",
|
271 |
+
"https://devopedia.org/o-ran",
|
272 |
+
"https://devopedia.org/information-retrieval",
|
273 |
+
"https://devopedia.org/deep-learning-frameworks",
|
274 |
+
"https://devopedia.org/5g-ue-rrc-states",
|
275 |
+
"https://devopedia.org/named-entity-recognition",
|
276 |
+
"https://devopedia.org/convention-over-configuration",
|
277 |
+
"https://devopedia.org/bloom-filter",
|
278 |
+
"https://devopedia.org/algorithmic-complexity",
|
279 |
+
"https://devopedia.org/programming-for-iot",
|
280 |
+
"https://devopedia.org/quadcopter",
|
281 |
+
"https://devopedia.org/duck-typing",
|
282 |
+
"https://devopedia.org/postel-s-law",
|
283 |
+
"https://devopedia.org/5g-spectrum",
|
284 |
+
"https://devopedia.org/semantic-versioning",
|
285 |
+
"https://devopedia.org/machine-learning",
|
286 |
+
"https://devopedia.org/iot-security",
|
287 |
+
"https://devopedia.org/user-experience",
|
288 |
+
"https://devopedia.org/owasp-zap",
|
289 |
+
"https://devopedia.org/shift-left",
|
290 |
+
"https://devopedia.org/question-similarity",
|
291 |
+
"https://devopedia.org/5g-new-radio",
|
292 |
+
"https://devopedia.org/aphelion-consensus-algorithm",
|
293 |
+
"https://devopedia.org/mobile-robot",
|
294 |
+
"https://devopedia.org/race-condition-software",
|
295 |
+
"https://devopedia.org/wrangle-language",
|
296 |
+
"https://devopedia.org/kerberos",
|
297 |
+
"https://devopedia.org/hybrid-arq",
|
298 |
+
"https://devopedia.org/dead-code",
|
299 |
+
"https://devopedia.org/li-fi",
|
300 |
+
"https://devopedia.org/optimizing-pandas",
|
301 |
+
"https://devopedia.org/factor-analysis",
|
302 |
+
"https://devopedia.org/functions-in-c-plus-plus",
|
303 |
+
"https://devopedia.org/data-structures",
|
304 |
+
"https://devopedia.org/linked-list-data-structure",
|
305 |
+
"https://devopedia.org/queue-data-structure",
|
306 |
+
"https://devopedia.org/design-patterns-for-microservices-and-containers",
|
307 |
+
"https://devopedia.org/code-reuse",
|
308 |
+
"https://devopedia.org/mongodb-query-optimization",
|
309 |
+
"https://devopedia.org/5g-nr-rlc-acknowledged-mode",
|
310 |
+
"https://devopedia.org/5g-nr-rlc-pdu",
|
311 |
+
"https://devopedia.org/css-units",
|
312 |
+
"https://devopedia.org/natural-language-understanding",
|
313 |
+
"https://devopedia.org/introspection-in-python",
|
314 |
+
"https://devopedia.org/python-data-structures",
|
315 |
+
"https://devopedia.org/creative-commons",
|
316 |
+
"https://devopedia.org/css-grid-layout",
|
317 |
+
"https://devopedia.org/cohesion-vs-coupling",
|
318 |
+
"https://devopedia.org/audio-feature-extraction",
|
319 |
+
"https://devopedia.org/data-loss-prevention",
|
320 |
+
"https://devopedia.org/supervised-vs-unsupervised-learning",
|
321 |
+
"https://devopedia.org/code-comments",
|
322 |
+
"https://devopedia.org/django",
|
323 |
+
"https://devopedia.org/netlify",
|
324 |
+
"https://devopedia.org/api-testing-tools",
|
325 |
+
"https://devopedia.org/mqtt",
|
326 |
+
"https://devopedia.org/3gpp",
|
327 |
+
"https://devopedia.org/iot-cloud-platforms",
|
328 |
+
"https://devopedia.org/xml",
|
329 |
+
"https://devopedia.org/text-classification",
|
330 |
+
"https://devopedia.org/typosquatting",
|
331 |
+
"https://devopedia.org/content-delivery-network",
|
332 |
+
"https://devopedia.org/machine-learning-in-python",
|
333 |
+
"https://devopedia.org/mock-testing",
|
334 |
+
"https://devopedia.org/data-serialization",
|
335 |
+
"https://devopedia.org/5g-nr-sdap",
|
336 |
+
"https://devopedia.org/cascading-style-sheets",
|
337 |
+
"https://devopedia.org/test-driven-development",
|
338 |
+
"https://devopedia.org/ieee-802-11ad",
|
339 |
+
"https://devopedia.org/tip-openwifi",
|
340 |
+
"https://devopedia.org/wi-fi-direct",
|
341 |
+
"https://devopedia.org/sql-injection",
|
342 |
+
"https://devopedia.org/5g-ue-measurements-and-reporting",
|
343 |
+
"https://devopedia.org/types-of-blockchains",
|
344 |
+
"https://devopedia.org/lemmatization",
|
345 |
+
"https://devopedia.org/5g-deployment-options",
|
346 |
+
"https://devopedia.org/react-hooks",
|
347 |
+
"https://devopedia.org/antivirus-software",
|
348 |
+
"https://devopedia.org/knowledge-distillation",
|
349 |
+
"https://devopedia.org/rest-api-to-graphql-migration",
|
350 |
+
"https://devopedia.org/regex-engines",
|
351 |
+
"https://devopedia.org/google-cloud-authentication",
|
352 |
+
"https://devopedia.org/natural-language-processing",
|
353 |
+
"https://devopedia.org/speech-recognition",
|
354 |
+
"https://devopedia.org/sqlite",
|
355 |
+
"https://devopedia.org/decision-trees-for-machine-learning",
|
356 |
+
"https://devopedia.org/backward-compatibility",
|
357 |
+
"https://devopedia.org/iot-alliances-and-consortiums",
|
358 |
+
"https://devopedia.org/go-kit",
|
359 |
+
"https://devopedia.org/time-series-analysis",
|
360 |
+
"https://devopedia.org/types-of-regression",
|
361 |
+
"https://devopedia.org/full-stack-developer",
|
362 |
+
"https://devopedia.org/ieee-802-11ac",
|
363 |
+
"https://devopedia.org/text-clustering",
|
364 |
+
"https://devopedia.org/json-web-token",
|
365 |
+
"https://devopedia.org/binary-exponential-backoff",
|
366 |
+
"https://devopedia.org/data-modelling-with-mongodb",
|
367 |
+
"https://devopedia.org/linear-regression",
|
368 |
+
"https://devopedia.org/naive-bayes-classifier",
|
369 |
+
"https://devopedia.org/5g-service-based-architecture",
|
370 |
+
"https://devopedia.org/byte-ordering",
|
371 |
+
"https://devopedia.org/risc-v-architecture",
|
372 |
+
"https://devopedia.org/5g-quality-of-service",
|
373 |
+
"https://devopedia.org/python-for-scientific-computing",
|
374 |
+
"https://devopedia.org/systems-programming",
|
375 |
+
"https://devopedia.org/mongodb-query-language",
|
376 |
+
"https://devopedia.org/sorting-algorithms",
|
377 |
+
"https://devopedia.org/c-plus-plus-inheritance",
|
378 |
+
"https://devopedia.org/http-2",
|
379 |
+
"https://devopedia.org/wordnet",
|
380 |
+
"https://devopedia.org/oauth",
|
381 |
+
"https://devopedia.org/imagenet",
|
382 |
+
"https://devopedia.org/domain-driven-design",
|
383 |
+
"https://devopedia.org/devops-metrics",
|
384 |
+
"https://devopedia.org/in-memory-database",
|
385 |
+
"https://devopedia.org/api-testing",
|
386 |
+
"https://devopedia.org/risc-v-instruction-sets",
|
387 |
+
"https://devopedia.org/multi-access-edge-computing",
|
388 |
+
"https://devopedia.org/pbx-hacking",
|
389 |
+
"https://devopedia.org/orthogonal-frequency-division-multiplexing",
|
390 |
+
"https://devopedia.org/tor-browser",
|
391 |
+
"https://devopedia.org/numpy",
|
392 |
+
"https://devopedia.org/chomsky-hierarchy",
|
393 |
+
"https://devopedia.org/decibel",
|
394 |
+
"https://devopedia.org/tlv-format",
|
395 |
+
"https://devopedia.org/siri",
|
396 |
+
"https://devopedia.org/hidden-markov-model",
|
397 |
+
"https://devopedia.org/cicada-principle",
|
398 |
+
"https://devopedia.org/word2vec",
|
399 |
+
"https://devopedia.org/bert-language-model",
|
400 |
+
"https://devopedia.org/requirements-development",
|
401 |
+
"https://devopedia.org/css-modules",
|
402 |
+
"https://devopedia.org/robot-framework",
|
403 |
+
"https://devopedia.org/chaos-engineering",
|
404 |
+
"https://devopedia.org/git-hooks",
|
405 |
+
"https://devopedia.org/apache-log4j",
|
406 |
+
"https://devopedia.org/local-area-network",
|
407 |
+
"https://devopedia.org/iot-operating-systems",
|
408 |
+
"https://devopedia.org/computer-vision",
|
409 |
+
"https://devopedia.org/log-aggregation",
|
410 |
+
"https://devopedia.org/express-js",
|
411 |
+
"https://devopedia.org/git"
|
412 |
+
]
|
tools/devopedia.py
ADDED
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# https://devopedia.org/site-map/list-articles?page=2&action=prev-page&tag=0&ajax=1
|
2 |
+
import asyncio
|
3 |
+
import pathlib
|
4 |
+
|
5 |
+
import httpx
|
6 |
+
import markdownify
|
7 |
+
import orjson
|
8 |
+
from bs4 import BeautifulSoup
|
9 |
+
|
10 |
+
root = pathlib.Path(
|
11 |
+
"data"
|
12 |
+
)
|
13 |
+
root.mkdir(exist_ok=True, parents=True)
|
14 |
+
|
15 |
+
|
16 |
+
class md_nolinks(markdownify.MarkdownConverter):
|
17 |
+
def convert_a(self, _, text, __):
|
18 |
+
_, _, text = markdownify.chomp(text)
|
19 |
+
if not text:
|
20 |
+
return ""
|
21 |
+
return text
|
22 |
+
|
23 |
+
def convert_img(self, el, text, convert_as_inline):
|
24 |
+
return ""
|
25 |
+
|
26 |
+
|
27 |
+
md = md_nolinks()
|
28 |
+
|
29 |
+
|
30 |
+
async def index():
|
31 |
+
session = httpx.AsyncClient()
|
32 |
+
session.headers["user-agent"] = (
|
33 |
+
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Safari/537.36"
|
34 |
+
)
|
35 |
+
if not (root / pathlib.Path("dev_index.json")).exists():
|
36 |
+
dev_urls = set()
|
37 |
+
for idx in range(0, 20):
|
38 |
+
c = await session.get(
|
39 |
+
f"https://devopedia.org/site-map/list-articles?page={idx}&action=next-page&tag=0&ajax=1"
|
40 |
+
)
|
41 |
+
soup = BeautifulSoup(c.content, "lxml")
|
42 |
+
for href in [
|
43 |
+
a["href"] for a in soup.select("div.dev-events div.uk-panel > div > a")
|
44 |
+
]:
|
45 |
+
dev_urls.add(f"https://devopedia.org{href}")
|
46 |
+
(root / pathlib.Path("dev_index.json")).write_bytes(
|
47 |
+
orjson.dumps(list(dev_urls), option=orjson.OPT_INDENT_2)
|
48 |
+
)
|
49 |
+
else:
|
50 |
+
dev_urls = orjson.loads(pathlib.Path("dev_index.json").read_bytes())
|
51 |
+
final_content = []
|
52 |
+
for url in dev_urls:
|
53 |
+
c = await session.get(url, timeout=None)
|
54 |
+
soup = BeautifulSoup(c.text, "lxml")
|
55 |
+
main = soup.select_one("main div.article-middle")
|
56 |
+
print(url)
|
57 |
+
dev_content = []
|
58 |
+
if main:
|
59 |
+
h1 = soup.find("h1", attrs={"class": "uk-article-title"})
|
60 |
+
for section in main.select("section"):
|
61 |
+
[i.decompose() for i in section.find_all("figure")]
|
62 |
+
[
|
63 |
+
i.decompose()
|
64 |
+
for i in section.find_all("sup", attrs={"class": "inline-citation"})
|
65 |
+
]
|
66 |
+
# print(section.get("id"))
|
67 |
+
if section.get("id") and "summary" in section.get("id").lower():
|
68 |
+
fmt = f"## Summary\n\n{md.convert_soup(section).rstrip()}"
|
69 |
+
dev_content.append(fmt)
|
70 |
+
if section.get("id") and "discussion" in section.get("id").lower():
|
71 |
+
z = "## Discussion"
|
72 |
+
for qa in section.find("ul", recursive=False).find_all(
|
73 |
+
"li", recursive=False
|
74 |
+
):
|
75 |
+
q = qa.find("article-question")
|
76 |
+
a = qa.find("article-answer")
|
77 |
+
fmt = f"### {q.get_text()}\n\n{md.convert_soup(a)}"
|
78 |
+
z += f"\n\n{fmt}"
|
79 |
+
dev_content.append(z)
|
80 |
+
if section.get("id") and "milestone" in section.get("id").lower():
|
81 |
+
section.find("h2").decompose()
|
82 |
+
fmt = f"\n\n## Milestones\n\n{md.convert_soup(section).strip()}"
|
83 |
+
dev_content.append(fmt)
|
84 |
+
final_content.append(
|
85 |
+
orjson.dumps(
|
86 |
+
{
|
87 |
+
"text": f"# {h1.get_text()}\n\n"
|
88 |
+
+ ("\n\n".join(dev_content))
|
89 |
+
.replace("\n\n\n", "\n\n")
|
90 |
+
.replace("\n\n\n\n", "\n\n")
|
91 |
+
.replace("\r\n", "\n")
|
92 |
+
.replace("\t", " "),
|
93 |
+
"meta": {
|
94 |
+
"title": h1.get_text(),
|
95 |
+
"href": f"{url.split('/')[-1]}",
|
96 |
+
},
|
97 |
+
}
|
98 |
+
)
|
99 |
+
)
|
100 |
+
else:
|
101 |
+
raise Exception
|
102 |
+
pathlib.Path("dev_files.jsonl").write_bytes(b"\n".join(final_content))
|
103 |
+
|
104 |
+
|
105 |
+
if __name__ == "__main__":
|
106 |
+
asyncio.run(index())
|