<commit_before><%! from django.utils.translation import ugettext as _ %>

<%inherit file="base.html" />

<%block name="title">${_("My Courses")}</%block>
<%block name="bodyclass">is-signedin index dashboard</%block>

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.js"></script>
<script src="http://malsup.github.com/jquery.form.js"></script>

<%block name="jsextra">
<script type="text/javascript">
    $(document).ready(function () {

        // showing/hiding creation rights UI
        $('.show-creationrights').click(function(e){
            (e).preventDefault();
            $(this).closest('.wrapper-creationrights').toggleClass('is-shown').find('.ui-toggle-control').toggleClass('current');
        });

        var reloadPage = function () {
            location.reload();
        };

        var showError = function ()  {
            $('#request-coursecreator-submit').toggleClass('has-error').find('.label').text('Sorry, there was error with your request');
            $('#request-coursecreator-submit').find('.icon-cog').toggleClass('icon-spin');
        };

        $('#request-coursecreator').ajaxForm({error: showError, success: reloadPage});

        $('#request-coursecreator-submit').click(function(e){
          $(this).toggleClass('is-disabled is-submitting').find('.label').text('Submitting Your Request');
        });
    });
</script>
</%block>

<%block name="header_extras">
  <script type="text/template" id="new-course-template">
    <section class="new-course">
      <article>
        <form class="create-course course-info">
          <div class="wrap-error">
          <div id="course_creation_error" name="course_creation_error" class="message message-status message-status error" role="alert">
          <p>Please correct the highlighted fields below.</p>
          </div>
          </div>

          <fieldset>
            <legend class="sr">${_("Required Information to Create a New Course")}</legend>

            <h3 class="title">${_("Create a New Course")}</h3>

            <ol class="list-input">
              <li class="field field-inline text required" id="field-course-name">
                <label for="new-course-name">${_("Course Name")}</label>
                <input class="new-course-name" id="new-course-name" type="text" name="new-course-name" aria-required="true" placeholder="${_('e.g. Introduction to Computer Science')}" />
                <span class="tip tip-stacked">${_("The public display name for your course")}</span>
              </li>
              <li class="field field-inline text required" id="field-organization">
                <label for="new-course-org">${_("Organization")}</label>
                <input class="new-course-org" id="new-course-org" type="text" name="new-course-org" aria-required="true" placeholder="${_('e.g. MITX or IMF')}" />
                <span class="tip tip-stacked">${_("The name of the organization sponsoring the course")}  - <strong>${_("Note: No spaces or special characters are allowed. Also, this cannot be changed")}</strong></span>
              </li>

              <li class="field field-inline text required" id="field-course-number">
                <label for="new-course-number">${_("Course Number")}</label>
                <input class="new-course-number" id="new-course-number" type="text" name="new-course-number" aria-required="true" placeholder="${_('e.g. CS101')}" />
                <span class="tip tip-stacked">${_("The unique number that identifies your course within your organization")} - <strong>${_("Note: No spaces or special characters are allowed. This cannot be changed")}</strong></span>
              </li>

              <li class="field field-inline text required" id="field-course-run">
                <label for="new-course-run">${_("Course Run")}</label>
                <input class="new-course-run" id="new-course-run" type="text" name="new-course-run" aria-required="true"placeholder="${_('e.g. 2013_Spring')}" />
                <span class="tip tip-stacked">${_("The term in which your course will run")} - <strong>${_("Note: No spaces or special characters are allowed. Also, this cannot be changed")}</strong></span>
              </li>
            </ol>

          </fieldset>

          <div class="actions">
            <input type="submit" value="${_('Save')}" class="action action-primary new-course-save" />
            <input type="button" value="${_('Cancel')}" class="action action-secondary action-cancel new-course-cancel" />
          </div>

        </form>
      </article>
    </section>
  </script>
</%block>

<%block name="content">
<div class="wrapper-mast wrapper">
  <header class="mast has-actions"><commit_msg>I18N and tip text adjustment on studio course creation<commit_after><%! from django.utils.translation import ugettext as _ %>

<%inherit file="base.html" />

