<commit_before>"use strict";

module.exports.getHtmlTemplateSet = (path, fs, encoding) => {
    return {
        html: fs.readFileSync(path.join(__dirname, "/template-html.txt"), encoding),
        style: fs.readFileSync(path.join(__dirname + "/template-style.txt"), encoding),
        embeddedStyle: fs.readFileSync(path.join(__dirname + "/template-embedded-style.txt"), encoding),
        notFoundCss: fs.readFileSync(path.join(__dirname + "/template-not-found-css.txt"), encoding)
    }
}; //getHtmlTemplateSet

module.exports.getSettings = importContext => { // see package.json, "configuration":
    const thisExtensionSection =
        importContext.vscode.workspace.getConfiguration("markdown.extensibleMarkdown");
    const thisConvertToHtmlSection =
        importContext.vscode.workspace.getConfiguration("markdown.extensibleMarkdown.convertToHtml");
    const thisMarkdownItOptionSection =
        importContext.vscode.workspace.getConfiguration("markdown.extensibleMarkdown.options");
    const sharedSection = importContext.vscode.workspace.getConfiguration(importContext.markdownId);
    const settings = {
        reportSuccess: thisConvertToHtmlSection["reportSuccess"],
        showHtmlInBrowser: thisConvertToHtmlSection["showHtmlInBrowser"],
        embedCss: thisConvertToHtmlSection["embedCss"],
        outputPath: thisConvertToHtmlSection["outputPath"],
        titleLocatorRegex: thisExtensionSection["titleLocatorRegex"],
        headingId: thisExtensionSection["headingId"],
        headingIdPrefix: thisExtensionSection["headingIdPrefix"],
        tocRegex: thisExtensionSection["tocRegex"],
        tocIncludeLevels: thisExtensionSection["tocIncludeLevels"],
        tocContainerClass: thisExtensionSection["tocContainerClass"],
        includeLocatorRegex: thisExtensionSection["includeLocatorRegex"],
        includeLocatorInvalidRegexMessageFormat: thisExtensionSection["includeLocatorInvalidRegexMessageFormat"],
        includeLocatorFileReadFailureMessageFormat: thisExtensionSection["includeLocatorFileReadFailureMessageFormat"],
        css: sharedSection["styles"],
        excludeFromTocRegex: thisExtensionSection["excludeFromTocRegex"],
        tocItemIndentInEm: thisExtensionSection["tocItemIndentInEm"],
        autoNumbering: thisExtensionSection["autoNumberingxxx. 333"],
        autoNumberingRegex: thisExtensionSection["autoNumberingRegex"],
        // options:
        allowHTML: thisMarkdownItOptionSection["allowHTML"],
        typographer: thisMarkdownItOptionSection["typographer"],
        smartQuotes: thisMarkdownItOptionSection["smartQuotes"],<commit_msg>Settings: removed unused test settings element<commit_after>"use strict";

module.exports.getHtmlTemplateSet = (path, fs, encoding) => {
    return {
        html: fs.readFileSync(path.join(__dirname, "/template-html.txt"), encoding),
        style: fs.readFileSync(path.join(__dirname + "/template-style.txt"), encoding),
        embeddedStyle: fs.readFileSync(path.join(__dirname + "/template-embedded-style.txt"), encoding),
        notFoundCss: fs.readFileSync(path.join(__dirname + "/template-not-found-css.txt"), encoding)
    }
}; //getHtmlTemplateSet

module.exports.getSettings = importContext => { // see package.json, "configuration":
    const thisExtensionSection =
        importContext.vscode.workspace.getConfiguration("markdown.extensibleMarkdown");
    const thisConvertToHtmlSection =
        importContext.vscode.workspace.getConfiguration("markdown.extensibleMarkdown.convertToHtml");
    const thisMarkdownItOptionSection =
        importContext.vscode.workspace.getConfiguration("markdown.extensibleMarkdown.options");
    const sharedSection = importContext.vscode.workspace.getConfiguration(importContext.markdownId);
    const settings = {
        reportSuccess: thisConvertToHtmlSection["reportSuccess"],
        showHtmlInBrowser: thisConvertToHtmlSection["showHtmlInBrowser"],
        embedCss: thisConvertToHtmlSection["embedCss"],
        outputPath: thisConvertToHtmlSection["outputPath"],
        titleLocatorRegex: thisExtensionSection["titleLocatorRegex"],
        headingId: thisExtensionSection["headingId"],
        headingIdPrefix: thisExtensionSection["headingIdPrefix"],
        tocRegex: thisExtensionSection["tocRegex"],
        tocIncludeLevels: thisExtensionSection["tocIncludeLevels"],
        tocContainerClass: thisExtensionSection["tocContainerClass"],
        includeLocatorRegex: thisExtensionSection["includeLocatorRegex"],
        includeLocatorInvalidRegexMessageFormat: thisExtensionSection["includeLocatorInvalidRegexMessageFormat"],
        includeLocatorFileReadFailureMessageFormat: thisExtensionSection["includeLocatorFileReadFailureMessageFormat"],
        css: sharedSection["styles"],
        excludeFromTocRegex: thisExtensionSection["excludeFromTocRegex"],
        tocItemIndentInEm: thisExtensionSection["tocItemIndentInEm"],
        autoNumberingRegex: thisExtensionSection["autoNumberingRegex"],
        // options:
        allowHTML: thisMarkdownItOptionSection["allowHTML"],
        typographer: thisMarkdownItOptionSection["typographer"],
        smartQuotes: thisMarkdownItOptionSection["smartQuotes"],
{'fraction_non_alphanumeric': 0.1026036644165863, 'fraction_numerical': 0.0005785920925747348, 'mean_word_length': 5.20334928229665, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 7, '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': '2681504', 'n_tokens_mistral': 1323, 'n_tokens_neox': 1281, 'n_words': 175}