<commit_before>Ansible Townhall
================

1. Before running this project for test/dev purpose, you need to add the root folder "`ansible-townhall`" to **PYTHONPATH**. Otherwise the python interpreter is unable to find the modules of this project.

    For example, suppose that you put the "`ansible-townhall`" under */root/python_app* folder on Linux like this: */root/python_app/ansible_job*.
    It's better to write "`export PYTHONPATH=$PYTHONPATH:/root/python_app/ansible-townhall`" into `.bashrc` file so that when you log in Linux everytime,
    that path could be added to **PYTHONPATH**.

2. Make sure you have installed required libraries.

    ```bash
    $ pip install -r requirements.txt
    ```

3. Make sure you have installed `Ansible` on the same server. Please refer to <http://docs.ansible.com/ansible/intro.html>.

4. Make sure you have installed `Git` client on the same server.
   
   ```bash
   $sudo apt-get install git
   ``` 

5. After installing `Ansible`, run "`vi /etc/ansible/ansible.cfg`" to find what the path of callback plugins is.

    For example:

    > callback_plugins   = /usr/share/ansible_plugins/callback_plugins<commit_msg>Update the content<commit_after>Ansible Townhall
================

1. Before running this project for test/dev purpose, you need to add the root folder "`ansible-townhall`" to **PYTHONPATH**. Otherwise the python interpreter is unable to find the modules of this project.

    For example, suppose that you put the "`ansible-townhall`" under */root/python_app* folder on Linux like this: */root/python_app/ansible-townhall*.
    It's better to write "`export PYTHONPATH=$PYTHONPATH:/root/python_app/ansible-townhall`" into `.bashrc` file so that when you log in Linux everytime,
    that path could be added to **PYTHONPATH**.

2. Make sure you have installed required libraries.

    ```bash
    $ pip install -r requirements.txt
    ```

3. Make sure you have installed `Ansible` on the same server. Please refer to <http://docs.ansible.com/ansible/intro.html>.

4. Make sure you have installed `Git` client on the same server.
   
   ```bash
   $sudo apt-get install git
   ``` 

5. After installing `Ansible`, run "`vi /etc/ansible/ansible.cfg`" to find what the path of callback plugins is.

    For example:

    > callback_plugins   = /usr/share/ansible_plugins/callback_plugins
{'fraction_non_alphanumeric': 0.10974576271186441, 'fraction_numerical': 0.00423728813559322, 'mean_word_length': 3.779352226720648, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '5463160', 'n_tokens_mistral': 720, 'n_tokens_neox': 675, 'n_words': 277}