<commit_before>module AssistanceBoxHelper
  def assistance_box(assignment)
    if assignment.tips.present?
      %Q{<div class="mu-tips-box">
        #{Mumukit::Assistant::Narrator.random.compose_explanation_html assignment.tips}
      </div>}.html_safe
    end
  end

  def should_display_assistance_box?(assignment)
    assignment.tips.present? && !assignment.solved?
  end
end
<commit_msg>Remove unnecessary if<commit_after>module AssistanceBoxHelper
  def assistance_box(assignment)
    %Q{<div class="mu-tips-box">
      #{Mumukit::Assistant::Narrator.random.compose_explanation_html assignment.tips}
    </div>}.html_safe
  end

  def should_display_assistance_box?(assignment)
    assignment.tips.present? && !assignment.solved?
  end
end

{'fraction_non_alphanumeric': 0.11126005361930295, 'fraction_numerical': 0.0, 'mean_word_length': 4.746153846153846, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '803923', 'n_tokens_mistral': 256, 'n_tokens_neox': 255, 'n_words': 37}