<commit_before># Django Bulbs [![Build Status](https://travis-ci.org/theonion/django-bulbs.svg?branch=promotions)](https://travis-ci.org/theonion/django-bulbs) [![Coverage Status](https://img.shields.io/coveralls/theonion/django-bulbs.svg)](https://coveralls.io/r/theonion/django-bulbs?branch=master)


django-bulbs is a set of apps used to power content at [The Onion](http://www.theonion.com).

This project very much under active development, and is currently not as reusable as it could be.

## Configuring for Development

First, enter any virtualenv, etc, that you plan on developing in.
```bash
pip install -e .
pip install "file://$(pwd)#egg=django-bulbs[dev]"
```

## Running Tests

1. Clone [django-elastimorphic](https://github.com/theonion/django-elastimorphic) into a sibiling directory
2. Install dev requirements
```bash
$ pip install -e ".[dev]"
```
3. Run tests
```bash
$ py.test tests/
```

## Building Docs
```bash
$ cd docs
$ make html
```<commit_msg>Get rid of more prompt characters, make it harder to copy-paste commands<commit_after># Django Bulbs [![Build Status](https://travis-ci.org/theonion/django-bulbs.svg?branch=promotions)](https://travis-ci.org/theonion/django-bulbs) [![Coverage Status](https://img.shields.io/coveralls/theonion/django-bulbs.svg)](https://coveralls.io/r/theonion/django-bulbs?branch=master)


django-bulbs is a set of apps used to power content at [The Onion](http://www.theonion.com).

This project very much under active development, and is currently not as reusable as it could be.

## Configuring for Development

First, enter any virtualenv, etc, that you plan on developing in.
```bash
pip install -e .
pip install "file://$(pwd)#egg=django-bulbs[dev]"
```

## Running Tests

1. Clone [django-elastimorphic](https://github.com/theonion/django-elastimorphic) into a sibiling directory
2. Install dev requirements
```bash
pip install -e ".[dev]"
```
3. Run tests
```bash
py.test tests/
```

## Building Docs
```bash
cd docs
make html
```
{'fraction_non_alphanumeric': 0.14952333166081286, 'fraction_numerical': 0.0030105368790767687, 'mean_word_length': 4.847507331378299, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 10, 'lorem ipsum': 0, 'www.': 2, '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': '1804505', 'n_tokens_mistral': 705, 'n_tokens_neox': 650, 'n_words': 189}