<commit_before># Policy Compass

Install the policy compass web application and all dependent services for development.


## Installation

Requirements:

* Ubuntu linux 64bit (tested with 14.04 LTS)
* git
* make
* bash
* python3.4 (optional for automatic installation)
* postgres, elasticsearch, and tons of other dependencies (see Makefile for reference)

### Checkout main repository

This requires an github.com account with [ssh keys](https://help.github.com/articles/generating-ssh-keys).

    git clone <EMAIL>:policycompass/policycompass.git
    cd policycompass

### Automatic installation on ubuntu systems

Install dependencies:

    sudo make install_deps

Install dependency services and build shell environment with all development tools:

    make

Start all installed services and the frontend using supervisord:

    supervisord -c etc/supervisord.conf

### Manual installation

Install basic requirements:

* [python3.4](https://python.org)
* firefox (default setting for browser acceptance tests)

Checkout sub repositories:

    git submodule foreach --recursive "(git checkout master; git submodule init; git submodule update; git pull)"

To update all repositories run:

    git pull
    git submodule foreach --recursive "(git submodule init; git submodule update; git-pull)"

Create Python virtualenv:

    pyvenv-3.4 .

Install test runner:

    bin/pip3.4 install -r requirements.txt

Install dependency services:

    Read the README files in the subproject directories (./policycompass-*).
<commit_msg>Add adhocracy installation to README<commit_after># Policy Compass

Install the policy compass web application and all dependent services for development.


## Installation

Requirements:

* Ubuntu linux 64bit (tested with 14.04 LTS)
* git
* make
* bash
* python3.4 (optional for automatic installation)
* postgres, elasticsearch, and tons of other dependencies (see Makefile for reference)

### Checkout main repository

This requires an github.com account with [ssh keys](https://help.github.com/articles/generating-ssh-keys).

    git clone <EMAIL>:policycompass/policycompass.git
    cd policycompass

### Automatic installation on ubuntu systems

Install dependencies:

    sudo make install_deps

Install dependency services and build shell environment with all development tools:

    make

Start all installed services and the frontend using supervisord:

    supervisord -c etc/supervisord.conf

Install Adhocracy:

    make adhocracy3_install

Run Adhocracy:

    supervisorctl start adhocracy:

### Manual installation

Install basic requirements:

* [python3.4](https://python.org)
* firefox (default setting for browser acceptance tests)

Checkout sub repositories:

    git submodule foreach --recursive "(git checkout master; git submodule init; git submodule update; git pull)"

To update all repositories run:

    git pull
    git submodule foreach --recursive "(git submodule init; git submodule update; git-pull)"

Create Python virtualenv:

    pyvenv-3.4 .

Install test runner:

    bin/pip3.4 install -r requirements.txt

Install dependency services:

    Read the README files in the subproject directories (./policycompass-*).

{'fraction_non_alphanumeric': 0.07008170961659334, 'fraction_numerical': 0.009113764927718416, 'mean_word_length': 4.287375415282392, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, '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': '5336938', 'n_tokens_mistral': 904, 'n_tokens_neox': 816, 'n_words': 343}