<commit_before># yle-dl-docker

This is dockerized yle-dl (See: https://github.com/aajanki/yle-dl)

## Executive summary

`yle-dl` is a script that allows you to download television and
radio programs from the Finnish broadcasting company (Yle)
websites such as Yle Areena and Elävä arkisto.

Normally the script has a lot of dependencies that you do not
want pollute your system. This docker container has them all,
and you can use yle-dl script without hassle.

## Usage

Just execute this one-liner:

```sh
docker run --rm -ti -v `pwd`:/out taskinen/yle-dl [YLE-URL-TO-DOWNLOAD]
```

Then you have the downloaded file in your current working directory.


## Building the container locally

It is also possible to build a container locally.
Download the Git repository containing the `Dockerfile`.
Then run the following command to build a new container.

```sh
docker build -t taskinen/yle-dl .
```

Running the locally built container:

```sh
docker run --rm -ti -v `pwd`:/out taskinen/yle-dl YLE_URL_TO_DOWNLOAD
```

Removing locally built containers:

```sh
docker image rm taskinen/yle-dl:latest
```
<commit_msg>Documentation for setting UID and GID for docker run<commit_after># yle-dl-docker

This is dockerized yle-dl (See: https://github.com/aajanki/yle-dl)

## Executive summary

`yle-dl` is a script that allows you to download television and
radio programs from the Finnish broadcasting company (Yle)
websites such as Yle Areena and Elävä arkisto.

Normally the script has a lot of dependencies that you do not
want pollute your system. This docker container has them all,
and you can use yle-dl script without hassle.

## Usage

Just execute this one-liner:

```sh
docker run --rm -ti -u=`id -u`:`id -g` -v `pwd`:/out taskinen/yle-dl [YLE-URL-TO-DOWNLOAD]
```

Then you have the downloaded file in your current working directory.


## Building the container locally

It is also possible to build a container locally.
Download the Git repository containing the `Dockerfile`.
Then run the following command to build a new container.

```sh
docker build -t taskinen/yle-dl .
```

Running the locally built container:

```sh
docker run --rm -ti -u=`id -u`:`id -g` -v `pwd`:/out taskinen/yle-dl YLE_URL_TO_DOWNLOAD
```

Removing locally built containers:

```sh
docker image rm taskinen/yle-dl:latest
```

{'fraction_non_alphanumeric': 0.09330453563714902, 'fraction_numerical': 0.0, 'mean_word_length': 4.112582781456954, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '275064', 'n_tokens_mistral': 757, 'n_tokens_neox': 701, 'n_words': 314}