<commit_before><?php
/**
 * QiniuHelper.php
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @author    jack <<EMAIL>>
 * @copyright 2007-16/3/23 WIZ TECHNOLOGY
 * @link      http://wizmacau.com
 * @link      http://jacklam.it
 * @link      https://github.com/lamjack
 * @version
 */
namespace Wiz\QiniuBundle\Helper;

/**
 * Class QiniuHelper
 * @package Wiz\QiniuBundle\Helper
 */
class QiniuHelper
{
    /**
     * @var string
     */
    private $domian;

    /**
     * QiniuHelper constructor.
     *
     * @param string $domian
     */
    public function __construct(string $domian)
    {
        $this->domian = $domian;
    }

    /**
     * @param string $key
     *
     * @return string
     */
    public function getFileUrl(string $key)
    {
        return sprintf('%s%s', $this->domian, $key);
    }
}<commit_msg>allow domain set null<commit_after><?php
/**
 * QiniuHelper.php
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @author    jack <<EMAIL>>
 * @copyright 2007-16/3/23 WIZ TECHNOLOGY
 * @link      http://wizmacau.com
 * @link      http://jacklam.it
 * @link      https://github.com/lamjack
 * @version
 */
namespace Wiz\QiniuBundle\Helper;

/**
 * Class QiniuHelper
 * @package Wiz\QiniuBundle\Helper
 */
class QiniuHelper
{
    /**
     * @var string
     */
    private $domian;

    /**
     * QiniuHelper constructor.
     *
     * @param string $domian
     */
    public function __construct(string $domian = '')
    {
        $this->domian = $domian;
    }

    /**
     * @param string $key
     *
     * @return string
     */
    public function getFileUrl(string $key)
    {
        return sprintf('%s%s', $this->domian, $key);
    }
}
{'fraction_non_alphanumeric': 0.1368307193077339, 'fraction_numerical': 0.009734991887506761, 'mean_word_length': 2.257042253521127, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, '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': '3672402', 'n_tokens_mistral': 625, 'n_tokens_neox': 611, 'n_words': 145}