<commit_before>{% extends "layout.html" %}
{% block childHtml %}

{% from 'languageFilterMacro.html' import languageFilterMacro %}

<script type="application/json" id="languagesMetadata">
  {{ languagesMetadata|safe}}
</script>
<script type="application/json" id="locationMetadata">
  {{ locationsMetadata|safe }}
</script>


<!-- BEGIN: Section and Language filters -->
<div id="section-filters" class="center-block row">
  <!-- BEGIN: Section dropdown -->
  <div id="section-dropdown" class="dropdown upper-control">
    <div class="btn-group">
      <button id="location-dropdown-button"
        class="btn btn-default dropdown-toggle section-dropdown-button"
        type="button"
        data-toggle="dropdown"
        aria-haspopup="true"
        aria-expanded="true"
        data-bind="disable: disabled" >
        <span data-bind="text: cityLabel"></span>
        <span class="caret"></span>
      </button>
      <ul class="dropdown-menu" aria-labelledby="location-dropdown-button">
        <!-- ko foreach: locations -->
          <li>
            <a href="#" data-bind="click: $parent.chooseLocation, attr:{'href': url}">
              <img class="section-dropdown-icon" data-bind="visible: !!icon, attr:{'src': icon}">
              <span data-bind="text: displayName"></span>
            </a>
          </li>
        <!-- /ko -->
      </ul>
    </div>
  </div>
  <!-- END: Section dropdown -->

  {{ languageFilterMacro() }}
</div>
<!-- END: Section and Language filters -->

<!-- BEGIN: News stories -->
<div id="storyList" class="center-block">
  <ul class="list-group" data-bind="foreach: stories">
    <li class="list-group-item row baseCard storyCard">
      <div class="col-xs-12 col-xsl-6 col-sm-4" data-bind="if: images().length > 0">
        <div data-bind="with: images()[0]">
          <div class="storyPic-container">
            <a target="_blank" data-bind="attr: {href:link}">
              <img class="img-responsive center-block storyPic" data-bind="attr:{'src': src}">
            </a>
            <p class="text-center small">
                Image Source:
                <a class="publisher-link" target="_blank" data-bind="text: publisher.name, attr: {href:link}"></a>
            </p>
          </div>
        </div>
      </div>

      <div class="col-xs-12" data-bind="css:{'col-sm-8 col-xsl-6' : images().length > 0}">
        <h4>
          <a class="headline" target="_blank" data-bind="text : mainArticle.title, attr: {href:mainArticle.link}"></a>
          <small>
            <a class="publisher-link" target="_blank" data-bind="text: mainArticle.publisher.name, attr: {href:mainArticle.publisher.homepage}"></a>
          </small>
        </h4>
        <p data-bind="text : mainArticle.summaryTextTruncated"></p>

        <div data-bind="if: relatedArticles">
          <ul data-bind="foreach: relatedArticles">
            <li data-bind="css:{'hidden-xs' : $index() > 0}">
              <a class="headline" target="_blank" data-bind="text : title, attr: {href:link}"></a>
              <small><a class="publisher-link" target="_blank" data-bind="text: publisher.name, attr: {href:publisher.homepage}"></a></small>
            </li>
          </ul>
        </div>
      </div>

      <div class="col-xs-12 card-actionRow">
        <a href="#" class="pull-right card-action" data-bind="click: navigateToDetails, attr: {href:storyDetailUrl}">
          <span>Details</span>
          <span class="glyphicon glyphicon-arrow-right" aria-label="Details"></span>
        </a>
      </div>
    </li>
  </ul>
  <button class="btn btn-default center-block show-more-button" data-bind="click: loadMoreStories, visible: !isDataLoading()">
    <span class="glyphicon glyphicon-menu-down pull-left" aria-hidden="true"></span>
    <span>Show more</span>
    <span class="glyphicon glyphicon-menu-down pull-right" aria-hidden="true"></span>
  </button>
  <img  class="center-block" data-bind="visible: isDataLoading" src="{{ url_for('static', filename='loading.svg') }}">
</div>
<!-- END: News stories -->

<!-- BEGIN: Story detail view -->
<div id="storyDetail" class="center-block">
  <div data-bind="visible: locations().length > 0">
    <!-- ko foreach: locations -->
        <a href="#" class="upper-nav-link upper-control center-block" data-bind="click: $parent.navigateToLocale, attr: {href:url}">
          <span class="glyphicon glyphicon-arrow-left"></span>
          <span data-bind="text: displayName"></span><span> News</span>
        </a>
    <!-- /ko -->
  </div>
  {{ languageFilterMacro() }}

  <div class="row center-block" data-bind="foreach: articles">
    <div class="col-xs-12 col-xsl-6 col-sm-4 col-md-3 articleCard-Container">
      <div class="baseCard articleCard">
      <!-- ko if: images.length > 0 -->
      <div class="articlePic-container" data-bind="with: images[0]">
        <a target="_blank" data-bind="attr: {href:$parent.link}">
          <img class="img-responsive center-block articlePic" data-bind="attr:{'src': $data}">
        </a>
      </div>
      <!-- /ko -->
<commit_msg>REmove language filter<commit_after>{% extends "layout.html" %}
{% block childHtml %}

{% from 'languageFilterMacro.html' import languageFilterMacro %}

