async def get_notebook_data(self, gist_id, filename, many_files_gist, file):
    '\n        gist_id, filename, many_files_gist, file are all passed to file_get\n        '
    if (file['type'] or '').startswith('image/'):
        self.log.debug('Fetching raw image (%s) %s/%s: %s', file['type'], gist_id, filename, file['raw_url'])
        response = (await self.fetch(file['raw_url']))
        content = response.body
    elif file['truncated']:
        self.log.debug('Gist %s/%s truncated, fetching %s', gist_id, filename, file['raw_url'])
        response = (await self.fetch(file['raw_url']))
        content = response_text(response, encoding='utf-8')
    else:
        content = file['content']
    if (many_files_gist and (not filename.endswith('.ipynb'))):
        self.set_header('Content-Type', (file.get('type') or 'text/plain'))
        self.finish(content)
        return
    else:
        return content
gist_id, filename, many_files_gist, file are all passed to file_get
async def get_notebook_data(self, gist_id, filename, many_files_gist, file):
    '\n        \n        '
    if (file['type'] or ).startswith('image/'):
        self.log.debug('Fetching raw image (%s) %s/%s: %s', file['type'], gist_id, filename, file['raw_url'])
        response = (await self.fetch(file['raw_url']))
        content = response.body
    elif file['truncated']:
        self.log.debug('Gist %s/%s truncated, fetching %s', gist_id, filename, file['raw_url'])
        response = (await self.fetch(file['raw_url']))
        content = response_text(response, encoding='utf-8')
    else:
        content = file['content']
    if (many_files_gist and (not filename.endswith('.ipynb'))):
        self.set_header('Content-Type', (file.get('type') or 'text/plain'))
        self.finish(content)
        return
    else:
        return content