<commit_before>class ApplicationRecord < ActiveRecord::Base
	self.abstract_class = true

	include Forbiddable::InstanceMethods
	extend Whitespaceable::ClassMethods

	def email=(email)
		write_attribute(:email, self.class.format_email(email))
	end

	def self.format_email(email)
		email.strip
	end

	def self.email_regex
		/\A([^@]+@[^@]+\.[^.@\d]+|)\z/
	end

	def self.contact_name_regex
		/\A\w{,25}\z/
	end

	def self.occupation_regex
		self.contact_name_regex
	end

	def self.employer_regex
		/\A\w{,50}\z/
	end

	def self.contact_address_line_regex
		/\A[\w .]{,50}\z/
	end

end
<commit_msg>now requiring contact first and last name to have nonzero length<commit_after>class ApplicationRecord < ActiveRecord::Base
	self.abstract_class = true

	include Forbiddable::InstanceMethods
	extend Whitespaceable::ClassMethods

	def email=(email)
		write_attribute(:email, self.class.format_email(email))
	end

	def self.format_email(email)
		email.strip
	end

	def self.email_regex
		/\A([^@]+@[^@]+\.[^.@\d]+|)\z/
	end

	def self.contact_name_regex
		/\A\w{1,25}\z/
	end

	def self.occupation_regex
		/\A\w{,25}\z/
	end

	def self.employer_regex
		/\A\w{,50}\z/
	end

	def self.contact_address_line_regex
		/\A[\w .]{,50}\z/
	end

end

{'fraction_non_alphanumeric': 0.14691558441558442, 'fraction_numerical': 0.012175324675324676, 'mean_word_length': 3.9518072289156625, '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': '6416037', 'n_tokens_mistral': 515, 'n_tokens_neox': 470, 'n_words': 90}