# Path: almostSignificant/views.py
# def overview(request):
# def runView(request, run_name):
# def projectView(request):
# def projectDetailView(request, project_name):
# def statistics(request):
# def runNotesEntry(request, runName):
# def projectNotesEntry(request, projectName):
# def datasetsAjax(request):
# def runAjax(request, run_name):
# def laneAjax(request, run_name, lane_number):
# def projectsAjax(request):
# def projectAjax(request, project_name):
# def sampleAjax(request, sample_id):
# def buildSampleDetails(sampleData):
# def buildTechDetails(sampleData):
# def buildContaminantsImage(sampleData):
# def buildContaminantsTable(sampleData):
# def buildFastQCDetails(sampleData):
# def buildTabsHTML(sample_id, sampleDetails, techDetails, contaminantsImage, contaminantsTable, fQCDetails):
# def runSummaryAjax(request, run_id):
# def buildAllLaneDetails(runData):
# def buildRunDetails(runData):
# def buildRunTabsHTML(run_id, runDetails, laneDetailsDict, runNotes):
# def ProjectDetailViewHTML(request, projectID):
# def stupidStats(response):
# def projectSummaryAjax(request, project_id):
# def buildProjectDetails(projectData):
# def buildProjectTabsHTML(project_id, projectDetails, projectNotes):
# def statisticsAjax(request):
# def statisticsSummaryAjax(request, runType):
# def gatherStatistics(runData):
# def buildStatisticsTabsHTMLwithoutFirstBaseReport(runType, htmlTable):
# def buildStatisticsTabsHTMLwithFirstBaseReport(runType, htmlTable):


from django.conf.urls import url
from almostSignificant import views
urlpatterns = [
    url(r'^$', views.overview,name="run"),
    url(r'^run/(\d{6}_[^/]+)/$', views.runView, name="runView"),
    url(r'^run/(\d{6}_[^/]+)/Ajax/$', views.runAjax), 
    url(r'^run/(\d{6}_[^/]+)/(\d)/Ajax/$', views.laneAjax), 
#
    url(r'^runs/Ajax/$', views.datasetsAjax),
    url(r'^runs/(\d+)/Ajax/$', views.runSummaryAjax),
    url(r'^runNotes/(\d{6}_[^/]+)/$', views.runNotesEntry), 
#
    url(r'^run/\d{6}_[^/]+/sample/(\d+)/Ajax/$', views.sampleAjax), 
#
    url(r'^project/(\d+)/id/Ajax/$', views.projectSummaryAjax), 
    url(r'^project/([^/]+)/Ajax/$', views.projectAjax, name="projectAjax"), 
    url(r'^project/$', views.projectView, name="project"),
    url(r'^project/Ajax/$', views.projectsAjax, name="projectsAjax"), 

# Path: almostSignificant/views.py
# def overview(request):
# def runView(request, run_name):
# def projectView(request):
# def projectDetailView(request, project_name):
# def statistics(request):
# def runNotesEntry(request, runName):
# def projectNotesEntry(request, projectName):
# def datasetsAjax(request):
# def runAjax(request, run_name):
# def laneAjax(request, run_name, lane_number):
# def projectsAjax(request):
# def projectAjax(request, project_name):
# def sampleAjax(request, sample_id):
# def buildSampleDetails(sampleData):
# def buildTechDetails(sampleData):
# def buildContaminantsImage(sampleData):
# def buildContaminantsTable(sampleData):
# def buildFastQCDetails(sampleData):
# def buildTabsHTML(sample_id, sampleDetails, techDetails, contaminantsImage, contaminantsTable, fQCDetails):
# def runSummaryAjax(request, run_id):
# def buildAllLaneDetails(runData):
# def buildRunDetails(runData):
# def buildRunTabsHTML(run_id, runDetails, laneDetailsDict, runNotes):
# def ProjectDetailViewHTML(request, projectID):
# def stupidStats(response):
# def projectSummaryAjax(request, project_id):
# def buildProjectDetails(projectData):
# def buildProjectTabsHTML(project_id, projectDetails, projectNotes):
# def statisticsAjax(request):
# def statisticsSummaryAjax(request, runType):
# def gatherStatistics(runData):
# def buildStatisticsTabsHTMLwithoutFirstBaseReport(runType, htmlTable):
# def buildStatisticsTabsHTMLwithFirstBaseReport(runType, htmlTable):


# Path: almostSignificant/urls.py
from django.conf.urls import url
from almostSignificant import views

urlpatterns = [
    url(r'^$', views.overview,name="run"),
    url(r'^run/(\d{6}_[^/]+)/$', views.runView, name="runView"),
    url(r'^run/(\d{6}_[^/]+)/Ajax/$', views.runAjax), 
    url(r'^run/(\d{6}_[^/]+)/(\d)/Ajax/$', views.laneAjax), 
#
    url(r'^runs/Ajax/$', views.datasetsAjax),
    url(r'^runs/(\d+)/Ajax/$', views.runSummaryAjax),
    url(r'^runNotes/(\d{6}_[^/]+)/$', views.runNotesEntry), 
#
    url(r'^run/\d{6}_[^/]+/sample/(\d+)/Ajax/$', views.sampleAjax), 
#
    url(r'^project/(\d+)/id/Ajax/$', views.projectSummaryAjax), 
    url(r'^project/([^/]+)/Ajax/$', views.projectAjax, name="projectAjax"), 
    url(r'^project/$', views.projectView, name="project"),
    url(r'^project/Ajax/$', views.projectsAjax, name="projectsAjax"), 

    url(r'^project/([^/]+)/$', views.projectDetailView, name="projectDetailView"),