<commit_before>/*
   Copyright (c) 2009-2015, <NAME>, <NAME>,
   The University of Texas at Austin, Stanford University, and the
   Georgia Insitute of Technology.
   All rights reserved.
 
   This file is part of Elemental and is under the BSD 2-Clause License, 
   which can be found in the LICENSE file in the root directory, or at 
   http://opensource.org/licenses/BSD-2-Clause
*/
#include "El.hpp"
using namespace El;

template<typename F>
void MakeFrontsUniform( ldl::Front<F>& front )
{
    ldl::ChangeFrontType( front, SYMM_2D );
    MakeUniform( front.L );
    for( ldl::Front<F>* child : front.children )
        MakeFrontsUniform( *child );
}

template<typename F>
void MakeFrontsUniform( ldl::DistFront<F>& front )
{
    ldl::ChangeFrontType( front, SYMM_2D );
    MakeUniform( front.L2D );
    if( front.child != nullptr )
        MakeFrontsUniform( *front.child );
    else
        MakeFrontsUniform( *front.duplicate );
}<commit_msg>Updating test driver to reflect extension of ldl::Front<commit_after>/*
   Copyright (c) 2009-2015, <NAME>, <NAME>,
   The University of Texas at Austin, Stanford University, and the
   Georgia Insitute of Technology.
   All rights reserved.
 
   This file is part of Elemental and is under the BSD 2-Clause License, 
   which can be found in the LICENSE file in the root directory, or at 
   http://opensource.org/licenses/BSD-2-Clause
*/
#include "El.hpp"
using namespace El;

template<typename F>
void MakeFrontsUniform( ldl::Front<F>& front )
{
    ldl::ChangeFrontType( front, SYMM_2D );
    MakeUniform( front.LDense );
    for( ldl::Front<F>* child : front.children )
        MakeFrontsUniform( *child );
}

template<typename F>
void MakeFrontsUniform( ldl::DistFront<F>& front )
{
    ldl::ChangeFrontType( front, SYMM_2D );
    MakeUniform( front.L2D );
    if( front.child != nullptr )
        MakeFrontsUniform( *front.child );
    else
        MakeFrontsUniform( *front.duplicate );
}
{'fraction_non_alphanumeric': 0.11105398457583547, 'fraction_numerical': 0.013367609254498715, 'mean_word_length': 3.589622641509434, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '2751962', 'n_tokens_mistral': 629, 'n_tokens_neox': 609, 'n_words': 191}