<commit_before># Review

[![Code Climate](https://codeclimate.com/github/netguru/review.png)](https://codeclimate.com/github/netguru/review)

![Circle CI](https://circleci.com/gh/netguru/review/tree/master.png?circle-token=<KEY>)

## Initial setup
Pull the repository from github:
`git clone git@github.com:netguru/review.git`

Install required gems:
`bundle install`

## Database
Make sure you have postgress installed and running on your machine.
Copy the sample database.yml to your main folder by:
`cp database.yml.sample database.yml`

Edit the user name in the copied file to adjust it to your database setup.
Setup the database by:
`rake db:setup`
Then migrate your db schema from rails:
`rake db:migrate`

## Setting up secrets
Copy the secret sample file to your config directory:
`config/secrets.yml.sample config/secrets.yml`
Generate a secret token:
`rake secret`
Paste it in the secrets file for the development enviroment and do the
same for the test enviroment with a different key.

## Troubleshooting
Should you have problems with installing `therubyracer` gem
try running the following:
`gem install libv8 -v 3.16.14.3  -- --with-system-v8`
`gem install therubyracer`

## Deploying app on Heroku<commit_msg>fixed styling [a7ab9bc122c635da26fade28e020ac74ab2724c3]<commit_after># Review

[![Code Climate](https://codeclimate.com/github/netguru/review.png)](https://codeclimate.com/github/netguru/review)

![Circle CI](https://circleci.com/gh/netguru/review/tree/master.png?circle-token=f05c3dd432a61a6c0fe4fc4b20d5f7b6468868c9)

## Initial setup
Pull the repository from github:
`git clone <EMAIL>:netguru/review.git`

Install required gems:
```bundle install```

## Database
Make sure you have postgress installed and running on your machine.
Copy the sample database.yml to your main folder by:
```cp database.yml.sample database.yml```

Edit the user name in the copied file to adjust it to your database setup.
Setup the database by:
```rake db:setup```
Then migrate your db schema from rails:
```rake db:migrate```

## Setting up secrets
Copy the secret sample file to your config directory:
```config/secrets.yml.sample config/secrets.yml```
Generate a secret token:
```rake secret```
Paste it in the secrets file for the development enviroment and do the
same for the test enviroment with a different key.

## Troubleshooting
Should you have problems with installing `therubyracer` gem
try running the following:
```gem install libv8 -v 3.16.14.3  -- --with-system-v8
gem install therubyracer```

## Deploying app on Heroku
{'fraction_non_alphanumeric': 0.1005104043973302, 'fraction_numerical': 0.024342363564978407, 'mean_word_length': 5.154589371980676, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 3, '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': '1385452', 'n_tokens_mistral': 854, 'n_tokens_neox': 783, 'n_words': 287}