<commit_before># KrateLabs REST Server

## Install

**Download** the latest GitHub repository.

```bash
$ git clone <EMAIL>:KrateLabs/KrateLabs-REST.git
$ cd KrateLabs-REST
$ npm start
```

Using Docker

```bash
$ docker run --rm -it -e "PORT=5000" -e "SECRET=default" -p 5000:5000 kratelabs
```

Open your favorite browser to `http://localhost`<commit_msg>Add docs for background process<commit_after># KrateLabs REST Server

## Install

**Download** the latest GitHub repository.

```bash
$ git clone <EMAIL>:KrateLabs/KrateLabs-REST.git
$ cd KrateLabs-REST
$ npm start
```

Run as background process

```bash
$ nohup npm start &
$ disown
$ exit
```

Using Docker

```bash
$ docker run --rm -it -e "PORT=5000" -e "SECRET=default" -p 5000:5000 kratelabs
```

Open your favorite browser to `http://localhost`
{'fraction_non_alphanumeric': 0.14108910891089108, 'fraction_numerical': 0.0297029702970297, 'mean_word_length': 4.466216216216216, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6731154', 'n_tokens_mistral': 331, 'n_tokens_neox': 279, 'n_words': 89}