<commit_before>class Permutation
  def initialize(seed, params, bit_length=64)
    @bit_length = bit_length
    @mask = (1 << bit_length)-1
    xorshift = XORShift.new seed, params, @mask
    @masks = (0.upto bit_length*2).map { |i| xorshift.next & ((1 << (i >> 1)) ^ @mask) }
  end

  def map(num)
    do_map num, (0.upto @bit_length-1)
  end

  def unmap(num)<commit_msg>whitespace<commit_after>class Permutation

  def initialize(seed, params, bit_length=64)
    @bit_length = bit_length
    @mask = (1 << bit_length)-1
    xorshift = XORShift.new seed, params, @mask
    @masks = (0.upto bit_length*2).map { |i| xorshift.next & ((1 << (i >> 1)) ^ @mask) }
  end

  def map(num)
    do_map num, (0.upto @bit_length-1)
  end

  def unmap(num)
{'fraction_non_alphanumeric': 0.1532258064516129, 'fraction_numerical': 0.026881720430107527, 'mean_word_length': 3.3823529411764706, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 7, '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': '3468545', 'n_tokens_mistral': 312, 'n_tokens_neox': 295, 'n_words': 69}