<commit_before><?php

namespace Coyote\Http\Controllers\Wiki;

use Coyote\Http\Factories\FlagFactory;
use Coyote\Http\Forms\Wiki\CommentForm;
use Coyote\Repositories\Criteria\Wiki\DirectAncestor;
use Coyote\Repositories\Criteria\Wiki\OnlyWithChildren;
use Illuminate\Http\Request;

class ShowController extends BaseController
{
    use FlagFactory;

    /**
     * @param Request $request
     * @return \Illuminate\View\View
     */
    public function index(Request $request)
    {
        /** @var \Coyote\Wiki $wiki */
        $wiki = $request->wiki;

        $author = $wiki->logs()->first()->user;
        $wiki->text = $this->getParser()->parse((string) $wiki->text);

        $parser = app('parser.comment');
        $wiki->load('comments.user');
<commit_msg>sortowanie po ID aby uzyskac pierwsza wersje<commit_after><?php

namespace Coyote\Http\Controllers\Wiki;

use Coyote\Http\Factories\FlagFactory;
use Coyote\Http\Forms\Wiki\CommentForm;
use Coyote\Repositories\Criteria\Wiki\DirectAncestor;
use Coyote\Repositories\Criteria\Wiki\OnlyWithChildren;
use Illuminate\Http\Request;

class ShowController extends BaseController
{
    use FlagFactory;

    /**
     * @param Request $request
     * @return \Illuminate\View\View
     */
    public function index(Request $request)
    {
        /** @var \Coyote\Wiki $wiki */
        $wiki = $request->wiki;

        $author = $wiki->logs()->orderBy('id')->first()->user;
        $wiki->text = $this->getParser()->parse((string) $wiki->text);

        $parser = app('parser.comment');
        $wiki->load('comments.user');

{'fraction_non_alphanumeric': 0.14936708860759493, 'fraction_numerical': 0.0, 'mean_word_length': 3.3434065934065935, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 22, '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': '3510379', 'n_tokens_mistral': 508, 'n_tokens_neox': 504, 'n_words': 88}