<commit_before>from django.conf.urls.defaults import *
from django.views.generic.simple import redirect_to

urlpatterns = patterns('doit.views',
    (r'^(?P<dbname>\w+)/$', 'source_index'),

    (r'^(?P<dbname>\w+)/lowscorers/$', 'lowscoremapper'),
    (r'^(?P<dbname>\w+)/sources/(?P<sid>\d+)/map$', 'mapper'),
    (r'^(?P<dbname>\w+)/sources/(?P<sid>\d+)/process/(?P<method_index>[0-4])/', 'source_processor'),
    (r'^(?P<dbname>\w+)/fields/(?P<comp_op>(like|named))/(?P<field_name>\w+)/map$', 'mapper_by_field_name'),
    (r'^(?P<dbname>\w+)/save$', 'mapper_results'),

    (r'^(?P<dbname>\w+)/fields/(?P<fid>\d+)/$', redirect_to, {'url': 'summary',}),
    (r'^(?P<dbname>\w+)/fields/(?P<fid>\d+)/candidates/$', 'field_candidates'),
    (r'^(?P<dbname>\w+)/fields/(?P<fid>\d+)/summary$', 'detail_summary'),
    (r'^(?P<dbname>\w+)/fields/(?P<fid>\d+)/values/$', redirect_to, {'url': 'examples',}),
    (r'^(?P<dbname>\w+)/fields/(?P<fid>\d+)/values/examples$', 'detail_examples'),
    (r'^(?P<dbname>\w+)/fields/(?P<fid>\d+)/values/shared$', 'detail_shared'),
    (r'^(?P<dbname>\w+)/fields/(?P<fid>\d+)/values/distro$', 'detail_distro'),
    (r'^(?P<dbname>\w+)/fields/(?P<fid>\d+)/scores$', 'detail_scoring'),
)<commit_msg>added NEDBS demo features: source browser, table viewer, etc.<commit_after>from django.conf.urls.defaults import *
from django.views.generic.simple import redirect_to

urlpatterns = patterns('doit.views',
    (r'^templates/viewTable', 'viewTable_template'),
    (r'^(?P<dbname>\w+)/$', 'source_index'),

    (r'^(?P<dbname>\w+)/lowscorers/$', 'lowscoremapper'),
    (r'^(?P<dbname>\w+)/sources/(?P<sid>\d+)/map$', 'mapper'),
    (r'^(?P<dbname>\w+)/sources/(?P<sid>\d+)/data', 'source_data'),
    (r'^(?P<dbname>\w+)/sources/(?P<sid>\d+)/table', 'source_table'),
    (r'^(?P<dbname>\w+)/sources/(?P<sid>\d+)/entities', 'source_entities'),
    (r'^(?P<dbname>\w+)/sources/(?P<sid>\d+)/process/(?P<method_index>[0-4])/', 'source_processor'),
    (r'^(?P<dbname>\w+)/fields/(?P<comp_op>(like|named))/(?P<field_name>\w+)/map$', 'mapper_by_field_name'),
    (r'^(?P<dbname>\w+)/save$', 'mapper_results'),

    (r'^(?P<dbname>\w+)/fields/(?P<fid>\d+)/$', redirect_to, {'url': 'summary',}),
    (r'^(?P<dbname>\w+)/fields/(?P<fid>\d+)/candidates/$', 'field_candidates'),
    (r'^(?P<dbname>\w+)/fields/(?P<fid>\d+)/summary$', 'detail_summary'),
    (r'^(?P<dbname>\w+)/fields/(?P<fid>\d+)/values/$', redirect_to, {'url': 'examples',}),
    (r'^(?P<dbname>\w+)/fields/(?P<fid>\d+)/values/examples$', 'detail_examples'),
    (r'^(?P<dbname>\w+)/fields/(?P<fid>\d+)/values/shared$', 'detail_shared'),
    (r'^(?P<dbname>\w+)/fields/(?P<fid>\d+)/values/distro$', 'detail_distro'),
    (r'^(?P<dbname>\w+)/fields/(?P<fid>\d+)/scores$', 'detail_scoring'),
)
{'fraction_non_alphanumeric': 0.3260007212405337, 'fraction_numerical': 0.00144248106743599, 'mean_word_length': 5.765853658536585, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 63, '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': '7187818', 'n_tokens_mistral': 1261, 'n_tokens_neox': 1208, 'n_words': 98}