<commit_before>'use strict';

angular
  .module('mwl.calendar')
  .factory('calendarHelper', function (moment, calendarConfig) {

    function isISOWeekBasedOnLocale() {
      return moment().startOf('week').day() === 1;
    }

    function getEventsInPeriod(calendarDate, period, allEvents) {
      var startPeriod = moment(calendarDate).startOf(period);
      var endPeriod = moment(calendarDate).endOf(period);
      return allEvents.filter(function(event) {
        return eventIsInPeriod(event.starts_at, event.ends_at, startPeriod, endPeriod);
      });
    }

    function getWeekDayNames() {
      var weekdays = [];
      var count = 0;
      while(count < 7) {
        weekdays.push(moment().weekday(count++).format(calendarConfig.dateFormats.weekDay));
      }

      return weekdays;<commit_msg>Remove unused function<commit_after>'use strict';

angular
  .module('mwl.calendar')
  .factory('calendarHelper', function (moment, calendarConfig) {

    function getEventsInPeriod(calendarDate, period, allEvents) {
      var startPeriod = moment(calendarDate).startOf(period);
      var endPeriod = moment(calendarDate).endOf(period);
      return allEvents.filter(function(event) {
        return eventIsInPeriod(event.starts_at, event.ends_at, startPeriod, endPeriod);
      });
    }

    function getWeekDayNames() {
      var weekdays = [];
      var count = 0;
      while(count < 7) {
        weekdays.push(moment().weekday(count++).format(calendarConfig.dateFormats.weekDay));
      }

      return weekdays;
{'fraction_non_alphanumeric': 0.12721311475409836, 'fraction_numerical': 0.003278688524590164, 'mean_word_length': 3.568862275449102, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5084783', 'n_tokens_mistral': 450, 'n_tokens_neox': 436, 'n_words': 80}