async def tree_get(self, user, gist_id, gist, files):
    '\n        user, gist_id, gist, and files are (most) of the values returned by parse_gist\n        '
    entries = []
    ipynbs = []
    others = []
    for file in files.values():
        e = {}
        e['name'] = file['filename']
        if file['filename'].endswith('.ipynb'):
            e['url'] = quote(('/%s/%s' % (gist_id, file['filename'])))
            e['class'] = 'fa-book'
            ipynbs.append(e)
        else:
            if (self.github_url == 'https://github.com/'):
                gist_base_url = 'https://gist.github.com/'
            else:
                gist_base_url = url_path_join(self.github_url, 'gist/')
            provider_url = url_path_join(gist_base_url, '{user}/{gist_id}#file-{clean_name}'.format(user=user, gist_id=gist_id, clean_name=clean_filename(file['filename'])))
            e['url'] = provider_url
            e['class'] = 'fa-share'
            others.append(e)
    entries.extend(ipynbs)
    entries.extend(others)
    executor_url = (self.BINDER_TMPL.format(binder_base_url=self.binder_base_url, user=user.rstrip('/'), gist_id=gist_id) if self.binder_base_url else None)
    html = self.render_template('treelist.html', entries=entries, tree_type='gist', tree_label='gists', user=user.rstrip('/'), provider_url=gist['html_url'], executor_url=executor_url, **self.PROVIDER_CTX)
    (await self.cache_and_finish(html))
user, gist_id, gist, and files are (most) of the values returned by parse_gist
async def tree_get(self, user, gist_id, gist, files):
    '\n        \n        '
    entries = []
    ipynbs = []
    others = []
    for file in files.values():
        e = {}
        e['name'] = file['filename']
        if file['filename'].endswith('.ipynb'):
            e['url'] = quote(('/%s/%s' % (gist_id, file['filename'])))
            e['class'] = 'fa-book'
            ipynbs.append(e)
        else:
            if (self.github_url == 'https://github.com/'):
                gist_base_url = 'https://gist.github.com/'
            else:
                gist_base_url = url_path_join(self.github_url, 'gist/')
            provider_url = url_path_join(gist_base_url, '{user}/{gist_id}#file-{clean_name}'.format(user=user, gist_id=gist_id, clean_name=clean_filename(file['filename'])))
            e['url'] = provider_url
            e['class'] = 'fa-share'
            others.append(e)
    entries.extend(ipynbs)
    entries.extend(others)
    executor_url = (self.BINDER_TMPL.format(binder_base_url=self.binder_base_url, user=user.rstrip('/'), gist_id=gist_id) if self.binder_base_url else None)
    html = self.render_template('treelist.html', entries=entries, tree_type='gist', tree_label='gists', user=user.rstrip('/'), provider_url=gist['html_url'], executor_url=executor_url, **self.PROVIDER_CTX)
    (await self.cache_and_finish(html))