<commit_before><?php
/*
Template Name: City Page
*/
while (have_posts()) :
    the_post();
    get_template_part('templates/city-page', 'hero-unit');
    //get_template_part('templates/content', 'page');
    ?>
    <div class="container">
        <div class="col-md-8">
            <?php the_content(); ?>
        </div>
        <div class="col-md-4 sidebar">
            <?php
            if( $nonprofit_id = get_post_meta( $post->ID, 'non_profit_partner', true ) ){
                ?>
                <div class="widget partner">
                    <h3>Featured Non Profit Partner</h3>
                <?php
                $nonprofit_website = get_post_meta( $nonprofit_id, 'website', true );
                $nonprofit_format = ( ! empty( $nonprofit_website ) )? '<a href="%2$s" target="_blank">%1$s</a>' : '$s';

                if( $nonprofit_thumbnail = get_the_post_thumbnail( $nonprofit_id, 'large', ['style'=>'max-width: 100%; height: auto;'] ) )
                    echo sprintf( $nonprofit_format, $nonprofit_thumbnail, $nonprofit_website );
                ?>
                    <p><?= sprintf( $nonprofit_format, get_the_title( $nonprofit_id ), $nonprofit_website ); ?></p>
                </div>
            <?php
            }

            if( $priority_id = get_post_meta( $post->ID, 'priority_partner', true ) ){
                $priority_website = get_post_meta( $priority_id, 'website', true );
                $priority_format = ( ! empty( $priority_website ) )? '<a href="%2$s" target="_blank">%1$s</a>' : '$s';
                ?>
                <div class="widget partner">
                    <h3>Priority Partner</h3>
                <?php
                if( $priority_thumbnail = get_the_post_thumbnail( $priority_id, 'large', ['style'=>'max-width: 100%; height: auto;'] ) )
                    echo sprintf( $priority_format, $priority_thumbnail, $priority_website );;
                ?>
                    <p><?= sprintf( $priority_format, get_the_title( $priority_id ), $priority_website );; ?></p>
                </div>
            <?php
            }

            if( $sidebar_content = get_post_meta( $post->ID, 'sidebar_content', true ) ){
                $sidebar_content = apply_filters( 'the_content', $sidebar_content );
                ?>
                <div class="widget">
                    <h3>Additional Information</h3>
                    <?= $sidebar_content ?>
                </div>
                <?php
            }
            ?>
        </div>
    </div>
    <?php
endwhile;
?><commit_msg>Correcting sprintf format if only 1 var, removing extra semicolon<commit_after><?php
/*
Template Name: City Page
*/
while (have_posts()) :
    the_post();
    get_template_part('templates/city-page', 'hero-unit');
    //get_template_part('templates/content', 'page');
    ?>
    <div class="container">
        <div class="col-md-8">
            <?php the_content(); ?>
        </div>
        <div class="col-md-4 sidebar">
            <?php
            if( $nonprofit_id = get_post_meta( $post->ID, 'non_profit_partner', true ) ){
                ?>
                <div class="widget partner">
                    <h3>Featured Non Profit Partner</h3>
                <?php
                $nonprofit_website = get_post_meta( $nonprofit_id, 'website', true );
                $nonprofit_format = ( ! empty( $nonprofit_website ) )? '<a href="%2$s" target="_blank">%1$s</a>' : '%1$s';

                if( $nonprofit_thumbnail = get_the_post_thumbnail( $nonprofit_id, 'large', ['style'=>'max-width: 100%; height: auto;'] ) )
                    echo sprintf( $nonprofit_format, $nonprofit_thumbnail, $nonprofit_website );
                ?>
                    <p><?= sprintf( $nonprofit_format, get_the_title( $nonprofit_id ), $nonprofit_website ); ?></p>
                </div>
            <?php
            }

            if( $priority_id = get_post_meta( $post->ID, 'priority_partner', true ) ){
                $priority_website = get_post_meta( $priority_id, 'website', true );
                $priority_format = ( ! empty( $priority_website ) )? '<a href="%2$s" target="_blank">%1$s</a>' : '%1$s';
                ?>
                <div class="widget partner">
                    <h3>Priority Partner</h3>
                <?php
                if( $priority_thumbnail = get_the_post_thumbnail( $priority_id, 'large', ['style'=>'max-width: 100%; height: auto;'] ) )
                    echo sprintf( $priority_format, $priority_thumbnail, $priority_website );
                ?>
                    <p><?= sprintf( $priority_format, get_the_title( $priority_id ), $priority_website ); ?></p>
                </div>
            <?php
            }

            if( $sidebar_content = get_post_meta( $post->ID, 'sidebar_content', true ) ){
                $sidebar_content = apply_filters( 'the_content', $sidebar_content );
                ?>
                <div class="widget">
                    <h3>Additional Information</h3>
                    <?= $sidebar_content ?>
                </div>
                <?php
            }
            ?>
        </div>
    </div>
    <?php
endwhile;
?>
{'fraction_non_alphanumeric': 0.1534730306558013, 'fraction_numerical': 0.007566938300349243, 'mean_word_length': 1.798588490770901, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 89, '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': '200816', 'n_tokens_mistral': 1568, 'n_tokens_neox': 1488, 'n_words': 289}