def get_api_issues(self):
        r = requests.get(self.issue_url())
        issues = r.json()
        simplified_issues = []
        for issue in issues:
            simplified_issues.append({
                'title': issue['title'],
                'number': str(issue['number'])
            })
        # print the issue names
        for s in simplified_issues:
            # TODO: use sprintf
            print '#' + s['number'] + ' ' + s['title']
        self.simplified_issues = simplified_issues
        self.save_cache()
dataset/ETHPy150Open at15/issue-complete/ftplugin/COMMIT_EDITMSG/issue.py/GitRepo.get_api_issues/original