<commit_before>module Fog
  module Compute
    class Octocloud
      class Real

        def local_share_folder(vmname, name, hostpath)
          vmx = vmx_for_vm(vmname)
          # Try and clean up first, to handle path changes.
          begin
            vmrun 'removeSharedFolder', :opts => "#{name}", :vmx => vmx
          rescue
          end
          vmrun 'addSharedFolder', :opts => "#{name} #{hostpath}", :vmx => vmx
        end<commit_msg>expand host path when sharing<commit_after>module Fog
  module Compute
    class Octocloud
      class Real

        def local_share_folder(vmname, name, hostpath)
          vmx = vmx_for_vm(vmname)
          hostpath = Pathname.new(hostpath).expand_path
          # Try and clean up first, to handle path changes.
          begin
            vmrun 'removeSharedFolder', :opts => "#{name}", :vmx => vmx
          rescue
          end
          vmrun 'addSharedFolder', :opts => "#{name} #{hostpath}", :vmx => vmx
        end
{'fraction_non_alphanumeric': 0.09938524590163934, 'fraction_numerical': 0.0, 'mean_word_length': 2.111464968152866, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '2272184', 'n_tokens_mistral': 289, 'n_tokens_neox': 284, 'n_words': 85}