<commit_before>/**
 *
 * Copyright (c) 2006-2015, Speedment, 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 com.speedment.codegen.base;

import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import java.util.stream.Collectors;
import static com.speedment.codegen.Formatting.*;

/**
 *
 * @author <NAME>
 */
public class DefaultDependencyManager implements DependencyManager {
	private final Set<String> dependencies = new HashSet<>();
	private final Set<String> ignorePackages;
	
	/**
	 * Initalises the DependencyManager.
	 */
	public DefaultDependencyManager() {
		ignorePackages = new HashSet<>();
	}
	
	/**
	 * Initalises the DependencyManager.
	 * @param ignoredPackage A package that should be on the ignore list.
	 */
	public DefaultDependencyManager(String ignoredPackage) {
		ignorePackages = new HashSet<>();
		ignorePackages.add(ignoredPackage);
	}
	
	/**
	 * Initalises the DependencyManager.
	 * @param ignoredPackage A package that should be on the ignore list.
	 * @param ignoredPackages More packages that should be on the ignore list.
	 */
	public DefaultDependencyManager(String ignoredPackage, String... ignoredPackages) {
		ignorePackages = Arrays.stream(ignoredPackages)
			.collect(Collectors.toSet());
		ignorePackages.add(ignoredPackage);
	}

	/**<commit_msg>Constructor now take special case with only array<commit_after>/**
 *
 * Copyright (c) 2006-2015, Speedment, 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 com.speedment.codegen.base;

import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import java.util.stream.Collectors;
import static com.speedment.codegen.Formatting.*;

/**
 *
 * @author <NAME>
 */
public class DefaultDependencyManager implements DependencyManager {
	private final Set<String> dependencies = new HashSet<>();
	private final Set<String> ignorePackages;
	
	/**
	 * Initalises the DependencyManager.
	 */
	public DefaultDependencyManager() {
		ignorePackages = new HashSet<>();
	}
	
	/**
	 * Initalises the DependencyManager.
	 * @param ignoredPackage A package that should be on the ignore list.
	 */
	public DefaultDependencyManager(String ignoredPackage) {
		ignorePackages = new HashSet<>();
		ignorePackages.add(ignoredPackage);
	}
    
    /**
	 * Initalises the DependencyManager.
	 * @param ignoredPackages Packages that should be ignored.
	 */
	public DefaultDependencyManager(String[] ignoredPackages) {
		ignorePackages = Arrays.stream(ignoredPackages)
			.collect(Collectors.toSet());
	}
	
	/**
	 * Initalises the DependencyManager.
	 * @param ignoredPackage A package that should be on the ignore list.
	 * @param ignoredPackages More packages that should be on the ignore list.
	 */
	public DefaultDependencyManager(String ignoredPackage, String... ignoredPackages) {
		this (ignoredPackages);
		ignorePackages.add(ignoredPackage);
	}

	/**
{'fraction_non_alphanumeric': 0.095733875063484, 'fraction_numerical': 0.006094464195022855, 'mean_word_length': 4.266042780748663, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '3873791', 'n_tokens_mistral': 1120, 'n_tokens_neox': 1050, 'n_words': 382}