<commit_before># Backend for KSI web

[https://ksi.fi.muni.cz](https://ksi.fi.muni.cz/)

## Software needed

 * Python 3.5
 * virtualenv
 * packages from `requirements.txt`
 * [isolate](https://github.com/cms-dev/isolate)

## Installation

 1. Clone this repository.
 2. Run `init-makedirs.sh`.
 3. Install virtualenv & packages into `ksi-py3-venv` directory.
 4. Enter db url into `config.py` file. Format:
    ```
    SQL_ALCHEMY_URI = 'mysql://username:password@server/db_name?charset=utf8'
    ```

 5. Uncomment part of the `app.py`, which creates database structure.
 6. Run the server, comment the database-create-section in `run.py`
 7. Install `isolate`.
 8. Optional: make `/tmp` tmpfs.
<commit_msg>Add commands to readme.<commit_after># Backend for KSI web

[https://ksi.fi.muni.cz](https://ksi.fi.muni.cz/)

## Software needed

 * Python 3.5
 * virtualenv
 * packages from `requirements.txt`
 * [isolate](https://github.com/cms-dev/isolate)

## Installation

 1. Clone this repository.
 2. Run `init-makedirs.sh`.
 3. Install virtualenv & packages into `ksi-py3-venv` directory.
    ```
    virtualenv -p python3 ksi-py3-venv
    source ksi-py3-venv/bin/activate
    pip3 install -r requirements.txt
    ```
 4. Enter db url into `config.py` file. Format:
    ```
    SQL_ALCHEMY_URI = 'mysql://username:password@server/db_name?charset=utf8'
    ```

 5. Uncomment part of the `app.py`, which creates database structure.
 6. Run the server, comment the database-create-section in `run.py`
 7. Install `isolate`.
 8. Optional: make `/tmp` tmpfs.

{'fraction_non_alphanumeric': 0.14515093127809892, 'fraction_numerical': 0.01798330122029544, 'mean_word_length': 3.401129943502825, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, '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': '1128324', 'n_tokens_mistral': 568, 'n_tokens_neox': 531, 'n_words': 147}