<commit_before>from django.conf.urls import patterns, url, include
from rest_framework_jwt.views import refresh_jwt_token, obtain_jwt_token
from .views.rides import RidesList, RideDetails, RideRidersList, RideRiderDetails, RideRiderCharge, RideSponsorsList, RideRiderFundraiser
from .views.riders import RidersList, RiderProfile, RiderRides
from .views.chapters import ChaptersList, ChapterDetails, ChapterMembersList
from .views.auth import PasswordChange, PasswordReset, PasswordResetConfirm, TokenExchange
from .views.sponsors import SponsorsList, SponsorDetails
from .views.fundraisers import FundraisersList


auth_urls = [
    url(r'^token-exchange', TokenExchange.as_view()),
    url(r'^token-refresh', refresh_jwt_token),
    url(r'^token', obtain_jwt_token),
    url(r'^password/change', PasswordChange.as_view(), name='password-change'),
    url(r'^password/reset', PasswordReset.as_view(), name='password-reset'),
    url(r'^password/reset/confirm', PasswordResetConfirm.as_view(), name='password_reset_confirm')
]

ride_urls = [
    url(r'^(?P<id>\d+)/riders/(?P<rider_id>\d+)/fundraiser', RideRiderFundraiser.as_view(), name='ride-rider-fundraiser'),
    url(r'^(?P<id>\d+)/riders/(?P<rider_id>\d+)/charge', RideRiderCharge.as_view(), name='ride-rider-charge'),
    url(r'^(?P<id>\d+)/riders/(?P<rider_id>\d+)', RideRiderDetails.as_view(), name='ride-rider-details'),
    url(r'^(?P<id>\d+)/riders', RideRidersList.as_view(), name='ride-riders'),
    url(r'^(?P<id>\d+)/sponsors', RideSponsorsList.as_view(), name='ride-sponsors'),
    url(r'^(?P<id>\d+)', RideDetails.as_view(), name='ride-details'),
    url(r'^$', RidesList.as_view(), name='rides-list')
]

rider_urls = [
    url(r'^(?P<id>\d+)/rides', RiderRides.as_view(), name='rider-rides'),<commit_msg>Change token refresh and exchange api endpoints<commit_after>from django.conf.urls import patterns, url, include
from rest_framework_jwt.views import refresh_jwt_token, obtain_jwt_token
from .views.rides import RidesList, RideDetails, RideRidersList, RideRiderDetails, RideRiderCharge, RideSponsorsList, RideRiderFundraiser
from .views.riders import RidersList, RiderProfile, RiderRides
from .views.chapters import ChaptersList, ChapterDetails, ChapterMembersList
from .views.auth import PasswordChange, PasswordReset, PasswordResetConfirm, TokenExchange
from .views.sponsors import SponsorsList, SponsorDetails
from .views.fundraisers import FundraisersList


auth_urls = [
    url(r'^token/exchange', TokenExchange.as_view()),
    url(r'^token/refresh', refresh_jwt_token),
    url(r'^token', obtain_jwt_token),
    url(r'^password/change', PasswordChange.as_view(), name='password-change'),
    url(r'^password/reset', PasswordReset.as_view(), name='password-reset'),
    url(r'^password/reset/confirm', PasswordResetConfirm.as_view(), name='password_reset_confirm')
]

ride_urls = [
    url(r'^(?P<id>\d+)/riders/(?P<rider_id>\d+)/fundraiser', RideRiderFundraiser.as_view(), name='ride-rider-fundraiser'),
    url(r'^(?P<id>\d+)/riders/(?P<rider_id>\d+)/charge', RideRiderCharge.as_view(), name='ride-rider-charge'),
    url(r'^(?P<id>\d+)/riders/(?P<rider_id>\d+)', RideRiderDetails.as_view(), name='ride-rider-details'),
    url(r'^(?P<id>\d+)/riders', RideRidersList.as_view(), name='ride-riders'),
    url(r'^(?P<id>\d+)/sponsors', RideSponsorsList.as_view(), name='ride-sponsors'),
    url(r'^(?P<id>\d+)', RideDetails.as_view(), name='ride-details'),
    url(r'^$', RidesList.as_view(), name='rides-list')
]

rider_urls = [
    url(r'^(?P<id>\d+)/rides', RiderRides.as_view(), name='rider-rides'),
{'fraction_non_alphanumeric': 0.1787709497206704, 'fraction_numerical': 0.0, 'mean_word_length': 6.835886214442013, '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': '6770559', 'n_tokens_mistral': 1342, 'n_tokens_neox': 1262, 'n_words': 187}