<commit_before>mochad_logger
=============

A logging daemon for mochad.

Installation
------------

`mochad_logger` requires [twisted](https://twistedmatrix.com) to run. In ubuntu it can be installed with the following command:

```bash
$ sudo apt-get install python-twisted
```

Clone the git repository

```bash
$ git clone https://github.com/mrdanbrooks/mochad_logger.git
```

The module `mochad_logger` can be used by itself from this directory, or you can install it. 
Installation requires setuptools. In ubuntu you can install setuptools using 

```bash
$ sudo apt-get install python-setuptools
```

Then you can install mochad_logger using

```bash
$ sudo python setup.py install
```

**Note:** This does not install mochad itself. For information about installing mochad see https://github.com/njh/mochad.


Usage
-----

Make sure Mochad is already started. The logger can then be started by running

```bash
$ mochad_logger mochad_logger.conf
```


Configuration File
------------------
A configuration file is required to run the logger. An example is given below
<commit_msg>updates readme<commit_after>mochad_logger
=============

A logging daemon for mochad.

Installation
------------
Clone the git repository

```bash
$ git clone https://github.com/mrdanbrooks/mochad_logger.git
```

The module `mochad_logger` can be used by itself from this directory, or you can install it. 
Installation requires setuptools. In ubuntu you can install setuptools using 

```bash
$ sudo apt-get install python-setuptools
```

Then you can install mochad_logger using

```bash
$ sudo python setup.py install
```

**Note:** This does not install mochad itself. For information about installing mochad see https://github.com/njh/mochad.



Usage
-----

Make sure Mochad is already started. The logger can then be started by running

```bash
$ mochad_logger mochad_logger.conf
```


Configuration File
------------------
A configuration file is required to run the logger. An example is given below

{'fraction_non_alphanumeric': 0.12168252378567852, 'fraction_numerical': 0.0, 'mean_word_length': 3.8260869565217392, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 5, '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': '4833013', 'n_tokens_mistral': 621, 'n_tokens_neox': 571, 'n_words': 231}