<commit_before>/*
 *
 * Author: <NAME>
 * Last edited: 2016-02-18
 *
 * This C++ header file contains the function prototypes for the
 * exception logger Exceptional.
 *
 */

#pragma once

#include <iostream>
#include <exception>
#include <stdexcept>
#include <string>

namespace exceptional
{

class Logger
{
  public:
    // Constructor
    Logger();

    // Destructor
    ~Logger();

  private:
    const std::string log_filename = "log.txt";

    // This method logs a thrown value as a warning.
    template <class T>
    void LogWarning( const T& except );

    // This method logs a thrown value as an error.
    template <class T>
    void LogError( const T& except );

};

}  // End of namespace exceptional<commit_msg>Adding trailing _ to class members; adding file stream class member.<commit_after>/*
 *
 * Author: <NAME>
 * Last edited: 2016-02-18
 *
 * This C++ header file contains the function prototypes for the
 * exception logger Exceptional.
 *
 */

#pragma once

#include <fstream>
#include <iostream>
#include <exception>
#include <stdexcept>
#include <string>

namespace exceptional
{

class Logger
{
  public:
    // Constructor
    Logger();

    // Destructor
    ~Logger();

  private:
    const std::string log_filename_ = "log.txt";
    std::ofstream log_stream_;

    // This method logs a thrown value as a warning.
    template <class T>
    void LogWarning( const T& except );

    // This method logs a thrown value as an error.
    template <class T>
    void LogError( const T& except );

};

}  // End of namespace exceptional
{'fraction_non_alphanumeric': 0.10869565217391304, 'fraction_numerical': 0.010230179028132993, 'mean_word_length': 3.0128205128205128, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 18, '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': '7451239', 'n_tokens_mistral': 487, 'n_tokens_neox': 463, 'n_words': 174}