<commit_before>/*
 * Copyright (C) 2014 <NAME> <<EMAIL>>
 */

#pragma once

#include <uavcan/impl_constants.hpp>
#include <uavcan/stdint.hpp>

namespace uavcan
{
namespace
{
/**
 * Common error codes.
 * Functions that return signed integers may also return inverted error codes,
 * i.e. returned value should be inverted back to get the actual error code.
 */
const int16_t ErrOk                      = 0;
const int16_t ErrFailure                 = 1;
const int16_t ErrInvalidParam            = 2;
const int16_t ErrMemory                  = 3;
const int16_t ErrDriver                  = 4;
const int16_t ErrUnknownDataType         = 5;
const int16_t ErrInvalidMarshalData      = 6;
const int16_t ErrInvalidTransferListener = 7;
const int16_t ErrNotInited               = 8;
const int16_t ErrRecursiveCall           = 9;
const int16_t ErrLogic                   = 10;

}

/**
 * Fatal error handler.
 * Throws std::runtime_error() if exceptions are available, otherwise calls assert(0) then std::abort().
 */<commit_msg>Removed unused constant ErrOk<commit_after>/*
 * Copyright (C) 2014 <NAME> <<EMAIL>>
 */

#pragma once

#include <uavcan/impl_constants.hpp>
#include <uavcan/stdint.hpp>

namespace uavcan
{
namespace
{
/**
 * Common error codes.
 * Functions that return signed integers may also return inverted error codes,
 * i.e. returned value should be inverted back to get the actual error code.
 */
const int16_t ErrFailure                 = 1;
const int16_t ErrInvalidParam            = 2;
const int16_t ErrMemory                  = 3;
const int16_t ErrDriver                  = 4;
const int16_t ErrUnknownDataType         = 5;
const int16_t ErrInvalidMarshalData      = 6;
const int16_t ErrInvalidTransferListener = 7;
const int16_t ErrNotInited               = 8;
const int16_t ErrRecursiveCall           = 9;
const int16_t ErrLogic                   = 10;

}

/**
 * Fatal error handler.
 * Throws std::runtime_error() if exceptions are available, otherwise calls assert(0) then std::abort().
 */
{'fraction_non_alphanumeric': 0.08358208955223881, 'fraction_numerical': 0.03731343283582089, 'mean_word_length': 2.5910714285714285, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '6182062', 'n_tokens_mistral': 655, 'n_tokens_neox': 593, 'n_words': 199}