<commit_before>#ifndef BANDIT_CONTAIN_H
#define BANDIT_CONTAIN_H

#include <cstring>

#include "Matcher.h"

namespace bandit { namespace Matchers {

    template<typename T>
    class Contain : public Matcher
    {
    public:
        explicit Contain(const T& element) : Matcher(), _element(element) {}

        template<typename U>
        bool matches(const U& container) const
	{
	    return container.find(_element) != container.end();
	}

        template<typename U>
        bool matches(const std::vector<U>& container) const
	{
	    return std::find(container.begin(), container.end(), _element) != container.end();
	}<commit_msg>Fixed a missing STL include in Contain.h<commit_after>#ifndef BANDIT_CONTAIN_H
#define BANDIT_CONTAIN_H

#include <cstring>
#include <vector>

#include "Matcher.h"

namespace bandit { namespace Matchers {

    template<typename T>
    class Contain : public Matcher
    {
    public:
        explicit Contain(const T& element) : Matcher(), _element(element) {}

        template<typename U>
        bool matches(const U& container) const
	{
	    return container.find(_element) != container.end();
	}

        template<typename U>
        bool matches(const std::vector<U>& container) const
	{
	    return std::find(container.begin(), container.end(), _element) != container.end();
	}
{'fraction_non_alphanumeric': 0.1164021164021164, 'fraction_numerical': 0.0, 'mean_word_length': 3.56551724137931, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, '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': '3945888', 'n_tokens_mistral': 409, 'n_tokens_neox': 395, 'n_words': 102}