<script type="application/json" id="languagesMetadata">
  {{ languagesMetadata|safe}}
</script>
<script type="application/json" id="locationMetadata">
  {{ locationsMetadata|safe }}
</script>


<!-- BEGIN: Section and Language filters -->
<div id="section-filters" class="center-block row">
  <!-- BEGIN: Section dropdown -->
  <div id="section-dropdown" class="dropdown upper-control">
    <div class="btn-group">
      <button id="location-dropdown-button"
        class="btn btn-default dropdown-toggle section-dropdown-button"
        type="button"
        data-toggle="dropdown"
        aria-haspopup="true"
        aria-expanded="true"
        data-bind="disable: disabled" >
        <span data-bind="text: cityLabel"></span>
        <span class="caret"></span>
      </button>
      <ul class="dropdown-menu" aria-labelledby="location-dropdown-button">
        <!-- ko foreach: locations -->
          <li>
            <a href="#" data-bind="click: $parent.chooseLocation, attr:{'href': url}">
              <img class="section-dropdown-icon" data-bind="visible: !!icon, attr:{'src': icon}">
              <span data-bind="text: displayName"></span>
            </a>
          </li>
        <!-- /ko -->
      </ul>
    </div>
  </div>
  <!-- END: Section dropdown -->
</div>
<!-- END: Section and Language filters -->

<!-- BEGIN: News stories -->
<div id="storyList" class="center-block">
  <ul class="list-group" data-bind="foreach: stories">
    <li class="list-group-item row baseCard storyCard">
      <div class="col-xs-12 col-xsl-6 col-sm-4" data-bind="if: images().length > 0">
        <div data-bind="with: images()[0]">
          <div class="storyPic-container">
            <a target="_blank" data-bind="attr: {href:link}">
              <img class="img-responsive center-block storyPic" data-bind="attr:{'src': src}">
            </a>
            <p class="text-center small">
                Image Source:
                <a class="publisher-link" target="_blank" data-bind="text: publisher.name, attr: {href:link}"></a>
            </p>
          </div>
        </div>
      </div>

      <div class="col-xs-12" data-bind="css:{'col-sm-8 col-xsl-6' : images().length > 0}">
        <h4>
          <a class="headline" target="_blank" data-bind="text : mainArticle.title, attr: {href:mainArticle.link}"></a>
          <small>
            <a class="publisher-link" target="_blank" data-bind="text: mainArticle.publisher.name, attr: {href:mainArticle.publisher.homepage}"></a>
          </small>
        </h4>
        <p data-bind="text : mainArticle.summaryTextTruncated"></p>

        <div data-bind="if: relatedArticles">
          <ul data-bind="foreach: relatedArticles">
            <li data-bind="css:{'hidden-xs' : $index() > 0}">
              <a class="headline" target="_blank" data-bind="text : title, attr: {href:link}"></a>
              <small><a class="publisher-link" target="_blank" data-bind="text: publisher.name, attr: {href:publisher.homepage}"></a></small>
            </li>
          </ul>
        </div>
      </div>

      <div class="col-xs-12 card-actionRow">
        <a href="#" class="pull-right card-action" data-bind="click: navigateToDetails, attr: {href:storyDetailUrl}">
          <span>Details</span>
          <span class="glyphicon glyphicon-arrow-right" aria-label="Details"></span>
        </a>
      </div>
    </li>
  </ul>
  <button class="btn btn-default center-block show-more-button" data-bind="click: loadMoreStories, visible: !isDataLoading()">
    <span class="glyphicon glyphicon-menu-down pull-left" aria-hidden="true"></span>
    <span>Show more</span>
    <span class="glyphicon glyphicon-menu-down pull-right" aria-hidden="true"></span>
  </button>
  <img  class="center-block" data-bind="visible: isDataLoading" src="{{ url_for('static', filename='loading.svg') }}">
</div>
<!-- END: News stories -->

<!-- BEGIN: Story detail view -->
<div id="storyDetail" class="center-block">
  <div data-bind="visible: locations().length > 0">
    <!-- ko foreach: locations -->
        <a href="#" class="upper-nav-link upper-control center-block" data-bind="click: $parent.navigateToLocale, attr: {href:url}">
          <span class="glyphicon glyphicon-arrow-left"></span>
          <span data-bind="text: displayName"></span><span> News</span>
        </a>
    <!-- /ko -->
  </div>

  <div class="row center-block" data-bind="foreach: articles">
    <div class="col-xs-12 col-xsl-6 col-sm-4 col-md-3 articleCard-Container">
      <div class="baseCard articleCard">
      <!-- ko if: images.length > 0 -->
      <div class="articlePic-container" data-bind="with: images[0]">
        <a target="_blank" data-bind="attr: {href:$parent.link}">
          <img class="img-responsive center-block articlePic" data-bind="attr:{'src': $data}">
        </a>
      </div>
      <!-- /ko -->

{'fraction_non_alphanumeric': 0.1916799363057325, 'fraction_numerical': 0.004777070063694267, 'mean_word_length': 2.8122154779969653, 'pattern_counts': {'":': 0, '<': 237, '<?xml version=': 0, '>': 247, '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': '489309', 'n_tokens_mistral': 3183, 'n_tokens_neox': 3085, 'n_words': 648}