<commit_before>/*
 * $Id: time_date_section.cpp,v 1.4 2006/03/28 17:22:00 ghostrider Exp $
 *
 * Copyright (C) 2002-2005 <NAME> <<EMAIL>>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License version 2.1 as published by the Free Software Foundation.
 *
 * See the file 'COPYING' in the top level directory for details.
 */

#include <dvbsi++/byte_stream.h>
#include <dvbsi++/time_date_section.h>

TimeAndDateSection::TimeAndDateSection(const uint8_t * const buffer) : ShortSection(buffer)
{
	if (sectionLength > 8) {
		utcTimeMjd = UINT16(&buffer[3]);
		utcTimeBcd = (buffer[5] << 16) | UINT16(&buffer[6]);
	}
	else {<commit_msg>src/time_date_section.cpp: fix sectionLength check<commit_after>/*
 * $Id: time_date_section.cpp,v 1.4 2006/03/28 17:22:00 ghostrider Exp $
 *
 * Copyright (C) 2002-2005 <NAME> <<EMAIL>>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License version 2.1 as published by the Free Software Foundation.
 *
 * See the file 'COPYING' in the top level directory for details.
 */

#include <dvbsi++/byte_stream.h>
#include <dvbsi++/time_date_section.h>

TimeAndDateSection::TimeAndDateSection(const uint8_t * const buffer) : ShortSection(buffer)
{
	if (sectionLength >= 5) {
		utcTimeMjd = UINT16(&buffer[3]);
		utcTimeBcd = (buffer[5] << 16) | UINT16(&buffer[6]);
	}
	else {
{'fraction_non_alphanumeric': 0.12789115646258503, 'fraction_numerical': 0.050340136054421766, 'mean_word_length': 4.571969696969697, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 15, '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': '1749282', 'n_tokens_mistral': 554, 'n_tokens_neox': 499, 'n_words': 151}