<commit_before><%inherit file="base.html" />
<%! from django.core.urlresolvers import reverse %>
<%namespace name="units" file="widgets/units.html" />
<%block name="title">Individual Unit</%block>
<%block name="bodyclass">is-signedin course unit</%block>

<%block name="jsextra">
  <script type='text/javascript'>
  $(document).ready(function() {
    new CMS.Views.UnitEdit({
      el: $('.main-wrapper'),
      model: new CMS.Models.Module({
        id: '${unit_location}',
        state: '${unit_state}'
      })
    });

    $(document).ready(function() {

      // tabs
      $('.tab-group').tabs();
    });

    $('.new-component-template').each(function(){
        $emptyEditor = $(this).find('.empty');
        $(this).prepend($emptyEditor);
      });
    });

    var unit_location_analytics = '${unit_location}';
  </script>

</%block>
<%block name="content">
  <div class="main-wrapper edit-state-${unit_state}" data-id="${unit_location}">
    <div class="inner-wrapper">
      <div class="alert editing-draft-alert">
        <p class="alert-message"><strong>You are editing a draft.</strong>
        % if published_date:
        This unit was originally published on ${published_date}.
        % endif
        </p>
        <a href="${published_preview_link}" target="_blank" class="alert-action secondary">View the Live Version</a>
      </div>
      <div class="main-column">
        <article class="unit-body window">
          <p class="unit-name-input"><label>Display Name:</label><input type="text" value="${unit.display_name_with_default | h}" class="unit-display-name-input" /></p>
          <ol class="components">
            % for id in components:
            <li class="component" data-id="${id}"/>
            % endfor
            <li class="new-component-item adding">
              <div class="new-component">
                <h5>Add New Component</h5>
                <ul class="new-component-type">
                  % for type, templates in sorted(component_templates.items()):
                  <li>
                  % if type == 'advanced' or len(templates) > 1:
                    <a href="#" class="multiple-templates" data-type="${type}">
                  % else:
                    % for _, location, _ in templates:
                    <a href="#" class="single-template" data-type="${type}" data-location="${location}">
                    % endfor
                  % endif
                      <span class="large-template-icon large-${type}-icon"></span>
                      <span class="name">${type}</span>
                    </a>
                  </li>
                  % endfor
                </ul>
              </div>
                % for type, templates in sorted(component_templates.items()):
	          % if len(templates) > 1 or type == 'advanced':
                <div class="new-component-templates new-component-${type}">
                    % if type == "problem":
                      <div class="tab-group tabs">
                              <ul class="problem-type-tabs nav-tabs">
                                <li class="current">
                                  <a class="link-tab" href="#tab1">Common Problem Types</a>
                                </li>
                                <li>
                                  <a class="link-tab" href="#tab2">Advanced</a>
                                </li>
                              </ul>
                      % endif
                          <div class="tab current" id="tab1">
                            <ul class="new-component-template">
                                % for name, location, has_markdown in templates:
                                  % if has_markdown or type != "problem":
                                    <li class="editor-md">
                                      <a href="#" id="${location}" data-location="${location}">
                                        <span class="name"> ${name}</span>
                                      </a>
                                    </li>
                                  % endif
  
                                %endfor
                            </ul>
                          </div>
                      % if type == "problem":
                              <div class="tab" id="tab2">
                                <ul class="new-component-template">
                                    % for name, location, has_markdown in templates:
                                      % if not has_markdown:
                                        <li class="editor-manual">
                                          <a href="#" id="${location}" data-location="${location}">
                                            <span class="name"> ${name}</span>
                                          </a>
                                        </li>
                                      % endif
                                    % endfor
                                </ul>
                              </div>
                      </div>
                      % endif
                      <a href="#" class="cancel-button">Cancel</a>
                  </div>
		  % endif
                % endfor
            </li>
          </ol>
        </article>
      </div>

      <div class="sidebar">
        <div class="unit-settings window">
          <h4 class="header">Unit Settings</h4>
          <div class="window-contents">
            <div class="row visibility">
              <label class="inline-label">Visibility:</label>
              <select class='visibility-select'>
                <option value="public">Public</option>
                <option value="private">Private</option>
              </select>
            </div>
            <div class="row published-alert">
              <p class="edit-draft-message">This unit has been published. To make changes, you must <a href="#" class="create-draft">edit a draft</a>.</p>
              <p class="publish-draft-message">This is a draft of the published unit. To update the live version, you must <a href="#" class="publish-draft">replace it with this draft</a>.</p>
            </div>
            <div class="row status">
              <p>This unit is scheduled to be released to <strong>students</strong>
              % if release_date is not None:
                  on <strong>${release_date}</strong>
              % endif
              with the subsection <a href="${reverse('edit_subsection', kwargs={'location': subsection.location})}">"${subsection.display_name_with_default}"</a></p>
            </div>
            <div class="row unit-actions">
              <a href="#" class="delete-draft delete-button">Delete Draft</a><commit_msg>Remove tabs from unit.html for the third time.<commit_after><%inherit file="base.html" />
<%! from django.core.urlresolvers import reverse %>
<%namespace name="units" file="widgets/units.html" />
<%block name="title">Individual Unit</%block>
<%block name="bodyclass">is-signedin course unit</%block>

