<commit_before>from django.conf.urls import patterns, url
from sensordatainterface.views import edit_views

urlpatterns = patterns('',
                        # Site create/update/delete
                        url(r'^sites/create-site/(?:(?P<site_id>\d+)/)?$', edit_views.edit_site, name='create_site'),
                        url(r'^sites/delete-site/(?P<site_id>\d+)/$', edit_views.delete_site, name='delete_site'),

                        # Equipment create/update/delete
                        url(r'^inventory/create-equipment/(?:(?P<equipment_id>\d+)/)?$', edit_views.edit_equipment,
                           name='create_equipment'),  # would it be useful to have separate create and update urls?
                        url(r'^inventory/delete-equipment/(?P<equipment_id>\d+)/$', edit_views.delete_equipment,
                           name='delete_equipment'),

                        # Models create/update/delete
                        url(r'^inventory/create-model/(?:(?P<model_id>\d+)/)?$', edit_views.edit_model,
                           name='create_model'),  # would it be useful to have separate create and update urls?
                        url(r'^inventory/delete-model/(?P<model_id>\d+)/$', edit_views.delete_model,
                           name='delete_model'),

                        url(r'^inventory/create-factory-service/(?:(?P<bridge_id>\d+)/)?$', edit_views.edit_factory_service_event,
                        name='create_factory_service'),
                        url(r'^inventory/delete-factory-service/(?P<bridge_id>\d+)/$', edit_views.delete_factory_service_event,
                        name='delete_factory_service'),

                        url(r'^inventory/create-sensor-output-variable/(?:(?P<outputvar_id>\d+)/)?$', edit_views.edit_output_variable,
                        name='create_output_variable'),
                        url(r'^inventory/delete-sensor-output-variable/(?P<outputvar_id>\d+)/$', edit_views.delete_output_variable,
                        name='delete_output_variable'),

                        url(r'^inventory/create-sensor-output-variable/site/(?P<site_id>\d+)/(?:(?P<outputvar_id>\d+)/)?$', edit_views.edit_output_variable_site,
                        name='create_output_variable_site'),

                       url(r'^inventory/create-sensor-output-variable/deployment/(?P<site_id>\d+)/(?P<deployment>\d+)/(?:(?P<outputvar_id>\d+)/)?$', edit_views.edit_output_variable_site,
                        name='create_output_variable_deployment'),

                        url(r'^vocabulary/create-person/(?:(?P<affiliation_id>\d+)/)?$', edit_views.edit_person,
                        name='create_person'),
                        url(r'^vocabulary/delete-person/(?P<affiliation_id>\d+)/$', edit_views.delete_person,
                        name='delete_person'),

                        url(r'^vocabulary/create-vendor/(?:(?P<organization_id>\d+)/)?$', edit_views.edit_vendor,
                        name='create_vendor'),
                        url(r'^vocabulary/delete-vendor/(?P<organization_id>\d+)/$', edit_views.delete_vendor,
                        name='delete_vendor'),

                        url(r'^vocabulary/create-person/(?:(?P<affiliation_id>\d+)/)?$', edit_views.edit_person,
                        name='create_person'),
                        url(r'^vocabulary/delete-person/(?P<affiliation_id>\d+)/$', edit_views.delete_person,
                        name='delete_person'),

                        url(r'^vocabulary/create-calibration-standard/(?:(?P<reference_val_id>\d+)/)?$', edit_views.edit_calibration_standard,
                        name='create_calibration_standard'),
                        url(r'^vocabulary/delete-calibration-standard/(?P<reference_val_id>\d+)/$', edit_views.delete_calibration_standard,
                        name='delete_calibration_standard'),

                        url(r'^vocabulary/create-calibration-method/(?:(?P<method_id>\d+)/)?$', edit_views.edit_calibration_method,
                        name='create_calibration_method'),
                        url(r'^vocabulary/delete-calibration-method/(?P<method_id>\d+)/$', edit_views.delete_calibration_method,
                        name='delete_calibration_method'),

                        url(r'^site-visits/create-site-visit/(?:(?P<action_id>\d+)/)?$', edit_views.edit_site_visit,
                        name='create_site_visit'),
                        # url(r'^vocabulary/delete-calibration-method/(?P<method_id>\d+)/$', edit_views.delete_calibration_method,
                        # name='delete_calibration_method'),
                        url(r'^site-visits/create-site-visit/summary/(?:(?P<action_id>\d+)/)?$', edit_views.edit_site_visit_summary,
                        name='create_site_visit_summary'),
)<commit_msg>deletion of site visit implemented<commit_after>from django.conf.urls import patterns, url
from sensordatainterface.views import edit_views

