<commit_before>import * as Utils from './core/Utils';
import Cache from './core/Cache';
import * as Externals from './core/Externals';
import Observable from './core/Observable';
import Queue from './core/Queue';

import Client from './http/Client';
import ApiResponse from './http/ApiResponse';
import * as HttpUtils from './http/Utils';

import {default as ClientMock} from './mocks/ClientMock';
import Mock from './mocks/Mock';
import Registry from './mocks/Registry';

import Platform from './platform/Platform';
import Auth from './platform/Auth';

import PubnubMockFactory from './pubnub/PubnubFactory';

import Subscription from './subscription/Subscription';
import CachedSubscription from './subscription/CachedSubscription';

class SDK {

    static version = '2.0.5';

    static server = {
        sandbox: 'https://platform.devtest.ringcentral.com',
        production: 'https://platform.ringcentral.com'
    };

    /**
     * @constructor
     * @param {object} [options]
     * @param {string} [options.server]
     * @param {string} [options.cachePrefix]
     * @param {string} [options.appSecret]
     * @param {string} [options.appKey]
     * @param {string} [options.appName]
     * @param {string} [options.appVersion]
     * @param {string} [options.pubnubFactory]
     * @param {string} [options.client]
     */
    constructor(options) {

        options = options || {};

        this._cache = new Cache(Externals.localStorage, options.cachePrefix);

        this._client = options.client || new Client();

        this._platform = new Platform(
            this._client,
            this._cache,
            options.server,<commit_msg>Namespace<commit_after>import * as Utils from './core/Utils';
import Cache from './core/Cache';
import * as Externals from './core/Externals';
import Observable from './core/Observable';
import Queue from './core/Queue';

import Client from './http/Client';
import ApiResponse from './http/ApiResponse';
import * as HttpUtils from './http/Utils';

import {default as ClientMock} from './mocks/ClientMock';
import Mock from './mocks/Mock';
import Registry from './mocks/Registry';

import Platform from './platform/Platform';
import Auth from './platform/Auth';

import PubnubMockFactory from './pubnub/PubnubFactory';

import Subscription from './subscription/Subscription';
import CachedSubscription from './subscription/CachedSubscription';

class SDK {

    static version = '2.0.5';

    static server = {
        sandbox: 'https://platform.devtest.ringcentral.com',
        production: 'https://platform.ringcentral.com'
    };

    /**
     * @namespace RingCentral
     * @constructor
     * @param {object} [options]
     * @param {string} [options.server]
     * @param {string} [options.cachePrefix]
     * @param {string} [options.appSecret]
     * @param {string} [options.appKey]
     * @param {string} [options.appName]
     * @param {string} [options.appVersion]
     * @param {string} [options.pubnubFactory]
     * @param {string} [options.client]
     */
    constructor(options) {

        options = options || {};

        this._cache = new Cache(Externals.localStorage, options.cachePrefix);

        this._client = options.client || new Client();

        this._platform = new Platform(
            this._client,
            this._cache,
            options.server,
{'fraction_non_alphanumeric': 0.14157706093189965, 'fraction_numerical': 0.0017921146953405018, 'mean_word_length': 3.119311193111931, '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': '1239368', 'n_tokens_mistral': 955, 'n_tokens_neox': 943, 'n_words': 251}