<commit_before><?php

namespace fkooman\OAuth;

interface AuthorizationCodeInterface
{
    /**
     * Store an authorization code.
     *
     * @param AuthorizationCode $authorizationCode the authorization code to
     *                                             store
     *
     * @return string the authorization code that will be provided to the
     *                client
     */
    public function store(AuthorizationCode $authorizationCode);

    /**
     * Retrieve an authorization code.
     *
     * @param string $authorizationCode the authorization code received from
     *                                  the client
     *
     * @return AuthorizationCode|false the authorization code object if the
     *                                 authorization code was found, or false 
     *                                 if it was not found
     */
    public function retrieve($authorizationCode);

    /**
     * Check whether or not the authorizationCode was used before.
     *
     * @param string $authorizationCode the authorization code received from
     *                                  the client
     *
     * @return bool true if the code was not used before, false if it was used
     *              before. NOTE that as call to isFresh MUST mark that particular 
     *              authorization code as used IMMEDIATELY. 
     */
    public function isFresh($authorizationCode);
}<commit_msg>update comment<commit_after><?php

namespace fkooman\OAuth;

interface AuthorizationCodeInterface
{
    /**
     * Store an authorization code.
     *
     * @param AuthorizationCode $authorizationCode the authorization code to
     *                                             store
     *
     * @return string the authorization code that will be provided to the
     *                client
     */
    public function store(AuthorizationCode $authorizationCode);

    /**
     * Retrieve an authorization code.
     *
     * @param string $authorizationCode the authorization code received from
     *                                  the client
     *
     * @return AuthorizationCode|false the authorization code object if the
     *                                 authorization code was found, or false 
     *                                 if it was not found
     */
    public function retrieve($authorizationCode);

    /**
     * Check whether or not the authorization code was used before.
     *
     * @param string $authorizationCode the authorization code received from
     *                                  the client
     *
     * @return bool true if the code was not used before, false if it was used
     *              before. NOTE: a call to isFresh MUST mark that particular 
     *              authorization code as used IMMEDIATELY. It must NEVER 
     *              respond with true for the same authorization code.
     */
    public function isFresh($authorizationCode);
}
{'fraction_non_alphanumeric': 0.05272108843537415, 'fraction_numerical': 0.0, 'mean_word_length': 1.64240790655885, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 18, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '364413', 'n_tokens_mistral': 670, 'n_tokens_neox': 634, 'n_words': 256}