<commit_before>@php
    echo "<?php".PHP_EOL;
@endphp

namespace {{ config('laravel_generator.namespace.controller') }};

use {{ config('laravel_generator.namespace.request') }}\CreateUserRequest;
use {{ config('laravel_generator.namespace.request') }}\UpdateUserRequest;
use {{ config('laravel_generator.namespace.repository') }}\UserRepository;
use {{ config('laravel_generator.namespace.controller') }}\AppBaseController;
use Illuminate\Http\Request;
use Flash;
use Response;
use Hash;

class UserController extends AppBaseController
{
    /** @var $userRepository UserRepository */
    private $userRepository;

    public function __construct(UserRepository $userRepo)
    {
        $this->userRepository = $userRepo;
    }

    /**
     * Display a listing of the User.
     *
     * @param Request $request
     *
     * @return Response
     */
    public function index(Request $request)
    {
        $users = $this->userRepository->paginate(10)

        return view('users.index')->with('users', $users);
    }

    /**
     * Show the form for creating a new User.
     *
     * @return Response
     */
    public function create()
    {
        return view('users.create');
    }
<commit_msg>Vishal/fixes (#1033)<commit_after>@php
    echo "<?php".PHP_EOL;
@endphp

namespace {{ config('laravel_generator.namespace.controller') }};

use {{ config('laravel_generator.namespace.request') }}\CreateUserRequest;
use {{ config('laravel_generator.namespace.request') }}\UpdateUserRequest;
use {{ config('laravel_generator.namespace.repository') }}\UserRepository;
use {{ config('laravel_generator.namespace.controller') }}\AppBaseController;
use Illuminate\Http\Request;
use Flash;
use Response;
use Hash;

class UserController extends AppBaseController
{
    /** @var $userRepository UserRepository */
    private $userRepository;

    public function __construct(UserRepository $userRepo)
    {
        $this->userRepository = $userRepo;
    }

    /**
     * Display a listing of the User.
     *
     * @param Request $request
     *
     * @return Response
     */
    public function index(Request $request)
    {
        $users = $this->userRepository->paginate(10);

        return view('users.index')->with('users', $users);
    }

    /**
     * Show the form for creating a new User.
     *
     * @return Response
     */
    public function create()
    {
        return view('users.create');
    }

{'fraction_non_alphanumeric': 0.13347107438016528, 'fraction_numerical': 0.003305785123966942, 'mean_word_length': 3.2849557522123893, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '6193322', 'n_tokens_mistral': 693, 'n_tokens_neox': 688, 'n_words': 153}