<commit_before><?php

// Copyright (c) ppy Pty Ltd <<EMAIL>>. Licensed under the GNU Affero General Public License v3.0.
// See the LICENCE file in the repository root for full licence text.

namespace App\Http\Controllers;

use App\Models\Group;
use Auth;

class GroupsController extends Controller
{
    public function show($id)
    {
        $group = Group::visible()->findOrFail($id);
        $currentMode = studly_case(default_mode());

        $users = $group->users()
            ->with('statistics'.$currentMode)
            ->eagerloadForListing()
            ->default()
            ->orderBy('username', 'asc')
            ->get();

        $groupJson = $group->only('group_name', 'group_desc');
        $usersJson = json_collection($users, 'UserCompact', [
            'cover',
            'country',
            'current_mode_rank',
            'group_badge',
            'support_level',
        ]);<commit_msg>Remove unused import<commit_after><?php

// Copyright (c) ppy Pty Ltd <<EMAIL>>. Licensed under the GNU Affero General Public License v3.0.
// See the LICENCE file in the repository root for full licence text.

namespace App\Http\Controllers;

use App\Models\Group;

class GroupsController extends Controller
{
    public function show($id)
    {
        $group = Group::visible()->findOrFail($id);
        $currentMode = studly_case(default_mode());

        $users = $group->users()
            ->with('statistics'.$currentMode)
            ->eagerloadForListing()
            ->default()
            ->orderBy('username', 'asc')
            ->get();

        $groupJson = $group->only('group_name', 'group_desc');
        $usersJson = json_collection($users, 'UserCompact', [
            'cover',
            'country',
            'current_mode_rank',
            'group_badge',
            'support_level',
        ]);
{'fraction_non_alphanumeric': 0.1368307193077339, 'fraction_numerical': 0.002163331530557058, 'mean_word_length': 2.3333333333333335, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 23, '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': '1071014', 'n_tokens_mistral': 521, 'n_tokens_neox': 520, 'n_words': 128}