<%block name="title">${_("My Courses")}</%block>
<%block name="bodyclass">is-signedin index dashboard</%block>

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.js"></script>
<script src="http://malsup.github.com/jquery.form.js"></script>

<%block name="jsextra">
<script type="text/javascript">
    $(document).ready(function () {

        // showing/hiding creation rights UI
        $('.show-creationrights').click(function(e){
            (e).preventDefault();
            $(this).closest('.wrapper-creationrights').toggleClass('is-shown').find('.ui-toggle-control').toggleClass('current');
        });

        var reloadPage = function () {
            location.reload();
        };

        var showError = function ()  {
            $('#request-coursecreator-submit').toggleClass('has-error').find('.label').text('Sorry, there was error with your request');
            $('#request-coursecreator-submit').find('.icon-cog').toggleClass('icon-spin');
        };

        $('#request-coursecreator').ajaxForm({error: showError, success: reloadPage});

        $('#request-coursecreator-submit').click(function(e){
          $(this).toggleClass('is-disabled is-submitting').find('.label').text('Submitting Your Request');
        });
    });
</script>
</%block>

<%block name="header_extras">
  <script type="text/template" id="new-course-template">
    <section class="new-course">
      <article>
        <form class="create-course course-info">
          <div class="wrap-error">
          <div id="course_creation_error" name="course_creation_error" class="message message-status message-status error" role="alert">
          <p>${_("Please correct the highlighted fields below.")}</p>
          </div>
          </div>

          <fieldset>
            <legend class="sr">${_("Required Information to Create a New Course")}</legend>

            <h3 class="title">${_("Create a New Course")}</h3>

            <ol class="list-input">
              <li class="field field-inline text required" id="field-course-name">
                <label for="new-course-name">${_("Course Name")}</label>
                <input class="new-course-name" id="new-course-name" type="text" name="new-course-name" aria-required="true" placeholder="${_('e.g. Introduction to Computer Science')}" />
                <span class="tip tip-stacked">${_("The public display name for your course.")}</span>
              </li>
              <li class="field field-inline text required" id="field-organization">
                <label for="new-course-org">${_("Organization")}</label>
                <input class="new-course-org" id="new-course-org" type="text" name="new-course-org" aria-required="true" placeholder="${_('e.g. MITX or IMF')}" />
                <span class="tip tip-stacked">${_("The name of the organization sponsoring the course")}  - <strong>${_("Note: No spaces or special characters are allowed. This cannot be changed.")}</strong></span>
              </li>

              <li class="field field-inline text required" id="field-course-number">
                <label for="new-course-number">${_("Course Number")}</label>
                <input class="new-course-number" id="new-course-number" type="text" name="new-course-number" aria-required="true" placeholder="${_('e.g. CS101')}" />
                <span class="tip tip-stacked">${_("The unique number that identifies your course within your organization")} - <strong>${_("Note: No spaces or special characters are allowed. This cannot be changed.")}</strong></span>
              </li>

              <li class="field field-inline text required" id="field-course-run">
                <label for="new-course-run">${_("Course Run")}</label>
                <input class="new-course-run" id="new-course-run" type="text" name="new-course-run" aria-required="true"placeholder="${_('e.g. 2013_Spring')}" />
                <span class="tip tip-stacked">${_("The term in which your course will run")} - <strong>${_("Note: No spaces or special characters are allowed. This cannot be changed.")}</strong></span>
              </li>
            </ol>

          </fieldset>

          <div class="actions">
            <input type="submit" value="${_('Save')}" class="action action-primary new-course-save" />
            <input type="button" value="${_('Cancel')}" class="action action-secondary action-cancel new-course-cancel" />
          </div>

        </form>
      </article>
    </section>
  </script>
</%block>

<%block name="content">
<div class="wrapper-mast wrapper">
  <header class="mast has-actions">
{'fraction_non_alphanumeric': 0.18386789456970468, 'fraction_numerical': 0.0025404890441409972, 'mean_word_length': 2.944885177453027, 'pattern_counts': {'":': 0, '<': 161, '<?xml version=': 0, '>': 161, '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': '5596043', 'n_tokens_mistral': 2751, 'n_tokens_neox': 2654, 'n_words': 585}