<commit_before>define(['app', 'moment'], function(app, moment) {
  app.directive('duration', function() {
  	function round(value) {
  		return parseInt(value * 100, 10) / 100;
  	}

    return function duration(scope, element, attrs) {
      var $element = $(element);
      scope.$watch(attrs.duration, function(value) {
      	var result;
      	if (value > 7200000) {
      		result = round(value / 3600000) + 'h';
      	} else if (value > 120000) {
      		result = round(value / 60000) + 'm';
      	} else if (value > 1000) {
      		result = round(value / 1000) + 's';
      	} else {
      		result = parseInt(value, 10) + 'ms';
      	}

        element.text(result);
      });
    }
  });
});<commit_msg>Longer suffix for duration<commit_after>define(['app', 'moment'], function(app, moment) {
  app.directive('duration', function() {
    function round(value) {
      return parseInt(value * 100, 10) / 100;
    }

    return function duration(scope, element, attrs) {
      var $element = $(element);
      scope.$watch(attrs.duration, function(value) {
        var result;

        if (value > 7200000) {
          result = round(value / 3600000) + ' hr';
        } else if (value > 120000) {
          result = round(value / 60000) + ' min';
        } else if (value > 1000) {
          result = round(value / 1000) + ' sec';
        } else {
          result = parseInt(value, 10) + ' ms';
        }

        element.text(result);
      });
    }
  });
});
{'fraction_non_alphanumeric': 0.15885947046843177, 'fraction_numerical': 0.058384249830278345, 'mean_word_length': 2.1563169164882225, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '342714', 'n_tokens_mistral': 544, 'n_tokens_neox': 468, 'n_words': 111}