<commit_before>/* Catena4450_begin.cpp	Sun Mar 12 2017 19:19:28 tmm */

/*

Module:  Catena4450_begin.cpp

Function:
	Catena4450::begin()

Version:
	V0.5.0	Sun Mar 12 2017 19:19:28 tmm	Edit level 1

Copyright notice:
	This file copyright (C) 2017 by

		MCCI Corporation
		3520 Krums Corners Road
		Ithaca, NY  14850

	An unpublished work.  All rights reserved.
	
	This file is proprietary information, and may not be disclosed or
	copied without the prior permission of MCCI Corporation.
 
Author:
	<NAME>, MCCI Corporation	March 2017

Revision history:
   0.5.0  Sun Mar 12 2017 19:19:28  tmm
	Module created.

*/

#include <Catena4450.h>

using namespace McciCatena;

/*

Name:	Catena4450::begin()

Function:
	Set up all the well-known board peripherals.

Definition:
	bool Catena4450::begin();

Description:
	Issues begin() for all the Catena4450 things.

Returns:
	true for success, false for failure.

*/


bool Catena4450::begin()
	{
	if (! this->Super::begin())
		return false;

	// start the FRAM
	if (! this->m_Fram.begin())
		return false;

        // set up the command line collector
	this->m_Collector.begin(&Serial, &this->m_SerialReady);
	
	return true;
	}

<commit_msg>Register the line-collector for polling<commit_after>/* Catena4450_begin.cpp	Sun Mar 12 2017 19:19:28 tmm */

/*

Module:  Catena4450_begin.cpp

Function:
	Catena4450::begin()

Version:
	V0.5.0	Sun Mar 12 2017 19:19:28 tmm	Edit level 1

Copyright notice:
	This file copyright (C) 2017 by

		MCCI Corporation
		3520 Krums Corners Road
		Ithaca, NY  14850

	An unpublished work.  All rights reserved.
	
	This file is proprietary information, and may not be disclosed or
	copied without the prior permission of MCCI Corporation.
 
Author:
	<NAME>, MCCI Corporation	March 2017

Revision history:
   0.5.0  Sun Mar 12 2017 19:19:28  tmm
	Module created.

*/

#include <Catena4450.h>

using namespace McciCatena;

/*

Name:	Catena4450::begin()

Function:
	Set up all the well-known board peripherals.

Definition:
	bool Catena4450::begin();

Description:
	Issues begin() for all the Catena4450 things.

Returns:
	true for success, false for failure.

*/


bool Catena4450::begin()
	{
	if (! this->Super::begin())
		return false;

	// start the FRAM
	if (! this->m_Fram.begin())
		return false;

        // set up the command line collector
	this->m_Collector.begin(&Serial, &this->m_SerialReady);
        this->registerObject(&this->m_Collector);

	return true;
	}


{'fraction_non_alphanumeric': 0.09767061708214139, 'fraction_numerical': 0.07519411524315488, 'mean_word_length': 3.653992395437262, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 17, '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': '748727', 'n_tokens_mistral': 1012, 'n_tokens_neox': 842, 'n_words': 281}