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.
21 lines
451 B
21 lines
451 B
/*!
|
|
* strip-bom-buffer <https://github.com/jonschlinkert/strip-bom-buffer>
|
|
*
|
|
* Copyright (c) 2015, Jon Schlinkert.
|
|
* Licensed under the MIT License.
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
var isBuffer = require('is-buffer');
|
|
var isUtf8 = require('is-utf8');
|
|
|
|
module.exports = function (buffer) {
|
|
if (!isBuffer(buffer) || !isUtf8(buffer)) {
|
|
return buffer;
|
|
}
|
|
if (String(buffer.slice(0, 3)) === '\ufeff') {
|
|
return buffer.slice(3);
|
|
}
|
|
return buffer;
|
|
};
|
|
|