<commit_before>// Code below taken from http://eureka.ykyuen.info/2015/02/26/meteor-run-shell-command-at-server-side/

var spawn = Meteor.npmRequire('child_process').spawn;

var lineToResultObj = function(line) {
  var elts;
  var newObj;
  var line;

  elts = line.split('\t');

  newObj = {
    text: elts[2],
    corpus: elts[1]
  };

  if (newObj.text === undefined)
    return;

  return newObj;
};
<commit_msg>Update codeSearchMethod.js<commit_after>// Code below taken from http://eureka.ykyuen.info/2015/02/26/meteor-run-shell-command-at-server-side/

var spawn = Meteor.npmRequire('child_process').spawn;

var lineToResultObj = function(line) {
  var elts;
  var newObj;

  elts = line.split('\t');

  newObj = {
    text: elts[2],
    corpus: elts[1]
  };

  if (newObj.text === undefined)
    return;

  return newObj;
};

{'fraction_non_alphanumeric': 0.15606242496998798, 'fraction_numerical': 0.024009603841536616, 'mean_word_length': 3.3664921465968587, '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': '2737064', 'n_tokens_mistral': 339, 'n_tokens_neox': 316, 'n_words': 61}