<commit_before>/*
 * Copyright(c) Sophist Solutions, Inc. 1990-2015.  All rights reserved
 */
#ifndef _Stroika_Foundation_Time_TimeOfDay_inl_
#define _Stroika_Foundation_Time_TimeOfDay_inl_ 1


/*
 ********************************************************************************
 ***************************** Implementation Details ***************************
 ********************************************************************************
 */
#include    "../Execution/Exceptions.h"

namespace   Stroika {
    namespace   Foundation {
        namespace   Time {


            /*
             ********************************************************************************
             ************************************ TimeOfDay *********************************
             ********************************************************************************
             */
            inline
#if     !qCompilerAndStdLib_constexpr_Buggy
            constexpr
#endif
            TimeOfDay::TimeOfDay ()
                : fTime_ (-1)
            {
            }

            inline
#if     !qCompilerAndStdLib_constexpr_Buggy
            constexpr
#endif
            TimeOfDay::TimeOfDay (uint32_t t)
                : fTime_ (t < kMaxSecondsPerDay ? t : (kMaxSecondsPerDay - 1))
            {
            }
            inline  TimeOfDay::TimeOfDay (unsigned int hour, unsigned int minute, unsigned int seconds)
                : TimeOfDay (static_cast<uint32_t> (((hour * 60) + minute) + seconds))
            {
            }
            inline  constexpr   bool    TimeOfDay::empty () const
            {
                return fTime_ == static_cast<unsigned int> (-1);
            }
            inline  constexpr   unsigned int    TimeOfDay::GetAsSecondsCount () const
            {
                return empty () ? 0 : fTime_;
            }
            inline  uint8_t TimeOfDay::GetHours () const
            {
                uint32_t    n   =   GetAsSecondsCount () / (60 * 60);<commit_msg>fixed bug with new TimeOfDay::TimeOfDay()<commit_after>/*
 * Copyright(c) Sophist Solutions, Inc. 1990-2015.  All rights reserved
 */
#ifndef _Stroika_Foundation_Time_TimeOfDay_inl_
#define _Stroika_Foundation_Time_TimeOfDay_inl_ 1


/*
 ********************************************************************************
 ***************************** Implementation Details ***************************
 ********************************************************************************
 */
#include    "../Execution/Exceptions.h"

namespace   Stroika {
    namespace   Foundation {
        namespace   Time {


            /*
             ********************************************************************************
             ************************************ TimeOfDay *********************************
             ********************************************************************************
             */
            inline
#if     !qCompilerAndStdLib_constexpr_Buggy
            constexpr
#endif
            TimeOfDay::TimeOfDay ()
                : fTime_ (-1)
            {
            }

            inline
#if     !qCompilerAndStdLib_constexpr_Buggy
            constexpr
#endif
            TimeOfDay::TimeOfDay (uint32_t t)
                : fTime_ (t < kMaxSecondsPerDay ? t : (kMaxSecondsPerDay - 1))
            {
            }
            inline  TimeOfDay::TimeOfDay (unsigned int hour, unsigned int minute, unsigned int seconds)
                : TimeOfDay (static_cast<uint32_t> (((hour * 60) + minute) * 60 + seconds))
            {
            }
            inline  constexpr   bool    TimeOfDay::empty () const
            {
                return fTime_ == static_cast<unsigned int> (-1);
            }
            inline  constexpr   unsigned int    TimeOfDay::GetAsSecondsCount () const
            {
                return empty () ? 0 : fTime_;
            }
            inline  uint8_t TimeOfDay::GetHours () const
            {
                uint32_t    n   =   GetAsSecondsCount () / (60 * 60);
{'fraction_non_alphanumeric': 0.2839811834612528, 'fraction_numerical': 0.01336964595196831, 'mean_word_length': 2.163664839467502, 'pattern_counts': {'":': 0, '<': 9, '<?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': '6609323', 'n_tokens_mistral': 1006, 'n_tokens_neox': 911, 'n_words': 190}