<commit_before>module.exports = interval;

// NOTE: just a stub for now, implimentation coming soon 

// take an object that specifies a number of hours and return milliseconds
function interval(obj) {
  var days = obj.days || 0;
  var hours = obj.hours || 0;
  var minutes = obj.minutes || 0;
  var seconds = obj.seconds || 0;
  var milliseconds = obj.milliseconds || 0;

  hours += days * 24;
  minutes += hours * 60;
  seconds += minutes * 60;
  milliseconds += seconds * 1000;
 
  return milliseconds; 
}

var properties = ['days', 'hours', 'minutes', 'seconds', 'milliseconds'];

interval.stringify = function (obj) {
  var result = [];

  properties.forEach(function (property) {
    if (obj[property]) {
      result.push(obj[property].toString() + ' ' + property);
    }
  });

  return result.join(', ');
}

interval.parse = function (s) {
  throw new Error('not implimented');
}<commit_msg>[style] add semicolons after function literals<commit_after>module.exports = interval;

// NOTE: just a stub for now, implimentation coming soon 

// take an object that specifies a number of hours and return milliseconds
function interval(obj) {
  var days = obj.days || 0;
  var hours = obj.hours || 0;
  var minutes = obj.minutes || 0;
  var seconds = obj.seconds || 0;
  var milliseconds = obj.milliseconds || 0;

  hours += days * 24;
  minutes += hours * 60;
  seconds += minutes * 60;
  milliseconds += seconds * 1000;
 
  return milliseconds; 
}

var properties = ['days', 'hours', 'minutes', 'seconds', 'milliseconds'];

interval.stringify = function (obj) {
  var result = [];

  properties.forEach(function (property) {
    if (obj[property]) {
      result.push(obj[property].toString() + ' ' + property);
    }
  });

  return result.join(', ');
};

interval.parse = function (s) {
  throw new Error('not implimented');
};
{'fraction_non_alphanumeric': 0.1449591280653951, 'fraction_numerical': 0.01634877384196185, 'mean_word_length': 3.5671641791044775, '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': '5647646', 'n_tokens_mistral': 603, 'n_tokens_neox': 542, 'n_words': 177}