<commit_before>Template.ionFooterBar.rendered = function () {
  Session.set('hasFooter', true);
};

Template.ionFooterBar.destroyed = function () {
  Session.set('hasFooter', false);
};

Template.ionFooterBar.helpers({
  classes: function () {
    var classes = ['bar', 'bar-footer'];

    if (this.class) {
      classes.push(this.class);
    } else {
      classes.push('bar-stable');
    }

    return classes.join(' ');
  }
});
<commit_msg>footer bars should be aware of tabs below them<commit_after>Template.ionFooterBar.rendered = function () {
  Session.set('hasFooter', true);
};

Template.ionFooterBar.destroyed = function () {
  Session.set('hasFooter', false);
};

Template.ionFooterBar.helpers({
  classes: function () {
    var classes = ['bar', 'bar-footer'];

    if (this.class) {
      classes.push(this.class);
    } else {
      classes.push('bar-stable');
    }

    if (Session.get('hasTabs')) {
      classes.push('has-tabs');
    }

    return classes.join(' ');
  }
});

{'fraction_non_alphanumeric': 0.17706237424547283, 'fraction_numerical': 0.0, 'mean_word_length': 3.3260869565217392, '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': '1674869', 'n_tokens_mistral': 335, 'n_tokens_neox': 328, 'n_words': 55}