<commit_before>// Generation date: $$avarix:time.strftime('%Y-%m-%d %H:%m:%S')$$
/** @addtogroup ROME */
//@{
/** @file
 * @brief Definition of ROME frame and messages
 *
 * @note
 * This file is generated.
 * Generated symbols for a \e dummy message are provided.
 */
#ifndef ROME_MSG_H__
#define ROME_MSG_H__

#include <rome/rome.h>


#if DOXYGEN

/// ROME message IDs
typedef enum {
  ROME_MID_DUMMY = 0x42,
} rome_mid_t;

/// ROME frame
typedef struct {
  uint8_t plsize;  ///< length of payload data
  rome_mid_t mid; ///< message ID
  union {
    uint8_t _data[3];
    /// Data of dummy message
    struct {
      uint8_t a;
      int16_t b;
    } dummy;
  };
} __attribute__((__packed__)) rome_frame_t;

#else

typedef enum {
#pragma avarix_tpl self.mid_enum_fields()
} rome_mid_t;

typedef struct {
  uint8_t plsize;
  rome_mid_t mid;
  union {
    uint8_t _data[$$avarix:self.max_param_size()$$];
#pragma avarix_tpl self.msgdata_union_fields()
  };
} __attribute__((__packed__)) rome_frame_t;

#endif


#if DOXYGEN

/** @name Helper macros to deal with frames
 */
//@{

/// Set data of a dummy message frame
#define ROME_SET_DUMMY(frame, a, b)

/// Send a dummy message
#define ROME_SEND_DUMMY(intf, a, b)

//@}

#else

#pragma avarix_tpl self.macro_helpers()

#pragma avarix_tpl self.macro_disablers()

#endif
<commit_msg>rome: frame mid forced as uint8_t instead of enum<commit_after>// Generation date: $$avarix:time.strftime('%Y-%m-%d %H:%m:%S')$$
/** @addtogroup ROME */
//@{
/** @file
 * @brief Definition of ROME frame and messages
 *
 * @note
 * This file is generated.
 * Generated symbols for a \e dummy message are provided.
 */
#ifndef ROME_MSG_H__
#define ROME_MSG_H__

#include <rome/rome.h>


#if DOXYGEN

/// ROME message IDs
typedef enum {
  ROME_MID_DUMMY = 0x42,
} rome_mid_t;

/// ROME frame
typedef struct {
  uint8_t plsize;  ///< length of payload data
  uint8_t mid; ///< message ID
  union {
    uint8_t _data[3];
    /// Data of dummy message
    struct {
      uint8_t a;
      int16_t b;
    } dummy;
  };
} __attribute__((__packed__)) rome_frame_t;

#else

typedef enum {
#pragma avarix_tpl self.mid_enum_fields()
} rome_mid_t;

typedef struct {
  uint8_t plsize;
  uint8_t mid;
  union {
    uint8_t _data[$$avarix:self.max_param_size()$$];
#pragma avarix_tpl self.msgdata_union_fields()
  };
} __attribute__((__packed__)) rome_frame_t;

#endif


#if DOXYGEN

/** @name Helper macros to deal with frames
 */
//@{

/// Set data of a dummy message frame
#define ROME_SET_DUMMY(frame, a, b)

/// Send a dummy message
#define ROME_SEND_DUMMY(intf, a, b)

//@}

#else

#pragma avarix_tpl self.macro_helpers()

#pragma avarix_tpl self.macro_disablers()

#endif

{'fraction_non_alphanumeric': 0.13325909428359317, 'fraction_numerical': 0.009279881217520415, 'mean_word_length': 3.5294117647058822, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, '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': '4122350', 'n_tokens_mistral': 1097, 'n_tokens_neox': 1062, 'n_words': 272}