<commit_before>from django.conf.urls import patterns, include, url
from django.conf import settings
from django.conf.urls.static import static
from django.views.generic import TemplateView

#import lsst.settings
from django.conf import settings

from lsst import views as lsstmon_views
#import lsst.views as lsstmon_views
import core.pandajob.views_support as core_lsstmon_support_views
#import core.pandajob.views as core_lsstmon_views
#import core.api.reprocessing.views as core_lsstmon_api_reprocessing_views

urlpatterns = patterns('',
    url(r'^$', lsstmon_views.mainPage, name='mainPage'),
    url(r'^$', lsstmon_views.mainPage, name='index'),
    url(r'^help/$', lsstmon_views.helpPage, name='helpPage'),
    url(r'^jobs/$', lsstmon_views.jobList, name='jobList'),
    url(r'^jobs/(.*)/$', lsstmon_views.jobList, name='jobList'),
    url(r'^jobs/(.*)/(.*)/$', lsstmon_views.jobList, name='jobList'),
    url(r'^job$', lsstmon_views.jobInfo, name='jobInfo'),
    url(r'^job/(.*)/$', lsstmon_views.jobInfo, name='jobInfo'),
    url(r'^job/(.*)/(.*)/$', lsstmon_views.jobInfo, name='jobInfo'),
    url(r'^users/$', lsstmon_views.userList, name='userList'),
    url(r'^user/(?P<user>.*)/$', lsstmon_views.userInfo, name='userInfo'),
    url(r'^user/$', lsstmon_views.userInfo, name='userInfo'),
    url(r'^sites/$', lsstmon_views.siteList, name='siteList'),
    url(r'^site/(?P<site>.*)/$', lsstmon_views.siteInfo, name='siteInfo'),
    url(r'^site/$', lsstmon_views.siteInfo, name='siteInfo'),
    url(r'^wns/(?P<site>.*)/$', lsstmon_views.wnInfo, name='wnInfo'),
    url(r'^wn/(?P<site>.*)/(?P<wnname>.*)/$', lsstmon_views.wnInfo, name='wnInfo'),
    url(r'^tasks/$', lsstmon_views.taskList, name='taskList'),
    url(r'^task$', lsstmon_views.taskInfo, name='taskInfo'),
    url(r'^task/$', lsstmon_views.taskInfo, name='taskInfo'),
    url(r'^errors/$', lsstmon_views.errorSummary, name='errorSummary'),
    url(r'^incidents/$', lsstmon_views.incidentList, name='incidentList'),
    url(r'^logger/$', lsstmon_views.pandaLogger, name='pandaLogger'),
    url(r'^task/(?P<jeditaskid>.*)/$', lsstmon_views.taskInfo, name='taskInfo'),
    url(r'^dash/$', lsstmon_views.dashboard, name='dashboard'),
    url(r'^dash/analysis/$', lsstmon_views.dashAnalysis, name='dashAnalysis'),
    url(r'^dash/production/$', lsstmon_views.dashProduction, name='dashProduction'),
    url(r'^workingGroups/$', lsstmon_views.workingGroups, name='workingGroups'),
    url(r'^fileInfo/$', lsstmon_views.fileInfo, name='fileInfo'),
    url(r'^fileList/$', lsstmon_views.fileList, name='fileList'),
    url(r'^datasetInfo/$', lsstmon_views.datasetInfo, name='datasetInfo'),
    url(r'^datasetList/$', lsstmon_views.datasetList, name='datasetList'),
    url(r'^workQueues/$', lsstmon_views.workQueues, name='workQueues'),


    ### filebrowser
    url(r'^filebrowser/', include('filebrowser.urls'), name='filebrowser'),
    ### PanDA Brokerage Monitor
    url(r'^pbm/', include('pbm.urls'), name='pbm'),
    url(r'^status_summary/', include('core.status_summary.urls'), name='status_summary'),

    ### support views for LSST
    url(r'^support/$', core_lsstmon_support_views.maxpandaid, name='supportRoot'),
    url(r'^support/maxpandaid/$', core_lsstmon_support_views.maxpandaid, name='supportMaxpandaid'),
    url(r'^support/jobinfouservohrs/(?P<vo>[-A-Za-z0-9_.+ @]+)/(?P<nhours>\d+)/$', core_lsstmon_support_views.jobUserOrig, name='supportJobUserVoHrs'),
    url(r'^support/jobinfouservo/(?P<vo>[-A-Za-z0-9_.+ @]+)/(?P<ndays>\d+)/$', core_lsstmon_support_views.jobUserDaysOrig, name='supportJobUserVo'),


    ### api
    url(r'^api/$', core_lsstmon_support_views.maxpandaid, name='supportRoot'),
#    url(r'^api/reprocessing/$', include('core.api.reprocessing.urls')),


    ### robots.txt
    url('^robots\.txt$', TemplateView.as_view(template_name='robots.txt', content_type='text/plain')),

) + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)

<commit_msg>add url for data product catalog prototyping<commit_after>from django.conf.urls import patterns, include, url
from django.conf import settings
from django.conf.urls.static import static
from django.views.generic import TemplateView

#import lsst.settings
from django.conf import settings

