<commit_before>"use strict";

const baseConfig = require("./rollup.config");
const plugin = require("./plugin");
const path = require("path");

module.exports = baseConfig.map(config => {
  const templateType = getTemplateType(config);
  config.plugins.push(
    plugin({
      open: true,
      filename: `stats.${templateType}.html`,
      template: templateType
    })
  );
  return config;
});

function getTemplateType({ input }) {
  const filename = path.basename(input, path.extname(input));
  const [, templateType] = filename.split("-");
  return templateType;
}<commit_msg>Use title with graph type<commit_after>"use strict";

const baseConfig = require("./rollup.config");
const plugin = require("./plugin");
const path = require("path");

module.exports = baseConfig.map(config => {
  const templateType = getTemplateType(config);
  config.plugins.push(
    plugin({
      open: true,
      title: `test ${templateType}`,
      filename: `stats.${templateType}.html`,
      template: templateType
    })
  );
  return config;
});

function getTemplateType({ input }) {
  const filename = path.basename(input, path.extname(input));
  const [, templateType] = filename.split("-");
  return templateType;
}
{'fraction_non_alphanumeric': 0.15720164609053497, 'fraction_numerical': 0.0, 'mean_word_length': 4.1525423728813555, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1737223', 'n_tokens_mistral': 354, 'n_tokens_neox': 354, 'n_words': 83}