<commit_before>## Global URLconf module for the "OpenMunicipio" web application.
##
## Since some URL patterns may be machine-specific (think about static files served
## by Django in development setups), it's advisable to keep those URL patterns
## within a separate URLconf module, beginning with this import statement:
##
## .. code:: python
##
##     from opm_site.urls import * 
##
## This way, project-level URL patterns are transparently added to 
## machine-specific ones.
##
## A common naming scheme for these "overlay" URLconf modules is as follows:
##
## * ``local_urls.py`` -- for development machines
## * ``urls_staging.py`` -- for staging servers
## * ``urls_production.py`` -- for production servers


from django.conf import settings
from django.conf.urls.defaults import *

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

from om.models import Institution, Office, Company, Person
from django.views.generic.base import RedirectView
from django.views.generic.list import ListView
from django.views.generic.detail import DetailView
from opm_site.views import InstitutionDetailView, HomeView, InfoView

urlpatterns = patterns('',
  (r'^api/1.0/', include('om.api.urls')),
  (r'^admin/doc/', include('django.contrib.admindocs.urls')),
  (r'^admin/', include(admin.site.urls)),

  # home page
  (r'^$', HomeView.as_view()),  
  
  # info page
  (r'^info.html$', InfoView.as_view()),  

  (r'^persone/(?P<slug>[-\w]+).html$', DetailView.as_view(
    model=Person,
    context_object_name='person',
    template_name='person.html')),

  (r'^istituzioni.html$', ListView.as_view(
    model=Institution,
    template_name='institutions_list.html'
  )),
  (r'^istituzioni/(?P<slug>[-\w]+).html$', InstitutionDetailView.as_view(
    template_name='institution.html')),
    
  (r'^uffici.html$', ListView.as_view(
    model=Office,
    template_name='offices_list.html'
  )), 
  (r'^aziende.html$', ListView.as_view(
    model=Company,
    template_name='companies_list.html'
  )),

)<commit_msg>Changed URL patterns to comply with Django "standards".<commit_after>## Global URLconf module for the "OpenMunicipio" web application.
##
## Since some URL patterns may be machine-specific (think about static files served
## by Django in development setups), it's advisable to keep those URL patterns
## within a separate URLconf module, beginning with this import statement:
##
## .. code:: python
##
##     from opm_site.urls import * 
##
## This way, project-level URL patterns are transparently added to 
## machine-specific ones.
##
## A common naming scheme for these "overlay" URLconf modules is as follows:
##
## * ``local_urls.py`` -- for development machines
## * ``urls_staging.py`` -- for staging servers
## * ``urls_production.py`` -- for production servers


from django.conf import settings
from django.conf.urls.defaults import *

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

from om.models import Institution, Office, Company, Person
from django.views.generic.base import RedirectView
from django.views.generic.list import ListView
from django.views.generic.detail import DetailView
from opm_site.views import InstitutionDetailView, HomeView, InfoView

urlpatterns = patterns('',
  (r'^api/1.0/', include('om.api.urls')),
  (r'^admin/doc/', include('django.contrib.admindocs.urls')),
  (r'^admin/', include(admin.site.urls)),

  # home page
  (r'^$', HomeView.as_view()),  
  
  # info page
  (r'^info/$', InfoView.as_view()),  

  (r'^persone/(?P<slug>[-\w]+)/$', DetailView.as_view(
    model=Person,
    context_object_name='person',
    template_name='person_detail.html')),

  (r'^istituzioni/$', ListView.as_view(
    model=Institution,
    template_name='institution_list.html'
  )),
  (r'^istituzioni/(?P<slug>[-\w]+)/$', InstitutionDetailView.as_view(
    template_name='institution_detail.html')),
    
  (r'^uffici/$', ListView.as_view(
    model=Office,
    template_name='office_list.html'
  )), 
  (r'^aziende/$', ListView.as_view(
    model=Company,
    template_name='company_list.html'
  )),

)
{'fraction_non_alphanumeric': 0.1461946050096339, 'fraction_numerical': 0.0009633911368015414, 'mean_word_length': 4.589502018842531, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '7343785', 'n_tokens_mistral': 1357, 'n_tokens_neox': 1314, 'n_words': 337}