<commit_before>#ifndef BOOTLOADER_INFO_H__
#define BOOTLOADER_INFO_H__
#include <stdint.h>
#include <stdbool.h>
#include "dfu_types_mesh.h"

#define DFU_PUBLIC_KEY_LEN      (512)

#define BL_INFO_LEN_PUBLIC_KEY  (DFU_PUBLIC_KEY_LEN)
#define BL_INFO_LEN_SEGMENT     (9)
#define BL_INFO_LEN_FWID        (14)
#define BL_INFO_LEN_JOURNAL     ((2 * PAGE_SIZE) / 8)
#define BL_INFO_LEN_FLAGS       (1)

typedef enum
{
    BL_INFO_TYPE_INVALID            = 0x00,
    BL_INFO_TYPE_ECDSA_PUBLIC_KEY   = 0x01,
    BL_INFO_TYPE_VERSION            = 0x02,
    BL_INFO_TYPE_JOURNAL            = 0x03,
    BL_INFO_TYPE_FLAGS              = 0x04,

    BL_INFO_TYPE_SEGMENT_SD         = 0x10,
    BL_INFO_TYPE_SEGMENT_BL         = 0x11,
    BL_INFO_TYPE_SEGMENT_APP        = 0x12,
<commit_msg>bl info: correct journal length<commit_after>#ifndef BOOTLOADER_INFO_H__
#define BOOTLOADER_INFO_H__
#include <stdint.h>
#include <stdbool.h>
#include "dfu_types_mesh.h"

#define DFU_PUBLIC_KEY_LEN      (512)

#define BL_INFO_LEN_PUBLIC_KEY  (DFU_PUBLIC_KEY_LEN)
#define BL_INFO_LEN_SEGMENT     (9)
#define BL_INFO_LEN_FWID        (14)
#define BL_INFO_LEN_JOURNAL     ((2 * PAGE_COUNT) / 8)
#define BL_INFO_LEN_FLAGS       (1)

typedef enum
{
    BL_INFO_TYPE_INVALID            = 0x00,
    BL_INFO_TYPE_ECDSA_PUBLIC_KEY   = 0x01,
    BL_INFO_TYPE_VERSION            = 0x02,
    BL_INFO_TYPE_JOURNAL            = 0x03,
    BL_INFO_TYPE_FLAGS              = 0x04,

    BL_INFO_TYPE_SEGMENT_SD         = 0x10,
    BL_INFO_TYPE_SEGMENT_BL         = 0x11,
    BL_INFO_TYPE_SEGMENT_APP        = 0x12,

{'fraction_non_alphanumeric': 0.07183725365543547, 'fraction_numerical': 0.04195804195804196, 'mean_word_length': 2.944862155388471, 'pattern_counts': {'":': 0, '<': 7, '<?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': '14808', 'n_tokens_mistral': 706, 'n_tokens_neox': 651, 'n_words': 100}