<commit_before>django-sluggee
==============

Django-package to slugify Russian easily.

.. image:: https://api.travis-ci.org/koorgoo/django-sluggee.png

Getting Started
---------------

Installation
^^^^^^^^^^^^
::

    pip install git+ssh://git@github.com/koorgoo/django-sluggee.git#egg=django-sluggee
::

Usage
^^^^^
::

    from django.db import models
    from sluggee import slugify

    class Entry(models.Model):
        title = models.CharField(max_length=100)
        body = models.TextField()
        slug = models.SlugField()

        def __unicode__(self):
            return self.title

        def save(self, *args, **kwargs):
            if not self.slug:
                self.slug = slugify(self.title)[:50]

            return super(Entry, self).save(*args, **kwargs)
::<commit_msg>Changed install command<commit_after>django-sluggee
==============

Django-package to slugify Russian easily.

.. image:: https://api.travis-ci.org/koorgoo/django-sluggee.png

Getting Started
---------------

Installation
^^^^^^^^^^^^
::

    pip install django-sluggee
::

Usage
^^^^^
::

    from django.db import models
    from sluggee import slugify

    class Entry(models.Model):
        title = models.CharField(max_length=100)
        body = models.TextField()
        slug = models.SlugField()

        def __unicode__(self):
            return self.title

        def save(self, *args, **kwargs):
            if not self.slug:
                self.slug = slugify(self.title)[:50]

            return super(Entry, self).save(*args, **kwargs)
::
{'fraction_non_alphanumeric': 0.16859716859716858, 'fraction_numerical': 0.006435006435006435, 'mean_word_length': 2.470982142857143, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '2908709', 'n_tokens_mistral': 503, 'n_tokens_neox': 480, 'n_words': 98}