<commit_before>var courseTitleFocusVar = new ReactiveVar(false);

Template.lesson.helpers({
    editClass: function(){
        if (Session.get('editMode')) {
            return 'course-page-content-edit';
        }
    },
    'contentEditable': function () {
        if (Session.get('editMode')) {
            console.log("Content editable");
            return true;
        } else {
            return false;
        }
    },
    'courseTitleFocus': function () {
        return courseTitleFocusVar.get();
    }
});

Template.lesson.events({
    'focus #course-title': function (event, template) {
        console.log("Course title focus.");
        courseTitleFocusVar.set(true);
    },
    'blur #course-title': function (event, template) {
        console.log("Course title blur.");
        courseTitleFocusVar.set(false);
    }
});
<commit_msg>Remove console log statements.<commit_after>var courseTitleFocusVar = new ReactiveVar(false);

Template.lesson.helpers({
    editClass: function(){
        if (Session.get('editMode')) {
            return 'course-page-content-edit';
        }
    },
    'contentEditable': function () {
        if (Session.get('editMode')) {
            return true;
        } else {
            return false;
        }
    },
    'courseTitleFocus': function () {
        return courseTitleFocusVar.get();
    }
});

Template.lesson.events({
    'focus #course-title': function (event, template) {
        courseTitleFocusVar.set(true);
    },
    'blur #course-title': function (event, template) {
        courseTitleFocusVar.set(false);
    }
});

{'fraction_non_alphanumeric': 0.14321766561514196, 'fraction_numerical': 0.0, 'mean_word_length': 2.360169491525424, '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': '7473727', 'n_tokens_mistral': 452, 'n_tokens_neox': 449, 'n_words': 85}