Path 1: 3 calls (0.75)

'🤖 According to the primer, this change has **no effect** on the checked open source code. 🤖🎉\n\n' (2) '🤖 **Effect of this PR on checked open source c...

'🤖 According to the primer, this change has **no effect** on the checked open source code. 🤖🎉\n\n*This comment was generated for commit v2.14.2*' (2) ...

1def _truncate_comment(self, comment: str) -> str:
2        """GitHub allows only a set number of characters in a comment."""
3        hash_information = (
4            f"*This comment was generated for commit {self.config.commit}*"
5        )
6        if len(comment) + len(hash_information) >= MAX_GITHUB_COMMENT_LENGTH:
7            truncation_information = (
8                f"*This comment was truncated because GitHub allows only"
9                f" {MAX_GITHUB_COMMENT_LENGTH} characters in a comment.*"
10            )
11            max_len = (
12                MAX_GITHUB_COMMENT_LENGTH
13                - len(hash_information)
14                - len(truncation_information)
15            )
16            comment = f"{comment[:max_len - 10]}...\n\n{truncation_information}\n\n"
17        comment += hash_information
18        return comment
            

Path 2: 1 calls (0.25)

'🤖 **Effect of this PR on checked open source code:** 🤖\n\n\n\n**Effect on [astroid](https://github.com/PyCQA/astroid):**\nThe following messages are ...

'🤖 **Effect of this PR on checked open source code:** 🤖\n\n\n\n**Effect on [astroid](https://github.com/PyCQA/astroid):**\nThe following messages are ...

1def _truncate_comment(self, comment: str) -> str:
2        """GitHub allows only a set number of characters in a comment."""
3        hash_information = (
4            f"*This comment was generated for commit {self.config.commit}*"
5        )
6        if len(comment) + len(hash_information) >= MAX_GITHUB_COMMENT_LENGTH:
7            truncation_information = (
8                f"*This comment was truncated because GitHub allows only"
9                f" {MAX_GITHUB_COMMENT_LENGTH} characters in a comment.*"
10            )
11            max_len = (
12                MAX_GITHUB_COMMENT_LENGTH
13                - len(hash_information)
14                - len(truncation_information)
15            )
16            comment = f"{comment[:max_len - 10]}...\n\n{truncation_information}\n\n"
17        comment += hash_information
18        return comment