<commit_before>import scala.io.Source

object Main extends App{
 val grammarBuilder = new GrammarBuilder(Source.fromFile("res/base.txt").mkString.toLowerCase().split("""\s+"""))
  grammarBuilder.build()
  println("--------------------------Source words---------------------------")
  println(Source.fromFile("res/base.txt").mkString)
  println("--------------------------Grammar---------------------------")
  println(grammarBuilder.getGrammar())
  println("--------------------------Generated words---------------------------")
  for(_ <- 0 until 3)
    print(grammarBuilder.getWord() + " ")

  //println(NonTerminate(mutable.Map("a"-> NonTerminate(mutable.Map("b" -> Terminate("b"))), "b" -> Terminate("b"))) equals NonTerminate(mutable.Map("a"-> NonTerminate(mutable.Map("b" -> Terminate("b"))), "b" -> Terminate("b"))))

  //println(('a','b') equals ('a','b'))<commit_msg>Rework printing grammar methods and add small magic<commit_after>import scala.io.Source

object Main extends App{
 val grammarBuilder = new GrammarBuilder(Source.fromFile("res/base.txt").mkString.toLowerCase().split("""\s+"""))
  grammarBuilder.build()
  println("--------------------------Source words---------------------------")
  println(Source.fromFile("res/base.txt").mkString)
  println("--------------------------Grammar---------------------------")
  println(grammarBuilder.getGrammar)
  println("--------------------------Generated words---------------------------")
  for(_ <- 0 until 3)
    print(grammarBuilder.getWord() + " ")
{'fraction_non_alphanumeric': 0.36015831134564646, 'fraction_numerical': 0.002638522427440633, 'mean_word_length': 2.0833333333333335, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '3985392', 'n_tokens_mistral': 415, 'n_tokens_neox': 406, 'n_words': 66}