<commit_before>Mobility App Framework
======================

This is a barebones framework that you can use to build your own web
application on top of the Cisco Mobility Services Engine (MSE) platform.


Requirements
------------

* Python v2.7.8 (https://www.python.org/download/releases/2.7.8)

* Pip (http://pip.readthedocs.org/en/latest/installing.html)


Installation
------------

1. Get this project:

   * via git: git clone https://github.com/relaxdiego/mobility.git

   * via a zip file: https://github.com/relaxdiego/mobility/releases

2. Run the following in your terminal:

   cd <foldername>

   pip install -r requirements.txt

3. Copy `config.yml.example` to `config.yml` in the same directory. Feel
   free to look inside the file and understand what the settings are.

Run the Sample App
------------------

1. Run the following in your terminal:

   python mobility/app/main.py

2. Point your browser to http://localhost:5000


Edit the Sample App
-------------------

* The main file is in mobility/app/main.py. Start there.

* Each function decorated with @app.route(...) is accessible
  via the browser. The value between the parentheses determines
  how it is accessed through the browser. For example, if the
  decorator is @app.route('/get_maps'), then you can access<commit_msg>Clarify config.yml step<commit_after>Mobility App Framework
======================

This is a barebones framework that you can use to build your own web
application on top of the Cisco Mobility Services Engine (MSE) platform.


Requirements
------------

* Python v2.7.8 (https://www.python.org/download/releases/2.7.8)

* Pip (http://pip.readthedocs.org/en/latest/installing.html)


Installation
------------

1. Get this project:

   * via git: git clone https://github.com/relaxdiego/mobility.git

   * via a zip file: https://github.com/relaxdiego/mobility/releases

2. Run the following in your terminal:

   cd <foldername>

   pip install -r requirements.txt

3. Copy `config.yml.example` to `config.yml` in the same directory.

4. Edit `config.yml`. Replace placeholder values (i.e. values surrounded
   by < and >) with real values. See `config.yml` for instructions.


Run the Sample App
------------------

1. Run the following in your terminal:

   python mobility/app/main.py

2. Point your browser to http://localhost:5000


Edit the Sample App
-------------------

* The main file is in mobility/app/main.py. Start there.

* Each function decorated with @app.route(...) is accessible
  via the browser. The value between the parentheses determines
  how it is accessed through the browser. For example, if the
  decorator is @app.route('/get_maps'), then you can access
{'fraction_non_alphanumeric': 0.1449814126394052, 'fraction_numerical': 0.011524163568773234, 'mean_word_length': 2.980769230769231, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 6, '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': '5659063', 'n_tokens_mistral': 820, 'n_tokens_neox': 756, 'n_words': 304}