_id
stringlengths
2
6
title
stringlengths
0
58
partition
stringclasses
3 values
text
stringlengths
27
233k
language
stringclasses
1 value
meta_information
dict
q13400
train
function(objArr) { var ret = []; for(var i = 0; i < objArr.length;
javascript
{ "resource": "" }
q13401
train
function(recipientsArr) { var ret = []; for(var i = 0; i < recipientsArr.length;
javascript
{ "resource": "" }
q13402
train
function(task, recurse) { // get time since last context swap (ms), if enough time has passed set // swap to true to indicate that doNext was performed asynchronously // also, if recurse is too high do asynchronously var swap = (recurse > sMaxRecursions) || (+new Date() - task.swapTime) > sTimeSlice; ...
javascript
{ "resource": "" }
q13403
train
function(task, suppressCallbacks) { // subtask is now done task.state = DONE; delete sTasks[task.id]; if(sVL >= 1) { forge.log.verbose(cat, '[%s][%s] finish', task.id, task.name, task); } // only do queue processing for root tasks if(task.parent === null) { // report error if queue is miss...
javascript
{ "resource": "" }
q13404
train
function() { var cert; try { cert = this.keychain.getCertPem(); } catch (e) { throw new CError({ body: { code: 'ImATeapot', message: 'missing certificate', cause: e } }).log('body'); } if (!cert) { thro...
javascript
{ "resource": "" }
q13405
train
function(data) { if (!(data && 'function' === typeof data.isBase64 && data.isBase64())) { throw new CError('wrong data format to decrypt').log();
javascript
{ "resource": "" }
q13406
getConfigOptions
train
function getConfigOptions(opts) { opts = formatOptions(opts); _.forEach(config, function(value,
javascript
{ "resource": "" }
q13407
fixRequestOptions
train
function fixRequestOptions(method, path, transport, plain, callback) { var opts = { method: method, path: path }; if (_.isFunction(transport)) { opts.callback = transport; opts.plain = false; opts.transport = 'http'; } else {
javascript
{ "resource": "" }
q13408
logResponse
train
function logResponse(err, res) { if (err || (res && !res.ok)) { if (err) { log.warn('%s on response -> read plaintext body due an error (%s)', app.name, err.message); } else { log.warn('%s on response -> read plaintext body due an error (%s)', app.name, res.error); } } else if ...
javascript
{ "resource": "" }
q13409
getModuleName
train
function getModuleName(module) { var script = module.replace(/[^a-zA-Z0-9]/g, '.'), parts = script.split('.'), name = parts.shift();
javascript
{ "resource": "" }
q13410
train
function(opts) { opts = opts || {}; var path = opts.path || this.path, callback = opts.callback, method = opts.method || this.method, ws = getWebsocketPlugin(), transports = app.config.transports, self = this, i = 0, error, resp...
javascript
{ "resource": "" }
q13411
train
function(value) { if (value) { if (config.encryptQuery) { this._pendingQuery = this._pendingQuery || []; this._pendingQuery.push(value);
javascript
{ "resource": "" }
q13412
train
function(callback) { if (res.session && res.session.cert) { if (res.parsedHeader.payload.mode === 'handshake') { if (my.config.crypter.verifyCertificate(res.session.cert)) { callback(null); } else {
javascript
{ "resource": "" }
q13413
train
function(callback) { if (!res.parsedHeader.signature) { callback('unsigned'); } else { var signVerifier = new Crypter({ cert: res.session.cert });
javascript
{ "resource": "" }
q13414
train
function(callback) { if (parseInt(config.clockSkew, 10) > 0) { var now = new Date().toSerialNumber(), sent = res.parsedHeader.content.date; if ((now - sent) > config.clockSkew * 1000) { callback('date too old');
javascript
{ "resource": "" }
q13415
train
function(secret) { var keyIv; if (!secret) { throw new CError('missing secret').log(); } // secret is a Base64 string if(secret.isBase64()){ try { keyIv = forge.util.decode64(secret);
javascript
{ "resource": "" }
q13416
train
function (data, scheme) { // scheme = RSA-OAEP, RSAES-PKCS1-V1_5 scheme = scheme || SCHEME;
javascript
{ "resource": "" }
q13417
train
function (data, scheme) { scheme = scheme || SCHEME;
javascript
{ "resource": "" }
q13418
train
function (data, secret, encoder, mode) { // mode = CBC, CFB, OFB, CTR mode = mode || MODE; var keyIv = this.getBytesFromSecret(secret); var cipher = forge.aes.createEncryptionCipher(keyIv, mode); cipher.start(keyIv); cipher.update(forge.util.createBuffer(data));
javascript
{ "resource": "" }
q13419
train
function (data, secret, encoder, mode) { // mode = CBC, CFB, OFB, CTR mode = mode || MODE; var keyIv = this.getBytesFromSecret(secret); var cipher = forge.aes.createDecryptionCipher(keyIv, mode); cipher.start(keyIv); var decoded; if (encoder === 'url') { decoded
javascript
{ "resource": "" }
q13420
train
function (pem) { var certificate = forge.pki.certificateFromPem(pem); var issuerCert = caStore.getIssuer(certificate); if (issuerCert) { try
javascript
{ "resource": "" }
q13421
train
function () { var self = this; this.collectionRegistry = {}; // emit molecuel elements pre init event molecuel.emit('mlcl::collections::init:pre', self); /** * Schema directory config */ if (molecuel.config.collections && molecuel.config.collections.collectionDir) { this.collectionDir = molecuel...
javascript
{ "resource": "" }
q13422
EzMap
train
function EzMap(arr) { this._keys = [] this._values
javascript
{ "resource": "" }
q13423
getOpenTabInfo
train
function getOpenTabInfo(tabItems, openTabs) { const chromeOpenTabItems = Immutable.Seq(openTabs.map(makeOpenTabItem)); // console.log("getOpenTabInfo: openTabs: ", openTabs); // console.log("getOpenTabInfo: chromeOpenTabItems: " + JSON.stringify(chromeOpenTabItems,null,4)); const openUrlMap = Immutable.Map(chr...
javascript
{ "resource": "" }
q13424
hyperBind
train
function hyperBind(store) { this.compile = function(input) { var path = input.split('.'); return { path: input, target: path[path.length - 1] }; }; this.state = function(config, state) {
javascript
{ "resource": "" }
q13425
getFields
train
function getFields(tweet) { return _.flatten(tweetLikeObjectsToCheck.map(function(tweetLikeName) { var tweetLike; if (tweetLikeName === null) { tweetLike = tweet; } else
javascript
{ "resource": "" }
q13426
getFieldsFromTweetLike
train
function getFieldsFromTweetLike(tweetLike) { var fields = fieldsToCheck.map(function(fieldName) { return _.get(tweetLike, fieldName); }); arrayFieldsToCheck.forEach(function(fieldDescription) { var arr = _.get(tweetLike, fieldDescription.arrayAt); if (_.isArray(arr)) { arr.forEach(function(elem...
javascript
{ "resource": "" }
q13427
Service
train
function Service(config, callback) { ld.bindAll(this); var eventEmitter = new EventEmitter2({ wildcard: true, delimiter: '.'}); this.cfg = {}; this.network = { local: eventEmitter }; ld.defaults(this.cfg, config, { // id // required, unique service id [^a-zA-Z0-9_] ...
javascript
{ "resource": "" }
q13428
exitHandler
train
function exitHandler(options, err) { if (err) { log.error(err.stack); } if (options.exit) { process.exit(); }
javascript
{ "resource": "" }
q13429
applyStyle
train
function applyStyle(str, property, value) { var styleDefinition = CONSOLE_STYLES[property][value]; //No style defined return non modified
javascript
{ "resource": "" }
q13430
applyStyles
train
function applyStyles(str, style) { //Check if not style if (! style) { return str; } //Check shortcut if string is empty //str = '' + str; if (!str || str.length === 0) { return str; } var output, i, rule, textdecoration; //style = style || {}; output = str; ...
javascript
{ "resource": "" }
q13431
recursiveFindFile
train
function recursiveFindFile(aDirectory, arrayOfFileNames) { if (debug) debugLog(`recursiveFindFile dir: ${aDirectory}, filenames: ${util.inspect(arrayOfFileNames)}`); // var directory = process.cwd(); let directory = aDirectory; const tmp = directoryHasFile(directory, arrayOfFileNames); if ((tmp ==...
javascript
{ "resource": "" }
q13432
angle
train
function angle(a, b){ var ang = (Math.atan2(b.y, b.x) - Math.atan2(a.y, a.x) + Math.PI*2) % (Math.PI*2);
javascript
{ "resource": "" }
q13433
train
function( noDelay ) { if ( this._.locked ) return; function doBlur() { if ( this.hasFocus ) { this.hasFocus = false; var ct = this._.editor.container; ct && ct.removeClass( 'cke_focus' ); this._.editor.fire( 'blur' ); } } if ( this._.timer ) clearTimeout( this._.timer ...
javascript
{ "resource": "" }
q13434
train
function( element, isCapture ) { var fm = element.getCustomData( SLOT_NAME ); if ( !fm || fm != this ) { // If this element is already taken by another instance, dismiss it first. fm && fm.remove( element ); var focusEvent = 'focus', blurEvent = 'blur'; // Bypass the element's internal DOM ...
javascript
{ "resource": "" }
q13435
PostcssCompiler
train
function PostcssCompiler(inputTrees, inputFile, outputFile, plugins, map, useSass, includePaths) { if (!(this instanceof PostcssCompiler)) { return new PostcssCompiler(inputTrees, inputFile, outputFile, plugins, map); } if (!Array.isArray(inputTrees)) {
javascript
{ "resource": "" }
q13436
coverFile
train
function coverFile(srcFile) { var srcCode = grunt.file.read(srcFile); Instrument = require('coverjs').Instrument; try {
javascript
{ "resource": "" }
q13437
createBaseCustomElementClass
train
function createBaseCustomElementClass(win) { if (win.BaseCustomElementClass) { return win.BaseCustomElementClass; } const htmlElement = win.HTMLElement; /** @abstract @extends {HTMLElement} */ class BaseCustomElement extends htmlElement { /** * @see https://github.com/WebReflection/document-regis...
javascript
{ "resource": "" }
q13438
train
function(backdropZ, dialogZ) { this.backdrop_.style.zIndex
javascript
{ "resource": "" }
q13439
initialize
train
function initialize(app, options) { var log = logger.get(options); app._mukoan = app._mukoan || {}; if (!app._mukoan.initialized) { var config = defaults({}, options, DEFAULT_CONFIGURATION); log.info('Starting and configuring Koa server'); // Setup global error handler and logger
javascript
{ "resource": "" }
q13440
bootstrap
train
function bootstrap(app, options) { var config = defaults({}, options, DEFAULT_CONFIGURATION); var log = logger.get(options); app._mukoan = app._mukoan || {}; if (!app._mukoan.initialized) { initialize(app, options); } if (!app._mukoan.bootstrapped) { // Configure and setup middlewares app.use(...
javascript
{ "resource": "" }
q13441
accessor
train
function accessor(object) { var ref = object || (1, eval)('this'); var len = parts.length; var idx = 0; // iteratively save each segment's reference
javascript
{ "resource": "" }
q13442
train
function (imgsrc, width, height, callback) { var args = new Args(arguments); checkCommonArgs(args); var Image = Canvas.Image, fs = require("fs"); var img = new Image(); img.onerror = function(err) { callback(false, err); }; img.onload = function() { var w = img.width; ...
javascript
{ "resource": "" }
q13443
handleMousedown
train
function handleMousedown(event) { // get currently open dialogue var dialogue = getDialogueCurrent(); if (dialogue.options.hardClose)
javascript
{ "resource": "" }
q13444
applyCssPosition
train
function applyCssPosition(dialogue) { var positionalEl = dialogue.options.positionTo; var containerPadding = 20; var cssSettings = { top: '', left: '', position: '', margin: '', marginTop: 0, marginRight: 0, marginBottom: 0, marginLeft: 0, maxWidth: dialogue.options.width }; ...
javascript
{ "resource": "" }
q13445
closeInstance
train
function closeInstance(dialogue) { // none may be open yet, or one may be open but may be closing another which is not open if (typeof dialogue === 'undefined' || typeof dialogue.options === 'undefined' || !dialoguesOpen.length) { return; } dialoguesOpen.forEach(function(dialogueSingle, index) { if (d...
javascript
{ "resource": "" }
q13446
train
function (file) { return Path.join(Path.dirname(Path.relative(hbTemplatePath,
javascript
{ "resource": "" }
q13447
scale
train
function scale(sx) { var sy = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] :
javascript
{ "resource": "" }
q13448
train
function (surl) { var search = (surl || window.location.search).match(/\?.*(?=\b|#)/); search && (search = search[0].replace(/^\?/, '')); if (!search) return {}; var queries = {}, params =
javascript
{ "resource": "" }
q13449
train
function( part, fn ) { if ( CKEDITOR.skin.name != getName() ) { CKEDITOR.scriptLoader.load( CKEDITOR.getUrl( getConfigPath() + 'skin.js' ), function() {
javascript
{ "resource": "" }
q13450
train
function( name, path, offset, bgsize ) { name = name.toLowerCase(); if ( !this.icons[ name ] ) { this.icons[ name ] = {
javascript
{ "resource": "" }
q13451
train
function( name, rtl, overridePath, overrideOffset, overrideBgsize ) { var icon, path, offset, bgsize; if ( name ) { name = name.toLowerCase(); // If we're in RTL, try to get the RTL version of the icon. if ( rtl ) icon = this.icons[ name + '-rtl' ]; // If not in LTR or no RTL version availa...
javascript
{ "resource": "" }
q13452
train
function (LazyValue, Bounce) { var nu = function (baseFn) { var get = function(callback) { baseFn(Bounce.bounce(callback)); }; /** map :: this Future a -> (a -> b) -> Future b */ var map = function (fab) { return nu(function (callback) { get(function (a) { ...
javascript
{ "resource": "" }
q13453
train
function (elm, rootElm) { var self = this, x = 0, y = 0, offsetParent, doc = self.doc, body = doc.body, pos; elm = self.get(elm); rootElm = rootElm || body; if (elm) { // Use getBoundingClientRect if it exists since it's faster than looping offset nodes // Fallback ...
javascript
{ "resource": "" }
q13454
train
function (element) { var el = element.dom(); var defaultView = el.ownerDocument.defaultView;
javascript
{ "resource": "" }
q13455
train
function (dom, selection) { var caretContainer; caretContainer = getParentCaretContainer(selection.getStart()); if (caretContainer && !dom.isEmpty(caretContainer)) {
javascript
{ "resource": "" }
q13456
train
function (node, args) { var self = this, impl, doc, oldDoc, htmlSerializer, content, rootNode; // Explorer won't clone contents of script and style and the // selected index of select elements are cleared on a clone operation. if (Env.ie && dom.select('script,style,select,map')....
javascript
{ "resource": "" }
q13457
train
function (original, tag) { var nu = Element.fromTag(tag); var attributes = Attr.clone(original);
javascript
{ "resource": "" }
q13458
train
function (original, tag) { var nu = shallowAs(original, tag); // NOTE // previously this used serialisation: // nu.dom().innerHTML = original.dom().innerHTML;
javascript
{ "resource": "" }
q13459
train
function (original, tag) { var nu = shallowAs(original, tag); Insert.before(original, nu);
javascript
{ "resource": "" }
q13460
train
function(arr, f) { var r = []; for (var i = 0; i < arr.length; i++) { var x = arr[i]; if (x.isSome()) { r.push(x.getOrDie()); } else {
javascript
{ "resource": "" }
q13461
train
function (args) { var self = this, rng = self.getRng(), tmpElm = self.dom.create("body"); var se = self.getSel(), whiteSpaceBefore, whiteSpaceAfter, fragment; args = args || {}; whiteSpaceBefore = whiteSpaceAfter = ''; args.get = true; args.format = args.format || 'html'...
javascript
{ "resource": "" }
q13462
train
function (rng, forward) { var self = this, sel, node, evt; if (!isValidRange(rng)) { return; } // Is IE specific range if (rng.select) { self.explicitRange = null; try { rng.select(); } catch (ex) { // Needed for ...
javascript
{ "resource": "" }
q13463
train
function () { var level; if (self.typing) { self.add(); self.typing = false; setTyping(false); } if (index > 0) { level = data[--index];
javascript
{ "resource": "" }
q13464
train
function (elm, afterDeletePosOpt) { return Options.liftN([Traverse.prevSibling(elm), Traverse.nextSibling(elm), afterDeletePosOpt], function (prev, next, afterDeletePos) { var offset, prevNode = prev.dom(), nextNode = next.dom(); if (NodeType.isText(prevNode) && NodeType.isText(nextNode)) { ...
javascript
{ "resource": "" }
q13465
queryCommandValue
train
function queryCommandValue(command) { var func; if (editor.quirks.isHidden() || editor.removed) { return; } command = command.toLowerCase(); if ((func = commands.value[command])) { return func(command); }
javascript
{ "resource": "" }
q13466
train
function (dom, node) { return node && dom.isBlock(node) && !/^(TD|TH|CAPTION|FORM)$/.test(node.nodeName) &&
javascript
{ "resource": "" }
q13467
moveToCaretPosition
train
function moveToCaretPosition(root) { var walker, node, rng, lastNode = root, tempElm; if (!root) { return; } // Old IE versions doesn't properly render blocks with br elements in them // For example <p><br></p> wont be rendered correctly in a contentEditab...
javascript
{ "resource": "" }
q13468
train
function (editor, clientX, clientY) { var bodyElm = Element.fromDom(editor.getBody()); var targetElm = editor.inline ? bodyElm : Traverse.documentElement(bodyElm); var transposedPoint =
javascript
{ "resource": "" }
q13469
Editor
train
function Editor(id, settings, editorManager) { var self = this, documentBaseUrl, baseUri; documentBaseUrl = self.documentBaseUrl = editorManager.documentBaseURL; baseUri = editorManager.baseURI; /** * Name/value collection with editor settings. * * @property settings ...
javascript
{ "resource": "" }
q13470
train
function (text) { if (text && Tools.is(text, 'string')) { var lang = this.settings.language || 'en', i18n = this.editorManager.i18n; text = i18n.data[lang + '.' + text] || text.replace(/\{\#([^\}]+)\}/g, function (a, b) {
javascript
{ "resource": "" }
q13471
train
function (args) { var self = this, content, body = self.getBody(); if (self.removed) { return ''; } // Setup args object args = args || {}; args.format = args.format || 'html'; args.get = true; args.getInner = true; // Do preprocessing...
javascript
{ "resource": "" }
q13472
train
function() { // Call the base contructor. this.base(); /** * The characters to be used for each indentation step. * * // Use tab for indentation. * editorInstance.dataProcessor.writer.indentationChars = '\t'; */ this.indentationChars = '\t'; /** * The characters to be used t...
javascript
{ "resource": "" }
q13473
train
function( tagName, attributes ) { var rules = this._.rules[ tagName ]; if ( this._.afterCloser && rules && rules.needsSpace && this._.needsSpace ) this._.output.push( '\n' );
javascript
{ "resource": "" }
q13474
train
function( tagName, isSelfClose ) { var rules = this._.rules[ tagName ]; if ( isSelfClose ) { this._.output.push( this.selfClosingEnd ); if ( rules && rules.breakAfterClose ) this._.needsSpace = rules.needsSpace; } else { this._.output.push( '>' ); if ( rules && rules.indent )...
javascript
{ "resource": "" }
q13475
train
function( tagName ) { var rules = this._.rules[ tagName ]; if ( rules && rules.indent ) this._.indentation = this._.indentation.substr( this.indentationChars.length ); if ( this._.indent ) this.indentation(); // Do not break if indenting. else if ( rules && rules.breakBeforeClose ) { ...
javascript
{ "resource": "" }
q13476
train
function( text ) { if ( this._.indent ) { this.indentation(); !this._.inPre && ( text =
javascript
{ "resource": "" }
q13477
train
function() { this._.output = []; this._.indent = 0; this._.indentation = '';
javascript
{ "resource": "" }
q13478
normalizeToBase
train
function normalizeToBase(text) { var rExps = [ {re: /[\xC0-\xC6]/g, ch: "A"}, {re: /[\xE0-\xE6]/g, ch: "a"}, {re: /[\xC8-\xCB]/g, ch: "E"}, {re: /[\xE8-\xEB]/g, ch: "e"}, {re: /[\xCC-\xCF]/g, ch: "I"}, {re: /[\xEC-\xEF]/g, ch: "i"},
javascript
{ "resource": "" }
q13479
UsbHid
train
function UsbHid() { var vendorId = 0x0fc5; // always 0x0FC5 for Delcom products var productId = 0xb080; // always 0xB080 for Delcom HID device this.device = this._find(vendorId, productId); this.dataMap = {
javascript
{ "resource": "" }
q13480
ToJSFilter
train
function ToJSFilter (inputTree, options) { if (!(this instanceof ToJSFilter)) { return new ToJSFilter(inputTree, options); } options = options || {}; options.extensions = options.extensions || ['txt'];
javascript
{ "resource": "" }
q13481
define
train
function define(scope, Type, name) { var propName = name || 'super' , propInernalName = '_' + propName; Object.defineProperty(scope, propName, { writeable: false, get: function() {
javascript
{ "resource": "" }
q13482
create
train
function create(scope, Type) { // make result the constructor var result = function() { Type.apply(scope, arguments); }; // attach methods to result for(var key in Type.prototype) {
javascript
{ "resource": "" }
q13483
train
function (name) { return new DatabaseAPI(hoodie, { name: name, editable_permissions: true,
javascript
{ "resource": "" }
q13484
all
train
function all(values, keyName) { if(values instanceof Array) { var results = {}; for(var i=0; i<values.length; i++) { var obj2 = values[i]; var res = get(obj2, keyName); if(res != undefined) { results[res] = 0; } }
javascript
{ "resource": "" }
q13485
getTasksFromYakefile
train
function getTasksFromYakefile(cwd, fileOption) { // find the yakefile and load (actually a dynamic 'require') tasks // first create an empty collection - dont need to use the global collection const tc1 = TC.TaskCollection(); //preload const tc2 = TASKS.loadPreloadedTasks(tc1); const yakefileC...
javascript
{ "resource": "" }
q13486
getTasksFromTaskfile
train
function getTasksFromTaskfile() { // tasks will already be loaded and are in the global collection so get it const tc =
javascript
{ "resource": "" }
q13487
getTasksFromArray
train
function getTasksFromArray(cfgArray) { const tc = TC.TaskCollection(); // tasks are defined in a datascripture - load it const tc2 = TASKS.loadTasksFromArray(cfgArray,
javascript
{ "resource": "" }
q13488
tryShowTasks
train
function tryShowTasks(options, collection) { if (options.getValueFor('showTasks') !==
javascript
{ "resource": "" }
q13489
tryRunTask
train
function tryRunTask(args, collection) { let nameOfTaskToRun = 'default'; const a = args.getArgs(); if (a.length > 0) { nameOfTaskToRun = a[0]; } const firstTask = collection.getByName(nameOfTaskToRun);
javascript
{ "resource": "" }
q13490
taskFileMain
train
function taskFileMain(argv) { if( argv === undefined ) argv = process.argv const [options, args, helpText] = CLI.taskFileParse(argv); const collection = getTasksFromTaskfile();
javascript
{ "resource": "" }
q13491
yakeFileMain
train
function yakeFileMain(argv, cwd) { if( cwd === undefined) cwd = process.cwd(); if( argv === undefined ) argv = process.argv const [options, args, helpText] = CLI.CliParse(argv); const collection = getTasksFromYakefile(cwd, options.getValueFor('file')); const p = loadPackageJson(); if( tryS...
javascript
{ "resource": "" }
q13492
train
function() { var self = this; var insightsPanel = self.buildInsightsPanel(); var media = insightsPanel + '<div class="media">' + ' <div class="media-left">' + // the visual chart as media-object. ' <div class="media-object" id="' +
javascript
{ "resource": "" }
q13493
train
function() { var self = this; var panel = '<div class="panel panel-success">' + ' <div class="panel-heading">' + ' visual data dashboard mockups' + ' </div>' + ' <div class="panel-body">' + ' <div class="row">' + // the visual chart. ' <div class="col-md-8">' + ' <div id="...
javascript
{ "resource": "" }
q13494
train
function() { var self = this; // Draw the chart, $('#' + self.getId('chart')).html('')
javascript
{ "resource": "" }
q13495
train
function() { var self = this; var summary = self.tableSummaryBuilder(self.groupsSummary,
javascript
{ "resource": "" }
q13496
train
function(groupName, totalSites, totalPages, totalPageviews) { var format = d3.format(',d'); // build var summary =
javascript
{ "resource": "" }
q13497
train
function() { var self = this; if(this.options.insightsFeeder) { // use the customize insights feeder self.options.insightsFeeder(self); } else {
javascript
{ "resource": "" }
q13498
train
function(visualData) { var insightsList = '<li class="list-group-item">The site served' + ' <strong>' + visualData.total[0] + '</strong> total pageviews on' + ' <strong>' + visualData.total[1] + '</strong> pages of' + ' <strong>' + visualData.total[2] + '</strong> sites' + '</li>' + // the first group ...
javascript
{ "resource": "" }
q13499
run
train
function run (x, cb) { const s = speculum(null, Echo, x) s.on('end', cb) s.on('error', cb) const
javascript
{ "resource": "" }