<commit_before>module.exports = function (grunt) {

    // load tasks
    grunt.loadNpmTasks('grunt-contrib-sass');
    grunt.loadNpmTasks('grunt-contrib-watch');
    grunt.loadNpmTasks('grunt-contrib-concat');
    grunt.loadNpmTasks('grunt-contrib-copy');
    grunt.loadNpmTasks('grunt-svgmin');
    grunt.loadNpmTasks('grunt-contrib-uglify');
    grunt.loadNpmTasks('grunt-contrib-imagemin');
    grunt.loadNpmTasks('grunt-stylestats');
    grunt.loadNpmTasks('grunt-fontsmith');
    grunt.loadNpmTasks('grunt-env');

    // register tasks
    grunt.registerTask('default', ['concat', 'watch']);
    grunt.registerTask('icons', ['env:build', 'font']);
    grunt.registerTask('copydeps', ['copy']);
    grunt.registerTask('stats', ['stylestats']);
    grunt.registerTask('prod', ['sass:dist', 'concat', 'uglify', 'imagemin', 'svgmin', 'stylestats' ]);

    grunt.initConfig({

        copy: {
            main: {
                files: [
                    { expand: true, cwd: 'bower_components/', src: [ '**/*.js' ], dest: 'assets/js/vendor/' },
                    { expand: true, cwd: 'bower_components/', src: [ '**/*.scss' ], dest: 'assets/scss/vendor/' },
                    { expand: true, cwd: 'bower_components/', src: [ '**/*.css' ], dest: 'assets/scss/vendor/' }
                ]
            }
        },
        // concatenation and minification all in one
        uglify: {
            dist: {
                files: {
                    'assets/js/prod.js': [ 'assets/js/dev.js' ]
                }
            }
        },

        // concatenation
        concat: {
            options: {
                separator: ''
            },
            dist: {
                src: [
                    'assets/js/plugins.js',
                    'assets/js/classes/*.js',
                    'assets/js/main.js'
                ],
                dest: 'assets/js/dev.js'
            }
        },

        font: {
            all: {
                src: ['assets/icons/*.svg'],
                destCss: 'assets/scss/type/_icons.scss',
                destFonts: 'assets/css/fonts/icons.{svg,woff,eot,ttf}',
                fontFamily: 'icons'
            }
        },<commit_msg>fixing path bug for icons<commit_after>module.exports = function (grunt) {

    // load tasks
    grunt.loadNpmTasks('grunt-contrib-sass');
    grunt.loadNpmTasks('grunt-contrib-watch');
    grunt.loadNpmTasks('grunt-contrib-concat');
    grunt.loadNpmTasks('grunt-contrib-copy');
    grunt.loadNpmTasks('grunt-svgmin');
    grunt.loadNpmTasks('grunt-contrib-uglify');
    grunt.loadNpmTasks('grunt-contrib-imagemin');
    grunt.loadNpmTasks('grunt-stylestats');
    grunt.loadNpmTasks('grunt-fontsmith');
    grunt.loadNpmTasks('grunt-env');

    // register tasks
    grunt.registerTask('default', ['concat', 'watch']);
    grunt.registerTask('icons', ['env:build', 'font']);
    grunt.registerTask('copydeps', ['copy']);
    grunt.registerTask('stats', ['stylestats']);
    grunt.registerTask('prod', ['sass:dist', 'concat', 'uglify', 'imagemin', 'svgmin', 'stylestats' ]);

    grunt.initConfig({

        copy: {
            main: {
                files: [
                    { expand: true, cwd: 'bower_components/', src: [ '**/*.js' ], dest: 'assets/js/vendor/' },
                    { expand: true, cwd: 'bower_components/', src: [ '**/*.scss' ], dest: 'assets/scss/vendor/' },
                    { expand: true, cwd: 'bower_components/', src: [ '**/*.css' ], dest: 'assets/scss/vendor/' }
                ]
            }
        },
        // concatenation and minification all in one
        uglify: {
            dist: {
                files: {
                    'assets/js/prod.js': [ 'assets/js/dev.js' ]
                }
            }
        },

        // concatenation
        concat: {
            options: {
                separator: ''
            },
            dist: {
                src: [
                    'assets/js/plugins.js',
                    'assets/js/classes/*.js',
                    'assets/js/main.js'
                ],
                dest: 'assets/js/dev.js'
            }
        },

        font: {
            all: {
                src: ['assets/icons/*.svg'],
                destCss: 'assets/scss/type/_icons.scss',
                destFonts: 'assets/css/fonts/icons.{svg,woff,eot,ttf}',
                fontFamily: 'icons',
                cssRouter: function (fontpath) {
                    return "./fonts/icons." + fontpath.substring(fontpath.lastIndexOf(".")+1);
                }
            }
        },
{'fraction_non_alphanumeric': 0.1672870593387344, 'fraction_numerical': 0.0002189621195533173, 'mean_word_length': 1.6117781589479703, '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': '5468872', 'n_tokens_mistral': 1474, 'n_tokens_neox': 1406, 'n_words': 198}