<commit_before>module.exports = function(grunt) {
  
  pathAssets = 'assets/';
  pathLibs = 'bower_components/';
  pathStylus = pathAssets + 'styl/';
  pathCss = pathAssets + 'css/';

  grunt.initConfig({

    pkg: grunt.file.readJSON('package.json'),

  	'bower-install-simple' : {
      options: {
        color: true,
        directory: pathLibs
      },
      prod: {
        options: {
          production: true
        }
      },
      dev: {
        options: {
            production: false
        }
      }
  	},

    stylus: {
      compile: {
        files: {
          'assets/css/app.min.css': ['assets/styl/**/*.styl']
        }
      }
    },

  	concat_in_order: {
	    dist : {
	    	files : {
	    		'assets/js/app.min.js' : 'app/**/*.js'
	    	}
	    },
	    lib : {
  			files : {
  				'assets/js/lib.min.js' : [pathLibs + 'angular/angular.min.js', pathLibs + 'angular-route/angular-route.min.js']
  			}
	    }
  	},

  	'http-server': {
      dev: {
        port: 3000,
        host: '127.0.0.1',
        showDir : true,
        autoIndex: true,
        ext: 'html',
        runInBackground: true
      }
    },

    copy :{
      main: {
        files: [
          {
            expand: true,
            flatten: true,
            src: ['bower_components/angular-route/angular-route.min.js.map'], dest: 'assets/js/'
          }
        ],
      },
    },

  	watch: {
  		styles: {
  			files: pathStylus + '**/*.styl',
  			tasks: ['stylus']
  		},
  		scripts: {
  			files: ['app/**/*.js'],
  			tasks: ['concat_in_order:dist', 'copy'],
  		}
  	}

  });

  grunt.loadNpmTasks('grunt-bower-install-simple');
  grunt.loadNpmTasks('grunt-contrib-stylus');
  grunt.loadNpmTasks('grunt-concat-in-order');
  grunt.loadNpmTasks('grunt-contrib-copy');
  grunt.loadNpmTasks('grunt-contrib-watch');
  grunt.loadNpmTasks('grunt-http-server');

  grunt.registerTask('build', ['bower-install-simple:prod', 'stylus', 'concat_in_order', 'copy']);
  grunt.registerTask('start', ['http-server', 'watch']);

};
<commit_msg>Configured phantomcss<commit_after>module.exports = function(grunt) {
  
  pathAssets = 'assets/';
  pathLibs = 'bower_components/';
  pathStylus = pathAssets + 'styl/';
  pathCss = pathAssets + 'css/';

  grunt.initConfig({

    pkg: grunt.file.readJSON('package.json'),

  	'bower-install-simple' : {
      options: {
        color: true,
        directory: pathLibs
      },
      prod: {
        options: {
          production: true
        }
      },
      dev: {
        options: {
            production: false
        }
      }
  	},

    stylus: {
      compile: {
        files: {
          'assets/css/app.min.css': ['assets/styl/**/*.styl']
        }
      }
    },

  	concat_in_order: {
	    dist : {
	    	files : {
	    		'assets/js/app.min.js' : 'app/**/*.js'
	    	}
	    },
	    lib : {
  			files : {
  				'assets/js/lib.min.js' : [pathLibs + 'angular/angular.min.js', pathLibs + 'angular-route/angular-route.min.js']
  			}
	    }
  	},

  	'http-server': {
      dev: {
        port: 9000,
        host: '127.0.0.1',
        showDir : true,
        autoIndex: true,
        ext: 'html',
        runInBackground: false
      }
    },

    copy :{
      main: {
        files: [
          {
            expand: true,
            flatten: true,
            src: ['bower_components/angular-route/angular-route.min.js.map'], dest: 'assets/js/'
          }
        ],
      },
    },

    phantomcss: {
      options: {
        screenshots: 'screenshots',
        results: 'results',
        viewportSize: [1280, 800],
        mismatchTolerance: 0.05,
        rootUrl: 'http://localhost:9000/'
      },
      src: [
        'spec/visual/**/*.js'
      ]
    },

  	watch: {
  		styles: {
  			files: pathStylus + '**/*.styl',
  			tasks: ['stylus']
  		},
  		scripts: {
  			files: ['app/**/*.js'],
  			tasks: ['concat_in_order:dist', 'copy'],
  		}
  	}

  });

  grunt.loadNpmTasks('grunt-bower-install-simple');
  grunt.loadNpmTasks('grunt-contrib-stylus');
  grunt.loadNpmTasks('grunt-concat-in-order');
  grunt.loadNpmTasks('grunt-contrib-copy');
  grunt.loadNpmTasks('grunt-phantomcss');
  grunt.loadNpmTasks('grunt-contrib-watch');
  grunt.loadNpmTasks('grunt-http-server');

  grunt.registerTask('build', ['bower-install-simple:prod', 'stylus', 'concat_in_order', 'copy']);
  grunt.registerTask('start', ['http-server', 'watch']);

};

{'fraction_non_alphanumeric': 0.1753069577080491, 'fraction_numerical': 0.007730786721236926, 'mean_word_length': 1.850939727802981, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7265704', 'n_tokens_mistral': 1700, 'n_tokens_neox': 1617, 'n_words': 213}