<commit_before><?php

namespace Controllers;

use Models\Post;
use Models\User;
use I18n\I18n;

/**
 * Home Controller
 *
 * @author <NAME>
 */
class HomeController extends BaseController {

	/**
	 * author.php
	 */
	public function getAuthor() {
		$author = get_queried_object();
		$user = User::find($author->ID);
		if (!$user) {
			return $this->getError();
		}
		$args = [
			'user' => $user,
			'postWith' => [
				'author' => false
			],
			'sidebar' => [
				'content' => [
					'searcher' => false,
					'pages' => [
						'withTotal' => false,
						'content' => 5
					]
				],
				'position' => 'right'
			]
		];
		return $this->renderPage('author', $args);
	}

	/**
	 * category.php
	 */
	public function getCategory() {
		$cat = get_queried_object();
		$args = [
			'thingType' => I18n::transu('category'),
			'thingToSearch' => $cat->name,
			'posts' => self::getPostsByCategory($cat->term_id)
		];
		return $this->renderPage('search', $args);
	}<commit_msg>put on author view in sidebar all withTotal: false<commit_after><?php

namespace Controllers;

use Models\Post;
use Models\User;
use I18n\I18n;

/**
 * Home Controller
 *
 * @author <NAME>
 */
class HomeController extends BaseController {

	/**
	 * author.php
	 */
	public function getAuthor() {
		$author = get_queried_object();
		$user = User::find($author->ID);
		if (!$user) {
			return $this->getError();
		}
		$args = [
			'user' => $user,
			'postWith' => [
				'author' => false
			],
			'sidebar' => [
				'content' => [
					'searcher' => false,
					'pages' => [
						'withTotal' => false
					],
					'categories' => [
						'withTotal' => false
					],
					'tags' => [
						'withTotal' => false
					]
				],
				'position' => 'right'
			]
		];
		return $this->renderPage('author', $args);
	}

	/**
	 * category.php
	 */
	public function getCategory() {
		$cat = get_queried_object();
		$args = [
			'thingType' => I18n::transu('category'),
			'thingToSearch' => $cat->name,
			'posts' => self::getPostsByCategory($cat->term_id)
		];
		return $this->renderPage('search', $args);
	}
{'fraction_non_alphanumeric': 0.19623006283228614, 'fraction_numerical': 0.006283228612856452, 'mean_word_length': 2.8764044943820224, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 46, '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': '4719805', 'n_tokens_mistral': 906, 'n_tokens_neox': 739, 'n_words': 142}