<commit_before>/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

const LodashModuleReplacementPlugin = require('lodash-webpack-plugin');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
const webpack = require('webpack');
const path = require('path');

const BUILD_DIR = path.resolve(__dirname, 'src/client/public');
const APP_DIR = path.resolve(__dirname, 'src/client/app');

const config = {
    entry: APP_DIR + "/index.tsx",
    output: {
        filename: "bundle.js",
        path: BUILD_DIR
    },

    // Enable sourcemaps for debugging webpack's output.
    devtool: "source-map",

    resolve: {
        // Add '.ts' and '.tsx' as resolvable extensions.
        extensions: [".ts", ".tsx", ".js", ".json"]
    },

    // Ignore warnings about bundle size
    performance: {
        hints: false
    },

    module: {
        rules: [
            // All TypeScript ('.ts' or '.tsx') will be handled by 'awesome-typescript-loader'.
            // Also, for development, JavaScript is handled by 'awesome-typescript-loader' and passed to Babel.
            { test: /\.[jt]sx?$/, exclude: /node_modules/, loader: "awesome-typescript-loader" },
            // Any remaining JavaScript ('.js' or '.jsx') will be transpiled by Babel, for production uglification.
            { test: /\/jsx?$/, exclude: /node_modules/, loader: "babel-loader" },
			// CSS stylesheet loader.
			{ test: /\.css$/, loader: 'style-loader!css-loader' },
            // All output '.js' files will have any sourcemaps re-processed by 'source-map-loader'.
            { enforce: "pre", test: /\.js$/, loader: "source-map-loader" }
        ]
    },
	plugins: [
        new LodashModuleReplacementPlugin(),
	],
	node: {
		fs: 'empty'<commit_msg>Fix TSC/ATLoader not giving errors in some cases<commit_after>/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

const LodashModuleReplacementPlugin = require('lodash-webpack-plugin');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
const webpack = require('webpack');
const path = require('path');
const { CheckerPlugin } = require('awesome-typescript-loader');

const BUILD_DIR = path.resolve(__dirname, 'src/client/public');
const APP_DIR = path.resolve(__dirname, 'src/client/app');

const config = {
    entry: APP_DIR + "/index.tsx",
    output: {
        filename: "bundle.js",
        path: BUILD_DIR
    },

    // Enable sourcemaps for debugging webpack's output.
    devtool: "source-map",

    resolve: {
        // Add '.ts' and '.tsx' as resolvable extensions.
        extensions: [".ts", ".tsx", ".js", ".json"]
    },

    // Ignore warnings about bundle size
    performance: {
        hints: false
    },

    module: {
        rules: [
            // All TypeScript ('.ts' or '.tsx') will be handled by 'awesome-typescript-loader'.
            // Also, for development, JavaScript is handled by 'awesome-typescript-loader' and passed to Babel.
            { test: /\.[jt]sx?$/, exclude: /node_modules/, loader: "awesome-typescript-loader" },
            // Any remaining JavaScript ('.js' or '.jsx') will be transpiled by Babel, for production uglification.
            { test: /\/jsx?$/, exclude: /node_modules/, loader: "babel-loader" },
			// CSS stylesheet loader.
			{ test: /\.css$/, loader: 'style-loader!css-loader' },
            // All output '.js' files will have any sourcemaps re-processed by 'source-map-loader'.
            { enforce: "pre", test: /\.js$/, loader: "source-map-loader" }
        ]
    },
	plugins: [
        new LodashModuleReplacementPlugin(),
		new CheckerPlugin(),
	],
	node: {
		fs: 'empty'
{'fraction_non_alphanumeric': 0.1477680861980503, 'fraction_numerical': 0.002052334530528476, 'mean_word_length': 2.6405228758169934, 'pattern_counts': {'":': 0, '<': 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': '7512514', 'n_tokens_mistral': 1224, 'n_tokens_neox': 1170, 'n_words': 359}