def _get_team_names(self, game):
<EOL>links = [g('<STR_LIT>') for g in game('<STR_LIT>').items()]<EOL>away = links[<NUM_LIT:1>]<EOL>home = links[-<NUM_LIT:1>]<EOL>non_di = False<EOL>scores = re.findall(r'<STR_LIT>', str(game))<EOL>away_score = None<EOL>home_score = None<EOL>if len(scores) == <NUM_LIT:2>:<EOL><INDENT>away_score = self._get_score(scores[<NUM_LIT:0>])<EOL>home_score = self._get_score(scores[<NUM_LIT:1>])<EOL><DEDENT>away_name, away_abbr, away_non_di = self._get_name(away('<STR_LIT:a>'))<EOL>home_name, home_abbr, home_non_di = self._get_name(home('<STR_LIT:a>'))<EOL>non_di = away_non_di or home_non_di<EOL>away_rank = self._get_rank(away)<EOL>home_rank = self._get_rank(home)<EOL>top_25 = bool(away_rank or home_rank)<EOL>return (away_name, away_abbr, away_score, away_rank, home_name,<EOL>home_abbr, home_score, home_rank, non_di, top_25)<EOL>
Find the names and abbreviations for both teams in a game.

Using the HTML contents in a boxscore, find the name and abbreviation
for both teams and determine wether or not this is a matchup between
two Division-I teams.

Parameters
----------
game : PyQuery object
    A PyQuery object of a single boxscore containing information about
    both teams.

Returns
-------
tuple
    Returns a tuple containing the names and abbreviations of both
    teams in the following order: Away Name, Away Abbreviation, Away
    Score, Away Ranking, Home Name, Home Abbreviation, Home Score, Home
    Ranking, a boolean which evaluates to True if either team does not
    participate in Division-I athletics, and a boolean which evalutes
    to True if either team is currently ranked.