<commit_before>from django.conf.urls.defaults import patterns, url
from django.views.generic import list_detail

from meps import views
from meps.models import MEP, Country, Group, Committee, Deleguation, Party

country_dict = {'queryset': Country.objects.all(), 'slug_field': 'code', 'template_name': 'meps/container_detail.html'}
party_dict = {'queryset': Party.objects.all(), 'template_name': 'meps/container_detail.html'}
group_dict = {'queryset': Group.objects.all(), 'slug_field': 'abbreviation', 'template_name': 'meps/container_detail.html'}
deleguation_dict = {'queryset': Deleguation.objects.all(), 'template_name': 'meps/container_detail.html'}
committe_dict = {'queryset': Committee.objects.all(), 'slug_field': 'abbreviation', 'template_name': 'meps/container_detail.html'}
mep_dict = {'queryset': MEP.objects.all(), 'slug_field': 'key_name', 'template_object_name': 'mep'}

urlpatterns = patterns('',
    url(r'^names/$', list_detail.object_list, {'queryset': MEP.objects.filter(active=True)}, name='index_names'),<commit_msg>[fix] change import of Party in meps/urls.py<commit_after>from django.conf.urls.defaults import patterns, url
from django.views.generic import list_detail

from meps import views
from meps.models import MEP, Country, Group, Committee, Deleguation

from reps.models import Party

country_dict = {'queryset': Country.objects.all(), 'slug_field': 'code', 'template_name': 'meps/container_detail.html'}
party_dict = {'queryset': Party.objects.all(), 'template_name': 'meps/container_detail.html'}
group_dict = {'queryset': Group.objects.all(), 'slug_field': 'abbreviation', 'template_name': 'meps/container_detail.html'}
deleguation_dict = {'queryset': Deleguation.objects.all(), 'template_name': 'meps/container_detail.html'}
committe_dict = {'queryset': Committee.objects.all(), 'slug_field': 'abbreviation', 'template_name': 'meps/container_detail.html'}
mep_dict = {'queryset': MEP.objects.all(), 'slug_field': 'key_name', 'template_object_name': 'mep'}

urlpatterns = patterns('',
    url(r'^names/$', list_detail.object_list, {'queryset': MEP.objects.filter(active=True)}, name='index_names'),
{'fraction_non_alphanumeric': 0.16580796252927402, 'fraction_numerical': 0.0, 'mean_word_length': 7.974789915966387, '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': '718339', 'n_tokens_mistral': 681, 'n_tokens_neox': 683, 'n_words': 142}