<commit_before>from django.conf.urls import patterns, url, include
from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.http import HttpResponse, HttpResponseGone
from django.shortcuts import redirect
from django.template.base import add_to_builtins

from .djangopeople import views, api

add_to_builtins('django.templatetags.i18n')


def perm_redirect(url):
    return lambda req: redirect(url, permanent=True)

favicon = perm_redirect(
    '%sdjangopeople/img/favicon.ico' % settings.STATIC_URL
)

robots = lambda _: HttpResponse('User-agent: *\nDisallow:\n',
                                content_type='text/plain')
gone = lambda _: HttpResponseGone()

admin.autodiscover()

urlpatterns = patterns(
    '',
    url(r'^admin/', include(admin.site.urls), name='admin'),
    url(r'^$', views.index, name='index'),
    url(r'^login/$', 'django.contrib.auth.views.login',
        {'template_name': 'login.html'}, name='login'),
    url(r'^logout/$', views.logout, name='logout'),
    url(r'^about/$', views.about, name='about'),
    url(r'^recent/$', views.recent, name='recent'),

    url(r'^recover/$', views.recover, name='password_reset_recover'),
    url(r'^', include('password_reset.urls')),
    url(r'^signup/$', views.signup, name='signup'),
    url(r'^geonames/$', views.geonames, name='geonames'),

    url(r'^favicon.ico$', favicon),
    url(r'^robots.txt$', robots, name='robots'),
    url(r'^static/profiles/_thumbs/.*', gone, name='gone'),
    url(r'^static/img/.*', gone),

    #openid stuff
    url(
        r'^openid/$', 'djangopeople.django_openidconsumer.views.begin', {
            'sreg': 'email,nickname,fullname',
            'redirect_to': '/openid/complete/',
        }, name='openid_begin'),
    url(r'^openid/complete/$',
        'djangopeople.django_openidconsumer.views.complete',<commit_msg>remove autodiscover call<commit_after>from django.conf.urls import patterns, url, include
from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.http import HttpResponse, HttpResponseGone
from django.shortcuts import redirect
from django.template.base import add_to_builtins

from .djangopeople import views, api

add_to_builtins('django.templatetags.i18n')


def perm_redirect(url):
    return lambda req: redirect(url, permanent=True)

favicon = perm_redirect(
    '%sdjangopeople/img/favicon.ico' % settings.STATIC_URL
)

robots = lambda _: HttpResponse('User-agent: *\nDisallow:\n',
                                content_type='text/plain')
gone = lambda _: HttpResponseGone()

urlpatterns = patterns(
    '',
    url(r'^admin/', include(admin.site.urls), name='admin'),
    url(r'^$', views.index, name='index'),
    url(r'^login/$', 'django.contrib.auth.views.login',
        {'template_name': 'login.html'}, name='login'),
    url(r'^logout/$', views.logout, name='logout'),
    url(r'^about/$', views.about, name='about'),
    url(r'^recent/$', views.recent, name='recent'),

    url(r'^recover/$', views.recover, name='password_reset_recover'),
    url(r'^', include('password_reset.urls')),
    url(r'^signup/$', views.signup, name='signup'),
    url(r'^geonames/$', views.geonames, name='geonames'),

    url(r'^favicon.ico$', favicon),
    url(r'^robots.txt$', robots, name='robots'),
    url(r'^static/profiles/_thumbs/.*', gone, name='gone'),
    url(r'^static/img/.*', gone),

    #openid stuff
    url(
        r'^openid/$', 'djangopeople.django_openidconsumer.views.begin', {
            'sreg': 'email,nickname,fullname',
            'redirect_to': '/openid/complete/',
        }, name='openid_begin'),
    url(r'^openid/complete/$',
        'djangopeople.django_openidconsumer.views.complete',
{'fraction_non_alphanumeric': 0.16875800256081946, 'fraction_numerical': 0.001024327784891165, 'mean_word_length': 4.208, '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': '1736345', 'n_tokens_mistral': 1337, 'n_tokens_neox': 1272, 'n_words': 232}