<commit_before>"use strict";

var webpack = require("webpack");
var HtmlWebpackPlugin = require("html-webpack-plugin");
var ExtractTextPlugin = require("extract-text-webpack-plugin");
var serverConfig = {};
try {
	serverConfig = require("./config.json");
} catch (e) {
	console.log(e);
}
var contentpages = process.env.CONTENTPAGES || serverConfig.contentpages;
var menuitems = process.env.MENUITEMS || serverConfig.menuitems;
var frontpagecomponent = process.env.FRONTPAGECOMPONENT || serverConfig.frontpagecomponent;
var baseurl = process.env.BASEURL || serverConfig.baseurl;
var embedurl = process.env.EMBEDURL || serverConfig.embedurl;
var httporigin = process.env.HTTPORIGIN || serverConfig.httporigin;

var path = require("path");
var srcPath = path.join(__dirname, "js");
var compassPath = path.resolve(__dirname, "./node_modules/compass-mixins/lib");
var sassPath = path.resolve(__dirname, "sass");
var sassIncludePaths = "includePaths[]="+compassPath+"&includePaths[]="+sassPath;

var loaders = [
	{
		test: /\.js?$/,
		exclude: [/node_modules/, /bootstrap\.config\.js/],
		loader: "babel-loader"
	},
	{ test: /bootstrap\/js\//, loader: 'imports?jQuery=jquery' },
	{ test: /\.(woff|woff2)(\?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" },
	{ test: /\.less$/, loader: ExtractTextPlugin.extract("style-loader", "css-loader!less-loader") },
	{ test: /\.css$/, loader: ExtractTextPlugin.extract("style-loader", "css-loader") },
	{ test: /\.scss$/, loader: "style!css!sass?"+sassIncludePaths },
	{ test: /\.sass$/, loader: "style!css!sass?indentedSyntax&"+sassIncludePaths },
	{ test: /.*\.(gif|png|jpe?g|ico)$/i, loader: "file?name=[name]-[sha512:hash:hex:6].[ext]" },
	{ test: /\.md*/, loader: "babel-loader!react-markdown!markdown" }
];

if (contentpages) {<commit_msg>Typo fix.<commit_after>"use strict";

var webpack = require("webpack");
var HtmlWebpackPlugin = require("html-webpack-plugin");
var ExtractTextPlugin = require("extract-text-webpack-plugin");
var serverConfig = {};
try {
	serverConfig = require("./config.json");
} catch (e) {
	console.log(e);
}
var contentpages = process.env.CONTENTPAGES || serverConfig.contentpages;
var menuitems = process.env.MENUITEMS || serverConfig.menuitems;
var frontpagecomponent = process.env.FRONTPAGECOMPONENT || serverConfig.frontpagecomponent;
var baseurl = process.env.BASEURL || serverConfig.baseurl;
var embedurl = process.env.EMBEDURL || serverConfig.embedurl;
var httporigin = process.env.HTTPORIGIN || serverConfig.httporigin;

var path = require("path");
var srcPath = path.join(__dirname, "js");
var compassPath = path.resolve(__dirname, "./node_modules/compass-mixins/lib");
var sassPath = path.resolve(__dirname, "sass");
var sassIncludePaths = "includePaths[]="+compassPath+"&includePaths[]="+sassPath;

var loaders = [
	{
		test: /\.js?$/,
		exclude: [/node_modules/, /bootstrap\.config\.js/],
		loader: "babel-loader"
	},
	{ test: /bootstrap\/js\//, loader: 'imports?jQuery=jquery' },
	{ test: /\.(woff|woff2)(\?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" },
	{ test: /\.less$/, loader: ExtractTextPlugin.extract("style-loader", "css-loader!less-loader") },
	{ test: /\.css$/, loader: ExtractTextPlugin.extract("style-loader", "css-loader") },
	{ test: /\.scss$/, loader: "style!css!sass?"+sassIncludePaths },
	{ test: /\.sass$/, loader: "style!css!sass?indentedSyntax&"+sassIncludePaths },
	{ test: /.*\.(gif|png|jpe?g|ico)$/i, loader: "file?name=[name]-[sha512:hash:hex:6].[ext]" },
	{ test: /\.md$/, loader: "babel-loader!react-markdown!markdown" }
];

if (contentpages) {
{'fraction_non_alphanumeric': 0.2236460348162476, 'fraction_numerical': 0.009671179883945842, 'mean_word_length': 4.868085106382979, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4694080', 'n_tokens_mistral': 1575, 'n_tokens_neox': 1500, 'n_words': 237}