<commit_before>(function() {
  'use strict';

  angular.module('app.feature.weather').service('_owmWeatherIconService', [
    '$log',
    function($log) {
      var isNight = function(dateTime) {
        return false;
      };

      this.fromIconId = function(iconId, dateTime) {
        if (!angular.isDefined(dateTime) || dateTime === null) {
          return 'wi wi-fw ' + (!angular.isDefined(iconId) ? 'wi-na' : 'wi-owm-' + iconId);
        }
        return 'wi wi-fw ' + (!angular.isDefined(iconId) ? 'wi-na' : 'wi-owm-' + isNight() ? 'night-' : 'day-' + iconId);
      };

      this.fromWindDirection = function(degrees) {
        if (!angular.isNumber(degrees)) {
          return 'wi wi-fw wi-na';
        }

        if (degrees > 360) {
          degrees = degrees % 360;
        }

        if (degrees > 337.5 && degrees <= 22.5) {
          return 'wi-from-n';
        }
        if (degrees > 22.5 && degrees <= 67.5) {
          return 'wi-from-ne';
        }
        if (degrees > 67.5 && degrees <= 112.5) {
          return 'wi-from-e';
        }
        if (degrees > 112.5 && degrees <= 157.5) {
          return 'wi-from-se';
        }
        if (degrees > 157.5 && degrees <= 202.5) {
          return 'wi-from-s';
        }
        if (degrees > 202.5 && degrees <= 247.5) {
          return 'wi-from-sw';
        }
        if (degrees > 247.5 && degrees <= 292.5) {
          return 'wi-from-w';
        }
        if (degrees > 292.5 && degrees <= 337.5) {
          return 'wi-from-nw';
        } else {
          $log.warn('Unknown wind direction: ' + degrees);
          return 'wi wi-fw wi-na';
        }
      };
    }
  ]);
})();<commit_msg>Use wind direction icon from weather-icons based on the value directly<commit_after>(function() {
  'use strict';

  angular.module('app.feature.weather').service('_owmWeatherIconService', [
    '$log',
    function($log) {
      var isNight = function(dateTime) {
        return false;
      };

      this.fromIconId = function(iconId, dateTime) {
        if (!angular.isDefined(dateTime) || dateTime === null) {
          return 'wi wi-fw ' + (!angular.isDefined(iconId) ? 'wi-na' : 'wi-owm-' + iconId);
        }
        return 'wi wi-fw ' + (!angular.isDefined(iconId) ? 'wi-na' : 'wi-owm-' + isNight() ? 'night-' : 'day-' + iconId);
      };

      this.fromWindDirection = function(degrees) {
        return !angular.isNumber(degrees)
          ? 'wi wi-fw wi-wind wi-na'
          : 'wi wi-fw wi-wind from-' + Math.round(degrees) % 360 + '-deg';
      };
    }
  ]);
})();
{'fraction_non_alphanumeric': 0.17561740493923952, 'fraction_numerical': 0.027048216385731086, 'mean_word_length': 1.8513966480446928, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 12, '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': '5008976', 'n_tokens_mistral': 942, 'n_tokens_neox': 850, 'n_words': 174}