

@must_be_contributor_or_public
@must_have_addon('github', 'node')
def github_download_starball(node_addon, **kwargs):
    archive = kwargs.get('archive', 'tar')
    ref = request.args.get('sha', 'master')
    connection = GitHubClient(external_account=node_addon.external_account)
    (headers, data) = connection.starball(node_addon.user, node_addon.repo, archive, ref)
    resp = make_response(data)
    for (key, value) in headers.iteritems():
        resp.headers[key] = connection
    return resp

dataset/ETHPy150Open CenterForOpenScience/osf.io/website/addons/github/views.py github_download_starball/VarMisuse@111/149 `value`->`connection`