<commit_before><%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://stripes.sourceforge.net/stripes.tld" prefix="s" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

<s:layout-render
    name="/layouts/main.jsp"
    title="Edit Note"
    addNoteClass="active"
    recentNotes="${actionBean.recentNotes}">
  <s:layout-component name="pageBody">
    <div class="container">
      <s:form beanclass="com.github.cstroe.sqs.www.NoteActionBean"
              id="editNoteForm"
              class="form-horizontal">
        <div class="row">
          <div class="col-sm-8 col-sm-offset-2">
            <s:errors/>
          </div>
        </div>
        <s:hidden name="note.id"/>
        <div class="form-group">
          <div class="col-sm-8 col-sm-offset-2">
            <s:text name="note.title" class="form-control" id="title"/>
          </div>
        </div>
        <div class="form-group">
          <label for="content" class="col-sm-8 col-sm-offset-2">Note:</label>
          <s:textarea name="note.content" id="content" class="col-sm-8 col-sm-offset-2" rows="12">${actionBean.note.content}</s:textarea>
        </div>
        <div class="form-group">
          <div class="col-sm-8 col-sm-offset-2">
            <s:submit name="save" class="btn btn-primary pull-right" value="Save"/>
          </div>
        </div>
      </s:form>
    </div>
  </s:layout-component>
</s:layout-render><commit_msg>Enable SimpleMDE for editing our notes.<commit_after><%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://stripes.sourceforge.net/stripes.tld" prefix="s" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

<s:layout-render
    name="/layouts/main.jsp"
    title="Edit Note"
    addNoteClass="active"
    recentNotes="${actionBean.recentNotes}">
  <s:layout-component name="pageBody">
    <div class="container">
      <s:form beanclass="com.github.cstroe.sqs.www.NoteActionBean"
              id="editNoteForm"
              class="form-horizontal">
        <div class="row">
          <div class="col-sm-8 col-sm-offset-2">
            <s:errors/>
          </div>
        </div>
        <s:hidden name="note.id"/>
        <div class="form-group">
          <div class="col-sm-8 col-sm-offset-2">
            <s:text name="note.title" class="form-control" id="title"/>
          </div>
        </div>
        <div class="form-group">
          <s:textarea name="note.content" id="content">${actionBean.note.content}</s:textarea>
        </div>
        <div class="form-group">
          <div class="col-sm-8 col-sm-offset-2">
            <s:submit name="save" class="btn btn-primary pull-right" value="Save"/>
          </div>
        </div>
      </s:form>
    </div>

    <!-- start up Simple Markdown Editor -->
    <script>
      var simplemde = new SimpleMDE({spellChecker: false});
    </script>
  </s:layout-component>
</s:layout-render>
{'fraction_non_alphanumeric': 0.19611650485436893, 'fraction_numerical': 0.006472491909385114, 'mean_word_length': 2.520501138952164, 'pattern_counts': {'":': 0, '<': 72, '<?xml version=': 0, '>': 72, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4313569', 'n_tokens_mistral': 1068, 'n_tokens_neox': 1039, 'n_words': 165}