<commit_before>/**
 *
 *    Copyright 2019-2020, Optimizely
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */
package com.optimizely.ab;

import com.optimizely.ab.config.HttpProjectConfigManager;
import com.optimizely.ab.config.ProjectConfigManager;
import com.optimizely.ab.event.AsyncEventHandler;
import com.optimizely.ab.event.BatchEventProcessor;
import com.optimizely.ab.event.EventHandler;
import com.optimizely.ab.internal.PropertyUtils;
import com.optimizely.ab.notification.NotificationCenter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.concurrent.TimeUnit;

/**
 * OptimizelyClients is a utility class to instantiate an {@link Optimizely} client with a minimal
 * number of configuration options. Basic default parameters can be configured via system properties
 * or through the use of an optimizely.properties file. System properties takes precedence over
 * the properties file and are managed via the {@link PropertyUtils} class.
 *
 * OptimizelyClients also provides setter methods to override the system properties at runtime.
 * <ul>
 *  <li>{@link OptimizelyFactory#setMaxEventBatchSize}</li>
 *  <li>{@link OptimizelyFactory#setMaxEventBatchInterval}</li>
 *  <li>{@link OptimizelyFactory#setEventQueueParams}</li>
 *  <li>{@link OptimizelyFactory#setBlockingTimeout}</li>
 *  <li>{@link OptimizelyFactory#setPollingInterval}</li>
 *  <li>{@link OptimizelyFactory#setSdkKey}</li>
 *  <li>{@link OptimizelyFactory#setDatafileAccessToken}</li>
 * </ul>
 *
 */
public final class OptimizelyFactory {
    private static final Logger logger = LoggerFactory.getLogger(OptimizelyFactory.class);

    /**
     * Convenience method for setting the maximum number of events contained within a batch.
     * {@link AsyncEventHandler}<commit_msg>docs: changed reference from the wrong classname to the correct one in Javadocs (#388)<commit_after>/**
 *
 *    Copyright 2019-2020, Optimizely
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */
package com.optimizely.ab;

import com.optimizely.ab.config.HttpProjectConfigManager;
import com.optimizely.ab.config.ProjectConfigManager;
import com.optimizely.ab.event.AsyncEventHandler;
import com.optimizely.ab.event.BatchEventProcessor;
import com.optimizely.ab.event.EventHandler;
import com.optimizely.ab.internal.PropertyUtils;
import com.optimizely.ab.notification.NotificationCenter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.concurrent.TimeUnit;

/**
 * OptimizelyFactory is a utility class to instantiate an {@link Optimizely} client with a minimal
 * number of configuration options. Basic default parameters can be configured via system properties
 * or through the use of an optimizely.properties file. System properties takes precedence over
 * the properties file and are managed via the {@link PropertyUtils} class.
 *
 * OptimizelyFactory also provides setter methods to override the system properties at runtime.
 * <ul>
 *  <li>{@link OptimizelyFactory#setMaxEventBatchSize}</li>
 *  <li>{@link OptimizelyFactory#setMaxEventBatchInterval}</li>
 *  <li>{@link OptimizelyFactory#setEventQueueParams}</li>
 *  <li>{@link OptimizelyFactory#setBlockingTimeout}</li>
 *  <li>{@link OptimizelyFactory#setPollingInterval}</li>
 *  <li>{@link OptimizelyFactory#setSdkKey}</li>
 *  <li>{@link OptimizelyFactory#setDatafileAccessToken}</li>
 * </ul>
 *
 */
public final class OptimizelyFactory {
    private static final Logger logger = LoggerFactory.getLogger(OptimizelyFactory.class);

    /**
     * Convenience method for setting the maximum number of events contained within a batch.
     * {@link AsyncEventHandler}
{'fraction_non_alphanumeric': 0.09062036840990896, 'fraction_numerical': 0.006563624814736396, 'mean_word_length': 4.650717703349282, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5713427', 'n_tokens_mistral': 1309, 'n_tokens_neox': 1304, 'n_words': 428}