def get_default_branch(self):
        """Tries to guess the default repo branch name."""
        for candidate in ['master', 'trunk', 'default', 'gh-pages']:
            try:
                self.get_commit(candidate)
                return candidate
            except KeyError:
                pass
        try:
            return self.get_branch_names()[0]
        except __HOLE__:
            return None
dataset/ETHPy150Open jonashaag/klaus/klaus/repo.py/FancyRepo.get_default_branch