<commit_before>#ifndef SRC_CAMERA_POSITIONS_MODEL_H_

#define SRC_CAMERA_POSITIONS_MODEL_H_

#include <QAbstractListModel>
#include <memory>
#include "./camera_node.h"

class Nodes;

/**
 * \brief Model to add, rename, remove and move to camera positions
 *
 */
class CameraPositionsModel : public QAbstractTableModel
{
  Q_OBJECT
 public:
  explicit CameraPositionsModel(std::shared_ptr<Nodes> nodes);
  // virtual ~CameraPositionsModel();

  enum CameraPositionRoles
  {
    NameRole = Qt::UserRole + 1,
  };

  QHash<int, QByteArray> roleNames() const Q_DECL_OVERRIDE;

  int rowCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
  int
  columnCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;

  QVariant data(const QModelIndex &index,<commit_msg>Minor: remove commented out code.<commit_after>#ifndef SRC_CAMERA_POSITIONS_MODEL_H_

#define SRC_CAMERA_POSITIONS_MODEL_H_

#include <QAbstractListModel>
#include <memory>
#include "./camera_node.h"

class Nodes;

/**
 * \brief Model to add, rename, remove and move to camera positions
 *
 */
class CameraPositionsModel : public QAbstractTableModel
{
  Q_OBJECT
 public:
  explicit CameraPositionsModel(std::shared_ptr<Nodes> nodes);

  enum CameraPositionRoles
  {
    NameRole = Qt::UserRole + 1,
  };

  QHash<int, QByteArray> roleNames() const Q_DECL_OVERRIDE;

  int rowCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
  int
  columnCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;

  QVariant data(const QModelIndex &index,
{'fraction_non_alphanumeric': 0.0929936305732484, 'fraction_numerical': 0.0012738853503184713, 'mean_word_length': 5.573221757322176, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '2202110', 'n_tokens_mistral': 547, 'n_tokens_neox': 530, 'n_words': 125}