<commit_before>'use strict';

const GET_RANDOM = function (arr) {
  return arr[Math.floor(Math.random() * arr.length)];
};

exports.generate = function () {
  let listArray = Array.from(arguments);
  let d = new Date();
  let handle = listArray.map(GET_RANDOM).join('');
  return handle += d.toISOString().substr(20, 3);
}<commit_msg>refactored to make more concise<commit_after>'use strict';

const GET_RANDOM = function (arr) {
  return arr[Math.floor(Math.random() * arr.length)];
};

exports.generate = function () {
  return Array.from(arguments).map(GET_RANDOM).join('') + new Date().toISOString().substr(20, 3);
}
{'fraction_non_alphanumeric': 0.17580645161290323, 'fraction_numerical': 0.00967741935483871, 'mean_word_length': 5.148514851485149, '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': '5839318', 'n_tokens_mistral': 212, 'n_tokens_neox': 207, 'n_words': 45}