<commit_before>
/* GENERAL */

// change background image depending on time 
// 1. night,  2. in daytime
var currentTime = new Date().getHours();
var isNight = currentTime < 7 || currentTime >= 19;
var image = !isNight ? "/img/background_night.jpg" : "/img/background.jpg";
Session.set('backgroundImage', image);

UI.body.rendered = function() {
  var bg = Session.get('backgroundImage');
  $("body").css('background-image', 'url("' + bg + '")');
}



/* HEADER */

Template.header.helpers({
  'backgroundImage': function() {
    return Session.get('backgroundImage');<commit_msg>fix fault in previous commit<commit_after>
/* GENERAL */

// change background image depending on time 
// 1. night,  2. in daytime
var currentTime = new Date().getHours();
var isNight = currentTime < 7 || currentTime >= 19;
var image = isNight ? "/img/background_night.jpg" : "/img/background.jpg";
Session.set('backgroundImage', image);

UI.body.rendered = function() {
  var bg = Session.get('backgroundImage');
  $("body").css('background-image', 'url("' + bg + '")');
}



/* HEADER */

Template.header.helpers({
  'backgroundImage': function() {
    return Session.get('backgroundImage');
{'fraction_non_alphanumeric': 0.18143100511073254, 'fraction_numerical': 0.008517887563884156, 'mean_word_length': 4.2690582959641254, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '175880', 'n_tokens_mistral': 378, 'n_tokens_neox': 357, 'n_words': 91}