<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys, os
sys.path.insert(0, "/home/django-de/lib")
os.environ['DJANGO_SETTINGS_MODULE'] = "django_de.settings"

from django_de.apps.documentation.models import Release
from django_de.apps.documentation.views import get_documents
from django_de.generator import quick_publish, quick_delete, StaticGeneratorException

for release in Release.objects.all():
    urls = ["%s%s/" % (release.get_absolute_url(), doc) for doc in get_documents(release.version)]
    try:
        print "Generating static files.."
        quick_publish(urls)
    except StaticGeneratorException:
        print e
    else:
        print "done."
<commit_msg>umstellung von memcached zu static file generator für die dokumentationen mittels svn post-commit hook, yeah.<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys, os
sys.path.insert(0, "/home/django-de/lib")
os.environ['DJANGO_SETTINGS_MODULE'] = "django_de.settings"

from django_de.apps.documentation.models import Release
from django_de.apps.documentation.views import get_documents
from django_de.generator import quick_publish, quick_delete, StaticGeneratorException

for release in Release.objects.all():
    urls = ["%s%s/" % (release.get_absolute_url(), doc) for doc in get_documents(release.version)]
    try:
        print "Generating static files.."
        quick_publish(urls)
    except StaticGeneratorException, e:
        print e
    else:
        print "done."

{'fraction_non_alphanumeric': 0.11267605633802817, 'fraction_numerical': 0.0026827632461435278, 'mean_word_length': 4.109589041095891, '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': '1334150', 'n_tokens_mistral': 457, 'n_tokens_neox': 447, 'n_words': 115}