<commit_before>Medusa
======

Medusa is a tracking, alerting, and visualization service for regressions in [Telemetry](http://telemetry.mozilla.org/). It aims to provide a unified frontend for managing regression alerts.

Medusa does not perform detection of regressions by itself; it exposes an API that **detectors** - services that detect regressions - can post to. For example, [Cerberus](https://github.com/mozilla/cerberus#readme) is a detector for histogram regressions.

Some examples of [Cerberus](https://github.com/mozilla/cerberus#readme), an automatic histogram regression detector.

Medusa is written in [Clojure/Clojurescript](http://clojure.org/), and uses [Ring](https://github.com/ring-clojure/ring#readme) with [React/Om](https://github.com/omcljs/om#readme) for the web interface.

## Development and deployment

First, make sure you have [Vagrant](https://www.vagrantup.com/) and [Ansible](http://www.ansible.com/home).

To start hacking on your local machine:
```bash
vagrant up
vagrant ssh
```

To provision resources and deploy medusa on AWS, first edit `ansible/provision.yml`, replacing the vaue of `key_name` with your own key, then:
```bash
ansible-playbook ansible/provision.yml -i ansible/inventory
```

## Usage

To launch the server simply yield `lein run`. Note that you must have a recent version of leiningen installed (> 2); some distributions ship with earlier versions.
<commit_msg>Add link to Telemetry Alerts in the README<commit_after>Medusa
======

[Medusa](http://alerts.telemetry.mozilla.org/index.html) (also known as Telemetry Alerts) is a tracking, alerting, and visualization service for regressions in [Telemetry](http://telemetry.mozilla.org/). It aims to provide a unified frontend for managing regression alerts.

Medusa does not perform detection of regressions by itself; it exposes an API that **detectors** - services that detect regressions - can post to. For example, [Cerberus](https://github.com/mozilla/cerberus#readme) is a detector for histogram regressions.

Some examples of [Cerberus](https://github.com/mozilla/cerberus#readme), an automatic histogram regression detector.

Medusa is written in [Clojure/Clojurescript](http://clojure.org/), and uses [Ring](https://github.com/ring-clojure/ring#readme) with [React/Om](https://github.com/omcljs/om#readme) for the web interface.

## Development and deployment

First, make sure you have [Vagrant](https://www.vagrantup.com/) and [Ansible](http://www.ansible.com/home).

To start hacking on your local machine:
```bash
vagrant up
vagrant ssh
```

To provision resources and deploy medusa on AWS, first edit `ansible/provision.yml`, replacing the vaue of `key_name` with your own key, then:
```bash
ansible-playbook ansible/provision.yml -i ansible/inventory
```

## Usage

To launch the server simply yield `lein run`. Note that you must have a recent version of leiningen installed (> 2); some distributions ship with earlier versions.

{'fraction_non_alphanumeric': 0.10975609756097561, 'fraction_numerical': 0.0006775067750677507, 'mean_word_length': 5.101239669421488, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 10, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3239499', 'n_tokens_mistral': 917, 'n_tokens_neox': 849, 'n_words': 320}