<commit_before>// Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.
var path = require('path');
var gulp = require('gulp');
var zip = require('gulp-zip');
var minimist = require('minimist');
var uniqueFiles = require('gulp-unique-files');
var streamqueue = require('streamqueue');

var knownOptions = {
    string: 'dir',
    default: { dir: '../docfx/Template/', t: '' }
};

var options = minimist(process.argv.slice(2), knownOptions);
var templateFiles = [
    "layout/*",
    "partials/**/*",
    "*.js",
    "*.tmpl",
    "*.liquid",
    "token.json",
    "!gulpfile.js"
];
var webpageFiles = [
    "fonts/*",
    "styles/*",
    "favicon.ico",
    "logo.svg",
    "search-stopwords.json"];

var files = templateFiles.concat(webpageFiles);

var pack = {
    "common": [
        {
            "files": files,
        }
    ],
    "default": [
        {
            "files": files,
            "cwd": "common",
        },
        {
            "files": files,
        }
    ],
    "default(zh-cn)": [
        {
            "files": files,
        }
    ],
    "statictoc": [
        {
            "files": files,
            "cwd": "common",
        },
        {
            "files": files.concat("!toc.html.*"),
            "cwd": "default",
        },
        {
            "files": files, // Overrides the former one if file name is the same
        }
    ],
    "pdf.default": [
        {
            "files": files,
            "cwd": "common",
        },
        {
            "files": templateFiles,
            "cwd": "default",
        },
        {
            "files": files, // Overrides the former one if file name is the same
        }
    ]
};
<commit_msg>pack fonts in default template into pdf template as well (#6600)<commit_after>// Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.
var path = require('path');
var gulp = require('gulp');
var zip = require('gulp-zip');
var minimist = require('minimist');
var uniqueFiles = require('gulp-unique-files');
var streamqueue = require('streamqueue');

var knownOptions = {
    string: 'dir',
    default: { dir: '../docfx/Template/', t: '' }
};

var options = minimist(process.argv.slice(2), knownOptions);
var templateFiles = [
    "layout/*",
    "partials/**/*",
    "*.js",
    "*.tmpl",
    "*.liquid",
    "token.json",
    "!gulpfile.js"
];
var webpageFiles = [
    "fonts/*",
    "styles/*",
    "favicon.ico",
    "logo.svg",
    "search-stopwords.json"];

var files = templateFiles.concat(webpageFiles);

var pack = {
    "common": [
        {
            "files": files,
        }
    ],
    "default": [
        {
            "files": files,
            "cwd": "common",
        },
        {
            "files": files,
        }
    ],
    "default(zh-cn)": [
        {
            "files": files,
        }
    ],
    "statictoc": [
        {
            "files": files,
            "cwd": "common",
        },
        {
            "files": files.concat("!toc.html.*"),
            "cwd": "default",
        },
        {
            "files": files, // Overrides the former one if file name is the same
        }
    ],
    "pdf.default": [
        {
            "files": files,
            "cwd": "common",
        },
        {
            "files": templateFiles.concat([ "fonts/*" ]),
            "cwd": "default",
        },
        {
            "files": files, // Overrides the former one if file name is the same
        }
    ]
};

{'fraction_non_alphanumeric': 0.1685611311339063, 'fraction_numerical': 0.0016634322151372332, 'mean_word_length': 1.6905294556301267, 'pattern_counts': {'":': 40, '<': 3, '<?xml version=': 0, '>': 3, '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': '3207094', 'n_tokens_mistral': 1119, 'n_tokens_neox': 1104, 'n_words': 269}