<commit_before><img src="https://github.com/atware/sharedocs/blob/master/src/main/webapp/assets/img/logowtnd.png?raw=true" alt="Sharedocs" height="100">

# Sharedocs

An internal knowledge sharing app.

[![Heroku Deploy](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy?template=https://github.com/atware/sharedocs/tree/master)

## System Requirements
- Scala 2.11 or 2.12
- PostgreSQL 9.5.x or 9.6.x

## Setup for Development Environment

### Setup PostgreSQL

Setup PostgreSQL server on your machine and create database.

    $ createuser -P sharedocs
    $ createdb -E UTF8 -T template0 --lc-collate=ja_JP.UTF-8 --lc-ctype=ja_JP.UTF-8 sharedocs

### Prepare Tables

#### mac/*nix

    ./sharedocs db:migrate

#### Windows

    ./sharedocs.bat db:migrate

### Set Environment Variables to sharedocsEnv script

#### mac/*nix

    cp sharedocsEnv-template sharedocsEnv

#### Windows<commit_msg>remove template parameter of heroku deploy button<commit_after><img src="https://github.com/atware/sharedocs/blob/master/src/main/webapp/assets/img/logowtnd.png?raw=true" alt="Sharedocs" height="100">

# Sharedocs

An internal knowledge sharing app.

[![Heroku Deploy](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy)

## System Requirements
- Scala 2.11 or 2.12
- PostgreSQL 9.5.x or 9.6.x

## Setup for Development Environment

### Setup PostgreSQL

Setup PostgreSQL server on your machine and create database.

    $ createuser -P sharedocs
    $ createdb -E UTF8 -T template0 --lc-collate=ja_JP.UTF-8 --lc-ctype=ja_JP.UTF-8 sharedocs

### Prepare Tables

#### mac/*nix

    ./sharedocs db:migrate

#### Windows

    ./sharedocs.bat db:migrate

### Set Environment Variables to sharedocsEnv script

#### mac/*nix

    cp sharedocsEnv-template sharedocsEnv

#### Windows
{'fraction_non_alphanumeric': 0.14009928295642582, 'fraction_numerical': 0.018753447324875896, 'mean_word_length': 4.038888888888889, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 7, 'lorem ipsum': 0, 'www.': 2, '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': '1132203', 'n_tokens_mistral': 665, 'n_tokens_neox': 597, 'n_words': 139}