<commit_before><div id="search-results">

  <div class="row">

    <div class="span12 hidden-phone">
      <h1>
        <?php echo image_tag('/plugins/qtDominionPlugin/images/icons-large/icon-institutions.png', array('width' => '42', 'height' => '42')) ?>
        <?php echo __('%1% institutions', array('%1%' => $pager->getNbResults(), '%2%' => sfConfig::get('app_ui_label_repository'))) ?>
      </h1>
    </div>

    <div id="filter" class="span12 visible-phone">
      <h2 class="widebtn btn-huge" data-toggle="collapse" data-target="#facets">
        <?php echo __('Filter %1% institutions', array('%1%' => $pager->getNbResults(), '%2%' => sfConfig::get('app_ui_label_repository'))) ?>
      </h2>
    </div>

  </div>

  <div class="row">

    <div class="span3" id="facets">

      <?php echo get_partial('search/facet', array(
        'target' => '#facet-archivetype',
        'label' => __('Archive type'),
        'facet' => 'types',
        'pager' => $pager,
        'filters' => $filters)) ?>

      <?php echo get_partial('search/facet', array(
        'target' => '#facet-province',
        'label' => __('Region'),
        'facet' => 'contact_i18n_region',
        'pager' => $pager,
        'filters' => $filters)) ?>

    </div>

    <div class="span9">

      <div class="section">

        <?php foreach ($pager->getResults() as $hit): ?>
          <?php $doc = build_i18n_doc($hit, array('actor')) ?>
          <div class="institution maxi">
            <h2><?php echo link_to($doc['actor'][$sf_user->getCulture()]['authorizedFormOfName'], array('module' => 'repository', 'slug' => $doc['slug'])) ?></h2>
          </div>
        <?php endforeach; ?>

      </div>

      <div class="section">

        <?php echo get_partial('default/pager', array('pager' => $pager)) ?>

      </div>

    </div>

  </div>

</div><commit_msg>Use masonry bricks within the institution browser.<commit_after><div id="search-results">

  <div class="row">

    <div class="span12 hidden-phone">
      <h1>
        <?php echo image_tag('/plugins/qtDominionPlugin/images/icons-large/icon-institutions.png', array('width' => '42', 'height' => '42')) ?>
        <?php echo __('%1% institutions', array('%1%' => $pager->getNbResults(), '%2%' => sfConfig::get('app_ui_label_repository'))) ?>
      </h1>
    </div>

    <div id="filter" class="span12 visible-phone">
      <h2 class="widebtn btn-huge" data-toggle="collapse" data-target="#facets">
        <?php echo __('Filter %1% institutions', array('%1%' => $pager->getNbResults(), '%2%' => sfConfig::get('app_ui_label_repository'))) ?>
      </h2>
    </div>

  </div>

  <div class="row">

    <div class="span3" id="facets">

      <?php echo get_partial('search/facet', array(
        'target' => '#facet-archivetype',
        'label' => __('Archive type'),
        'facet' => 'types',
        'pager' => $pager,
        'filters' => $filters)) ?>

      <?php echo get_partial('search/facet', array(
        'target' => '#facet-province',
        'label' => __('Region'),
        'facet' => 'contact_i18n_region',
        'pager' => $pager,
        'filters' => $filters)) ?>

    </div>

    <div class="span9">

      <div class="section masonry">

        <?php foreach ($pager->getResults() as $hit): ?>
          <?php $doc = build_i18n_doc($hit, array('actor')) ?>
          <?php if (file_exists(sfConfig::get('sf_upload_dir').'/r/'.$doc['slug'].'/.conf/logo.png')): ?>
            <div class="item image">
              <?php echo link_to(image_tag('/uploads/r/'.$doc['slug'].'/.conf/logo.png'), array('module' => 'repository', 'slug' => $doc['slug'])) ?>
            </div>
          <?php else: ?>
            <div class="item text">
              <?php echo link_to($doc['actor'][$sf_user->getCulture()]['authorizedFormOfName'], array('module' => 'repository', 'slug' => $doc['slug'])) ?>
            </div>
          <?php endif; ?>
        <?php endforeach; ?>

      </div>

      <div class="section">

        <?php echo get_partial('default/pager', array('pager' => $pager)) ?>

      </div>

    </div>

  </div>

</div>
{'fraction_non_alphanumeric': 0.2237420615534929, 'fraction_numerical': 0.012212994626282364, 'mean_word_length': 2.823529411764706, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 127, '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': '1886566', 'n_tokens_mistral': 1412, 'n_tokens_neox': 1367, 'n_words': 263}