<commit_before>// Moves WordPress content into Skeleton grids separated by horizontal rules (hr)

$(document).ready(function() {
    var $separators = $('div.text-wrapper-static-home > hr');
    
    var separator_predecessors = [];
    
    $separators.each(function(index, element) {
        separator_predecessors[index] = $(this).prevUntil('hr');
    });
    
    $separators.before('<div class="container"></div>');
    
    var $containers = $('div.text-wrapper-static-home > .container');
    
    $.each(separator_predecessors, function(index, $elements) {
        var numRows = $elements.length / 2;
        $containers.eq(index).append('<div class="row"></div>'.repeat(numRows));
        
        var $rows = $containers.eq(index).children('.row');
        
        $elements.each(function(index, element) {
            var $row = $rows.eq(Math.floor(index / 2));
            $row.append(element);
        });
    });
});<commit_msg>Only move captions into grid<commit_after>// Moves WordPress content into Skeleton grids separated by horizontal rules (hr)

$(document).ready(function() {
    var $separators = $('div.text-wrapper-static-home > hr');
    
    var separator_predecessors = [];
    
    $separators.each(function(index, element) {
        separator_predecessors[index] = $(this).prevUntil('hr', '.wp-caption');
    });
    
    $separators.before('<div class="container"></div>');
    
    var $containers = $('div.text-wrapper-static-home > .container');
    
    $.each(separator_predecessors, function(index, $elements) {
        var numRows = $elements.length / 2;
        $containers.eq(index).append('<div class="row"></div>'.repeat(numRows));
        
        var $rows = $containers.eq(index).children('.row');
        
        $elements.each(function(index, element) {
            var $row = $rows.eq(Math.floor(index / 2));
            $row.append(element);
        });
    });
});
{'fraction_non_alphanumeric': 0.17275574112734865, 'fraction_numerical': 0.0020876826722338203, 'mean_word_length': 2.834, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 15, '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': '3547012', 'n_tokens_mistral': 583, 'n_tokens_neox': 564, 'n_words': 101}