<commit_before>﻿from django.conf.urls import url
from structure.views import *
from structure import views
from django.conf import settings
from django.views.generic import TemplateView
from django.views.decorators.cache import cache_page

urlpatterns = [
    url(r'^$', cache_page(60*60*24)(StructureBrowser.as_view()), name='structure_browser'),
    url(r'^g_protein_structure_browser$', cache_page(60*60*24)(GProteinStructureBrowser.as_view()), name='g_protein_structure_browser'),
    url(r'^browser$', RedirectBrowser, name='redirect_browser'),
    url(r'^selection_convert$', ConvertStructuresToProteins, name='convert'),
    url(r'^selection_convert_model$', ConvertStructureModelsToProteins, name='convert_mod'),
    url(r'^selection_convert_signprot_model$', ConvertStructureComplexSignprotToProteins, name='convert_signprot'),
    url(r'^hommod_download$', HommodDownload, name='hommod_download'),
    url(r'^complexmod_download$', ComplexmodDownload, name='complexmod_download'),
    url(r'^template_browser', TemplateBrowser.as_view(), name='structure_browser'),
    url(r'^template_selection', TemplateTargetSelection.as_view(), name='structure_browser'),
    url(r'^template_segment_selection', TemplateSegmentSelection.as_view(), name='structure_browser'),
    url(r'^statistics$', StructureStatistics.as_view(), name='structure_statistics'),
    url(r'^gprot_statistics$', StructureStatistics.as_view(origin='gprot'), name='structure_statistics'),
    url(r'^homology_models$', cache_page(60*60*24)(ServeHomologyModels.as_view()), name='homology_models'),
    url(r'^complex_models$', cache_page(60*60*24)(ServeComplexModels.as_view()), name='complex_models'),
    url(r'^model_statistics$', cache_page(60*60*24)(ServeModelStatistics.as_view()), name='model_statistics'),
    # url(r'^pdb_download_index$', PDBClean.as_view(), name='pdb_download'),
    url(r'pdb_segment_selection', PDBSegmentSelection.as_view(), name='pdb_download'),
    url(r'^pdb_download$', PDBClean.as_view(), name='pdb_download'),
    url(r'^pdb_download_custom$', PDBClean.as_view(), name='pdb_download_custom'),
    url(r'^pdb_download/(?P<substructure>\w+)$', PDBDownload.as_view(), name='pdb_download'),<commit_msg>FIX: re-added cache for test-server update<commit_after>﻿from django.conf.urls import url
from structure.views import *
from structure import views
from django.conf import settings
from django.views.generic import TemplateView
from django.views.decorators.cache import cache_page

urlpatterns = [
    url(r'^$', cache_page(60*60*24)(StructureBrowser.as_view()), name='structure_browser'),
    url(r'^g_protein_structure_browser$', cache_page(60*60*24)(GProteinStructureBrowser.as_view()), name='g_protein_structure_browser'),
    url(r'^browser$', RedirectBrowser, name='redirect_browser'),
    url(r'^selection_convert$', ConvertStructuresToProteins, name='convert'),
    url(r'^selection_convert_model$', ConvertStructureModelsToProteins, name='convert_mod'),
    url(r'^selection_convert_signprot_model$', ConvertStructureComplexSignprotToProteins, name='convert_signprot'),
    url(r'^hommod_download$', HommodDownload, name='hommod_download'),
    url(r'^complexmod_download$', ComplexmodDownload, name='complexmod_download'),
    url(r'^template_browser', TemplateBrowser.as_view(), name='structure_browser'),
    url(r'^template_selection', TemplateTargetSelection.as_view(), name='structure_browser'),
    url(r'^template_segment_selection', TemplateSegmentSelection.as_view(), name='structure_browser'),
    url(r'^statistics$', cache_page(60*60*24)StructureStatistics.as_view(), name='structure_statistics'),
    url(r'^gprot_statistics$', cache_page(60*60*24)StructureStatistics.as_view(origin='gprot'), name='structure_statistics'),
    url(r'^homology_models$', cache_page(60*60*24)(ServeHomologyModels.as_view()), name='homology_models'),
    url(r'^complex_models$', cache_page(60*60*24)(ServeComplexModels.as_view()), name='complex_models'),
    url(r'^model_statistics$', cache_page(60*60*24)(ServeModelStatistics.as_view()), name='model_statistics'),
    # url(r'^pdb_download_index$', PDBClean.as_view(), name='pdb_download'),
    url(r'pdb_segment_selection', PDBSegmentSelection.as_view(), name='pdb_download'),
    url(r'^pdb_download$', PDBClean.as_view(), name='pdb_download'),
    url(r'^pdb_download_custom$', PDBClean.as_view(), name='pdb_download_custom'),
    url(r'^pdb_download/(?P<substructure>\w+)$', PDBDownload.as_view(), name='pdb_download'),
{'fraction_non_alphanumeric': 0.15845776688210386, 'fraction_numerical': 0.016046356139959885, 'mean_word_length': 9.946341463414635, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 32, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3695720', 'n_tokens_mistral': 1479, 'n_tokens_neox': 1406, 'n_words': 178}