<commit_before>module VagrantPlugins
  module LibrarianChef
    class Config < Vagrant.plugin(2, :config)
      attr_accessor :cheffile_dir

      # @return [Boolean]
      #   disable of use Berks in Vagrant
      attr_accessor :enabled

      def initialize
        @cheffile_dir = UNSET_VALUE
        @enabled      = UNSET_VALUE
      end

      def finalize!
        @cheffile_dir = "." if @cheffile_dir == UNSET_VALUE
        @enabled      = File.exist?(cheffile_path) if @enabled == UNSET_VALUE
      end

      def cheffile_path
        @cheffile_path ||= @cheffile_dir ? File.join(@cheffile_dir, 'Cheffile') : 'Cheffile'
      end
    end
  end
end
<commit_msg>plugin is enabled by default when config flag is not set<commit_after>module VagrantPlugins
  module LibrarianChef
    class Config < Vagrant.plugin(2, :config)
      attr_accessor :cheffile_dir

      # @return [Boolean]
      #   disable of use Berks in Vagrant
      attr_accessor :enabled

      def initialize
        @cheffile_dir = UNSET_VALUE
        @enabled      = true
      end

      def finalize!
        @cheffile_dir = "." if @cheffile_dir == UNSET_VALUE
      end

      def cheffile_path
        @cheffile_path ||= @cheffile_dir ? File.join(@cheffile_dir, 'Cheffile') : 'Cheffile'
      end
    end
  end
end

{'fraction_non_alphanumeric': 0.0763888888888889, 'fraction_numerical': 0.0015432098765432098, 'mean_word_length': 2.413157894736842, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4106749', 'n_tokens_mistral': 438, 'n_tokens_neox': 434, 'n_words': 105}