<commit_before><?php

namespace Ss\Etc;


class Comm {


    private $kb = 1024, $mb = 1048576, $gb = 1073741824;

    // to kb mb gb
    static function toKB($value){
        return $value/1024;
    }

    static function toMB($value){
        return $value/1024*1024;
    }

    static function toGB($value){
        return $value/1024*1024*1024;
    }


    //Gravatar
    static function get_gravatar( $email, $s = 80, $d = 'mm', $r = 'g', $img = false, $atts = array() ) {
        //$url = 'http://gravatar.duoshuo.com/avatar/';
        $url = 'https://secure.gravatar.com/avatar/';
        $url .= md5( strtolower( trim( $email ) ) );
        $url .= "?s=$s&d=$d&r=$r";
        if ( $img ) {
            $url = '<img src="' . $url . '"';
            foreach ( $atts as $key => $val )
                $url .= ' ' . $key . '="' . $val . '"';
            $url .= ' />';
        }
        return $url;
    }<commit_msg>bug fix<commit_after><?php

namespace Ss\Etc;


class Comm {


    private $kb = 1024, $mb = 1048576, $gb = 1073741824;

    // to kb mb gb
    static function toKB($value){
        return $value/1024;
    }

    static function toMB($value){
        return $value/(1024*1024);
    }

    static function toGB($value){
        return $value/(1024*1024*1024);
    }


    //Gravatar
    static function get_gravatar( $email, $s = 80, $d = 'mm', $r = 'g', $img = false, $atts = array() ) {
        //$url = 'http://gravatar.duoshuo.com/avatar/';
        $url = 'https://secure.gravatar.com/avatar/';
        $url .= md5( strtolower( trim( $email ) ) );
        $url .= "?s=$s&d=$d&r=$r";
        if ( $img ) {
            $url = '<img src="' . $url . '"';
            foreach ( $atts as $key => $val )
                $url .= ' ' . $key . '="' . $val . '"';
            $url .= ' />';
        }
        return $url;
    }
{'fraction_non_alphanumeric': 0.19891304347826086, 'fraction_numerical': 0.05217391304347826, 'mean_word_length': 1.7153392330383481, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '2181750', 'n_tokens_mistral': 742, 'n_tokens_neox': 642, 'n_words': 149}