<commit_before>var CONFIG = require("../config.js");
var CONSTANTS = require("../constants.js");
var util = require("../util.js");
var refThis = this;
var pbNameSpace = CONSTANTS.COMMON.PREBID_NAMESPACE;

refThis.setConfig = function(){
	if(util.isFunction(window[pbNameSpace].setConfig) || typeof window[pbNameSpace].setConfig == "function") {
		if(CONFIG.isIdentityOnly()) {
			var prebidConfig = {
				debug: util.isDebugLogEnabled(),
				userSync: {
					syncDelay: 2000
				}
			};

			if (CONFIG.getGdpr()) {
				prebidConfig["consentManagement"] = {
					cmpApi: CONFIG.getCmpApi(),
					timeout: CONFIG.getGdprTimeout(),
					allowAuctionWithoutConsent: CONFIG.getAwc()
				};
			}
<commit_msg>adding support for CCPA in identityHub (#236)<commit_after>var CONFIG = require("../config.js");
var CONSTANTS = require("../constants.js");
var util = require("../util.js");
var refThis = this;
var pbNameSpace = CONSTANTS.COMMON.PREBID_NAMESPACE;

refThis.setConfig = function(){
	if(util.isFunction(window[pbNameSpace].setConfig) || typeof window[pbNameSpace].setConfig == "function") {
		if(CONFIG.isIdentityOnly()) {
			var prebidConfig = {
				debug: util.isDebugLogEnabled(),
				userSync: {
					syncDelay: 2000
				}
			};

			if (CONFIG.getGdpr()) {
				prebidConfig["consentManagement"] = {
					cmpApi: CONFIG.getCmpApi(),
					timeout: CONFIG.getGdprTimeout(),
					allowAuctionWithoutConsent: CONFIG.getAwc()
				};
			}

			if (CONFIG.getCCPA()) {
				if(!prebidConfig["consentManagement"]){
					prebidConfig["consentManagement"] = {};
				}
				prebidConfig["consentManagement"]["usp"] = {
					cmpApi: CONFIG.getCCPACmpApi(),
					timeout: CONFIG.getCCPATimeout(),
				};
			}

{'fraction_non_alphanumeric': 0.15860849056603774, 'fraction_numerical': 0.006485849056603774, 'mean_word_length': 3.947521865889213, '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': '7221695', 'n_tokens_mistral': 683, 'n_tokens_neox': 566, 'n_words': 91}