<commit_before>require File.dirname(__FILE__) + "/io_observer"
module Kernel
  $observer = IOObserver.new(STDOUT)

  def experiment(name = "default", seed = rand)
    $hypothesis_sets ||= []
    $hypothesis_names ||= []
    $hypothesis_sets << []
    yield
    hypothesis_set = $hypothesis_sets.pop
    hypothesis_name, block = hypothesis_set[seed.to_s.hash % hypothesis_set.length]
    block.call
    $observer.hypothesized(name, hypothesis_name, seed)
  end
  
  def hypothesis(name, weight = 1, &block)
    weight.times do<commit_msg>that line doesn't do anything<commit_after>require File.dirname(__FILE__) + "/io_observer"
module Kernel
  $observer = IOObserver.new(STDOUT)

  def experiment(name = "default", seed = rand)
    $hypothesis_sets ||= []
    $hypothesis_sets << []
    yield
    hypothesis_set = $hypothesis_sets.pop
    hypothesis_name, block = hypothesis_set[seed.to_s.hash % hypothesis_set.length]
    block.call
    $observer.hypothesized(name, hypothesis_name, seed)
  end
  
  def hypothesis(name, weight = 1, &block)
    weight.times do
{'fraction_non_alphanumeric': 0.11592836946277098, 'fraction_numerical': 0.001885014137606032, 'mean_word_length': 4.105769230769231, 'pattern_counts': {'":': 0, '<': 7, '<?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': '7406422', 'n_tokens_mistral': 365, 'n_tokens_neox': 352, 'n_words': 70}