<commit_before>Template.ionNavBackButton.events({
  'click': function (event) {
    $('[data-nav-container]').addClass('nav-view-direction-back');
    $('[data-navbar-container]').addClass('nav-bar-direction-back');
    // window.history.back();
  }
});

Template.ionNavBackButton.helpers({
  classes: function () {
    var classes = ['buttons button button-clear back-button pull-left'];

    if (this.class) {
      classes.push(this.class);
    }

    return classes.join(' ');
  },

  icon: function () {
    if (this.icon) {
      return this.icon;
    } else {
      return 'ios-arrow-back';
    }
  },

  text: function () {
    if (this.text) {
      return this.text;
    } else if(this.text !== false) {
      return 'Back';
    }
  },

  url: function () {
    if (this.href) {
      return this.href;
    }

    if (this.path) {
      return Router.routes[this.path].path(Template.parentData(1));
    }
  }
});
<commit_msg>use android back arrow on android<commit_after>Template.ionNavBackButton.events({
  'click': function (event) {
    $('[data-nav-container]').addClass('nav-view-direction-back');
    $('[data-navbar-container]').addClass('nav-bar-direction-back');

    if (this.backUrl) {
      Router.go(this.backUrl);
    } else {
      window.history.back();
    }
  }
});

Template.ionNavBackButton.rendered = function () {
  this.backURL = null;

  if (this.href) {
    this.backURL = this.href;
  }

  if (this.path) {
    this.backURL = Router.routes[this.path].path(Template.parentData(1));
  }
};

Template.ionNavBackButton.helpers({
  classes: function () {
    var classes = ['buttons button button-clear back-button pull-left'];

    if (this.class) {
      classes.push(this.class);
    }

    return classes.join(' ');
  },

  icon: function () {
    if (this.icon) {
      return this.icon;
    }

    if (Platform.isAndroid()) {
      return 'android-arrow-back';
    }

    return 'ios-arrow-back';
  },

  text: function () {
    if (this.text) {
      return this.text;
    } else if(this.text !== false) {
      return 'Back';
    }
  }
});

{'fraction_non_alphanumeric': 0.17740384615384616, 'fraction_numerical': 0.0009615384615384616, 'mean_word_length': 2.6065857885615253, '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': '2359754', 'n_tokens_mistral': 718, 'n_tokens_neox': 702, 'n_words': 118}