<commit_before>import Oauth2 from 'torii/providers/oauth2-code';
import {
    configurable
}
from 'torii/configuration';

/**
 * This class implements authentication against Github
 * using the OAuth2 authorization flow in a popup window.
 * @class
 */
var TradierOauth2 = Oauth2.extend({
    name: 'tradier-oauth2',
    baseUrl: 'https://api.tradier.com/v1/oauth/authorize',
    responseParams: ['code', 'state'],
    scope: configurable('scope', 'read,write,placing,market,trade,stream'),
});

export
default TradierOauth2;<commit_msg>Added redirectUri helper<commit_after>import Oauth2 from 'torii/providers/oauth2-code';
import {
    configurable
}
from 'torii/configuration';

/**
 * This class implements authentication against Github
 * using the OAuth2 authorization flow in a popup window.
 * @class
 */
var TradierOauth2 = Oauth2.extend({
    name: 'tradier-oauth2',
    baseUrl: 'https://api.tradier.com/v1/oauth/authorize',
    responseParams: ['code', 'state'],
    scope: configurable('scope', 'read,write,placing,market,trade,stream'),

    redirectUri: configurable('redirectUri', function(){
      // A hack that allows redirectUri to be configurable
      // but default to the superclass
      return this._super();
    })
});

export
default TradierOauth2;
{'fraction_non_alphanumeric': 0.12852664576802508, 'fraction_numerical': 0.012539184952978056, 'mean_word_length': 4.411016949152542, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '7233033', 'n_tokens_mistral': 404, 'n_tokens_neox': 389, 'n_words': 99}