def get_languages(self, repo, temp_repo):
try:<EOL><INDENT>self.languages[repo.language] += <NUM_LIT:1><EOL><DEDENT>except KeyError:<EOL><INDENT>count = self.languages[repo.language] = <NUM_LIT:1><EOL><DEDENT>for repo_languages in repo.iter_languages():<EOL><INDENT>self.languages_json[repo.name][repo_languages[<NUM_LIT:0>]] = repo_languages[<NUM_LIT:1>]<EOL>for language in repo_languages:<EOL><INDENT>if isinstance(language, str):<EOL><INDENT>temp_repo.languages.append(language)<EOL>self.previous_language = language<EOL><DEDENT>else:<EOL><INDENT>try:<EOL><INDENT>self.languages_size[self.previous_language] +=language<EOL><DEDENT>except KeyError:<EOL><INDENT>size = self.languages_size[self.previous_language]= language<EOL><DEDENT><DEDENT><DEDENT><DEDENT>
Retrieves the languages used in the repo and increments the respective
counts of those languages. Only increments languages that have names.
Anything else is not incremented (i.e. numbers).