<commit_before>#ifndef _THRIFT_THRIFT_H_
#define _THRIFT_THRIFT_H_ 1

#include <netinet/in.h>
#include <inttypes.h>
#include <string>
#include <map>
#include <list>
#include <set>
#include <vector>
#include <exception>

#include "TLogging.h"

namespace facebook { namespace thrift {

class TException : public std::exception {
public:
  TException() {}

  TException(const std::string message) :
    message_(message) {}

  ~TException() throw() {}

  const char* what() {
    if (message_.empty()) {
      return "Default TException.";
    } else {
      return message_.c_str();
    }
  }

private:
  const std::string message_;

};

}} // facebook::thrift

#endif // #ifndef _THRIFT_THRIFT_H_<commit_msg>Thrift TException does not properly define virtual what() method.<commit_after>#ifndef _THRIFT_THRIFT_H_
#define _THRIFT_THRIFT_H_ 1

#include <netinet/in.h>
#include <inttypes.h>
#include <string>
#include <map>
#include <list>
#include <set>
#include <vector>
#include <exception>

#include "TLogging.h"

namespace facebook { namespace thrift {

class TException : public std::exception {
public:
  TException() {}

  TException(const std::string message) :
    message_(message) {}

  ~TException() throw() {}

  const char* what() const throw() {
    if (message_.empty()) {
      return "Default TException.";
    } else {
      return message_.c_str();
    }
  }

private:
  const std::string message_;

};

}} // facebook::thrift

#endif // #ifndef _THRIFT_THRIFT_H_
{'fraction_non_alphanumeric': 0.13986486486486485, 'fraction_numerical': 0.0013513513513513514, 'mean_word_length': 4.178321678321678, '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': '5732012', 'n_tokens_mistral': 519, 'n_tokens_neox': 508, 'n_words': 125}