<commit_before>require "test/unit"

require File.join(File.dirname(__FILE__), "../../init")
require File.join(File.dirname(__FILE__), "codepoint_test_helper")
include CodepointTestHelper

class BasicLatinTest < Test::Unit::TestCase
  # This test suite is just regression test and debugging
  # to better transliterate the Basic Latin Unicode codepoints
  # 
  # http://unicode.org/charts/
  # http://unicode.org/charts/PDF/U0000.pdf
  
  # Should line feed, form feed and carriage return
  # be empty strings or newlines (what they are now)?
  def test_control_characters
    characters = 0..31
    assert_equal_encoded "", characters.map{|character| "%04x" % character.to_i}
    assert_equal_encoded "", "007f"
  end<commit_msg>removed basic latin control characters tests<commit_after>require "test/unit"

require File.join(File.dirname(__FILE__), "../../init")
require File.join(File.dirname(__FILE__), "codepoint_test_helper")
include CodepointTestHelper

class BasicLatinTest < Test::Unit::TestCase
  # This test suite is just regression test and debugging
  # to better transliterate the Basic Latin Unicode codepoints
  # 
  # http://unicode.org/charts/
  # http://unicode.org/charts/PDF/U0000.pdf
  
  # NOTE: I can't figure out how to test control characters.
  # Get weird results trying to pack them to unicode.
{'fraction_non_alphanumeric': 0.10665658093797277, 'fraction_numerical': 0.012102874432677761, 'mean_word_length': 4.444444444444445, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4323161', 'n_tokens_mistral': 409, 'n_tokens_neox': 386, 'n_words': 115}