<commit_before>class Case::SARPolicy < Case::BasePolicy

  def can_respond?
    clear_failed_checks
    self.case.drafting? &&
        user.responding_teams.include?(self.case.responding_team)
  end

  def show?
    clear_failed_checks

    check(:user_is_a_manager_for_case) ||
      check(:user_is_a_responder_for_case) ||
      check(:responding_team_is_linked_to_case)
  end

  private

  check :responding_team_is_linked_to_case do
    self.case.linked_cases.detect do |kase|
      kase.responding_team.in? user.responding_teams
    end
  end
end
<commit_msg>CT-1518 remove extraneous private in SARPolicy<commit_after>class Case::SARPolicy < Case::BasePolicy

  def can_respond?
    clear_failed_checks
    self.case.drafting? &&
        user.responding_teams.include?(self.case.responding_team)
  end

  def show?
    clear_failed_checks

    check(:user_is_a_manager_for_case) ||
      check(:user_is_a_responder_for_case) ||
      check(:responding_team_is_linked_to_case)
  end

  check :responding_team_is_linked_to_case do
    self.case.linked_cases.detect do |kase|
      kase.responding_team.in? user.responding_teams
    end
  end
end

{'fraction_non_alphanumeric': 0.0791304347826087, 'fraction_numerical': 0.0034782608695652175, 'mean_word_length': 4.026200873362446, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1339860', 'n_tokens_mistral': 420, 'n_tokens_neox': 393, 'n_words': 60}