<commit_before>module VagrantPlugins
  module Mountaineer
    # Defines the mountaineer command
    class Command < Vagrant.plugin(2, :command)
      def self.synopsis
        'mountaineer utility commands'
      end

      def execute
        command = select_command(@argv)

        return display_info if command == 'info'

        display_help
      end

      private

      def display_help
        @env.ui.info('Available commands:')
        @env.ui.info('  - help')
        @env.ui.info('  - info')
      end

      def display_info
        @env.ui.info('info...')
      end

      def select_command(argv)
        case argv[0]
        when 'help' then 'help'
        when 'info' then 'info'
        else 'help'
        end
      end
    end
  end
end<commit_msg>simplifies internal command method calls<commit_after>module VagrantPlugins
  module Mountaineer
    # Defines the mountaineer command
    class Command < Vagrant.plugin(2, :command)
      def self.synopsis
        'mountaineer utility commands'
      end

      def execute
        send(select_command(@argv))
      end

      private

      def display_help
        @env.ui.info('Available commands:')
        @env.ui.info('  - help')
        @env.ui.info('  - info')
      end

      def display_info
        @env.ui.info('info...')
      end

      def select_command(argv)
        case argv[0]
        when 'help' then :display_help
        when 'info' then :display_info
        else :display_help
        end
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.08718626155878467, 'fraction_numerical': 0.002642007926023778, 'mean_word_length': 1.8477443609022557, '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': '5506156', 'n_tokens_mistral': 459, 'n_tokens_neox': 445, 'n_words': 120}