<commit_before>#ifndef MCP2515_LIB_DEFINITIONS_H_
#define MCP2515_LIB_DEFINITIONS_H_

/*******************************************************************************
  SPI Commands
*******************************************************************************/
#define SPI_READ  0x03

/*******************************************************************************
  Register Addresses - Specific info about each register can be found in the
  datasheet.
*******************************************************************************/
#define CANINTF   0x2C

/*******************************************************************************
  Interrupt Flag Bit Masks - each bit mask aligns with a position in the CANINTF
  register. Specific info about each flag can be found in the datasheet.
*******************************************************************************/
#define MERRF     0x80
#define WAKIF     0x40
#define ERRIF     0x20
#define TX2IF     0x10
#define TX1IF     0x08
#define TX0IF     0x04
#define RX1IF     0x02
#define RX0IF     0x01

/*******************************************************************************
  Flag Test Macro - determines whether the specified flag is set.
    - flags:    a value read from the CANINTF register
    - bit_mask: one of the Interrupt Flag Bit Masks
*******************************************************************************/
#define IS_FLAG_SET(flags, bit_mask) (flags & bit_mask)

#endif
<commit_msg>Fix comment formatting<commit_after>#ifndef MCP2515_LIB_DEFINITIONS_H_
#define MCP2515_LIB_DEFINITIONS_H_

/*******************************************************************************
  SPI Commands
*******************************************************************************/
#define SPI_READ  0x03

/*******************************************************************************
  Register Addresses - specific info about each register can be found in the
  datasheet.
*******************************************************************************/
#define CANINTF   0x2C

/*******************************************************************************
  Interrupt Flag Bit Masks - each bit mask aligns with a position in the CANINTF
  register. Specific info about each flag can be found in the datasheet.
*******************************************************************************/
#define MERRF     0x80
#define WAKIF     0x40
#define ERRIF     0x20
#define TX2IF     0x10
#define TX1IF     0x08
#define TX0IF     0x04
#define RX1IF     0x02
#define RX0IF     0x01

/*******************************************************************************
  Flag Test Macro - determines whether the specified flag is set.
    - flags:    a value read from the CANINTF register
    - bit_mask: one of the Interrupt Flag Bit Masks
*******************************************************************************/
#define IS_FLAG_SET(flags, bit_mask) (flags & bit_mask)

#endif

{'fraction_non_alphanumeric': 0.45555931057789795, 'fraction_numerical': 0.028387968908415006, 'mean_word_length': 6.308641975308642, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4958927', 'n_tokens_mistral': 724, 'n_tokens_neox': 622, 'n_words': 216}