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.
 
 
 
 
StackGenVis/frontend/node_modules/assemble-core/index.js

71 lines
1.2 KiB

'use strict';
/**
* module dependencies
*/
var Templates = require('templates');
var utils = require('./utils');
/**
* Create an `assemble` application. This is the main function exported
* by the assemble module.
*
* ```js
* var assemble = require('assemble');
* var app = assemble();
* ```
* @param {Object} `options` Optionally pass default options to use.
* @api public
*/
function Assemble(options) {
if (!(this instanceof Assemble)) {
return new Assemble(options);
}
Templates.call(this, options);
this.is('assemble');
this.initCore();
}
/**
* Inherit `Templates`
*/
Templates.extend(Assemble);
Templates.bubble(Assemble);
/**
* Load core plugins
*/
Assemble.prototype.initCore = function() {
Assemble.initCore(this);
};
/**
* Load core plugins
*/
Assemble.initCore = function(app) {
Assemble.emit('preInit', app);
Assemble.initPlugins(app);
Assemble.emit('init', app);
};
/**
* Load core plugins
*/
Assemble.initPlugins = function(app) {
app.use(utils.tasks(app.name));
app.use(utils.streams());
app.use(utils.render());
app.use(utils.fs());
};
/**
* Expose the `Assemble` constructor
*/
module.exports = Assemble;