<commit_before><?php

if ( defined( 'WP_DEBUG' ) && WP_DEBUG && isset( $_SERVER['REQUEST_URI'] ) ) {

    $matches = array();

    if(strpos( $_SERVER['REQUEST_URI'], '/wp-content/uploads/' ) !== false){
        preg_match( '|wp-content/uploads/[^?]*|', $_SERVER['REQUEST_URI'], $matches );
    }

    if(strpos( $_SERVER['REQUEST_URI'], '/sites/default/files/' ) !== false){
        preg_match( '|sites/default/files/[^?]*|', $_SERVER['REQUEST_URI'], $matches );
    }

    if($matches){

        $filename = $matches[0];

        $path = dirname( $filename );

        if ( ! is_dir( ABSPATH . '/' . $path ) ) {
            mkdir( ABSPATH . '/' . $path, 0777, true );
        }

        $file_contents = file_get_contents( 'http://redehumanizasus.net/' . $filename );

        if ( $file_contents ) {
            file_put_contents( ABSPATH . '/' . $filename, $file_contents );
        }

        echo $file_contents;
        exit();
    }

}<commit_msg>script de pegar imagens do ar salva na pasta public<commit_after><?php

if ( defined( 'WP_DEBUG' ) && WP_DEBUG && isset( $_SERVER['REQUEST_URI'] ) ) {

    $matches = array();

    if(strpos( $_SERVER['REQUEST_URI'], '/wp-content/uploads/' ) !== false){
        preg_match( '/wp-content\/uploads\/[^?]*/', $_SERVER['REQUEST_URI'], $matches );
    }

    if(strpos( $_SERVER['REQUEST_URI'], '/sites/default/files/' ) !== false){
        preg_match( '/sites\/default\/files\/[^?]*/', $_SERVER['REQUEST_URI'], $matches );
    }

    if($matches){

        $filename = $matches[0];

        $path = dirname( $filename );
        $publicpath = dirname(ABSPATH);

        if ( ! is_dir( $publicpath . '/' . $path ) ) {
            mkdir( $publicpath . '/' . $path, 0777, true );
        }

        $file_contents = file_get_contents( 'http://redehumanizasus.net/' . $filename );

        if ( $file_contents ) {
            file_put_contents( $publicpath . '/' . $filename, $file_contents );
        }

        echo $file_contents;
        exit();
    }

}
{'fraction_non_alphanumeric': 0.19900249376558604, 'fraction_numerical': 0.004987531172069825, 'mean_word_length': 2.434931506849315, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '4619070', 'n_tokens_mistral': 689, 'n_tokens_neox': 652, 'n_words': 117}