<commit_before>from django.conf.urls import include, url
# from django.conf import settings
from django.contrib import admin

from wagtail.wagtailadmin import urls as wagtailadmin_urls
from wagtail.wagtaildocs import urls as wagtaildocs_urls
from wagtail.wagtailcore import urls as wagtail_urls
# from wagtail.contrib.wagtailsitemaps.views import sitemap

from wapps import urls as wapps_common_urls
from wapps.forms import urls as wapps_forms_urls

# from ..feeds import BlogRssFeed, BlogAtomFeed


urlpatterns = [
    url(r'^django-admin/', include(admin.site.urls)),

    url(r'^admin/', include(wagtailadmin_urls)),
    url(r'^documents/', include(wagtaildocs_urls)),

    url(r'^search/', include('wagtail.wagtailsearch.urls.frontend')),
    # url(r'^i18n/', include('django.conf.urls.i18n')),

    url(r'^forms/', include(wapps_forms_urls)),
    # url('^sitemap\.xml$', sitemap),

    # url(r'^feeds/blog/rss/$', BlogRssFeed(), name="blog_rss_feed"),
    # url(r'^feeds/blog/atom/$', BlogAtomFeed(), name="blog_atom_feed"),

    url(r'', include(wapps_common_urls)),
    url(r'', include(wagtail_urls)),
]


# if settings.DEBUG:
#     from django.conf.urls.static import static
#     from django.contrib.staticfiles.urls import staticfiles_urlpatterns
#
#     # Serve static and media files from development server
#     urlpatterns += staticfiles_urlpatterns()
#     urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
#
#     if getattr(settings, 'DEBUG_TOOLBAR', False):
#         import debug_toolbar
#         urlpatterns.insert(0, url(r'^__debug__/', include(debug_toolbar.urls)))<commit_msg>Fix urls<commit_after>from django.conf.urls import include, url
# from django.conf import settings
from django.contrib import admin

from wagtail.wagtailadmin import urls as wagtailadmin_urls
from wagtail.wagtaildocs import urls as wagtaildocs_urls
from wagtail.wagtailcore import urls as wagtail_urls
# from wagtail.contrib.wagtailsitemaps.views import sitemap

from wapps import urls as wapps_common_urls
# from wapps.forms import urls as wapps_forms_urls

# from ..feeds import BlogRssFeed, BlogAtomFeed


urlpatterns = [
    url(r'^django-admin/', include(admin.site.urls)),

    url(r'^admin/', include(wagtailadmin_urls)),
    url(r'^documents/', include(wagtaildocs_urls)),

    url(r'^search/', include('wagtail.wagtailsearch.urls.frontend')),
    # url(r'^i18n/', include('django.conf.urls.i18n')),

    # url(r'^forms/', include(wapps_forms_urls)),
    # url('^sitemap\.xml$', sitemap),

    # url(r'^feeds/blog/rss/$', BlogRssFeed(), name="blog_rss_feed"),
    # url(r'^feeds/blog/atom/$', BlogAtomFeed(), name="blog_atom_feed"),

    url(r'', include(wapps_common_urls)),
    url(r'', include(wagtail_urls)),
]


# if settings.DEBUG:
#     from django.conf.urls.static import static
#     from django.contrib.staticfiles.urls import staticfiles_urlpatterns
#
#     # Serve static and media files from development server
#     urlpatterns += staticfiles_urlpatterns()
#     urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
#
#     if getattr(settings, 'DEBUG_TOOLBAR', False):
#         import debug_toolbar
#         urlpatterns.insert(0, url(r'^__debug__/', include(debug_toolbar.urls)))
{'fraction_non_alphanumeric': 0.13202333435677002, 'fraction_numerical': 0.003070310101320233, 'mean_word_length': 4.859712230215828, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '3553725', 'n_tokens_mistral': 1147, 'n_tokens_neox': 1132, 'n_words': 218}