<commit_before><commit_msg>wip-count pairs<commit_after>const assert = require('assert');

const groupTotals = (strArr) => {
  let pairs = strArr.map(function(str) {
    return str.split(':');
  });
  let counts = {};
  for (let i = 0; i < pairs.length; i+= 1) {
    if (counts[pairs[i]]) {

    }
  }
  return();
};

const a1 = '["Z:0", "A:-1"]'; // input
const r1 = 'A:-1'; // output
const t1 = groupTotals(a1);
assert(r1, t1);
{'fraction_non_alphanumeric': 0.22144522144522144, 'fraction_numerical': 0.02564102564102564, 'mean_word_length': 3.4329896907216493, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '1053270', 'n_tokens_mistral': 176, 'n_tokens_neox': 171, 'n_words': 39}