<commit_before>// ----------------------------------------------------------------------------
// Constants.h
//
//
// Authors:
// <NAME> <EMAIL>
// ----------------------------------------------------------------------------
#ifndef _MODULAR_DEVICE_CONSTANTS_H_
#define _MODULAR_DEVICE_CONSTANTS_H_


namespace ModularDevice
{
namespace constants
{
enum{METHOD_COUNT_MAX=40};
enum{PARAMETER_COUNT_MAX=17};
enum{SAVED_VARIABLE_COUNT_MAX=11};

enum{STRING_LENGTH_REQUEST=257};
enum{STRING_LENGTH_ERROR=257};
enum{STRING_LENGTH_ERROR_PREAMBLE=50};
enum{STRING_LENGTH_DEVICE_NAME=32};
enum{STRING_LENGTH_PARAMETER_NAME=24};
enum{STRING_LENGTH_PARAMETER_UNITS=8};
enum{STRING_LENGTH_METHOD_NAME=32};
enum{STRING_LENGTH_DOUBLE=36};

enum {JSON_PARSER_SIZE=32};
enum {RESPONSE_DEPTH_MAX=8};
enum {METHOD_PARAMETER_COUNT_MAX=6};

enum ResponseCodes
  {
    ERROR=0,
    SUCCESS=1,
  };

enum ParameterType
  {
    LONG_PARAMETER,
    DOUBLE_PARAMETER,
    BOOL_PARAMETER,
    STRING_PARAMETER,<commit_msg>Increased SAVED_VARIABLE_COUNT_MAX from 11 to 12.<commit_after>// ----------------------------------------------------------------------------
// Constants.h
//
//
// Authors:
// <NAME> <EMAIL>
// ----------------------------------------------------------------------------
#ifndef _MODULAR_DEVICE_CONSTANTS_H_
#define _MODULAR_DEVICE_CONSTANTS_H_


namespace ModularDevice
{
namespace constants
{
enum{METHOD_COUNT_MAX=40}; //9 used internally
enum{PARAMETER_COUNT_MAX=17}; // 1 used internally
enum{SAVED_VARIABLE_COUNT_MAX=12}; // 2 used internally

enum{STRING_LENGTH_REQUEST=257};
enum{STRING_LENGTH_ERROR=257};
enum{STRING_LENGTH_ERROR_PREAMBLE=50};
enum{STRING_LENGTH_DEVICE_NAME=32};
enum{STRING_LENGTH_PARAMETER_NAME=24};
enum{STRING_LENGTH_PARAMETER_UNITS=8};
enum{STRING_LENGTH_METHOD_NAME=32};
enum{STRING_LENGTH_DOUBLE=36};

enum {JSON_PARSER_SIZE=32};
enum {RESPONSE_DEPTH_MAX=8};
enum {METHOD_PARAMETER_COUNT_MAX=6};

enum ResponseCodes
  {
    ERROR=0,
    SUCCESS=1,
  };

enum ParameterType
  {
    LONG_PARAMETER,
    DOUBLE_PARAMETER,
    BOOL_PARAMETER,
    STRING_PARAMETER,
{'fraction_non_alphanumeric': 0.23925501432664756, 'fraction_numerical': 0.031041069723018146, 'mean_word_length': 2.9232209737827715, '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': '6497347', 'n_tokens_mistral': 711, 'n_tokens_neox': 700, 'n_words': 93}