<commit_before><?php
$callouts = get_field("callouts");

if ($callouts) {
    $i = 0;

    while (have_rows("callouts")) {
        the_row();

        $title = get_sub_field("title");
        $content = get_sub_field("content");

        if ($title || $content) {
            $i++;

            if ($i === 1 || ($i - 1) % 3 === 0) {
                echo "<div class='row -padded -equalheight'>";
            }

            echo "<div class='col -third'><div class='widget'>";

            if ($title) {
                echo "<h6 class='widget_title title'>{$title}</h6>";
            }

            if ($content) {
                echo "<div class='widget_content user-content'>{$content}</div>";
            }

            echo "</div></div>"; // .widget, .col.-third

            if ($i === count($callouts) || $i % 3 === 0) {
                echo "</div>"; // .row.-padded
            }
        } // if ($titile || $content)
    } // while (have_rows("callouts"))
} // if ($callouts)
?>
<commit_msg>Convert callout-grid.php to mixed PHP & HTML<commit_after><?php
$i = 0;
$callouts = get_field("callouts");
?>

<?php if ($callouts): ?>
    <?php while (have_rows("callouts")): ?>
        <?php the_row(); ?>

        <?php
        $title = get_sub_field("title");
        $content = get_sub_field("content");
        ?>

        <?php if ($title || $content): ?>
            <?php $i++; ?>

            <?php if ($i === 1 || ($i - 1) % 3 === 0) ?><div class="row -padded -equalheight">

            <div class="col -third">
                <div class="widget">

                    <?php if ($title) ?><h6 class="widget_title title"><?php echo $title; ?></h6>
                    <?php if ($content) ?><div class="widget_content user-content"><?php echo $content; ?></div>

                </div><!--/.widget-->
            </div><!--/.col.-third-->

            <?php if ($i === count($callouts) || $i % 3 === 0) ?></div><!--/.row.-padded-->
        <?php endif; // if ($titile || $content) ?>
    <?php endwhile; // while (have_rows("callouts")) ?>
<?php endif; // if ($callouts) ?>

{'fraction_non_alphanumeric': 0.2232870148538572, 'fraction_numerical': 0.008624820316243412, 'mean_word_length': 1.7914438502673797, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 43, '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': '5191069', 'n_tokens_mistral': 671, 'n_tokens_neox': 635, 'n_words': 154}