<commit_before>/**
 * 
 */
package com.tilioteo.hypothesis.common;

import java.util.HashSet;

/**
 * @author <NAME> - Hypothesis
 *
 */
@SuppressWarnings("serial")
public class StringSet extends HashSet<String> {

	public StringSet() {
		super();
	}
	
	public StringSet(String[] strings) {
		this();
		
		if (strings != null)
			for (String str : strings)
				add(str);
	}
}<commit_msg>updated StringSet allows initialization from other StringSet and additional string array<commit_after>/**
 * 
 */
package com.tilioteo.hypothesis.common;

import java.util.HashSet;

/**
 * @author <NAME> - Hypothesis
 * 
 */
@SuppressWarnings("serial")
public class StringSet extends HashSet<String> {

	public StringSet() {
		super();
	}

	public StringSet(StringSet stringSet, String[] strings) {
		this();

		if (stringSet != null)
			addAll(stringSet);

		if (strings != null)
			for (String str : strings)
				add(str);
	}

	public StringSet(String[] strings) {
		this(null, strings);
	}

	public StringSet(StringSet stringSet) {
		this(stringSet, null);
	}

}
{'fraction_non_alphanumeric': 0.14258555133079848, 'fraction_numerical': 0.0, 'mean_word_length': 3.8976744186046512, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2268067', 'n_tokens_mistral': 386, 'n_tokens_neox': 348, 'n_words': 84}