<commit_before>fedmsg-koji-consumer
====================

An example of using `fedmsg <http://fedmsg.com>`_ to monitor `koji <http://koji.fedoraproject.org>`_, the `Fedora <http://fedoraproject.org>`_ Build System.

Running
-------

.. code-block:: bash

   sudo yum install fedmsg-hub
   sudo cp config.py /etc/fedmsg.d/kojiconsumer.py
   python setup.py egg_info
   PYTHONPATH=$(pwd) fedmsg-hub<commit_msg>Update the readme too.<commit_after>fedmsg-genacls
==============

An example of using `fedmsg <http://fedmsg.com>`_ to monitor `pkgdb
<https://admin.fedoraproject.org/pkgdb>`_ for messages, but delaying
action for a few seconds to accumulate messages and avoid pile-up.

Running
-------

.. code-block:: bash

    # Install virtualenvwrapper and restart you terminal
    sudo yum install python-virtualenvwrapper

    # In a new terminal
    mkvirtualenv genacls-fedmsg
    python setup.py develop
    fedmsg-hub

You can tweak the settings in the ``fedmsg.d/`` directory.
{'fraction_non_alphanumeric': 0.14475025484199797, 'fraction_numerical': 0.0, 'mean_word_length': 3.743961352657005, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 1, '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': '4382745', 'n_tokens_mistral': 328, 'n_tokens_neox': 306, 'n_words': 92}