<commit_before>var Fs = require('fs');
var Async = require('async');
var Utils = require('../utils/utils.js');

(function() {
    'use strict';
    var pluginManager = {};
    var root = this;
    var PLUGINDIR = process.env.HOME + '/.friday/plugins';
    //var PLUGINDIR = process.env.HOME ;

    pluginManager.upgrade = function() {};

    pluginManager.load = function(callback) {
        Async.waterfall([
            Async.apply(Utils.mkdirfp, PLUGINDIR),
            Async.apply(Fs.readdir, PLUGINDIR),<commit_msg>use path for plugin loader<commit_after>var Fs = require('fs');
var Path = require('path');
var Async = require('async');
var Utils = require('../utils/utils.js');

(function() {
    'use strict';
    var pluginManager = {};
    var root = this;
    var PLUGINDIR = Path.join(process.env.HOME ,'.friday','plugins');

    pluginManager.upgrade = function() {};

    pluginManager.load = function(callback) {
        Async.waterfall([
            Async.apply(Utils.mkdirfp, PLUGINDIR),
            Async.apply(Fs.readdir, PLUGINDIR),
{'fraction_non_alphanumeric': 0.1598477640342531, 'fraction_numerical': 0.0, 'mean_word_length': 3.109375, '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': '3686830', 'n_tokens_mistral': 333, 'n_tokens_neox': 322, 'n_words': 69}