<commit_before>/**************************** EXTERNAL IMPORTS *******************************/

/**************************** INTERNAL IMPORTS *******************************/

/**************************** MODULE CONSTANTS *******************************/

/**************************** EXTERNAL METHODS *******************************/<commit_msg>Working on api,factory.js<commit_after>/**************************** EXTERNAL IMPORTS *******************************/

/**************************** INTERNAL IMPORTS *******************************/

var assert = require("../assert.js");
var OAuth2Api = require("../lib/api/type/oauth2.api.js");

/**************************** MODULE CONSTANTS *******************************/

var GOOGLE_API_EXTENSION_MAP = {
    authUrl: "https://accounts.google.com/o/oauth2/auth",
    tokenUrl: "https://accounts.google.com/o/oauth2/token",
    requestUrl: "https://www.googleapis.com/",
    requiresScopes: true,
    authTokenGrantType: "authorization_code",
    authResponseType: "code",
    authRequiresState: true,
    clientConfig: {
        authorizationHeaderPrefix: "OAuth"
    }
}

/*************************** INTERNAL VARIABLES ******************************/

var constructors = {
    google: function(sauceConfigMap, apiConfigMap) {
        assert.object("sauceConfigMap", sauceConfigMap);
        assert.object("sauceConfigMap", sauceConfigMap);

        return OAuth2Api("google", sauceConfigMap, apiConfigMap, GOOGLE_API_EXTENSION_MAP);
    }
};

/**************************** EXTERNAL METHODS *******************************/
{'fraction_non_alphanumeric': 0.4215189873417722, 'fraction_numerical': 0.0031645569620253164, 'mean_word_length': 5.964757709251101, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, 'lorem ipsum': 0, 'www.': 1, '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': '4402741', 'n_tokens_mistral': 423, 'n_tokens_neox': 406, 'n_words': 61}