<commit_before># Kikr

To start your Phoenix app:

  * Install dependencies with `mix deps.get`
  * Create and migrate your database with `mix ecto.create && mix ecto.migrate`
  * Install Node.js dependencies with `npm install`
  * Start Phoenix endpoint with `mix phoenix.server`

Now you can visit [`localhost:4000`](http://localhost:4000) from your browser.

Ready to run in production? Please [check our deployment guides](http://www.phoenixframework.org/docs/deployment).

## Learn more

  * Official website: http://www.phoenixframework.org/
  * Guides: http://phoenixframework.org/docs/overview
  * Docs: https://hexdocs.pm/phoenix
  * Mailing list: http://groups.google.com/group/phoenix-talk
  * Source: https://github.com/phoenixframework/phoenix

## Building Docker Images

```
# build docker image
$ docker build --tag sebhoss/kikr:latest .

# start postgres database
$ docker-compose up -d postgres

# build & start kikr app
$ docker-compose up [-d] kikr
# visit http://localhost:50123/
```

## Running Docker images

In order to run the latest release version using docker-compose, do the following:

1. Create a `docker-compose.yml` anywhere you want
2. Place the below example configuration into it and optionally adapt it to your needs
3. Call `docker-compose up -d` in the same directory

```
version: '3'
services:
  db-psql:
    image: postgres:latest
    environment:
      POSTGRES_DB: kikr_db
      POSTGRES_USER: psql_user
      POSTGRES_PASSWORD: psql_<PASSWORD>
    ports:
      - "5432:5432"
  kikr:
    build:
      context: .
      dockerfile: Dockerfile
    image: sebhoss/kikr:latest
    environment:
      PORT: 8080
      DB_NAME: kikr_db
      DB_USER: psql_user
      DB_PASS: <PASSWORD>
      DB_HOST: db-psql
    depends_on:
      - db-psql
    ports:
      - "50123:8080" 
```

Once started, open http://localhost:50123/ to view the app.
<commit_msg>remove build section<commit_after># Kikr

To start your Phoenix app:

  * Install dependencies with `mix deps.get`
  * Create and migrate your database with `mix ecto.create && mix ecto.migrate`
  * Install Node.js dependencies with `npm install`
  * Start Phoenix endpoint with `mix phoenix.server`

Now you can visit [`localhost:4000`](http://localhost:4000) from your browser.

Ready to run in production? Please [check our deployment guides](http://www.phoenixframework.org/docs/deployment).

## Learn more

  * Official website: http://www.phoenixframework.org/
  * Guides: http://phoenixframework.org/docs/overview
  * Docs: https://hexdocs.pm/phoenix
  * Mailing list: http://groups.google.com/group/phoenix-talk
  * Source: https://github.com/phoenixframework/phoenix

## Building Docker Images

```
# build docker image
$ docker build --tag sebhoss/kikr:latest .

# start postgres database
$ docker-compose up -d postgres

# build & start kikr app
$ docker-compose up [-d] kikr
# visit http://localhost:50123/
```

## Running Docker images

In order to run the latest release version using docker-compose, do the following:

1. Create a `docker-compose.yml` anywhere you want
2. Place the below example configuration into it and optionally adapt it to your needs
3. Call `docker-compose up -d` in the same directory

```
version: '3'
services:
  db-psql:
    image: postgres:latest
    environment:
      POSTGRES_DB: kikr_db
      POSTGRES_USER: psql_user
      POSTGRES_PASSWORD: psql_<PASSWORD>
    ports:
      - "5432:5432"
  kikr:
    image: sebhoss/kikr:latest
    environment:
      PORT: 8080
      DB_NAME: kikr_db
      DB_USER: psql_user
      DB_PASS: <PASSWORD>
      DB_HOST: db-psql
    depends_on:
      - db-psql
    ports:
      - "50123:8080" 
```

Once started, open http://localhost:50123/ to view the app.

## Try it online

* http://kikr-sebhoss.rhcloud.com/

{'fraction_non_alphanumeric': 0.10582010582010581, 'fraction_numerical': 0.02275132275132275, 'mean_word_length': 3.3710982658959536, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, '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': '2289945', 'n_tokens_mistral': 1325, 'n_tokens_neox': 1242, 'n_words': 372}