<commit_before>const verbose = require('../verbose');
const getVersions = require('./get-versions');
const prettyjson = require('prettyjson');
const path = require('path');

// TODO: separate metadata task to local and remote retrieval, so local metadata can be watched and refreshed
module.exports = (gulp, metadata, opts) => {
  gulp.task('metadata', gulp.series('toc', metadataTask));

  function metadataTask() {
    verbose('preparing metadata...');
    metadata.prepare('versions', getVersions, 'https://github.com/cloudify-cosmo/cloudify-manager.git');
    metadata.prepare('env', process.env['NODE_ENV'] || 'development');
    metadata.prepare('toc', require(path.join(opts.paths.base, 'tree.json')));
    return metadata.ready((fields) => {
      verbose('\n' + prettyjson.render(fields), 'Metadata');
    });
  };
  metadataTask.displayName ='metadata';
  metadataTask.description = 'retrieve remote metadata'
}<commit_msg>comment out getting versions from cloudify-manager github<commit_after>const verbose = require('../verbose');
const getVersions = require('./get-versions');
const prettyjson = require('prettyjson');
const path = require('path');

// TODO: separate metadata task to local and remote retrieval, so local metadata can be watched and refreshed
module.exports = (gulp, metadata, opts) => {
  gulp.task('metadata', gulp.series('toc', metadataTask));

  function metadataTask() {
    verbose('preparing metadata...');
    // metadata.prepare('versions', getVersions, 'https://github.com/cloudify-cosmo/cloudify-manager.git');
    metadata.prepare('env', process.env['NODE_ENV'] || 'development');
    metadata.prepare('toc', require(path.join(opts.paths.base, 'tree.json')));
    return metadata.ready((fields) => {
      verbose('\n' + prettyjson.render(fields), 'Metadata');
    });
  };
  metadataTask.displayName ='metadata';
  metadataTask.description = 'retrieve remote metadata'
}
{'fraction_non_alphanumeric': 0.16675378985886044, 'fraction_numerical': 0.0, 'mean_word_length': 5.037854889589905, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '940744', 'n_tokens_mistral': 546, 'n_tokens_neox': 525, 'n_words': 126}