<commit_before><?php
namespace app\components;

use Yii;
use app\models\Category;
use yii\helpers\ArrayHelper;

class GlobalHelper
{
    public static function avatarSrc($user){
        $avatar = $user['profile']['avatar'];
        if($_SERVER['REMOTE_ADDR'] == '172.16.58.3')
            var_dump($avatar);
        if(is_null($avatar)){
            $avatarPath = '/bw15/images/';
            $avatar = ($user['profile']['sex'] == 'm') ? 'noavatar_male.png' : 'noavatar_female.png';
        } else {
            $avatarPath = '/uploads/fotos/';
        }
        return $avatarPath.$avatar;
    }

    /**<commit_msg>comments<commit_after><?php
namespace app\components;

use Yii;
use app\models\Category;
use yii\helpers\ArrayHelper;

class GlobalHelper
{
    public static function avatarSrc($user){
        $avatar = $user['profile']['avatar'];
        echo $_SERVER['REMOTE_ADDR'];
        if($_SERVER['REMOTE_ADDR'] == '172.16.58.3')
            var_dump($avatar);
        if(is_null($avatar)){
            $avatarPath = '/bw15/images/';
            $avatar = ($user['profile']['sex'] == 'm') ? 'noavatar_male.png' : 'noavatar_female.png';
        } else {
            $avatarPath = '/uploads/fotos/';
        }
        return $avatarPath.$avatar;
    }

    /**
{'fraction_non_alphanumeric': 0.17521704814522493, 'fraction_numerical': 0.01578531965272297, 'mean_word_length': 2.512465373961219, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '3501712', 'n_tokens_mistral': 440, 'n_tokens_neox': 419, 'n_words': 68}