<commit_before>var _ = require('lodash');
var items = require('./alerts.json');
var transform = {
  nid: {
    newName: 'id',
    props: {value:String}
  },
  uuid: {
    props: {value:String}
  },
  title: {
    props: {value: String}
  },
  body: {
    props: {value: String}
  },
  field_type: {
    props: {value: String}
  }
};

var processProp = function(key, trDef, prop){<commit_msg>pull type from alert feed<commit_after>var _ = require('lodash');
var items = require('./alerts.json');
var transform = {
  nid: {
    newName: 'id',
    props: {value:String}
  },
  uuid: {
    props: {value:String}
  },
  title: {
    props: {value: String}
  },
  body: {
    props: {value: String}
  },
  field_type: {
    newName: 'type',
    props: {value: String}
  }
};

var processProp = function(key, trDef, prop){
{'fraction_non_alphanumeric': 0.17914110429447852, 'fraction_numerical': 0.0, 'mean_word_length': 3.019704433497537, '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': '3256574', 'n_tokens_mistral': 305, 'n_tokens_neox': 302, 'n_words': 69}