<commit_before>#ifndef _NODE_PLAYER_H
#define _NODE_PLAYER_H

#include "NodeWrapped.h"
#include <memory>

using namespace v8;

class NodePlayer : public NodeWrapped<NodePlayer> {
private:
  int currentSecond;
  bool isPaused;
  static std::unique_ptr<NodePlayer> instance;
public:
  static Handle<Value> stop(const Arguments& args);
  static Handle<Value> pause(const Arguments& args);
  static Handle<Value> resume(const Arguments& args);
  static Handle<Value> play(const Arguments& args);
  static Handle<Value> staticOn(const Arguments& args);
  static Handle<Value> getCurrentSecond(Local<String> property, const AccessorInfo& info);
  static Handle<Value> seek(const Arguments& args);

  void setCurrentSecond(int currentSecond);
  /**
  *   Callback track finished playing:
  *       - remove track from queue
  *       - play next track
  *       - update currentTrackPosition if necessary
  **/

  static void init();
  static NodePlayer& getInstance();
};

#endif<commit_msg>Made NodePlayer ctor private<commit_after>#ifndef _NODE_PLAYER_H
#define _NODE_PLAYER_H

#include "NodeWrapped.h"
#include <memory>

using namespace v8;

class NodePlayer : public NodeWrapped<NodePlayer> {
private:
  int currentSecond;
  bool isPaused;
  static std::unique_ptr<NodePlayer> instance;
  NodePlayer();
  NodePlayer(const NodePlayer& other);
public:
  static Handle<Value> stop(const Arguments& args);
  static Handle<Value> pause(const Arguments& args);
  static Handle<Value> resume(const Arguments& args);
  static Handle<Value> play(const Arguments& args);
  static Handle<Value> staticOn(const Arguments& args);
  static Handle<Value> getCurrentSecond(Local<String> property, const AccessorInfo& info);
  static Handle<Value> seek(const Arguments& args);

  void setCurrentSecond(int currentSecond);
  /**
  *   Callback track finished playing:
  *       - remove track from queue
  *       - play next track
  *       - update currentTrackPosition if necessary
  **/

  static void init();
  static NodePlayer& getInstance();
};

#endif
{'fraction_non_alphanumeric': 0.09950980392156862, 'fraction_numerical': 0.000980392156862745, 'mean_word_length': 4.898843930635838, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, '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': '5299041', 'n_tokens_mistral': 611, 'n_tokens_neox': 601, 'n_words': 178}