<commit_before>#include "ProcessNode.h"

namespace pipeline {

bool
ProcessNode::setInput(OutputBase& output) {

	return getInput().accept(output);
}

bool
ProcessNode::setInput(unsigned int i, OutputBase& output) {

	return getInput(i).accept(output);
}

bool
ProcessNode::setInput(const std::string& name, OutputBase& output) {

	return getInput(name).accept(output);
}

bool
ProcessNode::setInput(boost::shared_ptr<Data> data) {

	return getInput().accept(data);
}

bool
ProcessNode::setInput(unsigned int i, boost::shared_ptr<Data> data) {

	return getInput(i).accept(data);
}

bool
ProcessNode::setInput(const std::string& name, boost::shared_ptr<Data> data) {

	return getInput(name).accept(data);
}

void
ProcessNode::unsetInput() {

	return getInput().unset();
}

void
ProcessNode::unsetInput(unsigned int i) {

	return getInput(i).unset();
}

void
ProcessNode::unsetInput(const std::string& name) {

	return getInput(name).unset();
}

bool
ProcessNode::setInput(InputBase& input) {

	if (input.hasAssignedOutput())
		return getInput().accept(input.getAssignedOutput());
	else
		return getInput().accept(input.getAssignedSharedPtr());
}

bool
ProcessNode::setInput(unsigned int i, InputBase& input) {

	if (input.hasAssignedOutput())
		return getInput(i).accept(input.getAssignedOutput());
	else
		return getInput(i).accept(input.getAssignedSharedPtr());
}

bool
ProcessNode::setInput(const std::string& name, InputBase& input) {

	if (input.hasAssignedOutput())
		return getInput(name).accept(input.getAssignedOutput());
	else
		return getInput(name).accept(input.getAssignedSharedPtr());
}

bool
ProcessNode::addInput(OutputBase& output) {

	return getMultiInput().accept(output);
}

bool
ProcessNode::addInput(unsigned int i, OutputBase& output) {

	return getMultiInput(i).accept(output);
}

bool
ProcessNode::addInput(const std::string& name, OutputBase& output) {

	return getMultiInput(name).accept(output);
}

bool
ProcessNode::addInput(InputBase& input) {

	if (input.hasAssignedOutput())
		return getMultiInput().accept(input.getAssignedOutput());

	return false;
}

bool
ProcessNode::addInput(unsigned int i, InputBase& input) {

	if (input.hasAssignedOutput())
		return getMultiInput(i).accept(input.getAssignedOutput());

	return false;
}

bool
ProcessNode::addInput(const std::string& name, InputBase& input) {

	if (input.hasAssignedOutput())
		return getMultiInput(name).accept(input.getAssignedOutput());

	return false;
}

void
ProcessNode::clearInputs(unsigned int i) {

	getMultiInput(i).clear();
}

void
ProcessNode::clearInputs(const std::string& name) {

	getMultiInput(name).clear();
}
<commit_msg>fixed assignment of Input<T> to Inputs<T> for shared-pointer Input<T>s<commit_after>#include "ProcessNode.h"

namespace pipeline {

bool
ProcessNode::setInput(OutputBase& output) {

	return getInput().accept(output);
}

bool
ProcessNode::setInput(unsigned int i, OutputBase& output) {

	return getInput(i).accept(output);
}

bool
ProcessNode::setInput(const std::string& name, OutputBase& output) {

	return getInput(name).accept(output);
}

bool
ProcessNode::setInput(boost::shared_ptr<Data> data) {

	return getInput().accept(data);
}

bool
ProcessNode::setInput(unsigned int i, boost::shared_ptr<Data> data) {

	return getInput(i).accept(data);
}

bool
ProcessNode::setInput(const std::string& name, boost::shared_ptr<Data> data) {

	return getInput(name).accept(data);
}

void
ProcessNode::unsetInput() {

	return getInput().unset();
}

void
ProcessNode::unsetInput(unsigned int i) {

	return getInput(i).unset();
}

void
ProcessNode::unsetInput(const std::string& name) {

	return getInput(name).unset();
}

bool
ProcessNode::setInput(InputBase& input) {

	if (input.hasAssignedOutput())
		return getInput().accept(input.getAssignedOutput());
	else
		return getInput().accept(input.getAssignedSharedPtr());
}

bool
ProcessNode::setInput(unsigned int i, InputBase& input) {

	if (input.hasAssignedOutput())
		return getInput(i).accept(input.getAssignedOutput());
	else
		return getInput(i).accept(input.getAssignedSharedPtr());
}

bool
ProcessNode::setInput(const std::string& name, InputBase& input) {

	if (input.hasAssignedOutput())
		return getInput(name).accept(input.getAssignedOutput());
	else
		return getInput(name).accept(input.getAssignedSharedPtr());
}

bool
ProcessNode::addInput(OutputBase& output) {

	return getMultiInput().accept(output);
}

bool
ProcessNode::addInput(unsigned int i, OutputBase& output) {

	return getMultiInput(i).accept(output);
}

bool
ProcessNode::addInput(const std::string& name, OutputBase& output) {

	return getMultiInput(name).accept(output);
}

bool
ProcessNode::addInput(InputBase& input) {

	if (input.hasAssignedOutput())
		return getMultiInput().accept(input.getAssignedOutput());
	else
		return getMultiInput().accept(input.getAssignedSharedPtr());

	return false;
}

bool
ProcessNode::addInput(unsigned int i, InputBase& input) {

	if (input.hasAssignedOutput())
		return getMultiInput(i).accept(input.getAssignedOutput());
	else
		return getMultiInput(i).accept(input.getAssignedSharedPtr());

	return false;
}

bool
ProcessNode::addInput(const std::string& name, InputBase& input) {

	if (input.hasAssignedOutput())
		return getMultiInput(name).accept(input.getAssignedOutput());
	else
		return getMultiInput(name).accept(input.getAssignedSharedPtr());

	return false;
}

void
ProcessNode::clearInputs(unsigned int i) {

	getMultiInput(i).clear();
}

void
ProcessNode::clearInputs(const std::string& name) {

	getMultiInput(name).clear();
}

{'fraction_non_alphanumeric': 0.14396816784228614, 'fraction_numerical': 0.0, 'mean_word_length': 6.968299711815562, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, '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': '1302578', 'n_tokens_mistral': 1855, 'n_tokens_neox': 1791, 'n_words': 341}