<commit_before>#include "serializationData.h"

QDataStream &operator<< (QDataStream &out, const NodeData &data)
{
	out << data.id << data.logicalId << data.parentId << data.pos << data.contents
			<< data.graphicalProperties << data.logicalProperties << data.explosion;
	return out;
}

QDataStream &operator>> (QDataStream &in, NodeData &data)
{
	in >> data.id >> data.logicalId >> data.parentId >> data.pos >> data.contents
			>> data.graphicalProperties >> data.logicalProperties >> data.explosion;
	return in;
}

QDataStream &operator<< (QDataStream &out, const EdgeData &data)
{
	out << data.id << data.logicalId << data.srcId << data.dstId
			<< data.portFrom << data.portTo
			<< data.configuration << data.pos
			<< data.logicalProperties;
	return out;
}

QDataStream &operator>> (QDataStream &in, EdgeData &data)
{
	in >> data.id >> data.logicalId >> data.srcId >> data.dstId
			>> data.portFrom >> data.portTo
			>> data.configuration >> data.pos
			>> data.logicalProperties;
	return in;
}

bool operator== (const NodeData &first, const NodeData &second)
{
	return first.id == second.id
			&& first.parentId == second.parentId
			&& first.pos == second.pos
			&& first.logicalProperties == second.logicalProperties
			&& first.graphicalProperties == second.graphicalProperties
			&& first.contents == second.contents
			&& first.logicalId == second.logicalId
			&& first.explosion == second.explosion;
}

bool operator== (const EdgeData &first, const EdgeData &second)
{
	return first.id == second.id && first.logicalId == second.logicalId
			&& first.srcId == second.srcId && first.dstId == second.dstId
			&& first.portFrom == second.portFrom && first.portTo == second.portTo
			&& first.configuration == second.configuration && first.pos == second.pos
			&& first.logicalProperties == second.logicalProperties;
}
<commit_msg>Fixed incorrect shape restoration type when copy-pasting links<commit_after>#include "serializationData.h"

QDataStream &operator<< (QDataStream &out, const NodeData &data)
{
	out << data.id << data.logicalId << data.parentId << data.pos << data.contents
			<< data.graphicalProperties << data.logicalProperties << data.explosion;
	return out;
}

QDataStream &operator>> (QDataStream &in, NodeData &data)
{
	in >> data.id >> data.logicalId >> data.parentId >> data.pos >> data.contents
			>> data.graphicalProperties >> data.logicalProperties >> data.explosion;
	return in;
}

QDataStream &operator<< (QDataStream &out, const EdgeData &data)
{
	out << data.id << data.logicalId << data.srcId << data.dstId
			<< data.portFrom << data.portTo
			<< data.configuration << data.pos
			<< data.shapeType << data.logicalProperties;
	return out;
}

QDataStream &operator>> (QDataStream &in, EdgeData &data)
{
	in >> data.id >> data.logicalId >> data.srcId >> data.dstId
			>> data.portFrom >> data.portTo
			>> data.configuration >> data.pos
			>> data.shapeType >> data.logicalProperties;
	return in;
}

bool operator== (const NodeData &first, const NodeData &second)
{
	return first.id == second.id
			&& first.parentId == second.parentId
			&& first.pos == second.pos
			&& first.logicalProperties == second.logicalProperties
			&& first.graphicalProperties == second.graphicalProperties
			&& first.contents == second.contents
			&& first.logicalId == second.logicalId
			&& first.explosion == second.explosion;
}

bool operator== (const EdgeData &first, const EdgeData &second)
{
	return first.id == second.id && first.logicalId == second.logicalId
			&& first.srcId == second.srcId && first.dstId == second.dstId
			&& first.portFrom == second.portFrom && first.portTo == second.portTo
			&& first.configuration == second.configuration && first.pos == second.pos
			&& first.logicalProperties == second.logicalProperties;
}

{'fraction_non_alphanumeric': 0.14809890986439778, 'fraction_numerical': 0.0, 'mean_word_length': 4.321074964639321, 'pattern_counts': {'":': 0, '<': 81, '<?xml version=': 0, '>': 81, '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': '4493431', 'n_tokens_mistral': 1257, 'n_tokens_neox': 1172, 'n_words': 261}