<commit_before>.small-12.right.medium-4.columns
  %br
  .label.radius Supporting Files
  .s3_uploader
    = s3_uploader_form key: upload_url('grade_files', @grade), acl: "private", max_file_size: 40.megabytes do
      .small-12.medium-6.columns
        = file_field_tag :file, :multiple => true
      .small-12.medium-6.columns
        .upload.s3_progress
          Progress:
          .progress
            .bar
        .clearfix
      %ul#uploaded_files
        - if @grade.grade_files.present?
          %hr
          - @grade.grade_files.each do |gf|
            %li
              = link_to gf.try(:filename), gf.try(:url)
              //= link_to "(Remove)", remove_uploads_path({ :model => "GradeFile", :grade_id => @grade.id, :upload_id => gf.id } )

= simple_form_for @grade, url: assignment_grade_path(@assignment), method: :patch do |f|

  = hidden_field_tag :student_id, current_student.id
  .panel
    .small-12.large-4.columns
      = f.label :raw_score
      - if @assignment.assignment_type.has_levels?
        = f.select :raw_score, @score_levels.map { |l| [l.formatted_name,l.value] }, :include_blank => true
      - elsif @assignment.has_levels?
        = f.select :raw_score, @assignment_score_levels.map { |l| [l.formatted_name,l.value] }, :include_blank => true
      - else
        = f.text_field :raw_score, :default => @assignment.point_total, :label => "Score", :hint => "Total Assignment Points: #{ points @assignment.point_total }", data: {autonumeric: true, "m-dec" => "0"}
      = f.simple_fields_for :grade_files, @grade.grade_files.new do |gff|
        = gff.input :filepath, :input_html => { :class => 's3_files' }, :as => :hidden


    - if @assignment.release_necessary?
      .small-12.large-4.columns
        - if current_user.is_gsi?
          = f.input :status, as: :select, :collection => ["In Progress", "Graded"], :selected => @grade.status
          .form_label Is this grade ready to be reviewed? 
        - else
          = f.input :status,  as: :select, :collection => ["In Progress", "Graded", "Released"], :selected => @grade.status, :include_blank => true
          .form_label Can the student see this grade?
    - else
      = f.hidden_field :status, value: 'Graded'

    .small-12.large-4.columns
      = f.simple_fields_for :grade_files, @grade.grade_files.new do |gff|
        = gff.input :filename, :input_html => { :class => 's3_files' }, :as => :hidden

    .clearfix

    .small-12.columns
      = f.hidden_field :graded_by_id, :value => current_user.id
      = f.label :feedback
      = f.bootsy_area :feedback

    .clearfix


  .right
    = submit_tag "#{@grade.persisted? && @grade.is_graded? ? 'Update' : 'Submit'} Grade", :class => "button tiny radius"
    = link_to 'Cancel', assignment_path(@assignment), :class => 'button tiny radius transparent'
<commit_msg>Remove file uploads<commit_after>.small-12.right.medium-4.columns
  %br
  

= simple_form_for @grade, url: assignment_grade_path(@assignment), method: :patch do |f|

  = hidden_field_tag :student_id, current_student.id
  .panel
    .small-12.large-4.columns
      = f.label :raw_score
      - if @assignment.assignment_type.has_levels?
        = f.select :raw_score, @score_levels.map { |l| [l.formatted_name,l.value] }, :include_blank => true
      - elsif @assignment.has_levels?
        = f.select :raw_score, @assignment_score_levels.map { |l| [l.formatted_name,l.value] }, :include_blank => true
      - else
        = f.text_field :raw_score, :default => @assignment.point_total, :label => "Score", :hint => "Total Assignment Points: #{ points @assignment.point_total }", data: {autonumeric: true, "m-dec" => "0"}
      = f.simple_fields_for :grade_files, @grade.grade_files.new do |gff|
        = gff.input :filepath, :input_html => { :class => 's3_files' }, :as => :hidden


    - if @assignment.release_necessary?
      .small-12.large-4.columns
        - if current_user.is_gsi?
          = f.input :status, as: :select, :collection => ["In Progress", "Graded"], :selected => @grade.status
          .form_label Is this grade ready to be reviewed? 
        - else
          = f.input :status,  as: :select, :collection => ["In Progress", "Graded", "Released"], :selected => @grade.status, :include_blank => true
          .form_label Can the student see this grade?
    - else
      = f.hidden_field :status, value: 'Graded'

    .small-12.large-4.columns
      = f.simple_fields_for :grade_files, @grade.grade_files.new do |gff|
        = gff.input :filename, :input_html => { :class => 's3_files' }, :as => :hidden

    .clearfix

    .small-12.columns
      = f.hidden_field :graded_by_id, :value => current_user.id
      = f.label :feedback
      = f.bootsy_area :feedback

    .clearfix


  .right
    = submit_tag "#{@grade.persisted? && @grade.is_graded? ? 'Update' : 'Submit'} Grade", :class => "button tiny radius"
    = link_to 'Cancel', assignment_path(@assignment), :class => 'button tiny radius transparent'

{'fraction_non_alphanumeric': 0.14827516643130925, 'fraction_numerical': 0.009078071414161792, 'mean_word_length': 2.9380460683081813, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 47, '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': '3081103', 'n_tokens_mistral': 1704, 'n_tokens_neox': 1656, 'n_words': 360}