<commit_before>// $Id$
//
// Copyright (C)  2005-2008 <NAME> and Rational Discovery LLC
//
//  @@ All Rights Reserved @@
//
#include "RDLog.h"

#if 1
#include <iomanip>
#include <string>
#include <time.h>

boost::logging::rdLogger *rdAppLog=0;
boost::logging::rdLogger *rdDebugLog=0;
boost::logging::rdLogger *rdInfoLog=0;
boost::logging::rdLogger *rdErrorLog=0;
boost::logging::rdLogger *rdWarningLog=0;
boost::logging::rdLogger *rdStatusLog=0;

namespace boost {
  namespace logging {

    void enable_logs(const char *arg) { enable_logs(std::string(arg));};
    void enable_logs(const std::string &arg) {
      // Yes... this is extremely crude
      if(arg=="rdApp.debug"||arg=="rdApp.*"){<commit_msg>add a hack to get the console stuff working on windows. this needs to be tested on lin and mac<commit_after>// $Id$
//
// Copyright (C)  2005-2010 <NAME> and Rational Discovery LLC
//
//  @@ All Rights Reserved @@
//
#include "RDLog.h"

#if 1
#include <iomanip>
#include <string>
#include <time.h>

namespace {
  // this is a "bit" of a hack to work around shared/static library problems
  // on windows
  boost::logging::rdLogger cerrLogger(&std::cerr);  
  boost::logging::rdLogger coutLogger(&std::cout);  
}

boost::logging::rdLogger *rdAppLog=0;
boost::logging::rdLogger *rdDebugLog=0;
boost::logging::rdLogger *rdInfoLog=&coutLogger;
boost::logging::rdLogger *rdErrorLog=&cerrLogger;
boost::logging::rdLogger *rdWarningLog=&cerrLogger;
boost::logging::rdLogger *rdStatusLog=0;

namespace boost {
  namespace logging {

    void enable_logs(const char *arg) { enable_logs(std::string(arg));};
    void enable_logs(const std::string &arg) {
      // Yes... this is extremely crude
      if(arg=="rdApp.debug"||arg=="rdApp.*"){
{'fraction_non_alphanumeric': 0.16311239193083574, 'fraction_numerical': 0.015561959654178675, 'mean_word_length': 4.924914675767918, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '5489952', 'n_tokens_mistral': 606, 'n_tokens_neox': 578, 'n_words': 146}