<commit_before>module Vagrant
  module Action
    # Registers the builtin actions with a specific registry.
    #
    # These are the pre-built action sequences that are shipped with
    # Vagrant itself.
    def self.builtin!(registry)
      # provision - Provisions a running VM
      registry.register(:provision) do
        Builder.new do
          use General::Validate
          use VM::CheckAccessible
          use VM::Provision
        end
      end

      # start - Starts a VM, assuming it already exists on the
      # environment.
      registry.register(:start) do
        Builder.new do
          use General::Validate
          use VM::CheckAccessible
          use VM::CleanMachineFolder
          use VM::ClearForwardedPorts
          use VM::ForwardPorts
          use VM::Provision
          use VM::NFS
          use VM::ClearSharedFolders
          use VM::ShareFolders
          use VM::HostName
          use VM::Network
          use VM::Customize
          use VM::Modify
          use VM::Boot
        end
      end

      # halt - Halts the VM, attempting gracefully but then forcing
      # a restart if fails.
      registry.register(:halt) do
        Builder.new do
          use General::Validate
          use VM::CheckAccessible
          use VM::DiscardState
          use VM::Halt
        end
      end

      # suspend - Suspends the VM
      registry.register(:suspend) do
        Builder.new do
          use General::Validate
          use VM::CheckAccessible
          use VM::Suspend
        end
      end

      # resume - Resume a VM
      registry.register(:resume) do
        Builder.new do
          use General::Validate
          use VM::CheckAccessible
          use VM::Resume
        end
      end

      # reload - Halts then restarts the VM
      registry.register(:reload) do
        Builder.new do
          use General::Validate
          use VM::CheckAccessible
          use registry.get(:halt)
          use registry.get(:start)
        end
      end

      # up - Imports, prepares, then starts a fresh VM.
      registry.register(:up) do
        Builder.new do
          use General::Validate
          use VM::CheckAccessible
          use VM::CheckBox
          use VM::Import
          use VM::MatchMACAddress
          use VM::CheckGuestAdditions
          use registry.get(:start)
        end
      end

      # destroy - Halts, cleans up, and destroys an existing VM
      registry.register(:destroy) do
        Builder.new do
          use General::Validate
          use VM::CheckAccessible
          use registry.get(:halt), :force => true
          use VM::ProvisionerCleanup
          use VM::ClearNFSExports
          use VM::Destroy
          use VM::CleanMachineFolder
          use VM::DestroyUnusedNetworkInterfaces
        end
      end

      # package - Export and package the VM
      registry.register(:package) do
        Builder.new do
          use General::Validate
          use VM::CheckAccessible
          use registry.get(:halt)
          use VM::ClearForwardedPorts
          use VM::ClearSharedFolders
          use VM::Modify
          use VM::Export
          use VM::PackageVagrantfile
          use VM::Package
        end
      end

      # box_add - Download and add a box.
      registry.register(:box_add) do
        Builder.new do
          use Box::Download
          use Box::Unpackage
          use Box::Verify
        end
      end

      # box_remove - Removes/deletes a box.
      registry.register(:box_remove) do
        Builder.new do
          use Box::Destroy
        end
      end

      # box_repackage - Repackages a box.
      registry.register(:box_repackage) do
        Builder.new do
          use Box::Package
        end
      end
    end
  end
end
<commit_msg>Check for guest additions right after import<commit_after>module Vagrant
  module Action
    # Registers the builtin actions with a specific registry.
    #
    # These are the pre-built action sequences that are shipped with
    # Vagrant itself.
    def self.builtin!(registry)
      # provision - Provisions a running VM
      registry.register(:provision) do
        Builder.new do
          use General::Validate
          use VM::CheckAccessible
          use VM::Provision
        end
      end

      # start - Starts a VM, assuming it already exists on the
      # environment.
      registry.register(:start) do
        Builder.new do
          use General::Validate
          use VM::CheckAccessible
          use VM::CleanMachineFolder
          use VM::ClearForwardedPorts
          use VM::ForwardPorts
          use VM::Provision
          use VM::NFS
          use VM::ClearSharedFolders
          use VM::ShareFolders
          use VM::HostName
          use VM::Network
          use VM::Customize
          use VM::Modify
          use VM::Boot
        end
      end

      # halt - Halts the VM, attempting gracefully but then forcing
      # a restart if fails.
      registry.register(:halt) do
        Builder.new do
          use General::Validate
          use VM::CheckAccessible
          use VM::DiscardState
          use VM::Halt
        end
      end

      # suspend - Suspends the VM
      registry.register(:suspend) do
        Builder.new do
          use General::Validate
          use VM::CheckAccessible
          use VM::Suspend
        end
      end

      # resume - Resume a VM
      registry.register(:resume) do
        Builder.new do
          use General::Validate
          use VM::CheckAccessible
          use VM::Resume
        end
      end

      # reload - Halts then restarts the VM
      registry.register(:reload) do
        Builder.new do
          use General::Validate
          use VM::CheckAccessible
          use registry.get(:halt)
          use registry.get(:start)
        end
      end

      # up - Imports, prepares, then starts a fresh VM.
      registry.register(:up) do
        Builder.new do
          use General::Validate
          use VM::CheckAccessible
          use VM::CheckBox
          use VM::Import
          use VM::CheckGuestAdditions
          use VM::MatchMACAddress
          use registry.get(:start)
        end
      end

      # destroy - Halts, cleans up, and destroys an existing VM
      registry.register(:destroy) do
        Builder.new do
          use General::Validate
          use VM::CheckAccessible
          use registry.get(:halt), :force => true
          use VM::ProvisionerCleanup
          use VM::ClearNFSExports
          use VM::Destroy
          use VM::CleanMachineFolder
          use VM::DestroyUnusedNetworkInterfaces
        end
      end

      # package - Export and package the VM
      registry.register(:package) do
        Builder.new do
          use General::Validate
          use VM::CheckAccessible
          use registry.get(:halt)
          use VM::ClearForwardedPorts
          use VM::ClearSharedFolders
          use VM::Modify
          use VM::Export
          use VM::PackageVagrantfile
          use VM::Package
        end
      end

      # box_add - Download and add a box.
      registry.register(:box_add) do
        Builder.new do
          use Box::Download
          use Box::Unpackage
          use Box::Verify
        end
      end

      # box_remove - Removes/deletes a box.
      registry.register(:box_remove) do
        Builder.new do
          use Box::Destroy
        end
      end

      # box_repackage - Repackages a box.
      registry.register(:box_repackage) do
        Builder.new do
          use Box::Package
        end
      end
    end
  end
end

{'fraction_non_alphanumeric': 0.0650085537570733, 'fraction_numerical': 0.0, 'mean_word_length': 1.6234035208836728, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2203578', 'n_tokens_mistral': 1972, 'n_tokens_neox': 1958, 'n_words': 612}