<commit_before>{# FuzAppBundle:Fiddle:index.html.twig #}
{# Rendered by: FuzAppBundle:Fiddle:samples #}

{% if categories|length > 0 %}

   {% import "FuzAppBundle::macros.html.twig" as macros %}

   <button type="button" class="btn btn-tf-dark" data-toggle="modal" data-target="#samples-modal">
      <span class="glyphicon glyphicon glyphicon-cloud hidden-md hidden-sm hidden-xs"></span>
      <span>Samples</span>
   </button>

   {% set body %}

   <div class="text-center">

      <p>Click on the following buttons to open fiddle's samples in a new tab:</p>

      {% set count = 0 %}
      {% for category, samples in categories %}

         <p>
            <strong>{{ category|title }}</strong>
         </p>

         {% for sample in samples %}

            <a
               class="btn {{ cycle(['btn-tf-dark', 'btn-tf-green'], count) }}"
               href="{{ path('fiddle', {'hash': sample.hash, 'revision': sample.revision}) }}"
               style="margin: 3px;"
               target="_blank">{{ sample.label }}</a>

            {% set count = count + 1 %}

         {% endfor %}

         <div class="clear">&nbsp;</div>

      {% endfor %}

   </div>

   {% endset %}

   {{ macros.modal('samples-modal', 'Samples', body, {'modal-class': 'modal-lg'}) }}

{% endif %}<commit_msg>css fixes<commit_after>{# FuzAppBundle:Fiddle:index.html.twig #}
{# Rendered by: FuzAppBundle:Fiddle:samples #}

{% if categories|length > 0 %}

   {% import "FuzAppBundle::macros.html.twig" as macros %}

   <button type="button" class="btn btn-tf-dark" data-toggle="modal" data-target="#samples-modal">
      <span class="glyphicon glyphicon glyphicon-cloud hidden-md hidden-sm hidden-xs"></span>
      <span>Samples</span>
   </button>

   {% set body %}

   <div class="text-left">

      <p class="text-center lead">Click on the following buttons to open fiddle's samples in a new tab</p>

      {% for category, samples in categories %}

         <p class="text-center">
            <strong>{{ category|title }}</strong>
         </p>

         {% for sample in samples %}

            <a
               class="btn btn-sm btn-tf-dark"
               href="{{ path('fiddle', {'hash': sample.hash, 'revision': sample.revision}) }}"
               style="margin: 3px;"
               target="_blank">{{ sample.label }}</a>

         {% endfor %}

         <div class="clear">&nbsp;</div>

      {% endfor %}

   </div>

   {% endset %}

   {{ macros.modal('samples-modal', 'Samples', body, {'modal-class': 'modal-lg'}) }}

{% endif %}
{'fraction_non_alphanumeric': 0.18271507498026834, 'fraction_numerical': 0.0023677979479084454, 'mean_word_length': 2.482142857142857, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 41, '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': '6078467', 'n_tokens_mistral': 862, 'n_tokens_neox': 757, 'n_words': 182}