<commit_before>var path = require('path');
var dir = require('node-dir');
var vow = require('vow');
var fs = require('fs');

function DirTransferPlugin(patterns, srcBasePath, destBasePath) {
    this.patterns = patterns || [];
    this.srcBasePath = srcBasePath;
    this.destBasePath = destBasePath;
}

DirTransferPlugin.prototype.apply = function(compiler) {
    var _this = this;
    var srcBasePath = this.srcBasePath || compiler.options.context || null;
    var destBasePath = this.destBasePath || compiler.options.context || null;

    compiler.plugin('emit', function(compilation, cb) {
        if (!srcBasePath) {
            compilation.errors.push(new Error('DirTransferPlugin: no srcBasePath provided'));
            cb();
        }<commit_msg>basePaths correction<commit_after>var path = require('path');
var dir = require('node-dir');
var vow = require('vow');
var fs = require('fs');

function DirTransferPlugin(patterns, basePaths) {
    this.patterns = patterns || [];
    if (basePaths) {
        this.srcBasePath = basePaths.srcBasePath;
        this.destBasePath = basePaths.destBasePath;
    }
}

DirTransferPlugin.prototype.apply = function(compiler) {
    var _this = this;
    var srcBasePath = this.srcBasePath || compiler.options.context || null;
    var destBasePath = this.destBasePath || compiler.options.context || null;

    compiler.plugin('emit', function(compilation, cb) {
        if (!srcBasePath) {
            compilation.errors.push(new Error('DirTransferPlugin: no srcBasePath provided'));
            cb();
        }
{'fraction_non_alphanumeric': 0.13174807197943444, 'fraction_numerical': 0.0, 'mean_word_length': 3.647761194029851, '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': '6824299', 'n_tokens_mistral': 449, 'n_tokens_neox': 445, 'n_words': 98}