<commit_before>from plenum.test.helper import assertEquality


def chkChkpoints(nodes, total: int, stableIndex: int = None):
    for i in range(nodes[0].replicas.num_replicas):
        chk_chkpoints_for_instance(nodes, i, total, stableIndex)


def chk_chkpoints_for_instance(nodes, inst_id, total: int, stableIndex: int = None):
    for node in nodes:
        r = node.replicas.values()[inst_id]
        assert len(r.checkpoints) == total, '{} checkpoints {}, whereas total {}'. \
            format(r, len(r.checkpoints), total)<commit_msg>code review fix<commit_after>from plenum.test.helper import assertEquality


def chkChkpoints(nodes, total: int, stableIndex: int = None):
    for i in nodes[0].replicas.keys():
        chk_chkpoints_for_instance(nodes, i, total, stableIndex)


def chk_chkpoints_for_instance(nodes, inst_id, total: int, stableIndex: int = None):
    for node in nodes:
        r = node.replicas.values()[inst_id]
        assert len(r.checkpoints) == total, '{} checkpoints {}, whereas total {}'. \
            format(r, len(r.checkpoints), total)
{'fraction_non_alphanumeric': 0.12324929971988796, 'fraction_numerical': 0.0018674136321195146, 'mean_word_length': 3.9400921658986174, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6939378', 'n_tokens_mistral': 349, 'n_tokens_neox': 347, 'n_words': 85}