<commit_before>Rencon
======================
## **NOTICE:** It can running with your environment. :)
Rental Container with prepared CMS.
It is provided by Docker, Ruby, Sinatra, [swipely/docker-api](https://github.com/swipely/docker-api).

Installation
------
### Requirement
+ Docker
+ Ruby 2.3+
+ Sinatra
+ swipely/docker-api

### Enable Docker Remote API
If you only installed Docker, you can't use Rencon.

You must enable Docker Remote API and it can access to Docker from RESTful API.

#### Ubuntu 16.04 LTS
    sudo vi /lib/systemd/system/docker.service
and you modify the line:

    ExecStart=/usr/bin/dockerd -H fd:// -H tcp://0.0.0.0:4243
and you run:

    systemctl daemon-reload
    sudo service docker restart
and you can test:

    curl http://localhost:4243/version


Using Rencon
-------------
### Run
**IMPORTANT:** You must modify `app.rb` if your Docker API endpoint is not `http://localhost:4243/`.


First, you need `bundle install`, and `app.rb` is Rencon Application.

You can run with `ruby app.rb` and getting started.
<commit_msg>Fixed: README for dotenv<commit_after>Rencon
======================
## **NOTICE:** It can running with your environment. :)
Rental Container with prepared CMS.
It is provided by Docker, Ruby, Sinatra, [swipely/docker-api](https://github.com/swipely/docker-api).

Installation
------
### Requirement
+ Docker
+ Ruby 2.3+
+ Sinatra
+ swipely/docker-api

### Enable Docker Remote API
If you only installed Docker, you can't use Rencon.

You must enable Docker Remote API and it can access to Docker from RESTful API.

#### Ubuntu 16.04 LTS
    sudo vi /lib/systemd/system/docker.service
and you modify the line:

    ExecStart=/usr/bin/dockerd -H fd:// -H tcp://0.0.0.0:4243
and you run:

    systemctl daemon-reload
    sudo service docker restart
and you can test:

    curl http://localhost:4243/version


Using Rencon
-------------
### Run
**IMPORTANT:** You must modify `.env` if your Docker API endpoint is not `http://localhost:4243/`.


First, you need `bundle install`, and `app.rb` is Rencon Application.

You can run with `ruby app.rb` and getting started.

{'fraction_non_alphanumeric': 0.14757190004714757, 'fraction_numerical': 0.020744931636020744, 'mean_word_length': 3.5148936170212766, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '2573255', 'n_tokens_mistral': 720, 'n_tokens_neox': 637, 'n_words': 247}