<commit_before>if (!fireunit) {
    throw new Error('FireUnit is required for unit testing.See http://fireunit.org/'); //http://fireunit.org/
}

fireunit.ok(typeof Url == 'function', 'Url is a constructor');

// Only testing absolute Urls
fireunit.compare('http://www.google.com', new Url('www.google.com'), 'www.google.com');
fireunit.compare('http://www.google.com/', new Url('www.google.com/'), 'www.google.com/');
fireunit.compare('http://www.google.com/', new Url('www.google.com/?'), 'www.google.com/?');
fireunit.compare('http://www.google.com/search', new Url('www.google.com/search'), 'www.google.com/search');
fireunit.compare('http://www.google.com/search?q=test', new Url('www.google.com/search?q=test'), 'http://www.google.com/search?q=test');
fireunit.compare('http://www.google.com/search?q=test#anchor', new Url('www.google.com/search?q=test#anchor'), 'http://www.google.com/search?q=test#anchor');
fireunit.compare('http://www.google.com/search#anchor', new Url('www.google.com/search?#anchor'), 'http://www.google.com/search?#anchor');
fireunit.compare('http://www.google.com/search#anchor', new Url('www.google.com/search#anchor'), 'http://www.google.com/search#anchor');
fireunit.compare('http://www.google.com/#anchor', new Url('www.google.com/#anchor'), 'http://www.google.com/#anchor');
fireunit.compare('http://www.google.com#anchor', new Url('www.google.com#anchor'), 'http://www.google.com#anchor');

fireunit.compare('http://www.google.com', new Url('http://www.google.com'), 'http://www.google.com');
fireunit.compare('http://www.google.com/', new Url('http://www.google.com/'), 'http://www.google.com/');
fireunit.compare('http://www.google.com/', new Url('http://www.google.com/?'), 'http://www.google.com/?');
fireunit.compare('http://www.google.com/search', new Url('http://www.google.com/search'), 'http://www.google.com/search');
fireunit.compare('http://www.google.com/search?q=test', new Url('http://www.google.com/search?q=test'), 'http://www.google.com/search?q=test');
fireunit.compare('http://www.google.com/search?q=test#anchor', new Url('http://www.google.com/search?q=test#anchor'), 'http://www.google.com/search?q=test#anchor');
fireunit.compare('http://www.google.com/search#anchor', new Url('http://www.google.com/search?#anchor'), 'http://www.google.com/search?#anchor');
fireunit.compare('http://www.google.com/search#anchor', new Url('http://www.google.com/search#anchor'), 'http://www.google.com/search#anchor');
fireunit.compare('http://www.google.com/#anchor', new Url('http://www.google.com/#anchor'), 'http://www.google.com/#anchor');
fireunit.compare('http://www.google.com#anchor', new Url('http://www.google.com#anchor'), 'http://www.google.com#anchor');

var url = new Url('www.google.com:443');
fireunit.compare('https', url.scheme, 'Url: Correctly detected scheme is https from port (www.google.com:443)');


var key = '<KEY>';
var secret = 'a845eb87bde903d230dfa1cf6e106e7891447bab';
var app_id = 'HcjASU6g';

fireunit.ok(jsOAuth.Service.Yahoo, 'jsOAuth.Service.Yahoo is a class');

var jsOAuthYahoo = jsOAuth.Service.Yahoo(key, secret, null, app_id);
console.debug(jsOAuthYahoo);
fireunit.ok(jsOAuthYahoo, 'construct of jsOAuth.Service.Yahoo');

fireunit.ok(jsOAuthYahoo.getRequestToken, 'jsOAuth.Service.Yahoo has getRequestToken method');
fireunit.ok(jsOAuthYahoo.requestAuthorization, 'jsOAuth.Service.Yahoo has requestAuthorization method');
fireunit.ok(jsOAuthYahoo.getAccessToken, 'jsOAuth.Service.Yahoo has getAccessToken method');

//fireunit.ok(jsOAuthYahoo.getAccessToken(), 'jsOAuth.Service.Yahoo.getAccessToken() creates Request');

fireunit.testDone();<commit_msg>use uncompressed version as it makes debugginf the tests easier<commit_after>if (!fireunit) {
    throw new Error('FireUnit is required for unit testing.See http://fireunit.org/'); //http://fireunit.org/
}

