<commit_before><?php

/**
 * Get path from root ..
 */
if(! function_exists('get_path')) {

    function get_path($directory = null) {
        $currentPath = realpath(dirname(__FILE__));

        $rootPath = join(DIRECTORY_SEPARATOR, array_slice(explode(DIRECTORY_SEPARATOR, $currentPath), 0, -3));

        if ($directory)
            $rootPath .= DIRECTORY_SEPARATOR . $directory;

        return $rootPath;
    }
}

/**
 *
 * Get public path ..
 *
 */
if(! function_exists('publicPath')) {

    function publicPath($directory = null) {
        return get_path(
            'public'. DIRECTORY_SEPARATOR . $directory
        );
    }
}

/**
 * Get config path ..
 *
 */
if(! function_exists('configPath')) {

    function configPath($directory = null) {
        return get_path(
            'config'. DIRECTORY_SEPARATOR . $directory
        );
    }
}<commit_msg>rename helpers.<commit_after><?php

namespace Parfumix\Imageonfly;

/**
 * Get root path
 *
 * @param null $directory
 * @return string
 */
function get_path($directory = null) {
    $currentPath = realpath(dirname(__FILE__));

    $rootPath = join(DIRECTORY_SEPARATOR, array_slice(explode(DIRECTORY_SEPARATOR, $currentPath), 0, -3));

    if ($directory)
        $rootPath .= DIRECTORY_SEPARATOR . $directory;

    return $rootPath;
}

/**
 *
 * Get public path ..
 *
 */
function publicPath($directory = null) {
    return get_path(
        'public' . DIRECTORY_SEPARATOR . $directory
    );
}

/**
 * Get config path ..
 * @param null $directory
 * @return string
 */
function configPath($directory = null) {
    return get_path(
        'config' . DIRECTORY_SEPARATOR . $directory
    );
}
{'fraction_non_alphanumeric': 0.14225437010247136, 'fraction_numerical': 0.0024110910186859553, 'mean_word_length': 2.7899543378995433, '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': '1814242', 'n_tokens_mistral': 532, 'n_tokens_neox': 516, 'n_words': 108}