<commit_before>{include file="findInclude:common/templates/header.tpl"}

{capture name="categorySelect" assign="categorySelect"}
  <select class="input" id="section" name="section" onchange="loadSection(this);">
    {foreach $sections as $section}
      {if $section['value']==$currentSection}
        <option value="{$section['value']}" selected="true">{$section['title']}</option>
      {else}
        <option value="{$section['value']}">{$section['title']}</option>
      {/if}
    {/foreach}
  </select>
{/capture}

{block name="videoHeader"}
  {if count($sections) > 1}
    <div class="header">
      <div id="category-switcher" class="category-mode">
        <form method="get" action="index.php" id="category-form">
          <table border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td class="formlabel">Section:</td>
              <td class="inputfield"><div id="video-category-select">{$categorySelect}</div></td>
              <td class="togglefield">
                {block name="categoryButton"}
                  <input src="/common/images/search_button.png" type="image" class="toggle-search-button"  onclick="return toggleSearch();" />
                {/block}
              </td>
            </tr>
          </table>
          {foreach $hiddenArgs as $arg => $value}
            <input type="hidden" name="{$arg}" value="{$value}" />
          {/foreach}
          {foreach $breadcrumbSamePageArgs as $arg => $value}
            <input type="hidden" name="{$arg}" value="{$value}" />
          {/foreach}
        </form>
  
        <form method="get" action="search.php" id="search-form">
          <table border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td class="formlabel">Search:</td>
              <td class="inputfield">
                <input class="videoinput search-field" type="text" id="search_terms" 
                name="filter" value="{$searchTerms|escape}" 
                onKeyPress="return submitenter(this, event);"/>
              </td>
              <td class="togglefield">
                <input type="button" class="toggle-search-button" onclick="return toggleSearch();" value="Cancel" />
              </td>
            </tr>
          </table>
          {foreach $hiddenArgs as $arg => $value}
            <input type="hidden" name="{$arg}" value="{$value}" />
          {/foreach}
          {foreach $breadcrumbArgs as $arg => $value}
            <input type="hidden" name="{$arg}" value="{$value}" />
          {/foreach}
        </form>
      </div>
    </div>
  {else}
    {include file="findInclude:common/templates/search.tpl" placeholder="Search "|cat:$moduleName extraArgs=$hiddenArgs}
  {/if}
{/block}

{if $hasBookmarks}
{include file="findInclude:common/templates/navlist.tpl" navlistItems=$bookmarkLink secondary=true}
{/if}

{block name="videos"}
{include file="findInclude:modules/$moduleID/templates/results.tpl" results=$videos resultsID="videoList" titleTruncate=40}
{/block}
{include file="findInclude:common/templates/footer.tpl"}<commit_msg>Added block around bookmarks to make it easier to change the bookmark link in the template<commit_after>{include file="findInclude:common/templates/header.tpl"}

{capture name="categorySelect" assign="categorySelect"}
  <select class="input" id="section" name="section" onchange="loadSection(this);">
    {foreach $sections as $section}
      {if $section['value']==$currentSection}
        <option value="{$section['value']}" selected="true">{$section['title']}</option>
      {else}
        <option value="{$section['value']}">{$section['title']}</option>
      {/if}
    {/foreach}
  </select>
{/capture}

{block name="videoHeader"}
  {if count($sections) > 1}
    <div class="header">
      <div id="category-switcher" class="category-mode">
        <form method="get" action="index.php" id="category-form">
          <table border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td class="formlabel">Section:</td>
              <td class="inputfield"><div id="video-category-select">{$categorySelect}</div></td>
              <td class="togglefield">
                {block name="categoryButton"}
                  <input src="/common/images/search_button.png" type="image" class="toggle-search-button"  onclick="return toggleSearch();" />
                {/block}
              </td>
            </tr>
          </table>
          {foreach $hiddenArgs as $arg => $value}
            <input type="hidden" name="{$arg}" value="{$value}" />
          {/foreach}
          {foreach $breadcrumbSamePageArgs as $arg => $value}
            <input type="hidden" name="{$arg}" value="{$value}" />
          {/foreach}
        </form>
  
        <form method="get" action="search.php" id="search-form">
          <table border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td class="formlabel">Search:</td>
              <td class="inputfield">
                <input class="videoinput search-field" type="text" id="search_terms" 
                name="filter" value="{$searchTerms|escape}" 
                onKeyPress="return submitenter(this, event);"/>
              </td>
              <td class="togglefield">
                <input type="button" class="toggle-search-button" onclick="return toggleSearch();" value="Cancel" />
              </td>
            </tr>
          </table>
          {foreach $hiddenArgs as $arg => $value}
            <input type="hidden" name="{$arg}" value="{$value}" />
          {/foreach}
          {foreach $breadcrumbArgs as $arg => $value}
            <input type="hidden" name="{$arg}" value="{$value}" />
          {/foreach}
        </form>
      </div>
    </div>
  {else}
    {include file="findInclude:common/templates/search.tpl" placeholder="Search "|cat:$moduleName extraArgs=$hiddenArgs}
  {/if}
{/block}

{block name="bookmarks"}
  {if $hasBookmarks}
    {include file="findInclude:common/templates/navlist.tpl" navlistItems=$bookmarkLink secondary=true}
  {/if}
{/block}

{block name="videos"}
{include file="findInclude:modules/$moduleID/templates/results.tpl" results=$videos resultsID="videoList" titleTruncate=40}
{/block}
{include file="findInclude:common/templates/footer.tpl"}
{'fraction_non_alphanumeric': 0.17712177121771217, 'fraction_numerical': 0.0028878549655061768, 'mean_word_length': 2.728468899521531, 'pattern_counts': {'":': 0, '<': 89, '<?xml version=': 0, '>': 99, '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': '805539', 'n_tokens_mistral': 1820, 'n_tokens_neox': 1795, 'n_words': 353}