def branches(self):
<EOL>refs = filter(lambda l: isinstance(l, git.RemoteReference), self.repo.references)<EOL>refs = filter(lambda l: l.name != "<STR_LIT>", refs)<EOL>refs = filter(lambda l: l.name.startswith("<STR_LIT>"), refs)<EOL>for ref in refs:<EOL><INDENT>self.refs[ref.name[<NUM_LIT:7>:]] = ref<EOL><DEDENT>return map(lambda l: l.name[<NUM_LIT:7>:], refs)<EOL>
Return a list of branches for given repository

        :return: [str]