<commit_before><?php

namespace App\Controllers;

use App\Services\Auth;
use App\Models\User;
use App\Models\Node;

/**
 *  HomeController
 */

class UserController extends BaseController
{

    private $user;

    public function __construct(){
        $this->user = Auth::getUser();
    }

    public function home()
    {
        return $this->view()->display('user/index.tpl');
    }

    public function node(){

    }

    public function nodeInfo($request, $response, $args){
        $id = $args['id'];
        $node = Node::find($id);
    }

    public function profile(){

    }

    public function invite(){

    }

    public function sys(){

    }

    public function updateSsPwd($request, $response, $args){
        $user = Auth::getUser();
        $pwd =  $request->getParam('<PASSWORD>');
        $user->updateSsPwd($pwd);
    }

    public function logout(){
        Auth::logout();
    }

    public function doCheckIn(){

    }

}<commit_msg>update usercontroller<commit_after><?php

namespace App\Controllers;

use App\Services\Auth;
use App\Models\User;
use App\Models\Node;
use App\Utils\Tools;


/**
 *  HomeController
 */

class UserController extends BaseController
{

    private $user;

    public function __construct(){
        $this->user = Auth::getUser();
    }

    public function home()
    {
        return $this->view()->display('user/index.tpl');
    }

    public function node(){
        return $this->view()->display('user/index.tpl');
    }

    public function nodeInfo($request, $response, $args){
        $id = $args['id'];
        $node = Node::find($id);
    }

    public function profile(){
        return $this->view()->display('user/profile.tpl');
    }

    public function invite(){
        return $this->view()->display('user/invite.tpl');
    }

    public function sys(){

    }

    public function updateSsPwd($request, $response, $args){
        $user = Auth::getUser();
        $pwd =  $request->getParam('sspwd');
        $user->updateSsPwd($pwd);
    }

    public function logout(){
        Auth::logout();
    }



    public function doCheckIn(){

    }

}
{'fraction_non_alphanumeric': 0.1578699340245052, 'fraction_numerical': 0.0, 'mean_word_length': 2.526578073089701, 'pattern_counts': {'":': 0, '<': 6, '<?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': '5903701', 'n_tokens_mistral': 664, 'n_tokens_neox': 639, 'n_words': 137}