<%block name="jsextra">
  <script type='text/javascript'>
  $(document).ready(function() {
    new CMS.Views.UnitEdit({
      el: $('.main-wrapper'),
      model: new CMS.Models.Module({
        id: '${unit_location}',
        state: '${unit_state}'
      })
    });

    $(document).ready(function() {

      // tabs
      $('.tab-group').tabs();
    });

    $('.new-component-template').each(function(){
        $emptyEditor = $(this).find('.empty');
        $(this).prepend($emptyEditor);
      });
    });

    var unit_location_analytics = '${unit_location}';
  </script>

</%block>
<%block name="content">
  <div class="main-wrapper edit-state-${unit_state}" data-id="${unit_location}">
    <div class="inner-wrapper">
      <div class="alert editing-draft-alert">
        <p class="alert-message"><strong>You are editing a draft.</strong>
        % if published_date:
        This unit was originally published on ${published_date}.
        % endif
        </p>
        <a href="${published_preview_link}" target="_blank" class="alert-action secondary">View the Live Version</a>
      </div>
      <div class="main-column">
        <article class="unit-body window">
          <p class="unit-name-input"><label>Display Name:</label><input type="text" value="${unit.display_name_with_default | h}" class="unit-display-name-input" /></p>
          <ol class="components">
            % for id in components:
            <li class="component" data-id="${id}"/>
            % endfor
            <li class="new-component-item adding">
              <div class="new-component">
                <h5>Add New Component</h5>
                <ul class="new-component-type">
                  % for type, templates in sorted(component_templates.items()):
                  <li>
                  % if type == 'advanced' or len(templates) > 1:
                    <a href="#" class="multiple-templates" data-type="${type}">
                  % else:
                    % for _, location, _ in templates:
                    <a href="#" class="single-template" data-type="${type}" data-location="${location}">
                    % endfor
                  % endif
                      <span class="large-template-icon large-${type}-icon"></span>
                      <span class="name">${type}</span>
                    </a>
                  </li>
                  % endfor
                </ul>
              </div>
                % for type, templates in sorted(component_templates.items()):
                  % if len(templates) > 1 or type == 'advanced':
                <div class="new-component-templates new-component-${type}">
                    % if type == "problem":
                      <div class="tab-group tabs">
                              <ul class="problem-type-tabs nav-tabs">
                                <li class="current">
                                  <a class="link-tab" href="#tab1">Common Problem Types</a>
                                </li>
                                <li>
                                  <a class="link-tab" href="#tab2">Advanced</a>
                                </li>
                              </ul>
                      % endif
                          <div class="tab current" id="tab1">
                            <ul class="new-component-template">
                                % for name, location, has_markdown in templates:
                                  % if has_markdown or type != "problem":
                                    <li class="editor-md">
                                      <a href="#" id="${location}" data-location="${location}">
                                        <span class="name"> ${name}</span>
                                      </a>
                                    </li>
                                  % endif
  
                                %endfor
                            </ul>
                          </div>
                      % if type == "problem":
                              <div class="tab" id="tab2">
                                <ul class="new-component-template">
                                    % for name, location, has_markdown in templates:
                                      % if not has_markdown:
                                        <li class="editor-manual">
                                          <a href="#" id="${location}" data-location="${location}">
                                            <span class="name"> ${name}</span>
                                          </a>
                                        </li>
                                      % endif
                                    % endfor
                                </ul>
                              </div>
                      </div>
                      % endif
                      <a href="#" class="cancel-button">Cancel</a>
                  </div>
                  % endif
                % endfor
            </li>
          </ol>
        </article>
      </div>

      <div class="sidebar">
        <div class="unit-settings window">
          <h4 class="header">Unit Settings</h4>
          <div class="window-contents">
            <div class="row visibility">
              <label class="inline-label">Visibility:</label>
              <select class='visibility-select'>
                <option value="public">Public</option>
                <option value="private">Private</option>
              </select>
            </div>
            <div class="row published-alert">
              <p class="edit-draft-message">This unit has been published. To make changes, you must <a href="#" class="create-draft">edit a draft</a>.</p>
              <p class="publish-draft-message">This is a draft of the published unit. To update the live version, you must <a href="#" class="publish-draft">replace it with this draft</a>.</p>
            </div>
            <div class="row status">
              <p>This unit is scheduled to be released to <strong>students</strong>
              % if release_date is not None:
                  on <strong>${release_date}</strong>
              % endif
              with the subsection <a href="${reverse('edit_subsection', kwargs={'location': subsection.location})}">"${subsection.display_name_with_default}"</a></p>
            </div>
            <div class="row unit-actions">
              <a href="#" class="delete-draft delete-button">Delete Draft</a>
{'fraction_non_alphanumeric': 0.14097242810554403, 'fraction_numerical': 0.0014823599169878447, 'mean_word_length': 1.291999320536776, 'pattern_counts': {'":': 6, '<': 253, '<?xml version=': 0, '>': 257, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 56, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6851283', 'n_tokens_mistral': 3373, 'n_tokens_neox': 3180, 'n_words': 742}