<commit_before><?php


class users{
    public $host="localhost";
    public $username="root";
    public $pass="";
    public $db_name="quiz_oops";
    
    public function __construct()
    {
        $this->conn=new mysqli($this->host, $this->username, $this->pass, $this->db_name);
        if($this->conn->connect_errno)
        {
            die  ("databases connection failed".$this->conn->connect_errno);
        }
    }
          
    public function singup($data)
    {
       $this->conn->query($data) ;
       return true;
    }
    
    public function url($url)
       {
        header("location:".$url);
       }<commit_msg>funkcija signin<commit_after><?php

session_start();
class users{
    public $host="localhost";
    public $username="root";
    public $pass="";
    public $db_name="quiz_oops";
    
    public function __construct()
    {
        $this->conn=new mysqli($this->host, $this->username, $this->pass, $this->db_name);
        if($this->conn->connect_errno)
        {
            die  ("databases connection failed".$this->conn->connect_errno);
        }
    }
          
    public function singup($data)
    {
       $this->conn->query($data) ;
       return true;
    }
    public function signin($email,$pass)
    {
        $query=$this->conn->query("SELECT email,pass FROM signup WHERE email$email' AND pass='$pass'");
        $usery->fetch_array(MYSQLI_ASSOC);
        if ($query->num_rows>0)
        {
            $_SESSION['email']=$email;
            return TRUE;
        }
        else 
        {
            return FALSE;
        }
            
        }
    public function url($url)
       {
        header("location:".$url);
       }
{'fraction_non_alphanumeric': 0.15178571428571427, 'fraction_numerical': 0.0005952380952380953, 'mean_word_length': 1.985790408525755, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 30, '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': '7410488', 'n_tokens_mistral': 517, 'n_tokens_neox': 512, 'n_words': 90}