<commit_before>import WordPressXmlToMarkdown from './wpxml2md.js';
import Logger from './logger.js';

/**
 * Conver WordPress XML to Markdown.
 *
 * @param {String} src     Path of the WordPress XML file.
 * @param {String} dest    Path of Markdown files output directory.
 * @param {Option} options Options.
 *
 * @return {Promise} Promise object.
 */
module.exports = ( src, dest, options ) => {
  // Set defaults
  const opt = options || {};
  if( opt.report === undefined ) { opt.gmf = false; }
  if( opt.gmf    === undefined ) { opt.gmf = true; }

  return WordPressXmlToMarkdown.convert( src, dest, new Logger( opt.report ), opt );
};
<commit_msg>#21 Fix a default values of options<commit_after>import WordPressXmlToMarkdown from './wpxml2md.js';
import Logger from './logger.js';

/**
 * Conver WordPress XML to Markdown.
 *
 * @param {String} src     Path of the WordPress XML file.
 * @param {String} dest    Path of Markdown files output directory.
 * @param {Option} options Options.
 *
 * @return {Promise} Promise object.
 */
module.exports = ( src, dest, options = { report: false, gfm: false } ) => {
  return WordPressXmlToMarkdown.convert( src, dest, new Logger( options.report ), options );
};

{'fraction_non_alphanumeric': 0.13767518549051938, 'fraction_numerical': 0.0032976092333058533, 'mean_word_length': 3.581132075471698, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '5238188', 'n_tokens_mistral': 366, 'n_tokens_neox': 363, 'n_words': 127}