<commit_before><?php

namespace App\Controller;

class Auth extends \App\Page {



    public function action_login() {
        if ($this->request->method == 'POST') {
            $login = $this->request->post('username');
            $password = $this->request->post('password');

            
            //Attempt to login the user using his
            //username and password
            $logged = $this->pixie->auth
                    ->provider('password')
                    ->login($login, $password);

            //On successful login redirect the user to
            //our protected page
            if ($logged)
                return $this->redirect('/account');
        }
        //Include 'login.php' subview
        $this->view->breadcrumbs = "Вход в личный кабинет";
        $this->view->subview = 'login';
    }<commit_msg>Fixed typo<commit_after><?php
namespace App\Controller;

class Auth extends \App\Page {



    public function action_login() {
        if ($this->request->method == 'POST') {
            $login = $this->request->post('username');
            $password = $this->request->post('password');

            
            //Attempt to login the user using his
            //username and password
            $logged = $this->pixie->auth
                    ->provider('password')
                    ->login($login, $password);

            //On successful login redirect the user to
            //our protected page
            if ($logged)
                return $this->redirect('/account');
        }
        //Include 'login.php' subview
        $this->view->breadcrumbs = "Вход в личный кабинет";
        $this->view->subview = 'auth/login';
    }
{'fraction_non_alphanumeric': 0.13676731793960922, 'fraction_numerical': 0.0, 'mean_word_length': 1.665615141955836, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 33, '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': '794599', 'n_tokens_mistral': 444, 'n_tokens_neox': 428, 'n_words': 113}