<commit_before># frozen_string_literal: true
# rubocop:disable Rails/FindEach
class Criteria
  ATTRIBUTES = CriteriaHash.reduce([]) do |attributes, criterion|
    attributes | criterion[1].keys
  end.map(&:to_sym).freeze
  FUTURE_ATTRIBUTES = %i(
    met_url na_placeholder na_suppress unmet
    unmet_suppress
  ).freeze
  ACCESSORS = (%i(name) + ATTRIBUTES + FUTURE_ATTRIBUTES).freeze<commit_msg>Explicitly define criterion attributes in models/criteria.rb (#628)<commit_after># frozen_string_literal: true
# rubocop:disable Rails/FindEach
class Criteria
  ACCESSORS = %i(
    name category future
    description details rationale
    met_suppress na_suppress unmet_suppress
    met_url_required met_url
    na_allowed na_justification_required
    autofill met_placeholder unmet_placeholder na_placeholder
    major minor unmet
  ).freeze
{'fraction_non_alphanumeric': 0.07007125890736342, 'fraction_numerical': 0.004750593824228029, 'mean_word_length': 5.198529411764706, 'pattern_counts': {'":': 0, '<': 3, '<?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': '475502', 'n_tokens_mistral': 276, 'n_tokens_neox': 259, 'n_words': 62}