@staticmethod
    def from_commit_msg(commit_msg_str):
        commit_msg_obj = GitCommitMessage.from_full_message(commit_msg_str)

        # For now, we consider a commit a merge commit if its title starts with "Merge"
        is_merge_commit = commit_msg_obj.title.startswith("Merge")
        commit = GitCommit(commit_msg_obj, is_merge_commit=is_merge_commit)

        context = GitContext()
        context.commits.append(commit)
        return context
Calculate and return sufficient statistics.
dataset/ETHPy150Open jorisroovers/gitlint/gitlint/git.py/GitContext.from_commit_msg--crossover with--dataset/ETHPy150Open daeilkim/refinery/refinery/bnpy/bnpy-dev/bnpy/obsmodel/BernRelObsModel.py/BernRelObsModel.get_global_suff_stats