<commit_before>module Vagrant
  module Butcher
    class Env
      attr_accessor :ui

      def initialize
        if Gem::Version.new(::Vagrant::VERSION) >= Gem::Version.new("1.2")
          @ui = ::Vagrant::UI::Colored.new.scope('Butcher')
        else
          @ui = ::Vagrant::UI::Colored.new('Butcher')
        end
      end
    end
  end<commit_msg>Added support for the Vagrant 1.5 UI object<commit_after>module Vagrant
  module Butcher
    class Env
      attr_accessor :ui

      def initialize
        vagrant_version = Gem::Version.new(::Vagrant::VERSION)
        if vagrant_version >= Gem::Version.new("1.5")
          @ui = ::Vagrant::UI::Colored.new
          @ui.opts[:target] = 'Butcher'
        elsif vagrant_version >= Gem::Version.new("1.2")
          @ui = ::Vagrant::UI::Colored.new.scope('Butcher')
        else
          @ui = ::Vagrant::UI::Colored.new('Butcher')
        end
      end
    end
  end
{'fraction_non_alphanumeric': 0.1396103896103896, 'fraction_numerical': 0.008658008658008658, 'mean_word_length': 2.400735294117647, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '4907885', 'n_tokens_mistral': 309, 'n_tokens_neox': 306, 'n_words': 59}