<commit_before><?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Auth extends CI_Controller {

    function __construct()
    {
        parent::__construct();
        $this->load->library('form_validation');
    }

    public function login()
    {
        $_POST = $_GET;
        // var_dump($_POST);

        $this->form_validation->set_rules('username', '<NAME>', 'required');
        $this->form_validation->set_rules('password', '<PASSWORD>', 'required');
        echo $this->form_validation->set_value('username');

        // $data = array("username" => $_GET['username'], "password" => $_GET['password']);
        // $_GET['username'] = $data['username'];
        // $_GET['password'] = $data['password'];
        // $data = $_GET;
        // $data['username'] = array(
        //     'name' => 'username',
        //     'id' => 'username',
        //     'type' => 'text',
        //     'value' => $this->form_validation->set_value('username')
        // );
        // $data['password'] = array(
        //     'name' => 'password',
        //     'id' => 'password',
        //     'type' => 'password'
        // );

        // if ($this->form_validation->run() != true)
        if (empty($this->input->post("username")) OR empty($this->input->post("password")))
        {
            // $data['message'] = (validation_errors()) ? validation_errors() : $this->session->flashdata('message');
            $data['message'] = "Kullanıcı adı ya da şifre boş bırakılamaz!";
            $this->load->view('auth/login',$data);
        }
        else
        {
            if ($this->authentication->login($this->input->post('username'), $this->input->post('password')))
            {
                redirect('/');
            }
            else
            {
                $this->session->set_flashdata('message', $this->authentication->errors());
                redirect('auth/login');
            }
            $this->load->view('auth/login', $data);
        }
    }

    public function logout()
    {<commit_msg>auth test<commit_after><?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Auth extends CI_Controller {

    function __construct()
    {
        parent::__construct();
        $this->load->library('form_validation');
    }

    public function login()
    {
        $_POST = $_GET;
        // var_dump($_POST);

        $this->form_validation->set_rules('username', '<NAME>', 'required');
        $this->form_validation->set_rules('password', '<PASSWORD>', 'required');
        echo $this->form_validation->set_value('username');

        // $data = array("username" => $_GET['username'], "password" => $_GET['password']);
        // $_GET['username'] = $data['username'];
        // $_GET['password'] = $data['password'];
        // $data = $_GET;
        // $data['username'] = array(
        //     'name' => 'username',
        //     'id' => 'username',
        //     'type' => 'text',
        //     'value' => $this->form_validation->set_value('username')
        // );
        // $data['password'] = array(
        //     'name' => 'password',
        //     'id' => 'password',
        //     'type' => 'password'
        // );

        // if ($this->form_validation->run() != true)
        if (empty($this->input->post("username")) OR empty($this->input->post("password")))
        {
            echo "<PASSWORD>";
            // $data['message'] = (validation_errors()) ? validation_errors() : $this->session->flashdata('message');
            $data['message'] = "Kullanıcı adı ya da şifre boş bırakılamaz!";
            $this->load->view('auth/login',$data);
        }
        else
        {
            if ($this->authentication->login($this->input->post('username'), $this->input->post('password')))
            {
                redirect('/');
            }
            else
            {
                $this->session->set_flashdata('message', $this->authentication->errors());
                redirect('auth/login');
            }
            $this->load->view('auth/login', $data);
        }
    }

    public function logout()
    {
{'fraction_non_alphanumeric': 0.20357401593817917, 'fraction_numerical': 0.0, 'mean_word_length': 1.9755747126436782, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 90, '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': '3691070', 'n_tokens_mistral': 1181, 'n_tokens_neox': 1162, 'n_words': 189}