<commit_before>- add_breadcrumb format_inline_text(@assessment.title)
= page_header format_inline_text(@assessment.title) do
  = render 'assessment_management_buttons', assessment: @assessment
  - if can?(:manage, @assessment)
    div.btn-group
      = edit_button([current_course, @assessment])
      = delete_button([current_course, @assessment])

= div_for(@assessment, 'data-assessment-id' => @assessment.id) do
  h3 = t('.description')
  = format_html(@assessment.description)

  table.table.table-bordered.details-table
    tbody
      tr.type
        th = t('.type')
        td = @assessment.autograded? ? t('.autograded') : t('.manually_graded')
      tr.base_exp
        th = t('.base_exp')
        td = @assessment.base_exp
      tr.bonus_exp
        th = t('.bonus_exp')
        td = @assessment.time_bonus_exp
      tr.start_at
        th = t('.start_at')
        td = format_datetime(@assessment.start_at)
      tr.bonus_cut_off
        th = t('.bonus_cut_off')
        td = format_datetime(@assessment.bonus_end_at) if @assessment.bonus_end_at.present?
      tr.end_at
        th = t('.end_at')
        td = format_datetime(@assessment.end_at) if @assessment.end_at.present?

  - if cannot?(:attempt, @assessment)
    h3 = t('.requirements')
    p.condition-not-satisfied = t('.condition_not_satisfied')

    ul
    - @assessment.specific_conditions.each do |condition|
      = content_tag_for(:li, condition) do
        = condition.title

  h3 = t('.finish_to_unlock')
  = render partial: @assessment.assessment_conditions.includes(:conditional), suffix: 'condition'

  - if can?(:attempt, @assessment)
    h3 = t('.files')
    = render partial: 'layouts/materials', locals: { folder: @assessment.folder }

  - if can?(:manage, @assessment)
    div.pull-right
      div.dropdown<commit_msg>Hide assessment attribute headers if there is no relevant content<commit_after>- add_breadcrumb format_inline_text(@assessment.title)
= page_header format_inline_text(@assessment.title) do
  = render 'assessment_management_buttons', assessment: @assessment
  - if can?(:manage, @assessment)
    div.btn-group
      = edit_button([current_course, @assessment])
      = delete_button([current_course, @assessment])

= div_for(@assessment, 'data-assessment-id' => @assessment.id) do
  - unless @assessment.description.blank?
    h3 = t('.description')
    = format_html(@assessment.description)

  table.table.table-bordered.details-table
    tbody
      tr.type
        th = t('.type')
        td = @assessment.autograded? ? t('.autograded') : t('.manually_graded')
      tr.base_exp
        th = t('.base_exp')
        td = @assessment.base_exp
      tr.bonus_exp
        th = t('.bonus_exp')
        td = @assessment.time_bonus_exp
      tr.start_at
        th = t('.start_at')
        td = format_datetime(@assessment.start_at)
      tr.bonus_cut_off
        th = t('.bonus_cut_off')
        td = format_datetime(@assessment.bonus_end_at) if @assessment.bonus_end_at.present?
      tr.end_at
        th = t('.end_at')
        td = format_datetime(@assessment.end_at) if @assessment.end_at.present?

  - if cannot?(:attempt, @assessment)
    h3 = t('.requirements')
    p.condition-not-satisfied = t('.condition_not_satisfied')

    ul
    - @assessment.specific_conditions.each do |condition|
      = content_tag_for(:li, condition) do
        = condition.title

  - if @assessment.assessment_conditions.present?
    h3 = t('.finish_to_unlock')
    = render partial: @assessment.assessment_conditions.includes(:conditional), suffix: 'condition'

  - if can?(:attempt, @assessment) && @assessment.folder.materials.present?
    h3 = t('.files')
    = render partial: 'layouts/materials', locals: { folder: @assessment.folder }

  - if can?(:manage, @assessment)
    div.pull-right
      div.dropdown
{'fraction_non_alphanumeric': 0.1338417039179595, 'fraction_numerical': 0.002103602419142782, 'mean_word_length': 3.27896512935883, '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': '7483123', 'n_tokens_mistral': 1269, 'n_tokens_neox': 1235, 'n_words': 215}