<commit_before>module Veewee

  # Vagrant UIs handle communication with the outside world (typically
  # through a shell). They must respond to the typically logger methods
  # of `warn`, `error`, `info`, and `confirm`.
  class UI
    attr_accessor :env

    def initialize(env)
      @env = env
    end

    [:warn, :error, :info, :confirm].each do |method|
      define_method(method) do |message|
        # Log normal console messages
        env.logger.info("ui") { message }
      end
    end

    [:clear_line, :report_progress, :ask, :no?, :yes?].each do |method|
      # By default do nothing, these aren't logged
      define_method(method) { |*args| }
    end
<commit_msg>provided a second options for info logger<commit_after>module Veewee

  # Vagrant UIs handle communication with the outside world (typically
  # through a shell). They must respond to the typically logger methods
  # of `warn`, `error`, `info`, and `confirm`.
  class UI
    attr_accessor :env

    def initialize(env)
      @env = env
    end

    [:warn, :error, :info, :confirm].each do |method|
      define_method(method,opts=nil) do |message|
        # Log normal console messages
        env.logger.info("ui") { message }
      end
    end

    [:clear_line, :report_progress, :ask, :no?, :yes?].each do |method|
      # By default do nothing, these aren't logged
      define_method(method, opts=nil) { |*args| }
    end

{'fraction_non_alphanumeric': 0.11197732104890148, 'fraction_numerical': 0.0, 'mean_word_length': 2.9887005649717513, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3660600', 'n_tokens_mistral': 438, 'n_tokens_neox': 420, 'n_words': 149}