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

module.exports = function (grunt) {
    require('load-grunt-tasks')(grunt);
    var osx = 'OS X 10.10';
    var windows = 'Windows 8.1';
    var browsers = [{
        browserName: 'safari',
        platform: osx
    }, {
        browserName: 'firefox',
        platform: windows
    }, {
        browserName: 'chrome',
        platform: windows
    }, {
        browserName: 'internet explorer',
        platform: windows,
        version: '11'
    }, {
        browserName: 'internet explorer',
        platform: 'Windows 8',
        version: '10'
    }, {
        browserName: 'internet explorer',
        platform: 'Windows 7',
        version: '9'
    }];
    var jsAppFiles = 'src/app/**/*.js';
    var otherFiles = [
        'src/app/**/*.html',
        'src/app/**/*.css',
        'src/index.html',
        'src/ChangeLog.html'
    ];
    var gruntFile = 'Gruntfile.js';
    var jsFiles = [
        jsAppFiles,
        gruntFile
    ];
    var bumpFiles = [
        'package.json',
        'bower.json',
        'src/app/package.json',
        'src/app/config.js'
    ];
    var deployFiles = [
        '**',
        '!**/*.uncompressed.js',
        '!**/*consoleStripped.js',
        '!**/bootstrap/less/**',
        '!**/bootstrap/test-infra/**',
        '!**/tests/**',
        '!build-report.txt',
        '!components-jasmine/**',
        '!favico.js/**',
        '!jasmine-favicon-reporter/**',
        '!jasmine-jsreporter/**',
        '!stubmodule/**',
        '!util/**'
    ];
    var deployDir = 'wwwroot/ugschemistry';
    var secrets;
    var sauceConfig = {
        urls: ['http://127.0.0.1:8000/_SpecRunner.html'],
        tunnelTimeout: 120,
        build: process.env.TRAVIS_JOB_ID,
        browsers: browsers,
        testname: 'ugs-chemistry',
        maxRetries: 10,
        maxPollRetries: 10,
        'public': 'public',
        throttled: 5,
        sauceConfig: {
            'max-duration': 10800
        },
        statusCheckAttempts: 500
    };
    try {
        secrets = grunt.file.readJSON('secrets.json');
        sauceConfig.username = secrets.sauce_name;
        sauceConfig.key = secrets.sauce_key;
    } catch (e) {
        // swallow for build server
        secrets = {
            stageHost: '',
            prodHost: '',
            username: '',
            password: ''
        };
    }

    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),
        arcgis_press: {
            options: {
                server: {
                    username: secrets.ags_username,
                    password: <PASSWORD>
                },
                mapServerBasePath: path.join(process.cwd(), 'maps'),
                services: {
                    mapService: {
                        type: 'MapServer',
                        serviceName: 'UGSChemistry',
                        resource: 'UGSChemistry.mxd'
                    }
                }
            },
            dev: {
                options: {
                    server: {
                        host: 'localhost'
                    }
                }
            },
            stage: {
                options: {
                    server: {
                        host: secrets.stageHost
                    }
                }
            },
            prod: {
                options: {
                    server: {
                        host: secrets.prodHost
                    }
                }
            }
        },
        bump: {
            options: {
                files: bumpFiles,
                commitFiles: bumpFiles,
                push: false<commit_msg>add changelog to grunt bump commit files<commit_after>var path = require('path');

module.exports = function (grunt) {
    require('load-grunt-tasks')(grunt);
    var osx = 'OS X 10.10';
    var windows = 'Windows 8.1';
    var browsers = [{
        browserName: 'safari',
        platform: osx
    }, {
        browserName: 'firefox',
        platform: windows
    }, {
        browserName: 'chrome',
        platform: windows
    }, {
        browserName: 'internet explorer',
        platform: windows,
        version: '11'
    }, {
        browserName: 'internet explorer',
        platform: 'Windows 8',
        version: '10'
    }, {
        browserName: 'internet explorer',
        platform: 'Windows 7',
        version: '9'
    }];
    var jsAppFiles = 'src/app/**/*.js';
    var otherFiles = [
        'src/app/**/*.html',
        'src/app/**/*.css',
        'src/index.html',
        'src/ChangeLog.html'
    ];
    var gruntFile = 'Gruntfile.js';
    var jsFiles = [
        jsAppFiles,
        gruntFile
    ];
    var bumpFiles = [
        'package.json',
        'bower.json',
        'src/app/package.json',
        'src/app/config.js'
    ];
    var deployFiles = [
        '**',
        '!**/*.uncompressed.js',
        '!**/*consoleStripped.js',
        '!**/bootstrap/less/**',
        '!**/bootstrap/test-infra/**',
        '!**/tests/**',
        '!build-report.txt',
        '!components-jasmine/**',
        '!favico.js/**',
        '!jasmine-favicon-reporter/**',
        '!jasmine-jsreporter/**',
        '!stubmodule/**',
        '!util/**'
    ];
    var deployDir = 'wwwroot/ugschemistry';
    var secrets;
    var sauceConfig = {
        urls: ['http://127.0.0.1:8000/_SpecRunner.html'],
        tunnelTimeout: 120,
        build: process.env.TRAVIS_JOB_ID,
        browsers: browsers,
        testname: 'ugs-chemistry',
        maxRetries: 10,
        maxPollRetries: 10,
        'public': 'public',
        throttled: 5,
        sauceConfig: {
            'max-duration': 10800
        },
        statusCheckAttempts: 500
    };
    try {
        secrets = grunt.file.readJSON('secrets.json');
        sauceConfig.username = secrets.sauce_name;
        sauceConfig.key = secrets.sauce_key;
    } catch (e) {
        // swallow for build server
        secrets = {
            stageHost: '',
            prodHost: '',
            username: '',
            password: ''
        };
    }

    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),
        arcgis_press: {
            options: {
                server: {
                    username: secrets.ags_username,
                    password: <PASSWORD>
                },
                mapServerBasePath: path.join(process.cwd(), 'maps'),
                services: {
                    mapService: {
                        type: 'MapServer',
                        serviceName: 'UGSChemistry',
                        resource: 'UGSChemistry.mxd'
                    }
                }
            },
            dev: {
                options: {
                    server: {
                        host: 'localhost'
                    }
                }
            },
            stage: {
                options: {
                    server: {
                        host: secrets.stageHost
                    }
                }
            },
            prod: {
                options: {
                    server: {
                        host: secrets.prodHost
                    }
                }
            }
        },
        bump: {
            options: {
                files: bumpFiles,
                commitFiles: bumpFiles.concat(['src/ChangeLog.html']),
                push: false
{'fraction_non_alphanumeric': 0.13561384532179557, 'fraction_numerical': 0.010546241211465657, 'mean_word_length': 1.1923532898636633, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6759781', 'n_tokens_mistral': 2206, 'n_tokens_neox': 2087, 'n_words': 367}