<commit_before># encoding: utf-8

module CarrierWave
  module Qiniu
    module Configuration
      extend ActiveSupport::Concern
      included do
        add_config :qiniu_bucket_domain
        add_config :qiniu_bucket
        add_config :qiniu_bucket_private
        add_config :qiniu_access_key
        add_config :qiniu_secret_key
        add_config :qiniu_block_size
        add_config :qiniu_protocol
        add_config :qiniu_async_ops
        add_config :qiniu_can_overwrite
        add_config :qiniu_expires_in
        add_config :qiniu_up_host
        add_config :qiniu_private_url_expires_in

        alias_config :qiniu_protocal, :qiniu_protocol
      end

      module ClassMethods
        def alias_config(new_name, old_name)
          class_eval <<-RUBY, __FILE__, __LINE__ + 1
          def self.#{new_name}(value=nil)
            self.#{old_name}(value)
          end

          def self.#{new_name}=(value)
            self.#{old_name}=(value)
          end
<commit_msg>add callback config<commit_after># encoding: utf-8

module CarrierWave
  module Qiniu
    module Configuration
      extend ActiveSupport::Concern
      included do
        add_config :qiniu_bucket_domain
        add_config :qiniu_bucket
        add_config :qiniu_bucket_private
        add_config :qiniu_access_key
        add_config :qiniu_secret_key
        add_config :qiniu_block_size
        add_config :qiniu_protocol
        add_config :qiniu_async_ops
        add_config :qiniu_callback_url
        add_config :qiniu_can_overwrite
        add_config :qiniu_expires_in
        add_config :qiniu_up_host
        add_config :qiniu_private_url_expires_in

        alias_config :qiniu_protocal, :qiniu_protocol
      end

      module ClassMethods
        def alias_config(new_name, old_name)
          class_eval <<-RUBY, __FILE__, __LINE__ + 1
          def self.#{new_name}(value=nil)
            self.#{old_name}(value)
          end

          def self.#{new_name}=(value)
            self.#{old_name}=(value)
          end

{'fraction_non_alphanumeric': 0.058881741712023754, 'fraction_numerical': 0.0019792182088075212, 'mean_word_length': 2.4564102564102566, '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': '5309986', 'n_tokens_mistral': 666, 'n_tokens_neox': 655, 'n_words': 122}