<commit_before>module Confo
  module OptionsManager
    extend ActiveSupport::Concern

    module ClassMethods

      # Define option accessors.
      def option_accessor(*names)
        names.each do |name|
          define_option_functional_accessor(name)
          define_option_writer(name)
        end
      end

      def define_option_functional_accessor(name)
        define_method("#{name}") do |*args|
          if args.size > 0
            raw_set(name, args.first)
            self
          else
            raw_get(name)
          end
        end
      end

      def define_option_writer(name)
        define_method("#{name}=") do |value|
          raw_set(name, value)
          self
        end
      end
    end

    # Returns option value:<commit_msg>Add TODO<commit_after>module Confo
  module OptionsManager
    extend ActiveSupport::Concern

    module ClassMethods

      # Define option accessors.
      def option_accessor(*names)
        names.each do |name|
          define_option_functional_accessor(name)
          define_option_writer(name)
        end
      end

      # TODO Implement
      def readonly_option(*names)

      end

      def define_option_functional_accessor(name)
        define_method("#{name}") do |*args|
          if args.size > 0
            raw_set(name, args.first)
            self
          else
            raw_get(name)
          end
        end
      end

      def define_option_writer(name)
        define_method("#{name}=") do |value|
          raw_set(name, value)
          self
        end
      end
    end

    # Returns option value:
{'fraction_non_alphanumeric': 0.06982543640897755, 'fraction_numerical': 0.0012468827930174563, 'mean_word_length': 1.7768166089965398, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2255501', 'n_tokens_mistral': 461, 'n_tokens_neox': 443, 'n_words': 105}