<commit_before><?php

include_once('pinta-config.php');


function truncateName( $placename ){

    $shortname = "";
    
    $parts = preg_split( "/[\s]+/", $placename );
    
    print_r( $parts );
    
    $i = 0;
    foreach ($parts as $part){
        $shortname .= $part . " ";
        $i += strlen( $part ) + 1;
        
        if ( $i > 20 ){
            break;
        }
    }
    
    if ( strlen( $shortname ) > 27){
        $shortname = substr( $shortname, 0, 25 )."...";
    }
    <commit_msg>get rid of prints<commit_after><?php

include_once('pinta-config.php');


function truncateName( $placename ){

    $shortname = "";
    
    $parts = preg_split( "/[\s]+/", $placename );
    
    $i = 0;
    foreach ($parts as $part){
        $shortname .= $part . " ";
        $i += strlen( $part ) + 1;
        
        if ( $i > 20 ){
            break;
        }
    }
    
    if ( strlen( $shortname ) > 27){
        $shortname = substr( $shortname, 0, 25 )."...";
    }
    
{'fraction_non_alphanumeric': 0.1862348178137652, 'fraction_numerical': 0.018218623481781375, 'mean_word_length': 1.6026315789473684, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '3971835', 'n_tokens_mistral': 363, 'n_tokens_neox': 342, 'n_words': 75}