<commit_before># -*- coding: utf-8 -*-

"""Akvo RSR is covered by the GNU Affero General Public License.
See more details in the license.txt file located at the root folder of the
Akvo RSR module. For additional details on the GNU license please
see < http://www.gnu.org/licenses/agpl.html >.
"""
from __future__ import absolute_import
from django.conf.urls.defaults import patterns, url
from akvo.rsr import views_partner_sites as views
from django_counter.urls import urlpatterns as counter_urls


urlpatterns = patterns('',
    # Home
    url(r'^$', \
        views.HomeView.as_view(),
        name='home'),

    # Projects
    url(r'^(?P<project_id>\d+)/$',
        views.ProjectMainView.as_view(),
        name='project_main'),

    url(r'^(?P<project_id>\d+)/funding/$',
        views.ProjectFundingView.as_view(),
        name='project_funding'),

    # Project updates
    url(r'^(?P<project_id>\d+)/updates/$',
        views.ProjectUpdateListView.as_view(),
        name='update_list'),

    url(r'^project/(?P<project_id>\d+)/updates/(?P<update_id>\d+)/$',
        views.UpdateView.as_view(),
        name='update_main'),

    # Partners
    url(r'^partners/$', \
        views.PartnerListView.as_view(),
        name='partner_list'),

    url(r'^partners/(?P<partner_id>\d+)/$',
        views.PartnerView.as_view(),
        name='partner_main'),
)

urlpatterns += counter_urls
<commit_msg>[#18846725] Updated partner sites urls to match new views<commit_after># -*- coding: utf-8 -*-

"""Akvo RSR is covered by the GNU Affero General Public License.
See more details in the license.txt file located at the root folder of the
Akvo RSR module. For additional details on the GNU license please
see < http://www.gnu.org/licenses/agpl.html >.
"""
from __future__ import absolute_import
from django.conf.urls.defaults import patterns, url
from akvo.rsr import views_partner_sites as views
from django_counter.urls import urlpatterns as counter_urls


urlpatterns = patterns('',
    # Home
    url(r'^$', \
        views.HomeView.as_view(),
        name='home'),

    # Projects
    url(r'^(?P<project_id>\d+)/$',
        views.ProjectMainView.as_view(),
        name='project_main'),

    url(r'^(?P<project_id>\d+)/funding/$',
        views.ProjectFundingView.as_view(),
        name='project_funding'),

    # Project updates
    url(r'^(?P<project_id>\d+)/updates/$',
        views.ProjectUpdateListView.as_view(),
        name='update_list'),

    url(r'^project/(?P<project_id>\d+)/updates/(?P<update_id>\d+)/$',
        views.ProjectUpdateView.as_view(),
        name='update_main'),

    # Partners
    url(r'^partners/$', \
        views.PartnerListView.as_view(),
        name='partner_list'),

    url(r'^partners/(?P<partner_id>\d+)/$',
        views.PartnerView.as_view(),
        name='partner_main'),
)

urlpatterns += counter_urls

{'fraction_non_alphanumeric': 0.1539810592774465, 'fraction_numerical': 0.00350754121360926, 'mean_word_length': 3.3016591251885368, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4301569', 'n_tokens_mistral': 973, 'n_tokens_neox': 927, 'n_words': 192}