StackGenVis: Alignment of Data, Algorithms, and Models for Stacking Ensemble Learning Using Performance Metrics
https://doi.org/10.1109/TVCG.2020.3030352
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
827 B
30 lines
827 B
4 years ago
|
/**
|
||
|
* Copyright 2015, Yahoo! Inc.
|
||
|
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
|
||
|
*/
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
var loaderUtils = require('loader-utils');
|
||
|
|
||
|
function StripFnLoader(source) {
|
||
|
var query = loaderUtils.parseQuery(this.query);
|
||
|
|
||
|
if (!query || !query.strip) return;
|
||
|
|
||
|
var toStrip = query.strip.join('|');
|
||
|
|
||
|
var regexPattern = new RegExp('(?:^|\\n)[ \\t]*(' + toStrip + ')\\(((\\"[^\\"]*\\")|(\\\'[^\\\']*\\\')|[^\\);]|\\([^\\);]*\\))*\\)[ \\t]*(?:$|[;\\n])', 'g');
|
||
|
|
||
|
var transformed = source.replace(regexPattern, '\n');
|
||
|
|
||
|
this.callback(null, transformed);
|
||
|
}
|
||
|
module.exports = StripFnLoader;
|
||
|
|
||
|
module.exports.loader = function () {
|
||
|
return __filename + '?' + [].slice.call(arguments, 0).map(function (fn) {
|
||
|
return 'strip[]=' + fn;
|
||
|
}).join(',');
|
||
|
};
|