<commit_before>module.exports = function(grunt) {
    grunt.initConfig({
        sass: {
            dist: {
                files: {
                    'css/main.css': 'css/main.scss',
                    'css/main_dark.css': 'css/main_dark.scss'
                }
            },
            styleguide: {
                files: {
                    'css/styleguide.css': 'css/styleguide.scss'
                }
            }
        },
        watch: {
            styleguide: {
                files: ['css/*.scss', 'css/*.hbs', 'css/*.md', 'directives/**/*.js', 'app.js'],
                tasks: ['sass:styleguide', 'sass:dist', 'ngtemplates', 'shell', 'cssmin']
            },
            watchAll: {
                files: ['js/**', 'css/**.scss', 'directives/**', 'kss-template/**'],
                tasks: ['sass:styleguide', 'sass:dist', 'ngtemplates', 'shell', 'cssmin']
            },
            test: {
                files: ['directives/**/*.spec.js'],
                tasks: ['uglify', 'karma:continuous']
            }
        },
        cssmin: {
            options: {
                shorthandCompacting: false,
                roundingPrecision: -1
            },
            target: {
                files: {
                    'styleguide/dist/main.min.css': 'css/main.css',
                    'styleguide/dist/main_dark.min.css': 'css/main_dark.css'
                }
            }
        },
        shell: {
            options: {
                stderr: false
            },
            target: {
                command: 'npm run-script kss'
            }
        },
        karma: {
            styleguide: {
                configFile: 'karma.conf.js'
            },
            continuous: {
                configFile: 'karma.conf.js',
                singleRun: false
            }
        },
        ngtemplates: {
            'styleguide.templates': {
                src: ['directives/**/*.tpl.html'],
                dest: 'styleguide/dist/templates.js',
                options: {
                    standalone: true
                }
            }
        },
        concat: {
            distJs: {
                src: [
                    'node_modules/angular/angular.min.js',
                    'node_modules/angular-i18n/angular-locale_en-us.js',
                    'node_modules/angular-ui-tree/dist/angular-ui-tree.min.js',
                    'node_modules/angular-animate/angular-animate.min.js',
                    'node_modules/angular-route/angular-route.min.js',
                    'node_modules/angular-aria/angular-aria.min.js',
                    'node_modules/angular-sanitize/angular-sanitize.min.js',
                    'node_modules/angular-resizable/angular-resizable.min.js',
                    'node_modules/angular-ui-grid/ui-grid.min.js',
                    'node_modules/angular-material/angular-material.min.js',
                    'node_modules/angular-ui-bootstrap/dist/ui-bootstrap.js',
                    'node_modules/angular-ui-bootstrap/dist/ui-bootstrap-tpls.js',
                    'node_modules/angular-translate/dist/angular-translate.min.js',
                    'node_modules/angular-dynamic-locale/dist/tmhDynamicLocale.js',
                    'node_modules/moment/min/moment-with-locales.min.js',
                    'node_modules/angular-moment/angular-moment.min.js',
                    'vendor/angular-bootstrap-persian-datepicker-master/persiandate.js',
                    'vendor/angular-bootstrap-persian-datepicker-master/persian-datepicker-tpls.js',
                    'vendor/ui-bootstrap-custom-build/datepicker.directive.ext.js',
                    'vendor/ui-bootstrap-custom-build/timepicker.directive.ext.js',
                    'node_modules/d3/d3.min.js',
                    'node_modules/c3/c3.min.js',
                    'node_modules/c3-angular/c3-angular.min.js',
                    'vendor/ui-grid/uigrid.disable-animation.directive.js',
                    'vendor/ui-grid/ui-grid.fix.js'
                ],
                dest: 'styleguide/dist/dependencies.min.js'
            },
            distCss: {
                src: [
                    'node_modules/angular-ui-tree/dist/angular-ui-tree.min.css',
                    'node_modules/angular-material/angular-material.min.css',
                    'node_modules/angular-resizable/angular-resizable.min.css',
                    'node_modules/angular-ui-grid/ui-grid.min.css',
                    'node_modules/c3/c3.min.css',
                    'node_modules/@mdi/font/css/materialdesignicons.min.css',
                    'css/styleguide.css',
                    'css/main.min.css'
                ],
                dest: 'styleguide/dist/dependencies.min.css'
            }
        },
        uglify: {
            'styleguide/dist/wfmdirectives.min.js': ['directives/**/*.js', '!directives/**/*.spec.js'],
            'styleguide/dist/main.min.js': 'js/*.js'
        },
        copy: {
            sass: {<commit_msg>Fix missing locale error on dev server<commit_after>module.exports = function(grunt) {
    grunt.initConfig({
        sass: {
            dist: {
                files: {
                    'css/main.css': 'css/main.scss',
                    'css/main_dark.css': 'css/main_dark.scss'
                }
            },
            styleguide: {
                files: {
                    'css/styleguide.css': 'css/styleguide.scss'
                }
            }
        },
        watch: {
            styleguide: {
                files: ['css/*.scss', 'css/*.hbs', 'css/*.md', 'directives/**/*.js', 'app.js'],
                tasks: ['sass:styleguide', 'sass:dist', 'ngtemplates', 'shell', 'cssmin']
            },
            watchAll: {
                files: ['js/**', 'css/**.scss', 'directives/**', 'kss-template/**'],
                tasks: ['sass:styleguide', 'sass:dist', 'ngtemplates', 'shell', 'cssmin']
            },
            test: {
                files: ['directives/**/*.spec.js'],
                tasks: ['uglify', 'karma:continuous']
            }
        },
        cssmin: {
            options: {
                shorthandCompacting: false,
                roundingPrecision: -1
            },
            target: {
                files: {
                    'styleguide/dist/main.min.css': 'css/main.css',
                    'styleguide/dist/main_dark.min.css': 'css/main_dark.css'
                }
            }
        },
        shell: {
            options: {
                stderr: false
            },
            target: {
                command: 'npm run-script kss'
            }
        },
        karma: {
            styleguide: {
                configFile: 'karma.conf.js'
            },
            continuous: {
                configFile: 'karma.conf.js',
                singleRun: false
            }
        },
        ngtemplates: {
            'styleguide.templates': {
                src: ['directives/**/*.tpl.html'],
                dest: 'styleguide/dist/templates.js',
                options: {
                    standalone: true
                }
            }
        },
        concat: {
            distJs: {
                src: [
                    'node_modules/angular/angular.min.js',
                    'node_modules/angular-i18n/angular-locale_en-us.js',
                    'node_modules/angular-ui-tree/dist/angular-ui-tree.min.js',
                    'node_modules/angular-animate/angular-animate.min.js',
                    'node_modules/angular-route/angular-route.min.js',
                    'node_modules/angular-aria/angular-aria.min.js',
                    'node_modules/angular-sanitize/angular-sanitize.min.js',
                    'node_modules/angular-resizable/angular-resizable.min.js',
                    'node_modules/angular-ui-grid/ui-grid.min.js',
                    'node_modules/angular-material/angular-material.min.js',
                    'node_modules/angular-ui-bootstrap/dist/ui-bootstrap.js',
                    'node_modules/angular-ui-bootstrap/dist/ui-bootstrap-tpls.js',
                    'node_modules/angular-translate/dist/angular-translate.min.js',
                    'node_modules/angular-dynamic-locale/dist/tmhDynamicLocale.js',
                    'node_modules/moment/min/moment-with-locales.min.js',
                    'node_modules/angular-moment/angular-moment.min.js',
                    'vendor/angular-bootstrap-persian-datepicker-master/persiandate.js',
                    'vendor/angular-bootstrap-persian-datepicker-master/persian-datepicker-tpls.js',
                    'vendor/ui-bootstrap-custom-build/datepicker.directive.ext.js',
                    'vendor/ui-bootstrap-custom-build/timepicker.directive.ext.js',
                    'node_modules/d3/d3.min.js',
                    'node_modules/c3/c3.min.js',
                    'node_modules/c3-angular/c3-angular.min.js',
                    'vendor/ui-grid/uigrid.disable-animation.directive.js',
                    'vendor/ui-grid/ui-grid.fix.js'
                ],
                dest: 'styleguide/dist/dependencies.min.js'
            },
            distCss: {
                src: [
                    'node_modules/angular-ui-tree/dist/angular-ui-tree.min.css',
                    'node_modules/angular-material/angular-material.min.css',
                    'node_modules/angular-resizable/angular-resizable.min.css',
                    'node_modules/angular-ui-grid/ui-grid.min.css',
                    'node_modules/c3/c3.min.css',
                    'node_modules/@mdi/font/css/materialdesignicons.min.css',
                    'css/styleguide.css',
                    'css/main.min.css'
                ],
                dest: 'styleguide/dist/dependencies.min.css'
            }
        },
        uglify: {
            'styleguide/dist/wfmdirectives.min.js': ['directives/**/*.js', '!directives/**/*.spec.js'],
            'styleguide/dist/main.min.js': 'js/*.js'
        },
        copy: {
            locales: {
                files: [
                    // includes files within path
                    {
                        expand: true,
                        cwd: './node_modules/angular-i18n/',
                        src: ['angular-locale_*.js'],
                        dest: 'styleguide/node_modules/angular-i18n/'
                    }
                ]
            },
            sass: {
{'fraction_non_alphanumeric': 0.13628098382620346, 'fraction_numerical': 0.0024882763900851757, 'mean_word_length': 1.2079019649271074, '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': '6663796', 'n_tokens_mistral': 3076, 'n_tokens_neox': 2947, 'n_words': 290}