<commit_before><?php

namespace App\Http\Controllers;

use App\Models\Guild;
use App\Utils\SettingsRepository;
use Illuminate\Http\Request;

class AdminApiController extends Controller
{

    public function getGuilds()
    {
        return Guild::get();
    }

    public function setData(Request $request) {
        $guild = $request->input('guild');
        $key = $request->input('key');
        $value = $request->input('value');
        SettingsRepository::set($guild, $key, $value);
        return Guild::get();
    }
}<commit_msg>Fix admin panel error<commit_after><?php

namespace App\Http\Controllers;

use App\Models\Guild;
use App\Utils\SettingsRepository;
use Illuminate\Http\Request;

class AdminApiController extends Controller
{

    public function getGuilds()
    {
        return Guild::get()->load('settings');
    }

    public function setData(Request $request) {
        $guild = $request->input('guild');
        $key = $request->input('key');
        $value = $request->input('value');
        SettingsRepository::set($guild, $key, $value);
        return Guild::get();
    }
}
{'fraction_non_alphanumeric': 0.147005444646098, 'fraction_numerical': 0.0, 'mean_word_length': 3.3254901960784315, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, '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': '1448679', 'n_tokens_mistral': 328, 'n_tokens_neox': 326, 'n_words': 69}