<commit_before>
module Gitomator
  module Task
    module Config


      class ReposConfig

        attr_accessor :default_access_permission
        attr_accessor :repo_properties
        attr_accessor :source_repo

        #
        # @param config_obj [Hash] Configuration data (commonly loaded from a YAML file)
        #
        def initialize(config_obj)
          raise "Missing required key, repos" unless config_obj.has_key? 'repos'
          @repo2permissions = parse_repo2permissions(config_obj['repos'])

          default_access_permission = (config_obj['default_access_permission'] || :read).to_sym
          source_repo = config_obj['source_repo']
          repo_properties = config_obj['repo_properties'] || {}
        end


        #<commit_msg>fixing a silly bug (Ruby's object model always gets me)<commit_after>
module Gitomator
  module Task
    module Config


      class ReposConfig

        attr_reader :default_access_permission
        attr_reader :repo_properties
        attr_reader :source_repo

        #
        # @param config_obj [Hash] Configuration data (commonly loaded from a YAML file)
        #
        def initialize(config_obj)
          raise "Missing required key, repos" unless config_obj.has_key? 'repos'
          @repo2permissions = parse_repo2permissions(config_obj['repos'])

          @default_access_permission = (config_obj['default_access_permission'] || :read).to_sym
          @source_repo = config_obj['source_repo']
          @repo_properties = config_obj['repo_properties'] || {}
        end
        

        #
{'fraction_non_alphanumeric': 0.07648183556405354, 'fraction_numerical': 0.0025493945188017845, 'mean_word_length': 2.7740384615384617, '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': '3004711', 'n_tokens_mistral': 444, 'n_tokens_neox': 418, 'n_words': 101}