<commit_before># Configure sensitive parameters which will be filtered from the log file.
Rails.application.config.filter_parameters += [
  :password,
  :text, # Filtering this one out because the `text` field in the event_notes and
         # event_note_revisions tables can contain sensitive information about
         # students that we want to keep out of logs.
]<commit_msg>Scrubbing params logs a bit more<commit_after># Configure sensitive parameters which will be filtered from the log file.
# This functions as a regex, not a whitelist of keys.
Rails.application.config.filter_parameters += [
  :password,

  # Filtering this one out because the `text` field in the event_notes and
  # event_note_revisions tables can contain sensitive information about
  # students that we want to keep out of logs.
  :text,

  # This is a good filter in general, but was added specifically for
  # class_lists_controller.
  :name
]
{'fraction_non_alphanumeric': 0.056155507559395246, 'fraction_numerical': 0.0, 'mean_word_length': 4.121546961325967, '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': '4221690', 'n_tokens_mistral': 244, 'n_tokens_neox': 238, 'n_words': 115}