<commit_before>#ifndef TRIPLETLIST_h
#define TRIPLETLIST_h

#include "Wrapper.h"

////////////////////////////////////////////////////////////////////////////////
namespace NTPoly {
////////////////////////////////////////////////////////////////////////////////
class DistributedSparseMatrix;
class SparseMatrix;
class Triplet;
//! A data type for a list of triplets.
//! As this is related to matrix multiplication, the referencing indices are
//! rows and columns.
class TripletList {
public:
  //! Construct the triplet list.
  //!\param size the size of the list.
  TripletList(int size = 0);
  //! Construct a triplet list from a distributed sparse matrix.
  //!\param matrix to construct from.
  TripletList(const DistributedSparseMatrix &matrix);
  //! Increase the size of a triplet list.
  //!\param size the new size.
  void Resize(int size);
  //! Add a value to the end of the triplet list.
  //!\param value the triplet value to append.
  void Append(const Triplet &value);
  //! Set a triplet value.
  //!\param index location to set the triplet at.
  //!\param value the triplet value to set.
  void SetTripletAt(int index, const Triplet &value);
  //! Get the triplet value at a given index.
  //!\param index location to get the triplet at.
  Triplet GetTripletAt(int index) const;
  //! Get the number of entries in a triplet list.
  //!\result the number of entries in the list.
  int GetSize() const;
  //! Standard destructor.
  ~TripletList();
  //! Sort a triplet list
  //!\param list to be sorted.
  //!\param matrix_columns this is the highest column value in the list
  //!\param sorted a now sorted version of the list.
  static void SortTripletList(const TripletList &list, int matrix_columns,
                              TripletList &sorted);

private:
  //! Handle to the actual data.
  int ih_this[SIZE_wrp];

private:
  //! Copy constructor, locked.
  TripletList(const TripletList &);
  //! Assignment operator, locked.
  TripletList &operator=(const TripletList &);

private:
  friend class SparseMatrix;
  friend class DistributedSparseMatrix;
};
} // namespace NTPoly

#endif
<commit_msg>Revert "Ran beautify on TripletList.h"<commit_after>#ifndef TRIPLETLIST_h
#define TRIPLETLIST_h

#include "Wrapper.h"

////////////////////////////////////////////////////////////////////////////////
namespace NTPoly {
////////////////////////////////////////////////////////////////////////////////
class DistributedSparseMatrix;
class SparseMatrix;
class Triplet;
//! A data type for a list of triplets.
//! As this is related to matrix multiplication, the referencing indices are
//! rows and columns.
class TripletList {
public:
  //! Construct the triplet list.
  //!\param size the size of the list.
  TripletList(int size=0);
  //! Construct a triplet list from a distributed sparse matrix.
  //!\param matrix to construct from.
  TripletList(const DistributedSparseMatrix &matrix);
  //! Increase the size of a triplet list.
  //!\param size the new size.
  void Resize(int size);
  //! Add a value to the end of the triplet list.
  //!\param value the triplet value to append.
  void Append(const Triplet &value);
  //! Set a triplet value.
  //!\param index location to set the triplet at.
  //!\param value the triplet value to set.
  void SetTripletAt(int index, const Triplet &value);
  //! Get the triplet value at a given index.
  //!\param index location to get the triplet at.
  Triplet GetTripletAt(int index) const;
  //! Get the number of entries in a triplet list.
  //!\result the number of entries in the list.
  int GetSize() const;
  //! Standard destructor.
  ~TripletList();
  //! Sort a triplet list
  //!\param list to be sorted.
  //!\param matrix_columns this is the highest column value in the list
  //!\param sorted a now sorted version of the list.
  static void SortTripletList(const TripletList &list, int matrix_columns,
                              TripletList &sorted);

private:
  //! Handle to the actual data.
  int ih_this[SIZE_wrp];

private:
  //! Copy constructor, locked.
  TripletList(const TripletList &);
  //! Assignment operator, locked.
  TripletList &operator=(const TripletList &);

private:
  friend class SparseMatrix;
  friend class DistributedSparseMatrix;
};
} // namespace NTPoly

#endif

{'fraction_non_alphanumeric': 0.16475812105632157, 'fraction_numerical': 0.00046739892498247256, 'mean_word_length': 2.4076433121019107, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6175934', 'n_tokens_mistral': 1184, 'n_tokens_neox': 1140, 'n_words': 487}