<commit_before>.context_menu(ng-app="gradecraft" ng-controller="AssignmentCtrl" ng-init="init(#{presenter.assignment.id}, #{presenter.assignment.use_rubric})")
  %ul
    - if !presenter.new_assignment?
      %li
        %a{:href => new_assignment_path }
          .fa.fa-plus.fa-fw
          New #{(term_for :assignment).titleize}
      %li= link_to raw('<i class="fa fa-edit fa-fw"> </i> Edit'), edit_assignment_path(presenter.assignment)
      %li= link_to raw('<i class="fa fa-copy fa-fw"> </i> Copy'), copy_assignments_path(id: presenter.assignment), method: :copy
      - if presenter.assignment.has_groups?
        %li= link_to raw("<i class='fa fa-users fa-fw'> </i> Create #{term_for :group}"), new_group_path
      - if presenter.for_team?
        %li= link_to raw('<i class="fa fa-check fa-fw"> </i> Quick Grade'), mass_grade_assignment_path(presenter.assignment, team: presenter.team)
      - else
        %li= link_to raw('<i class="fa fa-check fa-fw"> </i> Quick Grade'), mass_grade_assignment_path(presenter.assignment)

      // @mz #assignment_export
      // THIS IS WHERE THE SUBMISSION EXPORT WILL START
      %li
        - if presenter.team
          %a{:href => assignment_exports_team_submissions_path(presenter.assignment, :team_id => presenter.team, format: 'zip') }
            .fa.fa-file-zip-o.fa-fw
            Download Team Submissions
        - if ! presenter.team
          %a{:href => assignment_exports_submissions_path(presenter.assignment, format: 'zip') }
            .fa.fa-file-zip-o.fa-fw
            Download Submissions

      %li
        %a{:href => import_grades_assignment_path(presenter.assignment) }
          .fa.fa-upload.fa-fw
          Import Grades
      %li
        %a{:href => export_grades_assignment_path(presenter.assignment, format: 'csv') }
          .fa.fa-download.fa-fw
          Download Grades
      %li
        %a{:href => design_assignment_rubric_path(presenter.assignment) }
          .fa.fa-sliders.fa-fw
          - if presenter.rubric_available?
            Edit Rubric
          - else
            Create Rubric

      - if presenter.rubric_designed?
        - if presenter.has_reviewable_grades?
          %li
            %a{:href => criterion_grades_review_assignment_path(presenter.assignment) }
              Review Grades
        %li.on(ng-cloak ng-show="useRubric")
          %a(ng-click="rubricsOff()")
            .fa.fa-power-off.fa-fw
            Rubric is On
        %li.off(ng-cloak ng-hide="useRubric")
          %a(ng-click="rubricsOn()")
            .fa.fa-power-off.fa-fw<commit_msg>fix rubric_available? bug from rebase in assignment buttons<commit_after>.context_menu(ng-app="gradecraft" ng-controller="AssignmentCtrl" ng-init="init(#{presenter.assignment.id}, #{presenter.assignment.use_rubric})")
  %ul
    - if !presenter.new_assignment?
      %li
        %a{:href => new_assignment_path }
          .fa.fa-plus.fa-fw
          New #{(term_for :assignment).titleize}
      %li= link_to raw('<i class="fa fa-edit fa-fw"> </i> Edit'), edit_assignment_path(presenter.assignment)
      %li= link_to raw('<i class="fa fa-copy fa-fw"> </i> Copy'), copy_assignments_path(id: presenter.assignment), method: :copy
      - if presenter.assignment.has_groups?
        %li= link_to raw("<i class='fa fa-users fa-fw'> </i> Create #{term_for :group}"), new_group_path
      - if presenter.for_team?
        %li= link_to raw('<i class="fa fa-check fa-fw"> </i> Quick Grade'), mass_grade_assignment_path(presenter.assignment, team: presenter.team)
      - else
        %li= link_to raw('<i class="fa fa-check fa-fw"> </i> Quick Grade'), mass_grade_assignment_path(presenter.assignment)

      // @mz #assignment_export
      // THIS IS WHERE THE SUBMISSION EXPORT WILL START
      %li
        - if presenter.team
          %a{:href => assignment_exports_team_submissions_path(presenter.assignment, :team_id => presenter.team, format: 'zip') }
            .fa.fa-file-zip-o.fa-fw
            Download Team Submissions
        - if ! presenter.team
          %a{:href => assignment_exports_submissions_path(presenter.assignment, format: 'zip') }
            .fa.fa-file-zip-o.fa-fw
            Download Submissions

      %li
        %a{:href => import_grades_assignment_path(presenter.assignment) }
          .fa.fa-upload.fa-fw
          Import Grades
      %li
        %a{:href => export_grades_assignment_path(presenter.assignment, format: 'csv') }
          .fa.fa-download.fa-fw
          Download Grades
      %li
        %a{:href => design_assignment_rubric_path(presenter.assignment) }
          .fa.fa-sliders.fa-fw
          - if presenter.rubric_designed?
            Edit Rubric
          - else
            Create Rubric

      - if presenter.rubric_designed?
        - if presenter.has_reviewable_grades?
          %li
            %a{:href => criterion_grades_review_assignment_path(presenter.assignment) }
              Review Grades
        %li.on(ng-cloak ng-show="useRubric")
          %a(ng-click="rubricsOff()")
            .fa.fa-power-off.fa-fw
            Rubric is On
        %li.off(ng-cloak ng-hide="useRubric")
          %a(ng-click="rubricsOn()")
            .fa.fa-power-off.fa-fw
{'fraction_non_alphanumeric': 0.13332047076982442, 'fraction_numerical': 0.0, 'mean_word_length': 2.4513981358189083, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 39, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3617011', 'n_tokens_mistral': 1730, 'n_tokens_neox': 1700, 'n_words': 306}