<commit_before>module Effective
  class StyleGuide
    include ActiveModel::Model

    if defined?(EffectiveAssets)
      acts_as_asset_box files: 1..6
    end

    attr_accessor :id, :title, :email, :password, :number, :range, :category, :content
    attr_accessor :archived, :drink, :food, :price, :updated_at, :publish_on, :static_text


    # column :id, :integer

    # column :title, :string
    # column :email, :string
    # column :password, :string
    # column :number, :integer
    # column :range, :integer
    # column :category, :string
    # column :content, :text
    # column :archived, :boolean
    # column :drink, :string
    # column :food, :string
    # column :price, :integer
    # column :updated_at, :datetime
    # column :publish_on, :date
    # column :static_text, :string

    validates :id, :title, :email, :password, :number, :range, :category, :content, presence: true
    validates :archived, :drink, :food, :price, :updated_at, :publish_on, :static_text, presence: true

    def static_text
      'some static text'
    end

  end
end<commit_msg>clean up style_guide model<commit_after>module Effective
  class StyleGuide
    include ActiveModel::Model

    if defined?(EffectiveAssets)
      acts_as_asset_box files: 1..6
    end

    ATTRIBUTES = [
      :id, :title, :email, :password, :number, :range, :category, :content,
      :archived, :drink, :food, :price, :updated_at, :publish_on, :static_text
    ]

    attr_accessor *ATTRIBUTES
    validates *ATTRIBUTES, presence: true

    def static_text
      'some static text'
    end

  end
end
{'fraction_non_alphanumeric': 0.11475409836065574, 'fraction_numerical': 0.0025220680958385876, 'mean_word_length': 3.4329608938547485, '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': '3933957', 'n_tokens_mistral': 528, 'n_tokens_neox': 508, 'n_words': 147}