<commit_before>## IWS Feature Requests [![Build Status](https://travis-ci.org/adwylie/iws-feature-requests.svg?branch=master)](https://travis-ci.org/adwylie/iws-feature-requests) [![Deploy Status](https://heroku-badge.herokuapp.com/?app=adwylie-iws-feature-requests&style=flat&svg=1)](https://adwylie-iws-feature-requests.herokuapp.com/)

Toy project using Flask/SqlAlchemy/Knockout to implement feature requests. Written as part of the application process for a mid-level software engineering position, and also kind of for fun..

Unfortunately it's quite rare I complete a personal project from start to finish, so we'll see how this ends up. Some background info for those that find this interesting and want to have a similar setup:
* [Free Continuous Deployment (<NAME>)](https://simonwillison.net/2017/Oct/17/free-continuous-deployment/)

### Running Development Locally

1. Clone the repository: `git clone <EMAIL>@github.com:adwylie/iws-feature-requests.git`.
2. Create a virtual environment (python 3.6) in the project directory and activate it:
    ```
    cd iws-feature-requests
    virtualenv --python=python3 env
    source env/bin/activate
    ```
3. Install required libraries: `pip install -r requirements.txt`.
4. Set up the database (sqlite): `python manage.py setup`.
5. Run the development server: `python manage.py runserver`.

Tests can also be run using the command `python manage.py test`.

### Running Production Locally via Heroku

The project is set up to be automatically deployed to Heroku after unit tests pass (on travis). Perhaps for troubleshooting you (well, me actually) can run the project locally using the production database (postgresql). !danger!

1. After the first three steps above we need to log into heroku and set an environment variable.
    ```
    heroku auth:login
    DATABASE_URL=`heroku config:get DATABASE_URL -a adwylie-iws-feature-requests`
    ```
2. Then we can continue on to run the server using production db: `heroku local web`.<commit_msg>Updated readme file, accidentally a word.<commit_after>## IWS Feature Requests [![Build Status](https://travis-ci.org/adwylie/iws-feature-requests.svg?branch=master)](https://travis-ci.org/adwylie/iws-feature-requests) [![Deploy Status](https://heroku-badge.herokuapp.com/?app=adwylie-iws-feature-requests&style=flat&svg=1)](https://adwylie-iws-feature-requests.herokuapp.com/)

Toy project using Flask/SqlAlchemy/Knockout to implement feature requests. Written as part of the application process for a mid-level software engineering position, and also kind of for fun..

Unfortunately it's quite rare I complete a personal project from start to finish, so we'll see how this ends up. Some background info for those that find this interesting and want to have a similar setup:
* [Free Continuous Deployment (<NAME>)](https://simonwillison.net/2017/Oct/17/free-continuous-deployment/)

### Running Development Locally

1. Clone the repository: `git clone <EMAIL>:adwylie/iws-feature-requests.git`.
2. Create a virtual environment (python 3.6) in the project directory and activate it:
    ```
    cd iws-feature-requests
    virtualenv --python=python3 env
    source env/bin/activate
    ```
3. Install required libraries: `pip install -r requirements.txt`.
4. Set up the database (sqlite): `python manage.py setup`.
5. Run the development server: `python manage.py runserver`.

Tests can also be run using the command `python manage.py test`.

### Running Production Locally via Heroku

The project is set up to be automatically deployed to Heroku after unit tests pass (on travis). Perhaps for troubleshooting you (well, me actually) can run the project locally using the production database (postgresql).

1. After the first three steps above we need to log into heroku and set an environment variable.
    ```
    heroku auth:login
    DATABASE_URL=`heroku config:get DATABASE_URL -a adwylie-iws-feature-requests`
    ```
2. Then we can continue on to run the server using production db: `heroku local web`.
{'fraction_non_alphanumeric': 0.09765819631290483, 'fraction_numerical': 0.008470353761833582, 'mean_word_length': 4.522696011004126, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 10, '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': '1283294', 'n_tokens_mistral': 1174, 'n_tokens_neox': 1131, 'n_words': 449}