<commit_before># These fixtures use Advanced Features, including autogenerated IDs and label
# references for associations. Some associations for this fixture may be defined
# in a fixture on the opposite side of the association.
# See http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
#
DEFAULTS: &DEFAULTS
  auth_code:      <PASSWORD>
  contribution:   10
  email:          <EMAIL>
  image_size:     <%= User.image_sizes[:medium] %>
  keep_filenames: <%= User.keep_filenames[:toss] %>
  locale:         en-US
  login:          $LABEL
  name:           $LABEL
  password:       <PASSWORD> # <PASSWORD>
  thumbnail_size: <%= User.thumbnail_sizes[:thumbnail] %>
  verified:       <%= Time.now.strftime("%F %T")%>
  # Associations
  user_groups:    all_users, $LABEL_only

# Rolf is an experienced user
# Also the default user for Images fixtures
rolf:
  <<: *DEFAULTS
  name: <NAME>
  license: ccwiki30
  image: rolf_profile_image
  view_owner_id: true
  user_groups: all_users, eol_users, eol_admins, reviewers, rolf_only

# Mary has no images and no herbaria
mary:
  <<: *DEFAULTS
  name: <NAME>
  keep_filenames: <%= User.keep_filenames[:keep_and_show] %>
  user_groups: all_users, eol_users, eol_admins, mary_only
  mailing_address: 123 Some Pl., Pasadena, CA 91106

# Junk gets denied
junk:
  <<: *DEFAULTS
  name: Junk Box

# Need third for testing votes
# Also is the default user for Observation fixture set.
dick:
  <<: *DEFAULTS
  name: <NAME>
  email_general_question: false
  verified: 2006-03-02 21:14:00
  user_groups: all_users, bolete_users, bolete_admins, dick_only

# Need fourth for testing votes
katrina:
  <<: *DEFAULTS
  name: Katrina
  keep_filenames: <%= User.keep_filenames[:keep_but_hide] %>
  user_groups: all_users, eol_users, katrina_only

# Roy is a scientific user
roy:
  <<: *DEFAULTS
  name: <NAME>
  email_general_question: true
  location_format: <%= User.location_formats[:scientific] %>

spammer:
  <<: *DEFAULTS
  login: spamspamspam

# Has nothing -- No: comments, descriptions, filters, images, locations, names,
# observations, projects, publications, species lists, specimens, or anything
# except account
zero_user:
  <<: *DEFAULTS
  contribution: 0

# excludes imageless Observations from search results, rss feed
ignore_imageless_user:
  <<: *DEFAULTS
  verified:  2016-08-24 16:20:00
  content_filter: <%= { has_images: "yes" }.to_yaml.inspect %>
  layout_count: 24

# hides unvouchered Observations
vouchered_only_user:
  <<: *DEFAULTS
  verified:  2016-09-02 13:50:00
  content_filter: <%= { has_specimen: "yes" }.to_yaml.inspect %>
  layout_count: 24

public_voter:
  <<: *DEFAULTS

# Has multiple Observations whose sortable attributes are unique
# Need for tests in which sort order is predictable, e.g.,
# ObserverControllerIntegrationTest#test_destroy_observation_from_search
sortable_obs_user:
  <<: *DEFAULTS

uniquely_named_user:
  <<: *DEFAULTS

# Owns the default Location for Observations
obs_default_location_user:
  <<: *DEFAULTS

small_thumbnail_user:
  <<: *DEFAULTS
  thumbnail_size: small

no_general_questions_user:
  <<: *DEFAULTS
  email_general_question: false

article_writer:
  <<: *DEFAULTS
  user_groups:  all_users, $LABEL_only, article_writers

notes_templater:
  <<: *DEFAULTS
  notes_template: Determiner, Habitat, Substrate, Nearby trees, Odor
