<commit_before>module.exports = function (grunt) {
    grunt.initConfig({
        ts: {
            options: {
                compile: true,
                removeComments: true,
                target: 'es5',
                module: 'amd',
                sourceMap: false,
                sourceRoot: '',
                mapRoot: '',
                declaration: false
            },
            build: {
                src: ['TWAExtensions.EnhancedTaskBoard.debug.ts']
            }
        },
        uglify: {
            build: {
                files: [
                    { src: 'TWAExtensions.EnhancedTaskBoard.debug.js', dest: 'TWAExtensions.EnhancedTaskBoard.min.js' }
                ]
            }
        },
        less: {
            build: {
                files: [
                    { src: 'Content/style.less', dest: 'Content/style.css' }
                ]
            },
            minify: {
                options: {
                    cleancss: true
                },
                files: [
                    { src: 'Content/style.less', dest: 'Content/style.min.css' }
                ]
            }
        },
        compress: {
            build: {
                options: {
                    archive: 'output/EnhancedTaskBoard.zip'
                },
                files: [
                    { src: ['TWAExtensions.EnhancedTaskBoard.*.js', 'manifest.xml'] },
                    { expand: true, flatten: true, src: ['Scripts/amplify.min.js', 'Content/style.min.css'] }
                ]
            }
        },
        watch: {
            ts: {
                files: ['TWAExtensions.EnhancedTaskBoard.debug.ts'],
                tasks: ['ts:build']
            }
        },
        clean: {
            build: {
                src: [
                    'TWAExtensions.EnhancedTaskBoard.debug.js',
                    'TWAExtensions.EnhancedTaskBoard.min.js',
                    'tscommand.tmp.txt',
                    'Content/style.css',
                    'Content/style.min.css',
                    'output/*'
                ]
            }
        }
    });

    grunt.loadNpmTasks('grunt-ts');
    grunt.loadNpmTasks('grunt-contrib-uglify');
    grunt.loadNpmTasks('grunt-contrib-watch');
    grunt.loadNpmTasks('grunt-contrib-compress');
    grunt.loadNpmTasks('grunt-contrib-clean');
    grunt.loadNpmTasks('grunt-contrib-less');

    grunt.registerTask('default', ['clean', 'ts', 'less:build']);
    grunt.registerTask('dist', ['clean', 'ts', 'uglify', 'less', 'compress:build']);
};<commit_msg>grunt build tunning<commit_after>module.exports = function (grunt) {
    grunt.initConfig({
        ts: {
            options: {
                compile: true,
                removeComments: true,
                target: 'es5',
                module: 'amd',
                sourceMap: false,
                sourceRoot: '',
                mapRoot: '',
                declaration: false
            },
            build: {
                src: ['TWAExtensions.EnhancedTaskBoard.debug.ts']
            }
        },
        uglify: {
            build: {
                files: [
                    { src: 'TWAExtensions.EnhancedTaskBoard.debug.js', dest: 'TWAExtensions.EnhancedTaskBoard.min.js' }
                ]
            }
        },
        less: {
            build: {
                files: [
                    { src: 'Content/style.less', dest: 'Content/style.css' }
                ]
            },
            minify: {
                options: {
                    cleancss: true
                },
                files: [
                    { src: 'Content/style.less', dest: 'Content/style.min.css' }
                ]
            }
        },
        compress: {
            build: {
                options: {
                    archive: 'output/EnhancedTaskBoard.zip'
                },
                files: [
                    { src: ['TWAExtensions.EnhancedTaskBoard.*.js', 'manifest.xml'] },
                    { expand: true, flatten: true, src: ['Scripts/amplify.min.js', 'Content/style.min.css'] }
                ]
            }
        },
        watch: {
            ts: {
                files: ['TWAExtensions.EnhancedTaskBoard.debug.ts'],
                tasks: ['ts:build']
            },
            less: {
                files: ['Content/style.less'],
                tasks: ['less:build']
            }
        },
        clean: {
            build: {
                src: [
                    'TWAExtensions.EnhancedTaskBoard.debug.js',
                    'TWAExtensions.EnhancedTaskBoard.min.js',
                    'tscommand.tmp.txt',
                    'Content/style.css',
                    'Content/style.min.css',
                    'output/*'
                ]
            }
        }
    });

    grunt.loadNpmTasks('grunt-ts');
    grunt.loadNpmTasks('grunt-contrib-uglify');
    grunt.loadNpmTasks('grunt-contrib-watch');
    grunt.loadNpmTasks('grunt-contrib-compress');
    grunt.loadNpmTasks('grunt-contrib-clean');
    grunt.loadNpmTasks('grunt-contrib-less');

    grunt.registerTask('default', ['clean', 'ts', 'less:build']);
    grunt.registerTask('dist', ['clean', 'ts', 'uglify', 'less', 'compress']);
};
{'fraction_non_alphanumeric': 0.1324818909645444, 'fraction_numerical': 0.0003812428516965307, 'mean_word_length': 1.1123188405797102, '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': '2620841', 'n_tokens_mistral': 1497, 'n_tokens_neox': 1410, 'n_words': 193}