<commit_before>from django.conf.urls import include, url
from django.contrib import admin
from rest_framework import routers
import views

router = routers.DefaultRouter()
router.register(r'users', views.UserViewSet)
router.register(r'groups', views.GroupViewSet)

# adding router for public post
# router.register(r'posts', views.PostView)

urlpatterns = [
    # Examples:
    # url(r'^$', 'c404WebProject.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),
    
    # Specific post
    url(r'^', include(router.urls)),   
    # url(r'^posts/$', views.PostView.as_view()),
    url(r'^posts/(?P<pk>[^/.]+)/comments/$', views.CommentView.as_view()),
    url(r'^posts/(?P<pk>[^/.]+)/$', views.PostIDView.as_view()),

    url(r'^author/$', views.AuthorViewSet.as_view()),
    # Get all posts that author can see
    url(r'^author/posts/$', views.AuthorStream.as_view()),
    # Used for updating author profile.
    url(r'^author/(?P<pk>[^/.]+)/$', views.AuthorProfileUpdateView.as_view()),
    # Get all posts you can see from <authorID>
    url(r'^author/(?P<pk>[^/.]+)/posts/$', views.PersonalAuthorStream.as_view()),
    # Posts from specific Author
    # url(r'^author/(?P<pk>[^/.]+)/posts/$', views.SpecificPostView.as_view()),
    
    # Used for get the list of friends id or check the if an author is a friend of another author.
    url(r'^friends/(?P<pk>[^/.]+)/$', views.FriendsWith.as_view()),                     
    # Used for check 2 author is friend.
    url(r'^friends/(?P<id1>[^/.]+)/(?P<id2>[^/.]+)/$', views.FriendCheck.as_view()),
    url(r'^login/', views.Login.as_view()),
    # Used for sending friend requests.
    url(r'^friendrequest/$', views.FriendRequestView.as_view()), 
]
<commit_msg>Quick fix for get/post post<commit_after>from django.conf.urls import include, url
from django.contrib import admin
from rest_framework import routers
import views

router = routers.DefaultRouter()
router.register(r'users', views.UserViewSet)
router.register(r'groups', views.GroupViewSet)

# adding router for public post
router.register(r'posts', views.PostView)

urlpatterns = [
    # Examples:
    # url(r'^$', 'c404WebProject.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),
    
    # Specific post
    url(r'^', include(router.urls)),   
    # url(r'^posts/$', views.PostView.as_view()),
    url(r'^posts/(?P<pk>[^/.]+)/comments/$', views.CommentView.as_view()),
    url(r'^posts/(?P<pk>[^/.]+)/$', views.PostIDView.as_view()),

    url(r'^author/$', views.AuthorViewSet.as_view()),
    # Get all posts that author can see
    url(r'^author/posts/$', views.AuthorStream.as_view()),
    # Used for updating author profile.
    url(r'^author/(?P<pk>[^/.]+)/$', views.AuthorProfileUpdateView.as_view()),
    # Get all posts you can see from <authorID>
    url(r'^author/(?P<pk>[^/.]+)/posts/$', views.PersonalAuthorStream.as_view()),
    # Posts from specific Author
    # url(r'^author/(?P<pk>[^/.]+)/posts/$', views.SpecificPostView.as_view()),
    
    # Used for get the list of friends id or check the if an author is a friend of another author.
    url(r'^friends/(?P<pk>[^/.]+)/$', views.FriendsWith.as_view()),                     
    # Used for check 2 author is friend.
    url(r'^friends/(?P<id1>[^/.]+)/(?P<id2>[^/.]+)/$', views.FriendCheck.as_view()),
    url(r'^login/', views.Login.as_view()),
    # Used for sending friend requests.
    url(r'^friendrequest/$', views.FriendRequestView.as_view()), 
]

{'fraction_non_alphanumeric': 0.20195627157652474, 'fraction_numerical': 0.0034522439585730723, 'mean_word_length': 3.8493723849372383, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '7101139', 'n_tokens_mistral': 1222, 'n_tokens_neox': 1177, 'n_words': 242}