<commit_before><?php
/**
 * This file belongs to the AnoynmFramework
 *
 * @author vahitserifsaglam <<EMAIL>>
 * @see http://gemframework.com
 *
 * Thanks for using
 */

use Anonym\Support\Arr;
use Anonym\Facades\View;

if (!function_exists('value')) {
    /**
     * Return the default value of the given value.
     *
     * @param  mixed $value
     * @return mixed
     */
    function value($value)
    {
        return $value instanceof Closure ? $value() : $value;
    }
}

if (!function_exists('data_get')) {
    /**
     * return the value
     *
     * @param array $target
     * @param string|array $keys
     * @param callable|null $default
     */
    function data_get($target = [], $keys = '', $default = null)
    {
        if (is_object($target)) {
            $target = (array)$target;
        }

        if (is_array($keys)) {
            $keys = join(',', $keys);
        }

        Arr::get($target, $keys, $default);
    }
}


if(!function_exists('first'))
{


    /**
     * get a first value in an array
     *
     * @param mixed $target
     * @return mixed
     */
    function first($target)
    {
        // target must be an array
        if(!is_array($target))
        {
            $target = (array) $target;
        }
        // target is required to have a value.
        if (count($target)) {
            return array_values($target)[0];
        }else{
            return false;
        }
    }
}

if(!function_exists('view'))
{
    function view($file = '', $parameters = [])
    {
        return View::make($file, $parameters);
    }
}<commit_msg>made some updates<commit_after><?php
/**
 * This file belongs to the AnoynmFramework
 *
 * @author vahitserifsaglam <<EMAIL>>
 * @see http://gemframework.com
 *
 * Thanks for using
 */

use Anonym\Support\Arr;
use Anonym\Facades\View;

if (!function_exists('value')) {
    /**
     * Return the default value of the given value.
     *
     * @param  mixed $value
     * @return mixed
     */
    function value($value)
    {
        return $value instanceof Closure ? $value() : $value;
    }
}

if (!function_exists('data_get')) {
    /**
     * return the value
     *
     * @param array $target
     * @param string|array $keys
     * @param callable|null $default
     */
    function data_get($target = [], $keys = '', $default = null)
    {
        if (is_object($target)) {
            $target = (array)$target;
        }

        if (is_array($keys)) {
            $keys = join(',', $keys);
        }

        Arr::get($target, $keys, $default);
    }
}


if(!function_exists('first'))
{


    /**
     * get a first value in an array
     *
     * @param mixed $target
     * @return mixed
     */
    function first($target)
    {
        // target must be an array
        if(!is_array($target))
        {
            $target = (array) $target;
        }
        // target is required to have a value.
        if (count($target)) {
            return array_values($target)[0];
        }else{
            return false;
        }
    }
}

/**
 * | **********************
 * |
 * | checks if there is the same function
 * |
 * | **************************
 */
if(!function_exists('view'))
{

    /**
     * create and return a new view object
     *
     * @param string $file the file name
     * @param array $parameters the paramaters to be sent
     * @return mixed
     */
    function view($file = '', $parameters = [])
    {
        return View::make($file, $parameters);
    }
}
{'fraction_non_alphanumeric': 0.16087331226659007, 'fraction_numerical': 0.0005745475438092502, 'mean_word_length': 1.9383966244725739, 'pattern_counts': {'":': 0, '<': 9, '<?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': '2062808', 'n_tokens_mistral': 1075, 'n_tokens_neox': 1061, 'n_words': 268}