<commit_before># mike-monitor
Proof of concept for a Dashboard feed by RabbitMQ

## Setting up

### Requirements

* RabbitMQ installed (https://www.rabbitmq.com/download.html)
* Node.js and npm installed
* Composer installed (https://getcomposer.org/download/)

### Installation

* Clone project
* run npm and composer install
```bash
$ npm install
$ composer install

### Starting socket server

Run
``` bash
npm start
```

## Structure

### Exchange declaration
```
$channel->exchange_declare('mike_monitor', 'topic', false, false, false);
```

### TOPIC Structure
```html
<source>.<section>.<level>
```

Examples:

* monitor.ping.info
* monitor.homepage.error<commit_msg>README markdown<commit_after># mike-monitor
Proof of concept for a Dashboard feed by RabbitMQ

## Setting up

### Requirements

* RabbitMQ installed (https://www.rabbitmq.com/download.html)
* Node.js and npm installed
* Composer installed (https://getcomposer.org/download/)

### Installation

* Clone project
* run npm and composer install
```bash
$ npm install
$ composer install
```

### Starting socket server

Run
``` bash
npm start
```

## Structure

### Exchange declaration
```
$channel->exchange_declare('mike_monitor', 'topic', false, false, false);
```

### TOPIC Structure
```html
<source>.<section>.<level>
```

Examples:

* monitor.ping.info
* monitor.homepage.error
{'fraction_non_alphanumeric': 0.1484490398818316, 'fraction_numerical': 0.0, 'mean_word_length': 5.022222222222222, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1932843', 'n_tokens_mistral': 459, 'n_tokens_neox': 407, 'n_words': 118}