<commit_before><section id="action-icons">
  <ul>

    <li>
      <a href="<?php echo url_for(array($resource, 'module' => 'informationobject', 'action' => 'reports')) ?>">
        <i class="icon-print"></i>
        <?php echo __('Reports') ?>
      </a>
    </li>

    <li class="separator"><h4><?php echo __('Import') ?></h4></li>

    <li>
      <a href="<?php echo url_for(array($resource, 'module' => 'object', 'action' => 'importSelect', 'type' => 'xml')) ?>">
        <i class="icon-download-alt"></i>
        <?php echo __('XML') ?>
      </a>
    </li>

    <li>
      <a href="<?php echo url_for(array($resource, 'module' => 'object', 'action' => 'importSelect', 'type' => 'csv')) ?>">
        <i class="icon-download-alt"></i>
        <?php echo __('CSV') ?>
      </a>
    </li>

    <li class="separator"><h4><?php echo __('Export') ?></h4></li>

    <li>
      <a href="<?php echo url_for(array($resource, 'module' => 'sfDcPlugin', 'sf_format' => 'xml')) ?>">
        <i class="icon-upload-alt"></i>
        <?php echo __('Dublin Core 1.1 XML') ?>
      </a>
    </li>

    <li>
      <a href="<?php echo url_for(array($resource, 'module' => 'sfEadPlugin', 'sf_format' => 'xml')) ?>">
        <i class="icon-upload-alt"></i>
        <?php echo __('EAD 2002 XML') ?>
      </a>
    </li>

    <?php if ('sfModsPlugin' == $sf_context->getModuleName()): ?>
      <li>
        <a href="<?php echo url_for(array($resource, 'module' => 'sfModsPlugin', 'sf_format' => 'xml')) ?>">
          <i class="icon-upload-alt"></i>
          <?php echo __('MODS 3.3 XML') ?>
        </a>
      </li>
    <?php endif; ?>

  </ul>
</section>
<commit_msg>Hide import from non-admin users<commit_after><section id="action-icons">
  <ul>

    <li>
      <a href="<?php echo url_for(array($resource, 'module' => 'informationobject', 'action' => 'reports')) ?>">
        <i class="icon-print"></i>
        <?php echo __('Reports') ?>
      </a>
    </li>

    <?php if ($sf_user->isAdministrator()): ?>
      <li class="separator"><h4><?php echo __('Import') ?></h4></li>
      <li>
        <a href="<?php echo url_for(array($resource, 'module' => 'object', 'action' => 'importSelect', 'type' => 'xml')) ?>">
          <i class="icon-download-alt"></i>
          <?php echo __('XML') ?>
        </a>
      </li>
      <li>
        <a href="<?php echo url_for(array($resource, 'module' => 'object', 'action' => 'importSelect', 'type' => 'csv')) ?>">
          <i class="icon-download-alt"></i>
          <?php echo __('CSV') ?>
        </a>
      </li>
    <?php endif; ?>

    <li class="separator"><h4><?php echo __('Export') ?></h4></li>
    <li>
      <a href="<?php echo url_for(array($resource, 'module' => 'sfDcPlugin', 'sf_format' => 'xml')) ?>">
        <i class="icon-upload-alt"></i>
        <?php echo __('Dublin Core 1.1 XML') ?>
      </a>
    </li>
    <li>
      <a href="<?php echo url_for(array($resource, 'module' => 'sfEadPlugin', 'sf_format' => 'xml')) ?>">
        <i class="icon-upload-alt"></i>
        <?php echo __('EAD 2002 XML') ?>
      </a>
    </li>

    <?php if ('sfModsPlugin' == $sf_context->getModuleName()): ?>
      <li>
        <a href="<?php echo url_for(array($resource, 'module' => 'sfModsPlugin', 'sf_format' => 'xml')) ?>">
          <i class="icon-upload-alt"></i>
          <?php echo __('MODS 3.3 XML') ?>
        </a>
      </li>
    <?php endif; ?>

  </ul>
</section>

{'fraction_non_alphanumeric': 0.2511737089201878, 'fraction_numerical': 0.007042253521126761, 'mean_word_length': 2.588421052631579, 'pattern_counts': {'":': 0, '<': 133, '<?xml version=': 0, '>': 164, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6201642', 'n_tokens_mistral': 1224, 'n_tokens_neox': 1205, 'n_words': 265}