predict() { release(this.weights); this.weights = this.predictKernel( this.inputLayer1.weights, this.inputLayer2.weights ); clear(this.deltas); }
/** * {{> clearCookie }} */ async clearCookie(cookie) { if (!cookie) { return this.browser.cookies.clearAll(); } return this.browser.cookies.clear(cookie); }
/** * {{> fillField }} */ async fillField(field, value) { const els = await findFields(this.browser, field); await els[0].clear(); return els[0].sendKeys(value.toString()); }
async _stopBrowser() { this.withinLocator = null; this._setPage(null); this.context = null; popupStore.clear(); this.isAuthenticated = false; if (this.isRemoteBrowser) { await this.browser.disconnect(); } else { await this.browser.close(); } }
reset() { this.user = null; this.profilePicture = null; this.initialized = false; keyValueStore.clear(); }
test('@taskr/clear: filepath (task)', co(function * (t) { t.plan(2); yield create({ * a(f) { const src = `${dir1}/foo`; yield f.$.write(src); t.true('clear' in f, 'attach `clear` to task instance'); yield f.clear(src); t.false(exists(src), 'file was deleted'); } }).start('a'); }));
test('@taskr/unflow (sourceMap:`external`)', t => { t.plan(1); create({ *foo(f) { const tmp = tmpDir('tmp-4'); yield f.source(`${dir}/*.js`).unflow({ sourceMap:'external' }).target(tmp); const str = yield f.$.read(`${tmp}/foo.js`, 'utf8'); t.true(/sourceMappingURL=foo.js.map/.test(str), 'attach an `external` sourceMap link'); yield f.clear(tmp); } }).start('foo'); });
handle(data) { // Verify channel const channel = this.getChannel(data); if (!channel || channel.type === 'voice') return false; // Verify message const message = this.getMessage(data, channel); if (!message) return false; message.reactions.cache.clear(); this.client.emit(Events.MESSAGE_REACTION_REMOVE_ALL, message); return { message }; }
async cleanup() { if (this.pool) { await this.pool.drain(); this.pool.clear(); } }
predict() { release(this.weights); this.weights = this.predictKernel(this.inputLayer.weights); clear(this.deltas); }
test('@taskr/clear: directory', co(function * (t) { t.plan(1); yield create({ * a(f) { const src = `${dir1}/foo`; yield f.$.write(src); yield f.clear(dir1); t.false(exists(src), 'directory was deleted'); } }).start('a'); }));
predict() { release(this.weights); this.weights = this.predictKernel(this.inputLayer.weights); clear(this.deltas); }
reset() { this.user = null; this.profilePicture = null; this.initialized = false; localStorage.clear(); }