<commit_before>require "pp"
require "thor"
require "climine/redmine"
require "climine/config"
require "climine/template"
require "climine/command/config"
require "climine/command/issue"
require "climine/command/user"

class Climine::CLI < Thor
  include Climine::Command::Config
  include Climine::Command::Issue
  include Climine::Command::User

  desc "hello NAME", "say hello to NAME"
  def hello(name)
    puts "Hello #{name}"
    puts Climine::Config.new.url
    puts Climine::Config.new.apikey
  end

  no_commands {
    def redmine
      @redmine ||= Climine::Redmine.new(Climine::Config.new)
    end
    def render template_name, response
      unless response.error
        if Climine::Template.respond_to?(template_name)
          res = response
          puts Climine::Template.build(Climine::Template.send(template_name)).result(binding)
        else
          pp response
        end
      else
        say "-- Error or NotFound", :red
      end
    end
  }
end<commit_msg>removed test command<commit_after>require "pp"
require "thor"
require "climine/redmine"
require "climine/config"
require "climine/template"
require "climine/command/config"
require "climine/command/issue"
require "climine/command/user"

class Climine::CLI < Thor
  include Climine::Command::Config
  include Climine::Command::Issue
  include Climine::Command::User

  no_commands {
    def redmine
      @redmine ||= Climine::Redmine.new(Climine::Config.new)
    end
    def render template_name, response
      unless response.error
        if Climine::Template.respond_to?(template_name)
          res = response
          puts Climine::Template.build(Climine::Template.send(template_name)).result(binding)
        else
          pp response
        end
      else
        say "-- Error or NotFound", :red
      end
    end
  }
end
{'fraction_non_alphanumeric': 0.10445299615173172, 'fraction_numerical': 0.0, 'mean_word_length': 3.242424242424242, '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': '3053709', 'n_tokens_mistral': 582, 'n_tokens_neox': 578, 'n_words': 130}