<commit_before>'use strict';
/*global $:false */

angular.module('fbCal').factory('list', function ($log, $wix) {
  var setup = function(borderWidth, borderColor) {
    var borderStyle = {'border-bottom-width' : borderWidth + 'px',
                       'border-bottom-color' : borderColor,
                       'margin-bottom' : '0px'
                      };
    $('#header').css(borderStyle);
    $('#header').addClass('header'); //see if there is a way to get this
    //class to overwrite the other css added by calendar setup
  };

  var listStyle = function(last) {
    if (last) {
      return {'border' : 'none'};
    } else {
      return {};
    }
  };

  return {
    setup: setup,
    listStyle : listStyle
  };
});
<commit_msg>Border setting now works completely when switching between list mode and month mode<commit_after>'use strict';
/*global $:false */

angular.module('fbCal').factory('list', function ($log, $wix) {
  var setup = function(borderWidth, borderColor) {
    var borderStyle = {'border-bottom-width' : borderWidth + 'px',
                       'margin-bottom' : '0px'
                      };
    $('#header').removeAttr('style');
    $('#header').css(borderStyle);
    $('#header').addClass('header'); //see if there is a way to get this
    //class to overwrite the other css added by calendar setup
  };

  var listStyle = function(last) {
    if (last) {
      return {'border' : 'none'};
    } else {
      return {};
    }
  };

  return {
    setup: setup,
    listStyle : listStyle
  };
});

{'fraction_non_alphanumeric': 0.15755208333333334, 'fraction_numerical': 0.0013020833333333333, 'mean_word_length': 2.453932584269663, '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': '7538955', 'n_tokens_mistral': 449, 'n_tokens_neox': 442, 'n_words': 125}