Raivis Dejus
commited on
Commit
·
084ac91
0
Parent(s):
Squashing and removing old versions
Browse files- .gitattributes +58 -0
- README.md +74 -0
- combine-all.sh +5 -0
- rainis_v20180716.txt.gz +3 -0
- tools/europarl/GetEuroparl.ipynb +77 -0
- tools/europarl/GetEuroparl.py +19 -0
- tools/europarl/README.md +10 -0
- tools/opus100/GetOpus100.ipynb +69 -0
- tools/opus100/GetOpus100.py +11 -0
- tools/opus100/README.md +10 -0
- tools/tilde/GetTilde.ipynb +78 -0
- tools/tilde/GetTilde.py +20 -0
- tools/tilde/README.md +10 -0
- tools/wikipedia/GetWikipedia.ipynb +72 -0
- tools/wikipedia/GetWikipedia.py +14 -0
- tools/wikipedia/README.md +10 -0
- tools/wikisource/README.md +10 -0
- tools/wikisource/composer.json +19 -0
- tools/wikisource/composer.lock +1366 -0
- tools/wikisource/run-wiki.php +73 -0
- wikisource.txt.gz +3 -0
.gitattributes
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
30 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
31 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
32 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
33 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
# Audio files - uncompressed
|
37 |
+
*.pcm filter=lfs diff=lfs merge=lfs -text
|
38 |
+
*.sam filter=lfs diff=lfs merge=lfs -text
|
39 |
+
*.raw filter=lfs diff=lfs merge=lfs -text
|
40 |
+
# Audio files - compressed
|
41 |
+
*.aac filter=lfs diff=lfs merge=lfs -text
|
42 |
+
*.flac filter=lfs diff=lfs merge=lfs -text
|
43 |
+
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
44 |
+
*.ogg filter=lfs diff=lfs merge=lfs -text
|
45 |
+
*.wav filter=lfs diff=lfs merge=lfs -text
|
46 |
+
# Image files - uncompressed
|
47 |
+
*.bmp filter=lfs diff=lfs merge=lfs -text
|
48 |
+
*.gif filter=lfs diff=lfs merge=lfs -text
|
49 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
50 |
+
*.tiff filter=lfs diff=lfs merge=lfs -text
|
51 |
+
# Image files - compressed
|
52 |
+
*.jpg filter=lfs diff=lfs merge=lfs -text
|
53 |
+
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
54 |
+
*.webp filter=lfs diff=lfs merge=lfs -text
|
55 |
+
wikisource.txt.gz filter=lfs diff=lfs merge=lfs -text
|
56 |
+
europarl-v7.lv.txt.gz filter=lfs diff=lfs merge=lfs -text
|
57 |
+
rainis_v20180716.txt.gz filter=lfs diff=lfs merge=lfs -text
|
58 |
+
Tilde.txt.gz filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
annotations_creators:
|
3 |
+
- found
|
4 |
+
language:
|
5 |
+
- lv
|
6 |
+
language_creators:
|
7 |
+
- found
|
8 |
+
license:
|
9 |
+
- cc-by-4.0
|
10 |
+
multilinguality:
|
11 |
+
- monolingual
|
12 |
+
pretty_name: Latvian text dataset
|
13 |
+
size_categories:
|
14 |
+
- 10K<n<100K
|
15 |
+
source_datasets:
|
16 |
+
- extended|tilde_model
|
17 |
+
- extended|wikipedia
|
18 |
+
- extended|europarl_bilingual
|
19 |
+
tags:
|
20 |
+
- lv
|
21 |
+
- latvian
|
22 |
+
task_categories:
|
23 |
+
- automatic-speech-recognition
|
24 |
+
task_ids: []
|
25 |
+
---
|
26 |
+
|
27 |
+
# Latvian text dataset
|
28 |
+
|
29 |
+
Data set of latvian language texts. Intended for use in AI tool development, like speech recognition or spellcheckers
|
30 |
+
|
31 |
+
|
32 |
+
## Data sources used
|
33 |
+
* Latvian Wikisource articles - https://wikisource.org/wiki/Category:Latvian
|
34 |
+
* Literary works of Rainis - https://repository.clarin.lv/repository/xmlui/handle/20.500.12574/41
|
35 |
+
* Latvian Wikipedia articles - https://huggingface.co/datasets/joelito/EU_Wikipedias
|
36 |
+
* European Parliament Proceedings Parallel Corpus - https://huggingface.co/datasets/europarl_bilingual
|
37 |
+
* Tilde MODEL Corpus - Multilingual Open Data for European Languages - https://huggingface.co/datasets/tilde_model
|
38 |
+
|
39 |
+
|
40 |
+
|
41 |
+
To get Wikipedia dataset (197MB) run.
|
42 |
+
```
|
43 |
+
python tools/wikipedia/GetWikipedia.py
|
44 |
+
```
|
45 |
+
|
46 |
+
To get Europarl dataset (1.7GB) run.
|
47 |
+
```
|
48 |
+
python tools/europarl/GetEuroparl.py
|
49 |
+
```
|
50 |
+
|
51 |
+
To get Tilde dataset (834MB) run.
|
52 |
+
```
|
53 |
+
python tools/europarl/GetTilde.py
|
54 |
+
```
|
55 |
+
|
56 |
+
To combine all datasets run
|
57 |
+
```
|
58 |
+
sh combine-all.sh
|
59 |
+
```
|
60 |
+
|
61 |
+
|
62 |
+
## Notes
|
63 |
+
|
64 |
+
Possible future sources
|
65 |
+
* Parliament proceedings transcripts - https://www.saeima.lv/lv/transcripts
|
66 |
+
* Discussions of Latvian Wikipedia pages - https://lv.wikipedia.org/wiki/Special:AllPages
|
67 |
+
* Out of copyright books from LNB collection - https://data.gov.lv/dati/lv/dataset/gramatu-digitala-kolekcija
|
68 |
+
|
69 |
+
Data sets not used
|
70 |
+
* Web scrapes, as they tend to yield data from comments with improper spelling like "atrashanaas vieta" instead of "atrašanās vieta"
|
71 |
+
* Open Subtitles, as they contain data with improper spelling like "atrashanaas vieta" instead of "atrašanās vieta"
|
72 |
+
|
73 |
+
Possible issues:
|
74 |
+
* Data sets contain foreign language characters, like "蠻子" or cyrilic f.e. "Рига"
|
combine-all.sh
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
gunzip -c wikisource.txt.gz > lv.txt
|
2 |
+
gunzip -c rainis_v20180716.txt.gz >> lv.txt
|
3 |
+
cat wikipedia_20221120.txt >> lv.txt
|
4 |
+
cat europarl_lv.txt >> lv.txt
|
5 |
+
cat tilde_lv.txt >> lv.txt
|
rainis_v20180716.txt.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5fc3d6ad603d6fcd106d9832af1700f219e6606a3d25869bff53f92be5e86077
|
3 |
+
size 4845521
|
tools/europarl/GetEuroparl.ipynb
ADDED
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cells": [
|
3 |
+
{
|
4 |
+
"cell_type": "code",
|
5 |
+
"execution_count": null,
|
6 |
+
"id": "829546d1-7922-472d-94dc-f1f8c3a973dd",
|
7 |
+
"metadata": {
|
8 |
+
"tags": []
|
9 |
+
},
|
10 |
+
"outputs": [],
|
11 |
+
"source": [
|
12 |
+
"#dependencies\n",
|
13 |
+
"!pip install datasets\n",
|
14 |
+
"!pip install tqdm"
|
15 |
+
]
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"cell_type": "code",
|
19 |
+
"execution_count": null,
|
20 |
+
"id": "b5829cbc-ff56-435a-a3c8-afdb19f4cfa7",
|
21 |
+
"metadata": {
|
22 |
+
"tags": []
|
23 |
+
},
|
24 |
+
"outputs": [],
|
25 |
+
"source": [
|
26 |
+
"from datasets import load_dataset\n",
|
27 |
+
"from tqdm import tqdm\n",
|
28 |
+
"\n",
|
29 |
+
"subsets = [('bg', 'lv'),('cs', 'lv'),('da', 'lv'),('de', 'lv'),('el', 'lv'),('en', 'lv'),('es', 'lv'),\n",
|
30 |
+
" ('et', 'lv'),('fi', 'lv'),('fr', 'lv'),('hu', 'lv'),('it', 'lv'),('lt', 'lv'),('lv', 'nl'),\n",
|
31 |
+
" ('lv', 'pl'),('lv', 'pt'),('lv', 'ro'),('lv', 'sk'), ('lv', 'sl'),('lv', 'sv')]\n",
|
32 |
+
"\n",
|
33 |
+
"with open('europarl_lv.txt', 'w') as file:\n",
|
34 |
+
" for subset in tqdm(subsets):\n",
|
35 |
+
" print(f'Downloading subset: {subset[0]} - {subset[1]}')\n",
|
36 |
+
" \n",
|
37 |
+
" dataset = load_dataset('europarl_bilingual', lang1=subset[0], lang2=subset[1], split='train')\n",
|
38 |
+
"\n",
|
39 |
+
" for entry in tqdm(dataset): \n",
|
40 |
+
" file.write(f'{entry[\"translation\"][\"lv\"]}\\n')\n",
|
41 |
+
" \n",
|
42 |
+
" file.close()\n",
|
43 |
+
"\n",
|
44 |
+
"print('Done') "
|
45 |
+
]
|
46 |
+
},
|
47 |
+
{
|
48 |
+
"cell_type": "code",
|
49 |
+
"execution_count": null,
|
50 |
+
"id": "b87ada0a-8ced-46a5-a7b5-46d7bb52c9b3",
|
51 |
+
"metadata": {},
|
52 |
+
"outputs": [],
|
53 |
+
"source": []
|
54 |
+
}
|
55 |
+
],
|
56 |
+
"metadata": {
|
57 |
+
"kernelspec": {
|
58 |
+
"display_name": "venv",
|
59 |
+
"language": "python",
|
60 |
+
"name": "venv"
|
61 |
+
},
|
62 |
+
"language_info": {
|
63 |
+
"codemirror_mode": {
|
64 |
+
"name": "ipython",
|
65 |
+
"version": 3
|
66 |
+
},
|
67 |
+
"file_extension": ".py",
|
68 |
+
"mimetype": "text/x-python",
|
69 |
+
"name": "python",
|
70 |
+
"nbconvert_exporter": "python",
|
71 |
+
"pygments_lexer": "ipython3",
|
72 |
+
"version": "3.8.10"
|
73 |
+
}
|
74 |
+
},
|
75 |
+
"nbformat": 4,
|
76 |
+
"nbformat_minor": 5
|
77 |
+
}
|
tools/europarl/GetEuroparl.py
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from datasets import load_dataset
|
2 |
+
from tqdm import tqdm
|
3 |
+
|
4 |
+
subsets = [('bg', 'lv'),('cs', 'lv'),('da', 'lv'),('de', 'lv'),('el', 'lv'),('en', 'lv'),('es', 'lv'),
|
5 |
+
('et', 'lv'),('fi', 'lv'),('fr', 'lv'),('hu', 'lv'),('it', 'lv'),('lt', 'lv'),('lv', 'nl'),
|
6 |
+
('lv', 'pl'),('lv', 'pt'),('lv', 'ro'),('lv', 'sk'), ('lv', 'sl'),('lv', 'sv')]
|
7 |
+
|
8 |
+
with open('europarl_lv.txt', 'w') as file:
|
9 |
+
for subset in tqdm(subsets):
|
10 |
+
print(f'Downloading subset: {subset[0]} - {subset[1]}')
|
11 |
+
|
12 |
+
dataset = load_dataset('europarl_bilingual', lang1=subset[0], lang2=subset[1], split='train')
|
13 |
+
|
14 |
+
for entry in tqdm(dataset):
|
15 |
+
file.write(f'{entry["translation"]["lv"]}\n')
|
16 |
+
|
17 |
+
file.close()
|
18 |
+
|
19 |
+
print('Done')
|
tools/europarl/README.md
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
To get Opus100 sentences do the following
|
2 |
+
|
3 |
+
Install python dependencies
|
4 |
+
```
|
5 |
+
pip install datasets
|
6 |
+
pip install tqdm
|
7 |
+
```
|
8 |
+
|
9 |
+
Run the script
|
10 |
+
`python GetEuroparl.py`
|
tools/opus100/GetOpus100.ipynb
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cells": [
|
3 |
+
{
|
4 |
+
"cell_type": "code",
|
5 |
+
"execution_count": null,
|
6 |
+
"id": "829546d1-7922-472d-94dc-f1f8c3a973dd",
|
7 |
+
"metadata": {
|
8 |
+
"tags": []
|
9 |
+
},
|
10 |
+
"outputs": [],
|
11 |
+
"source": [
|
12 |
+
"#dependencies\n",
|
13 |
+
"!pip install datasets\n",
|
14 |
+
"!pip install tqdm"
|
15 |
+
]
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"cell_type": "code",
|
19 |
+
"execution_count": null,
|
20 |
+
"id": "b5829cbc-ff56-435a-a3c8-afdb19f4cfa7",
|
21 |
+
"metadata": {
|
22 |
+
"tags": []
|
23 |
+
},
|
24 |
+
"outputs": [],
|
25 |
+
"source": [
|
26 |
+
"from datasets import load_dataset\n",
|
27 |
+
"from tqdm import tqdm\n",
|
28 |
+
"\n",
|
29 |
+
"dataset = load_dataset('anuragshas/lv_opus100_processed', split='train')\n",
|
30 |
+
"\n",
|
31 |
+
"with open('opus100.txt', 'w') as file:\n",
|
32 |
+
" for entry in tqdm(dataset): \n",
|
33 |
+
" file.write(f'{entry[\"text\"]}\\n')\n",
|
34 |
+
" file.close()\n",
|
35 |
+
"\n",
|
36 |
+
"print('Done') "
|
37 |
+
]
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"cell_type": "code",
|
41 |
+
"execution_count": null,
|
42 |
+
"id": "b87ada0a-8ced-46a5-a7b5-46d7bb52c9b3",
|
43 |
+
"metadata": {},
|
44 |
+
"outputs": [],
|
45 |
+
"source": []
|
46 |
+
}
|
47 |
+
],
|
48 |
+
"metadata": {
|
49 |
+
"kernelspec": {
|
50 |
+
"display_name": "venv",
|
51 |
+
"language": "python",
|
52 |
+
"name": "venv"
|
53 |
+
},
|
54 |
+
"language_info": {
|
55 |
+
"codemirror_mode": {
|
56 |
+
"name": "ipython",
|
57 |
+
"version": 3
|
58 |
+
},
|
59 |
+
"file_extension": ".py",
|
60 |
+
"mimetype": "text/x-python",
|
61 |
+
"name": "python",
|
62 |
+
"nbconvert_exporter": "python",
|
63 |
+
"pygments_lexer": "ipython3",
|
64 |
+
"version": "3.8.10"
|
65 |
+
}
|
66 |
+
},
|
67 |
+
"nbformat": 4,
|
68 |
+
"nbformat_minor": 5
|
69 |
+
}
|
tools/opus100/GetOpus100.py
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from datasets import load_dataset
|
2 |
+
from tqdm import tqdm
|
3 |
+
|
4 |
+
dataset = load_dataset('anuragshas/lv_opus100_processed', split='train')
|
5 |
+
|
6 |
+
with open('opus100.txt', 'w') as file:
|
7 |
+
for entry in tqdm(dataset):
|
8 |
+
file.write(f'{entry["text"]}\n')
|
9 |
+
file.close()
|
10 |
+
|
11 |
+
print('Done')
|
tools/opus100/README.md
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
To get Opus100 sentences do the following
|
2 |
+
|
3 |
+
Install python dependencies
|
4 |
+
```
|
5 |
+
pip install datasets
|
6 |
+
pip install tqdm
|
7 |
+
```
|
8 |
+
|
9 |
+
Run the script
|
10 |
+
`python GetOpus100.py`
|
tools/tilde/GetTilde.ipynb
ADDED
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cells": [
|
3 |
+
{
|
4 |
+
"cell_type": "code",
|
5 |
+
"execution_count": null,
|
6 |
+
"id": "829546d1-7922-472d-94dc-f1f8c3a973dd",
|
7 |
+
"metadata": {
|
8 |
+
"tags": []
|
9 |
+
},
|
10 |
+
"outputs": [],
|
11 |
+
"source": [
|
12 |
+
"#dependencies\n",
|
13 |
+
"!pip install datasets\n",
|
14 |
+
"!pip install tqdm"
|
15 |
+
]
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"cell_type": "code",
|
19 |
+
"execution_count": null,
|
20 |
+
"id": "b5829cbc-ff56-435a-a3c8-afdb19f4cfa7",
|
21 |
+
"metadata": {
|
22 |
+
"tags": []
|
23 |
+
},
|
24 |
+
"outputs": [],
|
25 |
+
"source": [
|
26 |
+
"from datasets import load_dataset\n",
|
27 |
+
"from tqdm import tqdm\n",
|
28 |
+
"\n",
|
29 |
+
"subsets = [('bg', 'lv'),('cs', 'lv'),('da', 'lv'),('de', 'lv'),('el', 'lv'),('en', 'lv'),\n",
|
30 |
+
" ('es', 'lv'),('et', 'lv'),('fi', 'lv'),('fr', 'lv'),('hr', 'lv'),('hu', 'lv'),\n",
|
31 |
+
" ('it', 'lv'),('lt', 'lv'),('lv', 'mt'),('lv', 'nl'),('lv', 'pl'),('lv', 'pt'),\n",
|
32 |
+
" ('lv', 'ro'),('lv', 'ru'),('lv', 'sk'),('lv', 'sl'),('lv', 'sv')]\n",
|
33 |
+
"\n",
|
34 |
+
"with open('tilde_lv.txt', 'w') as file:\n",
|
35 |
+
" for subset in tqdm(subsets):\n",
|
36 |
+
" print(f'Downloading subset: {subset[0]} - {subset[1]}')\n",
|
37 |
+
" \n",
|
38 |
+
" dataset = load_dataset('tilde_model', lang1=subset[0], lang2=subset[1], split='train')\n",
|
39 |
+
"\n",
|
40 |
+
" for entry in tqdm(dataset): \n",
|
41 |
+
" file.write(f'{entry[\"translation\"][\"lv\"]}\\n')\n",
|
42 |
+
" \n",
|
43 |
+
" file.close()\n",
|
44 |
+
"\n",
|
45 |
+
"print('Done')"
|
46 |
+
]
|
47 |
+
},
|
48 |
+
{
|
49 |
+
"cell_type": "code",
|
50 |
+
"execution_count": null,
|
51 |
+
"id": "b87ada0a-8ced-46a5-a7b5-46d7bb52c9b3",
|
52 |
+
"metadata": {},
|
53 |
+
"outputs": [],
|
54 |
+
"source": []
|
55 |
+
}
|
56 |
+
],
|
57 |
+
"metadata": {
|
58 |
+
"kernelspec": {
|
59 |
+
"display_name": "venv",
|
60 |
+
"language": "python",
|
61 |
+
"name": "venv"
|
62 |
+
},
|
63 |
+
"language_info": {
|
64 |
+
"codemirror_mode": {
|
65 |
+
"name": "ipython",
|
66 |
+
"version": 3
|
67 |
+
},
|
68 |
+
"file_extension": ".py",
|
69 |
+
"mimetype": "text/x-python",
|
70 |
+
"name": "python",
|
71 |
+
"nbconvert_exporter": "python",
|
72 |
+
"pygments_lexer": "ipython3",
|
73 |
+
"version": "3.8.10"
|
74 |
+
}
|
75 |
+
},
|
76 |
+
"nbformat": 4,
|
77 |
+
"nbformat_minor": 5
|
78 |
+
}
|
tools/tilde/GetTilde.py
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from datasets import load_dataset
|
2 |
+
from tqdm import tqdm
|
3 |
+
|
4 |
+
subsets = [('bg', 'lv'),('cs', 'lv'),('da', 'lv'),('de', 'lv'),('el', 'lv'),('en', 'lv'),
|
5 |
+
('es', 'lv'),('et', 'lv'),('fi', 'lv'),('fr', 'lv'),('hr', 'lv'),('hu', 'lv'),
|
6 |
+
('it', 'lv'),('lt', 'lv'),('lv', 'mt'),('lv', 'nl'),('lv', 'pl'),('lv', 'pt'),
|
7 |
+
('lv', 'ro'),('lv', 'ru'),('lv', 'sk'),('lv', 'sl'),('lv', 'sv')]
|
8 |
+
|
9 |
+
with open('tilde_lv.txt', 'w') as file:
|
10 |
+
for subset in tqdm(subsets):
|
11 |
+
print(f'Downloading subset: {subset[0]} - {subset[1]}')
|
12 |
+
|
13 |
+
dataset = load_dataset('tilde_model', lang1=subset[0], lang2=subset[1], split='train')
|
14 |
+
|
15 |
+
for entry in tqdm(dataset):
|
16 |
+
file.write(f'{entry["translation"]["lv"]}\n')
|
17 |
+
|
18 |
+
file.close()
|
19 |
+
|
20 |
+
print('Done')
|
tools/tilde/README.md
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
To get Opus100 sentences do the following
|
2 |
+
|
3 |
+
Install python dependencies
|
4 |
+
```
|
5 |
+
pip install datasets
|
6 |
+
pip install tqdm
|
7 |
+
```
|
8 |
+
|
9 |
+
Run the script
|
10 |
+
`python GetTilde.py`
|
tools/wikipedia/GetWikipedia.ipynb
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cells": [
|
3 |
+
{
|
4 |
+
"cell_type": "code",
|
5 |
+
"execution_count": null,
|
6 |
+
"id": "829546d1-7922-472d-94dc-f1f8c3a973dd",
|
7 |
+
"metadata": {
|
8 |
+
"tags": []
|
9 |
+
},
|
10 |
+
"outputs": [],
|
11 |
+
"source": [
|
12 |
+
"#dependencies\n",
|
13 |
+
"!pip install datasets\n",
|
14 |
+
"!pip install tqdm"
|
15 |
+
]
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"cell_type": "code",
|
19 |
+
"execution_count": null,
|
20 |
+
"id": "b5829cbc-ff56-435a-a3c8-afdb19f4cfa7",
|
21 |
+
"metadata": {
|
22 |
+
"tags": []
|
23 |
+
},
|
24 |
+
"outputs": [],
|
25 |
+
"source": [
|
26 |
+
"from datasets import load_dataset\n",
|
27 |
+
"from tqdm import tqdm\n",
|
28 |
+
"\n",
|
29 |
+
"DATE = \"20221120\"\n",
|
30 |
+
"\n",
|
31 |
+
"dataset = load_dataset('joelito/EU_Wikipedias', date=DATE, language=\"lv\", split='train')\n",
|
32 |
+
"\n",
|
33 |
+
"with open(f'wikipedia_{DATE}.txt', 'w') as file:\n",
|
34 |
+
" for entry in tqdm(dataset): \n",
|
35 |
+
" file.write(f'{entry[\"title\"]}\\n\\n')\n",
|
36 |
+
" file.write(f'{entry[\"text\"]}\\n\\n\\n')\n",
|
37 |
+
" file.close()\n",
|
38 |
+
"\n",
|
39 |
+
"print('Done') "
|
40 |
+
]
|
41 |
+
},
|
42 |
+
{
|
43 |
+
"cell_type": "code",
|
44 |
+
"execution_count": null,
|
45 |
+
"id": "b87ada0a-8ced-46a5-a7b5-46d7bb52c9b3",
|
46 |
+
"metadata": {},
|
47 |
+
"outputs": [],
|
48 |
+
"source": []
|
49 |
+
}
|
50 |
+
],
|
51 |
+
"metadata": {
|
52 |
+
"kernelspec": {
|
53 |
+
"display_name": "venv",
|
54 |
+
"language": "python",
|
55 |
+
"name": "venv"
|
56 |
+
},
|
57 |
+
"language_info": {
|
58 |
+
"codemirror_mode": {
|
59 |
+
"name": "ipython",
|
60 |
+
"version": 3
|
61 |
+
},
|
62 |
+
"file_extension": ".py",
|
63 |
+
"mimetype": "text/x-python",
|
64 |
+
"name": "python",
|
65 |
+
"nbconvert_exporter": "python",
|
66 |
+
"pygments_lexer": "ipython3",
|
67 |
+
"version": "3.8.10"
|
68 |
+
}
|
69 |
+
},
|
70 |
+
"nbformat": 4,
|
71 |
+
"nbformat_minor": 5
|
72 |
+
}
|
tools/wikipedia/GetWikipedia.py
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from datasets import load_dataset
|
2 |
+
from tqdm import tqdm
|
3 |
+
|
4 |
+
DATE = "20221120"
|
5 |
+
|
6 |
+
dataset = load_dataset('joelito/EU_Wikipedias', date=DATE, language="lv", split='train')
|
7 |
+
|
8 |
+
with open(f'wikipedia_{DATE}.txt', 'w') as file:
|
9 |
+
for entry in tqdm(dataset):
|
10 |
+
file.write(f'{entry["title"]}\n\n')
|
11 |
+
file.write(f'{entry["text"]}\n\n\n')
|
12 |
+
file.close()
|
13 |
+
|
14 |
+
print('Done')
|
tools/wikipedia/README.md
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
To get Wikipedia articles do the following
|
2 |
+
|
3 |
+
Install python dependencies
|
4 |
+
```
|
5 |
+
pip install datasets
|
6 |
+
pip install tqdm
|
7 |
+
```
|
8 |
+
|
9 |
+
Run the script
|
10 |
+
`python GetWikipedia.py`
|
tools/wikisource/README.md
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
To get Wikisource articles do the following
|
2 |
+
|
3 |
+
Install composer dependencies
|
4 |
+
`composer install`
|
5 |
+
|
6 |
+
Run the script
|
7 |
+
`php run-wiki.php`
|
8 |
+
|
9 |
+
To combine all files into one use
|
10 |
+
`cat ./wiki/* > wikisource.txt`
|
tools/wikisource/composer.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "dmitrijsi/workshop",
|
3 |
+
"authors": [
|
4 |
+
{
|
5 |
+
"name": "Dmitrijs Iscuks",
|
6 |
+
"email": "dmitrijsi@scandiweb.com"
|
7 |
+
}
|
8 |
+
],
|
9 |
+
"minimum-stability": "dev",
|
10 |
+
"repositories": [
|
11 |
+
{
|
12 |
+
"type": "vcs",
|
13 |
+
"url": "https://github.com/PHPPowertools/DOM-Query.git"
|
14 |
+
}
|
15 |
+
],
|
16 |
+
"require": {
|
17 |
+
"fabpot/goutte": "dev-master"
|
18 |
+
}
|
19 |
+
}
|
tools/wikisource/composer.lock
ADDED
@@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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_readme": [
|
3 |
+
"This file locks the dependencies of your project to a known state",
|
4 |
+
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
5 |
+
"This file is @generated automatically"
|
6 |
+
],
|
7 |
+
"content-hash": "96dda164229e35053cdcae633402c26d",
|
8 |
+
"packages": [
|
9 |
+
{
|
10 |
+
"name": "fabpot/goutte",
|
11 |
+
"version": "dev-master",
|
12 |
+
"source": {
|
13 |
+
"type": "git",
|
14 |
+
"url": "https://github.com/FriendsOfPHP/Goutte.git",
|
15 |
+
"reference": "f51940fbe0db060bc4fc0b3f1d19bc4ff3054b17"
|
16 |
+
},
|
17 |
+
"dist": {
|
18 |
+
"type": "zip",
|
19 |
+
"url": "https://api.github.com/repos/FriendsOfPHP/Goutte/zipball/f51940fbe0db060bc4fc0b3f1d19bc4ff3054b17",
|
20 |
+
"reference": "f51940fbe0db060bc4fc0b3f1d19bc4ff3054b17",
|
21 |
+
"shasum": ""
|
22 |
+
},
|
23 |
+
"require": {
|
24 |
+
"php": ">=7.1.3",
|
25 |
+
"symfony/browser-kit": "^4.4|^5.0|^6.0",
|
26 |
+
"symfony/css-selector": "^4.4|^5.0|^6.0",
|
27 |
+
"symfony/dom-crawler": "^4.4|^5.0|^6.0",
|
28 |
+
"symfony/http-client": "^4.4|^5.0|^6.0",
|
29 |
+
"symfony/mime": "^4.4|^5.0|^6.0"
|
30 |
+
},
|
31 |
+
"require-dev": {
|
32 |
+
"symfony/phpunit-bridge": "^5.0|^6.0"
|
33 |
+
},
|
34 |
+
"default-branch": true,
|
35 |
+
"type": "application",
|
36 |
+
"autoload": {
|
37 |
+
"psr-4": {
|
38 |
+
"Goutte\\": "Goutte"
|
39 |
+
},
|
40 |
+
"exclude-from-classmap": [
|
41 |
+
"Goutte/Tests"
|
42 |
+
]
|
43 |
+
},
|
44 |
+
"notification-url": "https://packagist.org/downloads/",
|
45 |
+
"license": [
|
46 |
+
"MIT"
|
47 |
+
],
|
48 |
+
"authors": [
|
49 |
+
{
|
50 |
+
"name": "Fabien Potencier",
|
51 |
+
"email": "fabien@symfony.com"
|
52 |
+
}
|
53 |
+
],
|
54 |
+
"description": "A simple PHP Web Scraper",
|
55 |
+
"homepage": "https://github.com/FriendsOfPHP/Goutte",
|
56 |
+
"keywords": [
|
57 |
+
"scraper"
|
58 |
+
],
|
59 |
+
"support": {
|
60 |
+
"issues": "https://github.com/FriendsOfPHP/Goutte/issues",
|
61 |
+
"source": "https://github.com/FriendsOfPHP/Goutte/tree/v4.0.2"
|
62 |
+
},
|
63 |
+
"time": "2021-12-17T17:15:01+00:00"
|
64 |
+
},
|
65 |
+
{
|
66 |
+
"name": "psr/container",
|
67 |
+
"version": "1.x-dev",
|
68 |
+
"source": {
|
69 |
+
"type": "git",
|
70 |
+
"url": "https://github.com/php-fig/container.git",
|
71 |
+
"reference": "513e0666f7216c7459170d56df27dfcefe1689ea"
|
72 |
+
},
|
73 |
+
"dist": {
|
74 |
+
"type": "zip",
|
75 |
+
"url": "https://api.github.com/repos/php-fig/container/zipball/513e0666f7216c7459170d56df27dfcefe1689ea",
|
76 |
+
"reference": "513e0666f7216c7459170d56df27dfcefe1689ea",
|
77 |
+
"shasum": ""
|
78 |
+
},
|
79 |
+
"require": {
|
80 |
+
"php": ">=7.4.0"
|
81 |
+
},
|
82 |
+
"type": "library",
|
83 |
+
"autoload": {
|
84 |
+
"psr-4": {
|
85 |
+
"Psr\\Container\\": "src/"
|
86 |
+
}
|
87 |
+
},
|
88 |
+
"notification-url": "https://packagist.org/downloads/",
|
89 |
+
"license": [
|
90 |
+
"MIT"
|
91 |
+
],
|
92 |
+
"authors": [
|
93 |
+
{
|
94 |
+
"name": "PHP-FIG",
|
95 |
+
"homepage": "https://www.php-fig.org/"
|
96 |
+
}
|
97 |
+
],
|
98 |
+
"description": "Common Container Interface (PHP FIG PSR-11)",
|
99 |
+
"homepage": "https://github.com/php-fig/container",
|
100 |
+
"keywords": [
|
101 |
+
"PSR-11",
|
102 |
+
"container",
|
103 |
+
"container-interface",
|
104 |
+
"container-interop",
|
105 |
+
"psr"
|
106 |
+
],
|
107 |
+
"support": {
|
108 |
+
"issues": "https://github.com/php-fig/container/issues",
|
109 |
+
"source": "https://github.com/php-fig/container/tree/1.1.2"
|
110 |
+
},
|
111 |
+
"time": "2021-11-05T16:50:12+00:00"
|
112 |
+
},
|
113 |
+
{
|
114 |
+
"name": "psr/log",
|
115 |
+
"version": "1.1.4",
|
116 |
+
"source": {
|
117 |
+
"type": "git",
|
118 |
+
"url": "https://github.com/php-fig/log.git",
|
119 |
+
"reference": "d49695b909c3b7628b6289db5479a1c204601f11"
|
120 |
+
},
|
121 |
+
"dist": {
|
122 |
+
"type": "zip",
|
123 |
+
"url": "https://api.github.com/repos/php-fig/log/zipball/d49695b909c3b7628b6289db5479a1c204601f11",
|
124 |
+
"reference": "d49695b909c3b7628b6289db5479a1c204601f11",
|
125 |
+
"shasum": ""
|
126 |
+
},
|
127 |
+
"require": {
|
128 |
+
"php": ">=5.3.0"
|
129 |
+
},
|
130 |
+
"type": "library",
|
131 |
+
"extra": {
|
132 |
+
"branch-alias": {
|
133 |
+
"dev-master": "1.1.x-dev"
|
134 |
+
}
|
135 |
+
},
|
136 |
+
"autoload": {
|
137 |
+
"psr-4": {
|
138 |
+
"Psr\\Log\\": "Psr/Log/"
|
139 |
+
}
|
140 |
+
},
|
141 |
+
"notification-url": "https://packagist.org/downloads/",
|
142 |
+
"license": [
|
143 |
+
"MIT"
|
144 |
+
],
|
145 |
+
"authors": [
|
146 |
+
{
|
147 |
+
"name": "PHP-FIG",
|
148 |
+
"homepage": "https://www.php-fig.org/"
|
149 |
+
}
|
150 |
+
],
|
151 |
+
"description": "Common interface for logging libraries",
|
152 |
+
"homepage": "https://github.com/php-fig/log",
|
153 |
+
"keywords": [
|
154 |
+
"log",
|
155 |
+
"psr",
|
156 |
+
"psr-3"
|
157 |
+
],
|
158 |
+
"support": {
|
159 |
+
"source": "https://github.com/php-fig/log/tree/1.1.4"
|
160 |
+
},
|
161 |
+
"time": "2021-05-03T11:20:27+00:00"
|
162 |
+
},
|
163 |
+
{
|
164 |
+
"name": "symfony/browser-kit",
|
165 |
+
"version": "5.4.x-dev",
|
166 |
+
"source": {
|
167 |
+
"type": "git",
|
168 |
+
"url": "https://github.com/symfony/browser-kit.git",
|
169 |
+
"reference": "a866ca7e396f15d7efb6d74a8a7d364d4e05b704"
|
170 |
+
},
|
171 |
+
"dist": {
|
172 |
+
"type": "zip",
|
173 |
+
"url": "https://api.github.com/repos/symfony/browser-kit/zipball/a866ca7e396f15d7efb6d74a8a7d364d4e05b704",
|
174 |
+
"reference": "a866ca7e396f15d7efb6d74a8a7d364d4e05b704",
|
175 |
+
"shasum": ""
|
176 |
+
},
|
177 |
+
"require": {
|
178 |
+
"php": ">=7.2.5",
|
179 |
+
"symfony/dom-crawler": "^4.4|^5.0|^6.0",
|
180 |
+
"symfony/polyfill-php80": "^1.16"
|
181 |
+
},
|
182 |
+
"require-dev": {
|
183 |
+
"symfony/css-selector": "^4.4|^5.0|^6.0",
|
184 |
+
"symfony/http-client": "^4.4|^5.0|^6.0",
|
185 |
+
"symfony/mime": "^4.4|^5.0|^6.0",
|
186 |
+
"symfony/process": "^4.4|^5.0|^6.0"
|
187 |
+
},
|
188 |
+
"suggest": {
|
189 |
+
"symfony/process": ""
|
190 |
+
},
|
191 |
+
"type": "library",
|
192 |
+
"autoload": {
|
193 |
+
"psr-4": {
|
194 |
+
"Symfony\\Component\\BrowserKit\\": ""
|
195 |
+
},
|
196 |
+
"exclude-from-classmap": [
|
197 |
+
"/Tests/"
|
198 |
+
]
|
199 |
+
},
|
200 |
+
"notification-url": "https://packagist.org/downloads/",
|
201 |
+
"license": [
|
202 |
+
"MIT"
|
203 |
+
],
|
204 |
+
"authors": [
|
205 |
+
{
|
206 |
+
"name": "Fabien Potencier",
|
207 |
+
"email": "fabien@symfony.com"
|
208 |
+
},
|
209 |
+
{
|
210 |
+
"name": "Symfony Community",
|
211 |
+
"homepage": "https://symfony.com/contributors"
|
212 |
+
}
|
213 |
+
],
|
214 |
+
"description": "Simulates the behavior of a web browser, allowing you to make requests, click on links and submit forms programmatically",
|
215 |
+
"homepage": "https://symfony.com",
|
216 |
+
"support": {
|
217 |
+
"source": "https://github.com/symfony/browser-kit/tree/5.4"
|
218 |
+
},
|
219 |
+
"funding": [
|
220 |
+
{
|
221 |
+
"url": "https://symfony.com/sponsor",
|
222 |
+
"type": "custom"
|
223 |
+
},
|
224 |
+
{
|
225 |
+
"url": "https://github.com/fabpot",
|
226 |
+
"type": "github"
|
227 |
+
},
|
228 |
+
{
|
229 |
+
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
|
230 |
+
"type": "tidelift"
|
231 |
+
}
|
232 |
+
],
|
233 |
+
"time": "2023-02-14T08:03:56+00:00"
|
234 |
+
},
|
235 |
+
{
|
236 |
+
"name": "symfony/css-selector",
|
237 |
+
"version": "5.4.x-dev",
|
238 |
+
"source": {
|
239 |
+
"type": "git",
|
240 |
+
"url": "https://github.com/symfony/css-selector.git",
|
241 |
+
"reference": "95f3c7468db1da8cc360b24fa2a26e7cefcb355d"
|
242 |
+
},
|
243 |
+
"dist": {
|
244 |
+
"type": "zip",
|
245 |
+
"url": "https://api.github.com/repos/symfony/css-selector/zipball/95f3c7468db1da8cc360b24fa2a26e7cefcb355d",
|
246 |
+
"reference": "95f3c7468db1da8cc360b24fa2a26e7cefcb355d",
|
247 |
+
"shasum": ""
|
248 |
+
},
|
249 |
+
"require": {
|
250 |
+
"php": ">=7.2.5",
|
251 |
+
"symfony/polyfill-php80": "^1.16"
|
252 |
+
},
|
253 |
+
"type": "library",
|
254 |
+
"autoload": {
|
255 |
+
"psr-4": {
|
256 |
+
"Symfony\\Component\\CssSelector\\": ""
|
257 |
+
},
|
258 |
+
"exclude-from-classmap": [
|
259 |
+
"/Tests/"
|
260 |
+
]
|
261 |
+
},
|
262 |
+
"notification-url": "https://packagist.org/downloads/",
|
263 |
+
"license": [
|
264 |
+
"MIT"
|
265 |
+
],
|
266 |
+
"authors": [
|
267 |
+
{
|
268 |
+
"name": "Fabien Potencier",
|
269 |
+
"email": "fabien@symfony.com"
|
270 |
+
},
|
271 |
+
{
|
272 |
+
"name": "Jean-François Simon",
|
273 |
+
"email": "jeanfrancois.simon@sensiolabs.com"
|
274 |
+
},
|
275 |
+
{
|
276 |
+
"name": "Symfony Community",
|
277 |
+
"homepage": "https://symfony.com/contributors"
|
278 |
+
}
|
279 |
+
],
|
280 |
+
"description": "Converts CSS selectors to XPath expressions",
|
281 |
+
"homepage": "https://symfony.com",
|
282 |
+
"support": {
|
283 |
+
"source": "https://github.com/symfony/css-selector/tree/5.4"
|
284 |
+
},
|
285 |
+
"funding": [
|
286 |
+
{
|
287 |
+
"url": "https://symfony.com/sponsor",
|
288 |
+
"type": "custom"
|
289 |
+
},
|
290 |
+
{
|
291 |
+
"url": "https://github.com/fabpot",
|
292 |
+
"type": "github"
|
293 |
+
},
|
294 |
+
{
|
295 |
+
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
|
296 |
+
"type": "tidelift"
|
297 |
+
}
|
298 |
+
],
|
299 |
+
"time": "2023-02-14T08:03:56+00:00"
|
300 |
+
},
|
301 |
+
{
|
302 |
+
"name": "symfony/deprecation-contracts",
|
303 |
+
"version": "2.5.x-dev",
|
304 |
+
"source": {
|
305 |
+
"type": "git",
|
306 |
+
"url": "https://github.com/symfony/deprecation-contracts.git",
|
307 |
+
"reference": "80d075412b557d41002320b96a096ca65aa2c98d"
|
308 |
+
},
|
309 |
+
"dist": {
|
310 |
+
"type": "zip",
|
311 |
+
"url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/80d075412b557d41002320b96a096ca65aa2c98d",
|
312 |
+
"reference": "80d075412b557d41002320b96a096ca65aa2c98d",
|
313 |
+
"shasum": ""
|
314 |
+
},
|
315 |
+
"require": {
|
316 |
+
"php": ">=7.1"
|
317 |
+
},
|
318 |
+
"type": "library",
|
319 |
+
"extra": {
|
320 |
+
"branch-alias": {
|
321 |
+
"dev-main": "2.5-dev"
|
322 |
+
},
|
323 |
+
"thanks": {
|
324 |
+
"name": "symfony/contracts",
|
325 |
+
"url": "https://github.com/symfony/contracts"
|
326 |
+
}
|
327 |
+
},
|
328 |
+
"autoload": {
|
329 |
+
"files": [
|
330 |
+
"function.php"
|
331 |
+
]
|
332 |
+
},
|
333 |
+
"notification-url": "https://packagist.org/downloads/",
|
334 |
+
"license": [
|
335 |
+
"MIT"
|
336 |
+
],
|
337 |
+
"authors": [
|
338 |
+
{
|
339 |
+
"name": "Nicolas Grekas",
|
340 |
+
"email": "p@tchwork.com"
|
341 |
+
},
|
342 |
+
{
|
343 |
+
"name": "Symfony Community",
|
344 |
+
"homepage": "https://symfony.com/contributors"
|
345 |
+
}
|
346 |
+
],
|
347 |
+
"description": "A generic function and convention to trigger deprecation notices",
|
348 |
+
"homepage": "https://symfony.com",
|
349 |
+
"support": {
|
350 |
+
"source": "https://github.com/symfony/deprecation-contracts/tree/2.5"
|
351 |
+
},
|
352 |
+
"funding": [
|
353 |
+
{
|
354 |
+
"url": "https://symfony.com/sponsor",
|
355 |
+
"type": "custom"
|
356 |
+
},
|
357 |
+
{
|
358 |
+
"url": "https://github.com/fabpot",
|
359 |
+
"type": "github"
|
360 |
+
},
|
361 |
+
{
|
362 |
+
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
|
363 |
+
"type": "tidelift"
|
364 |
+
}
|
365 |
+
],
|
366 |
+
"time": "2023-01-24T14:02:46+00:00"
|
367 |
+
},
|
368 |
+
{
|
369 |
+
"name": "symfony/dom-crawler",
|
370 |
+
"version": "5.4.x-dev",
|
371 |
+
"source": {
|
372 |
+
"type": "git",
|
373 |
+
"url": "https://github.com/symfony/dom-crawler.git",
|
374 |
+
"reference": "4c633facee8da59998e0c90e337a586cf07a21e7"
|
375 |
+
},
|
376 |
+
"dist": {
|
377 |
+
"type": "zip",
|
378 |
+
"url": "https://api.github.com/repos/symfony/dom-crawler/zipball/4c633facee8da59998e0c90e337a586cf07a21e7",
|
379 |
+
"reference": "4c633facee8da59998e0c90e337a586cf07a21e7",
|
380 |
+
"shasum": ""
|
381 |
+
},
|
382 |
+
"require": {
|
383 |
+
"php": ">=7.2.5",
|
384 |
+
"symfony/deprecation-contracts": "^2.1|^3",
|
385 |
+
"symfony/polyfill-ctype": "~1.8",
|
386 |
+
"symfony/polyfill-mbstring": "~1.0",
|
387 |
+
"symfony/polyfill-php80": "^1.16"
|
388 |
+
},
|
389 |
+
"conflict": {
|
390 |
+
"masterminds/html5": "<2.6"
|
391 |
+
},
|
392 |
+
"require-dev": {
|
393 |
+
"masterminds/html5": "^2.6",
|
394 |
+
"symfony/css-selector": "^4.4|^5.0|^6.0"
|
395 |
+
},
|
396 |
+
"suggest": {
|
397 |
+
"symfony/css-selector": ""
|
398 |
+
},
|
399 |
+
"type": "library",
|
400 |
+
"autoload": {
|
401 |
+
"psr-4": {
|
402 |
+
"Symfony\\Component\\DomCrawler\\": ""
|
403 |
+
},
|
404 |
+
"exclude-from-classmap": [
|
405 |
+
"/Tests/"
|
406 |
+
]
|
407 |
+
},
|
408 |
+
"notification-url": "https://packagist.org/downloads/",
|
409 |
+
"license": [
|
410 |
+
"MIT"
|
411 |
+
],
|
412 |
+
"authors": [
|
413 |
+
{
|
414 |
+
"name": "Fabien Potencier",
|
415 |
+
"email": "fabien@symfony.com"
|
416 |
+
},
|
417 |
+
{
|
418 |
+
"name": "Symfony Community",
|
419 |
+
"homepage": "https://symfony.com/contributors"
|
420 |
+
}
|
421 |
+
],
|
422 |
+
"description": "Eases DOM navigation for HTML and XML documents",
|
423 |
+
"homepage": "https://symfony.com",
|
424 |
+
"support": {
|
425 |
+
"source": "https://github.com/symfony/dom-crawler/tree/5.4"
|
426 |
+
},
|
427 |
+
"funding": [
|
428 |
+
{
|
429 |
+
"url": "https://symfony.com/sponsor",
|
430 |
+
"type": "custom"
|
431 |
+
},
|
432 |
+
{
|
433 |
+
"url": "https://github.com/fabpot",
|
434 |
+
"type": "github"
|
435 |
+
},
|
436 |
+
{
|
437 |
+
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
|
438 |
+
"type": "tidelift"
|
439 |
+
}
|
440 |
+
],
|
441 |
+
"time": "2023-03-06T21:29:33+00:00"
|
442 |
+
},
|
443 |
+
{
|
444 |
+
"name": "symfony/http-client",
|
445 |
+
"version": "5.4.x-dev",
|
446 |
+
"source": {
|
447 |
+
"type": "git",
|
448 |
+
"url": "https://github.com/symfony/http-client.git",
|
449 |
+
"reference": "c10fe9394b5f4cc6b7c94484e738f4704a3d18a1"
|
450 |
+
},
|
451 |
+
"dist": {
|
452 |
+
"type": "zip",
|
453 |
+
"url": "https://api.github.com/repos/symfony/http-client/zipball/c10fe9394b5f4cc6b7c94484e738f4704a3d18a1",
|
454 |
+
"reference": "c10fe9394b5f4cc6b7c94484e738f4704a3d18a1",
|
455 |
+
"shasum": ""
|
456 |
+
},
|
457 |
+
"require": {
|
458 |
+
"php": ">=7.2.5",
|
459 |
+
"psr/log": "^1|^2|^3",
|
460 |
+
"symfony/deprecation-contracts": "^2.1|^3",
|
461 |
+
"symfony/http-client-contracts": "^2.4",
|
462 |
+
"symfony/polyfill-php73": "^1.11",
|
463 |
+
"symfony/polyfill-php80": "^1.16",
|
464 |
+
"symfony/service-contracts": "^1.0|^2|^3"
|
465 |
+
},
|
466 |
+
"provide": {
|
467 |
+
"php-http/async-client-implementation": "*",
|
468 |
+
"php-http/client-implementation": "*",
|
469 |
+
"psr/http-client-implementation": "1.0",
|
470 |
+
"symfony/http-client-implementation": "2.4"
|
471 |
+
},
|
472 |
+
"require-dev": {
|
473 |
+
"amphp/amp": "^2.5",
|
474 |
+
"amphp/http-client": "^4.2.1",
|
475 |
+
"amphp/http-tunnel": "^1.0",
|
476 |
+
"amphp/socket": "^1.1",
|
477 |
+
"guzzlehttp/promises": "^1.4",
|
478 |
+
"nyholm/psr7": "^1.0",
|
479 |
+
"php-http/httplug": "^1.0|^2.0",
|
480 |
+
"psr/http-client": "^1.0",
|
481 |
+
"symfony/dependency-injection": "^4.4|^5.0|^6.0",
|
482 |
+
"symfony/http-kernel": "^4.4.13|^5.1.5|^6.0",
|
483 |
+
"symfony/process": "^4.4|^5.0|^6.0",
|
484 |
+
"symfony/stopwatch": "^4.4|^5.0|^6.0"
|
485 |
+
},
|
486 |
+
"type": "library",
|
487 |
+
"autoload": {
|
488 |
+
"psr-4": {
|
489 |
+
"Symfony\\Component\\HttpClient\\": ""
|
490 |
+
},
|
491 |
+
"exclude-from-classmap": [
|
492 |
+
"/Tests/"
|
493 |
+
]
|
494 |
+
},
|
495 |
+
"notification-url": "https://packagist.org/downloads/",
|
496 |
+
"license": [
|
497 |
+
"MIT"
|
498 |
+
],
|
499 |
+
"authors": [
|
500 |
+
{
|
501 |
+
"name": "Nicolas Grekas",
|
502 |
+
"email": "p@tchwork.com"
|
503 |
+
},
|
504 |
+
{
|
505 |
+
"name": "Symfony Community",
|
506 |
+
"homepage": "https://symfony.com/contributors"
|
507 |
+
}
|
508 |
+
],
|
509 |
+
"description": "Provides powerful methods to fetch HTTP resources synchronously or asynchronously",
|
510 |
+
"homepage": "https://symfony.com",
|
511 |
+
"support": {
|
512 |
+
"source": "https://github.com/symfony/http-client/tree/5.4"
|
513 |
+
},
|
514 |
+
"funding": [
|
515 |
+
{
|
516 |
+
"url": "https://symfony.com/sponsor",
|
517 |
+
"type": "custom"
|
518 |
+
},
|
519 |
+
{
|
520 |
+
"url": "https://github.com/fabpot",
|
521 |
+
"type": "github"
|
522 |
+
},
|
523 |
+
{
|
524 |
+
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
|
525 |
+
"type": "tidelift"
|
526 |
+
}
|
527 |
+
],
|
528 |
+
"time": "2023-03-06T21:06:00+00:00"
|
529 |
+
},
|
530 |
+
{
|
531 |
+
"name": "symfony/http-client-contracts",
|
532 |
+
"version": "2.5.x-dev",
|
533 |
+
"source": {
|
534 |
+
"type": "git",
|
535 |
+
"url": "https://github.com/symfony/http-client-contracts.git",
|
536 |
+
"reference": "e409355955c35bc64af520f9853f191e6621d013"
|
537 |
+
},
|
538 |
+
"dist": {
|
539 |
+
"type": "zip",
|
540 |
+
"url": "https://api.github.com/repos/symfony/http-client-contracts/zipball/e409355955c35bc64af520f9853f191e6621d013",
|
541 |
+
"reference": "e409355955c35bc64af520f9853f191e6621d013",
|
542 |
+
"shasum": ""
|
543 |
+
},
|
544 |
+
"require": {
|
545 |
+
"php": ">=7.2.5"
|
546 |
+
},
|
547 |
+
"suggest": {
|
548 |
+
"symfony/http-client-implementation": ""
|
549 |
+
},
|
550 |
+
"type": "library",
|
551 |
+
"extra": {
|
552 |
+
"branch-alias": {
|
553 |
+
"dev-main": "2.5-dev"
|
554 |
+
},
|
555 |
+
"thanks": {
|
556 |
+
"name": "symfony/contracts",
|
557 |
+
"url": "https://github.com/symfony/contracts"
|
558 |
+
}
|
559 |
+
},
|
560 |
+
"autoload": {
|
561 |
+
"psr-4": {
|
562 |
+
"Symfony\\Contracts\\HttpClient\\": ""
|
563 |
+
}
|
564 |
+
},
|
565 |
+
"notification-url": "https://packagist.org/downloads/",
|
566 |
+
"license": [
|
567 |
+
"MIT"
|
568 |
+
],
|
569 |
+
"authors": [
|
570 |
+
{
|
571 |
+
"name": "Nicolas Grekas",
|
572 |
+
"email": "p@tchwork.com"
|
573 |
+
},
|
574 |
+
{
|
575 |
+
"name": "Symfony Community",
|
576 |
+
"homepage": "https://symfony.com/contributors"
|
577 |
+
}
|
578 |
+
],
|
579 |
+
"description": "Generic abstractions related to HTTP clients",
|
580 |
+
"homepage": "https://symfony.com",
|
581 |
+
"keywords": [
|
582 |
+
"abstractions",
|
583 |
+
"contracts",
|
584 |
+
"decoupling",
|
585 |
+
"interfaces",
|
586 |
+
"interoperability",
|
587 |
+
"standards"
|
588 |
+
],
|
589 |
+
"support": {
|
590 |
+
"source": "https://github.com/symfony/http-client-contracts/tree/2.5"
|
591 |
+
},
|
592 |
+
"funding": [
|
593 |
+
{
|
594 |
+
"url": "https://symfony.com/sponsor",
|
595 |
+
"type": "custom"
|
596 |
+
},
|
597 |
+
{
|
598 |
+
"url": "https://github.com/fabpot",
|
599 |
+
"type": "github"
|
600 |
+
},
|
601 |
+
{
|
602 |
+
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
|
603 |
+
"type": "tidelift"
|
604 |
+
}
|
605 |
+
],
|
606 |
+
"time": "2023-01-24T14:02:46+00:00"
|
607 |
+
},
|
608 |
+
{
|
609 |
+
"name": "symfony/mime",
|
610 |
+
"version": "5.4.x-dev",
|
611 |
+
"source": {
|
612 |
+
"type": "git",
|
613 |
+
"url": "https://github.com/symfony/mime.git",
|
614 |
+
"reference": "ef57d9fb9cdd5e6b2ffc567d109865d10b6920cd"
|
615 |
+
},
|
616 |
+
"dist": {
|
617 |
+
"type": "zip",
|
618 |
+
"url": "https://api.github.com/repos/symfony/mime/zipball/ef57d9fb9cdd5e6b2ffc567d109865d10b6920cd",
|
619 |
+
"reference": "ef57d9fb9cdd5e6b2ffc567d109865d10b6920cd",
|
620 |
+
"shasum": ""
|
621 |
+
},
|
622 |
+
"require": {
|
623 |
+
"php": ">=7.2.5",
|
624 |
+
"symfony/deprecation-contracts": "^2.1|^3",
|
625 |
+
"symfony/polyfill-intl-idn": "^1.10",
|
626 |
+
"symfony/polyfill-mbstring": "^1.0",
|
627 |
+
"symfony/polyfill-php80": "^1.16"
|
628 |
+
},
|
629 |
+
"conflict": {
|
630 |
+
"egulias/email-validator": "~3.0.0",
|
631 |
+
"phpdocumentor/reflection-docblock": "<3.2.2",
|
632 |
+
"phpdocumentor/type-resolver": "<1.4.0",
|
633 |
+
"symfony/mailer": "<4.4",
|
634 |
+
"symfony/serializer": "<5.4.14|>=6.0,<6.0.14|>=6.1,<6.1.6"
|
635 |
+
},
|
636 |
+
"require-dev": {
|
637 |
+
"egulias/email-validator": "^2.1.10|^3.1|^4",
|
638 |
+
"phpdocumentor/reflection-docblock": "^3.0|^4.0|^5.0",
|
639 |
+
"symfony/dependency-injection": "^4.4|^5.0|^6.0",
|
640 |
+
"symfony/property-access": "^4.4|^5.1|^6.0",
|
641 |
+
"symfony/property-info": "^4.4|^5.1|^6.0",
|
642 |
+
"symfony/serializer": "^5.4.14|~6.0.14|^6.1.6"
|
643 |
+
},
|
644 |
+
"type": "library",
|
645 |
+
"autoload": {
|
646 |
+
"psr-4": {
|
647 |
+
"Symfony\\Component\\Mime\\": ""
|
648 |
+
},
|
649 |
+
"exclude-from-classmap": [
|
650 |
+
"/Tests/"
|
651 |
+
]
|
652 |
+
},
|
653 |
+
"notification-url": "https://packagist.org/downloads/",
|
654 |
+
"license": [
|
655 |
+
"MIT"
|
656 |
+
],
|
657 |
+
"authors": [
|
658 |
+
{
|
659 |
+
"name": "Fabien Potencier",
|
660 |
+
"email": "fabien@symfony.com"
|
661 |
+
},
|
662 |
+
{
|
663 |
+
"name": "Symfony Community",
|
664 |
+
"homepage": "https://symfony.com/contributors"
|
665 |
+
}
|
666 |
+
],
|
667 |
+
"description": "Allows manipulating MIME messages",
|
668 |
+
"homepage": "https://symfony.com",
|
669 |
+
"keywords": [
|
670 |
+
"mime",
|
671 |
+
"mime-type"
|
672 |
+
],
|
673 |
+
"support": {
|
674 |
+
"source": "https://github.com/symfony/mime/tree/5.4"
|
675 |
+
},
|
676 |
+
"funding": [
|
677 |
+
{
|
678 |
+
"url": "https://symfony.com/sponsor",
|
679 |
+
"type": "custom"
|
680 |
+
},
|
681 |
+
{
|
682 |
+
"url": "https://github.com/fabpot",
|
683 |
+
"type": "github"
|
684 |
+
},
|
685 |
+
{
|
686 |
+
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
|
687 |
+
"type": "tidelift"
|
688 |
+
}
|
689 |
+
],
|
690 |
+
"time": "2023-02-21T19:46:44+00:00"
|
691 |
+
},
|
692 |
+
{
|
693 |
+
"name": "symfony/polyfill-ctype",
|
694 |
+
"version": "dev-main",
|
695 |
+
"source": {
|
696 |
+
"type": "git",
|
697 |
+
"url": "https://github.com/symfony/polyfill-ctype.git",
|
698 |
+
"reference": "ea208ce43cbb04af6867b4fdddb1bdbf84cc28cb"
|
699 |
+
},
|
700 |
+
"dist": {
|
701 |
+
"type": "zip",
|
702 |
+
"url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/ea208ce43cbb04af6867b4fdddb1bdbf84cc28cb",
|
703 |
+
"reference": "ea208ce43cbb04af6867b4fdddb1bdbf84cc28cb",
|
704 |
+
"shasum": ""
|
705 |
+
},
|
706 |
+
"require": {
|
707 |
+
"php": ">=7.1"
|
708 |
+
},
|
709 |
+
"provide": {
|
710 |
+
"ext-ctype": "*"
|
711 |
+
},
|
712 |
+
"suggest": {
|
713 |
+
"ext-ctype": "For best performance"
|
714 |
+
},
|
715 |
+
"default-branch": true,
|
716 |
+
"type": "library",
|
717 |
+
"extra": {
|
718 |
+
"branch-alias": {
|
719 |
+
"dev-main": "1.28-dev"
|
720 |
+
},
|
721 |
+
"thanks": {
|
722 |
+
"name": "symfony/polyfill",
|
723 |
+
"url": "https://github.com/symfony/polyfill"
|
724 |
+
}
|
725 |
+
},
|
726 |
+
"autoload": {
|
727 |
+
"files": [
|
728 |
+
"bootstrap.php"
|
729 |
+
],
|
730 |
+
"psr-4": {
|
731 |
+
"Symfony\\Polyfill\\Ctype\\": ""
|
732 |
+
}
|
733 |
+
},
|
734 |
+
"notification-url": "https://packagist.org/downloads/",
|
735 |
+
"license": [
|
736 |
+
"MIT"
|
737 |
+
],
|
738 |
+
"authors": [
|
739 |
+
{
|
740 |
+
"name": "Gert de Pagter",
|
741 |
+
"email": "BackEndTea@gmail.com"
|
742 |
+
},
|
743 |
+
{
|
744 |
+
"name": "Symfony Community",
|
745 |
+
"homepage": "https://symfony.com/contributors"
|
746 |
+
}
|
747 |
+
],
|
748 |
+
"description": "Symfony polyfill for ctype functions",
|
749 |
+
"homepage": "https://symfony.com",
|
750 |
+
"keywords": [
|
751 |
+
"compatibility",
|
752 |
+
"ctype",
|
753 |
+
"polyfill",
|
754 |
+
"portable"
|
755 |
+
],
|
756 |
+
"support": {
|
757 |
+
"source": "https://github.com/symfony/polyfill-ctype/tree/main"
|
758 |
+
},
|
759 |
+
"funding": [
|
760 |
+
{
|
761 |
+
"url": "https://symfony.com/sponsor",
|
762 |
+
"type": "custom"
|
763 |
+
},
|
764 |
+
{
|
765 |
+
"url": "https://github.com/fabpot",
|
766 |
+
"type": "github"
|
767 |
+
},
|
768 |
+
{
|
769 |
+
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
|
770 |
+
"type": "tidelift"
|
771 |
+
}
|
772 |
+
],
|
773 |
+
"time": "2023-01-26T09:26:14+00:00"
|
774 |
+
},
|
775 |
+
{
|
776 |
+
"name": "symfony/polyfill-intl-idn",
|
777 |
+
"version": "dev-main",
|
778 |
+
"source": {
|
779 |
+
"type": "git",
|
780 |
+
"url": "https://github.com/symfony/polyfill-intl-idn.git",
|
781 |
+
"reference": "ecaafce9f77234a6a449d29e49267ba10499116d"
|
782 |
+
},
|
783 |
+
"dist": {
|
784 |
+
"type": "zip",
|
785 |
+
"url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/ecaafce9f77234a6a449d29e49267ba10499116d",
|
786 |
+
"reference": "ecaafce9f77234a6a449d29e49267ba10499116d",
|
787 |
+
"shasum": ""
|
788 |
+
},
|
789 |
+
"require": {
|
790 |
+
"php": ">=7.1",
|
791 |
+
"symfony/polyfill-intl-normalizer": "^1.10",
|
792 |
+
"symfony/polyfill-php72": "^1.10"
|
793 |
+
},
|
794 |
+
"suggest": {
|
795 |
+
"ext-intl": "For best performance"
|
796 |
+
},
|
797 |
+
"default-branch": true,
|
798 |
+
"type": "library",
|
799 |
+
"extra": {
|
800 |
+
"branch-alias": {
|
801 |
+
"dev-main": "1.28-dev"
|
802 |
+
},
|
803 |
+
"thanks": {
|
804 |
+
"name": "symfony/polyfill",
|
805 |
+
"url": "https://github.com/symfony/polyfill"
|
806 |
+
}
|
807 |
+
},
|
808 |
+
"autoload": {
|
809 |
+
"files": [
|
810 |
+
"bootstrap.php"
|
811 |
+
],
|
812 |
+
"psr-4": {
|
813 |
+
"Symfony\\Polyfill\\Intl\\Idn\\": ""
|
814 |
+
}
|
815 |
+
},
|
816 |
+
"notification-url": "https://packagist.org/downloads/",
|
817 |
+
"license": [
|
818 |
+
"MIT"
|
819 |
+
],
|
820 |
+
"authors": [
|
821 |
+
{
|
822 |
+
"name": "Laurent Bassin",
|
823 |
+
"email": "laurent@bassin.info"
|
824 |
+
},
|
825 |
+
{
|
826 |
+
"name": "Trevor Rowbotham",
|
827 |
+
"email": "trevor.rowbotham@pm.me"
|
828 |
+
},
|
829 |
+
{
|
830 |
+
"name": "Symfony Community",
|
831 |
+
"homepage": "https://symfony.com/contributors"
|
832 |
+
}
|
833 |
+
],
|
834 |
+
"description": "Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions",
|
835 |
+
"homepage": "https://symfony.com",
|
836 |
+
"keywords": [
|
837 |
+
"compatibility",
|
838 |
+
"idn",
|
839 |
+
"intl",
|
840 |
+
"polyfill",
|
841 |
+
"portable",
|
842 |
+
"shim"
|
843 |
+
],
|
844 |
+
"support": {
|
845 |
+
"source": "https://github.com/symfony/polyfill-intl-idn/tree/main"
|
846 |
+
},
|
847 |
+
"funding": [
|
848 |
+
{
|
849 |
+
"url": "https://symfony.com/sponsor",
|
850 |
+
"type": "custom"
|
851 |
+
},
|
852 |
+
{
|
853 |
+
"url": "https://github.com/fabpot",
|
854 |
+
"type": "github"
|
855 |
+
},
|
856 |
+
{
|
857 |
+
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
|
858 |
+
"type": "tidelift"
|
859 |
+
}
|
860 |
+
],
|
861 |
+
"time": "2023-01-26T09:30:37+00:00"
|
862 |
+
},
|
863 |
+
{
|
864 |
+
"name": "symfony/polyfill-intl-normalizer",
|
865 |
+
"version": "dev-main",
|
866 |
+
"source": {
|
867 |
+
"type": "git",
|
868 |
+
"url": "https://github.com/symfony/polyfill-intl-normalizer.git",
|
869 |
+
"reference": "8c4ad05dd0120b6a53c1ca374dca2ad0a1c4ed92"
|
870 |
+
},
|
871 |
+
"dist": {
|
872 |
+
"type": "zip",
|
873 |
+
"url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/8c4ad05dd0120b6a53c1ca374dca2ad0a1c4ed92",
|
874 |
+
"reference": "8c4ad05dd0120b6a53c1ca374dca2ad0a1c4ed92",
|
875 |
+
"shasum": ""
|
876 |
+
},
|
877 |
+
"require": {
|
878 |
+
"php": ">=7.1"
|
879 |
+
},
|
880 |
+
"suggest": {
|
881 |
+
"ext-intl": "For best performance"
|
882 |
+
},
|
883 |
+
"default-branch": true,
|
884 |
+
"type": "library",
|
885 |
+
"extra": {
|
886 |
+
"branch-alias": {
|
887 |
+
"dev-main": "1.28-dev"
|
888 |
+
},
|
889 |
+
"thanks": {
|
890 |
+
"name": "symfony/polyfill",
|
891 |
+
"url": "https://github.com/symfony/polyfill"
|
892 |
+
}
|
893 |
+
},
|
894 |
+
"autoload": {
|
895 |
+
"files": [
|
896 |
+
"bootstrap.php"
|
897 |
+
],
|
898 |
+
"psr-4": {
|
899 |
+
"Symfony\\Polyfill\\Intl\\Normalizer\\": ""
|
900 |
+
},
|
901 |
+
"classmap": [
|
902 |
+
"Resources/stubs"
|
903 |
+
]
|
904 |
+
},
|
905 |
+
"notification-url": "https://packagist.org/downloads/",
|
906 |
+
"license": [
|
907 |
+
"MIT"
|
908 |
+
],
|
909 |
+
"authors": [
|
910 |
+
{
|
911 |
+
"name": "Nicolas Grekas",
|
912 |
+
"email": "p@tchwork.com"
|
913 |
+
},
|
914 |
+
{
|
915 |
+
"name": "Symfony Community",
|
916 |
+
"homepage": "https://symfony.com/contributors"
|
917 |
+
}
|
918 |
+
],
|
919 |
+
"description": "Symfony polyfill for intl's Normalizer class and related functions",
|
920 |
+
"homepage": "https://symfony.com",
|
921 |
+
"keywords": [
|
922 |
+
"compatibility",
|
923 |
+
"intl",
|
924 |
+
"normalizer",
|
925 |
+
"polyfill",
|
926 |
+
"portable",
|
927 |
+
"shim"
|
928 |
+
],
|
929 |
+
"support": {
|
930 |
+
"source": "https://github.com/symfony/polyfill-intl-normalizer/tree/main"
|
931 |
+
},
|
932 |
+
"funding": [
|
933 |
+
{
|
934 |
+
"url": "https://symfony.com/sponsor",
|
935 |
+
"type": "custom"
|
936 |
+
},
|
937 |
+
{
|
938 |
+
"url": "https://github.com/fabpot",
|
939 |
+
"type": "github"
|
940 |
+
},
|
941 |
+
{
|
942 |
+
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
|
943 |
+
"type": "tidelift"
|
944 |
+
}
|
945 |
+
],
|
946 |
+
"time": "2023-01-26T09:26:14+00:00"
|
947 |
+
},
|
948 |
+
{
|
949 |
+
"name": "symfony/polyfill-mbstring",
|
950 |
+
"version": "dev-main",
|
951 |
+
"source": {
|
952 |
+
"type": "git",
|
953 |
+
"url": "https://github.com/symfony/polyfill-mbstring.git",
|
954 |
+
"reference": "f9c7affe77a00ae32ca127ca6833d034e6d33f25"
|
955 |
+
},
|
956 |
+
"dist": {
|
957 |
+
"type": "zip",
|
958 |
+
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/f9c7affe77a00ae32ca127ca6833d034e6d33f25",
|
959 |
+
"reference": "f9c7affe77a00ae32ca127ca6833d034e6d33f25",
|
960 |
+
"shasum": ""
|
961 |
+
},
|
962 |
+
"require": {
|
963 |
+
"php": ">=7.1"
|
964 |
+
},
|
965 |
+
"provide": {
|
966 |
+
"ext-mbstring": "*"
|
967 |
+
},
|
968 |
+
"suggest": {
|
969 |
+
"ext-mbstring": "For best performance"
|
970 |
+
},
|
971 |
+
"default-branch": true,
|
972 |
+
"type": "library",
|
973 |
+
"extra": {
|
974 |
+
"branch-alias": {
|
975 |
+
"dev-main": "1.28-dev"
|
976 |
+
},
|
977 |
+
"thanks": {
|
978 |
+
"name": "symfony/polyfill",
|
979 |
+
"url": "https://github.com/symfony/polyfill"
|
980 |
+
}
|
981 |
+
},
|
982 |
+
"autoload": {
|
983 |
+
"files": [
|
984 |
+
"bootstrap.php"
|
985 |
+
],
|
986 |
+
"psr-4": {
|
987 |
+
"Symfony\\Polyfill\\Mbstring\\": ""
|
988 |
+
}
|
989 |
+
},
|
990 |
+
"notification-url": "https://packagist.org/downloads/",
|
991 |
+
"license": [
|
992 |
+
"MIT"
|
993 |
+
],
|
994 |
+
"authors": [
|
995 |
+
{
|
996 |
+
"name": "Nicolas Grekas",
|
997 |
+
"email": "p@tchwork.com"
|
998 |
+
},
|
999 |
+
{
|
1000 |
+
"name": "Symfony Community",
|
1001 |
+
"homepage": "https://symfony.com/contributors"
|
1002 |
+
}
|
1003 |
+
],
|
1004 |
+
"description": "Symfony polyfill for the Mbstring extension",
|
1005 |
+
"homepage": "https://symfony.com",
|
1006 |
+
"keywords": [
|
1007 |
+
"compatibility",
|
1008 |
+
"mbstring",
|
1009 |
+
"polyfill",
|
1010 |
+
"portable",
|
1011 |
+
"shim"
|
1012 |
+
],
|
1013 |
+
"support": {
|
1014 |
+
"source": "https://github.com/symfony/polyfill-mbstring/tree/main"
|
1015 |
+
},
|
1016 |
+
"funding": [
|
1017 |
+
{
|
1018 |
+
"url": "https://symfony.com/sponsor",
|
1019 |
+
"type": "custom"
|
1020 |
+
},
|
1021 |
+
{
|
1022 |
+
"url": "https://github.com/fabpot",
|
1023 |
+
"type": "github"
|
1024 |
+
},
|
1025 |
+
{
|
1026 |
+
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
|
1027 |
+
"type": "tidelift"
|
1028 |
+
}
|
1029 |
+
],
|
1030 |
+
"time": "2023-01-30T17:25:47+00:00"
|
1031 |
+
},
|
1032 |
+
{
|
1033 |
+
"name": "symfony/polyfill-php72",
|
1034 |
+
"version": "dev-main",
|
1035 |
+
"source": {
|
1036 |
+
"type": "git",
|
1037 |
+
"url": "https://github.com/symfony/polyfill-php72.git",
|
1038 |
+
"reference": "70f4aebd92afca2f865444d30a4d2151c13c3179"
|
1039 |
+
},
|
1040 |
+
"dist": {
|
1041 |
+
"type": "zip",
|
1042 |
+
"url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/70f4aebd92afca2f865444d30a4d2151c13c3179",
|
1043 |
+
"reference": "70f4aebd92afca2f865444d30a4d2151c13c3179",
|
1044 |
+
"shasum": ""
|
1045 |
+
},
|
1046 |
+
"require": {
|
1047 |
+
"php": ">=7.1"
|
1048 |
+
},
|
1049 |
+
"default-branch": true,
|
1050 |
+
"type": "library",
|
1051 |
+
"extra": {
|
1052 |
+
"branch-alias": {
|
1053 |
+
"dev-main": "1.28-dev"
|
1054 |
+
},
|
1055 |
+
"thanks": {
|
1056 |
+
"name": "symfony/polyfill",
|
1057 |
+
"url": "https://github.com/symfony/polyfill"
|
1058 |
+
}
|
1059 |
+
},
|
1060 |
+
"autoload": {
|
1061 |
+
"files": [
|
1062 |
+
"bootstrap.php"
|
1063 |
+
],
|
1064 |
+
"psr-4": {
|
1065 |
+
"Symfony\\Polyfill\\Php72\\": ""
|
1066 |
+
}
|
1067 |
+
},
|
1068 |
+
"notification-url": "https://packagist.org/downloads/",
|
1069 |
+
"license": [
|
1070 |
+
"MIT"
|
1071 |
+
],
|
1072 |
+
"authors": [
|
1073 |
+
{
|
1074 |
+
"name": "Nicolas Grekas",
|
1075 |
+
"email": "p@tchwork.com"
|
1076 |
+
},
|
1077 |
+
{
|
1078 |
+
"name": "Symfony Community",
|
1079 |
+
"homepage": "https://symfony.com/contributors"
|
1080 |
+
}
|
1081 |
+
],
|
1082 |
+
"description": "Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions",
|
1083 |
+
"homepage": "https://symfony.com",
|
1084 |
+
"keywords": [
|
1085 |
+
"compatibility",
|
1086 |
+
"polyfill",
|
1087 |
+
"portable",
|
1088 |
+
"shim"
|
1089 |
+
],
|
1090 |
+
"support": {
|
1091 |
+
"source": "https://github.com/symfony/polyfill-php72/tree/main"
|
1092 |
+
},
|
1093 |
+
"funding": [
|
1094 |
+
{
|
1095 |
+
"url": "https://symfony.com/sponsor",
|
1096 |
+
"type": "custom"
|
1097 |
+
},
|
1098 |
+
{
|
1099 |
+
"url": "https://github.com/fabpot",
|
1100 |
+
"type": "github"
|
1101 |
+
},
|
1102 |
+
{
|
1103 |
+
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
|
1104 |
+
"type": "tidelift"
|
1105 |
+
}
|
1106 |
+
],
|
1107 |
+
"time": "2023-01-26T09:26:14+00:00"
|
1108 |
+
},
|
1109 |
+
{
|
1110 |
+
"name": "symfony/polyfill-php73",
|
1111 |
+
"version": "dev-main",
|
1112 |
+
"source": {
|
1113 |
+
"type": "git",
|
1114 |
+
"url": "https://github.com/symfony/polyfill-php73.git",
|
1115 |
+
"reference": "fe2f306d1d9d346a7fee353d0d5012e401e984b5"
|
1116 |
+
},
|
1117 |
+
"dist": {
|
1118 |
+
"type": "zip",
|
1119 |
+
"url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/fe2f306d1d9d346a7fee353d0d5012e401e984b5",
|
1120 |
+
"reference": "fe2f306d1d9d346a7fee353d0d5012e401e984b5",
|
1121 |
+
"shasum": ""
|
1122 |
+
},
|
1123 |
+
"require": {
|
1124 |
+
"php": ">=7.1"
|
1125 |
+
},
|
1126 |
+
"default-branch": true,
|
1127 |
+
"type": "library",
|
1128 |
+
"extra": {
|
1129 |
+
"branch-alias": {
|
1130 |
+
"dev-main": "1.28-dev"
|
1131 |
+
},
|
1132 |
+
"thanks": {
|
1133 |
+
"name": "symfony/polyfill",
|
1134 |
+
"url": "https://github.com/symfony/polyfill"
|
1135 |
+
}
|
1136 |
+
},
|
1137 |
+
"autoload": {
|
1138 |
+
"files": [
|
1139 |
+
"bootstrap.php"
|
1140 |
+
],
|
1141 |
+
"psr-4": {
|
1142 |
+
"Symfony\\Polyfill\\Php73\\": ""
|
1143 |
+
},
|
1144 |
+
"classmap": [
|
1145 |
+
"Resources/stubs"
|
1146 |
+
]
|
1147 |
+
},
|
1148 |
+
"notification-url": "https://packagist.org/downloads/",
|
1149 |
+
"license": [
|
1150 |
+
"MIT"
|
1151 |
+
],
|
1152 |
+
"authors": [
|
1153 |
+
{
|
1154 |
+
"name": "Nicolas Grekas",
|
1155 |
+
"email": "p@tchwork.com"
|
1156 |
+
},
|
1157 |
+
{
|
1158 |
+
"name": "Symfony Community",
|
1159 |
+
"homepage": "https://symfony.com/contributors"
|
1160 |
+
}
|
1161 |
+
],
|
1162 |
+
"description": "Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions",
|
1163 |
+
"homepage": "https://symfony.com",
|
1164 |
+
"keywords": [
|
1165 |
+
"compatibility",
|
1166 |
+
"polyfill",
|
1167 |
+
"portable",
|
1168 |
+
"shim"
|
1169 |
+
],
|
1170 |
+
"support": {
|
1171 |
+
"source": "https://github.com/symfony/polyfill-php73/tree/main"
|
1172 |
+
},
|
1173 |
+
"funding": [
|
1174 |
+
{
|
1175 |
+
"url": "https://symfony.com/sponsor",
|
1176 |
+
"type": "custom"
|
1177 |
+
},
|
1178 |
+
{
|
1179 |
+
"url": "https://github.com/fabpot",
|
1180 |
+
"type": "github"
|
1181 |
+
},
|
1182 |
+
{
|
1183 |
+
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
|
1184 |
+
"type": "tidelift"
|
1185 |
+
}
|
1186 |
+
],
|
1187 |
+
"time": "2023-01-26T09:26:14+00:00"
|
1188 |
+
},
|
1189 |
+
{
|
1190 |
+
"name": "symfony/polyfill-php80",
|
1191 |
+
"version": "dev-main",
|
1192 |
+
"source": {
|
1193 |
+
"type": "git",
|
1194 |
+
"url": "https://github.com/symfony/polyfill-php80.git",
|
1195 |
+
"reference": "6caa57379c4aec19c0a12a38b59b26487dcfe4b5"
|
1196 |
+
},
|
1197 |
+
"dist": {
|
1198 |
+
"type": "zip",
|
1199 |
+
"url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/6caa57379c4aec19c0a12a38b59b26487dcfe4b5",
|
1200 |
+
"reference": "6caa57379c4aec19c0a12a38b59b26487dcfe4b5",
|
1201 |
+
"shasum": ""
|
1202 |
+
},
|
1203 |
+
"require": {
|
1204 |
+
"php": ">=7.1"
|
1205 |
+
},
|
1206 |
+
"default-branch": true,
|
1207 |
+
"type": "library",
|
1208 |
+
"extra": {
|
1209 |
+
"branch-alias": {
|
1210 |
+
"dev-main": "1.28-dev"
|
1211 |
+
},
|
1212 |
+
"thanks": {
|
1213 |
+
"name": "symfony/polyfill",
|
1214 |
+
"url": "https://github.com/symfony/polyfill"
|
1215 |
+
}
|
1216 |
+
},
|
1217 |
+
"autoload": {
|
1218 |
+
"files": [
|
1219 |
+
"bootstrap.php"
|
1220 |
+
],
|
1221 |
+
"psr-4": {
|
1222 |
+
"Symfony\\Polyfill\\Php80\\": ""
|
1223 |
+
},
|
1224 |
+
"classmap": [
|
1225 |
+
"Resources/stubs"
|
1226 |
+
]
|
1227 |
+
},
|
1228 |
+
"notification-url": "https://packagist.org/downloads/",
|
1229 |
+
"license": [
|
1230 |
+
"MIT"
|
1231 |
+
],
|
1232 |
+
"authors": [
|
1233 |
+
{
|
1234 |
+
"name": "Ion Bazan",
|
1235 |
+
"email": "ion.bazan@gmail.com"
|
1236 |
+
},
|
1237 |
+
{
|
1238 |
+
"name": "Nicolas Grekas",
|
1239 |
+
"email": "p@tchwork.com"
|
1240 |
+
},
|
1241 |
+
{
|
1242 |
+
"name": "Symfony Community",
|
1243 |
+
"homepage": "https://symfony.com/contributors"
|
1244 |
+
}
|
1245 |
+
],
|
1246 |
+
"description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions",
|
1247 |
+
"homepage": "https://symfony.com",
|
1248 |
+
"keywords": [
|
1249 |
+
"compatibility",
|
1250 |
+
"polyfill",
|
1251 |
+
"portable",
|
1252 |
+
"shim"
|
1253 |
+
],
|
1254 |
+
"support": {
|
1255 |
+
"source": "https://github.com/symfony/polyfill-php80/tree/main"
|
1256 |
+
},
|
1257 |
+
"funding": [
|
1258 |
+
{
|
1259 |
+
"url": "https://symfony.com/sponsor",
|
1260 |
+
"type": "custom"
|
1261 |
+
},
|
1262 |
+
{
|
1263 |
+
"url": "https://github.com/fabpot",
|
1264 |
+
"type": "github"
|
1265 |
+
},
|
1266 |
+
{
|
1267 |
+
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
|
1268 |
+
"type": "tidelift"
|
1269 |
+
}
|
1270 |
+
],
|
1271 |
+
"time": "2023-01-26T09:26:14+00:00"
|
1272 |
+
},
|
1273 |
+
{
|
1274 |
+
"name": "symfony/service-contracts",
|
1275 |
+
"version": "2.5.x-dev",
|
1276 |
+
"source": {
|
1277 |
+
"type": "git",
|
1278 |
+
"url": "https://github.com/symfony/service-contracts.git",
|
1279 |
+
"reference": "1a3d2ddc2c06df23e8c13ea99148bae2b8cebd35"
|
1280 |
+
},
|
1281 |
+
"dist": {
|
1282 |
+
"type": "zip",
|
1283 |
+
"url": "https://api.github.com/repos/symfony/service-contracts/zipball/1a3d2ddc2c06df23e8c13ea99148bae2b8cebd35",
|
1284 |
+
"reference": "1a3d2ddc2c06df23e8c13ea99148bae2b8cebd35",
|
1285 |
+
"shasum": ""
|
1286 |
+
},
|
1287 |
+
"require": {
|
1288 |
+
"php": ">=7.2.5",
|
1289 |
+
"psr/container": "^1.1",
|
1290 |
+
"symfony/deprecation-contracts": "^2.1|^3"
|
1291 |
+
},
|
1292 |
+
"conflict": {
|
1293 |
+
"ext-psr": "<1.1|>=2"
|
1294 |
+
},
|
1295 |
+
"suggest": {
|
1296 |
+
"symfony/service-implementation": ""
|
1297 |
+
},
|
1298 |
+
"type": "library",
|
1299 |
+
"extra": {
|
1300 |
+
"branch-alias": {
|
1301 |
+
"dev-main": "2.5-dev"
|
1302 |
+
},
|
1303 |
+
"thanks": {
|
1304 |
+
"name": "symfony/contracts",
|
1305 |
+
"url": "https://github.com/symfony/contracts"
|
1306 |
+
}
|
1307 |
+
},
|
1308 |
+
"autoload": {
|
1309 |
+
"psr-4": {
|
1310 |
+
"Symfony\\Contracts\\Service\\": ""
|
1311 |
+
}
|
1312 |
+
},
|
1313 |
+
"notification-url": "https://packagist.org/downloads/",
|
1314 |
+
"license": [
|
1315 |
+
"MIT"
|
1316 |
+
],
|
1317 |
+
"authors": [
|
1318 |
+
{
|
1319 |
+
"name": "Nicolas Grekas",
|
1320 |
+
"email": "p@tchwork.com"
|
1321 |
+
},
|
1322 |
+
{
|
1323 |
+
"name": "Symfony Community",
|
1324 |
+
"homepage": "https://symfony.com/contributors"
|
1325 |
+
}
|
1326 |
+
],
|
1327 |
+
"description": "Generic abstractions related to writing services",
|
1328 |
+
"homepage": "https://symfony.com",
|
1329 |
+
"keywords": [
|
1330 |
+
"abstractions",
|
1331 |
+
"contracts",
|
1332 |
+
"decoupling",
|
1333 |
+
"interfaces",
|
1334 |
+
"interoperability",
|
1335 |
+
"standards"
|
1336 |
+
],
|
1337 |
+
"support": {
|
1338 |
+
"source": "https://github.com/symfony/service-contracts/tree/2.5"
|
1339 |
+
},
|
1340 |
+
"funding": [
|
1341 |
+
{
|
1342 |
+
"url": "https://symfony.com/sponsor",
|
1343 |
+
"type": "custom"
|
1344 |
+
},
|
1345 |
+
{
|
1346 |
+
"url": "https://github.com/fabpot",
|
1347 |
+
"type": "github"
|
1348 |
+
},
|
1349 |
+
{
|
1350 |
+
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
|
1351 |
+
"type": "tidelift"
|
1352 |
+
}
|
1353 |
+
],
|
1354 |
+
"time": "2023-02-21T11:06:24+00:00"
|
1355 |
+
}
|
1356 |
+
],
|
1357 |
+
"packages-dev": [],
|
1358 |
+
"aliases": [],
|
1359 |
+
"minimum-stability": "dev",
|
1360 |
+
"stability-flags": [],
|
1361 |
+
"prefer-stable": false,
|
1362 |
+
"prefer-lowest": false,
|
1363 |
+
"platform": [],
|
1364 |
+
"platform-dev": [],
|
1365 |
+
"plugin-api-version": "2.3.0"
|
1366 |
+
}
|
tools/wikisource/run-wiki.php
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
use Goutte\Client;
|
4 |
+
use Symfony\Component\DomCrawler\Crawler;
|
5 |
+
|
6 |
+
require 'vendor/autoload.php';
|
7 |
+
$mainURL = 'https://wikisource.org/wiki/Category:Latvian';
|
8 |
+
$baseURL = 'https://wikisource.org';
|
9 |
+
|
10 |
+
$urls = [];
|
11 |
+
|
12 |
+
$httpClient = new Client();
|
13 |
+
$response = $httpClient->request('GET', $mainURL);
|
14 |
+
|
15 |
+
$dirname = 'wiki';
|
16 |
+
if (!mkdir($dirname) && !is_dir($dirname)) {
|
17 |
+
throw new \RuntimeException(sprintf('Directory "%s" was not created', $dirname));
|
18 |
+
}
|
19 |
+
|
20 |
+
$response->filter('#mw-pages ul li a')->each(function ($node) use (&$urls, $baseURL) {
|
21 |
+
$urls[] = $baseURL . $node->attr('href');
|
22 |
+
});
|
23 |
+
|
24 |
+
foreach ($urls as $url) {
|
25 |
+
echo('Downloading: ' . $url . PHP_EOL);
|
26 |
+
|
27 |
+
// wait a bit, to be nice to the server
|
28 |
+
sleep(1);
|
29 |
+
|
30 |
+
// load page
|
31 |
+
$response = $httpClient->request('GET', $url);
|
32 |
+
|
33 |
+
// set filename as page title
|
34 |
+
$filename = $response->filter('#firstHeading .mw-page-title-main')->text() . '.txt';
|
35 |
+
$filename = str_replace('/', '_', $filename);
|
36 |
+
|
37 |
+
// navigate to the main content part
|
38 |
+
$contentResponse = $response->filter('.mw-parser-output');
|
39 |
+
|
40 |
+
// remove header with navigation
|
41 |
+
$contentResponse->filter('#headertemplate')->each(function (Crawler $crawler) {
|
42 |
+
foreach ($crawler as $node) {
|
43 |
+
$node->parentNode->removeChild($node);
|
44 |
+
}
|
45 |
+
});
|
46 |
+
|
47 |
+
// remove unexpected tags from content
|
48 |
+
$contentResponse->filter(
|
49 |
+
'dl, table, pre, style, #template-documentation, .ts-doc-footer, .mw-editsection, .toc'
|
50 |
+
)->each(function (Crawler $crawler) {
|
51 |
+
foreach ($crawler as $node) {
|
52 |
+
$node->parentNode->removeChild($node);
|
53 |
+
}
|
54 |
+
});
|
55 |
+
|
56 |
+
// remove external sites header
|
57 |
+
$contentResponse->filter('h2')->last()->each(function (Crawler $crawler) {
|
58 |
+
foreach ($crawler as $node) {
|
59 |
+
$node->parentNode->removeChild($node);
|
60 |
+
}
|
61 |
+
});
|
62 |
+
|
63 |
+
// remove external sites links
|
64 |
+
$contentResponse->filter('ul')->last()->each(function (Crawler $crawler) {
|
65 |
+
foreach ($crawler as $node) {
|
66 |
+
$node->parentNode->removeChild($node);
|
67 |
+
}
|
68 |
+
});
|
69 |
+
|
70 |
+
$fp = fopen($dirname . DIRECTORY_SEPARATOR . $filename,"wb");
|
71 |
+
fwrite($fp, $contentResponse->text('', false));
|
72 |
+
fclose($fp);
|
73 |
+
}
|
wikisource.txt.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2e837f3fb6444c69db78e4d0b9f742cec6bfdc01a75a92c9df04e1649d14360b
|
3 |
+
size 1182016
|