<commit_before>require 'edi/formater'

module Setup
  class BuildInDataType
    include SchemaHandler
    include DataTypeParser

    attr_reader :model

    def title
      @title ||= model.to_s.to_title
    end

    def name
      @name ||= model.model_name.to_s
    end

    def initialize(model)
      @model = model
    end

    def subtype?
      model.superclass.include?(Mongoid::Document)
    end

    def records_model
      model
    end

    def model_schema<commit_msg>Slug for build-in data types<commit_after>require 'edi/formater'

module Setup
  class BuildInDataType
    include SchemaHandler
    include DataTypeParser

    attr_reader :model

    def title
      @title ||= model.to_s.to_title
    end

    def name
      @name ||= model.model_name.to_s
    end

    def initialize(model)
      @model = model
    end

    def subtype?
      model.superclass.include?(Mongoid::Document)
    end

    def records_model
      model
    end

    def slug
      model.to_s.split('::').last.underscore
    end

    def model_schema
{'fraction_non_alphanumeric': 0.06978967495219886, 'fraction_numerical': 0.0, 'mean_word_length': 2.3450479233226837, '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': '4996348', 'n_tokens_mistral': 338, 'n_tokens_neox': 322, 'n_words': 81}