<commit_before>intern_map_app
==============

This is the main app of the intern map project.  It's a Flask-based
simple web app to distribute the main code of this project to
authorized sources.

You need to instantiate this with the intern group number, a Bing maps
API key, and with a data file from the screen scraping portion of this
project (intern_map repository).<commit_msg>Improve main setup documentation, document running locally<commit_after>intern_map_app
==============

This is the main app of the intern map project.  It's a Flask-based
simple web app to distribute the main code of this project to
authorized sources.

To set this up yourself (e.g. on Heroku) you need:
- The intern group number (or some other group number)
- A Facebook app ID (which you need to get yourself)
- A Bing maps API key
- A location data file (e.g. from using the code in the intern_map
  repository)

Running locally
---------------

For easier development, intern_map_app can also be run as a WSGI app
in a local webserver.  To do this, you want to point your webserver at
the wsgi file included in directory wsgi.  That directory also
contains a sample Apache configuration that can be used (assuming web
root /var/www, and a symlink /var/www/intern_map_app -> app
directory).  Note that you may also need another Facebook app ID
(because the domain of your locally-running project should be
"localhost", not wherever your production app is hosted).
{'fraction_non_alphanumeric': 0.0703448275862069, 'fraction_numerical': 0.0, 'mean_word_length': 4.109154929577465, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, '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': '2668271', 'n_tokens_mistral': 382, 'n_tokens_neox': 369, 'n_words': 222}