<commit_before>django-mailview
===============

Class-based email views for the Django framework, including a message previewer.

Testing and Development
-----------------------

Tested on Python 2.6 and 2.7, as well as Django 1.2, 1.3 and 1.4.

To run the test suite against your installed Django version, run
`python setup.py test`, or `make test`. (If Django isn't already installed,
the latest stable version will be installed.)

To run tests against the entire build matrix, install
`tox <http://pypi.python.org/pypi/tox>`_ and run ``tox`` in the root of the
repository.

To view an example message preview, you can start a test server by running::

    python mailview/tests/manage.py runserver

and visiting http://127.0.0.1/ and http://127.0.0.1/?html<commit_msg>Update `README.rst`.<commit_after>django-mailview
===============

Class-based email views for the Django framework, including a message previewer.

Testing and Development
-----------------------

Tested on Python 2.6 and 2.7, as well as Django 1.2, 1.3 and 1.4.

To run the test suite against your installed Django version, run
``python setup.py test``, or ``make test``. (If Django isn't already installed,
the latest stable version will be installed.)

All tests will automatically be run using the Django test runner when you run
the tests for your own projects if you use ``python manage.py test`` and
``mailview`` is within your ``settings.INSTALLED_APPS``.

To run tests against the entire build matrix, install
`tox <http://pypi.python.org/pypi/tox>`_ and run ``tox`` in the root of the
repository.

To view an example message preview, you can start a test server by running::

    $ python mailview/tests/manage.py runserver

and visiting http://127.0.0.1/ for a plain text message preview, and
http://127.0.0.1/?html for an HTML message preview.
{'fraction_non_alphanumeric': 0.12807881773399016, 'fraction_numerical': 0.0240831964969896, 'mean_word_length': 3.6513994910941476, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '7673054', 'n_tokens_mistral': 555, 'n_tokens_neox': 503, 'n_words': 243}