<commit_before>class BhsiLongtext < ActiveRecord::Base

  include SearchSortPaginate

  MIN_ABOUT_YOURSELF_WORDS      = 100
  MAX_ABOUT_YOURSELF_WORDS      = 200
  MAX_SOCIAL_VENTURE_DESC_WORDS = 50
  MIN_STRONG_MIDWEST_WORDS      = 50
  MAX_STRONG_MIDWEST_WORDS      = 100

  belongs_to :BhsiApplication

  validates :about_yourself, :presence => true, :length => {
    :minimum   => MIN_ABOUT_YOURSELF_WORDS,
    :maximum   => MAX_ABOUT_YOURSELF_WORDS,
    :tokenizer => lambda { |str| str.scan(/\w+/) },
    :too_short => "must be greater than %{count} words",
    :too_long  => "must be less than %{count} words"
  }
  validates :social_venture_description, :presence => true, :length => {
    :maximum   => MAX_SOCIAL_VENTURE_DESC_WORDS,
    :tokenizer => lambda { |str| str.scan(/\w+/) },
    :too_long  => "must be less than %{count} words"
  }
  validates :strong_midwest_connections_explained, :presence => true, :length => {
    :minimum   => MIN_STRONG_MIDWEST_WORDS,
    :maximum   => MAX_STRONG_MIDWEST_WORDS,
    :tokenizer => lambda { |str| str.scan(/\w+/) },
    :too_short => "must be greater than %{count} words",
    :too_long  => "must be less than %{count} words"
  }, :if => Proc.new { |bhsi| bhsi.strong_midwest_connections_explained.present? }

  validates :venture_launched,           :presence => true
  validates :number_people_affected,     :presence => true
  validates :explain_number,             :presence => true
  validates :organizational_development, :presence => true
  validates :three_standout_statistics,  :presence => true

end<commit_msg>Midwest connections not necessary anymore<commit_after>class BhsiLongtext < ActiveRecord::Base

  include SearchSortPaginate

  MIN_ABOUT_YOURSELF_WORDS      = 100
  MAX_ABOUT_YOURSELF_WORDS      = 200
  MAX_SOCIAL_VENTURE_DESC_WORDS = 50
  MIN_STRONG_MIDWEST_WORDS      = 50
  MAX_STRONG_MIDWEST_WORDS      = 100

  belongs_to :BhsiApplication

  validates :about_yourself, :presence => true, :length => {
    :minimum   => MIN_ABOUT_YOURSELF_WORDS,
    :maximum   => MAX_ABOUT_YOURSELF_WORDS,
    :tokenizer => lambda { |str| str.scan(/\w+/) },
    :too_short => "must be greater than %{count} words",
    :too_long  => "must be less than %{count} words"
  }
  validates :social_venture_description, :presence => true, :length => {
    :maximum   => MAX_SOCIAL_VENTURE_DESC_WORDS,
    :tokenizer => lambda { |str| str.scan(/\w+/) },
    :too_long  => "must be less than %{count} words"
  }
  validates :strong_midwest_connections_explained, :length => {
    :minimum   => MIN_STRONG_MIDWEST_WORDS,
    :maximum   => MAX_STRONG_MIDWEST_WORDS,
    :tokenizer => lambda { |str| str.scan(/\w+/) },
    :too_short => "must be greater than %{count} words",
    :too_long  => "must be less than %{count} words"
  }, :if => Proc.new { |bhsi| bhsi.strong_midwest_connections_explained.present? }

  validates :venture_launched,           :presence => true
  validates :number_people_affected,     :presence => true
  validates :explain_number,             :presence => true
  validates :organizational_development, :presence => true
  validates :three_standout_statistics,  :presence => true

end
{'fraction_non_alphanumeric': 0.11801830230356579, 'fraction_numerical': 0.008204480908804039, 'mean_word_length': 3.832317073170732, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 52, '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': '6408433', 'n_tokens_mistral': 1189, 'n_tokens_neox': 1111, 'n_words': 229}