<commit_before>/*!
 * Bootstrap-submenu's Gruntfile
 * http://vsn4ik.github.io/bootstrap-submenu
 * Copyright 2014-2015 <NAME>. (https://github.com/vsn4ik)
 * Licensed under MIT (https://github.com/vsn4ik/bootstrap-submenu/blob/master/LICENSE)
 */

'use strict';

module.exports = function(grunt) {
  // Force use of Unix newlines
  grunt.util.linefeed = '\n';

  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    clean: {
      dist: ['dist', '*-dist.zip'],
      docs: [
        '<%= copy.octicons.dest %>',
        '<%= cssmin.docs.dest %>',
        '<%= uglify.docs.dest %>'
      ]
    },
    less: {
      core: {
        options: {
          sourceMap: true,
          outputSourceFiles: true,
          sourceMapURL: '<%= pkg.name %>.css.map',
          sourceMapFilename: '<%= less.core.dest %>.map'
        },
        src: 'less/<%= pkg.name %>.less',
        dest: 'dist/css/<%= pkg.name %>.css'
      }
    },
    copy: {
      js: {
        src: 'js/*',
        dest: 'dist/'
      },
      octicons: {
        expand: true,
        cwd: 'node_modules/octicons/octicons',
        src: 'octicons.{css,eot,svg,ttf,woff}',
        dest: 'docs/assets/css/octicons'
      }
    },
    cssmin: {
      core: {
        expand: true,
        src: 'dist/css/*.css',
        ext: '.min.css'
      },
      docs: {
        src: [
          'docs/assets/css/src/pygments-manni.css',
          'docs/assets/css/src/docs.css'
        ],
        dest: 'docs/assets/css/docs.min.css'
      }
    },
    htmlmin: {
      docs: {
        options: {
          collapseWhitespace: true,
          removeComments: true
        },
        expand: true,
        src: '_gh_pages/*.html'
      }
    },
    jshint: {
      options: {
        curly: true,
        globalstrict: true,
        latedef: true,
        node: true,
        noempty: true,
        strict: true
      },
      core: {
        options: {
          devel: true,
          jquery: true,
          globals: {
            define: true
          }
        },
        src: 'js/'
      },
      grunt: {
        src: 'Gruntfile.js'
      },
      docs: {
        options: {
          jquery: true
        },
        src: 'docs/assets/js/src/'
      }
    },
    uglify: {
      core: {
        expand: true,
        src: 'dist/js/*.js',
        ext: '.min.js'
      },
      docs: {
        src: 'docs/assets/js/src/docs.js',
        dest: 'docs/assets/js/docs.min.js'
      }
    },
    usebanner: {
      options: {
        banner: [
          '/*!',
          ' * Bootstrap-submenu v<%= pkg.version %> (<%= pkg.homepage %>)',
          ' * Copyright <%= grunt.template.today("yyyy") %> <%= pkg.author.name %> (<%= pkg.author.url %>)',
          ' * Licensed under <%= pkg.license.type %> (<%= pkg.license.url %>)',
          ' */'
        ].join('\n') + '\n'
      },
      dist: 'dist/*/*.{css,js}'
    },
    symlink: {
      docs: {
        options: {
          overwrite: true
        },
        src: 'dist',
        dest: 'docs/dist'
      }
    },
    jekyll: {
      github: {
        options: {
          config: '_config.yml',
          raw: 'github: true'
        }
      }
    },
    compress: {
      dist: {
        options: {
          archive: '<%= compress.dist.dest %>.zip'<commit_msg>Unification banner.<commit_after>/*!
 * Bootstrap-submenu's Gruntfile
 * http://vsn4ik.github.io/bootstrap-submenu
 * Copyright 2014-2015 <NAME>. (https://github.com/vsn4ik)
 * Licensed under MIT (https://github.com/vsn4ik/bootstrap-submenu/blob/master/LICENSE)
 */

'use strict';

module.exports = function(grunt) {
  // Force use of Unix newlines
  grunt.util.linefeed = '\n';

  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    clean: {
      dist: ['dist', '*-dist.zip'],
      docs: [
        '<%= copy.octicons.dest %>',
        '<%= cssmin.docs.dest %>',
        '<%= uglify.docs.dest %>'
      ]
    },
    less: {
      core: {
        options: {
          sourceMap: true,
          outputSourceFiles: true,
          sourceMapURL: '<%= pkg.name %>.css.map',
          sourceMapFilename: '<%= less.core.dest %>.map'
        },
        src: 'less/<%= pkg.name %>.less',
        dest: 'dist/css/<%= pkg.name %>.css'
      }
    },
    copy: {
      js: {
        src: 'js/*',
        dest: 'dist/'
      },
      octicons: {
        expand: true,
        cwd: 'node_modules/octicons/octicons',
        src: 'octicons.{css,eot,svg,ttf,woff}',
        dest: 'docs/assets/css/octicons'
      }
    },
    cssmin: {
      core: {
        expand: true,
        src: 'dist/css/*.css',
        ext: '.min.css'
      },
      docs: {
        src: [
          'docs/assets/css/src/pygments-manni.css',
          'docs/assets/css/src/docs.css'
        ],
        dest: 'docs/assets/css/docs.min.css'
      }
    },
    htmlmin: {
      docs: {
        options: {
          collapseWhitespace: true,
          removeComments: true
        },
        expand: true,
        src: '_gh_pages/*.html'
      }
    },
    jshint: {
      options: {
        curly: true,
        globalstrict: true,
        latedef: true,
        node: true,
        noempty: true,
        strict: true
      },
      core: {
        options: {
          devel: true,
          jquery: true,
          globals: {
            define: true
          }
        },
        src: 'js/'
      },
      grunt: {
        src: 'Gruntfile.js'
      },
      docs: {
        options: {
          jquery: true
        },
        src: 'docs/assets/js/src/'
      }
    },
    uglify: {
      core: {
        expand: true,
        src: 'dist/js/*.js',
        ext: '.min.js'
      },
      docs: {
        src: 'docs/assets/js/src/docs.js',
        dest: 'docs/assets/js/docs.min.js'
      }
    },
    usebanner: {
      options: {
        banner: [
          '/*!',
          ' * <%= pkg.name.charAt(0).toUpperCase() + pkg.name.slice(1) %> v<%= pkg.version %> (<%= pkg.homepage %>)',
          ' * Copyright <%= grunt.template.today("yyyy") %> <%= pkg.author.name %> (<%= pkg.author.url %>)',
          ' * Licensed under <%= pkg.license.type %> (<%= pkg.license.url %>)',
          ' */'
        ].join('\n') + '\n'
      },
      dist: 'dist/*/*.{css,js}'
    },
    symlink: {
      docs: {
        options: {
          overwrite: true
        },
        src: 'dist',
        dest: 'docs/dist'
      }
    },
    jekyll: {
      github: {
        options: {
          config: '_config.yml',
          raw: 'github: true'
        }
      }
    },
    compress: {
      dist: {
        options: {
          archive: '<%= compress.dist.dest %>.zip'
{'fraction_non_alphanumeric': 0.17756584922797458, 'fraction_numerical': 0.0036330608537693005, 'mean_word_length': 1.3964454116793616, 'pattern_counts': {'":': 0, '<': 36, '<?xml version=': 0, '>': 36, 'https://': 4, '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': '6219081', 'n_tokens_mistral': 2360, 'n_tokens_neox': 2232, 'n_words': 369}