def run(self, vcs_revision, project, search_limit=10):
        path = 'project/' + project

        response = self._perform_request(
            path, method='GET',
            extra_headers={'limit': int(search_limit)}
        )

        if response.status_code != httplib.OK:
            raise Exception('Project %s not found.' % project)

        for build in response.json():
            if build['vcs_revision'] == vcs_revision:
                build_num = build.get('build_num', None)
                if not build_num:
                    raise Exception(
                        'API must have changed. build_num not found.')
                return build_num
Calculate the height of the given text when fitted within the given width.
dataset/ETHPy150Open StackStorm/st2contrib/packs/circle_ci/actions/get_build_number.py/GetBuildNumberAction.run--crossover with--dataset/ETHPy150Open ODM2/ODMToolsPython/odmtools/lib/ObjectListView/WordWrapRenderer.py/WordWrapRenderer.CalculateHeight