<commit_before>#Bluemix Python Web application

The sample is using [Flask microframework](http://flask.pocoo.org/) and is intented to test the Python support on [IBM's Bluemix](https://bluemix.net/) environment which is based on Cloud Foundry.

If you just wish to automatically deploy this sample to Bluemix then just click the 'Deploy to Bluemix' button and see this sample deployed into your space.

[![Deploy to Bluemix](https://bluemix.net/deploy/button.png)](https://bluemix.net/deploy?repository=https://github.com/IBM-Bluemix/bluemix-python-flask-sample)

Alternatively follow the steps below to get the sample code and see how to deploy manually.

##Get this sample
From a terminal navigate to a location where you want this application code to be downloaded to and issue:
```bash
git clone https://github.com/IBM-Bluemix/bluemix-python-flask-sample
```
or download the zip file containing this sample code.

##Deploy to Bluemix manually
From a terminal login into Bluemix and set the api endpoint to the Bluemix region you wish to deploy to:
```script
cf login -a api.ng.bluemix.net
```
or for the UK region:
```script
cf login -a api.eu-gb.bluemix.net
```
The login will ask you for you `phone`(username) and `password`,` and `code` if there is more than one to choose from.

From the root directory of the application code execute the following to deploy the application to Bluemix. (By default the `route` (application URL) will be based on your application name so make sure your application name is unique or use the -n option on the cf push command to define your hostname)
```script
cf push IdentyFish -m 128M 
```
to deploy when you don't have a requirements.txt or setup.py then use:
```script<commit_msg>Fishackathon<commit_after>#Bluemix Python Web application

The sample is using [Flask microframework](http://flask.pocoo.org/) and is intented to test the Python support on [IBM's Bluemix](https://bluemix.net/) environment which is based on Cloud Foundry.

If you just wish to automatically deploy this sample to Bluemix then just click the 'Deploy to Bluemix' button and see this sample deployed into your space.

[![Deploy to Bluemix](https://bluemix.net/deploy/button.png)](https://bluemix.net/deploy?repository=https://github.com/IBM-Bluemix/bluemix-python-flask-sample)

Alternatively follow the steps below to get the sample code and see how to deploy manually.

##Deploy to Bluemix manually
From a terminal login into Bluemix and set the api endpoint to the Bluemix region you wish to deploy to:
```script
cf login -a api.ng.bluemix.net
```
or for the UK region:
```script
cf login -a api.eu-gb.bluemix.net
```
The login will ask you for you `phone`(username) and `password`,` and `code` if there is more than one to choose from.

From the root directory of the application code execute the following to deploy the application to Bluemix. (By default the `route` (application URL) will be based on your application name so make sure your application name is unique or use the -n option on the cf push command to define your hostname)
```script
cf push IdentyFish -m 128M 
```
to deploy when you don't have a requirements.txt or setup.py then use:
```script
{'fraction_non_alphanumeric': 0.08155583437892096, 'fraction_numerical': 0.0018820577164366374, 'mean_word_length': 4.61443661971831, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 9, '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': '6085954', 'n_tokens_mistral': 965, 'n_tokens_neox': 900, 'n_words': 444}