<commit_before>// Copyright (c) 2015, <NAME> (twitter.com/evanxsummers)
// ISC license, see http://github.com/evanx/redexutil/LICENSE

import lodash from 'lodash';

const logger = Loggers.create(__filename, 'info');

export function formatProps(array, predicate) {
   if (lodash.isEmpty(array)) {
      return 'empty~array';
   } else if (!lodash.isArray(array)) {
      return 'invalid~array';
   } else {
      return array.map(item => Objects.keys(item, predicate)
      .map(key => '@' + key + '=' + ObjectLogs.format(item[key])).join(' '));<commit_msg>logging<commit_after>// Copyright (c) 2015, <NAME> (twitter.com/evanxsummers)
// ISC license, see http://github.com/evanx/redexutil/LICENSE

import lodash from 'lodash';

const logger = Loggers.create(__filename, 'info');

export function formatProps(array, predicate) {
   if (lodash.isEmpty(array)) {
      return 'empty~array';
   } else if (!lodash.isArray(array)) {
      return 'invalid~array';
   } else {
      return array.map(item => Objects.keys(item, predicate)
      .map(key => key + '=' + ObjectLogs.format(item[key])).join(' '));
{'fraction_non_alphanumeric': 0.1724137931034483, 'fraction_numerical': 0.007259528130671506, 'mean_word_length': 4.036529680365297, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '2673680', 'n_tokens_mistral': 382, 'n_tokens_neox': 363, 'n_words': 78}