<commit_before>module AssignmentsHelper
  def prompts_to_extjs_items(info)
    form_items = [ ]

    if !info[:eval][:instructions].blank?
      if !info[:portfolio].blank?
        form_items << {
          :xtype => 'panel',
          :html =>  "<table border='0' width='100%'><tr><td width='50%' valign='top'>" + 
                    markdown(info[:eval][:instructions]) + 
                    "</td><td width='50%' valign='top'>" +
                    info[:portfolio] +
                    "</td></tr></table>"
        }
      else
        form_items << {
          :xtype => 'panel',
          :html =>  markdown(info[:eval][:instructions])
        }
      end
    elsif !info[:portfolio].blank?
      form_items << {
        :xtype => 'panel',
        :html => info[:portfolio]
      }
    end

    form_items << {
      :inputType => 'hidden',
      :xtype => 'field',
      :name => 'authenticity_token',
      :value => form_authenticity_token
    }

    eval_item = 0
    next_score = 0
    info[:eval][:prompts].each do |prompt|
      item = {
        :xtype => 'fieldset',
        :title => prompt[:prompt],
        :items => [ ]
      }<commit_msg>Reset the default score for each prompt<commit_after>module AssignmentsHelper
  def prompts_to_extjs_items(info)
    form_items = [ ]

    if !info[:eval][:instructions].blank?
      if !info[:portfolio].blank?
        form_items << {
          :xtype => 'panel',
          :html =>  "<table border='0' width='100%'><tr><td width='50%' valign='top'>" + 
                    markdown(info[:eval][:instructions]) + 
                    "</td><td width='50%' valign='top'>" +
                    info[:portfolio] +
                    "</td></tr></table>"
        }
      else
        form_items << {
          :xtype => 'panel',
          :html =>  markdown(info[:eval][:instructions])
        }
      end
    elsif !info[:portfolio].blank?
      form_items << {
        :xtype => 'panel',
        :html => info[:portfolio]
      }
    end

    form_items << {
      :inputType => 'hidden',
      :xtype => 'field',
      :name => 'authenticity_token',
      :value => form_authenticity_token
    }

    eval_item = 0
    info[:eval][:prompts].each do |prompt|
      next_score = 0
      item = {
        :xtype => 'fieldset',
        :title => prompt[:prompt],
        :items => [ ]
      }
{'fraction_non_alphanumeric': 0.16851063829787233, 'fraction_numerical': 0.00851063829787234, 'mean_word_length': 1.8359469240048252, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 45, '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': '3082711', 'n_tokens_mistral': 767, 'n_tokens_neox': 719, 'n_words': 128}