<commit_before>require 'net/ldap'
require 'active_directory_service/service'

module ActiveDirectoryService
  # A path to YAML config file or a Proc that returns a
  # configuration hash
  mattr_accessor :ldap_config
  @@ldap_config = "#{Rails.root}/config/ldap.yml"


  def self.setup
    yield self
    p "ldap_config = #{ldap_config}"
  end
end<commit_msg>Settings part2<commit_after>require 'net/ldap'
require 'active_directory_service/service'

module ActiveDirectoryService
  # A path to YAML config file or a Proc that returns a
  # configuration hash
  mattr_accessor :ldap_config_path
  @@ldap_config_path = "#{Rails.root}/config/ads_setting.yml"

  mattr_accessor :ldap_config_path

  def self.setup
    yield self
    p "ldap_config = #{ldap_config_path}"

    @@ldap_config = YAML.load_file(Rails.root.join(ldap_config_path))

    p @@ldap_config
  end
end
{'fraction_non_alphanumeric': 0.08640552995391705, 'fraction_numerical': 0.001152073732718894, 'mean_word_length': 4.57051282051282, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4530497', 'n_tokens_mistral': 312, 'n_tokens_neox': 294, 'n_words': 72}