<commit_before>/**
 * @file       WidgetTimeInput.h
 * @author     <NAME>
 * @license    This project is released under the MIT License (MIT)
 * @copyright  Copyright (c) 2015 <NAME>
 * @date       Aug 2016
 * @brief
 *
 */

#ifndef WidgetTimeInput_h
#define WidgetTimeInput_h

#include <Blynk/BlynkApi.h>
#include <utility/BlynkDateTime.h>

class TimeInputParam
{
public:

	TimeInputParam(const BlynkParam& param)
		: mStart (param[0].asLong())
		, mStop  (param[1].asLong())
	{
		mTZ = param[2].asLong();
	}

	BlynkDateTime& getStart() { return mStart; }
	BlynkDateTime& getStop()  { return mStop;  }
    long getTZ()  const { return mTZ; }

private:
    BlynkDateTime mStart;
    BlynkDateTime mStop;
    long mTZ;
};

#endif<commit_msg>Switch to Time instead of DateTime<commit_after>/**
 * @file       WidgetTimeInput.h
 * @author     <NAME>
 * @license    This project is released under the MIT License (MIT)
 * @copyright  Copyright (c) 2015 <NAME>
 * @date       Aug 2016
 * @brief
 *
 */

#ifndef WidgetTimeInput_h
#define WidgetTimeInput_h

#include <Blynk/BlynkApi.h>
#include <utility/BlynkDateTime.h>

class TimeInputParam
{
public:

	TimeInputParam(const BlynkParam& param)
	{
		if (strlen(param[0].asStr())) {
			mStart = param[0].asLong();
		}
		if (strlen(param[1].asStr())) {
			mStop = param[1].asLong();
		}
		mTZ = param[2].asLong();
	}

	BlynkTime& getStart() { return mStart; }
	BlynkTime& getStop()  { return mStop;  }
    long getTZ()  const { return mTZ; }

private:
    BlynkTime mStart;
    BlynkTime mStop;
    long mTZ;
};

#endif
{'fraction_non_alphanumeric': 0.1358974358974359, 'fraction_numerical': 0.015384615384615385, 'mean_word_length': 3.4985590778097984, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '6464563', 'n_tokens_mistral': 617, 'n_tokens_neox': 582, 'n_words': 138}