<commit_before>// var eyes = require('eyes');
var path = require('path');
var util = require('./lib/grunt/utils.js');
var semver = require('semver');

// Get the tag on this commit, if there is one. We'll use it in the gh-pages task
var currentTag = semver.clean( util.getCurrentTag() );

/*global module:false*/
module.exports = function(grunt) {
  require('jit-grunt')(grunt, {
    'bump-only': 'grunt-bump',
    'bump-commit': 'grunt-bump',
    nugetpack: 'grunt-nuget',
    nugetpush: 'grunt-nuget',
    ngtemplates: 'grunt-angular-templates',
    changelog: 'grunt-conventional-changelog',
    shell: 'grunt-shell-spawn',
    jscs: 'grunt-jscs',
    protractor: 'grunt-protractor-runner',
    'stable-version': './lib/grunt/plugins.js',
    'current-version': './lib/grunt/plugins.js',
    'update-bower-json': './lib/grunt/plugins.js'
  });

  // Project configuration.
  grunt.initConfig({
    // Metadata.
    pkg: grunt.file.readJSON('package.json'),
    version: util.getVersion(),
    stable_version: util.getStableVersion(),
    dist: 'dist',
    site: process.env.TRAVIS ? 'ui-grid.info' : '127.0.0.1:<%= connect.docs.options.port %>',
    banner: '/*! <%= pkg.title || pkg.name %> - v<%= version %> - ' +
      '<%= grunt.template.today("yyyy-mm-dd") %>\n' +
      '<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' +
      '* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' +
      ' License: <%= pkg.license %> */\n',

    shell: {
      options: {
        stdout: true
      },
      selenium: {
        command: './selenium/start',
        options: {
          stdout: false,
          async: true
        }
      },
      'protractor-install': {
        command: 'node ./node_modules/protractor/bin/webdriver-manager update'
      },
      'protractor-start': {
        command: 'node ./node_modules/protractor/bin/webdriver-manager start',
        options: {
          stdout: false,
          async: true
        }
      },
      'bower-install': {
        command: 'bower install'
      }
    },

    // Clean the temp directory
    clean: ['.tmp', '<%= dist %>', 'docs', 'coverage'],

    // Templates
    ngtemplates: {
      'uigrid': {
        // Look for templates in src and in feature template directories
        src: ['src/templates/**/*.html', 'src/features/*/templates/**/*.html'],
        dest: '.tmp/template.js',
        options: {
          module: 'ui.grid',
          htmlmin:  { collapseWhitespace: true, collapseBooleanAttributes: true },
          // Strip .html extension
          url: function(url) {
            // Remove the src/templates/ prefix
            url = url.replace(/^src\/templates\//, '');

            // Replace feature prefix with just 'ui-grid'
            url = url.replace(/^src\/features\/[^\/]+?\/templates/, 'ui-grid');

            // Remove the .html extension
            return url.replace('.html', '');<commit_msg>Use local rather than global path bower install<commit_after>// var eyes = require('eyes');
var path = require('path');
var util = require('./lib/grunt/utils.js');
var semver = require('semver');

// Get the tag on this commit, if there is one. We'll use it in the gh-pages task
var currentTag = semver.clean( util.getCurrentTag() );

/*global module:false*/
module.exports = function(grunt) {
  require('jit-grunt')(grunt, {
    'bump-only': 'grunt-bump',
    'bump-commit': 'grunt-bump',
    nugetpack: 'grunt-nuget',
    nugetpush: 'grunt-nuget',
    ngtemplates: 'grunt-angular-templates',
    changelog: 'grunt-conventional-changelog',
    shell: 'grunt-shell-spawn',
    jscs: 'grunt-jscs',
    protractor: 'grunt-protractor-runner',
    'stable-version': './lib/grunt/plugins.js',
    'current-version': './lib/grunt/plugins.js',
    'update-bower-json': './lib/grunt/plugins.js'
  });

  // Project configuration.
  grunt.initConfig({
    // Metadata.
    pkg: grunt.file.readJSON('package.json'),
    version: util.getVersion(),
    stable_version: util.getStableVersion(),
    dist: 'dist',
    site: process.env.TRAVIS ? 'ui-grid.info' : '127.0.0.1:<%= connect.docs.options.port %>',
    banner: '/*! <%= pkg.title || pkg.name %> - v<%= version %> - ' +
      '<%= grunt.template.today("yyyy-mm-dd") %>\n' +
      '<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' +
      '* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' +
      ' License: <%= pkg.license %> */\n',

    shell: {
      options: {
        stdout: true
      },
      selenium: {
        command: './selenium/start',
        options: {
          stdout: false,
          async: true
        }
      },
      'protractor-install': {
        command: 'node ./node_modules/protractor/bin/webdriver-manager update'
      },
      'protractor-start': {
        command: 'node ./node_modules/protractor/bin/webdriver-manager start',
        options: {
          stdout: false,
          async: true
        }
      },
      'bower-install': {
        command: 'node ./node_modules/bower/bin/bower install'
      }
    },

    // Clean the temp directory
    clean: ['.tmp', '<%= dist %>', 'docs', 'coverage'],

    // Templates
    ngtemplates: {
      'uigrid': {
        // Look for templates in src and in feature template directories
        src: ['src/templates/**/*.html', 'src/features/*/templates/**/*.html'],
        dest: '.tmp/template.js',
        options: {
          module: 'ui.grid',
          htmlmin:  { collapseWhitespace: true, collapseBooleanAttributes: true },
          // Strip .html extension
          url: function(url) {
            // Remove the src/templates/ prefix
            url = url.replace(/^src\/templates\//, '');

            // Replace feature prefix with just 'ui-grid'
            url = url.replace(/^src\/features\/[^\/]+?\/templates/, 'ui-grid');

            // Remove the .html extension
            return url.replace('.html', '');
{'fraction_non_alphanumeric': 0.18371147985099898, 'fraction_numerical': 0.002031832035218422, 'mean_word_length': 2.2599337748344372, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '4385915', 'n_tokens_mistral': 1984, 'n_tokens_neox': 1877, 'n_words': 386}