<commit_before>// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.

var version = require('./package.json').version;

module.exports = {
    entry: './lib/embed-webpack.js',
    output: {
        filename : 'index.js',
        path: './dist',
        publicPath: 'https://unpkg.com/@jupyter-widgets/htmlmanager@' + version + '/dist/'
    },
    devtool: 'source-map',
    module: {
        loaders: [
            { test: /\.css$/, loader: "style-loader!css-loader!postcss-loader" },
            { test: /\.json$/, loader: "json-loader" },
            // jquery-ui loads some images
            { test: /\.(jpg|png|gif)$/, loader: "file" },
            // required to load font-awesome
            { test: /\.woff2(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=application/font-woff" },
            { test: /\.woff(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=application/font-woff" },
            { test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=application/octet-stream" },
            { test: /\.eot(\?v=\d+\.\d+\.\d+)?$/, loader: "file" },
            { test: /\.svg(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=image/svg+xml" }
        ]
    },
    postcss: function () {
        return [
            require('postcss-import'),
            require('postcss-cssnext')
        ];
    }
};<commit_msg>Work around issues with jupyterlab modules<commit_after>// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.

var version = require('./package.json').version;

var postcss = require('postcss');
module.exports = {
    entry: './lib/embed-webpack.js',
    output: {
        filename : 'index.js',
        path: './dist',
        publicPath: 'https://unpkg.com/@jupyter-widgets/htmlmanager@' + version + '/dist/'
    },
    devtool: 'source-map',
    module: {
        loaders: [
            { test: /\.css$/, loader: "style-loader!css-loader!postcss-loader" },
            { test: /\.json$/, loader: "json-loader" },
            // jquery-ui loads some images
            { test: /\.(jpg|png|gif)$/, loader: "file" },
            // required to load font-awesome
            { test: /\.woff2(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=application/font-woff" },
            { test: /\.woff(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=application/font-woff" },
            { test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=application/octet-stream" },
            { test: /\.eot(\?v=\d+\.\d+\.\d+)?$/, loader: "file" },
            { test: /\.svg(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=image/svg+xml" }
        ]
    },
    postcss: function () {
        return [
            postcss.plugin('delete-tilde', function () {
                return function (css) {
                    css.walkAtRules('import', function (rule) {
                        rule.params = rule.params.replace('~', '');
                    });
                };
            }),
            postcss.plugin('prepend', () => {
                return (css) => {
                    css.prepend(`@import '@jupyter-widgets/controls/css/labvariables.css';`)
                }
            }),
            require('postcss-import')(),
            require('postcss-cssnext')()
        ];
    }
};
{'fraction_non_alphanumeric': 0.2154255319148936, 'fraction_numerical': 0.012411347517730497, 'mean_word_length': 1.8541315345699831, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7382435', 'n_tokens_mistral': 1161, 'n_tokens_neox': 1094, 'n_words': 181}