<commit_before>var path = require('path');

module.exports = function(grunt) {
    var buildDir = require('../buildDir.js')();
    grunt.loadNpmTasks('grunt-contrib-requirejs');
    var version = require('../version.js')();
    var paths = {
        "main":"modules/main/js",
        "core":"modules/core/js",
        "angular": "lib/angular",
        "angular-animate": "lib/angular-animate",
        "angular-cookies": "lib/angular-cookies",
        "angular-csp": "lib/angular-csp",
        "angular-loader": "lib/angular-loader",
        "angular-local-storage": "lib/angular-local-storage",
        "angular-messages": "lib/angular-messages",
        "angular-mocks": "lib/angular-mocks",
        "angular-resource": "lib/angular-resource",
        "angular-route": "lib/angular-route",
        "angular-sanitize": "lib/angular-sanitize",
        "angular-scenario": "lib/angular-scenario",
        "angular-touch": "lib/angular-touch",
        "angular-ui-bootstrap": "lib/ui-bootstrap-tpls-0.12.1",
        "angular-ui-router": "lib/angular-ui-router",
        "ui-dashboard": path.resolve('dist','.latest','ui-dashboard'),
        "jade": "lib/jade",
        "jquery": "lib/jquery-2.1.3",
        "lodash": "lib/lodash",
        "polyglot": "lib/polyglot",
        "views": path.resolve('..',buildDir, 'tmp','views')
    };

    var src = 'src';
    var target = path.join('target', 'build', 'webapp');
    var pathToConfig = path.join('src', 'config', 'require.config.js');

    optimizeOptions = grunt.option('build-requirejs-optimize') || 'none';

    var libBuildPaths = {
        "ui-dashboard":"modules/ui-dashboard/",
        "gauge":"modules/ui-dashboard/gauge/js",
        "d3": "lib/d3",
        "angular": "lib/angular",
    };

    grunt.config('requirejs', {
        dev: {
            options: {
                name: 'app',
                optimize: 'none',
                baseUrl: 'src',
                paths: paths,
                mainConfigFile: 'src/config/require.config.js',
                out: 'target/build/webapp/app.js',
                include: ['lib/require.js','config/require.config.js']
            }
        },
        production: {
            options: {
                name: 'app',
                optimize: 'uglify2',
                preserveLicenseComments: false,
                baseUrl: 'src',
                paths: paths,
                mainConfigFile: 'src/config/require.config.js',
                out: 'target/build/webapp/app.js',
                include: ['lib/require.js','config/require.config.js']
            }
        },
        'ui-dashboard': {
            options: {
                name: 'build-lib-init',
                optimize: 'none',
                baseUrl: 'src',
                paths: libBuildPaths,
                preserveLicenseComments: true,
                logLevel : 1,
                keepAmdefine: true,
                skipModuleInsertion: true,
                exclude : [
                    'angular'
                ],
                excludeShallow: [
                    'ui-dashboard/js/manifest',
                    'gauge/manifest',
                    'build-lib-init'
                ],
                wrap : {
                    startFile : [
                        'LICENSE'
                    ]
                },
                out: 'dist/'+version+'/ui-dashboard.js'
            }
        },
        'ui-dashboard-min': {
            options: {
                name: 'build-lib-init',
                baseUrl: 'src',
                paths: libBuildPaths,
                optimize: 'uglify2',
                preserveLicenseComments: true,
                logLevel : 1,
                keepAmdefine: true,
                skipModuleInsertion: true,
                exclude : [
                    'angular'
                ],
                excludeShallow: [
                    'ui-dashboard/js/manifest',
                    'gauge/manifest',
                    'build-lib-init'
                ],
                wrap : {
                    startFile : [
                        'LICENSE'
                    ]
                },
                out: 'dist/'+version+'/ui-dashboard.min.js'
            }
        }
    });
};
<commit_msg>Remove unwanted / from ui-dashboard path<commit_after>var path = require('path');

