<commit_before>from django.conf.urls import url
from django.conf.urls.static import static
from django.conf import settings
from django.contrib import admin

from hops import views


urlpatterns = [url(r'^admin/', admin.site.urls),

               url(r'^announcements/$',
                   views.AnnouncementListView.as_view(),
                   name='announcement-list'),
               url(r'^announcements/(?P<slug>[^/]+)/$',
                   views.AnnouncementDetailView.as_view(),
                   name='announcement-detail'),

               url(r'^gallery/$',
                   views.GalleryListView.as_view(),
                   name='gallery-list'),
               url(r'^gallery/(?P<slug>[^/]+)/$',
                   views.GalleryDetailView.as_view(),
                   name='gallery-detail'),


               url(r'^hoppy/$',
                   views.HoppyUpdateListView.as_view(),
                   name='hoppy-list'),
               url(r'^hoppy/(?P<slug>[^/]+)/$',
                   views.HoppyUpdateDetailView.as_view(),
                   name='hoppy-detail'),

               url(r'^newspaper/$',
                   views.NewspaperArchiveListView.as_view(),
                   name='newspaper-list'),

               url(r'^give/$',
                   views.GiveView.as_view(),
                   name='give'),

               url(r'^events/$',
                   views.CalendarView.as_view(),
                   name='events-list'),

               url(r'^events/(?P<slug>[^/]+)/$',
                   views.EventDetailView.as_view(),
                   name='event-detail'),

               url(r'^search/$', views.SearchView.as_view(), name='search'),

               url(r'^api/events/$', views.events, name='api:events'),

               url(r'^$', views.HomeView.as_view(), name='home')]

# only active in development
# webserver will override this
urlpatterns += static(settings.MEDIA_URL,
                      document_root=settings.MEDIA_ROOT)<commit_msg>Removes colon from url name<commit_after>from django.conf.urls import url
from django.conf.urls.static import static
from django.conf import settings
from django.contrib import admin

from hops import views


urlpatterns = [url(r'^admin/', admin.site.urls),

               url(r'^announcements/$',
                   views.AnnouncementListView.as_view(),
                   name='announcement-list'),
               url(r'^announcements/(?P<slug>[^/]+)/$',
                   views.AnnouncementDetailView.as_view(),
                   name='announcement-detail'),

               url(r'^gallery/$',
                   views.GalleryListView.as_view(),
                   name='gallery-list'),
               url(r'^gallery/(?P<slug>[^/]+)/$',
                   views.GalleryDetailView.as_view(),
                   name='gallery-detail'),


               url(r'^hoppy/$',
                   views.HoppyUpdateListView.as_view(),
                   name='hoppy-list'),
               url(r'^hoppy/(?P<slug>[^/]+)/$',
                   views.HoppyUpdateDetailView.as_view(),
                   name='hoppy-detail'),

               url(r'^newspaper/$',
                   views.NewspaperArchiveListView.as_view(),
                   name='newspaper-list'),

               url(r'^give/$',
                   views.GiveView.as_view(),
                   name='give'),

               url(r'^events/$',
                   views.CalendarView.as_view(),
                   name='events-list'),

               url(r'^events/(?P<slug>[^/]+)/$',
                   views.EventDetailView.as_view(),
                   name='event-detail'),

               url(r'^search/$', views.SearchView.as_view(), name='search'),

               url(r'^api/events/$', views.events, name='api-events'),

               url(r'^$', views.HomeView.as_view(), name='home')]

# only active in development
# webserver will override this
urlpatterns += static(settings.MEDIA_URL,
                      document_root=settings.MEDIA_ROOT)
{'fraction_non_alphanumeric': 0.15184815184815184, 'fraction_numerical': 0.0, 'mean_word_length': 1.641820580474934, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '7503811', 'n_tokens_mistral': 1186, 'n_tokens_neox': 1066, 'n_words': 149}