<commit_before>/*
 * Copyright (C) 2013 Argonne National Laboratory, Department of Energy,
 *                    UChicago Argonne, LLC and The HDF Group.
 * All rights reserved.
 *
 * The full copyright notice, including terms governing use, modification,
 * and redistribution, is contained in the COPYING file that can be
 * found at the root of the source code distribution tree.
 */

#ifndef NA_ERROR_H
#define NA_ERROR_H

#include "na_config.h"

/* For compatibility */
#if defined(__STDC_VERSION__) &&  (__STDC_VERSION__ < 199901L)
  #if defined(__GNUC__) && (__GNUC__ >= 2)
    #define __func__ __FUNCTION__
  #else
    #define __func__ "<unknown>"
  #endif
#elif defined(_WIN32)
  #define __func__ __FUNCTION__
#endif

/* Default error macro */
#ifdef NA_HAS_VERBOSE_ERROR
  #include <stdio.h>
  #define NA_LOG_ERROR(fmt, ...) do {                  \
      fprintf(stderr, "%s:%d: ERROR: " fmt,            \
                __func__, __LINE__, ##__VA_ARGS__);    \
  } while (0)
  #define NA_LOG_DEBUG(fmt, ...) do {                  \
      fprintf(stdout, "%s:%d: " fmt,                   \
              __func__, __LINE__, ##__VA_ARGS__);      \
  } while (0)
  #define NA_LOG_WARNING(fmt, ...) do {                \
      fprintf(stderr, "%s:%d: WARNING: " fmt,          \
              __func__, __LINE__, ##__VA_ARGS__);      \
  } while (0)
#else
  #define NA_LOG_ERROR(fmt, ...)
  #define NA_LOG_DEBUG(fmt, ...)
  #define NA_LOG_WARNING(fmt, ...)
#endif

#endif /* NA_ERROR_H */<commit_msg>Fix warnings introduced by NA_LOG_ERROR macro<commit_after>/*
 * Copyright (C) 2013 Argonne National Laboratory, Department of Energy,
 *                    UChicago Argonne, LLC and The HDF Group.
 * All rights reserved.
 *
 * The full copyright notice, including terms governing use, modification,
 * and redistribution, is contained in the COPYING file that can be
 * found at the root of the source code distribution tree.
 */

#ifndef NA_ERROR_H
#define NA_ERROR_H

#include "na_config.h"

/* For compatibility */
#if defined(__STDC_VERSION__) &&  (__STDC_VERSION__ < 199901L)
  #if defined(__GNUC__) && (__GNUC__ >= 2)
    #define __func__ __FUNCTION__
  #else
    #define __func__ "<unknown>"
  #endif
#elif defined(_WIN32)
  #define __func__ __FUNCTION__
#endif

/* Default error macro */
#ifdef NA_HAS_VERBOSE_ERROR
  #include <stdio.h>
  #define NA_LOG_ERROR(...) do {                              \
      fprintf(stderr, "%s:%d: ERROR: ",  __func__, __LINE__); \
      fprintf(stderr, __VA_ARGS__);                           \
      fprintf(stderr, "\n");                                  \
  } while (0)
  #define NA_LOG_DEBUG(fmt, ...) do {                  \
      fprintf(stdout, "%s:%d: " fmt,                   \
              __func__, __LINE__, ##__VA_ARGS__);      \
  } while (0)
  #define NA_LOG_WARNING(fmt, ...) do {                \
      fprintf(stderr, "%s:%d: WARNING: " fmt,          \
              __func__, __LINE__, ##__VA_ARGS__);      \
  } while (0)
#else
  #define NA_LOG_ERROR(fmt, ...)
  #define NA_LOG_DEBUG(fmt, ...)
  #define NA_LOG_WARNING(fmt, ...)
#endif

#endif /* NA_ERROR_H */
{'fraction_non_alphanumeric': 0.12519961673586713, 'fraction_numerical': 0.010220376876397317, 'mean_word_length': 2.2899159663865545, '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': '304003', 'n_tokens_mistral': 1021, 'n_tokens_neox': 981, 'n_words': 271}