<commit_before>class Signature < ActiveRecord::Base
  attr_accessible :email, :name, :first_name, :last_name, :reference_type, :referer_id
  belongs_to :petition
  belongs_to :member
  validates_presence_of :name
  validates :email, :presence => true, :email => true

  module ReferenceType
    FACEBOOK = 'facebook'
    TWITTER = 'twitter'
    EMAIL = 'email'
  end
<commit_msg>added validation of first and last name when signing a petition<commit_after>class Signature < ActiveRecord::Base
  attr_accessible :email, :name, :first_name, :last_name, :reference_type, :referer_id
  belongs_to :petition
  belongs_to :member
  validates_presence_of :name, :first_name, :last_name
  validates :email, :presence => true, :email => true

  module ReferenceType
    FACEBOOK = 'facebook'
    TWITTER = 'twitter'
    EMAIL = 'email'
  end

{'fraction_non_alphanumeric': 0.09603841536614646, 'fraction_numerical': 0.0, 'mean_word_length': 4.914893617021277, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '4190856', 'n_tokens_mistral': 279, 'n_tokens_neox': 272, 'n_words': 74}