<commit_before>from django.conf import settings
from django.core.exceptions import SuspiciousOperation
from django.contrib.sessions.backends.base import SessionBase, CreateError
from couchdbkit.ext.django.schema import *


class Session(Document):
    key          = StringProperty()
    session_key  = StringProperty()
    session_data = StringProperty()
    expire_date  = StringProperty()

    @classmethod
    def get_session(cls, session_key):
        r = cls.view('django_couchdb_utils/sessions_by_key', key=session_key, include_docs=True)
        return r.first() if r else None


class SessionStore(SessionBase):
<commit_msg>Revert "add Session.key property for django 1.3"<commit_after>from django.conf import settings
from django.core.exceptions import SuspiciousOperation
from django.contrib.sessions.backends.base import SessionBase, CreateError
from couchdbkit.ext.django.schema import *


class Session(Document):
    session_key  = StringProperty()
    session_data = StringProperty()
    expire_date  = StringProperty()

    @classmethod
    def get_session(cls, session_key):
        r = cls.view('django_couchdb_utils/sessions_by_key', key=session_key, include_docs=True)
        return r.first() if r else None


class SessionStore(SessionBase):

{'fraction_non_alphanumeric': 0.08300395256916997, 'fraction_numerical': 0.0015810276679841897, 'mean_word_length': 4.577092511013216, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '5979467', 'n_tokens_mistral': 370, 'n_tokens_neox': 364, 'n_words': 88}