<commit_before>import os
from django.conf.urls.defaults import *
from django.views.generic.simple import direct_to_template
from django.views.decorators.cache import cache_page
from django.contrib.sitemaps import GenericSitemap
from django.contrib.sitemaps.views import sitemap
from django.conf import settings

from django_de.sitemaps import StaticFileSitemap
from django_de.apps.documentation.views import get_documents

static_urls = (
    '/',
    '/trac/',
    '/authors/',
    '/download/',
    '/imprint/',
    '/participate/',
    '/documentation/',
    # '/documentation/overview/',
    # '/documentation/install/',
    # '/documentation/tutorial01/',
    # '/documentation/faq/',
    # '/documentation/webdesign/',
    # '/documentation/shortcuts/',
    # '/documentation/settings/',
    # '/documentation/redirects/',
    # '/documentation/sites/',
    # '/documentation/api_stability/',
    # '/documentation/documentation/',
    # '/documentation/outputting_csv/',
    # '/documentation/add_ons/',
    # '/documentation/request_response/',
    # '/documentation/generic_views/',
    # '/documentation/url_dispatch/'
) + ["/documentation/%s/" % document for document in get_documents()]

sitemaps = {
    'static': StaticFileSitemap(static_urls, priority=0.5, changefreq='daily')
}

cache_period = 60*60
urlpatterns = patterns('',
    (r'^$', cache_page(direct_to_template, cache_period), {'template': 'homepage.html'}),
    (r'^download/', cache_page(direct_to_template, cache_period), {'template': 'download.html'}),
    (r'^imprint/', cache_page(direct_to_template, cache_period), {'template': 'impressum.html'}),
    (r'^participate/', cache_page(direct_to_template, cache_period), {'template': 'participate.html'}),
    (r'^admin/', include('django.contrib.admin.urls')),
    (r'^documentation/', include('django_de.apps.documentation.urls')),
    (r'^authors/', include('django_de.apps.authors.urls')),<commit_msg>automatischere staticsitemap generierung und andere anpassungen<commit_after>import os
from django.conf.urls.defaults import *
from django.views.generic.simple import direct_to_template
from django.views.decorators.cache import cache_page
from django.contrib.sitemaps import GenericSitemap
from django.contrib.sitemaps.views import sitemap
from django.conf import settings

from django_de.sitemaps import StaticFileSitemap
from django_de.apps.documentation.views import get_documents

static_urls = (
    '/',
    '/trac/',
    '/authors/',
    '/download/',
    '/imprint/',
    '/participate/',
    '/documentation/',
    # '/documentation/overview/',
    # '/documentation/install/',
    # '/documentation/tutorial01/',
    # '/documentation/faq/',
    # '/documentation/webdesign/',
    # '/documentation/shortcuts/',
    # '/documentation/settings/',
    # '/documentation/redirects/',
    # '/documentation/sites/',
    # '/documentation/api_stability/',
    # '/documentation/documentation/',
    # '/documentation/outputting_csv/',
    # '/documentation/add_ons/',
    # '/documentation/request_response/',
    # '/documentation/generic_views/',
    # '/documentation/url_dispatch/'
) + tuple(["/documentation/%s/" % document for document in get_documents()])

sitemaps = {
    'static': StaticFileSitemap(static_urls, priority=0.5, changefreq='daily')
}

cache_period = 60*60
urlpatterns = patterns('',
    (r'^$', cache_page(direct_to_template, cache_period), {'template': 'homepage.html'}),
    (r'^download/', cache_page(direct_to_template, cache_period), {'template': 'download.html'}),
    (r'^imprint/', cache_page(direct_to_template, cache_period), {'template': 'impressum.html'}),
    (r'^participate/', cache_page(direct_to_template, cache_period), {'template': 'participate.html'}),
    (r'^admin/', include('django.contrib.admin.urls')),
    (r'^documentation/', include('django_de.apps.documentation.urls')),
    (r'^authors/', include('django_de.apps.authors.urls')),
{'fraction_non_alphanumeric': 0.16883448099974496, 'fraction_numerical': 0.00408059168579444, 'mean_word_length': 4.477653631284916, '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': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5065172', 'n_tokens_mistral': 1294, 'n_tokens_neox': 1209, 'n_words': 198}