<commit_before>snippets
==========

[![Build Status](https://img.shields.io/travis/mozmar/snippets-service/master.svg)](https://travis-ci.org/mozmar/snippets-service)

[![codecov.io](https://codecov.io/github/mozmar/snippets-service/coverage.svg?branch=master)](https://codecov.io/github/mozmar/snippets-service?branch=master)

[What's deployed?](https://whatsdeployed.io/s-i76)

[Documentation](http://abouthome-snippets-service.readthedocs.org/)

Run the tests
-------------

There's a sample test in `snippets/base/tests.py` for your convenience, that
you can run using the following command:

    python manage.py test

If you want to run the full suite, with flake8 and coverage, you may use
[tox](https://testrun.org/tox/latest/). This will run the tests the same way
they are run by [travis](https://travis-ci.org)):

    pip install tox
    tox

The `.travis.yml` file will also run [coveralls](https://coveralls.io) by
default.

If you want to benefit from Travis and Coveralls, you will need to activate
them both for your project.

Oh, and you might want to change the "Build Status" and "Coverage Status" links
at the top of this file to point to your own travis and coveralls accounts.


Docker for development
----------------------

0. Make sure you have [docker](https://docker.io) and [docker-compose](https://github.com/docker/compose)
1. docker-compose up<commit_msg>Add Treeherder link.<commit_after>snippets
==========

[![Build Status](https://img.shields.io/travis/mozmar/snippets-service/master.svg)](https://travis-ci.org/mozmar/snippets-service)

[![codecov.io](https://codecov.io/github/mozmar/snippets-service/coverage.svg?branch=master)](https://codecov.io/github/mozmar/snippets-service?branch=master)

[What's deployed?](https://whatsdeployed.io/s-i76)

[Documentation](http://abouthome-snippets-service.readthedocs.org/)

[![webqa tests](https://img.shields.io/badge/WebQA-Treeherder-lightgrey.svg)](https://treeherder.mozilla.org/#/jobs?repo=snippets-service)

Run the tests
-------------

There's a sample test in `snippets/base/tests.py` for your convenience, that
you can run using the following command:

    python manage.py test

If you want to run the full suite, with flake8 and coverage, you may use
[tox](https://testrun.org/tox/latest/). This will run the tests the same way
they are run by [travis](https://travis-ci.org)):

    pip install tox
    tox

The `.travis.yml` file will also run [coveralls](https://coveralls.io) by
default.

If you want to benefit from Travis and Coveralls, you will need to activate
them both for your project.

Oh, and you might want to change the "Build Status" and "Coverage Status" links
at the top of this file to point to your own travis and coveralls accounts.


Docker for development
----------------------

0. Make sure you have [docker](https://docker.io) and [docker-compose](https://github.com/docker/compose)
1. docker-compose up
{'fraction_non_alphanumeric': 0.1538198013018157, 'fraction_numerical': 0.0034258307639602604, 'mean_word_length': 4.025817555938038, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 22, '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': '4834835', 'n_tokens_mistral': 976, 'n_tokens_neox': 916, 'n_words': 271}