<commit_before>var fs = require('fs'),
  async = require('async'),
  yaml = require('yamljs');

module.exports = function(root, callback){
  async.parallel([
    function(next){
      fs.readFile(__dirname + '/../package.json', 'utf8', next);
    },
    function(next){
      fs.readFile(root + '/_config.yml', 'utf8', next);
    }
  ], function(err, result){
    if (err) throw err;

    var version = JSON.parse(result[0]).version,
      config = yaml.parse(result[1]);

    global.__defineGetter__('hexo', function(){
      return {
        base_dir: root + '/',
        public_dir: root + '/public/',
        source_dir: root + '/source/',
        theme_dir: root + '/themes/' + config.theme + '/',
        plugin_dir: root + '/plugins/',
        version: version,
        config: config,
        extend: require('./extend')
      }
    });
<commit_msg>Changed plugin directory to node_modules<commit_after>var fs = require('fs'),
  async = require('async'),
  yaml = require('yamljs');

module.exports = function(root, callback){
  async.parallel([
    function(next){
      fs.readFile(__dirname + '/../package.json', 'utf8', next);
    },
    function(next){
      fs.readFile(root + '/_config.yml', 'utf8', next);
    }
  ], function(err, result){
    if (err) throw err;

    var version = JSON.parse(result[0]).version,
      config = yaml.parse(result[1]);

    global.__defineGetter__('hexo', function(){
      return {
        base_dir: root + '/',
        public_dir: root + '/public/',
        source_dir: root + '/source/',
        theme_dir: root + '/themes/' + config.theme + '/',
        plugin_dir: root + '/node_modules/',
        version: version,
        config: config,
        extend: require('./extend')
      }
    });

{'fraction_non_alphanumeric': 0.17869415807560138, 'fraction_numerical': 0.004581901489117984, 'mean_word_length': 2.5436105476673427, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6762155', 'n_tokens_mistral': 547, 'n_tokens_neox': 536, 'n_words': 116}