<commit_before><?php namespace Stevemo\Cpanel\Controllers;

use View, Config, Redirect, Lang, Input;
use Stevemo\Cpanel\Group\Repo\CpanelGroupInterface;
use Stevemo\Cpanel\Partner\Repo\Partner;
use Stevemo\Cpanel\Permission\Repo\PermissionInterface;
use Stevemo\Cpanel\User\Form\UserFormInterface;
use Stevemo\Cpanel\User\Repo\CpanelUserInterface;
use Stevemo\Cpanel\User\Repo\UserNotFoundException;

class UsersController extends BaseController {

    /**
     * @var \Stevemo\Cpanel\User\Repo\CpanelUserInterface
     */
    protected $users;

    /**
     * @var \Stevemo\Cpanel\Permission\Form\PermissionFormInterface
     */
    protected $permissions;

    /**
     * @var \Stevemo\Cpanel\Group\Repo\CpanelGroupInterface
     */
    protected $groups;

    /**
     * @var \Stevemo\Cpanel\User\Form\UserFormInterface
     */
    protected $userForm;

    /**
     * @param \Stevemo\Cpanel\User\Repo\CpanelUserInterface       $users
     * @param \Stevemo\Cpanel\Permission\Repo\PermissionInterface $permissions
     * @param \Stevemo\Cpanel\Group\Repo\CpanelGroupInterface     $groups
     * @param \Stevemo\Cpanel\User\Form\UserFormInterface         $userForm
     */
    public function __construct(
        CpanelUserInterface $users,
        PermissionInterface $permissions,
        CpanelGroupInterface $groups,
        UserFormInterface $userForm
    )
    {
        $this->users = $users;
        $this->permissions = $permissions;
        $this->groups = $groups;
        $this->userForm = $userForm;
    }

    /**
     * Show all the users
     *
     * @author <NAME>
     * @link   http://stevemo.ca
     *
     * @return \Illuminate\View\View
     */
    public function index()
    {
        $users = $this->users->findAll()->paginate();
        $partners = Partner::all();
        return View::make(Config::get('cpanel::views.users_index'))<commit_msg>Added partners to user controller<commit_after><?php namespace Stevemo\Cpanel\Controllers;

use View, Config, Redirect, Lang, Input;
use Stevemo\Cpanel\Group\Repo\CpanelGroupInterface;
use Stevemo\Cpanel\Partner\Repo\Partner;
use Stevemo\Cpanel\Permission\Repo\PermissionInterface;
use Stevemo\Cpanel\User\Form\UserFormInterface;
use Stevemo\Cpanel\User\Repo\CpanelUserInterface;
use Stevemo\Cpanel\User\Repo\UserNotFoundException;

class UsersController extends BaseController {

    /**
     * @var \Stevemo\Cpanel\User\Repo\CpanelUserInterface
     */
    protected $users;

    /**
     * @var \Stevemo\Cpanel\Permission\Form\PermissionFormInterface
     */
    protected $permissions;

    /**
     * @var \Stevemo\Cpanel\Group\Repo\CpanelGroupInterface
     */
    protected $groups;

    /**
     * @var \Stevemo\Cpanel\User\Form\UserFormInterface
     */
    protected $userForm;

    /**
     * @param \Stevemo\Cpanel\User\Repo\CpanelUserInterface       $users
     * @param \Stevemo\Cpanel\Permission\Repo\PermissionInterface $permissions
     * @param \Stevemo\Cpanel\Group\Repo\CpanelGroupInterface     $groups
     * @param \Stevemo\Cpanel\User\Form\UserFormInterface         $userForm
     */
    public function __construct(
        CpanelUserInterface $users,
        PermissionInterface $permissions,
        CpanelGroupInterface $groups,
        UserFormInterface $userForm
    )
    {
        $this->users = $users;
        $this->permissions = $permissions;
        $this->groups = $groups;
        $this->userForm = $userForm;
    }

    /**
     * Show all the users
     *
     * @author <NAME>
     * @link   http://stevemo.ca
     *
     * @return \Illuminate\View\View
     */
    public function index()
    {
        $users = $this->users->findAll()->paginate();
        $partners = Partner::all()->lists('id', 'name');
        return View::make(Config::get('cpanel::views.users_index'))
{'fraction_non_alphanumeric': 0.12483504882554763, 'fraction_numerical': 0.0, 'mean_word_length': 2.771144278606965, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 20, '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': '2553572', 'n_tokens_mistral': 1168, 'n_tokens_neox': 1165, 'n_words': 186}