<commit_before>//! \file
/*
**  Copyright (C) - Triton
**
**  This program is under the terms of the BSD License.
*/

#include <cstdlib>

#include <solverModel.hpp>
#include <symbolicEnums.hpp>



namespace triton {
  namespace engines {
    namespace solver {

      SolverModel::SolverModel() {
        this->id    = static_cast<triton::uint32>(-1);
        this->name  = "";
        this->value = 0;
      }


      SolverModel::SolverModel(const std::string& name, triton::uint512 value) {
        this->id    = std::atoi(name.c_str() + TRITON_SYMVAR_NAME_SIZE);
        this->name  = name;
        this->value = value;
      }


      SolverModel::SolverModel(const SolverModel& other) {
        this->copy(other);
      }


      void SolverModel::copy(const SolverModel& other) {
        this->id    = other.id;
        this->name  = other.name;
        this->value = other.value;
      }


      SolverModel::~SolverModel() {
      }


      const std::string& SolverModel::getName(void) const {
        return this->name;
      }


      triton::uint32 SolverModel::getId(void) const {
        return this->id;
      }


      triton::uint512 SolverModel::getValue(void) const {
        return this->value;
      }


      void SolverModel::operator=(const SolverModel& other) {
        this->copy(other);
      }


      std::ostream& operator<<(std::ostream& stream, const SolverModel& model) {
        stream << model.getName() << " = " << std::hex << model.getValue() << std::dec;
        return stream;
      }


      std::ostream& operator<<(std::ostream& stream, const SolverModel* model) {
        stream << *model;
        return stream;
      }

    };
  };
};<commit_msg>Display model with the 0x pattern<commit_after>//! \file
/*
**  Copyright (C) - Triton
**
**  This program is under the terms of the BSD License.
*/

#include <cstdlib>

#include <solverModel.hpp>
#include <symbolicEnums.hpp>



namespace triton {
  namespace engines {
    namespace solver {

      SolverModel::SolverModel() {
        this->id    = static_cast<triton::uint32>(-1);
        this->name  = "";
        this->value = 0;
      }


      SolverModel::SolverModel(const std::string& name, triton::uint512 value) {
        this->id    = std::atoi(name.c_str() + TRITON_SYMVAR_NAME_SIZE);
        this->name  = name;
        this->value = value;
      }


      SolverModel::SolverModel(const SolverModel& other) {
        this->copy(other);
      }


      void SolverModel::copy(const SolverModel& other) {
        this->id    = other.id;
        this->name  = other.name;
        this->value = other.value;
      }


      SolverModel::~SolverModel() {
      }


      const std::string& SolverModel::getName(void) const {
        return this->name;
      }


      triton::uint32 SolverModel::getId(void) const {
        return this->id;
      }


      triton::uint512 SolverModel::getValue(void) const {
        return this->value;
      }


      void SolverModel::operator=(const SolverModel& other) {
        this->copy(other);
      }


      std::ostream& operator<<(std::ostream& stream, const SolverModel& model) {
        stream << model.getName() << " = 0x" << std::hex << model.getValue() << std::dec;
        return stream;
      }


      std::ostream& operator<<(std::ostream& stream, const SolverModel* model) {
        stream << *model;
        return stream;
      }

    };
  };
};
{'fraction_non_alphanumeric': 0.1444509688784498, 'fraction_numerical': 0.007633587786259542, 'mean_word_length': 2.2822736030828517, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 39, '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': '2130648', 'n_tokens_mistral': 1131, 'n_tokens_neox': 1052, 'n_words': 214}