<commit_before>from api.v330.agencies.views import AgencyViewSet
from api.v330.astronaut.views import AstronautViewSet
from api.v330.config.launcher.views import LauncherConfigViewSet
from api.v330.config.spacecraft.views import SpacecraftConfigViewSet
from api.v330.docking_event.views import DockingEventViewSet
from api.v330.events.views import EventViewSet, PreviousEventViewSet, UpcomingEventViewSet
from api.v330.expedition.views import ExpeditionViewSet
from api.v330.launch.views import PreviousLaunchViewSet, UpcomingLaunchViewSet, LaunchViewSet
from api.v330.launcher.views import LauncherViewSet
from api.v330.spacecraft.flight.views import SpaceflightFlightViewSet
from api.v330.spacecraft.views import SpacecraftViewSet
from api.v330.spacestation.views import SpaceStationViewSet
from ..utils.base_router import Router


router = Router()
router.register(r'agencies', AgencyViewSet, base_name='agency')
router.register(r'astronaut', AstronautViewSet, base_name='astronaut')
router.register(r'config/launcher', LauncherConfigViewSet)
router.register(r'config/spacecraft', SpacecraftConfigViewSet)
router.register(r'docking_event', DockingEventViewSet)
router.register(r'event/previous', PreviousEventViewSet, base_name='events/previous')
router.register(r'expedition', ExpeditionViewSet, base_name='expedition')
router.register(r'launch/previous', PreviousLaunchViewSet, base_name='launch/previous')
router.register(r'launch/upcoming', UpcomingLaunchViewSet,  base_name='launch/upcoming')
router.register(r'launch', LaunchViewSet, base_name='launch')
router.register(r'launcher', LauncherViewSet, base_name='launcher')
router.register(r'spacestation', SpaceStationViewSet, base_name='spacestation')
router.register(r'spacecraft/flight', SpaceflightFlightViewSet, base_name='spacecraftflight')
router.register(r'spacecraft', SpacecraftViewSet, base_name='spacecraft')

api_urlpatterns = router.urls<commit_msg>Add upcoming/previous endpoints for Events.<commit_after>from api.v330.agencies.views import AgencyViewSet
from api.v330.astronaut.views import AstronautViewSet
from api.v330.config.launcher.views import LauncherConfigViewSet
from api.v330.config.spacecraft.views import SpacecraftConfigViewSet
from api.v330.docking_event.views import DockingEventViewSet
from api.v330.events.views import EventViewSet, PreviousEventViewSet, UpcomingEventViewSet
from api.v330.expedition.views import ExpeditionViewSet
from api.v330.launch.views import PreviousLaunchViewSet, UpcomingLaunchViewSet, LaunchViewSet
from api.v330.launcher.views import LauncherViewSet
from api.v330.spacecraft.flight.views import SpaceflightFlightViewSet
from api.v330.spacecraft.views import SpacecraftViewSet
from api.v330.spacestation.views import SpaceStationViewSet
from ..utils.base_router import Router


router = Router()
router.register(r'agencies', AgencyViewSet, base_name='agency')
router.register(r'astronaut', AstronautViewSet, base_name='astronaut')
router.register(r'config/launcher', LauncherConfigViewSet)
router.register(r'config/spacecraft', SpacecraftConfigViewSet)
router.register(r'docking_event', DockingEventViewSet)
router.register(r'event/previous', PreviousEventViewSet, base_name='events/previous')
router.register(r'event/upcoming', UpcomingEventViewSet, base_name='events/upcoming')
router.register(r'event', EventViewSet, base_name='events')
router.register(r'expedition', ExpeditionViewSet, base_name='expedition')
router.register(r'launch/previous', PreviousLaunchViewSet, base_name='launch/previous')
router.register(r'launch/upcoming', UpcomingLaunchViewSet,  base_name='launch/upcoming')
router.register(r'launch', LaunchViewSet, base_name='launch')
router.register(r'launcher', LauncherViewSet, base_name='launcher')
router.register(r'spacestation', SpaceStationViewSet, base_name='spacestation')
router.register(r'spacecraft/flight', SpaceflightFlightViewSet, base_name='spacecraftflight')
router.register(r'spacecraft', SpacecraftViewSet, base_name='spacecraft')

api_urlpatterns = router.urls
{'fraction_non_alphanumeric': 0.10104529616724739, 'fraction_numerical': 0.017919362867098058, 'mean_word_length': 10.257703081232494, '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': '5786908', 'n_tokens_mistral': 1328, 'n_tokens_neox': 1198, 'n_words': 207}