<commit_before>/*
 * SubsetUnion.hpp
 *
 *  Created on: 12.05.2017
 *      Author: frbe5612
 */

#ifndef SUBSETUNION_HPP_
#define SUBSETUNION_HPP_

#include <memory>
#include <vector>
#include <iostream>
#include "Union.hpp"
#include "Subset.hpp"

template<class T, class ... U>
class SubsetUnion : public Subset<T, U ...>, public Union<T>
{

public:

SubsetUnion() : Subset<T, U ...>(), Union<T>()
{

}

SubsetUnion(std::shared_ptr<Union<U> > ... u) :
        Subset<T, U ...>(u ...), Union<T>()
{
}

void initSubsetUnion(std::shared_ptr<Union<U> > ... u)
{
        Subset<T,U ... >::initSubset(u ...);
}

typedef typename std::vector<std::shared_ptr<T> >::iterator iterator;


virtual ~SubsetUnion()
{
        DEBUG_MESSAGE(std::cout << "SubsetUnion: ~~~~~~~~~~~~~~~~~" << std::endl; )
}
<commit_msg>remove debug message<commit_after>/*
 * SubsetUnion.hpp
 *
 *  Created on: 12.05.2017
 *      Author: frbe5612
 */

#ifndef SUBSETUNION_HPP_
#define SUBSETUNION_HPP_

#include <memory>
#include <vector>
#include <iostream>
#include "Union.hpp"
#include "Subset.hpp"

template<class T, class ... U>
class SubsetUnion : public Subset<T, U ...>, public Union<T>
{

public:

SubsetUnion() : Subset<T, U ...>(), Union<T>()
{

}

SubsetUnion(std::shared_ptr<Union<U> > ... u) :
        Subset<T, U ...>(u ...), Union<T>()
{
}

void initSubsetUnion(std::shared_ptr<Union<U> > ... u)
{
        Subset<T,U ... >::initSubset(u ...);
}

typedef typename std::vector<std::shared_ptr<T> >::iterator iterator;


virtual ~SubsetUnion()
{
}

{'fraction_non_alphanumeric': 0.2089063523248199, 'fraction_numerical': 0.015717092337917484, 'mean_word_length': 3.687116564417178, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 37, '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': '4802338', 'n_tokens_mistral': 617, 'n_tokens_neox': 589, 'n_words': 115}