<commit_before><?php

abstract class Shineisp_Api_Abstract_Action {
    
    public function authenticate() {

    	$email      = $_SERVER['PHP_AUTH_USER'];
        $password   = $_SERVER['PHP_AUTH_PW'];
        
        if( $email == "" && $password == "" ) {
            list($email, $password) = explode(':', base64_decode(substr($_SERVER['HTTP_AUTHORIZATION'], 6)));
        }
        
        //Check if username or password aren't empty
        if( $email == "" || $password == "" ) {
            throw new Shineisp_Api_Exceptions( json_encode($_SERVER) );
            exit();
        }        
        
        // login the user by ACL
        $result = AdminUser::fastlogin($email, $password, 0);
        
        switch ($result->getCode()) {
            case Zend_Auth_Result::FAILURE_IDENTITY_NOT_FOUND:
                throw new Shineisp_Api_Exceptions( 401001 );<commit_msg>minor bug fixed<commit_after><?php

abstract class Shineisp_Api_Abstract_Action {
    
    public function authenticate() {

    	$email      = $_SERVER['PHP_AUTH_USER'];
        $password   = $_SERVER['PHP_AUTH_PW'];
        
        if( $email == "" && $password == "" ) {
            list($email, $password) = explode(':', base64_decode(substr($_SERVER['HTTP_AUTHORIZATION'], 6)));
        }
        
        //Check if username or password aren't empty
        if( $email == "" || $password == "" ) {
            throw new Shineisp_Api_Exceptions( 403001 );
            exit();
        }        
        
        // login the user by ACL
        $result = AdminUser::fastlogin($email, $password, 0);
        
        switch ($result->getCode()) {
            case Zend_Auth_Result::FAILURE_IDENTITY_NOT_FOUND:
                throw new Shineisp_Api_Exceptions( 401001 );
{'fraction_non_alphanumeric': 0.13344690516751845, 'fraction_numerical': 0.014764338444065871, 'mean_word_length': 2.085814360770578, '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': '810207', 'n_tokens_mistral': 529, 'n_tokens_neox': 496, 'n_words': 104}