Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
base: _base
}
console.log('Loading dataset ' + options.store + ' ...');
_base.loadCSV(options, function (err) {
if (err) return callback(err);
var Iris = _base.store(options.store);
console.log(options.store + ' dataset loaded')
finished = true;
})
// Used deasync module to turn this function into sync.
while (finished == false) {
require('deasync').runLoopOnce();
}
return _base.store(options.store);
}
base: _base
}
console.log('Loading dataset ' + options.store + ' ...');
_base.loadCSV(options, function (err) {
if (err) return callback(err);
var Iris = _base.store(options.store);
console.log(options.store + ' dataset loaded')
finished = true;
})
// Used deasync module to turn this function into sync.
while (finished == false) {
require('deasync').runLoopOnce();
}
return _base.store(options.store);
}
base: _base
}
console.log('Loading dataset ' + options.store + ' ...');
_base.loadCSV(options, function (err) {
if (err) return callback(err);
var Iris = _base.store(options.store);
console.log(options.store + ' dataset loaded')
finished = true;
})
// Used deasync module to turn this function into sync.
while (finished == false) {
require('deasync').runLoopOnce();
}
return _base.store(options.store);
}
downloadSync2 = wget2 = (url) => {
ret = undefined// global hack
fetch(urlify(url)).then(response => response.text().then(data => ret = data))
while (ret === undefined) {
require('deasync').runLoopOnce();
}
return ret
}
html.action = function(action, controller, routeValues){
var actionResult;
data.methods.action({
action: action,
controller: controller,
routeValues: routeValues
}, function(error, result){
actionResult = result;
});
while(actionResult === undefined) {
require('deasync').runLoopOnce();
}
return actionResult;
}