<commit_before>module VagrantMutate

  class Converter

    # http://stackoverflow.com/questions/2108727/which-in-ruby-checking-if-program-exists-in-path-from-ruby
    def initialize(env)
      @env = env
      @logger = Log4r::Logger.new('vagrant::mutate')
      exts = ENV['PATHEXT'] ? ENV['PATHEXT'].split(';') : ['']
      ENV['PATH'].split(File::PATH_SEPARATOR).each do |path|
        exts.each do |ext|
          exe = File.join(path, "qemu-img#{ext}")
          return if File.executable? exe
        end
      end
      # if we make it here qemu-img command was not found
      @logger.info "Found qemu"
      raise Errors::QemuNotFound
    end
<commit_msg>Fix qemu check log logic<commit_after>module VagrantMutate

  class Converter

    # http://stackoverflow.com/questions/2108727/which-in-ruby-checking-if-program-exists-in-path-from-ruby
    def initialize(env)
      @env = env
      @logger = Log4r::Logger.new('vagrant::mutate')
      exts = ENV['PATHEXT'] ? ENV['PATHEXT'].split(';') : ['']
      ENV['PATH'].split(File::PATH_SEPARATOR).each do |path|
        exts.each do |ext|
          exe = File.join(path, "qemu-img#{ext}")
          if File.executable? exe
            @logger.info "Found qemu"
            return
          end
        end
      end
      # if we make it here qemu-img command was not found
      raise Errors::QemuNotFound
    end

{'fraction_non_alphanumeric': 0.13546977421704298, 'fraction_numerical': 0.011653313911143482, 'mean_word_length': 2.487309644670051, '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': '1532619', 'n_tokens_mistral': 483, 'n_tokens_neox': 458, 'n_words': 95}