<commit_before>require "fileutils"

module VeeweeToPacker
  module Builders
    class VMware
      GUESTOS_MAP = {
        "OpenSUSE" => "suse",
        "OpenSUSE_64" => "suse-64",
        "RedHat" => "redhat",
        "Ubuntu" => "ubuntu",
        "Ubuntu_64" => "ubuntu-64"
      }

      def self.name
        "vmware"
      end

      def self.convert(input, input_dir, output_dir)
        warnings = []
        builder = { "type" => "vmware" }

        if input[:boot_cmd_sequence]
          builder["boot_command"] = input.delete(:boot_cmd_sequence).map do |command|
            command = command.gsub("<Esc>", "<esc>").
              gsub("<Enter>", "<enter>").<commit_msg>VMware undersstands all os_type_id values<commit_after>require "fileutils"

module VeeweeToPacker
  module Builders
    class VMware
      GUESTOS_MAP ={
        "Windows7_64"=>"windows7-64",
        "Windows7"=>"windows7",
        "WindowsNT"=>"winNT",
        "Windows2008"=>"longhorn",
        "Windows2008_64"=>"longhorn-64",
        "WindowsVista_64"=>"winvista-64",
        "WindowsVista"=>"winvista",
        "Windows2003"=>"winnetstandard",
        "Windows2003_64"=>"winnetstandard-64",
        "WindowsXP_64"=>"winXPPro-64",
        "WindowsXP"=>"winXP",
        "Other"=>"other",
        "Other_64"=>"other-64",
        "FreeBSD"=>"freeBSD",
        "FreeBSD_64"=>"freebsd-64",
        "Oracle"=>"oraclelinux",
        "Oracle_64"=>"oraclelinux-64",
        "Debian"=>"debian5",
        "Debian_64"=>"debian5-64",
        "Debian6"=>"debian6",
        "Debian6_64"=>"debian6-64",
        "Gentoo"=>"other26xlinux",
        "Gentoo_64"=>"other26xlinux-64",
        "Linux22"=>"linux",
        "Linux24"=>"other24xlinux",
        "Linux24_64"=>"other24xlinux-64",
        "Linux26"=>"other26xlinux",
        "Linux26_64"=>"other26xlinux-64",
        "RedHat"=>"RedHat",
        "RedHat_64"=>"RedHat_64",
        "RedHat5"=>"rhel5",
        "RedHat5_64"=>"rhel5-64",
        "RedHat6"=>"rhel6",
        "RedHat6_64"=>"rhel6-64",
        "Centos"=>"centos",
        "Centos_64"=>"centos-64",
        "ArchLinux"=>"other26xlinux",
        "ArchLinux_64"=>"other26xlinux-64",
        "OpenSUSE"=>"opensuse",
        "OpenSUSE_64"=>"opensuse-64",
        "SUSE"=>"suse",
        "SUSE_64"=>"suse-64",
        "SLES11"=>"sles11",
        "SLES11_64"=>"sles11-64",
        "Fedora"=>"fedora",
        "Fedora_64"=>"fedora-64",
        "Ubuntu"=>"ubuntu",
        "Ubuntu_64"=>"ubuntu-64",
        "Linux"=>"linux",
        "Solaris"=>"solaris10",
        "Solaris_64"=>"solaris10-64",
        "Solaris9"=>"solaris",
        "Solaris7"=>"solaris7",
        "Solaris8"=>"solaris8",
        "OpenSolaris"=>"solaris10",
        "OpenSolaris_64"=>"solaris-64",
        "OpenBSD"=>"other",
        "OpenBSD_64"=>"other-64",
        "NetBSD"=>"other",
        "NetBSD_64"=>"other-64",
        "ESXi5"=>"vmkernel5",
        "Darwin_10_7"=>"darwin11",
        "Darwin_10_7_64"=>"darwin11-64",
        "Darwin_10_8_64"=>"darwin12-64"
      }

      def self.name
        "vmware"
      end

      def self.convert(input, input_dir, output_dir)
        warnings = []
        builder = { "type" => "vmware" }

        if input[:boot_cmd_sequence]
          builder["boot_command"] = input.delete(:boot_cmd_sequence).map do |command|
            command = command.gsub("<Esc>", "<esc>").
              gsub("<Enter>", "<enter>").
{'fraction_non_alphanumeric': 0.19099470276633312, 'fraction_numerical': 0.06474396703943497, 'mean_word_length': 2.4719101123595504, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 82, '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': '5655193', 'n_tokens_mistral': 1447, 'n_tokens_neox': 1288, 'n_words': 141}