<commit_before>class User < ActiveRecord::Base
  has_many :startups
  # Include default devise modules. Others available are:
  # :token_authenticatable, :confirmable,
  # :lockable, :timeoutable and :omniauthable
  devise :database_authenticatable, :registerable,
         :recoverable, :rememberable, :trackable, :validatable

  attr_accessor :login
  validates_presence_of :username, :full_name
  validates_uniqueness_of :username

  def full_name
    if first_name and last_name
      [first_name, last_name].join(' ')
    end
  end

  def full_name=(name='')<commit_msg>Validate length of user bio<commit_after>class User < ActiveRecord::Base
  has_many :startups
  # Include default devise modules. Others available are:
  # :token_authenticatable, :confirmable,
  # :lockable, :timeoutable and :omniauthable
  devise :database_authenticatable, :registerable,
         :recoverable, :rememberable, :trackable, :validatable

  attr_accessor :login
  validates_presence_of :username, :full_name
  validates_uniqueness_of :username
  validates_length_of :bio, :maximum => 120

  def full_name
    if first_name and last_name
      [first_name, last_name].join(' ')
    end
  end

  def full_name=(name='')
{'fraction_non_alphanumeric': 0.0869205298013245, 'fraction_numerical': 0.0024834437086092716, 'mean_word_length': 4.8125, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '2439045', 'n_tokens_mistral': 396, 'n_tokens_neox': 374, 'n_words': 95}