<commit_before>/// MxArray data conversion library.
///
/// <NAME> 2013 <<EMAIL>>

#include "mxarray.h"

namespace mex {

MxArray::MxArray() : array_(NULL), mutable_array_(NULL) {}

MxArray::MxArray(mxArray* array) : array_(array), mutable_array_(array) {}

MxArray::MxArray(const mxArray* array) : array_(array), mutable_array_(NULL) {}

MxArray::MxArray(const MxArray& mxarray) :
    array_(mxarray.array_), mutable_array_(mxarray.mutable_array_) {}

MxArray& MxArray::operator=(const MxArray& rhs) {
  if (this != &rhs)
    this->array_ = rhs.array_;
  return *this;
}

MxArray::MxArray(const int value) :
    mutable_array_(mxCreateDoubleScalar(static_cast<double>(value))) {
  array_ = mutable_array_;
  if (array_ == NULL)
    mexErrMsgIdAndTxt("mxarray:error", "Null pointer exception.");
}

MxArray::MxArray(const double value) :<commit_msg>Updated mxarray<commit_after>/// MxArray data conversion library.
///
/// <NAME> 2013 <<EMAIL>>

#include "mxarray.h"

namespace mex {

MxArray::MxArray() : array_(NULL), mutable_array_(NULL) {}

MxArray::MxArray(mxArray* array) : array_(array), mutable_array_(array) {}

MxArray::MxArray(const mxArray* array) : array_(array), mutable_array_(NULL) {}

MxArray::MxArray(const MxArray& mxarray) :
    array_(mxarray.array_), mutable_array_(mxarray.mutable_array_) {}

MxArray& MxArray::operator=(const MxArray& rhs) {
  if (this != &rhs) {
    this->array_ = rhs.array_;
    this->mutable_array_ = rhs.mutable_array_;
  }
  return *this;
}

MxArray::MxArray(const int value) :
    mutable_array_(mxCreateDoubleScalar(static_cast<double>(value))) {
  array_ = mutable_array_;
  if (array_ == NULL)
    mexErrMsgIdAndTxt("mxarray:error", "Null pointer exception.");
}

MxArray::MxArray(const double value) :
{'fraction_non_alphanumeric': 0.15687393040501996, 'fraction_numerical': 0.004563605248146035, 'mean_word_length': 5.618867924528302, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 14, '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': '3486293', 'n_tokens_mistral': 644, 'n_tokens_neox': 646, 'n_words': 115}