<commit_before>// Presenter module goes here
/**
 * @constructor
 */
Melown.Presenter = function(browser_, config_) {
    this.container_ = null;
    this.aTags_ = null;
    this.sectionTags_ = null;
    this.defaultHeight_ = 0; // Changes based on presentation"s height
    this.maxHeight_ = 0; // Height of inner container to be set
    this.subtitlesHeights_ = []; // Set of heights after init() for subtitles

    this.firstTitleMargin_ = 20; // First slide of presentation has some css margin-top, so here we use it
    this.swipeOffset_ = 60; // Height of swipeControl

    this.actualNode_ = 0;
    this.maxNodes_ = 1;
    this.animTime_ = 600; // Default css transition time
    this.currentToolbox_ = "right"; // Default toolbox (right | wide)

    this.browser_ = browser_;
    this.id_ = [];
    this.current_ = null;

    this.presenter_ = JSON.parse(JSON.stringify(config_["presenter"]));
    this.presenterAutoplay_ = config_["presenterAutoplay"];
<commit_msg>Fixed situation when presenter_ is empty or null.<commit_after>// Presenter module goes here
/**
 * @constructor
 */
Melown.Presenter = function(browser_, config_) {
    this.container_ = null;
    this.aTags_ = null;
    this.sectionTags_ = null;
    this.defaultHeight_ = 0; // Changes based on presentation"s height
    this.maxHeight_ = 0; // Height of inner container to be set
    this.subtitlesHeights_ = []; // Set of heights after init() for subtitles

    this.firstTitleMargin_ = 20; // First slide of presentation has some css margin-top, so here we use it
    this.swipeOffset_ = 60; // Height of swipeControl

    this.actualNode_ = 0;
    this.maxNodes_ = 1;
    this.animTime_ = 600; // Default css transition time
    this.currentToolbox_ = "right"; // Default toolbox (right | wide)

    this.browser_ = browser_;
    this.id_ = [];
    this.current_ = null;

    this.presenter_ = (typeof config_["presenter"] !== "undefined") ? JSON.parse(JSON.stringify(config_["presenter"])) : {};
    this.presenterAutoplay_ = config_["presenterAutoplay"];

{'fraction_non_alphanumeric': 0.11683848797250859, 'fraction_numerical': 0.010800196367206676, 'mean_word_length': 3.29957805907173, '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': '2242205', 'n_tokens_mistral': 653, 'n_tokens_neox': 616, 'n_words': 178}