<commit_before>'use strict';

module.exports = function(grunt) {

  // Project configuration.
  grunt.initConfig({

    mvnSrcDirectory: '../../',
    appPath: '<%= mvnSrcDirectory %>main/resources/public/',
    targetPath: '../../../target/classes/public/',
    javascriptPath: '<%= appPath %>js/',
    cssPath: '<%= appPath %>css/',
    fontPath: '<%= appPath %>fonts/',
    imgPath: '<%= appPath %>img/',
    partialPath: '<%= appPath %>partials/',
    templatePath: '<%= appPath %>templates/',

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

    clean: {
      options: {
        force: true
      },
      app: ['<%= javascriptPath %>', '<%= cssPath %>', '<%= fontPath %>', '<%= imgPath %>',
          '<%= partialPath %>', '<%= templatePath %>']
    },
    concat: {
      options: {
        // Append a short comment of the path for each concatenated source file
        process: function(src, filepath) {
          return '// Source: ' + filepath + '\n' + src;
        }
      },
      app: {
        src: ['app/js/app.js', 'app/js/*/*.js'],
        dest: '<%= javascriptPath %><%= pkg.name %>.js'
      }
    },
    connect: {
      options: {
        protocol: 'http',
        hostname: 'localhost',
        port: 8080,
        base: '<%= appPath %>',
        directory: '<%= appPath %>'
      },
      devserver: {
        options: {
          livereload: true,
          open: 'http://localhost:8080/index.html'
        }
      },
      testserver: {}
    },
    copy: {
      dependencies: {
        files: [{
          expand: true,
          cwd: '<%= bowerrc.directory %>/angular/',
          src: ['angular.js'],
          dest: '<%= javascriptPath %>'
        }, {
			expand: true,
			cwd: '<%= bowerrc.directory %>/angular-bootstrap/',
			src: ['ui-bootstrap-tpls.js'],
			dest: '<%= javascriptPath %>'
		}, {
          expand: true,
          cwd: '<%= bowerrc.directory %>/angular-route/',
          src: ['angular-route.js'],
          dest: '<%= javascriptPath %>'
		}, {
		  expand: true,
		  cwd: '<%= bowerrc.directory %>/angular-ui-router/release/',
		  src: ['angular-ui-router.js'],
		  dest: '<%= javascriptPath %>'
        }, {
          expand: true,
          cwd: '<%= bowerrc.directory %>/bootstrap/dist/js/',
          src: ['bootstrap.js'],
          dest: '<%= javascriptPath %>'
        }, {
          expand: true,
          cwd: '<%= bowerrc.directory %>/restangular/dist',
          src: ['restangular.js'],
          dest: '<%= javascriptPath %>'
        }, {
          expand: true,
          cwd: '<%= bowerrc.directory %>/lodash',
          src: ['lodash.js'],
          dest: '<%= javascriptPath %>'
        }, {
          expand: true,
          cwd: '<%= bowerrc.directory %>/bootstrap/dist/css/',
          src: ['bootstrap.css', 'bootstrap-theme.css'],
          dest: '<%= cssPath %>'
        }, {
          expand: true,
          cwd: '<%= bowerrc.directory %>/bootstrap/dist/fonts/',
          src: ['**'],<commit_msg>Copy bootstrap css maps to prevent browser error<commit_after>'use strict';

module.exports = function(grunt) {

  // Project configuration.
  grunt.initConfig({

    mvnSrcDirectory: '../../',
    appPath: '<%= mvnSrcDirectory %>main/resources/public/',
    targetPath: '../../../target/classes/public/',
    javascriptPath: '<%= appPath %>js/',
    cssPath: '<%= appPath %>css/',
    fontPath: '<%= appPath %>fonts/',
    imgPath: '<%= appPath %>img/',
    partialPath: '<%= appPath %>partials/',
    templatePath: '<%= appPath %>templates/',

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

    clean: {
      options: {
        force: true
      },
      app: ['<%= javascriptPath %>', '<%= cssPath %>', '<%= fontPath %>', '<%= imgPath %>',
          '<%= partialPath %>', '<%= templatePath %>']
    },
    concat: {
      options: {
        // Append a short comment of the path for each concatenated source file
        process: function(src, filepath) {
          return '// Source: ' + filepath + '\n' + src;
        }
      },
      app: {
        src: ['app/js/app.js', 'app/js/*/*.js'],
        dest: '<%= javascriptPath %><%= pkg.name %>.js'
      }
    },
    connect: {
      options: {
        protocol: 'http',
        hostname: 'localhost',
        port: 8080,
        base: '<%= appPath %>',
        directory: '<%= appPath %>'
      },
      devserver: {
        options: {
          livereload: true,
          open: 'http://localhost:8080/index.html'
        }
      },
      testserver: {}
    },
    copy: {
      dependencies: {
        files: [{
          expand: true,
          cwd: '<%= bowerrc.directory %>/angular/',
          src: ['angular.js'],
          dest: '<%= javascriptPath %>'
        }, {
			expand: true,
			cwd: '<%= bowerrc.directory %>/angular-bootstrap/',
			src: ['ui-bootstrap-tpls.js'],
			dest: '<%= javascriptPath %>'
		}, {
          expand: true,
          cwd: '<%= bowerrc.directory %>/angular-route/',
          src: ['angular-route.js'],
          dest: '<%= javascriptPath %>'
		}, {
		  expand: true,
		  cwd: '<%= bowerrc.directory %>/angular-ui-router/release/',
		  src: ['angular-ui-router.js'],
		  dest: '<%= javascriptPath %>'
        }, {
          expand: true,
          cwd: '<%= bowerrc.directory %>/bootstrap/dist/js/',
          src: ['bootstrap.js'],
          dest: '<%= javascriptPath %>'
        }, {
          expand: true,
          cwd: '<%= bowerrc.directory %>/restangular/dist',
          src: ['restangular.js'],
          dest: '<%= javascriptPath %>'
        }, {
          expand: true,
          cwd: '<%= bowerrc.directory %>/lodash',
          src: ['lodash.js'],
          dest: '<%= javascriptPath %>'
        }, {
          expand: true,
          cwd: '<%= bowerrc.directory %>/bootstrap/dist/css/',
          src: ['bootstrap.css', 'bootstrap-theme.css', 'bootstrap.css.map', 'bootstrap-theme.css.map'],
          dest: '<%= cssPath %>'
        }, {
          expand: true,
          cwd: '<%= bowerrc.directory %>/bootstrap/dist/fonts/',
          src: ['**'],
{'fraction_non_alphanumeric': 0.20339813755922234, 'fraction_numerical': 0.0026139519686325763, 'mean_word_length': 1.9055529188419553, 'pattern_counts': {'":': 0, '<': 71, '<?xml version=': 0, '>': 71, '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': '5208425', 'n_tokens_mistral': 2085, 'n_tokens_neox': 1891, 'n_words': 363}