<commit_before>'use strict';

const eventTypes = require('./resources/trackables.json').eventTypes;
const rewardTypes = require('./resources/trackables.json').rewardTypes;

function trackablesFromParameters (paramString) {
  const items = paramString.split(' ');

  const trackables = {
    events: [],
    items: [],
  }

  if (items[0].toLowerCase() === 'all') {
    trackables.events = trackables.events.concat(eventTypes);
    trackables.items = trackables.items.concat(rewardTypes);
  } else {
    items = items.map(item => item.trim());
    items.forEach((item) => {
      if (item.toLowerCase() === 'items') {
        trackables.items = trackables.items.concat(rewardTypes);<commit_msg>fix for assignment to a constant<commit_after>'use strict';

const eventTypes = require('./resources/trackables.json').eventTypes;
const rewardTypes = require('./resources/trackables.json').rewardTypes;

function trackablesFromParameters (paramString) {
  let items = paramString.split(' ');

  const trackables = {
    events: [],
    items: [],
  }

  if (items[0].toLowerCase() === 'all') {
    trackables.events = trackables.events.concat(eventTypes);
    trackables.items = trackables.items.concat(rewardTypes);
  } else {
    items = items.map(item => item.trim());
    items.forEach((item) => {
      if (item.toLowerCase() === 'items') {
        trackables.items = trackables.items.concat(rewardTypes);
{'fraction_non_alphanumeric': 0.16108339272986458, 'fraction_numerical': 0.0014255167498218105, 'mean_word_length': 4.124087591240876, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '6500661', 'n_tokens_mistral': 412, 'n_tokens_neox': 415, 'n_words': 74}