<commit_before># -*- coding: utf-8 -*-
from django.conf.urls import url, include
from django.views.generic import TemplateView

from discussion.views import (CategoryViewSet, ForumViewSet, TopicViewSet, CommentViewSet, TagViewSet,
                              TopicNotificationViewSet, TopicLikeViewSet, CommentLikeViewSet,)

from rest_framework import routers

router = routers.SimpleRouter()
router.register(r'category', CategoryViewSet)
router.register(r'forum', ForumViewSet)
router.register(r'topic', TopicViewSet)
router.register(r'comment', CommentViewSet)
router.register(r'tag', TagViewSet)
router.register(r'topic-notification', TopicNotificationViewSet)
router.register(r'comment_like', CommentLikeViewSet)
router.register(r'topic_like', TopicLikeViewSet)

urlpatterns = [

    url(r'^api/', include(router.urls)),
    url(r'^forum/', TemplateView.as_view(template_name="forum.html"), name='forum'),
    url(r'^topic/(?:#(?P<topic_id>[-a-zA-Z0-9_]+))?$', TemplateView.as_view(template_name="forum-topic.html")),
    url(r'^topic/new/', TemplateView.as_view(template_name="forum-new-topic.html")),
    # url(r'^(#/topic/)(?P<topic_id>[-a-zA-Z0-9_]+)$', TemplateView.as_view(template_name="forum-thread.html")),
    # url(r'^(?:#/topic/(?P<topic_id>[-a-zA-Z0-9_]+))$', TemplateView.as_view(template_name="forum-thread.html")),
]<commit_msg>add forum-detail route<commit_after># -*- coding: utf-8 -*-
from django.conf.urls import url, include
from django.views.generic import TemplateView

from discussion.views import (CategoryViewSet, ForumViewSet, TopicViewSet, CommentViewSet, TagViewSet,
                              TopicNotificationViewSet, TopicLikeViewSet, CommentLikeViewSet,)

from rest_framework import routers

router = routers.SimpleRouter()
router.register(r'category', CategoryViewSet)
router.register(r'forum', ForumViewSet)
router.register(r'topic', TopicViewSet)
router.register(r'comment', CommentViewSet)
router.register(r'tag', TagViewSet)
router.register(r'topic-notification', TopicNotificationViewSet)
router.register(r'comment_like', CommentLikeViewSet)
router.register(r'topic_like', TopicLikeViewSet)

urlpatterns = [

    url(r'^api/', include(router.urls)),
    url(r'^forum/', TemplateView.as_view(template_name="forum.html"), name='forum'),
    url(r'^forum-detail/', TemplateView.as_view(template_name="forum.html"), name='forum-detail'),
    url(r'^topic/(?:#(?P<topic_id>[-a-zA-Z0-9_]+))?$', TemplateView.as_view(template_name="forum-topic.html")),
    url(r'^topic/new/', TemplateView.as_view(template_name="forum-new-topic.html")),
    # url(r'^(#/topic/)(?P<topic_id>[-a-zA-Z0-9_]+)$', TemplateView.as_view(template_name="forum-thread.html")),
    # url(r'^(?:#/topic/(?P<topic_id>[-a-zA-Z0-9_]+))$', TemplateView.as_view(template_name="forum-thread.html")),
]
{'fraction_non_alphanumeric': 0.17663817663817663, 'fraction_numerical': 0.004985754985754986, 'mean_word_length': 6.3921052631578945, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '1632494', 'n_tokens_mistral': 992, 'n_tokens_neox': 949, 'n_words': 123}