<commit_before>/******************************************************************************
 *
 * AlarmInitiator.cc
 *
 * Author: msatyam
 *
 * November, 2016
 *
 * Implements alarm generation feature in order to send alarms to OSS
 * applications.
 *
 * ***************************************************************************/

#include "AlarmInitiator.hh"
/*
 = {
								
                                };*/
// intializes required data
AlarmInitiator::AlarmInitiator(string confFile)
{
	// store the wans conf file path
	wansConfFile = confFile;

	// fetch IP and Port from wans conf file
	ip = Helper::getVar(wansConfFile, "DD_IP");
	port = Helper::getVar(wansConfFile, "DD_PORT");

	ossServerfd = 0;
	alarm = "";

	alarmData.push_back(":type=alarm");
	alarmData.push_back(":type=alarm");
	alarmData.push_back("cpside=ex");
	alarmData.push_back("device=AD-0");
	alarmData.push_back("prca=42");
	alarmData.push_back("prseqno=0");
	alarmData.push_back("altype=new");
	alarmData.push_back("alcls=2");
	alarmData.push_back("alcat=8");<commit_msg>removed unnecesarry comment<commit_after>/******************************************************************************
 *
 * AlarmInitiator.cc
 *
 * Author: msatyam
 *
 * November, 2016
 *
 * Implements alarm generation feature in order to send alarms to OSS
 * applications.
 *
 * ***************************************************************************/

#include "AlarmInitiator.hh"
 
// intializes required data
AlarmInitiator::AlarmInitiator(string confFile)
{
	// store the wans conf file path
	wansConfFile = confFile;

	// fetch IP and Port from wans conf file
	ip = Helper::getVar(wansConfFile, "DD_IP");
	port = Helper::getVar(wansConfFile, "DD_PORT");

	ossServerfd = 0;
	alarm = "";

	alarmData.push_back(":type=alarm");
	alarmData.push_back(":type=alarm");
	alarmData.push_back("cpside=ex");
	alarmData.push_back("device=AD-0");
	alarmData.push_back("prca=42");
	alarmData.push_back("prseqno=0");
	alarmData.push_back("altype=new");
	alarmData.push_back("alcls=2");
	alarmData.push_back("alcat=8");
{'fraction_non_alphanumeric': 0.2743961352657005, 'fraction_numerical': 0.010628019323671498, 'mean_word_length': 5.533123028391167, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 3, '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': '6180276', 'n_tokens_mistral': 724, 'n_tokens_neox': 673, 'n_words': 119}