<commit_before>-# Expects locals: object
- if object && object.respond_to?("external_reports")
  = field_set_tag t('authoring.external_report_label') do
    .aligned
      = hidden_field_tag :update_external_reports, "true"
      - ExternalReport.where('report_type !=?', ExternalReport::ResearcherReport).each do | external_report |
        %div
          = check_box_tag "external_reports[]", external_report.id, object.external_report_ids.include?(external_report.id), :id => external_report.id
          = label_tag external_report.name, external_report.name
      %br
      = t('authoring.external_report_description')<commit_msg>update report filter to use a whitelist<commit_after>-# Expects locals: object
- if object && object.respond_to?("external_reports")
  = field_set_tag t('authoring.external_report_label') do
    .aligned
      = hidden_field_tag :update_external_reports, "true"
      - ExternalReport.where(report_type: [ExternalReport::OfferingReport, ExternalReport::ClassReport]).each do | external_report |
        %div
          = check_box_tag "external_reports[]", external_report.id, object.external_report_ids.include?(external_report.id), :id => external_report.id
          = label_tag external_report.name, external_report.name
      %br
      = t('authoring.external_report_description')
{'fraction_non_alphanumeric': 0.1106899166034875, 'fraction_numerical': 0.0, 'mean_word_length': 4.569620253164557, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3617027', 'n_tokens_mistral': 393, 'n_tokens_neox': 381, 'n_words': 66}