<commit_before>// Session Service
movieswApp.factory('session', function(){
  var session = {};
  session.user = {};
  session.logged = false;

  session.set = function(name, value) {
    session[name] = value;
  };

  session.remove = function() {
    session.user = {};
  }

  return session;
});
<commit_msg>Assign true/false to logged var, as the case<commit_after>// Session Service
movieswApp.factory('session', function(){
  var session = {};
  session.user = {};
  session.logged = false;

  session.set = function(name, value) {
    session[name] = value;
    session.logged = session.user.hasOwnProperty('_id');
  };

  session.remove = function() {
    session.user = {};
    session.logged = false;
  }

  return session;
});

{'fraction_non_alphanumeric': 0.15989159891598917, 'fraction_numerical': 0.0, 'mean_word_length': 3.4251497005988023, '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': '3003189', 'n_tokens_mistral': 237, 'n_tokens_neox': 231, 'n_words': 51}