<commit_before><?php

namespace Authoritarian\Flow;

use Authoritarian\Credential\ClientCredential;
use Authoritarian\Exception\Flow\MissingTokenUrlException;

/**
 * Implementation of the Authorization Flow Interface to
 * the Resource Owner Password Flow of OAuth 2
 **/
class ResourceOwnerPasswordFlow extends AbstractFlow
{
    const GRANT_TYPE = 'password';

    protected $client;
    protected $clientId;
    protected $clientSecret;
    protected $parameters = array();

    /**
     * @param string $token_url The OAuth server endpoint to obtain the access tokens
     * @param string $username The user's username to login
     * @param string $password The user's password
     */
    public function __construct($username, $password)
    {
        $this->setParameter('username', $username);
        $this->setParameter('password', $password);
        $this->setParameter('grant_type', self::GRANT_TYPE);
    }<commit_msg>remove unecessary client of ResourceOwnerPasswordFlow<commit_after><?php

namespace Authoritarian\Flow;

use Authoritarian\Credential\ClientCredential;
use Authoritarian\Exception\Flow\MissingTokenUrlException;

/**
 * Implementation of the Authorization Flow Interface to
 * the Resource Owner Password Flow of OAuth 2
 **/
class ResourceOwnerPasswordFlow extends AbstractFlow
{
    const GRANT_TYPE = 'password';

    protected $clientId;
    protected $clientSecret;
    protected $parameters = array();

    /**
     * @param string $token_url The OAuth server endpoint to obtain the access tokens
     * @param string $username The user's username to login
     * @param string $password The <PASSWORD>'s password
     */
    public function __construct($username, $password)
    {
        $this->setParameter('username', $username);
        $this->setParameter('password', $password);
        $this->setParameter('grant_type', self::GRANT_TYPE);
    }
{'fraction_non_alphanumeric': 0.09730301427815971, 'fraction_numerical': 0.0010576414595452142, 'mean_word_length': 4.045333333333334, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 10, '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': '4622112', 'n_tokens_mistral': 502, 'n_tokens_neox': 477, 'n_words': 150}