<commit_before><?php
namespace bmtmgr;

require_once dirname(__DIR__) . '/src/common.php';

if (isset($_GET['autocomplete']) && $_GET['autocomplete'] == 'json') {
	render_json(array_map(function($c) {
		return [
			'id' => $c->id,
			'name' => $c->name,
			'text' => '(' . $c->id . ') ' . $c->name,
		];
	}, user\User::get_all()));
	exit();
}

$u = user\check_current();
$u->require_perm('admin');

render('club_list', [
	'user' => $u,
	'breadcrumbs' => [
		['name' => 'Clubs', 'path' => 'club/']
	],
	'clubs' => user\User\get_all(),
]);<commit_msg>Correct method call for model class<commit_after><?php
namespace bmtmgr;

require_once dirname(__DIR__) . '/src/common.php';

if (isset($_GET['autocomplete']) && $_GET['autocomplete'] == 'json') {
	render_json(array_map(function($c) {
		return [
			'id' => $c->id,
			'name' => $c->name,
			'text' => '(' . $c->id . ') ' . $c->name,
		];
	}, user\User::get_all()));
	exit();
}

$u = user\check_current();
$u->require_perm('admin');

render('club_list', [
	'user' => $u,
	'breadcrumbs' => [
		['name' => 'Clubs', 'path' => 'club/']
	],
	'clubs' => user\User::get_all(),
]);
{'fraction_non_alphanumeric': 0.2774308652988403, 'fraction_numerical': 0.0, 'mean_word_length': 4.267605633802817, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 29, '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': '6168243', 'n_tokens_mistral': 481, 'n_tokens_neox': 461, 'n_words': 73}