

def chart_resource_json(request, project_slug, resource_slug):
    resource = get_object_or_404(Resource, slug=resource_slug, project__slug=project_slug)
    if request.project.private:
        raise PermissionDenied
    return HttpResponse(content=get_gviz_json(RLStats.objects.by_resource(resource)))

dataset/ETHPy150Open rvanlaar/easy-transifex/src/transifex/transifex/addons/charts/views.py chart_resource_json/VarMisuse@30/46 `resource`->`request`