<commit_before>---need to install virtualenv so you can access the proper virtual environment
$ sudo -H pip install virtualenv

---need to install autoenv so the virtual environment can auto load when we are done
$ pip install autoenv==1.0.0

---need to specify the folder that you want to access to use the proper virtual environment
$ source env/bin/activate

---Lastly need to enter the following to update your local bash so it auto loads the environment whenever you enter the project directory
$ echo "source `which activate.sh`" >> ~/.bashrc
$ source ~/.bashrc


---when you are ready to leave the env for our project, just type the following
$ deactivate


---below is a link for deployment options
http://flask.pocoo.org/docs/0.12/deploying/#deployment

******NOTE******
---if the auto load environment doesnt work, just enter
$ source env/bin/activate
$ export APP_SETTINGS="config.DevelopmentConfig"
$ export DATABASE_URL="postgresql://localhost/haiku"
---form the command line to load the proper environment

---flask setup
https://realpython.com/blog/python/flask-by-example-part-2-postgres-sqlalchemy-and-alembic/<commit_msg>add instructions to file for initial set up database<commit_after>---need to install virtualenv so you can access the proper virtual environment
$ sudo -H pip install virtualenv

---need to install autoenv so the virtual environment can auto load when we are done
$ pip install autoenv==1.0.0

---need to specify the folder that you want to access to use the proper virtual environment
$ source env/bin/activate

---Lastly need to enter the following to update your local bash so it auto loads the environment whenever you enter the project directory
$ echo "source `which activate.sh`" >> ~/.bashrc
$ source ~/.bashrc


---when you are ready to leave the env for our project, just type the following
$ deactivate


---below is a link for deployment options
http://flask.pocoo.org/docs/0.12/deploying/#deployment

******NOTE******
---if the auto load environment doesnt work, just enter
$ source env/bin/activate
$ export APP_SETTINGS="config.DevelopmentConfig"
$ export DATABASE_URL="postgresql://localhost/haiku"
---form the command line to load the proper environment

---flask setup
https://realpython.com/blog/python/flask-by-example-part-2-postgres-sqlalchemy-and-alembic/


---initial set up local database commands.  run on command line one at a time.
$ python manage.py db init
$ python manage.py db migrate
$ python manage.py db upgrade
{'fraction_non_alphanumeric': 0.09537223340040242, 'fraction_numerical': 0.005633802816901409, 'mean_word_length': 4.083844580777096, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '3010159', 'n_tokens_mistral': 699, 'n_tokens_neox': 662, 'n_words': 303}