<commit_before>module ERM
  class Definition
    TYPE_MAPPINGS = {
      boolean: ERM::Boolean,
      symbol: Symbol,
      integer: Integer,
      float: Float,
      big_decimal: Bignum,
      string: String,
      time: Time,
      date: Date,
      date_time: DateTime
    }

    VISIBILITY_MAPPINGS = {
      standard: 0,
      hidden: 1 << 0,
      volatile: 1 << 1
    }

    attr_reader :type, :primitive, :flags, :options
    attr_accessor :capacity, :value

    #def_delegators :type, :box_pack, :box_unpack

    def initialize(type, options={})
      @type = type
      @options = options
      @primitive = TYPE_MAPPINGS.fetch(options[:type], Object)
      @flags = VISIBILITY_MAPPINGS.fetch(options[:flags], VISIBILITY_MAPPINGS[:standard])
      @capacity = 0
    end<commit_msg>add comment and change refer type by instance valuable<commit_after>module ERM
  class Definition
    TYPE_MAPPINGS = {
      boolean: ERM::Boolean,
      symbol: Symbol,
      integer: Integer,
      float: Float,
      big_decimal: Bignum, # need to check with Integer feature with ruby 3.x
      string: String,
      time: Time,
      date: Date,
      date_time: DateTime
    }

    VISIBILITY_MAPPINGS = {
      standard: 0,
      hidden: 1 << 0,
      volatile: 1 << 1
    }

    attr_reader :type, :primitive, :flags, :options
    attr_accessor :capacity, :value

    #def_delegators :type, :box_pack, :box_unpack

    def initialize(type, options={})
      @type = type
      @options = options
      @primitive = TYPE_MAPPINGS.fetch(@type, Object)
      @flags = VISIBILITY_MAPPINGS.fetch(options[:flags], VISIBILITY_MAPPINGS[:standard])
      @capacity = 0
    end
{'fraction_non_alphanumeric': 0.10317936412717456, 'fraction_numerical': 0.007798440311937612, 'mean_word_length': 2.6578947368421053, 'pattern_counts': {'":': 0, '<': 11, '<?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': '5624574', 'n_tokens_mistral': 553, 'n_tokens_neox': 524, 'n_words': 136}