<commit_before><?php

namespace TypiCMS\Modules\Objects\Http\Controllers;

use TypiCMS\Modules\Core\Http\Controllers\BaseAdminController;
use TypiCMS\Modules\Objects\Http\Requests\FormRequest;
use TypiCMS\Modules\Objects\Models\Object;
use TypiCMS\Modules\Objects\Repositories\EloquentObject;

class AdminController extends BaseAdminController
{
    public function __construct(EloquentObject $object)
    {
        parent::__construct($object);
    }

    /**
     * List models.
     *
     * @return \Illuminate\View\View
     */
    public function index()
    {
        $models = $this->repository->findAll();
        app('JavaScript')->put('models', $models);

        return view('objects::admin.index');
    }

    /**
     * Create form for a new resource.
     *
     * @return \Illuminate\View\View
     */
    public function create()
    {
        $model = $this->repository->createModel();

        return view('objects::admin.create')
            ->with(compact('model'));
    }

    /**
     * Edit form for the specified resource.
     *
     * @param \TypiCMS\Modules\Objects\Models\Object $object
     *
     * @return \Illuminate\View\View
     */
    public function edit(Object $object)
    {
        return view('objects::admin.edit')
            ->with(['model' => $object]);
    }
<commit_msg>findAllTranslated<commit_after><?php

namespace TypiCMS\Modules\Objects\Http\Controllers;

use TypiCMS\Modules\Core\Http\Controllers\BaseAdminController;
use TypiCMS\Modules\Objects\Http\Requests\FormRequest;
use TypiCMS\Modules\Objects\Models\Object;
use TypiCMS\Modules\Objects\Repositories\EloquentObject;

class AdminController extends BaseAdminController
{
    public function __construct(EloquentObject $object)
    {
        parent::__construct($object);
    }

    /**
     * List models.
     *
     * @return \Illuminate\View\View
     */
    public function index()
    {
        $models = $this->repository->findAllTranslated();
        app('JavaScript')->put('models', $models);

        return view('objects::admin.index');
    }

    /**
     * Create form for a new resource.
     *
     * @return \Illuminate\View\View
     */
    public function create()
    {
        $model = $this->repository->createModel();

        return view('objects::admin.create')
            ->with(compact('model'));
    }

    /**
     * Edit form for the specified resource.
     *
     * @param \TypiCMS\Modules\Objects\Models\Object $object
     *
     * @return \Illuminate\View\View
     */
    public function edit(Object $object)
    {
        return view('objects::admin.edit')
            ->with(['model' => $object]);
    }

{'fraction_non_alphanumeric': 0.13660377358490566, 'fraction_numerical': 0.0, 'mean_word_length': 2.5775978407557356, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, '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': '513781', 'n_tokens_mistral': 790, 'n_tokens_neox': 793, 'n_words': 136}