<commit_before>from django.conf.urls.defaults import *

from ecoapi.views import *


urlpatterns = patterns('ecoapi.views',
        (r'^/?$', TopLevelInterfaceView.as_view()),
        (r'^(?P<ver>[.0-9]+)/?$', InterfaceView.as_view()),
        (r'^(?P<ver>[.0-9]+)/(?P<type>[a-zA-Z_]+)/(?P<id_or_method>[a-zA-Z_]+)/?$', 
         ObjectOrClassMethodView.as_view()),
        (r'^(?P<ver>[.0-9]+)/(?P<type>[a-zA-Z_]+)/'
         r'(?P<id>[a-zA-Z_]+)/(?P<method>[a-zA-Z_]+)/?$', 
         InstanceMethodView.as_view()),
)
<commit_msg>fix ID regex in urls<commit_after>from django.conf.urls.defaults import *

from ecoapi.views import *


urlpatterns = patterns('ecoapi.views',
        (r'^/?$', TopLevelInterfaceView.as_view()),
        (r'^(?P<ver>[.0-9]+)/?$', InterfaceView.as_view()),
        (r'^(?P<ver>[.0-9]+)/(?P<type>[a-zA-Z_]+)/(?P<id_or_method>[a-zA-Z_]+)/?$', 
         ObjectOrClassMethodView.as_view()),
        (r'^(?P<ver>[.0-9]+)/(?P<type>[a-zA-Z_]+)/'
         r'(?P<id>[a-zA-Z0-9_]+)/(?P<method>[a-zA-Z_]+)/?$', 
         InstanceMethodView.as_view()),
)

{'fraction_non_alphanumeric': 0.29011194029850745, 'fraction_numerical': 0.013059701492537313, 'mean_word_length': 3.3975409836065573, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '2075556', 'n_tokens_mistral': 511, 'n_tokens_neox': 458, 'n_words': 38}