<commit_before>var OAuth2Strategy = require('passport-oauth2'),
    InternalOAuthError = require('passport-oauth2').InternalOAuthError,
    util = require('util');

/**
 * `Strategy` constructor.
 *
 * @param {Object} options
 * @param {Function} verify
 * @api public
 */
function Strategy(options, verify) {
  options = options || {};
  options.authorizationURL = options.authorizationURL || 'https://app.hubspot.com/auth/authenticate/';
  options.tokenURL = options.tokenURL || 'https://app.hubspot.com/auth/token';
  options.scopeSeparator = options.scopeSeparator || '+';
  options.skipUserProfile = true

  OAuth2Strategy.call(this, options, verify);
  this.name = 'hubspot';
}

/**
 * Inherit from `OAuth2Strategy`.
 */
util.inherits(Strategy, OAuth2Strategy);


/**
 * Authenticate request by delegating to a service provider using OAuth 2.0.
 *
 * @param {Object} req
 * @api public
 */<commit_msg>Fix encoding issue with scope.<commit_after>var OAuth2Strategy = require('passport-oauth2'),
    InternalOAuthError = require('passport-oauth2').InternalOAuthError,
    util = require('util');

/**
 * `Strategy` constructor.
 *
 * @param {Object} options
 * @param {Function} verify
 * @api public
 */
function Strategy(options, verify) {
  options = options || {};
  options.authorizationURL = options.authorizationURL || 'https://app.hubspot.com/auth/authenticate/';
  options.tokenURL = options.tokenURL || 'https://app.hubspot.com/auth/token';
  options.scopeSeparator = options.scopeSeparator || ' ';
  options.skipUserProfile = true

  OAuth2Strategy.call(this, options, verify);
  this.name = 'hubspot';
}

/**
 * Inherit from `OAuth2Strategy`.
 */
util.inherits(Strategy, OAuth2Strategy);


/**
 * Authenticate request by delegating to a service provider using OAuth 2.0.
 *
 * @param {Object} req
 * @api public
 */
{'fraction_non_alphanumeric': 0.14964500273074824, 'fraction_numerical': 0.008738394320043691, 'mean_word_length': 4.404129793510324, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '3081643', 'n_tokens_mistral': 575, 'n_tokens_neox': 567, 'n_words': 120}