<commit_before>Template.body.onRendered(function () {
  console.log("Body Rendered");
  Meteor.call('deleteFlaggedTransactions', false);
  $("#page-header").headroom({
    "offset": 0,
    "tolerance": 35
  });
});

Template.vendor.onRendered(function () {
  Meteor.typeahead.inject($(this.find('.typeahead')));
});

Template.category.onRendered(function () {
  Meteor.typeahead.inject($(this.find('.typeahead')));
});

Template.date.onRendered(function () {
  $(".datepicker").datepicker();
});<commit_msg>Add conditional for headroom (desktop)<commit_after>Template.body.onRendered(function () {
  console.log("Body Rendered");
  Meteor.call('deleteFlaggedTransactions', false);
  if(Meteor.Device.isPhone() || Meteor.DeviceisTablet()){
    $("#page-header").headroom({
      "offset": 0,
      "tolerance": 35
    });
  }
});

Template.vendor.onRendered(function () {
  Meteor.typeahead.inject($(this.find('.typeahead')));
});

Template.category.onRendered(function () {
  Meteor.typeahead.inject($(this.find('.typeahead')));
});

Template.date.onRendered(function () {
  $(".datepicker").datepicker();
});
{'fraction_non_alphanumeric': 0.21190261496844004, 'fraction_numerical': 0.005410279531109108, 'mean_word_length': 5.379310344827586, 'pattern_counts': {'":': 4, '<': 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': '5859598', 'n_tokens_mistral': 393, 'n_tokens_neox': 361, 'n_words': 38}