urlpatterns = patterns('',
                        # Site create/update/delete
                        url(r'^sites/create-site/(?:(?P<site_id>\d+)/)?$', edit_views.edit_site, name='create_site'),
                        url(r'^sites/delete-site/(?P<site_id>\d+)/$', edit_views.delete_site, name='delete_site'),

                        # Equipment create/update/delete
                        url(r'^inventory/create-equipment/(?:(?P<equipment_id>\d+)/)?$', edit_views.edit_equipment,
                           name='create_equipment'),  # would it be useful to have separate create and update urls?
                        url(r'^inventory/delete-equipment/(?P<equipment_id>\d+)/$', edit_views.delete_equipment,
                           name='delete_equipment'),

                        # Models create/update/delete
                        url(r'^inventory/create-model/(?:(?P<model_id>\d+)/)?$', edit_views.edit_model,
                           name='create_model'),  # would it be useful to have separate create and update urls?
                        url(r'^inventory/delete-model/(?P<model_id>\d+)/$', edit_views.delete_model,
                           name='delete_model'),

                        url(r'^inventory/create-factory-service/(?:(?P<bridge_id>\d+)/)?$', edit_views.edit_factory_service_event,
                        name='create_factory_service'),
                        url(r'^inventory/delete-factory-service/(?P<bridge_id>\d+)/$', edit_views.delete_factory_service_event,
                        name='delete_factory_service'),

                        url(r'^inventory/create-sensor-output-variable/(?:(?P<outputvar_id>\d+)/)?$', edit_views.edit_output_variable,
                        name='create_output_variable'),
                        url(r'^inventory/delete-sensor-output-variable/(?P<outputvar_id>\d+)/$', edit_views.delete_output_variable,
                        name='delete_output_variable'),

                        url(r'^inventory/create-sensor-output-variable/site/(?P<site_id>\d+)/(?:(?P<outputvar_id>\d+)/)?$', edit_views.edit_output_variable_site,
                        name='create_output_variable_site'),

                       url(r'^inventory/create-sensor-output-variable/deployment/(?P<site_id>\d+)/(?P<deployment>\d+)/(?:(?P<outputvar_id>\d+)/)?$', edit_views.edit_output_variable_site,
                        name='create_output_variable_deployment'),

                        url(r'^vocabulary/create-person/(?:(?P<affiliation_id>\d+)/)?$', edit_views.edit_person,
                        name='create_person'),
                        url(r'^vocabulary/delete-person/(?P<affiliation_id>\d+)/$', edit_views.delete_person,
                        name='delete_person'),

                        url(r'^vocabulary/create-vendor/(?:(?P<organization_id>\d+)/)?$', edit_views.edit_vendor,
                        name='create_vendor'),
                        url(r'^vocabulary/delete-vendor/(?P<organization_id>\d+)/$', edit_views.delete_vendor,
                        name='delete_vendor'),

                        url(r'^vocabulary/create-person/(?:(?P<affiliation_id>\d+)/)?$', edit_views.edit_person,
                        name='create_person'),
                        url(r'^vocabulary/delete-person/(?P<affiliation_id>\d+)/$', edit_views.delete_person,
                        name='delete_person'),

                        url(r'^vocabulary/create-calibration-standard/(?:(?P<reference_val_id>\d+)/)?$', edit_views.edit_calibration_standard,
                        name='create_calibration_standard'),
                        url(r'^vocabulary/delete-calibration-standard/(?P<reference_val_id>\d+)/$', edit_views.delete_calibration_standard,
                        name='delete_calibration_standard'),

                        url(r'^vocabulary/create-calibration-method/(?:(?P<method_id>\d+)/)?$', edit_views.edit_calibration_method,
                        name='create_calibration_method'),
                        url(r'^vocabulary/delete-calibration-method/(?P<method_id>\d+)/$', edit_views.delete_calibration_method,
                        name='delete_calibration_method'),

                        url(r'^site-visits/create-site-visit/(?:(?P<action_id>\d+)/)?$', edit_views.edit_site_visit,
                        name='create_site_visit'),
                        url(r'^site-visits/delete-site-visit/(?:(?P<action_id>\d+)/)?$', edit_views.delete_site_visit,
                        name='delete_site_visit'),
                        # url(r'^vocabulary/delete-calibration-method/(?P<method_id>\d+)/$', edit_views.delete_calibration_method,
                        # name='delete_calibration_method'),
                        url(r'^site-visits/create-site-visit/summary/(?:(?P<action_id>\d+)/)?$', edit_views.edit_site_visit_summary,
                        name='create_site_visit_summary'),
)
{'fraction_non_alphanumeric': 0.1540099361249113, 'fraction_numerical': 0.0, 'mean_word_length': 2.099937146448774, 'pattern_counts': {'":': 0, '<': 60, '<?xml version=': 0, '>': 60, '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': '1874698', 'n_tokens_mistral': 2970, 'n_tokens_neox': 2768, 'n_words': 235}