<commit_before>#ifndef SRECORD_H
#define SRECORD_H
/**
 * \file srecord.h
 * \brief Low-level utility functions to create, read, write, and print Motorola S-Record binary records.
 * \author <NAME> <<EMAIL>>
 * \date February 2011
 * \version 1.0.5
 */

#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>

/* General definition of the S-Record specification */
enum _SRecordDefinitions {
	/* 768 should be plenty of space to read in an S-Record */
	SRECORD_RECORD_BUFF_SIZE = 768,
	/* Offsets and lengths of various fields in an S-Record record */
	SRECORD_TYPE_OFFSET = 1,
	SRECORD_TYPE_LEN = 1,
	SRECORD_COUNT_OFFSET = 2,
	SRECORD_COUNT_LEN = 2,
	SRECORD_ADDRESS_OFFSET = 4,
	SRECORD_CHECKSUM_LEN = 2,
	/* Maximum ascii hex length of the S-Record data field */
	SRECORD_MAX_DATA_LEN = 64,
	/* Maximum ascii hex length of the S-Record address field */
	SRECORD_MAX_ADDRESS_LEN = 8,
	/* Ascii hex length of a single byte */
	SRECORD_ASCII_HEX_BYTE_LEN = 2,
	/* Start code offset and value */
	SRECORD_START_CODE_OFFSET = 0,
	SRECORD_START_CODE = 'S',<commit_msg>increase maximum srecord record data length<commit_after>#ifndef SRECORD_H
#define SRECORD_H
/**
 * \file srecord.h
 * \brief Low-level utility functions to create, read, write, and print Motorola S-Record binary records.
 * \author <NAME> <<EMAIL>>
 * \date February 2011
 * \version 1.0.5
 */

#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>

/* General definition of the S-Record specification */
enum _SRecordDefinitions {
	/* 768 should be plenty of space to read in an S-Record */
	SRECORD_RECORD_BUFF_SIZE = 768,
	/* Offsets and lengths of various fields in an S-Record record */
	SRECORD_TYPE_OFFSET = 1,
	SRECORD_TYPE_LEN = 1,
	SRECORD_COUNT_OFFSET = 2,
	SRECORD_COUNT_LEN = 2,
	SRECORD_ADDRESS_OFFSET = 4,
	SRECORD_CHECKSUM_LEN = 2,
	/* Maximum ascii hex length of the S-Record data field */
	SRECORD_MAX_DATA_LEN = 254*2,
	/* Maximum ascii hex length of the S-Record address field */
	SRECORD_MAX_ADDRESS_LEN = 8,
	/* Ascii hex length of a single byte */
	SRECORD_ASCII_HEX_BYTE_LEN = 2,
	/* Start code offset and value */
	SRECORD_START_CODE_OFFSET = 0,
	SRECORD_START_CODE = 'S',
{'fraction_non_alphanumeric': 0.10076818798011748, 'fraction_numerical': 0.022593764121102575, 'mean_word_length': 4.1013824884792625, 'pattern_counts': {'":': 0, '<': 17, '<?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': '6142158', 'n_tokens_mistral': 852, 'n_tokens_neox': 787, 'n_words': 242}