<commit_before># streakable

## What's this?

Streakable is the web service that helps you to keep tryin' like github streak.
You can record your contributions for your target,
and streakable visualizes your contributions.


## Development

1. Install [asdf][] and run `asdf install`
2. npm install --global yarn
3. Install posgresql
4. Create "postgres" role (password: "<PASSWORD>"):
   ```shell
   createuser -d -U your_name -P postgres`
   ```
5. Run below:

    ```shell
    mix deps.get
    mix ecto.create
    mix ecto.migrate
    yarn install
    mix phoenix.server
    ```

## Deploy on heroku

```shell
heroku apps:create streakable
heroku config:set SECRET_KEY_BASE=$(mix phoenix.gen.secret)
heroku buildpacks:set https://github.com/gjaldon/phoenix-static-buildpack
heroku buildpacks:add --index 1 https://github.com/HashNuke/heroku-buildpack-elixir
heroku addons:create heroku-postgresql:hobby-dev
heroku config:set POOL_SIZE=18<commit_msg>Add `pg_ctl start` command and improve REAMDE.md<commit_after># streakable

## What's this?

Streakable is the web service that helps you to keep tryin' like github streak.
You can record your contributions for your target,
and streakable visualizes your contributions.


## Development

1. Install [asdf][] and run `asdf install`
2. npm install --global yarn
3. Install posgresql
4. Create "postgres" role (password: "<PASSWORD>"):
   ```shell
   createuser -d -U your_name -P postgres`
   ```
5. Install dependencies
   ```shell
   mix deps.get
   yarn install
   ```
6. Start postgres if it doesn't run
   ```shell
   pg_ctl start
   ```
7. Setup database
   ```shell
   mix ecto.create
   mix ecto.migrate
   ```
8. Run below:
    ```shell
    mix phoenix.server
    ```

## Deploy on heroku

```shell
heroku apps:create streakable
heroku config:set SECRET_KEY_BASE=$(mix phoenix.gen.secret)
heroku buildpacks:set https://github.com/gjaldon/phoenix-static-buildpack
heroku buildpacks:add --index 1 https://github.com/HashNuke/heroku-buildpack-elixir
heroku addons:create heroku-postgresql:hobby-dev
heroku config:set POOL_SIZE=18
{'fraction_non_alphanumeric': 0.10503597122302158, 'fraction_numerical': 0.009112709832134292, 'mean_word_length': 4.014423076923077, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, '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': '1480360', 'n_tokens_mistral': 705, 'n_tokens_neox': 690, 'n_words': 221}