<commit_before>'use strict';

module.exports = function (grunt) {
    require('load-grunt-tasks')(grunt);
    require('time-grunt')(grunt);

    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),
        watch: {
            sass: {
                files: 'client/assets/scss/*.scss',
                tasks: ['sass']
            },
            angularjs: {
                files: 'client/app/**/*.js',
                tasks: ['concat', 'uglify']
            },
            html: {
                files: 'client/app/modules/**/*.html',
                tasks: ['htmlmin']
            }
        },
        browserSync: {
            dev: {
                bsFiles: {
                    src : [
                        '<%= pkg.name %>/static/css/*.css',
                        '<%= pkg.name %>/static/js/*.min.js',
                    ]
                },
                options: {
                    watchTask: true,
                    proxy: '127.0.0.1:6543'
                }
            }
        },
        jshint: {
            options: {
                jshintrc: '.jshintrc'
            },
            all: [
                'Gruntfile.js',
                'client/app/**/*.js',
            ]
        },
        sass: {
            dist: {
                options: {
                    style: 'compressed',
                    sourcemap: 'none',
                },
                files: [{
                    expand: true,
                    cwd: 'client/assets/scss',
                    src: ['*.scss'],
                    dest: '<%= pkg.name %>/static/css',
                    ext: '.min.css'
                }]
            }
        },
        concat: {
            dist: {
                src: ['client/app/**/*.js'],
                dest: '<%= pkg.name %>/static/js/<%= pkg.name %>.js'
            }
        },
        uglify: {
            options: {
                banner: '/**' +
                        '\n * <%= pkg.name %>' +
                        '\n * @version <%= pkg.version %>' +
                        '\n * @date <%= grunt.template.today("dd-mm-yyyy") %>' +
                        '\n**/\n'
            },
            dist: {
                files: {
                    '<%= pkg.name %>/static/js/<%= pkg.name %>.min.js': ['<%= concat.dist.dest %>']
                }
            }
        },
        htmlmin: {
            dist: {
                options: {
                    removeComments: true,
                    collapseWhitespace: true
                },
                files: [{
                    expand: true,
                    cwd: 'client/app/modules',
                    src: '**/*.html',
                    dest: '<%= pkg.name %>/static/ui'
                }]
            },
            dev: {
                files: [{
                    expand: true,
                    cwd: 'client/app/modules',
                    src: '**/*.html',
                    dest: '<%= pkg.name %>/static/ui'
                }]
            }
        },
        copy: {
            files: {
                cwd: 'client/assets/img',
                src: '**/*',
                dest: '<%= pkg.name %>/static/img',
                expand: true
            }
        }
    });

    grunt.registerTask('default', [
        'browserSync',
        'watch'
    ]);

    grunt.registerTask('build', [
        'copy',
        'sass',
        'concat',
        'uglify',
        'htmlmin:dist'
    ]);
};
<commit_msg>Update Gruntfile.js<commit_after>'use strict';

module.exports = function (grunt) {
    require('load-grunt-tasks')(grunt);
    require('time-grunt')(grunt);

    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),
        watch: {
            sass: {
                files: 'client/assets/scss/*.scss',
                tasks: ['sass']
            },
            angularjs: {
                files: 'client/app/**/*.js',
                tasks: ['concat', 'uglify']
            },
            html: {
                files: 'client/app/modules/**/*.html',
                tasks: ['htmlmin']
            }
        },
        browserSync: {
            dev: {
                bsFiles: {
                    src : [
                        '<%= pkg.name %>/static/css/*.css',
                        '<%= pkg.name %>/static/js/*.min.js',
                    ]
                },
                options: {
                    watchTask: true,
                    proxy: '127.0.0.1:6543'
                }
            }
        },
        jshint: {
            options: {
                jshintrc: '.jshintrc'
            },
            all: [
                'Gruntfile.js',
                'client/app/**/*.js',
            ]
        },
        sass: {
            dist: {
                options: {
                    style: 'compressed',
                    sourcemap: 'none',
                },
                files: [{
                    expand: true,
                    cwd: 'client/assets/scss',
                    src: ['*.scss'],
                    dest: '<%= pkg.name %>/static/css',
                    ext: '.min.css'
                }]
            }
        },
        concat: {
            dist: {
                src: ['client/app/**/*.js'],
                dest: '<%= pkg.name %>/static/js/<%= pkg.name %>.js'
            }
        },
        uglify: {
            options: {
                banner: '/**' +
                        '\n * <%= pkg.name %>' +
                        '\n * @version <%= pkg.version %>' +
                        '\n * @date <%= grunt.template.today("dd-mm-yyyy") %>' +
                        '\n**/\n'
            },
            dist: {
                files: {
                    '<%= pkg.name %>/static/js/<%= pkg.name %>.min.js': ['<%= concat.dist.dest %>']
                }
            }
        },
        htmlmin: {
            dist: {
                options: {
                    removeComments: true,
                    collapseWhitespace: true
                },
                files: [{
                    expand: true,
                    cwd: 'client/app/modules',
                    src: '**/*.html',
                    dest: '<%= pkg.name %>/static/ui'
                }]
            }
        },
        copy: {
            files: {
                cwd: 'client/assets/img',
                src: '**/*',
                dest: '<%= pkg.name %>/static/img',
                expand: true
            }
        }
    });

    grunt.registerTask('default', [
        'browserSync',
        'watch'
    ]);

    grunt.registerTask('build', [
        'copy',
        'sass',
        'concat',
        'uglify',
        'htmlmin'
    ]);
};

{'fraction_non_alphanumeric': 0.15753322383156637, 'fraction_numerical': 0.002986411826190832, 'mean_word_length': 0.7663502109704642, 'pattern_counts': {'":': 0, '<': 30, '<?xml version=': 0, '>': 30, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '1940934', 'n_tokens_mistral': 1970, 'n_tokens_neox': 1770, 'n_words': 272}