<commit_before><section class="container">
    <div class="banner row">
        <!--顶部通栏 begin-->
        <div class="col-md-12">
            <div class="widget-box no-border">
                <a href="#"><img src="<?php echo base_url('webroot/image/banner1.jpg'); ?>" alt="" style="width:100%;"></a>
            </div>
        </div>
        <!--顶部通栏 end-->
    </div>

    <?php
        $loops = floor(count($category)/2);
        //循环显示图片大类、小类 begin
        for($m=0; $m<$loops; $m++) {
    ?>

    <div class="photos row">
        <div class="col-xs-12 col-sm-12 col-md-6">
            <!-- 左侧图片缩略图 begin -->
            <div class="widget-box no-border">
                <div class="widget-box_title bs-callout bs-callout-info"><h4><?php echo $category[$m]['category']; ?><a href="<?php echo site_url('photo/waterfall'); ?>"><span class="pull-right glyphicon glyphicon-camera" style="padding-right:10px;"></span></a></h4></div>
                <ul class="widget-links list-unstyled">
                <?php
                    for($i=0; $i<count($subcategory); $i++) {
                        if ($category[$m]['category'] == $subcategory[$i]['category']) {
                ?>
                        <li class="col-xs-6 col-sm-3 col-md-4 widget-links_item"><div class="text-center"><?php echo $subcategory[$i]['subcategory']; ?></div><a class="thumbnail" href="<?php echo site_url('photo/view/'.$subcategory[$i]['id']); ?>"><img src="<?php echo base_url($subcategory[$i]['thumbnail']); ?>" alt=""></a></li>
                <?php
                        }
                    }
                ?>
                </ul>
            </div>
            <!-- 左侧图片缩略图 end -->
        </div>

        <div class="col-xs-12 col-sm-12 col-md-6">
            <!-- 右侧图片缩略图 begin -->
            <div class="widget-box no-border">
                <div class="widget-box_title bs-callout bs-callout-info"><h4><?php echo $category[$m+1]['category']; ?><a href="<?php echo site_url('photo/waterfall'); ?>"><span class="pull-right glyphicon glyphicon-camera" style="padding-right:10px;"></span></a></h4></div>
                <ul class="widget-links list-unstyled">
                <?php
                    for($i=0; $i<count($subcategory); $i++) {
                        if ($category[$m+1]['category'] == $subcategory[$i]['category']) {
                ?>
                    <li class="col-xs-6 col-sm-3 col-md-4 widget-links_item"><div class="text-center"><?php echo $subcategory[$i]['subcategory']; ?></div><a class="thumbnail" href="<?php echo site_url('photo/view/'.$subcategory[$i]['id']); ?>"><img src="<?php echo base_url($subcategory[$i]['thumbnail']); ?>" alt=""></a></li>
                <?php
                        }
                    }
                ?>
                </ul>
            </div>
            <!-- 右侧图片缩略图 end -->
        </div>
    </div>

    <?php
        }
        //循环显示图片大类、小类 end
    ?>

    <?php
        if (count($category)%2 == 1) {//奇数图片类处理
            $remainder = count($category)-1;
    ?>
    <div class="photos row">
        <div class="col-xs-12 col-sm-12 col-md-6">
            <div class="widget-box no-border">
                <div class="widget-box_title bs-callout bs-callout-info"><h4><?php echo $category[$remainder]['category']; ?><a href="<?php echo site_url('photo/waterfall'); ?>"><span class="pull-right glyphicon glyphicon-camera" style="padding-right:10px;"></span></a></h4></div>
                <ul class="widget-links list-unstyled">
                <?php
                    for($i=0; $i<count($subcategory); $i++) {
                        if ($category[$remainder]['category'] == $subcategory[$i]['category']) {
                ?>
                    <li class="col-xs-6 col-sm-3 col-md-4 widget-links_item"><div class="text-center"><?php echo $subcategory[$i]['subcategory']; ?></div><a class="thumbnail" href="<?php echo site_url('photo/view/'.$subcategory[$i]['id']); ?>"><img src="<?php echo base_url($subcategory[$i]['thumbnail']); ?>" alt=""></a></li>
                <?php
                        }
                    }
                ?>
                </ul>
            </div>
        </div>
    </div>
    <?php
        }
    ?>
</section>
<commit_msg>photo list changed<commit_after><section class="container">
    <div class="banner row">
        <!--顶部通栏 begin-->
        <div class="col-md-12">
            <div class="widget-box no-border">
                <a href="#"><img src="<?php echo base_url('webroot/image/banner1.jpg'); ?>" alt="" style="width:100%;"></a>
            </div>
        </div>
        <!--顶部通栏 end-->
    </div>

    <?php
        //循环显示图片大类、小类 begin
        for($m=0; $m<count($category); $m++) {
    ?>
    <div class="photos row">
        <div class="col-xs-12 col-sm-12 col-md-12">
            <!-- 图片缩略图 begin -->
            <div class="widget-box no-border">
                <div class="widget-box_title bs-callout bs-callout-info"><h4><?php echo $category[$m]['category']; ?><a href="<?php echo site_url('photo/waterfall'); ?>"><span class="pull-right glyphicon glyphicon-camera" style="padding-right:10px;"></span></a></h4></div>
                <?php
                    for($i=0; $i<count($subcategory); $i++) {
                        if ($category[$m]['category'] == $subcategory[$i]['category']) {
                ?>
                <div class="col-sm-6 col-md-4">
                    <div class="thumbnail">
                        <a href="<?php echo site_url('photo/view/'.$subcategory[$i]['id']); ?>"><img src="<?php echo base_url($subcategory[$i]['thumbnail']); ?>" alt=""></a>
                        <div class="caption">
                            <h5 class="text-center"><?php echo $subcategory[$i]['subcategory']; ?></h5>
                        </div>
                    </div>
                </div>
                <?php
                        }
                    }
                ?>
            </div>
            <!-- 图片缩略图 end -->
        </div>
    </div>
    <?php
        }
        //循环显示图片大类、小类 end
    ?>
</section>

{'fraction_non_alphanumeric': 0.210925895362271, 'fraction_numerical': 0.012213236507674533, 'mean_word_length': 1.769652650822669, 'pattern_counts': {'":': 0, '<': 169, '<?xml version=': 0, '>': 163, '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': '4871027', 'n_tokens_mistral': 1924, 'n_tokens_neox': 1907, 'n_words': 322}