<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.conf.urls import patterns, url, include

from rest_framework import routers

from .views import ContainerAPIList, ContainerAPIDetail


router = routers.DefaultRouter()

urlpatterns = patterns(
    '',
    url(r'^auth/', include('rest_framework.urls', namespace='rest_framework')),

    url(r'^(?P<channel__long_slug>[\w//-]+)/(?P<slug>[\w-]+)\.html$',
        ContainerAPIDetail.as_view(), name='container'),

    url(r'^(?P<channel__long_slug>[\w\b//-]+)/$',
        ContainerAPIList.as_view(), name='channel'),

    url(r'^', include(router.urls)),

)<commit_msg>Update api urls (defaults), used tastypie<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.conf.urls import patterns, url, include

from tastypie.api import Api

from opps.containers.api import Container
from opps.articles.api import Post


_api = Api(api_name='v1')
_api.register(Container())
_api.register(Post())


urlpatterns = patterns(
    '',
    url(r'^', include(_api.urls)),
)
{'fraction_non_alphanumeric': 0.18164435946462715, 'fraction_numerical': 0.0028680688336520078, 'mean_word_length': 4.481675392670157, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '459212', 'n_tokens_mistral': 367, 'n_tokens_neox': 362, 'n_words': 69}