<commit_before><?php 
  get_header(); 
  // Get Slug from URL

?>
<!-- Content -->
<div class="content-container">
  <!-- News Container -->
  <div id="news-container">
    <div class="row">
      <header class="project-header twelve columns">
        <div class="row">
          <img src="/wp-content/themes/ally/images/logo.jpg" id="logo">
        </div>
      </header>
    </div>
    <!-- Header Row -->
    <div class="row">
      <div class="columns eight">
        <!-- Features -->
        <div id="feature-container">
          <div id="featured">
            <!-- features go here -->
            <?php
              query_posts(array(
                'orderby' => 'date', 
                'order' => 'DESC',
                'posts_per_page' => 5,
                'meta_info' => 'featured',
                'post_status' => 'publish',
                'post_type' => array('post', 'external_post', 'external_tool', 'wp_tool')
              ));

              if (have_posts()):
                while (have_posts()):
                  the_post();
            ?>
            <div>
              <?php if (has_post_thumbnail($post->ID)):  
                $image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'medium'); ?>
                <img src="<?php echo $image[0]; ?>">
              <?php endif; ?>
              <div class="caption">
                <h4 class="headline"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4>
                <span class="byline">by <?php coauthors_posts_links(); ?>, <?php the_time('F j, Y'); ?></span>
                <?php the_excerpt(); ?>
              </div>
            </div>
            <?php endwhile; endif; ?>
          </div>
        </div><!-- End Features -->
        <div id="stories">
          <div class="items">
            <?php
              query_posts(array(
                'orderby' => 'date', 
                'order' => 'DESC',
                'post_status' => 'publish', 
                'post_type' => array('post' , 'external_post'),
                'posts_per_page' => -1
              ));
              if (have_posts()):
                while (have_posts()):
                  the_post();
            ?>
              <article class="row">
                <?php if (has_post_thumbnail($post->ID)) { ?>  
                  <div class="six mobile-two columns">
                <? } else { ?>
                  <div class="twelve mobile-four columns">
                <? } ?>
                    <h4>
                      <a name="<?php the_id(); ?>" href="<?php 
                        if (get_post_type() != 'external_post') {
                          the_permalink();
                        } else {
                          echo get_post_meta($post->ID, '_url_name', true); <commit_msg>add category labels on homepage<commit_after><?php 
  get_header(); 
  // Get Slug from URL

?>
<!-- Content -->
<div class="content-container">
  <!-- News Container -->
  <div id="news-container">
    <div class="row">
      <header class="project-header twelve columns">
        <div class="row">
          <img src="/wp-content/themes/ally/images/logo.jpg" id="logo">
        </div>
      </header>
    </div>
    <!-- Header Row -->
    <div class="row">
      <div class="columns eight">
        <!-- Features -->
        <div id="feature-container">
          <div id="featured">
            <!-- features go here -->
            <?php
              query_posts(array(
                'orderby' => 'date', 
                'order' => 'DESC',
                'posts_per_page' => 5,
                'meta_info' => 'featured',
                'post_status' => 'publish',
                'post_type' => array('post', 'external_post', 'external_tool', 'wp_tool')
              ));

              if (have_posts()):
                while (have_posts()):
                  the_post();
            ?>
            <div>
              <?php if (has_post_thumbnail($post->ID)):  
                $image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'medium'); ?>
                <img src="<?php echo $image[0]; ?>">
              <?php endif; ?>
              <div class="caption">
                <h4 class="headline"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4>
                <span class="byline">by <?php coauthors_posts_links(); ?>, <?php the_time('F j, Y'); ?></span>
                <?php the_excerpt(); ?>
              </div>
            </div>
            <?php endwhile; endif; ?>
          </div>
        </div><!-- End Features -->
        <div id="stories">
          <div class="items">
            <?php
              query_posts(array(
                'orderby' => 'date', 
                'order' => 'DESC',
                'post_status' => 'publish', 
                'post_type' => array('post' , 'external_post'),
                'posts_per_page' => -1
              ));
              if (have_posts()):
                while (have_posts()):
                  the_post();
            ?>
              <article class="row">








                <?php if (has_post_thumbnail($post->ID)) { ?>  
                  <div class="six mobile-two columns">
                <? } else { ?>
                  <div class="twelve mobile-four columns">
                <? } ?>
                    <div class="project">
                      <?
                        $project_parent_category = get_category_by_slug('project');
                        $project_parent_category_id=$project_parent_category->term_id;
                        $categories=get_the_category();
                        foreach($categories as $category){
                          if($category->category_parent==$project_parent_category_id){
                            echo "<a href='/project/". $category->slug . "'>" . $category->name . "</a>";
                          }
                        }
                      ?>
                    </div>
                    <h4>
                      <a name="<?php the_id(); ?>" href="<?php 
                        if (get_post_type() != 'external_post') {
                          the_permalink();
                        } else {
                          echo get_post_meta($post->ID, '_url_name', true); 
{'fraction_non_alphanumeric': 0.1647040101845958, 'fraction_numerical': 0.0019096117122851686, 'mean_word_length': 1.2946330777656079, 'pattern_counts': {'":': 0, '<': 120, '<?xml version=': 0, '>': 150, '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': '697700', 'n_tokens_mistral': 1750, 'n_tokens_neox': 1667, 'n_words': 333}