<commit_before>#include "MoveAbleElemManager.h"
#include "cocos2d.h"
#include "MoveAbleElem.h"
#include "Obstacle.h"
#include "Coin.h"
#include "Player.h"


using namespace std;
USING_NS_CC;


MoveAbleElemManager * MoveAbleElemManager::s_pMoveAbleElemManager = nullptr;

MoveAbleElemManager::MoveAbleElemManager() :_mElemFactories({})
{
}

MoveAbleElemManager::~MoveAbleElemManager()
{
}

MoveAbleElemManager * MoveAbleElemManager::getInstance(void)
{
	if (s_pMoveAbleElemManager == nullptr)
	{
		s_pMoveAbleElemManager = new MoveAbleElemManager();
		s_pMoveAbleElemManager->init();
	}
	return s_pMoveAbleElemManager;
}

void MoveAbleElemManager::destroyInstance(void)
{
	if (s_pMoveAbleElemManager != nullptr)
	{
		s_pMoveAbleElemManager->release();
		s_pMoveAbleElemManager = nullptr;
	}
	
}

void MoveAbleElemManager::init(void)
{<commit_msg>finished destructer:clear factories and its create func<commit_after>#include "MoveAbleElemManager.h"
#include "cocos2d.h"
#include "MoveAbleElem.h"
#include "Obstacle.h"
#include "Coin.h"
#include "Player.h"


using namespace std;
USING_NS_CC;


MoveAbleElemManager * MoveAbleElemManager::s_pMoveAbleElemManager = nullptr;

MoveAbleElemManager::MoveAbleElemManager() :_mElemFactories({})
{
}

MoveAbleElemManager::~MoveAbleElemManager()
{
	_mElemFactories.clear();
	_mFactoryCreatFunc.clear();
}

MoveAbleElemManager * MoveAbleElemManager::getInstance(void)
{
	if (s_pMoveAbleElemManager == nullptr)
	{
		s_pMoveAbleElemManager = new MoveAbleElemManager();
		s_pMoveAbleElemManager->init();
	}
	return s_pMoveAbleElemManager;
}

void MoveAbleElemManager::destroyInstance(void)
{
	if (s_pMoveAbleElemManager != nullptr)
	{
		s_pMoveAbleElemManager->release();
		s_pMoveAbleElemManager = nullptr;
	}
	
}

void MoveAbleElemManager::init(void)
{
{'fraction_non_alphanumeric': 0.11583659764969222, 'fraction_numerical': 0.001119194180190263, 'mean_word_length': 7.721951219512195, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '4416320', 'n_tokens_mistral': 683, 'n_tokens_neox': 667, 'n_words': 94}