<commit_before>package MediaWords::Util::Paths;
use Modern::Perl "2012";
use MediaWords::CommonLibs;

use strict;

use File::Spec;
use File::Basename;


   #According to a question on SO, this is a the safest way to get the directory of the current script. 
    #See http://stackoverflow.com/questions/84932/how-do-i-get-the-full-path-to-a-perl-script-that-is-executing
my $_dirname = dirname ( __FILE__ );
my $_dirname_full = File::Spec->rel2abs( $_dirname );

sub mc_root_path
{
    my $root_path = "$_dirname_full/../../../";
    
    #say STDERR "Root path is $root_path";
    
    return $root_path;
}

sub mc_script_path
{
    my $root_path = mc_root_path();

    my $script_path = "$root_path/script";

    #say STDERR "script path is $script_path";

    return $script_path;
}
1;<commit_msg>Add extra space.<commit_after>package MediaWords::Util::Paths;
use Modern::Perl "2012";
use MediaWords::CommonLibs;

use strict;

use File::Spec;
use File::Basename;


   #According to a question on SO, this is a the safest way to get the directory of the current script. 
    #See http://stackoverflow.com/questions/84932/how-do-i-get-the-full-path-to-a-perl-script-that-is-executing
my $_dirname = dirname ( __FILE__ );
my $_dirname_full = File::Spec->rel2abs( $_dirname );

sub mc_root_path
{
    my $root_path = "$_dirname_full/../../../";
    
    #say STDERR "Root path is $root_path";
    
    return $root_path;
}

sub mc_script_path
{
    my $root_path = mc_root_path();

    my $script_path = "$root_path/script";

    #say STDERR "script path is $script_path";

    return $script_path;
}

1;
{'fraction_non_alphanumeric': 0.13670411985018727, 'fraction_numerical': 0.01373283395755306, 'mean_word_length': 3.6195965417867435, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2824428', 'n_tokens_mistral': 600, 'n_tokens_neox': 566, 'n_words': 147}