<commit_before>/*
 * Copyright (C) 2017 Freie Universität Berlin
 *
 * This file is subject to the terms and conditions of the GNU Lesser
 * General Public License v2.1. See the file LICENSE in the top level
 * directory for more details.
 */

/**
 * @defgroup    net_rdcli_config CoRE RD Client Configuration
 * @ingroup     net
 * @brief       Shared CoRE Resource Directory Client Configuration
 * @{
 *
 * @file
 * @brief
 *
 * @author      <NAME> <<EMAIL>>
 */

#ifndef NET_RDCLI_CONFIG_H
#define NET_RDCLI_CONFIG_H

#include "net/ipv6/addr.h"

#ifdef __cplusplus
extern "C" {
#endif

/**
 * @brief   Default lifetime in seconds (the default is 1 day)
 */
#ifndef RDCLI_LT
#define RDCLI_LT                (86400UL)
#endif

/**
 * @brief   Delay until the RD client starts to try registering (in seconds)
 */
#ifndef RDCLI_STARTUP_DELAY
#define RDCLI_STARTUP_DELAY     (3U)
#endif

/**
 * @brief   Default client update interval (default is half the lifetime)
 */
#ifndef RDCLI_UPDATE_INTERVAL
#define RDCLI_UPDATE_INTERVAL   (RDCLI_LT / 2)
#endif

/**
 * @name    Endpoint ID definition
 *
 * Per default, the endpoint ID (ep) is generated by concatenation of a user
 * defined prefix (RDCLI_EP_PREFIX) and a locally unique ID (luid) encoded in
 * hexadecimal formatting with the given length of characters
 * (RDCLI_EP_SUFFIX_LEN).
 *
 * Alternatively, the endpoint ID value can be defined at compile time by
 * assigning a string value to the RDCLI_ED macro.
 *
 * @{
 */
#ifndef RDCLI_EP
/**
 * @brief   Number of generated hexadecimal characters added to the ep
 *
 * @note    Must be an even number
 */
#define RDCLI_EP_SUFFIX_LEN     (16)

/**
 * @brief   Default static prefix used for the generated ep
 */
#define RDCLI_EP_PREFIX         "RIOT-"
#endif
/** @} */

/**
 * @brief   Use ALL_NODES multicast address as default address when looking for
 *          a RD server
 */
#ifndef RDCLI_SERVER_ADDR
#define RDCLI_SERVER_ADDR       "fd00:a516:7c1b:17cd:6d81:2137:bd2a:2c5b"
#endif

/**
 * @brief   Default Port to use when looking for RDs
 */
#ifndef RDCLI_SERVER_PORT
#define RDCLI_SERVER_PORT       COAP_PORT
#endif

#ifdef __cplusplus
}
#endif

#endif /* NET_RDCLI_CONFIG_H */
/** @} */
<commit_msg>net/rdcli_common: added RES_LOC_LEN<commit_after>/*
 * Copyright (C) 2017-2018 Freie Universität Berlin
 *
 * This file is subject to the terms and conditions of the GNU Lesser
 * General Public License v2.1. See the file LICENSE in the top level
 * directory for more details.
 */

/**
 * @defgroup    net_rdcli_config CoRE RD Client Configuration
 * @ingroup     net
 * @brief       Shared CoRE Resource Directory Client Configuration
 * @{
 *
 * @file
 * @brief       CoRE RD Client static configuration default values
 *
 * @author      <NAME> <<EMAIL>>
 */

#ifndef NET_RDCLI_CONFIG_H
#define NET_RDCLI_CONFIG_H

#include "net/ipv6/addr.h"

#ifdef __cplusplus
extern "C" {
#endif

/**
 * @brief   Default lifetime in seconds (the default is 1 day)
 */
#ifndef RDCLI_LT
#define RDCLI_LT                (86400UL)
#endif

/**
 * @brief   Delay until the RD client starts to try registering (in seconds)
 */
#ifndef RDCLI_STARTUP_DELAY
#define RDCLI_STARTUP_DELAY     (3U)
#endif

/**
 * @brief   Default client update interval (default is 3/4 the lifetime)
 */
#ifndef RDCLI_UPDATE_INTERVAL
#define RDCLI_UPDATE_INTERVAL   ((RDCLI_LT / 4) * 3)
#endif

/**
 * @name    Endpoint ID definition
 *
 * Per default, the endpoint ID (ep) is generated by concatenation of a user
 * defined prefix (RDCLI_EP_PREFIX) and a locally unique ID (luid) encoded in
 * hexadecimal formatting with the given length of characters
 * (RDCLI_EP_SUFFIX_LEN).
 *
 * Alternatively, the endpoint ID value can be defined at compile time by
 * assigning a string value to the RDCLI_ED macro.
 *
 * @{
 */
#ifndef RDCLI_EP
/**
 * @brief   Number of generated hexadecimal characters added to the ep
 *
 * @note    Must be an even number
 */
#define RDCLI_EP_SUFFIX_LEN     (16)

/**
 * @brief   Default static prefix used for the generated ep
 */
#define RDCLI_EP_PREFIX         "RIOT-"
#endif
/** @} */

/**
 * @brief   Use ALL_NODES multicast address as default address when looking for
 *          a RD server
 */
#ifndef RDCLI_SERVER_ADDR
#define RDCLI_SERVER_ADDR       "fd00:a516:7c1b:17cd:6d81:2137:bd2a:2c5b"
#endif

/**
 * @brief   Default Port to use when looking for RDs
 */
#ifndef RDCLI_SERVER_PORT
#define RDCLI_SERVER_PORT       COAP_PORT
#endif

#ifdef __cplusplus
}
#endif

#endif /* NET_RDCLI_CONFIG_H */
/** @} */

{'fraction_non_alphanumeric': 0.09440636745522883, 'fraction_numerical': 0.01746628344019456, 'mean_word_length': 3.4136585365853658, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2622362', 'n_tokens_mistral': 1603, 'n_tokens_neox': 1506, 'n_words': 508}