<commit_before>module.exports = function(config) {
    config.set({

        frameworks: ['jasmine', 'karma-typescript'],

        files: [
            { pattern: "src/base.spec.ts" },
            { pattern: "src/app/mock/**/*.+(ts|html)" },
            { pattern: "src/app/pipes/**/*.+(ts|html)" },
            { pattern: "src/app/services/**/*.+(ts|html)" }
        ],

        plugins: [
            'karma-phantomjs-launcher',
            'karma-jasmine',
            'karma-typescript', 
            'karma-coverage', 
            'karma-mocha', 
            'karma-mocha-reporter'
        ],

        exclude: [
            'src/app/mock/standalone/sso-api.provider.ts', // this class produces some errors when compiled in test mode
            'src/app/shared/wit-api.provider.ts', // this class produces some errors when compiled in test mode
            'src/app/services/login.service.ts' // this requires some dependency from runtime, so exclude it
        ],

        preprocessors: {
            "**/*.ts": ["karma-typescript"]
        },

        karmaTypescriptConfig: {
            bundlerOptions: {
                entrypoints: /\.spec\.ts$/,
                transforms: [
                    require("karma-typescript-angular2-transform"),
                    require("karma-typescript-es6-transform")()
                ],
                // not excluding ngx-widgets from the bundling causes syntax errors in the final bundle(?!).
                exclude: ['ngx-widgets']
            },
            compilerOptions: {
                lib: ["ES2015", "DOM"]
            },
            exclude: [
                'node_modules',
                'runtime', // explicitly exclude the runtime here
                'src/app/mock/standalone/sso-api.provider.ts', // this class produces some errors when compiled in test mode
                'src/app/shared/wit-api.provider.ts', // this class produces some errors when compiled in test mode
                'src/app/services/login.service.ts' // this requires some dependency from runtime, so exclude it
            ]
        },

        reporters: ['progress', 'karma-typescript', 'mocha'],

        browsers: ['PhantomJS'],

        singleRun: true,

    });
};<commit_msg>fix(tests): excluded dist and dist-watch in karma config.<commit_after>module.exports = function(config) {
    config.set({

        frameworks: ['jasmine', 'karma-typescript'],

        files: [
            { pattern: "src/base.spec.ts" },
            { pattern: "src/app/mock/**/*.+(ts|html)" },
            { pattern: "src/app/pipes/**/*.+(ts|html)" },
            { pattern: "src/app/services/**/*.+(ts|html)" }
        ],

        plugins: [
            'karma-phantomjs-launcher',
            'karma-jasmine',
            'karma-typescript', 
            'karma-coverage', 
            'karma-mocha', 
            'karma-mocha-reporter'
        ],

        exclude: [
            'src/app/mock/standalone/sso-api.provider.ts', // this class produces some errors when compiled in test mode
            'src/app/shared/wit-api.provider.ts', // this class produces some errors when compiled in test mode
            'src/app/services/login.service.ts' // this requires some dependency from runtime, so exclude it
        ],

        preprocessors: {
            "**/*.ts": ["karma-typescript"]
        },

        karmaTypescriptConfig: {
            bundlerOptions: {
                entrypoints: /\.spec\.ts$/,
                transforms: [
                    require("karma-typescript-angular2-transform"),
                    require("karma-typescript-es6-transform")()
                ],
                // not excluding ngx-widgets from the bundling causes syntax errors in the final bundle(?!).
                exclude: ['ngx-widgets']
            },
            compilerOptions: {
                lib: ["ES2015", "DOM"]
            },
            exclude: [
                'dist',
                'dist-watch',
                'node_modules',
                'runtime', // explicitly exclude the runtime here
                'src/app/mock/standalone/sso-api.provider.ts', // this class produces some errors when compiled in test mode
                'src/app/shared/wit-api.provider.ts', // this class produces some errors when compiled in test mode
                'src/app/services/login.service.ts' // this requires some dependency from runtime, so exclude it
            ]
        },

        reporters: ['progress', 'karma-typescript', 'mocha'],

        browsers: ['PhantomJS'],

        singleRun: true,

    });
};
{'fraction_non_alphanumeric': 0.13560804899387577, 'fraction_numerical': 0.0026246719160104987, 'mean_word_length': 1.5968199886428165, 'pattern_counts': {'":': 2, '<': 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': '4281797', 'n_tokens_mistral': 1294, 'n_tokens_neox': 1211, 'n_words': 273}