<commit_before><?php namespace Backend;

use \View;
use \Input;
use \User;
use \Redirect;
use \Validator;

class UserController extends BaseController {

	/**
	 * 所有用户
	 *
	 * @return Response
	 */
	public function getAll()
	{
		$users = User::paginate(15);
		return View::make('backend.pages.User-all')->withUsers($users);
	}

	/**
	 * 添加用户
	 *
	 * @return Response
	 */
	public function getNew()
	{
		return View::make('backend.pages.user-new');
	}

	/**
	 * 编辑用户
	 *
	 * @return Response
	 */
	public function getEdit($id)
	{
		return View::make('backend.pages.user-edit');
	}

	/**
	 * 删除用户
	 *
	 * @param  integer $id
	 * 
	 * @return Response
	 */
	public function getDelete($id)
	{<commit_msg>修改一处模板名写错<commit_after><?php namespace Backend;

use \View;
use \Input;
use \User;
use \Redirect;
use \Validator;

class UserController extends BaseController {

	/**
	 * 所有用户
	 *
	 * @return Response
	 */
	public function getAll()
	{
		$users = User::paginate(15);
		return View::make('backend.pages.user-all')->withUsers($users);
	}

	/**
	 * 添加用户
	 *
	 * @return Response
	 */
	public function getNew()
	{
		return View::make('backend.pages.user-new');
	}

	/**
	 * 编辑用户
	 *
	 * @return Response
	 */
	public function getEdit($id)
	{
		return View::make('backend.pages.user-edit');
	}

	/**
	 * 删除用户
	 *
	 * @param  integer $id
	 * 
	 * @return Response
	 */
	public function getDelete($id)
	{
{'fraction_non_alphanumeric': 0.166189111747851, 'fraction_numerical': 0.0028653295128939827, 'mean_word_length': 3.0492753623188404, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5989478', 'n_tokens_mistral': 563, 'n_tokens_neox': 521, 'n_words': 104}