def get_readme(self, repo):
readme_contents = repo.readme()<EOL>if readme_contents is not None:<EOL><INDENT>self.total_readmes += <NUM_LIT:1><EOL>return '<STR_LIT>'<EOL><DEDENT>if self.search_limit >= <NUM_LIT>:<EOL><INDENT>print('<STR_LIT>')<EOL>time.sleep(<NUM_LIT>)<EOL>self.search_limit = <NUM_LIT:0><EOL><DEDENT>self.search_limit += <NUM_LIT:1><EOL>search_results = self.logged_in_gh.search_code('<STR_LIT>'<EOL>+ '<STR_LIT>' + repo.full_name)<EOL>try:<EOL><INDENT>for result in search_results:<EOL><INDENT>path = result.path[<NUM_LIT:1>:]<EOL>if '<STR_LIT:/>' not in path and '<STR_LIT>' in path.lower():<EOL><INDENT>self.total_readmes += <NUM_LIT:1><EOL>return path<EOL><DEDENT><DEDENT>return '<STR_LIT>'<EOL><DEDENT>except (github3.models.GitHubError, StopIteration) as e:<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>
Checks to see if the given repo has a ReadMe. MD means it has a correct
Readme recognized by GitHub.