<commit_before>// mongo nodeknockout json2.js github.js | tail +5 | python -mjson.tool

var teams = db.Team.find().map(function(t) {
  return {
    name: t.name,
    members: t.members.map(function(m) {
      var p = db.Person.findOne({ _id: m._id }, {
        github: true, email: true, name: true
      });
      delete p._id;

      return p;
    })
  };
});

print(JSON.stringify(teams));<commit_msg>include slugs in the github json<commit_after>// mongo nodeknockout json2.js github.js | tail +5 | python -mjson.tool

var teams = db.Team.find().map(function(t) {
  return {
    name: t.name,
    slug: t.slug,
    members: t.members.map(function(m) {
      var p = db.Person.findOne({ _id: m._id }, {
        github: true, email: true, name: true
      });
      delete p._id;

      return p;
    })
  };
});

print(JSON.stringify(teams));
{'fraction_non_alphanumeric': 0.1621301775147929, 'fraction_numerical': 0.004733727810650888, 'mean_word_length': 2.5397489539748954, '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': '4839276', 'n_tokens_mistral': 313, 'n_tokens_neox': 304, 'n_words': 72}