<commit_before># Docker

You will need to change directory before executing the commands below with:

```sh
cd docker
```

See [the Docker Compose configurations for our tests databases locally and also used by GitHub Actions in CI](./docker-compose.yml).

## Using docker-compose for databases

This is only intended to be run in a development environment where ports 3306 / default for MySQL - 5432 / default for PostgreSQL and 4306 custom port - MariaDB are free and not used.

If they are already used make sure to change the ports like this

```yaml
ports:
  - '3307:3306 # only change the first number
```

## Usage

### Start

In detached/bacground mode using `-d` (recommended)

```
docker-compose up -d
# Or start only one service
docker-compose up -d mysql
# To see logs
docker-compose logs -f mysql
```

In attached mode, the logs will be streamed in the terminal:

```
docker-compose up
# Or start only one service
docker-compose up mysql
```<commit_msg>docs: fix typo in "background" [skip ci] (#9724)<commit_after># Docker

You will need to change directory before executing the commands below with:

```sh
cd docker
```

See [the Docker Compose configurations for our tests databases locally and also used by GitHub Actions in CI](./docker-compose.yml).

## Using docker-compose for databases

This is only intended to be run in a development environment where ports 3306 / default for MySQL - 5432 / default for PostgreSQL and 4306 custom port - MariaDB are free and not used.

If they are already used make sure to change the ports like this

```yaml
ports:
  - '3307:3306 # only change the first number
```

## Usage

### Start

In detached/background mode using `-d` (recommended)

```
docker-compose up -d
# Or start only one service
docker-compose up -d mysql
# To see logs
docker-compose logs -f mysql
```

In attached mode, the logs will be streamed in the terminal:

```
docker-compose up
# Or start only one service
docker-compose up mysql
```
{'fraction_non_alphanumeric': 0.08028455284552846, 'fraction_numerical': 0.022357723577235773, 'mean_word_length': 3.99746192893401, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '60333', 'n_tokens_mistral': 638, 'n_tokens_neox': 549, 'n_words': 285}