<commit_before>%div{:id => info[:id]}
:javascript
  Ext.onReady(function(){
    new Ext.FormPanel({
      renderTo: $(#{info[:id].to_json}),
      title: #{form_title.to_json},
      url: #{form_url.to_json},
      items: #{prompts_to_extjs_items(info).to_json},
      buttons: [{
        text: #{('Save ' + form_title).to_json},
        type: 'submit',
        handler: function(f) {
          var fp = this.ownerCt.ownerCt;
          var form = fp.getForm();
          if(form.isValid()) {
            form.submit({
              url: #{form_url.to_json},
              success: function() {
                fp.collapse(true);
              },
              failure: function() {
                /* do something to indicate failure */
              }
            });
          }
        }
      }, {
        text: #{('Reset ' + form_title).to_json},
        type: 'reset',
        handler: function(f) {
          var fp = this.ownerCt.ownerCt;
          var form = fp.getForm();
          form.reset();
        }
      }],
      collapsible: true,
      collapsed: #{(!info[:values].nil? && !info[:values].empty?).to_json}
    });
  });<commit_msg>Remove Reset button from evaluation submission form<commit_after>%div{:id => info[:id]}
:javascript
  Ext.onReady(function(){
    new Ext.FormPanel({
      renderTo: $(#{info[:id].to_json}),
      title: #{form_title.to_json},
      url: #{form_url.to_json},
      items: #{prompts_to_extjs_items(info).to_json},
      buttons: [{
        text: #{('Save ' + form_title).to_json},
        type: 'submit',
        handler: function(f) {
          var fp = this.ownerCt.ownerCt;
          var form = fp.getForm();
          if(form.isValid()) {
            form.submit({
              url: #{form_url.to_json},
              success: function() {
                fp.collapse(true);
              },
              failure: function() {
                /* do something to indicate failure */
              }
            });
          }
        }
      }],
      collapsible: true,
      collapsed: #{(!info[:values].nil? && !info[:values].empty?).to_json}
    });
  });
{'fraction_non_alphanumeric': 0.1635933806146572, 'fraction_numerical': 0.0, 'mean_word_length': 1.678481012658228, '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': '2395022', 'n_tokens_mistral': 640, 'n_tokens_neox': 637, 'n_words': 114}