File size: 4,416 Bytes
a84bf57
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4387219
a84bf57
 
 
 
 
5a5c437
a84bf57
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fa217ce
 
a84bf57
 
 
 
 
 
 
 
 
 
 
 
fa217ce
 
 
a84bf57
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f9e445a
 
 
 
a84bf57
 
 
 
 
 
fa217ce
a84bf57
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
---
annotations_creators:
  - no-annotation
language_creators:
  - crowdsourced
license:
  - cc-by-sa-3.0
task_categories:
  - text-generation
  - fill-mask
task_ids:
  - language-modeling
  - masked-language-modeling
source_datasets:
  - original
language:
  - en
  - es
  - fr
  - ja
  - ko
  - pt
  - ru
  - zho
configs:
  - config_name: default
    data_files:
    - split: conversational
      path: data/*_convo.jsonl.gz
    - split: QA
      path: data/*_qa.jsonl.gz
pretty_name: MDN
---

# Dataset Card for MDN

![](MDNWaifu.png "Mizuho (水穂) | Mizuho is a self-taught developer who rose through the ranks by leveraging the vast resources available on MDN Web Docs. She embodies the spirit of open-source and community collaboration, constantly contributing to the repository and mentoring new developers. Her mission is to make web development accessible to everyone, breaking down complex concepts into understandable and engaging lessons.")

*Waifu to catch your attention.*

### Dataset Description

*MDN* is a **~57M** Tokens (llama-2-7b-chat-tokenizer) / **~46.52M** Tokens (RWKV Tokenizer) scrape of [MDN (Developer.mozilla.org)](https://developer.mozilla.org/).
It serves as a training resource for large language models and other NLP tasks. 
This card details the dataset's origin, content, and limitations.


- **Curated by:** KaraKaraWitch
- **Funded by [optional]:** Recursal.ai (I work there lol)
- **Shared by [optional]:** KaraKaraWitch
- **Language(s) (NLP):** English, Espanol, French, Japanese, Korean, Brazilian Portuguese, Russian, Chinese Simplified, Chinese Traditional
- **License:** cc-by-sa-2.5

MDN 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.  

### Supported Tasks and Leaderboards

Primarily used for language modeling.

### Languages

MDN lists the following languages:

- English
- Espanol
- French
- Japanese
- Korean
- Brazilian Portuguese
- Russian
- Chinese Simplified
- Chinese Traditional

### Processing

We obtained a list of pages to download with the MDN's [sitemap.xml.](https://developer.mozilla.org/sitemap.xml) This was manually downloaded.
For each sitemap, we scrape the website. saving the raw html responses for further filtering and cleaning.

For the actual html processing, we recommend reading the code found in the file: `MDNClean.py`.

The file itself is a typer application with the following commands:

```
- sitemap
  - Gets a list of urls to download and downloads it to a folder.
- clean
  - cleans a folder. saving each the cleaned text to a final jsonl.
```

We have noted an issue where there could be a false positive virus-detection on 4 of the compressed files.
We have used the dataset in it's uncompressed form and didn't encounter any issues. 

### Data Instances

Refer to this sample to see all the relavant fields.

```json
{
    "title": "Game development",
    "text": "\n\nGame development\n================\n\nGaming is one of the most popular computer activities. New technologies are constantly arriving to make\n it possible to develop better and more powerful games that can be run in any standards-compliant web\n browser.\n\nDevelop web games\n-----------------\n\nWelcome to the MDN game development center! In this area of the site, we provide resources for web<...TRUNCATED>"
}
```

The format has the following keys:

```md
- "title" (str) [The title of the article]
- "text" (str) [The html content converted fro html into markdown.]
```

### Dataset Curators

KaraKaraWitch. (I typically hang out in PygmalionAI discord, sometimes EleutherAI. If something is wrong, `@karakarawitch` on discord.)

I'd be happy if you could spread the word and recommend this dataset.

### Licensing Information

MDN lists their license as [CC-BY-SA.](https://developer.mozilla.org/en-US/docs/MDN/Writing_guidelines/Attrib_copyright_license)

Recursal Waifus (The banner image) are licensed under CC-BY-SA. 
They do not represent the related websites in any official capacity unless otherwise or announced by the website. 
You may use them as a banner image. However, you must always link back to the dataset.

### Citation Information

```
@misc{MDN,
  title         = {MDN},
  author        = {KaraKaraWitch, recursal.ai},
  year          = {2024},
  howpublished  = {\url{https://huggingface.co/datasets/recursal/MDN}},
}
```