<commit_before>require "thor"
require "resr"

module Resr
  class CLI < Thor
    map %w[--version -v] => :__print_version

    desc 'take SERVER', 'Take ownership of the SERVER'
    option aliases: :t
    def take(server, details = nil)
      details = `git rev-parse --abbrev-ref HEAD`.chomp if details.nil?
      say Resr.take(server, details: details)
    end

    desc 'free SERVER', 'Free/release ownership of the SERVER'
    option aliases: :f
    def free(server)
      Resr.free server
    end

    desc 'list', 'List all servers and who owns them'
    option aliases: :l
    def list
      channels = Resr.list
      channels.each do |channel|
        say channel.name, :yellow
        channel.servers.each do |server, details|
          if details
            say "  #{server}: #{details}"
          else
            say "  #{server}", :green
          end
        end
      end
    end

    desc "--version, -v", "Print the version"
    def __print_version
      puts Resr::VERSION
    end
  end
end
<commit_msg>Remove display of results from command line<commit_after>require "thor"
require "resr"

module Resr
  class CLI < Thor
    map %w[--version -v] => :__print_version

    desc 'take SERVER', 'Take ownership of the SERVER'
    option aliases: :t
    def take(server, details = nil)
      details = `git rev-parse --abbrev-ref HEAD`.chomp if details.nil?
      Resr.take(server, details: details)
    end

    desc 'free SERVER', 'Free/release ownership of the SERVER'
    option aliases: :f
    def free(server)
      Resr.free server
    end

    desc 'list', 'List all servers and who owns them'
    option aliases: :l
    def list
      channels = Resr.list
      channels.each do |channel|
        say channel.name, :yellow
        channel.servers.each do |server, details|
          if details
            say "  #{server}: #{details}"
          else
            say "  #{server}", :green
          end
        end
      end
    end

    desc "--version, -v", "Print the version"
    def __print_version
      puts Resr::VERSION
    end
  end
end

{'fraction_non_alphanumeric': 0.09749034749034749, 'fraction_numerical': 0.0, 'mean_word_length': 2.1126126126126126, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1823369', 'n_tokens_mistral': 638, 'n_tokens_neox': 627, 'n_words': 221}