<commit_before>module Veewee
  module Provider
    module Core
      module BoxCommand
        def create_floppy(filename)
          # Todo Check for java
          # Todo check output of commands

          # Check for floppy
          unless definition.floppy_files.nil?
            require 'tmpdir'
            temp_dir=Dir.mktmpdir
            definition.floppy_files.each do |filename|
              full_filename=full_filename=File.join(definition.path,filename)
              FileUtils.cp("#{full_filename}","#{temp_dir}")
            end
            javacode_dir=File.expand_path(File.join(__FILE__,'..','..','..','..','..','java'))
            floppy_file=File.join(definition.path,filename)
            if File.exists?(floppy_file)
              env.logger.info "Removing previous floppy file"
              FileUtils.rm(floppy_file)
            end
            command="java -jar #{javacode_dir}/dir2floppy.jar '#{temp_dir}' '#{floppy_file}'"
            shell_exec("#{command}")
          end
        end

      end
    end
  end
end<commit_msg>Java detection for windows to use double quotes instead of single quotes.<commit_after>module Veewee
  module Provider
    module Core
      module BoxCommand
        def create_floppy(filename)
          # Todo Check for java
          # Todo check output of commands

          # Check for floppy
          unless definition.floppy_files.nil?
            require 'tmpdir'
            temp_dir=Dir.mktmpdir
            definition.floppy_files.each do |filename|
              full_filename=full_filename=File.join(definition.path,filename)
              FileUtils.cp("#{full_filename}","#{temp_dir}")
            end
            javacode_dir=File.expand_path(File.join(__FILE__,'..','..','..','..','..','java'))
            floppy_file=File.join(definition.path,filename)
            if File.exists?(floppy_file)
              env.logger.info "Removing previous floppy file"
              FileUtils.rm(floppy_file)
            end
            command="java -jar #{javacode_dir}/dir2floppy.jar \"#{temp_dir}\" \"#{floppy_file}\""
            shell_exec("#{command}")
          end
        end

      end
    end
  end
end
{'fraction_non_alphanumeric': 0.11065197428833792, 'fraction_numerical': 0.0009182736455463728, 'mean_word_length': 1.9972489683631363, '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': '3504386', 'n_tokens_mistral': 637, 'n_tokens_neox': 618, 'n_words': 122}