<commit_before><?php
namespace CkTools\Lib;

class ApiReturnCode
{
    const SUCCESS = 'success';
    const NOT_AUTHENTICATED = 'not_authenticated';
    const INVALID_PARAMS = 'invalid_params';
    const INVALID_CREDENTIALS = 'invalid_credentials';
    const NOT_AUTHORIZED = 'not_authorized';
    const VALIDATION_FAILED = 'validation_failed';
    const NOT_FOUND = 'not_found';

    /**
     * Maps return codes to HTTP Status Codes
     *
     * @return array
     */
    public static function getStatusCodeMapping()
    {
        return [
            self::SUCCESS => 200,
            self::NOT_AUTHENTICATED => 403,
            self::INVALID_CREDENTIALS => 401,
            self::INVALID_PARAMS => 400,
            self::NOT_AUTHORIZED => 403,
            self::NOT_FOUND => 404,
            self::VALIDATION_FAILED => 400
        ];
    }
}<commit_msg>added new Return code<commit_after><?php
namespace CkTools\Lib;

class ApiReturnCode
{
    const SUCCESS = 'success';
    const NOT_AUTHENTICATED = 'not_authenticated';
    const INVALID_PARAMS = 'invalid_params';
    const INVALID_CREDENTIALS = 'invalid_credentials';
    const NOT_AUTHORIZED = 'not_authorized';
    const VALIDATION_FAILED = 'validation_failed';
    const NOT_FOUND = 'not_found';
    const INTERNAL_ERROR = 'internal_error';

    /**
     * Maps return codes to HTTP Status Codes
     *
     * @return array
     */
    public static function getStatusCodeMapping()
    {
        return [
            self::SUCCESS => 200,
            self::NOT_AUTHENTICATED => 403,
            self::INVALID_CREDENTIALS => 401,
            self::INVALID_PARAMS => 400,
            self::NOT_AUTHORIZED => 403,
            self::NOT_FOUND => 404,
            self::VALIDATION_FAILED => 400,
            self::INTERNAL_ERROR => 500
        ];
    }
}
{'fraction_non_alphanumeric': 0.10099337748344371, 'fraction_numerical': 0.024834437086092714, 'mean_word_length': 2.4798464491362764, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 18, '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': '5970534', 'n_tokens_mistral': 584, 'n_tokens_neox': 540, 'n_words': 116}