def METHOD_NAME(request):
    """
    Export application tokens arranged by application on OAuth pages.
    """
    if request.user.is_authenticated:
        try:
            resolve_match = resolve(request.path)
        except Resolver404:
            pass
        else:
            if resolve_match.namespaces == ["oauth2_provider"] and resolve_match.url_name == "authorized-token-list":
                applications_tokens = [
                    (application, application.accesstoken_set.filter(user=request.user))
                    for application in CSLApplication.objects.filter(accesstoken__user=request.user).distinct()
                ]
                return {"applications_tokens": applications_tokens}
    return {}