def format_revision(self):
        """
        Shorten hashed revisions for nice reading.
        """
        try:
            return str(int(self.revision))
        except __HOLE__:
            return self.revision[:7]
dataset/ETHPy150Open jacobian-archive/jellyroll/src/jellyroll/models.py/CodeCommit.format_revision