<commit_msg>Simplify User notes_templater fixture<commit_after># These fixtures use Advanced Features, including autogenerated IDs and label
# references for associations. Some associations for this fixture may be defined
# in a fixture on the opposite side of the association.
# See http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
#
DEFAULTS: &DEFAULTS
  auth_code:      <PASSWORD>
  contribution:   10
  email:          <EMAIL>
  image_size:     <%= User.image_sizes[:medium] %>
  keep_filenames: <%= User.keep_filenames[:toss] %>
  locale:         en-US
  login:          $LABEL
  name:           $LABEL
  password:       <PASSWORD> # <PASSWORD>
  thumbnail_size: <%= User.thumbnail_sizes[:thumbnail] %>
  verified:       <%= Time.now.strftime("%F %T")%>
  # Associations
  user_groups:    all_users, $LABEL_only

# Rolf is an experienced user
# Also the default user for Images fixtures
rolf:
  <<: *DEFAULTS
  name: <NAME>
  license: ccwiki30
  image: rolf_profile_image
  view_owner_id: true
  user_groups: all_users, eol_users, eol_admins, reviewers, rolf_only

# Mary has no images and no herbaria
mary:
  <<: *DEFAULTS
  name: <NAME>
  keep_filenames: <%= User.keep_filenames[:keep_and_show] %>
  user_groups: all_users, eol_users, eol_admins, mary_only
  mailing_address: 123 Some Pl., Pasadena, CA 91106

# Junk gets denied
junk:
  <<: *DEFAULTS
  name: Junk Box

# Need third for testing votes
# Also is the default user for Observation fixture set.
dick:
  <<: *DEFAULTS
  name: <NAME>
  email_general_question: false
  verified: 2006-03-02 21:14:00
  user_groups: all_users, bolete_users, bolete_admins, dick_only

# Need fourth for testing votes
katrina:
  <<: *DEFAULTS
  name: Katrina
  keep_filenames: <%= User.keep_filenames[:keep_but_hide] %>
  user_groups: all_users, eol_users, katrina_only

# Roy is a scientific user
roy:
  <<: *DEFAULTS
  name: <NAME>
  email_general_question: true
  location_format: <%= User.location_formats[:scientific] %>

spammer:
  <<: *DEFAULTS
  login: spamspamspam

# Has nothing -- No: comments, descriptions, filters, images, locations, names,
# observations, projects, publications, species lists, specimens, or anything
# except account
zero_user:
  <<: *DEFAULTS
  contribution: 0

# excludes imageless Observations from search results, rss feed
ignore_imageless_user:
  <<: *DEFAULTS
  verified:  2016-08-24 16:20:00
  content_filter: <%= { has_images: "yes" }.to_yaml.inspect %>
  layout_count: 24

# hides unvouchered Observations
vouchered_only_user:
  <<: *DEFAULTS
  verified:  2016-09-02 13:50:00
  content_filter: <%= { has_specimen: "yes" }.to_yaml.inspect %>
  layout_count: 24

public_voter:
  <<: *DEFAULTS

# Has multiple Observations whose sortable attributes are unique
# Need for tests in which sort order is predictable, e.g.,
# ObserverControllerIntegrationTest#test_destroy_observation_from_search
sortable_obs_user:
  <<: *DEFAULTS

uniquely_named_user:
  <<: *DEFAULTS

# Owns the default Location for Observations
obs_default_location_user:
  <<: *DEFAULTS

small_thumbnail_user:
  <<: *DEFAULTS
  thumbnail_size: small

no_general_questions_user:
  <<: *DEFAULTS
  email_general_question: false

article_writer:
  <<: *DEFAULTS
  user_groups:  all_users, $LABEL_only, article_writers

notes_templater:
  <<: *DEFAULTS
  notes_template: Cap, Nearby trees, odor

{'fraction_non_alphanumeric': 0.1019279629352862, 'fraction_numerical': 0.017635629950680017, 'mean_word_length': 4.548922056384743, 'pattern_counts': {'":': 0, '<': 109, '<?xml version=': 0, '>': 37, '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': '5360761', 'n_tokens_mistral': 2443, 'n_tokens_neox': 2318, 'n_words': 595}