<commit_before>var path = require('path'),
  async = require('async'),
  extend = require('../extend'),
  util = require('../util'),
  file = util.file,
  spawn = util.spawn;

extend.console.register('init', 'Initialize', function(args){
  var target = process.cwd();

  if (args[0]) target = path.resolve(target, args[0]);

  async.parallel([
    function(next){
      file.mkdir(target + '/themes', function(){
        spawn({
          command: 'git',
          args: ['clone', 'git://github.com/tommy351/hexo-theme-light.git', target + '/themes/light'],
          exit: function(code){
            if (code === 0) next();
          }
        });
      });
    },
    function(next){
      file.mkdir(target + '/source', function(){
        async.parallel([
          function(next){
            file.mkdir(target + '/source/_posts', next);
          },
          function(next){
            file.mkdir(target + '/source/_drafts', next);
          }
        ], next);
      });
    },
    function(next){
      var pkg = {
        private: true,
        dependencies: {}
      };

      file.write(target + '/package.json', JSON.stringify(pkg, null, '  ') + '\n', next);
    },
    function(next){
      var config = [
        '# Basic',
        'title: Hexo',
        'subtitle: Node.js blog framework',
        'description:',
        'url: http://yoursite.com',
        'author: <NAME>',
        'email:',
        'language:',
        '',<commit_msg>Add engines parameter when init<commit_after>var path = require('path'),
  async = require('async'),
  extend = require('../extend'),
  util = require('../util'),
  file = util.file,
  spawn = util.spawn;

extend.console.register('init', 'Initialize', function(args){
  var target = process.cwd();

  if (args[0]) target = path.resolve(target, args[0]);

  async.parallel([
    function(next){
      file.mkdir(target + '/themes', function(){
        spawn({
          command: 'git',
          args: ['clone', 'git://github.com/tommy351/hexo-theme-light.git', target + '/themes/light'],
          exit: function(code){
            if (code === 0) next();
          }
        });
      });
    },
    function(next){
      file.mkdir(target + '/source', function(){
        async.parallel([
          function(next){
            file.mkdir(target + '/source/_posts', next);
          },
          function(next){
            file.mkdir(target + '/source/_drafts', next);
          }
        ], next);
      });
    },
    function(next){
      var pkg = {
        private: true,
        engines: {
          'node': '>0.6.0'
        },
        dependencies: {}
      };

      file.write(target + '/package.json', JSON.stringify(pkg, null, '  ') + '\n', next);
    },
    function(next){
      var config = [
        '# Basic',
        'title: Hexo',
        'subtitle: Node.js blog framework',
        'description:',
        'url: http://yoursite.com',
        'author: <NAME>',
        'email:',
        'language:',
        '',
{'fraction_non_alphanumeric': 0.18613993973886844, 'fraction_numerical': 0.0050217609641781055, 'mean_word_length': 1.8953488372093024, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '2305732', 'n_tokens_mistral': 910, 'n_tokens_neox': 896, 'n_words': 179}