<commit_before># Python Backend

This Python backend uses [Flask][1] as web framework and the [crate][2] Python
library which is an implementation of the standard [Python DB API][3] (plus
[SQLAlchemy][5] dialect).

## Requirements

* Python 3 (>3.2)
* [virtualenv][4]

## Usage

### Create virtualenv

```console
$ virtualenv env
$ source ./venv/bin/activate
$ ./env/bin/pip install -r requirements.txt
```

See `README.txt` in root folder of the project on instructions how to create
table schemas and populate country data.

### Run backend application

```console
$ ./venv/bin/python app.py
```

[1]: http://flask.pocoo.org/
[2]: https://pypi.python.org/pypi/crate
[3]: https://www.python.org/dev/peps/pep-0249/
[4]: https://virtualenv.readthedocs.org/en/latest/
[5]: http://www.sqlalchemy.org/
<commit_msg>Minor changes to Python Read me<commit_after># The Python Sample App
This Python backend uses [Flask][1] as web framework and the [crate][2] Python library, which is an implementation of the standard [Python DB API][3] (plus [SQLAlchemy][5] dialect).

## Requirements

- Python 3 (>3.2)
- [virtualenv][4]

## Usage
### Create virtualenv

```bash
virtualenv env
source ./env/bin/activate
./env/bin/pip install -r requirements.txt
```

Read _README.txt_ in the root folder of the project for instructions on how to create table schemas and populate sample country data.

### Run Backend Application

```bash
./env/bin/python app.py
```

[1]: http://flask.pocoo.org/
[2]: https://pypi.python.org/pypi/crate
[3]: https://www.python.org/dev/peps/pep-0249/
[4]: https://virtualenv.readthedocs.org/en/latest/
[5]: http://www.sqlalchemy.org/

{'fraction_non_alphanumeric': 0.1551094890510949, 'fraction_numerical': 0.02068126520681265, 'mean_word_length': 4.222222222222222, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 6, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3778190', 'n_tokens_mistral': 590, 'n_tokens_neox': 555, 'n_words': 172}