<commit_before>"""This urlconf sets the directions for the timed_mating app.

It comprises of create, update, delete, detail and list of plug events."""

from django.conf.urls.defaults import *
from django.views.generic.list_detail import object_detail
from django.views.generic.create_update import create_object, update_object, delete_object
from django.contrib.auth.decorators import login_required, permission_required

from mousedb.timed_mating.models import PlugEvents
from mousedb.timed_mating.views import PlugEventsListView, StrainPlugEventsListView, PlugEventsDetailView


@login_required
def limited_object_detail(*args, **kwargs):
	return object_detail(*args, **kwargs)

@permission_required('timed_mating.add_plugevents')
def create_plugevents(*args, **kwargs):<commit_msg>cleaned some cruft out of timed_mating/urls.py<commit_after>"""This urlconf sets the directions for the timed_mating app.

It takes a url in the form of /plug/something and sends it to the appropriate view class or function."""

from django.conf.urls.defaults import *
from django.views.generic.create_update import create_object, update_object, delete_object
from django.contrib.auth.decorators import login_required, permission_required

from mousedb.timed_mating.models import PlugEvents
from mousedb.timed_mating.views import PlugEventsListView, StrainPlugEventsListView, PlugEventsDetailView

@permission_required('timed_mating.add_plugevents')
def create_plugevents(*args, **kwargs):
{'fraction_non_alphanumeric': 0.07457627118644068, 'fraction_numerical': 0.0, 'mean_word_length': 7.5813953488372094, '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': '5264935', 'n_tokens_mistral': 435, 'n_tokens_neox': 412, 'n_words': 120}