<commit_before><!-- 人気記事スライダー -->
<?php //echo do_shortcode('[advps-slideshow optset="1"]'); ?>

<div id="garally">
    <div id="garally-caption">
        北大生はもっと面白い
    </div>
</div>


<nav class="nav-horizontal" id="global-nav">
<div class="mask">
<ul class="nav list">
  <li><a href="#tab0" data-toggle="tab">ホーム</a></li>
<?php
    $args = array(
        'hide_empty' => 1,
    );
    $categories = get_categories($args);
    foreach($categories as $category){
        if($category->cat_ID!=1){
            echo '<li><a href="#tab'.$category->cat_ID.'" data-toggle="tab">';
            echo $category->name.'</a></li>';
        }
    }
?>
</ul>
</div>
</nav>

<div class="tab-content">
  <!-- ホームタブ{{{ -->
    <div class="tab-pane fade in active" id="tab0">
        <div id="tiles-container">
            <div class="tl-page" data-tl-template="tempD">
                <?php $counter = 0; ?>
                <?php if(have_posts()): while(have_posts()): the_post(); ?>
                <div class="jstile row">
                    <article <?php post_class('top_page'); ?>>
                        <a href="<?php the_permalink(); ?>">
                            <?php if(wp_is_mobile()):
                                $postthumb = wp_get_attachment_image_src( get_post_thumbnail_id(), 'homethumbnail_mobile');
                            else:
                                $postthumb = wp_get_attachment_image_src( get_post_thumbnail_id(), 'homethumbnail');
                            endif; ?>
                            <?php if($counter>4 || $counter==1): ?>
                                <div class="col-xs-3 col-sm-12 jstile-img">
                                    <img src="<?php echo $postthumb[0]; ?>" alt="">
                            <?php else: ?>
                                <div class="col-xs-3 col-sm-5 jstile-img">
                                    <img src="<?php echo $postthumb[0]; ?>" alt="">
                            <?php endif; ?>
                            </div>
                            <?php if($counter==0): ?>
                                <div class="col-xs-9 col-sm-7 jstile-text top-article">
                            <?php elseif($counter>4 || $counter==1): ?>
                                <div class="col-xs-9 col-sm-12 jstile-text">
                            <?php else: ?>
                                <div class="col-xs-9 col-sm-7 jstile-text">
                            <?php endif; ?>
                                <h2><?php the_title(); ?></h2>
                            <!-- ここから、記事本文抜粋 -->
                            <?php if($counter==0): ?>
                                <?php echo mb_strimwidth(get_the_excerpt(), 0, 9, "…", "UTF-8"); ?>
                            <?php elseif($counter==1): ?>
                                <?php echo mb_strimwidth(get_the_excerpt(), 0, 1, "…", "UTF-8"); ?>
                            <?php elseif($counter>4 || $counter==1): ?>
                                <?php echo mb_strimwidth(get_the_excerpt(), 0, 1, "…", "UTF-8"); ?>
                            <?php else: ?><commit_msg>excerpt 400<commit_after><!-- 人気記事スライダー -->
<?php //echo do_shortcode('[advps-slideshow optset="1"]'); ?>

<div id="garally">
    <div id="garally-caption">
        北大生はもっと面白い
    </div>
</div>


<nav class="nav-horizontal" id="global-nav">
<div class="mask">
<ul class="nav list">
  <li><a href="#tab0" data-toggle="tab">ホーム</a></li>
<?php
    $args = array(
        'hide_empty' => 1,
    );
    $categories = get_categories($args);
    foreach($categories as $category){
        if($category->cat_ID!=1){
            echo '<li><a href="#tab'.$category->cat_ID.'" data-toggle="tab">';
            echo $category->name.'</a></li>';
        }
    }
?>
</ul>
</div>
</nav>

<div class="tab-content">
  <!-- ホームタブ{{{ -->
    <div class="tab-pane fade in active" id="tab0">
        <div id="tiles-container">
            <div class="tl-page" data-tl-template="tempD">
                <?php $counter = 0; ?>
                <?php if(have_posts()): while(have_posts()): the_post(); ?>
                <div class="jstile row">
                    <article <?php post_class('top_page'); ?>>
                        <a href="<?php the_permalink(); ?>">
                            <?php if(wp_is_mobile()):
                                $postthumb = wp_get_attachment_image_src( get_post_thumbnail_id(), 'homethumbnail_mobile');
                            else:
                                $postthumb = wp_get_attachment_image_src( get_post_thumbnail_id(), 'homethumbnail');
                            endif; ?>
                            <?php if($counter>4 || $counter==1): ?>
                                <div class="col-xs-3 col-sm-12 jstile-img">
                                    <img src="<?php echo $postthumb[0]; ?>" alt="">
                            <?php else: ?>
                                <div class="col-xs-3 col-sm-5 jstile-img">
                                    <img src="<?php echo $postthumb[0]; ?>" alt="">
                            <?php endif; ?>
                            </div>
                            <?php if($counter==0): ?>
                                <div class="col-xs-9 col-sm-7 jstile-text top-article">
                            <?php elseif($counter>4 || $counter==1): ?>
                                <div class="col-xs-9 col-sm-12 jstile-text">
                            <?php else: ?>
                                <div class="col-xs-9 col-sm-7 jstile-text">
                            <?php endif; ?>
                                <h2><?php the_title(); ?></h2>
                            <!-- ここから、記事本文抜粋 -->
                            <?php if($counter==0): ?>
                                <?php echo mb_strimwidth(get_the_excerpt(), 0, 400, "…", "UTF-8"); ?>
                            <?php elseif($counter==1): ?>
                                <?php echo mb_strimwidth(get_the_excerpt(), 0, 1, "…", "UTF-8"); ?>
                            <?php elseif($counter>4 || $counter==1): ?>
                                <?php echo mb_strimwidth(get_the_excerpt(), 0, 1, "…", "UTF-8"); ?>
                            <?php else: ?>
{'fraction_non_alphanumeric': 0.1752808988764045, 'fraction_numerical': 0.013643659711075442, 'mean_word_length': 1.2908088235294117, 'pattern_counts': {'":': 0, '<': 127, '<?xml version=': 0, '>': 141, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '38357', 'n_tokens_mistral': 1907, 'n_tokens_neox': 1848, 'n_words': 337}