<commit_before># OpenBR SDK
The goal of this project is to create a development environment to use & code with [OpenBR](openbiometrics.org) and [OpenCV](opencv.org)

# Install
First, you'll have to install [docker](https://docs.docker.com/installation/#installation).

Then, install [node.js](http://nodejs.org/) and do:

```bash
npm install -g docker-cmd
```

Now, you can clone this project, go inside it and do:

```bash
sudo docker-cm build anthony_o/openbr_sdk
```

# Use
Just before creating or using an OpenBR SDK container, execute this (thanks to [stackoverflow](http://stackoverflow.com/a/25280523/535203)):

```bash
xauth nlist :0 | sed -e 's/^..../ffff/' | sudo xauth -f /tmp/.docker.xauth nmerge -
```

To create a new OpenBR SDK container, do:

```bash
sudo docker-cm run openbr_sdk
```

If the container is already created but not running do:

```bash
sudo docker start openbr_sdk && sudo docker attach openbr_sdk
```

If the container is already created and running do:

```bash
sudo docker attach openbr_sdk
```
<commit_msg>Improve installation documentation<commit_after># OpenBR SDK
The goal of this project is to create a development environment to use & code with [OpenBR](openbiometrics.org) and [OpenCV](opencv.org)

# Install
First, you'll have to install [docker](https://docs.docker.com/installation/#installation).

Then, install [node.js](http://nodejs.org/).

At last, install [docker-cmd](https://github.com/iorga-group/docker-cmd#installation).

Now, you can clone this project, go inside it and build the OpenBR SDK docker image:

```bash
git clone https://github.com/anthony-o/openbr_sdk.git
cd openbr_sdk
sudo docker-cm build anthony_o/openbr_sdk
```

# Use
Just before creating or using an OpenBR SDK container, execute this (thanks to [stackoverflow](http://stackoverflow.com/a/25280523/535203)):

```bash
xauth nlist :0 | sed -e 's/^..../ffff/' | sudo xauth -f /tmp/.docker.xauth nmerge -
```

To create a new OpenBR SDK container, do:

```bash
sudo docker-cm run openbr_sdk
```

If the container is already created but not running do:

```bash
sudo docker start openbr_sdk && sudo docker attach openbr_sdk
```

If the container is already created and running do:

```bash
sudo docker attach openbr_sdk
```

With that container running, you'll have by default `/tmp` shared with the docker host in order to exchange some images for example.
{'fraction_non_alphanumeric': 0.11779554059739167, 'fraction_numerical': 0.012620950778291964, 'mean_word_length': 4.50462962962963, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '1904276', 'n_tokens_mistral': 824, 'n_tokens_neox': 725, 'n_words': 285}