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.
15 lines
407 B
15 lines
407 B
4 years ago
|
// remove white spaces around operators when safe
|
||
|
module.exports = function cleanWhitespace(node, item, list) {
|
||
|
if (node.value === '+' || node.value === '-') {
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
if (item.prev !== null && item.prev.data.type === 'WhiteSpace') {
|
||
|
list.remove(item.prev);
|
||
|
}
|
||
|
|
||
|
if (item.next !== null && item.next.data.type === 'WhiteSpace') {
|
||
|
list.remove(item.next);
|
||
|
}
|
||
|
};
|