<commit_before>(exception)Prison
=======================

![prison](https://raw.github.com/dzhibas/prison/master/public/images/prison-logo.png)

real time event logging and aggregation platform. error monitoring ported to PHP from well known python project Sentry

you can re-use [Sentry](https://github.com/getsentry/sentry) clients (Raven-*) to report exception to Prison:

    - https://github.com/getsentry/raven-php (php client)
    - https://github.com/getsentry/raven-js (javascript client)

Installation
===============

* clone project
* curl -sS https://getcomposer.org/installer | php  # install composer
* php composer.phar install # install project dependencies
* cp config/autoload/local.php.dist config/autoload/local.php # copy local configuration
* vim config/autload/local.php # add doctrine connection details
* create database (database name was mentioned in configuration file local.php)
* vendor/bin/doctrine-module orm:schema-tool:create # create database schemas out of doctrine entities

prison is up and running. hit URL, create new account, team and project and you will see guide how to register
exception handler for your specified platform.<commit_msg>readme with queue worker command<commit_after>(exception)Prison
=======================

![prison](https://raw.github.com/dzhibas/prison/master/public/images/prison-logo.png)

real time event logging and aggregation platform. error monitoring ported to PHP from well known python project Sentry

you can re-use [Sentry](https://github.com/getsentry/sentry) clients (Raven-*) to report exception to Prison:

    - https://github.com/getsentry/raven-php (php client)
    - https://github.com/getsentry/raven-js (javascript client)

Installation
===============

* clone project
* curl -sS https://getcomposer.org/installer | php  # install composer
* php composer.phar install # install project dependencies
* cp config/autoload/local.php.dist config/autoload/local.php # copy local configuration
* vim config/autload/local.php # add doctrine connection details
* create database (database name was mentioned in configuration file local.php)
* vendor/bin/doctrine-module orm:schema-tool:create # create database schemas out of doctrine entities

prison is up and running. hit URL, create new account, team and project and you will see guide how to register
exception handler for your specified platform.


Queue workers
================

    php public/index.php queue doctrine "Prison\Queue" --start
{'fraction_non_alphanumeric': 0.12298387096774194, 'fraction_numerical': 0.0, 'mean_word_length': 4.851415094339623, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 10, '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': '5668872', 'n_tokens_mistral': 666, 'n_tokens_neox': 646, 'n_words': 231}