<commit_before>require 'ostruct'
require 'regtest'
require 'scripref'

include Scripref

o = OpenStruct.new
o.b1 = [42]
o.c1 = [1, nil]
o.v1 = [2, nil]
o.b2 = [43, nil]
o.c2 = [3, nil]
o.v2 = [4, nil]

formatter = Formatter.new(German)

combinations(o).each do |c|
  a = [c.b1, c.c1, c.v1, c.b2, c.c2, c.v2]
  pass = Passage.new('', *a)
  h = pass.to_h
  h.shift
  Regtest.sample h do
    formatter.format([pass])
  end
end<commit_msg>Make regtest samples ready for regtest version 2.0i again.<commit_after>require 'ostruct'
require 'regtest'
require 'scripref'

include Scripref

o = OpenStruct.new
o.b1 = [42]
o.c1 = [1, nil]
o.v1 = [2, nil]
o.b2 = [43, nil]
o.c2 = [3, nil]
o.v2 = [4, nil]

formatter = Formatter.new(German)

Regtest.combinations(o).each do |c|
  a = [c.b1, c.c1, c.v1, c.b2, c.c2, c.v2]
  pass = Passage.new('', *a)
  h = pass.to_h
  h.shift
  Regtest.sample h do
    formatter.format([pass])
  end
end
{'fraction_non_alphanumeric': 0.17659804983748645, 'fraction_numerical': 0.04550379198266522, 'mean_word_length': 3.317757009345794, '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': '2841066', 'n_tokens_mistral': 448, 'n_tokens_neox': 434, 'n_words': 109}