<commit_before># destalinator
Code for managing Cleanup of Stale Channels

[![Build Status](https://travis-ci.org/randsleadershipslack/destalinator.svg?branch=master)](https://travis-ci.org/randsleadershipslack/destalinator)

[![Coverage Status](https://coveralls.io/repos/github/randsleadershipslack/destalinator/badge.svg?branch=master)](https://coveralls.io/github/randsleadershipslack/destalinator?branch=master)

# Making it work in your environment
You'll need to install a few libraries: `pip install -r requirements.txt`

You'll also need to change `configuration.yaml` appropriately. `warner.py` and `archiver.py` should then work from the command line. Productionized automated deployments and running on a schedule are left unspecified because every production environment is unique.

That said, if you're running on Heroku, you can create a single `clock` process that runs `python scheduler.py`.

# Development

We recommend using `virtualenv` to manage your development environment.

    pip install virtualenv
    virtualenv env
    source env/bin/activate

In addition to `requirements.txt`, there's also `build-requirements.txt` for development environments. `./bin/install` will install both.

### Docker

Build a local docker image:

    docker build . -t destalinator

You can also use the prebuilt Docker image at [randsleadershipslack/destalinator](https://hub.docker.com/r/randsleadershipslack/destalinator/).

#### Checking code coverage locally

    docker run -it -p 8080:80 destalinator sh -c "coverage html --skip-covered && python -m http.server 80"

    open http://localhost:8080/htmlcov/

## Components<commit_msg>Remove reference to non-existent Docker image<commit_after># destalinator
Code for managing Cleanup of Stale Channels

[![Build Status](https://travis-ci.org/randsleadershipslack/destalinator.svg?branch=master)](https://travis-ci.org/randsleadershipslack/destalinator)

[![Coverage Status](https://coveralls.io/repos/github/randsleadershipslack/destalinator/badge.svg?branch=master)](https://coveralls.io/github/randsleadershipslack/destalinator?branch=master)

# Making it work in your environment
You'll need to install a few libraries: `pip install -r requirements.txt`

You'll also need to change `configuration.yaml` appropriately. `warner.py` and `archiver.py` should then work from the command line. Productionized automated deployments and running on a schedule are left unspecified because every production environment is unique.

That said, if you're running on Heroku, you can create a single `clock` process that runs `python scheduler.py`.

# Development

We recommend using `virtualenv` to manage your development environment.

    pip install virtualenv
    virtualenv env
    source env/bin/activate

In addition to `requirements.txt`, there's also `build-requirements.txt` for development environments. `./bin/install` will install both.

### Docker

Build a local docker image:

    docker build . -t destalinator

#### Checking code coverage locally

    docker run -it -p 8080:80 destalinator sh -c "coverage html --skip-covered && python -m http.server 80"

    open http://localhost:8080/htmlcov/

## Components
{'fraction_non_alphanumeric': 0.09436929852154766, 'fraction_numerical': 0.007549543881723813, 'mean_word_length': 4.932835820895522, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 9, 'lorem ipsum': 0, 'www.': 0, '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': '4567177', 'n_tokens_mistral': 946, 'n_tokens_neox': 877, 'n_words': 304}