<commit_before>begin
  require "vagrant"
rescue LoadError
  abort "vagrant-r10k must be loaded in a Vagrant environment."
end

if Vagrant::VERSION < "1.2.0"
  raise "The Vagrant r10k plugin is only compatible with Vagrant 1.2+"
end

require "vagrant-r10k/version"
require "vagrant-r10k/modulegetter"

module VagrantPlugins
  module R10k
    class Plugin < Vagrant.plugin('2')
      name "vagrant-r10k"
      description "Retrieve puppet modules based on a Puppetfile"

      action_hook "vagrant-r10k" do |hook|
        hook.before Vagrant::Action::Builtin::Provision, Modulegetter
        hook.before Vagrant::Action::Builtin::ConfigValidate, Modulegetter
      end

      config "r10k" do
        require_relative "config"
        Config
      end

    end
  end
end
<commit_msg>use relative requires<commit_after>begin
  require "vagrant"
rescue LoadError
  abort "vagrant-r10k must be loaded in a Vagrant environment."
end

if Vagrant::VERSION < "1.2.0"
  raise "The Vagrant r10k plugin is only compatible with Vagrant 1.2+"
end

require_relative "version"
require_relative "modulegetter"

module VagrantPlugins
  module R10k
    class Plugin < Vagrant.plugin('2')
      name "vagrant-r10k"
      description "Retrieve puppet modules based on a Puppetfile"

      action_hook "vagrant-r10k" do |hook|
        hook.before Vagrant::Action::Builtin::Provision, Modulegetter
        hook.before Vagrant::Action::Builtin::ConfigValidate, Modulegetter
      end

      config "r10k" do
        require_relative "config"
        Config
      end

    end
  end
end

{'fraction_non_alphanumeric': 0.0793854033290653, 'fraction_numerical': 0.02560819462227913, 'mean_word_length': 3.3537604456824512, 'pattern_counts': {'":': 0, '<': 7, '<?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': '1750744', 'n_tokens_mistral': 543, 'n_tokens_neox': 520, 'n_words': 146}