<commit_before>#ifndef CALVINDONE_CALVINMINI_H_
#define CALVINDONE_CALVINMINI_H_

#define MAX_LENGTH 1
#include <stdio.h>
#include <string>
#include "ArduinoJson.h"
#define standardOut(x)    strlen(x)
#define ACTOR_SIZE      5
#define QUEUE_SIZE      10
#define FIFO_SIZE     8     //Must be a power of two
#define NUMBER_OF_PORTS     2
#define RT_ID "calvin-arduino"
#define tunnel_id "fake-tunnel"
typedef unsigned char BYTE;

extern "C"{
/*
 * Enum for testing functions SUCCESS indicates
 * operation success and FAIL for operation faield.
 */
typedef enum{
  SUCCESS,
  FAIL
}rStatus;

typedef struct buffert{
  uint32_t element[FIFO_SIZE];
  int size;
  int read;
  int write;
}fifo;

typedef struct actors{
  String type;
  const char* name;
  const char* id;
  const char* fifo;
  String peer_port_id;
  String port_id;
  uint32_t count;
  int8_t (*fireActor)();
  struct buffert *inportsFifo[NUMBER_OF_PORTS];
  struct buffert *outportsFifo[NUMBER_OF_PORTS];
}actor;<commit_msg>New actor documentation<commit_after>#ifndef CALVINDONE_CALVINMINI_H_
#define CALVINDONE_CALVINMINI_H_

#define MAX_LENGTH 1
#include <stdio.h>
#include <string>
#include "ArduinoJson.h"
#define standardOut(x)    strlen(x)
#define ACTOR_SIZE      5
#define QUEUE_SIZE      10
#define FIFO_SIZE     8     //Must be a power of two
#define NUMBER_OF_PORTS     2
#define RT_ID "calvin-arduino"
#define tunnel_id "fake-tunnel"
typedef unsigned char BYTE;

extern "C"{
/*
 * Enum for testing functions SUCCESS indicates
 * operation success and FAIL for operation faield.
 */
typedef enum{
  SUCCESS,
  FAIL
}rStatus;

typedef struct buffert{
  uint32_t element[FIFO_SIZE];
  int size;
  int read;
  int write;
}fifo;

/*
 * This struct contains actor data
 */
typedef struct actors{
  String type;
  const char* name;
  const char* id;
  String peer_port_id;
  String port_id;
  uint32_t count;
  int8_t (*fireActor)();
  struct buffert *inportsFifo[NUMBER_OF_PORTS];
  struct buffert *outportsFifo[NUMBER_OF_PORTS];
}actor;
{'fraction_non_alphanumeric': 0.08823529411764706, 'fraction_numerical': 0.010967098703888335, 'mean_word_length': 4.395161290322581, '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': '331279', 'n_tokens_mistral': 774, 'n_tokens_neox': 724, 'n_words': 213}