<commit_before>#include "app/rdo_studio_mfc/rdo_process/proc2rdo/stdafx.h"
#include "app/rdo_studio_mfc/rdo_process/proc2rdo/rdoprocess_shape.h"
#include "app/rdo_studio_mfc/rdo_process/proc2rdo/rdoprocess_method_proc2rdo.h"
#include "app/rdo_studio_mfc/rdo_process/proc2rdo/rdoprocess_shape_process.h" 
#include "app/rdo_studio_mfc/rdo_process/proc2rdo/rdoprocess_shape_create.h"
#include "app/rdo_studio_mfc/rdo_process/proc2rdo/rdoprocess_shape_decide.h"
#include "app/rdo_studio_mfc/rdo_process/proc2rdo/rdoprocess_shape_terminate.h"
#include "app/rdo_studio_mfc/rdo_process/proc2rdo/rdoprocess_shape_resource.h"

// --------------------------------------------------------------------------------
// -------------------- RPProcessFlowChart
// --------------------------------------------------------------------------------
RPProcessFlowChart::RPProcessFlowChart( RPObject* parent ):
	RPObjectFlowChart( parent ),
	RPProcessObject( get_this() )
{
	after_constructor();
/*
	RPProcessShapeCreate* shape_create = new RPProcessShapeCreate( this );
	shape_create->setPosition( 100, 100 );
	shape_create->gamount = 1000;
	shape_create->gname   = "_";
	shape_create->setName( tstring("_") );
	shape_create->gtype = 2;
	shape_create->gmin  = 10;
	shape_create->gmax  = 30;
	
	RPProcessShapeProcess* shape_process = new RPProcessShapeProcess( this );
	shape_process->setPosition( 100, 150 );
	shape_process->setName( tstring("_") );
	shape_process->gtype = 3;
	shape_process->gexp  = 7;

	shape_process = new RPProcessShapeProcess( this );
	shape_process->setPosition( 100, 200 );
	shape_process->gtype = 1;
	shape_process->gdisp = 2;
	shape_process->gexp  = 15;

	shape_process = new RPProcessShapeProcess( this );
	shape_process->setPosition( 100, 250 );
	shape_process->setName( tstring("_") );
	shape_process->gtype = 3;
	shape_process->gexp  = 5;

	RPProcessShapeTerminate* shape_terminate = new RPProcessShapeTerminate( this );
	shape_terminate->setPosition( 100, 200 );
	shape_terminate->setName( tstring("") );

	RPProcessShapeResource* shape_resource = new RPProcessShapeResource( this );
	shape_resource->setPosition( 100, 250 );

	shape_resource = new RPProcessShapeResource( this );
	shape_resource->setPosition( 100, 300 );
*/
}

RPObject* RPProcessFlowChart::newObject( RPObject* _parent )
{
	return new RPProcessFlowChart( _parent );
}

rpMethod::RPMethod* RPProcessFlowChart::getMethod()
{
	return proc2rdo;
}

void RPProcessFlowChart::saveToXML(REF(pugi::xml_node) parentNode) const
{
	pugi::xml_node node = parentNode.append_child(getClassName().c_str());
	node.append_attribute(_T("name")).set_value(getName().c_str());

	std::list<PTR(RPObject)> all_child;
	getAllChild(all_child);

	STL_FOR_ALL_CONST(all_child, it)
	{
		(*it)->saveToXML(node);
	}
}

void RPProcessFlowChart::loadFromXML(CREF(pugi::xml_node) node)
{
	setName(node.first_attribute().value());
	for(pugi::xml_node child = node.first_child(); child; child = child.next_sibling())
	{
		if (strcmp(child.name(), "RPObjectPixmap") != 0)
		{
			PTR(RPObject) pFlowObject = static_cast<PTR(RPObject)>(rpMethod::factory->getNewObject(child.name(), this));
			ASSERT(pFlowObject);
			pFlowObject->loadFromXML(child);
		}
	}
}
<commit_msg> - удалены комментарии<commit_after>#include "app/rdo_studio_mfc/rdo_process/proc2rdo/stdafx.h"
#include "app/rdo_studio_mfc/rdo_process/proc2rdo/rdoprocess_shape.h"
#include "app/rdo_studio_mfc/rdo_process/proc2rdo/rdoprocess_method_proc2rdo.h"
#include "app/rdo_studio_mfc/rdo_process/proc2rdo/rdoprocess_shape_process.h" 
#include "app/rdo_studio_mfc/rdo_process/proc2rdo/rdoprocess_shape_create.h"
#include "app/rdo_studio_mfc/rdo_process/proc2rdo/rdoprocess_shape_decide.h"
#include "app/rdo_studio_mfc/rdo_process/proc2rdo/rdoprocess_shape_terminate.h"
#include "app/rdo_studio_mfc/rdo_process/proc2rdo/rdoprocess_shape_resource.h"

// --------------------------------------------------------------------------------
// -------------------- RPProcessFlowChart
// --------------------------------------------------------------------------------
RPProcessFlowChart::RPProcessFlowChart( RPObject* parent ):
	RPObjectFlowChart( parent ),
	RPProcessObject( get_this() )
{
	after_constructor();
}

RPObject* RPProcessFlowChart::newObject( RPObject* _parent )
{
	return new RPProcessFlowChart( _parent );
}

rpMethod::RPMethod* RPProcessFlowChart::getMethod()
{
	return proc2rdo;
}

void RPProcessFlowChart::saveToXML(REF(pugi::xml_node) parentNode) const
{
	pugi::xml_node node = parentNode.append_child(getClassName().c_str());
	node.append_attribute(_T("name")).set_value(getName().c_str());

	std::list<PTR(RPObject)> all_child;
	getAllChild(all_child);

	STL_FOR_ALL_CONST(all_child, it)
	{
		(*it)->saveToXML(node);
	}
}

void RPProcessFlowChart::loadFromXML(CREF(pugi::xml_node) node)
{
	setName(node.first_attribute().value());
	for(pugi::xml_node child = node.first_child(); child; child = child.next_sibling())
	{
		if (strcmp(child.name(), "RPObjectPixmap") != 0)
		{
			PTR(RPObject) pFlowObject = static_cast<PTR(RPObject)>(rpMethod::factory->getNewObject(child.name(), this));
			ASSERT(pFlowObject);
			pFlowObject->loadFromXML(child);
		}
	}
}

{'fraction_non_alphanumeric': 0.19263296372862243, 'fraction_numerical': 0.015222702499530163, 'mean_word_length': 3.7688172043010755, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 36, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, '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': '418182', 'n_tokens_mistral': 2001, 'n_tokens_neox': 1885, 'n_words': 228}