<commit_before>import sys
from math import ceil, floor, log2
from bytes_utils import xor, chunkbytes


class WOTSplus(object):

    def __init__(self, n, w, F, Gl):
        self.n = n
        self.w = w
        self.l1 = ceil(n / log2(w))<commit_msg>Add docstring to WOTS<commit_after>import sys
from math import ceil, floor, log2
from bytes_utils import xor, chunkbytes


class WOTSplus(object):

    def __init__(self, n, w, F, Gl):
        """Initializes WOTS+

        n -- length of hashes (in bits)
        w -- Winternitz parameter; chain length and block size trade-off
        F -- function used to construct chains (n/8 bytes -> n/8 bytes)
        Gl -- PRG to generate the chain bases, based on seed and no. of bytes
        """
        self.n = n
        self.w = w
        self.l1 = ceil(n / log2(w))
{'fraction_non_alphanumeric': 0.0996309963099631, 'fraction_numerical': 0.00984009840098401, 'mean_word_length': 2.3224489795918366, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '1615883', 'n_tokens_mistral': 271, 'n_tokens_neox': 261, 'n_words': 99}