<commit_before>from django.conf.urls import url, include
from rest_framework import routers
from d4s2_api_v2 import api

router = routers.DefaultRouter()
router.register(r'deliveries', api.DeliveryViewSet, 'v2-delivery')
router.register(r'duke-ds-users', api.DDSUsersViewSet, 'v2-dukedsuser')
router.register(r'duke-ds-projects', api.DDSProjectsViewSet, 'v2-dukedsproject')
router.register(r'duke-ds-project-transfers', api.DDSProjectTransfersViewSet, 'v2-dukedsprojecttransfer')
router.register(r'users', api.UserViewSet, 'v2-user')
router.register(r's3-endpoints', api.S3EndpointViewSet, 'v2-s3endpoint')
router.register(r's3-users', api.S3UserViewSet, 'v2-s3user')
router.register(r's3-buckets', api.S3BucketViewSet, 'v2-s3bucket')
router.register(r's3-deliveries', api.S3DeliveryViewSet, 'v2-s3delivery')

urlpatterns = [
    url(r'^', include(router.urls)),
    url(r'delivery-preview', api.DeliveryPreviewView.as_view(), name='v2-delivery_preview')
]<commit_msg>Pluralize delivery-preview route for consistency<commit_after>from django.conf.urls import url, include
from rest_framework import routers
from d4s2_api_v2 import api

router = routers.DefaultRouter()
router.register(r'deliveries', api.DeliveryViewSet, 'v2-delivery')
router.register(r'duke-ds-users', api.DDSUsersViewSet, 'v2-dukedsuser')
router.register(r'duke-ds-projects', api.DDSProjectsViewSet, 'v2-dukedsproject')
router.register(r'duke-ds-project-transfers', api.DDSProjectTransfersViewSet, 'v2-dukedsprojecttransfer')
router.register(r'users', api.UserViewSet, 'v2-user')
router.register(r's3-endpoints', api.S3EndpointViewSet, 'v2-s3endpoint')
router.register(r's3-users', api.S3UserViewSet, 'v2-s3user')
router.register(r's3-buckets', api.S3BucketViewSet, 'v2-s3bucket')
router.register(r's3-deliveries', api.S3DeliveryViewSet, 'v2-s3delivery')

urlpatterns = [
    url(r'^', include(router.urls)),
    url(r'delivery-previews', api.DeliveryPreviewView.as_view(), name='v2-delivery_preview')
]
{'fraction_non_alphanumeric': 0.15060851926977686, 'fraction_numerical': 0.02535496957403651, 'mean_word_length': 7.968181818181818, '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': '5857923', 'n_tokens_mistral': 749, 'n_tokens_neox': 732, 'n_words': 100}