<commit_before>#ifndef STINGRAY_TOOLKIT_IPIPE_H
#define STINGRAY_TOOLKIT_IPIPE_H


#include <stingray/threads/CancellationToken.h>
#include <stingray/toolkit/ByteData.h>
#include <stingray/toolkit/shared_ptr.h>


namespace stingray
{

	struct IPipe
	{
		virtual ~IPipe() {}

		virtual size_t Read(ByteData dst, const CancellationToken& token) const = 0;
		virtual size_t Write(ConstByteData src, const CancellationToken& token) const = 0;
	};
	TOOLKIT_DECLARE_PTR(IPipe);

}


#endif<commit_msg>removed an incorrectly assigned const qualifier<commit_after>#ifndef STINGRAY_TOOLKIT_IPIPE_H
#define STINGRAY_TOOLKIT_IPIPE_H


#include <stingray/threads/CancellationToken.h>
#include <stingray/toolkit/ByteData.h>
#include <stingray/toolkit/shared_ptr.h>


namespace stingray
{

	struct IPipe
	{
		virtual ~IPipe() {}

		virtual size_t Read(ByteData dst, const CancellationToken& token) = 0;
		virtual size_t Write(ConstByteData src, const CancellationToken& token) = 0;
	};
	TOOLKIT_DECLARE_PTR(IPipe);

}


#endif
{'fraction_non_alphanumeric': 0.09683794466403162, 'fraction_numerical': 0.003952569169960474, 'mean_word_length': 6.034722222222222, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '3530460', 'n_tokens_mistral': 394, 'n_tokens_neox': 371, 'n_words': 74}