fireunit.ok(typeof Url == 'function', 'Url is a constructor');

// Only testing absolute Urls
fireunit.compare('http://www.google.com', new Url('www.google.com'), 'www.google.com');
fireunit.compare('http://www.google.com/', new Url('www.google.com/'), 'www.google.com/');
fireunit.compare('http://www.google.com/', new Url('www.google.com/?'), 'www.google.com/?');
fireunit.compare('http://www.google.com/search', new Url('www.google.com/search'), 'www.google.com/search');
fireunit.compare('http://www.google.com/search?q=test', new Url('www.google.com/search?q=test'), 'http://www.google.com/search?q=test');
fireunit.compare('http://www.google.com/search?q=test#anchor', new Url('www.google.com/search?q=test#anchor'), 'http://www.google.com/search?q=test#anchor');
fireunit.compare('http://www.google.com/search#anchor', new Url('www.google.com/search?#anchor'), 'http://www.google.com/search?#anchor');
fireunit.compare('http://www.google.com/search#anchor', new Url('www.google.com/search#anchor'), 'http://www.google.com/search#anchor');
fireunit.compare('http://www.google.com/#anchor', new Url('www.google.com/#anchor'), 'http://www.google.com/#anchor');
fireunit.compare('http://www.google.com#anchor', new Url('www.google.com#anchor'), 'http://www.google.com#anchor');

fireunit.compare('http://www.google.com', new Url('http://www.google.com'), 'http://www.google.com');
fireunit.compare('http://www.google.com/', new Url('http://www.google.com/'), 'http://www.google.com/');
fireunit.compare('http://www.google.com/', new Url('http://www.google.com/?'), 'http://www.google.com/?');
fireunit.compare('http://www.google.com/search', new Url('http://www.google.com/search'), 'http://www.google.com/search');
fireunit.compare('http://www.google.com/search?q=test', new Url('http://www.google.com/search?q=test'), 'http://www.google.com/search?q=test');
fireunit.compare('http://www.google.com/search?q=test#anchor', new Url('http://www.google.com/search?q=test#anchor'), 'http://www.google.com/search?q=test#anchor');
fireunit.compare('http://www.google.com/search#anchor', new Url('http://www.google.com/search?#anchor'), 'http://www.google.com/search?#anchor');
fireunit.compare('http://www.google.com/search#anchor', new Url('http://www.google.com/search#anchor'), 'http://www.google.com/search#anchor');
fireunit.compare('http://www.google.com/#anchor', new Url('http://www.google.com/#anchor'), 'http://www.google.com/#anchor');
fireunit.compare('http://www.google.com#anchor', new Url('http://www.google.com#anchor'), 'http://www.google.com#anchor');

var url = new Url('www.google.com:443');
fireunit.compare('https', url.scheme, 'Url: Correctly detected scheme is https from port (www.google.com:443)');


var key = '<KEY>';
var secret = 'a845eb87bde903d230dfa1cf6e106e7891447bab';
var app_id = 'HcjASU6g';

fireunit.ok(jsOAuth.Service.Yahoo, 'jsOAuth.Service.Yahoo is a class');

var jsOAuthYahoo = jsOAuth.Service.Yahoo(key, secret, null, app_id);
console.debug(jsOAuthYahoo);
fireunit.ok(jsOAuthYahoo, 'construct of jsOAuth.Service.Yahoo');

fireunit.ok(jsOAuthYahoo.getRequestToken, 'jsOAuth.Service.Yahoo has getRequestToken method');
fireunit.ok(jsOAuthYahoo.requestAuthorization, 'jsOAuth.Service.Yahoo has requestAuthorization method');
fireunit.ok(jsOAuthYahoo.getAccessToken, 'jsOAuth.Service.Yahoo has getAccessToken method');

console.debug(jsOAuthYahoo.getRequestToken());
//fireunit.ok(jsOAuthYahoo.getRequestToken(), 'jsOAuth.Service.Yahoo.getRequestToken() creates Request');

fireunit.testDone();
{'fraction_non_alphanumeric': 0.22082147214314762, 'fraction_numerical': 0.008133387555917039, 'mean_word_length': 6.046800382043935, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 124, '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': '2795737', 'n_tokens_mistral': 2597, 'n_tokens_neox': 2555, 'n_words': 335}