<commit_before>class Sponsor < ActiveRecord::Base
  require 'uri'

  enum level: {
    hidden: 0, # hidden from the sponsors page but still visible on event pages
    standard: 1,
    bronze: 2,
    silver: 3,
    gold: 4,
  }

  has_one :address
  has_many :chapters, through: :workshops
  has_many :workshop_sponsors
  has_many :workshops, through: :workshop_sponsors
  has_many :member_contacts
  has_many :contacts, through: :member_contacts, class_name: 'Member', foreign_key: 'member_id'

  validates :name, :address, :avatar, :website, :seats, presence: true<commit_msg>(refactor) Remove trailing comma after the last hash<commit_after>class Sponsor < ActiveRecord::Base
  require 'uri'

  enum level: {
    hidden: 0, # hidden from the sponsors page but still visible on event pages
    standard: 1,
    bronze: 2,
    silver: 3,
    gold: 4
  }

  has_one :address
  has_many :chapters, through: :workshops
  has_many :workshop_sponsors
  has_many :workshops, through: :workshop_sponsors
  has_many :member_contacts
  has_many :contacts, through: :member_contacts, class_name: 'Member', foreign_key: 'member_id'

  validates :name, :address, :avatar, :website, :seats, presence: true
{'fraction_non_alphanumeric': 0.09479865771812081, 'fraction_numerical': 0.008389261744966443, 'mean_word_length': 4.523148148148148, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5152659', 'n_tokens_mistral': 414, 'n_tokens_neox': 390, 'n_words': 122}