<commit_before>from django.conf.urls.defaults import *
from notebook.notes.models import Note, Tag

from django.contrib import databrowse

from django.views.generic import list_detail

from env_setting import MEDIA_ROOT, DB_ROOT

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

import settings
import os
import imp
import postman

#databrowse.site.register(Note)
#databrowse.site.register(Tag)



urlpatterns = patterns('',
    # Example:
    #(r'^notebook/', include('notebook.foo.urls')),
     
    (r'^messages/', include('postman.urls')),


    (r'^$','notebook.notes.views.root'),
    (r'^myadmin/doc/', include('django.contrib.admindocs.urls')),
    (r'^myadmin/', include('notebook.notes.admin.urls')),

    #TODO: maybe all urls for adding and updating shouldn't have a username in the url, and 
    #should get it from the request 
    (r'^user/bookmarkbook/bookmarks/addBookmark/', 'notebook.bookmarks.views.add_bookmark'), #for the add bookmark browser button 
    (r'^user/scrapbook/scraps/addScrap/', 'notebook.scraps.views.add_scrap'),  #for the add scrap browser button    

    #(r'^users/(?P<username>[^/]+)/$', 'notebook.social.views.wall'),
    (r'^social/(?P<username>[^/]+)/$', 'notebook.social.views.profile'),
    (r'^social/(?P<username>[^/]+)/addFriend/$', 'notebook.social.views.add_friend'),

#below seem not used
    (r'^users/(?P<username>[^/]+)/wall/snippets/$', 'notebook.social.views.wall_snippets'),
    (r'^users/(?P<username>[^/]+)/wall/bookmarks/$', 'notebook.social.views.wall_bookmarks'),
    (r'^users/(?P<username>[^/]+)/wall/scraps/$', 'notebook.social.views.wall_scraps'),
    (r'^groups/(?P<groupname>[^/]+)/$', 'notebook.social.views.group_index'),

    (r'^groups/(?P<groupname>[^/]+)/joinGroup/$', 'notebook.social.views.join_group'),
    (r'^groups/(?P<groupname>[^/]+)/admin/$', 'notebook.social.views.group_admin'),
    (r'^groups/(?P<groupname>[^/]+)/admin/deleteMember/$', 'notebook.social.views.group_delete_member'),<commit_msg>commented out lines related to postman due to server's problem in loading pagination module<commit_after>from django.conf.urls.defaults import *
from notebook.notes.models import Note, Tag

from django.contrib import databrowse

from django.views.generic import list_detail

from env_setting import MEDIA_ROOT, DB_ROOT

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

import settings
import os
import imp
#import postman

#databrowse.site.register(Note)
#databrowse.site.register(Tag)



urlpatterns = patterns('',
    # Example:
    #(r'^notebook/', include('notebook.foo.urls')),
     
    #(r'^messages/', include('postman.urls')),


    (r'^$','notebook.notes.views.root'),
    (r'^myadmin/doc/', include('django.contrib.admindocs.urls')),
    (r'^myadmin/', include('notebook.notes.admin.urls')),

    #TODO: maybe all urls for adding and updating shouldn't have a username in the url, and 
    #should get it from the request 
    (r'^user/bookmarkbook/bookmarks/addBookmark/', 'notebook.bookmarks.views.add_bookmark'), #for the add bookmark browser button 
    (r'^user/scrapbook/scraps/addScrap/', 'notebook.scraps.views.add_scrap'),  #for the add scrap browser button    

    #(r'^users/(?P<username>[^/]+)/$', 'notebook.social.views.wall'),
    (r'^social/(?P<username>[^/]+)/$', 'notebook.social.views.profile'),
    (r'^social/(?P<username>[^/]+)/addFriend/$', 'notebook.social.views.add_friend'),

#below seem not used
    (r'^users/(?P<username>[^/]+)/wall/snippets/$', 'notebook.social.views.wall_snippets'),
    (r'^users/(?P<username>[^/]+)/wall/bookmarks/$', 'notebook.social.views.wall_bookmarks'),
    (r'^users/(?P<username>[^/]+)/wall/scraps/$', 'notebook.social.views.wall_scraps'),
    (r'^groups/(?P<groupname>[^/]+)/$', 'notebook.social.views.group_index'),

    (r'^groups/(?P<groupname>[^/]+)/joinGroup/$', 'notebook.social.views.join_group'),
    (r'^groups/(?P<groupname>[^/]+)/admin/$', 'notebook.social.views.group_admin'),
    (r'^groups/(?P<groupname>[^/]+)/admin/deleteMember/$', 'notebook.social.views.group_delete_member'),
{'fraction_non_alphanumeric': 0.19831730769230768, 'fraction_numerical': 0.0, 'mean_word_length': 4.877118644067797, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '4161718', 'n_tokens_mistral': 1515, 'n_tokens_neox': 1431, 'n_words': 250}