from lsst import views as lsstmon_views
from lsst import dpviews as dpviews
#import lsst.views as lsstmon_views
import core.pandajob.views_support as core_lsstmon_support_views
#import core.pandajob.views as core_lsstmon_views
#import core.api.reprocessing.views as core_lsstmon_api_reprocessing_views

urlpatterns = patterns('',
    url(r'^$', lsstmon_views.mainPage, name='mainPage'),
    url(r'^$', lsstmon_views.mainPage, name='index'),
    url(r'^help/$', lsstmon_views.helpPage, name='helpPage'),
    url(r'^jobs/$', lsstmon_views.jobList, name='jobList'),
    url(r'^jobs/(.*)/$', lsstmon_views.jobList, name='jobList'),
    url(r'^jobs/(.*)/(.*)/$', lsstmon_views.jobList, name='jobList'),
    url(r'^job$', lsstmon_views.jobInfo, name='jobInfo'),
    url(r'^job/(.*)/$', lsstmon_views.jobInfo, name='jobInfo'),
    url(r'^job/(.*)/(.*)/$', lsstmon_views.jobInfo, name='jobInfo'),
    url(r'^users/$', lsstmon_views.userList, name='userList'),
    url(r'^user/(?P<user>.*)/$', lsstmon_views.userInfo, name='userInfo'),
    url(r'^user/$', lsstmon_views.userInfo, name='userInfo'),
    url(r'^sites/$', lsstmon_views.siteList, name='siteList'),
    url(r'^site/(?P<site>.*)/$', lsstmon_views.siteInfo, name='siteInfo'),
    url(r'^site/$', lsstmon_views.siteInfo, name='siteInfo'),
    url(r'^wns/(?P<site>.*)/$', lsstmon_views.wnInfo, name='wnInfo'),
    url(r'^wn/(?P<site>.*)/(?P<wnname>.*)/$', lsstmon_views.wnInfo, name='wnInfo'),
    url(r'^tasks/$', lsstmon_views.taskList, name='taskList'),
    url(r'^task$', lsstmon_views.taskInfo, name='taskInfo'),
    url(r'^task/$', lsstmon_views.taskInfo, name='taskInfo'),
    url(r'^errors/$', lsstmon_views.errorSummary, name='errorSummary'),
    url(r'^incidents/$', lsstmon_views.incidentList, name='incidentList'),
    url(r'^logger/$', lsstmon_views.pandaLogger, name='pandaLogger'),
    url(r'^task/(?P<jeditaskid>.*)/$', lsstmon_views.taskInfo, name='taskInfo'),
    url(r'^dash/$', lsstmon_views.dashboard, name='dashboard'),
    url(r'^dash/analysis/$', lsstmon_views.dashAnalysis, name='dashAnalysis'),
    url(r'^dash/production/$', lsstmon_views.dashProduction, name='dashProduction'),
    url(r'^workingGroups/$', lsstmon_views.workingGroups, name='workingGroups'),
    url(r'^fileInfo/$', lsstmon_views.fileInfo, name='fileInfo'),
    url(r'^fileList/$', lsstmon_views.fileList, name='fileList'),
    url(r'^datasetInfo/$', lsstmon_views.datasetInfo, name='datasetInfo'),
    url(r'^datasetList/$', lsstmon_views.datasetList, name='datasetList'),
    url(r'^workQueues/$', lsstmon_views.workQueues, name='workQueues'),

    ### data product catalog prototyping                                                                                                                                                         
    url(r'^dp/$', dpviews.doRequest, name='doRequest'),

    ### filebrowser
    url(r'^filebrowser/', include('filebrowser.urls'), name='filebrowser'),
    ### PanDA Brokerage Monitor
    url(r'^pbm/', include('pbm.urls'), name='pbm'),
    url(r'^status_summary/', include('core.status_summary.urls'), name='status_summary'),

    ### support views for LSST
    url(r'^support/$', core_lsstmon_support_views.maxpandaid, name='supportRoot'),
    url(r'^support/maxpandaid/$', core_lsstmon_support_views.maxpandaid, name='supportMaxpandaid'),
    url(r'^support/jobinfouservohrs/(?P<vo>[-A-Za-z0-9_.+ @]+)/(?P<nhours>\d+)/$', core_lsstmon_support_views.jobUserOrig, name='supportJobUserVoHrs'),
    url(r'^support/jobinfouservo/(?P<vo>[-A-Za-z0-9_.+ @]+)/(?P<ndays>\d+)/$', core_lsstmon_support_views.jobUserDaysOrig, name='supportJobUserVo'),


    ### api
    url(r'^api/$', core_lsstmon_support_views.maxpandaid, name='supportRoot'),
#    url(r'^api/reprocessing/$', include('core.api.reprocessing.urls')),


    ### robots.txt
    url('^robots\.txt$', TemplateView.as_view(template_name='robots.txt', content_type='text/plain')),

) + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)


{'fraction_non_alphanumeric': 0.19800898385334467, 'fraction_numerical': 0.0009712273886123588, 'mean_word_length': 5.3466872110939905, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 7, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3456603', 'n_tokens_mistral': 3097, 'n_tokens_neox': 2902, 'n_words': 399}