<commit_before>

def assert_equal(expected, given)
  if expected != given
    raise "Expected #{expected}, got #{given}"
  end
end

alias :eq :assert_equal

def header(str)
  puts "\n#{str}:"
end

def should(msg)
  print "  Should #{msg}... #{' ' * (35 - msg.size)}"
  yield
  puts "OK"
end
<commit_msg>add assertions for booleans<commit_after>

def assert_equal(expected, given)
  if expected != given
    raise "Expected #{expected}, got #{given}"
  end
end

def assert_true(g)
  eq(true,g)
end

def assert_false(g)
  eq(false,g)
end

def assert q
  assert_equal true,!!q
end

alias :eq :assert_equal


def header(str)
  puts "\n#{str}:"
end

def should(msg)
  print "  Should #{msg}... #{' ' * (35 - msg.size)}"
  yield
  puts "OK"
end


{'fraction_non_alphanumeric': 0.1527027027027027, 'fraction_numerical': 0.005405405405405406, 'mean_word_length': 3.6024844720496896, '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': '3894723', 'n_tokens_mistral': 287, 'n_tokens_neox': 285, 'n_words': 83}