<commit_before>/*
** Author(s):
**  - <NAME> <<EMAIL>>
**
** Copyright (C) 2010 Aldebaran Robotics
*/

#ifndef QI_LOG_LOG_H
#define QI_LOG_LOG_H

#include <string>
#include <sstream>
#include <cstdarg>
#include <boost/function.hpp>
#include <qi/api.hpp>


#ifdef NO_QI_DEBUG
# define qiDebug(...)
# define qisDebug
#else
# define qiDebug(...)   qi::log::log(qi::log::debug,         __FILE__, __FUNCTION__, __LINE__, __VA_ARGS__)
# define qisDebug       qi::log::LogStream(qi::log::debug,   __FILE__, __FUNCTION__, __LINE__).self()
#endif

#ifdef NO_QI_INFO
# define qiInfo(...)
# define qisInfo
#else
#define qiInfo(...)    qi::log::log(qi::log::info,          __FILE__, __FUNCTION__, __LINE__, __VA_ARGS__)
#define qisInfo        qi::log::LogStream(qi::log::info,    __FILE__, __FUNCTION__, __LINE__).self()
#endif

#ifdef NO_QI_WARNING
# define qiWarning(...)
# define qisWarning
#else
# define qiWarning(...) qi::log::log(qi::log::warning,       __FILE__, __FUNCTION__, __LINE__, __VA_ARGS__)
# define qisWarning     qi::log::LogStream(qi::log::warning, __FILE__, __FUNCTION__, __LINE__).self()
#endif

#ifdef NO_QI_ERROR
# define qiError(...)
# define qisError
#else
# define qiError(...)   qi::log::log(qi::log::error,         __FILE__, __FUNCTION__, __LINE__, __VA_ARGS__)
# define qisError       qi::log::LogStream(qi::log::error,   __FILE__, __FUNCTION__, __LINE__).self()
#endif

#ifdef NO_QI_FATAL
# define qiFatal(...)
# define qisFatal
#else
# define qisFatal       qi::log::LogStream(qi::log::fatal, __FILE__, __FUNCTION__, __LINE__).self()
# define qiFatal(...)   qi::log::log(qi::log::fatal,       __FILE__, __FUNCTION__, __LINE__, __VA_ARGS__)
#endif

namespace qi {

  namespace log {

    /**
     * Log Verbosity
     */
    enum QIAPI LogLevel {
      silent = 0,
      fatal,
      error,
      warning,
      info,
      debug,<commit_msg>log: remove extra line breaks<commit_after>/*
** Author(s):
**  - <NAME> <<EMAIL>>
**
** Copyright (C) 2010 Aldebaran Robotics
*/

#ifndef QI_LOG_LOG_H
#define QI_LOG_LOG_H

#include <string>
#include <sstream>
#include <cstdarg>
#include <boost/function.hpp>
#include <qi/api.hpp>


#ifdef NO_QI_DEBUG
# define qiDebug(...)
# define qisDebug
#else
# define qiDebug(...)   qi::log::log(qi::log::debug,         __FILE__, __FUNCTION__, __LINE__, __VA_ARGS__)
# define qisDebug       qi::log::LogStream(qi::log::debug,   __FILE__, __FUNCTION__, __LINE__).self()
#endif

#ifdef NO_QI_INFO
# define qiInfo(...)
# define qisInfo
#else
#define qiInfo(...)    qi::log::log(qi::log::info,          __FILE__, __FUNCTION__, __LINE__, __VA_ARGS__)
#define qisInfo        qi::log::LogStream(qi::log::info,    __FILE__, __FUNCTION__, __LINE__).self()
#endif

#ifdef NO_QI_WARNING
# define qiWarning(...)
# define qisWarning
#else
# define qiWarning(...) qi::log::log(qi::log::warning,       __FILE__, __FUNCTION__, __LINE__, __VA_ARGS__)
# define qisWarning     qi::log::LogStream(qi::log::warning, __FILE__, __FUNCTION__, __LINE__).self()
#endif

#ifdef NO_QI_ERROR
# define qiError(...)
# define qisError
#else
# define qiError(...)   qi::log::log(qi::log::error,         __FILE__, __FUNCTION__, __LINE__, __VA_ARGS__)
# define qisError       qi::log::LogStream(qi::log::error,   __FILE__, __FUNCTION__, __LINE__).self()
#endif

#ifdef NO_QI_FATAL
# define qiFatal(...)
# define qisFatal
#else
# define qisFatal       qi::log::LogStream(qi::log::fatal, __FILE__, __FUNCTION__, __LINE__).self()
# define qiFatal(...)   qi::log::log(qi::log::fatal,       __FILE__, __FUNCTION__, __LINE__, __VA_ARGS__)
#endif

namespace qi {
  namespace log {
    /**
     * Log Verbosity
     */
    enum QIAPI LogLevel {
      silent = 0,
      fatal,
      error,
      warning,
      info,
      debug,
{'fraction_non_alphanumeric': 0.16033190578158457, 'fraction_numerical': 0.0026766595289079227, 'mean_word_length': 4.056833558863329, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '3045872', 'n_tokens_mistral': 1396, 'n_tokens_neox': 1321, 'n_words': 291}