module.exports = function(grunt) {
    var buildDir = require('../buildDir.js')();
    grunt.loadNpmTasks('grunt-contrib-requirejs');
    var version = require('../version.js')();
    var paths = {
        "main":"modules/main/js",
        "core":"modules/core/js",
        "angular": "lib/angular",
        "angular-animate": "lib/angular-animate",
        "angular-cookies": "lib/angular-cookies",
        "angular-csp": "lib/angular-csp",
        "angular-loader": "lib/angular-loader",
        "angular-local-storage": "lib/angular-local-storage",
        "angular-messages": "lib/angular-messages",
        "angular-mocks": "lib/angular-mocks",
        "angular-resource": "lib/angular-resource",
        "angular-route": "lib/angular-route",
        "angular-sanitize": "lib/angular-sanitize",
        "angular-scenario": "lib/angular-scenario",
        "angular-touch": "lib/angular-touch",
        "angular-ui-bootstrap": "lib/ui-bootstrap-tpls-0.12.1",
        "angular-ui-router": "lib/angular-ui-router",
        "ui-dashboard": path.resolve('dist','.latest','ui-dashboard'),
        "jade": "lib/jade",
        "jquery": "lib/jquery-2.1.3",
        "lodash": "lib/lodash",
        "polyglot": "lib/polyglot",
        "views": path.resolve('..',buildDir, 'tmp','views')
    };

    var src = 'src';
    var target = path.join('target', 'build', 'webapp');
    var pathToConfig = path.join('src', 'config', 'require.config.js');

    optimizeOptions = grunt.option('build-requirejs-optimize') || 'none';

    var libBuildPaths = {
        "ui-dashboard":"modules/ui-dashboard",
        "gauge":"modules/ui-dashboard/gauge/js",
        "d3": "lib/d3",
        "angular": "lib/angular",
    };

    grunt.config('requirejs', {
        dev: {
            options: {
                name: 'app',
                optimize: 'none',
                baseUrl: 'src',
                paths: paths,
                mainConfigFile: 'src/config/require.config.js',
                out: 'target/build/webapp/app.js',
                include: ['lib/require.js','config/require.config.js']
            }
        },
        production: {
            options: {
                name: 'app',
                optimize: 'uglify2',
                preserveLicenseComments: false,
                baseUrl: 'src',
                paths: paths,
                mainConfigFile: 'src/config/require.config.js',
                out: 'target/build/webapp/app.js',
                include: ['lib/require.js','config/require.config.js']
            }
        },
        'ui-dashboard': {
            options: {
                name: 'build-lib-init',
                optimize: 'none',
                baseUrl: 'src',
                paths: libBuildPaths,
                preserveLicenseComments: true,
                logLevel : 1,
                keepAmdefine: true,
                skipModuleInsertion: true,
                exclude : [
                    'angular'
                ],
                excludeShallow: [
                    'ui-dashboard/js/manifest',
                    'gauge/manifest',
                    'build-lib-init'
                ],
                wrap : {
                    startFile : [
                        'LICENSE'
                    ]
                },
                out: 'dist/'+version+'/ui-dashboard.js'
            }
        },
        'ui-dashboard-min': {
            options: {
                name: 'build-lib-init',
                baseUrl: 'src',
                paths: libBuildPaths,
                optimize: 'uglify2',
                preserveLicenseComments: true,
                logLevel : 1,
                keepAmdefine: true,
                skipModuleInsertion: true,
                exclude : [
                    'angular'
                ],
                excludeShallow: [
                    'ui-dashboard/js/manifest',
                    'gauge/manifest',
                    'build-lib-init'
                ],
                wrap : {
                    startFile : [
                        'LICENSE'
                    ]
                },
                out: 'dist/'+version+'/ui-dashboard.min.js'
            }
        }
    });
};

{'fraction_non_alphanumeric': 0.14709329582747305, 'fraction_numerical': 0.0030473511486169714, 'mean_word_length': 1.3269702754295065, 'pattern_counts': {'":': 54, '<': 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': '102030', 'n_tokens_mistral': 2460, 'n_tokens_neox': 2325, 'n_words': 356}