<commit_before>require 'psych'
require 'pathname'

module Sequelizer
  class YamlConfig
    attr_reader :config_file_path

    class << self
      def pwd
        new
      end

      def home
        new(Pathname.new("~") + ".config" + "sequelizer" + "database.yml")
      end
    end

    def initialize(config_file_path = nil)
      @config_file_path = Pathname.new(config_file_path || Pathname.pwd + "config" + "database.yml").expand_path
    end

    # Returns a set of options pulled from config/database.yml
    # or +nil+ if config/database.yml doesn't exist
    def options
      return {} unless config_file_path.exist?
      config['adapter'] ? config : config[environment]
    end
<commit_msg>Check for symbols in YamlConfig as well<commit_after>require 'psych'
require 'pathname'

module Sequelizer
  class YamlConfig
    attr_reader :config_file_path

    class << self
      def pwd
        new
      end

      def home
        new(Pathname.new("~") + ".config" + "sequelizer" + "database.yml")
      end
    end

    def initialize(config_file_path = nil)
      @config_file_path = Pathname.new(config_file_path || Pathname.pwd + "config" + "database.yml").expand_path
    end

    # Returns a set of options pulled from config/database.yml
    # or +nil+ if config/database.yml doesn't exist
    def options
      return {} unless config_file_path.exist?
      config['adapter'] || config[:adapter] ? config : config[environment]
    end

{'fraction_non_alphanumeric': 0.09821428571428571, 'fraction_numerical': 0.0, 'mean_word_length': 2.8853333333333335, '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': '2108793', 'n_tokens_mistral': 460, 'n_tokens_neox': 439, 'n_words': 119}