<commit_before>/*
 * assemble-jekyll
 * https://github.com/hariadi/
 *
 * Copyright (c) 2013 <NAME>
 * Licensed under the MIT license.
 */

'use strict';

module.exports = function(grunt) {

  // Project configuration.
  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),

    assemble: {
      options: {
        assets: 'dist/assets',
        layout: 'src/templates/layouts/default.hbs',
        partials: 'src/templates/partials/*.hbs',
        flatten: true,
        data: 'src/data/*.{json,yml}'
      },
      pages: {
        files: {
          // 'dist/': ['src/templates/pages/*.hbs', '!**/index.hbs'],
          // './': ['src/templates/pages/index.hbs']
          // 'dist': ['src/templates/pages/**/*.hbs'], // can't use this, assemble not creating directory
          'dist/': ['src/templates/pages/*.hbs'],
          'dist/_include/': ['src/templates/pages/_includes/*.hbs'],
          'dist/_layouts/': ['src/templates/pages/_layouts/*.hbs']
        }        
      }
    },

    // Before generating any new files, 
    // remove any previously-created files.
    clean: {
      dest: {
        src: [ 'dist/**/*.html' ]
      }
    }
  });

  // Load npm plugins to provide necessary tasks.
  grunt.loadNpmTasks('assemble');
  grunt.loadNpmTasks('grunt-contrib-clean');

  // Default task to be run.<commit_msg>Handle template without layout assemble/assemble#80<commit_after>/*
 * assemble-jekyll
 * https://github.com/hariadi/
 *
 * Copyright (c) 2013 <NAME>
 * Licensed under the MIT license.
 */

'use strict';

module.exports = function(grunt) {

  // Project configuration.
  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),

    assemble: {
      options: {
        assets: 'dist/assets',
        //layout: 'src/templates/layouts/default.hbs',
        partials: 'src/templates/partials/*.hbs',
        flatten: true,
        data: 'src/data/*.{json,yml}'
      },
      pages: {
        files: {
          // 'dist/': ['src/templates/pages/*.hbs', '!**/index.hbs'],
          // './': ['src/templates/pages/index.hbs']
          // 'dist': ['src/templates/pages/**/*.hbs'], // can't use this, assemble not creating directory
          'dist/': ['src/templates/pages/*.hbs'],
          'dist/_include/': ['src/templates/pages/_includes/*.hbs'],
          'dist/_layouts/': ['src/templates/pages/_layouts/*.hbs']
        }        
      }
    },

    // Before generating any new files, 
    // remove any previously-created files.
    clean: {
      dest: {
        src: [ 'dist/**/*.html' ]
      }
    }
  });

  // Load npm plugins to provide necessary tasks.
  grunt.loadNpmTasks('assemble');
  grunt.loadNpmTasks('grunt-contrib-clean');

  // Default task to be run.
{'fraction_non_alphanumeric': 0.18355359765051396, 'fraction_numerical': 0.003671071953010279, 'mean_word_length': 2.139400921658986, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '7605410', 'n_tokens_mistral': 902, 'n_tokens_neox': 869, 'n_words': 165}