<commit_before>require "awesome_print"
require "colorize"
require "thor"
require "pp"

require "spoon/parser"
require "spoon/version"

module Spoon
  BANNER = <<~HEREDOC
    .d8888. d8888b.  .d88b.   .d88b.  d8b   db
    88'  YP 88  `8D .8P  Y8. .8P  Y8. 888o  88
    `8bo.   88oodD' 88    88 88    88 88V8o 88
      `Y8b. 88~~~   88    88 88    88 88 V8o88
    db   8D 88      `8b  d8' `8b  d8' 88  V888
    `8888Y' 88       `Y88P'   `Y88P'  VP   V8P
  HEREDOC

  class CLI < Thor
    default_task :welcome

    desc "dev", "Just dev things"
    def dev
      ap Spoon::Parser.new.parse_with_debug <<~HEREDOC
        abc(a).def(b).efg
      HEREDOC
    end


    desc "welcome", "Prints welcome message and help to console"
    def welcome
      puts "\n"
      puts BANNER.colorize :light_cyan
      puts "Spoon #{Spoon::VERSION} - https://spoonlang.org\n".bold

      invoke :help
    end

    desc "version", "Current version"
    def version
      puts Spoon::VERSION<commit_msg>Now do not requires latest Ruby version<commit_after>require "awesome_print"
require "colorize"
require "thor"
require "pp"

require "spoon/parser"
require "spoon/version"

module Spoon
  BANNER = %{
.d8888. d8888b.  .d88b.   .d88b.  d8b   db
88'  YP 88  `8D .8P  Y8. .8P  Y8. 888o  88
`8bo.   88oodD' 88    88 88    88 88V8o 88
  `Y8b. 88~~~   88    88 88    88 88 V8o88
db   8D 88      `8b  d8' `8b  d8' 88  V888
`8888Y' 88       `Y88P'   `Y88P'  VP   V8P
  }

  class CLI < Thor
    default_task :welcome

    desc "dev", "Just dev things"
    def dev
      ap Spoon::Parser.new.parse_with_debug <<~HEREDOC
        abc(a).def(b).efg
      HEREDOC
    end


    desc "welcome", "Prints welcome message and help to console"
    def welcome
      puts BANNER.colorize :light_cyan
      puts "Spoon #{Spoon::VERSION} - https://spoonlang.org\n".bold

      invoke :help
    end

    desc "version", "Current version"
    def version
      puts Spoon::VERSION
{'fraction_non_alphanumeric': 0.1056701030927835, 'fraction_numerical': 0.08453608247422681, 'mean_word_length': 2.202970297029703, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '2798952', 'n_tokens_mistral': 880, 'n_tokens_neox': 768, 'n_words': 227}