<commit_before>Installation Guides
===================

Getting Started with perGENIE on OS X
-------------------------------------

* Install requirements for perGENIE

    #. Install MongoDB, RabbitMQ via macports::

        $ sudo port install mongodb rabbitmq-server


        *. Launch mongod::

            $ mongod --dbpath=/path/to/elsewhere


        *. Launch rabbitmq-server::

            $ sudo rabbitmqctl start


    #. Install Python libraries via pip::

        $ sudo pip install -r requirements.txt


* Launch perGENIE

    #. Initialize database (sqlite)::
    
        $ python manage.py syncdb


    #. Launch celeryd::

        $ python manage.py celeryd &


    #. Launch djnago (wsgi or fcgi)::

        $ python manage.py runserver


    #. Access localhost:8000 from browser, then you will see login page.

        *. You may get errors, 
        
            *. "python module import error"

                *. Installation via pip may have failed.

            *. "connection refused"

                *. Installation of MongoDB or RabbitMQ failed.

                *. Or launching MongoDB or RabbitMQ failed.<commit_msg>in INSTALL.rst, add initialization of celeryd.log<commit_after>Installation Guides
===================

Getting Started with perGENIE on OS X
-------------------------------------

* Install requirements for perGENIE

    #. Install MongoDB, RabbitMQ via macports::

        $ sudo port install mongodb rabbitmq-server


        $ # Launch mongod
        $ mongod --dbpath=/path/to/elsewhere

        $ # Launch rabbitmq-server
        $ sudo rabbitmqctl start


    #. Install Python libraries via pip::

        $ sudo pip install -r requirements.txt


* Launch perGENIE

    #. Initialize database (sqlite)::
    
        $ python manage.py syncdb


    #. Initialize celeryd log::
    
        $ mkdir -p log
        $ touch log/celeryd.log


    #. Launch celeryd::

        $ python manage.py celeryd &


    #. Launch djnago (wsgi or fcgi)::

        $ python manage.py runserver


    #. Access localhost:8000 from browser, then you will see login page.

        *. You may get errors, 
        
            *. "python module import error"

                *. Installation via pip may have failed.

            *. "connection refused"

                *. Installation of MongoDB or RabbitMQ failed.

                *. Or launching MongoDB or RabbitMQ failed.
{'fraction_non_alphanumeric': 0.11915597848572611, 'fraction_numerical': 0.0033098882912701694, 'mean_word_length': 1.7446083995459705, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4471495', 'n_tokens_mistral': 737, 'n_tokens_neox': 581, 'n_words': 214}