<commit_before># -*- coding: utf-8 -*-
class ProjectAccount < ActiveRecord::Base
  include I18n::Alchemy
  include Shared::BankAccountHelper
  belongs_to :project
  belongs_to :bank

  attr_accessor :input_bank_number
  validate :input_bank_number_validation
  before_validation :load_bank_from_input_bank_number

  validates_presence_of :email, :address_street, :address_number, :address_city, :address_state, :address_zip_code, :phone_number, :bank, :agency, :account, :account_digit, :owner_name, :owner_document

  def entity_type
    if owner_document
      owner_document.length > 14 ? 'Pessoa Jurídica' : 'Pessoa Física'
    else
      'Pessoa Física'
    end
  end


end<commit_msg>added agency minimum size validation [Fix #120320147]<commit_after># -*- coding: utf-8 -*-
class ProjectAccount < ActiveRecord::Base
  include I18n::Alchemy
  include Shared::BankAccountHelper
  belongs_to :project
  belongs_to :bank

  attr_accessor :input_bank_number
  validate :input_bank_number_validation
  before_validation :load_bank_from_input_bank_number

  validates_presence_of :email, :address_street, :address_number, :address_city, :address_state, :address_zip_code, :phone_number, :bank, :agency, :account, :account_digit, :owner_name, :owner_document

  validates_length_of :agency, minimum: 4

  def entity_type
    if owner_document
      owner_document.length > 14 ? 'Pessoa Jurídica' : 'Pessoa Física'
    else
      'Pessoa Física'
    end
  end


end
{'fraction_non_alphanumeric': 0.08475734791524266, 'fraction_numerical': 0.01367053998632946, 'mean_word_length': 5.256410256410256, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1335906', 'n_tokens_mistral': 506, 'n_tokens_neox': 479, 'n_words': 109}