<commit_before><?php

namespace BoomCMS\Support;

use Embera\Embera;
use Illuminate\Support\Facades\Request;
use Illuminate\Support\Str as BaseStr;
use Rych\ByteSize;

abstract class Str extends BaseStr
{
    /**
     * Turn a number of bytes into a human friendly filesize.
     *
     * @param int $bytes
     *
     * @return string
     */
    public static function filesize($bytes)
    {
        $precision = (($bytes % 1024) === 0 || $bytes <= 1024) ? 0 : 1;

        $formatter = new ByteSize\Formatter\Binary();
        $formatter->setPrecision($precision);

        return $formatter->format($bytes);<commit_msg>Applied fixes from StyleCI<commit_after><?php

namespace BoomCMS\Support;

use Illuminate\Support\Facades\Request;
use Illuminate\Support\Str as BaseStr;
use Rych\ByteSize;

abstract class Str extends BaseStr
{
    /**
     * Turn a number of bytes into a human friendly filesize.
     *
     * @param int $bytes
     *
     * @return string
     */
    public static function filesize($bytes)
    {
        $precision = (($bytes % 1024) === 0 || $bytes <= 1024) ? 0 : 1;

        $formatter = new ByteSize\Formatter\Binary();
        $formatter->setPrecision($precision);

        return $formatter->format($bytes);
{'fraction_non_alphanumeric': 0.12277867528271405, 'fraction_numerical': 0.017770597738287562, 'mean_word_length': 2.8359133126934983, 'pattern_counts': {'":': 0, '<': 7, '<?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': '4411457', 'n_tokens_mistral': 399, 'n_tokens_neox': 366, 'n_words': 102}