<commit_before>var querystring= require('querystring'),
    crypto= require('crypto'),
    request= require('request'),
    URL= require('url');

exports.OAuth2= function(clientId, clientSecret, baseSite, authorizePath, accessTokenPath, customHeaders, proxy, strictSSL, rejectUnauthorized) {
  this._clientId= clientId;
  this._clientSecret= clientSecret;
  this._baseSite= baseSite;
  this._authorizeUrl= authorizePath || "/oauth/authorize";
  this._accessTokenUrl= accessTokenPath || "/oauth/access_token";
  this._accessTokenName= "access_token";
  this._authMethod= "Bearer";
  this._customHeaders = customHeaders || {};
  this._useAuthorizationHeaderForGET= false;
  this._proxy = proxy;
  this._strictSSL = strictSSL;
  this._rejectUnauthorized = rejectUnauthorized;
}
<commit_msg>docs: add jsdoc comment for OAuth2 constructor<commit_after>var querystring= require('querystring'),
    crypto= require('crypto'),
    request= require('request'),
    URL= require('url');

/**
 * Create new OAuth 2 client
 * @param {string} clientId           OAuth Client ID
 * @param {string} clientSecret       OAuth Client secret
 * @param {string} baseSite           OAuth base URL
 * @param {string} authorizePath      Path to "authorize" endpoint
 * @param {string} accessTokenPath    Path to "access_token" endpoint
 * @param {object} customHeaders      Additional headers to pass
 * @param {string} proxy              Proxy URL
 * @param {bool}   strictSSL          Whether to use StrictSSL for validating request certificate
 * @param {bool}   rejectUnauthorized Whether certificate related errors should throw an error
**/
exports.OAuth2= function(clientId, clientSecret, baseSite, authorizePath, accessTokenPath, customHeaders, proxy, strictSSL, rejectUnauthorized) {
  this._clientId= clientId;
  this._clientSecret= clientSecret;
  this._baseSite= baseSite;
  this._authorizeUrl= authorizePath || "/oauth/authorize";
  this._accessTokenUrl= accessTokenPath || "/oauth/access_token";
  this._accessTokenName= "access_token";
  this._authMethod= "Bearer";
  this._customHeaders = customHeaders || {};
  this._useAuthorizationHeaderForGET= false;
  this._proxy = proxy;
  this._strictSSL = strictSSL;
  this._rejectUnauthorized = rejectUnauthorized;
}

{'fraction_non_alphanumeric': 0.10746003552397869, 'fraction_numerical': 0.0017761989342806395, 'mean_word_length': 4.851948051948052, 'pattern_counts': {'":': 0, '<': 3, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3458922', 'n_tokens_mistral': 636, 'n_tokens_neox': 625, 'n_words': 167}