<commit_before>#pragma once


#include <string>
#include <iostream>
 
namespace RESTClient {

// All log levels
#define TRACE 1
#define DEBUG 2
#define INFO 3
#define WARN 4
#define ERROR 5
#define NONE 6

#ifndef MIN_LOG_LEVEL
#define MIN_LOG_LEVEL NONE
#endif

#ifdef LOG_LOCATION
#define LOG(LEVEL, ARG)                                                        \
  std::clog << LEVEL << " - Line: " << __LINE__ << " - File: " << __FILE__     \
            << " - Function: " << __FUNCTION__ << " - Msg: " << ARG            \
            << std::endl;
#else
#define LOG(LEVEL, ARG) std::clog << LEVEL << " - " ARG << std::endl;
#endif

#if MIN_LOG_LEVEL <= TRACE
#define LOG_TRACE(ARG) LOG("TRACE", ARG);
#else
#define LOG_TRACE(ARG)
#endif

#if MIN_LOG_LEVEL <= DEBUG
#define LOG_DEBUG(ARG) LOG("DEBUG", ARG);
#else
#define LOG_DEBUG(ARG)
#endif

#if MIN_LOG_LEVEL <= INFO
#define LOG_INFO(ARG)  LOG("INFO", ARG);
#else
#define LOG_INFO(ARG)
#endif

#if MIN_LOG_LEVEL <= WARN
#define LOG_WARN(ARG)  LOG("WARNING", ARG);
#else
#define LOG_WARN(ARG)
#endif

#if MIN_LOG_LEVEL <= ERROR
#define LOG_ERROR(ARG)                                                         \
  LOG("ERROR", ARG)                                                            \
  std::stringstream msg;                                                       \
  msg << "ERROR: " << ARG;                                                     \
  throw std::runtime_error(msg.str());
#else
#define LOG_ERROR(ARG)                                                         \
  std::stringstream msg;                                                       \
  msg << "ERROR: " << ARG;                                                     \
  throw std::runtime_error(msg.str());
#endif

#if MIN_LOG_LEVEL <= FATAL
#define LOG_FATAL(ARG)                                                         \
  LOG("FATAL", ARG);                                                           \
  std::stringstream msg;                                                       \
  msg << "FATAL ERROR: " << ARG;                                               \
  throw std::runtime_error(msg.str());
#else
#define LOG_FATAL(ARG)                                                         \
  std::stringstream msg;                                                       \
  msg << "FATAL ERROR: " << ARG;                                               \
  throw std::runtime_error(msg.str());
#endif

#define LOG_DATA_CHANNEL(chan) BOOST_LOG_CHANNEL(sysLogger::get(), chan);

/// Data Log macros. Does not include LINE, FILE, FUNCTION.
/// TRACE < DEBUG < INFO < WARN < ERROR < FATAL
#define LOG_DATA_TRACE(ARG) BOOST_LOG_SEV(dataLogger::get(), boost::log::trivial::trace) << ARG
#define LOG_DATA_DEBUG(ARG) BOOST_LOG_SEV(dataLogger::get(), boost::log::trivial::debug) << ARG
#define LOG_DATA_INFO(ARG)  BOOST_LOG_SEV(dataLogger::get(), boost::log::trivial::info) << ARG
#define LOG_DATA_WARN(ARG)  BOOST_LOG_SEV(dataLogger::get(), boost::log::trivial::warning) << ARG
#define LOG_DATA_ERROR(ARG) BOOST_LOG_SEV(dataLogger::get(), boost::log::trivial::error) << ARG
#define LOG_DATA_FATAL(ARG) BOOST_LOG_SEV(dataLogger::get(), boost::log::trivial::fatal) << ARG

} /* RESTClient */<commit_msg>Removed unneeded old boost references from logger<commit_after>#pragma once


#include <string>
#include <iostream>
 
namespace RESTClient {

// All log levels
#define TRACE 1
#define DEBUG 2
#define INFO 3
#define WARN 4
#define ERROR 5
#define NONE 6

#ifndef MIN_LOG_LEVEL
#define MIN_LOG_LEVEL NONE
#endif

#ifdef LOG_LOCATION
#define LOG(LEVEL, ARG)                                                        \
  std::clog << LEVEL << " - Line: " << __LINE__ << " - File: " << __FILE__     \
            << " - Function: " << __FUNCTION__ << " - Msg: " << ARG            \
            << std::endl;
#else
#define LOG(LEVEL, ARG) std::clog << LEVEL << " - " ARG << std::endl;
#endif

#if MIN_LOG_LEVEL <= TRACE
#define LOG_TRACE(ARG) LOG("TRACE", ARG);
#else
#define LOG_TRACE(ARG)
#endif

#if MIN_LOG_LEVEL <= DEBUG
#define LOG_DEBUG(ARG) LOG("DEBUG", ARG);
#else
#define LOG_DEBUG(ARG)
#endif

#if MIN_LOG_LEVEL <= INFO
#define LOG_INFO(ARG)  LOG("INFO", ARG);
#else
#define LOG_INFO(ARG)
#endif

#if MIN_LOG_LEVEL <= WARN
#define LOG_WARN(ARG)  LOG("WARNING", ARG);
#else
#define LOG_WARN(ARG)
#endif

#if MIN_LOG_LEVEL <= ERROR
#define LOG_ERROR(ARG)                                                         \
  LOG("ERROR", ARG)                                                            \
  std::stringstream msg;                                                       \
  msg << "ERROR: " << ARG;                                                     \
  throw std::runtime_error(msg.str());
#else
#define LOG_ERROR(ARG)                                                         \
  std::stringstream msg;                                                       \
  msg << "ERROR: " << ARG;                                                     \
  throw std::runtime_error(msg.str());
#endif

#if MIN_LOG_LEVEL <= FATAL
#define LOG_FATAL(ARG)                                                         \
  LOG("FATAL", ARG);                                                           \
  std::stringstream msg;                                                       \
  msg << "FATAL ERROR: " << ARG;                                               \
  throw std::runtime_error(msg.str());
#else
#define LOG_FATAL(ARG)                                                         \
  std::stringstream msg;                                                       \
  msg << "FATAL ERROR: " << ARG;                                               \
  throw std::runtime_error(msg.str());
#endif

} /* RESTClient */
{'fraction_non_alphanumeric': 0.12388451443569554, 'fraction_numerical': 0.002099737532808399, 'mean_word_length': 1.406736842105263, 'pattern_counts': {'":': 0, '<': 120, '<?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': 60, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4892202', 'n_tokens_mistral': 1586, 'n_tokens_neox': 1539, 'n_words': 369}