<commit_before><?php if (!isset($aggs[$name]) || (!isset($filters[$name]) && count($aggs[$name]) < 2)) return ?>
<?php $openned = (isset($sf_request->$name) || (isset($open) && $open && 0 < count($aggs[$name]))) ?>

<section class="facet <?php if ($openned) echo 'open' ?>">
  <div class="facet-header">
    <h3><a href="#" aria-expanded="<?php echo $openned ?>"><?php echo $label ?></a></h3>
  </div>

  <div class="facet-body" id="<?php echo $id ?>">
    <ul>

      <?php $filters = sfOutputEscaper::unescape($filters) ?>

      <?php if ($name !== 'languages'): ?>
        <li <?php if (!isset($filters[$name])) echo 'class="active"' ?>>
          <?php echo link_to(__('All'),
            array($name => null,'page' => null) +
            $sf_data->getRaw('sf_request')->getParameterHolder()->getAll(), array('title' => '')) ?>
        </li>
      <?php endif; ?>

      <?php foreach ($aggs[$name] as $bucket): ?>
        <?php $active = ((isset($filters[$name]) && $filters[$name] == $bucket['key']) ||
          (!isset($filters[$name]) && $bucket['key'] == 'unique_language')) ?>

        <li <?php if ($active) echo 'class="active"' ?>>
          <?php echo link_to(__(render_value_inline($bucket['display'])) . '<span>, ' . $bucket['doc_count'] . ' ' . __('results') . '</span>',
            array('page' => null, $name => $bucket['key'] == 'unique_language' ? null : $bucket['key']) +
            $sf_data->getRaw('sf_request')->getParameterHolder()->getAll(), array('title' => '')) ?>
          <span class="facet-count" aria-hidden="true"><?php echo $bucket['doc_count'] ?></span>
        </li>
      <?php endforeach; ?>
<commit_msg>Add title tooltip to facet filters, refs #12471<commit_after><?php if (!isset($aggs[$name]) || (!isset($filters[$name]) && count($aggs[$name]) < 2)) return ?>
<?php $openned = (isset($sf_request->$name) || (isset($open) && $open && 0 < count($aggs[$name]))) ?>

<section class="facet <?php if ($openned) echo 'open' ?>">
  <div class="facet-header">
    <h3><a href="#" aria-expanded="<?php echo $openned ?>"><?php echo $label ?></a></h3>
  </div>

  <div class="facet-body" id="<?php echo $id ?>">
    <ul>

      <?php $filters = sfOutputEscaper::unescape($filters) ?>

      <?php if ($name !== 'languages'): ?>
        <li <?php if (!isset($filters[$name])) echo 'class="active"' ?>>
          <?php echo link_to(__('All'),
            array($name => null,'page' => null) +
            $sf_data->getRaw('sf_request')->getParameterHolder()->getAll(), array('title' => __('All'))) ?>
        </li>
      <?php endif; ?>

      <?php foreach ($aggs[$name] as $bucket): ?>
        <?php $active = ((isset($filters[$name]) && $filters[$name] == $bucket['key']) ||
          (!isset($filters[$name]) && $bucket['key'] == 'unique_language')) ?>

        <li <?php if ($active) echo 'class="active"' ?>>
          <?php echo link_to(__(strip_markdown($bucket['display'])) . '<span>, ' . $bucket['doc_count'] . ' ' . __('results') . '</span>',
            array('page' => null, $name => $bucket['key'] == 'unique_language' ? null : $bucket['key']) +
            $sf_data->getRaw('sf_request')->getParameterHolder()->getAll(), array('title' => __(strip_markdown($bucket['display'])))) ?>
          <span class="facet-count" aria-hidden="true"><?php echo $bucket['doc_count'] ?></span>
        </li>
      <?php endforeach; ?>

{'fraction_non_alphanumeric': 0.2609857482185273, 'fraction_numerical': 0.003859857482185273, 'mean_word_length': 3.6277472527472527, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 97, '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': '4550056', 'n_tokens_mistral': 1100, 'n_tokens_neox': 1090, 'n_words': 223}