<commit_before>import os
from django.conf.urls import url
from . import views

OBSCURE_URL = r'^{}$'.format(os.environ.get('OBSCURE_URL', 'this_should_be_in_env_var'))

urlpatterns = [
    url(r'^$', views.index, name='index'),
    url(OBSCURE_URL, views.obscure_dump_request_endpoint, name='dump_request'),
]<commit_msg>Add warning if OBSCURE_URL env var is not set<commit_after>import os
from django.conf.urls import url
from . import views


DUMMY_OBSCURE_URL = 'this_should_be_in_env_var'
OBSCURE_URL = os.environ.get('OBSCURE_URL', DUMMY_OBSCURE_URL)
if DUMMY_OBSCURE_URL == OBSCURE_URL:
    print("Warning: you should set OBSCURE_URL environment variable in this env\n\n")

OBSCURE_URL_PATTERN = r'^{}$'.format(os.environ.get('OBSCURE_URL', OBSCURE_URL))

urlpatterns = [
    url(r'^$', views.index, name='index'),
    url(OBSCURE_URL_PATTERN, views.obscure_dump_request_endpoint, name='dump_request'),
]
{'fraction_non_alphanumeric': 0.13076923076923078, 'fraction_numerical': 0.0, 'mean_word_length': 6.467213114754099, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4986639', 'n_tokens_mistral': 346, 'n_tokens_neox': 345, 'n_words': 64}