<commit_before><commit_msg>[api] Basic implementation of core library<commit_after>(function (exports) {
  var Presents = exports.Presents = function (options) {
    this.currentSlide = 0;

    App.call(this, options);
  };
  inherits(Presents, App);

  Presents.prototype.goTo = function (slide) {
    var id = "slide-" + slide;
    if (document.getElementById(id)) {
      window.location.hash = id;
      this.currentSlide = slide;
      this.emit('slide::' + id);
    }
  };

  Presents.prototype.next = function () {
    this.goTo(this.currentSlide + 1);
  };

  Presents.prototype.previous = function () {
    this.goTo(this.currentSlide - 1);
  };
})(window);

{'fraction_non_alphanumeric': 0.15292353823088456, 'fraction_numerical': 0.004497751124437781, 'mean_word_length': 3.254777070063694, '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': '1249331', 'n_tokens_mistral': 226, 'n_tokens_neox': 215, 'n_words': 42}