<commit_before>module MetaModel

  class CocoaProperty
    attr_reader :json_key
    attr_reader :key
    attr_reader :type
    attr_reader :modifiers

    def initialize(json_key, type = :string, *modifiers)
      @json_key = json_key
      @key = json_key.to_s.camelize(:lower).to_sym
      @type = convert_symbol_to_type type

      @modifiers = {}
      @modifiers.default = false

      modifiers.flatten.map do |modifier|
        @modifiers[modifier] = true if modifier.is_a? Symbol
        @modifiers[:default] = modifier[:default] if modifier.is_a? Hash and modifier[:default]
      end
    end

    def is_unique?
      @modifiers.include? :unique
    end

    def is_primary?
      @modifiers.include? :primary
    end

    def has_default_value?
      @modifiers[:default].nil?
    end

    def default_value
      modifiers[:default]
    end

    def table_column
    end

    private

    def convert_symbol_to_type(symbol)
      symbol.to_s.capitalize
    end

  end

end<commit_msg>Remove table_column method<commit_after>module MetaModel

  class CocoaProperty
    attr_reader :json_key
    attr_reader :key
    attr_reader :type
    attr_reader :modifiers

    def initialize(json_key, type = :string, *modifiers)
      @json_key = json_key
      @key = json_key.to_s.camelize(:lower).to_sym
      @type = convert_symbol_to_type type

      @modifiers = {}
      @modifiers.default = false

      modifiers.flatten.map do |modifier|
        @modifiers[modifier] = true if modifier.is_a? Symbol
        @modifiers[:default] = modifier[:default] if modifier.is_a? Hash and modifier[:default]
      end
    end

    def is_unique?
      @modifiers.include? :unique
    end

    def is_primary?
      @modifiers.include? :primary
    end

    def has_default_value?
      @modifiers[:default].nil?
    end

    def default_value
      modifiers[:default]
    end

    private

    def convert_symbol_to_type(symbol)
      symbol.to_s.capitalize
    end

  end

end
{'fraction_non_alphanumeric': 0.08093070308548306, 'fraction_numerical': 0.0, 'mean_word_length': 2.6697588126159553, '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': '958886', 'n_tokens_mistral': 659, 'n_tokens_neox': 623, 'n_words': 142}