<commit_before>/*
 * Copyright (c) 2011-2016 Pivotal Software Inc, All Rights Reserved.
 *
 * 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 reactor.core.util;

import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import java.util.WeakHashMap;

import reactor.core.flow.Loopback;
import reactor.core.flow.Receiver;
import reactor.core.flow.MultiReceiver;
import reactor.core.flow.Producer;
import reactor.core.flow.MultiProducer;
import reactor.core.state.Backpressurable;
import reactor.core.state.Cancellable;
import reactor.core.state.Completable;
import reactor.core.state.Failurable;
import reactor.core.state.Groupable;
import reactor.core.state.Introspectable;
import reactor.core.state.Prefetchable;
import reactor.core.state.Requestable;
import reactor.core.state.Timeable;

/**
 * @author <NAME>
 * @since 2.5
 */
public enum ReactiveStateUtils {
	;

	/**
	 * Create an empty graph
	 * @return a Graph
	 */
	public static Graph newGraph() {
		return newGraph(false);
	}

	/**
	 *
	 * @param trace
	 * @return
	 */
	public static Graph newGraph(boolean trace) {
		return new Graph(false, trace);
	}

	/**<commit_msg>Rename ReactiveStateUtils#newGraph() to createGraph()<commit_after>/*
 * Copyright (c) 2011-2016 Pivotal Software Inc, All Rights Reserved.
 *
 * 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 reactor.core.util;

import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import java.util.WeakHashMap;

import reactor.core.flow.Loopback;
import reactor.core.flow.Receiver;
import reactor.core.flow.MultiReceiver;
import reactor.core.flow.Producer;
import reactor.core.flow.MultiProducer;
import reactor.core.state.Backpressurable;
import reactor.core.state.Cancellable;
import reactor.core.state.Completable;
import reactor.core.state.Failurable;
import reactor.core.state.Groupable;
import reactor.core.state.Introspectable;
import reactor.core.state.Prefetchable;
import reactor.core.state.Requestable;
import reactor.core.state.Timeable;

/**
 * @author <NAME>
 * @since 2.5
 */
public enum ReactiveStateUtils {
	;

	/**
	 * Create an empty graph
	 * @return a Graph
	 */
	public static Graph createGraph() {
		return createGraph(false);
	}

	/**
	 *
	 * @param trace
	 * @return
	 */
	public static Graph createGraph(boolean trace) {
		return new Graph(false, trace);
	}

	/**
{'fraction_non_alphanumeric': 0.10262934690415607, 'fraction_numerical': 0.00791631325982471, 'mean_word_length': 4.249258160237389, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6268326', 'n_tokens_mistral': 1090, 'n_tokens_neox': 1019, 'n_words': 331}