<commit_before># encoding: utf-8
require 'backup/config/dsl'
require 'backup/config/helpers'

module Backup
  module Config
    class Error < Backup::Error; end

    DEFAULTS = {
      :config_file  => 'config.rb',
      :data_path    => 'data',
      :tmp_path     => '.tmp'
    }

    class << self
      include Utilities::Helpers

      attr_reader :user, :root_path, :config_file, :data_path, :tmp_path

      # Loads the user's +config.rb+ and all model files.
      def load(options = {})
        update(options)  # from the command line

        unless File.exist?(config_file)
          raise Error, "Could not find configuration file: '#{config_file}'."
        end<commit_msg>change default data_path to `.data`<commit_after># encoding: utf-8
require 'backup/config/dsl'
require 'backup/config/helpers'

module Backup
  module Config
    class Error < Backup::Error; end

    DEFAULTS = {
      :config_file  => 'config.rb',
      :data_path    => '.data',
      :tmp_path     => '.tmp'
    }

    class << self
      include Utilities::Helpers

      attr_reader :user, :root_path, :config_file, :data_path, :tmp_path

      # Loads the user's +config.rb+ and all model files.
      def load(options = {})
        update(options)  # from the command line

        unless File.exist?(config_file)
          raise Error, "Could not find configuration file: '#{config_file}'."
        end
{'fraction_non_alphanumeric': 0.11882605583392986, 'fraction_numerical': 0.0014316392269148174, 'mean_word_length': 2.6311688311688313, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '5680897', 'n_tokens_mistral': 436, 'n_tokens_neox': 433, 'n_words': 119}