<commit_before># Testing the examples

The examples are used to test neptungen features. Unfortunately testing the sync features requires an FTP/SFTP server.

## FTP server setup

```bash
docker pull delfer/alpine-ftp-server
```

Start the ftp server as a docker container. User name is `neptun` and password `<PASSWORD>`, too.

```bash
docker run --rm -d --network=host --name ftp -e USERS="neptun|neptun" delfer/alpine-ftp-server
```

> Remark: With this kind of docker execution no data will remain after the container was stopped.

> Hint: Here the ftp server is only intended to run on the localhost. If you leave the `--network=host` option you will not be able to access the ftp server as expected. More info about the docker container and its options can be found [here](https://github.com/delfer/docker-alpine-ftp-server)

The FTP server can be stopped with the following docker command

```bash
docker container kill ftp
```
<commit_msg>describe how to test sftp on windows<commit_after># Testing the examples

The examples are used to test neptungen features. Unfortunately testing the sync features requires an FTP/SFTP server.

## FTP server setup

```bash
docker pull delfer/alpine-ftp-server
```

Start the ftp server as a docker container. User name is `neptun` and password `<PASSWORD>`, too.

```bash
docker run --rm -d --network=host --name ftp -e USERS="neptun|neptun" delfer/alpine-ftp-server
```

> Remark: With this kind of docker execution no data will remain after the container was stopped.

> Hint: Here the ftp server is only intended to run on the localhost. If you leave the `--network=host` option you will not be able to access the ftp server as expected. More info about the docker container and its options can be found [here](https://github.com/delfer/docker-alpine-ftp-server)

The FTP server can be stopped with the following docker command

```bash
docker container kill ftp
```

## SFTP server setup (Windows)

Create folder `sftp_tmp` in root folder of your windows user.

Now SFTP server can be started with docker on the localhost:

```ps1
docker.exe run --rm -v /c/Users/youruser/sftp_tmp:/home/neptun/upload -p 2222:22 -d atmoz/sftp neptun:neptun
```

Make sure to adapt the `config.toml` in `examples/simple_blog`

```toml
  [sync_settings]
  ftp_server = "127.0.0.1"
  ftp_protocol = "Sftp"
  ftp_target_dir = "/upload"
  ftp_port = 2222
  ftp_user = "neptun"
```

{'fraction_non_alphanumeric': 0.09211618257261411, 'fraction_numerical': 0.007053941908713693, 'mean_word_length': 4.17381974248927, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '464489', 'n_tokens_mistral': 811, 'n_tokens_neox': 732, 'n_words': 324}