<commit_before># Developing Labsome

Labsome is built with several Docker containers:

* `labsome/base-image` is a Debian container with some additional packages, mainly Python.
* `labsome/frontend-builder` is a Nodejs based container with `bower`, `gulp` and some gulp modules. This container builds the frontend.
* `labsome/labsome` is the container we get after a successful build.

When `labsome/labsome` is built it's assumed that the frontend is already compiled. In fact, no frontend files are copied into the container.

Therefore, if you want to develop Labsome you'll have to:

First clone the git repo

    git clone https://github.com/labsome/labsome.git

Then run the `labsome/frontend-builder` image so that it builds and monitors the frontend files for changes:

    docker run -ti --rm -v `pwd`:/build labsome/frontend-builder:v3 /bin/sh -c "cd /build/src/labsome/frontend && bower install --allow-root && gulp"
    
Finally, in another terminal, run the `labsome/labsome` container while mapping the sources into `/opt/labsome`. Remember that we still need a running RethinkDB instance as shown in the quick start:

    # cd into the clonsed repo
    docker run -ti -v `pwd`:/opt/labsome -p 80:80 --link rethinkdb

You can now access `http://localhost` while developing Labsome.

## Some Notes

* These instructions work well on both Linux and Mac.
* You might have to adapt permissions/ports to your specific environment.<commit_msg>Fix in developers document<commit_after># Developing Labsome

Labsome is built with several Docker containers:

* `labsome/base-image` is a Debian container with some additional packages, mainly Python.
* `labsome/frontend-builder` is a Nodejs based container with `bower`, `gulp` and some gulp modules. This container builds the frontend.
* `labsome/labsome` is the container we get after a successful build.

When `labsome/labsome` is built it's assumed that the frontend is already compiled. In fact, no frontend files are copied into the container.

Therefore, if you want to develop Labsome you'll have to:

First clone the git repo

    git clone https://github.com/labsome/labsome.git

Then run the `labsome/frontend-builder` image so that it builds and monitors the frontend files for changes:

    docker run -ti --rm -v `pwd`:/build labsome/frontend-builder:v3 /bin/sh -c "cd /build/src/labsome/frontend && bower install --allow-root && gulp"
    
Finally, in another terminal, run the `labsome/labsome` container while mapping the sources into `/opt/labsome`. Remember that we still need a running RethinkDB instance as shown in the quick start:

    # cd into the clonsed repo
    docker run -ti -v `pwd`:/opt/labsome -p 80:80 --link rethinkdb labsome/labsome

You can now access `http://localhost` while developing Labsome.

## Some Notes

* These instructions work well on both Linux and Mac.
* You might have to adapt permissions/ports to your specific environment.
{'fraction_non_alphanumeric': 0.07813033094506994, 'fraction_numerical': 0.0034118048447628795, 'mean_word_length': 4.055172413793104, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5351202', 'n_tokens_mistral': 884, 'n_tokens_neox': 840, 'n_words': 387}