id int64 0 1.29M | original_id stringlengths 32 32 | swhid stringlengths 100 170 | sha1 stringlengths 40 40 | repo_name stringlengths 2 45 | repo_group stringclasses 12
values | filepath stringlengths 5 153 | name stringlengths 1 14.9k | type stringclasses 3
values | code stringlengths 7 2.12M |
|---|---|---|---|---|---|---|---|---|---|
1,284,100 | 009b7857df7865cd796e33f2bd7b0af0 | swh:1:cnt:aa5db761dfa56144c1dc2d5d8c74b36101607f12;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=152-201/ | 34d32173963a52a73595f0cc4929df244f9033d1 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/permessage-deflate.js | PerMessageDeflate::acceptAsServer | function | /**
* Accept an extension negotiation offer.
*
* @param {Array} offers The extension negotiation offers
* @return {Object} Accepted configuration
* @private
*/
acceptAsServer(offers) {
const opts = this._options;
const accepted = offers.find((params) => {
if (
(opts.serverNoCo... |
1,284,101 | c2097b97e75e245d6cb949885c9ac01a | swh:1:cnt:aa5db761dfa56144c1dc2d5d8c74b36101607f12;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=203-235/ | 34d32173963a52a73595f0cc4929df244f9033d1 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/permessage-deflate.js | PerMessageDeflate::acceptAsClient | function | /**
* Accept the extension negotiation response.
*
* @param {Array} response The extension negotiation response
* @return {Object} Accepted configuration
* @private
*/
acceptAsClient(response) {
const params = response[0];
if (
this._options.clientNoContextTakeover === false &&
... |
1,284,102 | 4fabea3a721055a51421f6ae2cb86edf | swh:1:cnt:aa5db761dfa56144c1dc2d5d8c74b36101607f12;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=237-295/ | 34d32173963a52a73595f0cc4929df244f9033d1 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/permessage-deflate.js | PerMessageDeflate::normalizeParams | function | /**
* Normalize parameters.
*
* @param {Array} configurations The extension negotiation offers/reponse
* @return {Array} The offers/response with normalized parameters
* @private
*/
normalizeParams(configurations) {
configurations.forEach((params) => {
Object.keys(params).forEach((key) => ... |
1,284,103 | 23781ec2f81efefe82d5413344b4571e | swh:1:cnt:aa5db761dfa56144c1dc2d5d8c74b36101607f12;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=297-312/ | 34d32173963a52a73595f0cc4929df244f9033d1 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/permessage-deflate.js | PerMessageDeflate::decompress | function | /**
* Decompress data. Concurrency limited.
*
* @param {Buffer} data Compressed data
* @param {Boolean} fin Specifies whether or not this is the last fragment
* @param {Function} callback Callback
* @public
*/
decompress(data, fin, callback) {
zlibLimiter.add((done) => {
this._decompres... |
1,284,104 | d88485d142f743a6415bedff269c16fd | swh:1:cnt:aa5db761dfa56144c1dc2d5d8c74b36101607f12;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=314-329/ | 34d32173963a52a73595f0cc4929df244f9033d1 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/permessage-deflate.js | PerMessageDeflate::compress | function | /**
* Compress data. Concurrency limited.
*
* @param {(Buffer|String)} data Data to compress
* @param {Boolean} fin Specifies whether or not this is the last fragment
* @param {Function} callback Callback
* @public
*/
compress(data, fin, callback) {
zlibLimiter.add((done) => {
this._com... |
1,284,105 | de72554df255a7cc0d40964d7ffa7a1d | swh:1:cnt:aa5db761dfa56144c1dc2d5d8c74b36101607f12;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=331-394/ | 34d32173963a52a73595f0cc4929df244f9033d1 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/permessage-deflate.js | PerMessageDeflate::_decompress | function | /**
* Decompress data.
*
* @param {Buffer} data Compressed data
* @param {Boolean} fin Specifies whether or not this is the last fragment
* @param {Function} callback Callback
* @private
*/
_decompress(data, fin, callback) {
const endpoint = this._isServer ? 'client' : 'server';
if (!thi... |
1,284,106 | 8b6f2a36e9229e49966909e4182c1dca | swh:1:cnt:aa5db761dfa56144c1dc2d5d8c74b36101607f12;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=465-474/ | 34d32173963a52a73595f0cc4929df244f9033d1 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/permessage-deflate.js | deflateOnData | function | /**
* The listener of the `zlib.DeflateRaw` stream `'data'` event.
*
* @param {Buffer} chunk A chunk of data
* @private
*/
function deflateOnData(chunk) {
this[kBuffers].push(chunk);
this[kTotalLength] += chunk.length;
} |
1,284,107 | c80e90772297e08e1ea53b43821b360d | swh:1:cnt:aa5db761dfa56144c1dc2d5d8c74b36101607f12;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=396-460/ | 34d32173963a52a73595f0cc4929df244f9033d1 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/permessage-deflate.js | PerMessageDeflate::_compress | function | /**
* Compress data.
*
* @param {(Buffer|String)} data Data to compress
* @param {Boolean} fin Specifies whether or not this is the last fragment
* @param {Function} callback Callback
* @private
*/
_compress(data, fin, callback) {
const endpoint = this._isServer ? 'server' : 'client';
if... |
1,284,108 | 9e37c10793643579750dbe17b7acb0b5 | swh:1:cnt:aa5db761dfa56144c1dc2d5d8c74b36101607f12;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=508-528/ | 34d32173963a52a73595f0cc4929df244f9033d1 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/permessage-deflate.js | inflateOnError | function | /**
* The listener of the `zlib.InflateRaw` stream `'error'` event.
*
* @param {Error} err The emitted error
* @private
*/
function inflateOnError(err) {
//
// There is no need to call `Zlib#close()` as the handle is automatically
// closed when an error is emitted.
//
this[kPerMessageDeflate]._inflate =... |
1,284,109 | 3820dd120f89ee5d7060c30955255fa7 | swh:1:cnt:aa5db761dfa56144c1dc2d5d8c74b36101607f12;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=476-506/ | 34d32173963a52a73595f0cc4929df244f9033d1 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/permessage-deflate.js | inflateOnData | function | /**
* The listener of the `zlib.InflateRaw` stream `'data'` event.
*
* @param {Buffer} chunk A chunk of data
* @private
*/
function inflateOnData(chunk) {
this[kTotalLength] += chunk.length;
if (
this[kPerMessageDeflate]._maxPayload < 1 ||
this[kTotalLength] <= this[kPerMessageDeflate]._maxPayload
)... |
1,284,110 | 14b787dc7d7f89aed7144d9584cce4af | swh:1:cnt:54d9b4fadb47f697d35a42cebedd2a2851b85689;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=25-704/ | a259b393f034518eea086b4fb5a194aa9bc43f8c | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/receiver.js | Receiver | type | /**
* HyBi Receiver implementation.
*
* @extends Writable
*/
class Receiver extends Writable {
/**
* Creates a Receiver instance.
*
* @param {Object} [options] Options object
* @param {Boolean} [options.allowSynchronousEvents=true] Specifies whether
* any of the `'message'`, `'ping'`, and `'pon... |
1,284,111 | 322abbdc51eae66327f0447322050351 | swh:1:cnt:54d9b4fadb47f697d35a42cebedd2a2851b85689;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=31-79/ | a259b393f034518eea086b4fb5a194aa9bc43f8c | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/receiver.js | Receiver::constructor | function | /**
* Creates a Receiver instance.
*
* @param {Object} [options] Options object
* @param {Boolean} [options.allowSynchronousEvents=true] Specifies whether
* any of the `'message'`, `'ping'`, and `'pong'` events can be emitted
* multiple times in the same tick
* @param {String} [options.bina... |
1,284,112 | 78e866e449d04b84c3e7bb3cd2f8de01 | swh:1:cnt:54d9b4fadb47f697d35a42cebedd2a2851b85689;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=179-355/ | a259b393f034518eea086b4fb5a194aa9bc43f8c | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/receiver.js | Receiver::getInfo | function | /**
* Reads the first two bytes of a frame.
*
* @param {Function} cb Callback
* @private
*/
getInfo(cb) {
if (this._bufferedBytes < 2) {
this._loop = false;
return;
}
const buf = this.consume(2);
if ((buf[0] & 0x30) !== 0x00) {
const error = this.createError(
... |
1,284,113 | cfc42ab3ad68ed6c8aef488679bb8093 | swh:1:cnt:54d9b4fadb47f697d35a42cebedd2a2851b85689;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=81-95/ | a259b393f034518eea086b4fb5a194aa9bc43f8c | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/receiver.js | Receiver::_write | function | /**
* Implements `Writable.prototype._write()`.
*
* @param {Buffer} chunk The chunk of data to write
* @param {String} encoding The character encoding of `chunk`
* @param {Function} cb Callback
* @private
*/
_write(chunk, encoding, cb) {
if (this._opcode === 0x08 && this._state == GET_INFO) r... |
1,284,114 | df64012dd8d2b7ee756e02a1f29efd1e | swh:1:cnt:54d9b4fadb47f697d35a42cebedd2a2851b85689;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=143-177/ | a259b393f034518eea086b4fb5a194aa9bc43f8c | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/receiver.js | Receiver::startLoop | function | /**
* Starts the parsing loop.
*
* @param {Function} cb Callback
* @private
*/
startLoop(cb) {
this._loop = true;
do {
switch (this._state) {
case GET_INFO:
this.getInfo(cb);
break;
case GET_PAYLOAD_LENGTH_16:
this.getPayloadLength16(cb);
... |
1,284,115 | 79ca1d39e27607bfac68b1ebd22b3fe3 | swh:1:cnt:54d9b4fadb47f697d35a42cebedd2a2851b85689;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=97-141/ | a259b393f034518eea086b4fb5a194aa9bc43f8c | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/receiver.js | Receiver::consume | function | /**
* Consumes `n` bytes from the buffered data.
*
* @param {Number} n The number of bytes to consume
* @return {Buffer} The consumed bytes
* @private
*/
consume(n) {
this._bufferedBytes -= n;
if (n === this._buffers[0].length) return this._buffers.shift();
if (n < this._buffers[0].len... |
1,284,116 | 1c335383979464c402834272275b04fe | swh:1:cnt:54d9b4fadb47f697d35a42cebedd2a2851b85689;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=357-371/ | a259b393f034518eea086b4fb5a194aa9bc43f8c | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/receiver.js | Receiver::getPayloadLength16 | function | /**
* Gets extended payload length (7+16).
*
* @param {Function} cb Callback
* @private
*/
getPayloadLength16(cb) {
if (this._bufferedBytes < 2) {
this._loop = false;
return;
}
this._payloadLength = this.consume(2).readUInt16BE(0);
this.haveLength(cb);
} |
1,284,117 | ae0be55ba7b8768137b17c36c447f006 | swh:1:cnt:54d9b4fadb47f697d35a42cebedd2a2851b85689;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=373-407/ | a259b393f034518eea086b4fb5a194aa9bc43f8c | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/receiver.js | Receiver::getPayloadLength64 | function | /**
* Gets extended payload length (7+64).
*
* @param {Function} cb Callback
* @private
*/
getPayloadLength64(cb) {
if (this._bufferedBytes < 8) {
this._loop = false;
return;
}
const buf = this.consume(8);
const num = buf.readUInt32BE(0);
//
// The maximum safe int... |
1,284,118 | 11c91be821553caa40780497261dfc42 | swh:1:cnt:54d9b4fadb47f697d35a42cebedd2a2851b85689;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=409-434/ | a259b393f034518eea086b4fb5a194aa9bc43f8c | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/receiver.js | Receiver::haveLength | function | /**
* Payload length has been read.
*
* @param {Function} cb Callback
* @private
*/
haveLength(cb) {
if (this._payloadLength && this._opcode < 0x08) {
this._totalPayloadLength += this._payloadLength;
if (this._totalPayloadLength > this._maxPayload && this._maxPayload > 0) {
cons... |
1,284,119 | 1f4e4e54ae459bdfd48954c4099b6a6b | swh:1:cnt:54d9b4fadb47f697d35a42cebedd2a2851b85689;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=436-449/ | a259b393f034518eea086b4fb5a194aa9bc43f8c | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/receiver.js | Receiver::getMask | function | /**
* Reads mask bytes.
*
* @private
*/
getMask() {
if (this._bufferedBytes < 4) {
this._loop = false;
return;
}
this._mask = this.consume(4);
this._state = GET_DATA;
} |
1,284,120 | 7b18d60e529f283c38bf6c1b164e159b | swh:1:cnt:54d9b4fadb47f697d35a42cebedd2a2851b85689;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=451-497/ | a259b393f034518eea086b4fb5a194aa9bc43f8c | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/receiver.js | Receiver::getData | function | /**
* Reads data bytes.
*
* @param {Function} cb Callback
* @private
*/
getData(cb) {
let data = EMPTY_BUFFER;
if (this._payloadLength) {
if (this._bufferedBytes < this._payloadLength) {
this._loop = false;
return;
}
data = this.consume(this._payloadLength);
... |
1,284,121 | 073903a447aef39aba992d7aa09c9078 | swh:1:cnt:54d9b4fadb47f697d35a42cebedd2a2851b85689;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=679-703/ | a259b393f034518eea086b4fb5a194aa9bc43f8c | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/receiver.js | Receiver::createError | function | /**
* Builds an error object.
*
* @param {function(new:Error|RangeError)} ErrorCtor The error constructor
* @param {String} message The error message
* @param {Boolean} prefix Specifies whether or not to add a default prefix to
* `message`
* @param {Number} statusCode The status code
* @para... |
1,284,122 | f3d88fb1cab82055ad3e6b5455f27c0b | swh:1:cnt:54d9b4fadb47f697d35a42cebedd2a2851b85689;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=499-533/ | a259b393f034518eea086b4fb5a194aa9bc43f8c | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/receiver.js | Receiver::decompress | function | /**
* Decompresses data.
*
* @param {Buffer} data Compressed data
* @param {Function} cb Callback
* @private
*/
decompress(data, cb) {
const perMessageDeflate = this._extensions[PerMessageDeflate.extensionName];
perMessageDeflate.decompress(data, this._fin, (err, buf) => {
if (err) re... |
1,284,123 | 1adf1d2e4b24b06826dce8161b8a23f0 | swh:1:cnt:54d9b4fadb47f697d35a42cebedd2a2851b85689;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=535-607/ | a259b393f034518eea086b4fb5a194aa9bc43f8c | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/receiver.js | Receiver::dataMessage | function | /**
* Handles a data message.
*
* @param {Function} cb Callback
* @private
*/
dataMessage(cb) {
if (!this._fin) {
this._state = GET_INFO;
return;
}
const messageLength = this._messageLength;
const fragments = this._fragments;
this._totalPayloadLength = 0;
this._mes... |
1,284,124 | ab90e6cc35c1fc6b0ce7d75a52d6b31c | swh:1:cnt:54d9b4fadb47f697d35a42cebedd2a2851b85689;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=609-677/ | a259b393f034518eea086b4fb5a194aa9bc43f8c | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/receiver.js | Receiver::controlMessage | function | /**
* Handles a control message.
*
* @param {Buffer} data Data to handle
* @return {(Error|RangeError|undefined)} A possible error
* @private
*/
controlMessage(data, cb) {
if (this._opcode === 0x08) {
if (data.length === 0) {
this._loop = false;
this.emit('conclude', 1005, ... |
1,284,125 | b64864e8b58601c075e1df06433ae5cb | swh:1:cnt:a8b1da3a997767186e4cc29a6d34f42a2c54e3d9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=23-568/ | 702dfabf4ec836ca7f663fbe7d659b230d51c672 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/sender.js | Sender | type | /**
* HyBi Sender implementation.
*/
class Sender {
/**
* Creates a Sender instance.
*
* @param {Duplex} socket The connection socket
* @param {Object} [extensions] An object containing the negotiated extensions
* @param {Function} [generateMask] The function used to generate the masking
* key... |
1,284,126 | 29683877ccd043cea6c56a3298477f7c | swh:1:cnt:a8b1da3a997767186e4cc29a6d34f42a2c54e3d9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=27-53/ | 702dfabf4ec836ca7f663fbe7d659b230d51c672 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/sender.js | Sender::constructor | function | /**
* Creates a Sender instance.
*
* @param {Duplex} socket The connection socket
* @param {Object} [extensions] An object containing the negotiated extensions
* @param {Function} [generateMask] The function used to generate the masking
* key
*/
constructor(socket, extensions, generateMask) {... |
1,284,127 | 55d3b9ffef5a9cb4285ac3b14f84434a | swh:1:cnt:a8b1da3a997767186e4cc29a6d34f42a2c54e3d9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=226-276/ | 702dfabf4ec836ca7f663fbe7d659b230d51c672 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/sender.js | Sender::ping | function | /**
* Sends a ping message to the other peer.
*
* @param {*} data The message to send
* @param {Boolean} [mask=false] Specifies whether or not to mask `data`
* @param {Function} [cb] Callback
* @public
*/
ping(data, mask, cb) {
let byteLength;
let readOnly;
if (typeof data === 'strin... |
1,284,128 | 30332814773c39479947a689747c31bb | swh:1:cnt:a8b1da3a997767186e4cc29a6d34f42a2c54e3d9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=278-328/ | 702dfabf4ec836ca7f663fbe7d659b230d51c672 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/sender.js | Sender::pong | function | /**
* Sends a pong message to the other peer.
*
* @param {*} data The message to send
* @param {Boolean} [mask=false] Specifies whether or not to mask `data`
* @param {Function} [cb] Callback
* @public
*/
pong(data, mask, cb) {
let byteLength;
let readOnly;
if (typeof data === 'strin... |
1,284,129 | c0eaad1f47f35620a754d090add14922 | swh:1:cnt:a8b1da3a997767186e4cc29a6d34f42a2c54e3d9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=172-224/ | 702dfabf4ec836ca7f663fbe7d659b230d51c672 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/sender.js | Sender::close | function | /**
* Sends a close message to the other peer.
*
* @param {Number} [code] The status code component of the body
* @param {(String|Buffer)} [data] The message component of the body
* @param {Boolean} [mask=false] Specifies whether or not to mask the message
* @param {Function} [cb] Callback
* @publi... |
1,284,130 | 0426de88d72d1635f2d223e01a74c3d2 | swh:1:cnt:a8b1da3a997767186e4cc29a6d34f42a2c54e3d9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=55-170/ | 702dfabf4ec836ca7f663fbe7d659b230d51c672 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/sender.js | Sender::frame | function | /**
* Frames a piece of data according to the HyBi WebSocket protocol.
*
* @param {(Buffer|String)} data The data to frame
* @param {Object} options Options object
* @param {Boolean} [options.fin=false] Specifies whether or not to set the
* FIN bit
* @param {Function} [options.generateMask] The... |
1,284,131 | 78caf79f060a754735ec20efab909005 | swh:1:cnt:a8b1da3a997767186e4cc29a6d34f42a2c54e3d9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=330-409/ | 702dfabf4ec836ca7f663fbe7d659b230d51c672 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/sender.js | Sender::send | function | /**
* Sends a data message to the other peer.
*
* @param {*} data The message to send
* @param {Object} options Options object
* @param {Boolean} [options.binary=false] Specifies whether `data` is binary
* or text
* @param {Boolean} [options.compress=false] Specifies whether or not to
* ... |
1,284,132 | 7c76af8575ddf12b10f7346e8b1175d6 | swh:1:cnt:a8b1da3a997767186e4cc29a6d34f42a2c54e3d9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=411-473/ | 702dfabf4ec836ca7f663fbe7d659b230d51c672 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/sender.js | Sender::getBlobData | function | /**
* Gets the contents of a blob as binary data.
*
* @param {Blob} blob The blob
* @param {Boolean} [compress=false] Specifies whether or not to compress
* the data
* @param {Object} options Options object
* @param {Boolean} [options.fin=false] Specifies whether or not to set the
* FIN ... |
1,284,133 | ca4d0b90f382c703b148ab9d0d102b13 | swh:1:cnt:a8b1da3a997767186e4cc29a6d34f42a2c54e3d9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=475-524/ | 702dfabf4ec836ca7f663fbe7d659b230d51c672 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/sender.js | Sender::dispatch | function | /**
* Dispatches a message.
*
* @param {(Buffer|String)} data The message to send
* @param {Boolean} [compress=false] Specifies whether or not to compress
* `data`
* @param {Object} options Options object
* @param {Boolean} [options.fin=false] Specifies whether or not to set the
* FIN bi... |
1,284,134 | c7fe20b8fbbc07432808dbcfde1239bd | swh:1:cnt:a8b1da3a997767186e4cc29a6d34f42a2c54e3d9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=526-538/ | 702dfabf4ec836ca7f663fbe7d659b230d51c672 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/sender.js | Sender::dequeue | function | /**
* Executes queued send operations.
*
* @private
*/
dequeue() {
while (this._state === DEFAULT && this._queue.length) {
const params = this._queue.shift();
this._bufferedBytes -= params[3][kByteLength];
Reflect.apply(params[0], this, params.slice(1));
}
} |
1,284,135 | 59f8e5dc47c37e558b53e49689f8e50a | swh:1:cnt:a8b1da3a997767186e4cc29a6d34f42a2c54e3d9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=540-549/ | 702dfabf4ec836ca7f663fbe7d659b230d51c672 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/sender.js | Sender::enqueue | function | /**
* Enqueues a send operation.
*
* @param {Array} params Send operation parameters.
* @private
*/
enqueue(params) {
this._bufferedBytes += params[3][kByteLength];
this._queue.push(params);
} |
1,284,136 | 79327c52e52cbbfe1f92c99915db4a37 | swh:1:cnt:a8b1da3a997767186e4cc29a6d34f42a2c54e3d9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=551-567/ | 702dfabf4ec836ca7f663fbe7d659b230d51c672 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/sender.js | Sender::sendFrame | function | /**
* Sends a frame.
*
* @param {(Buffer | String)[]} list The frame to send
* @param {Function} [cb] Callback
* @private
*/
sendFrame(list, cb) {
if (list.length === 2) {
this._socket.cork();
this._socket.write(list[0]);
this._socket.write(list[1], cb);
this._socket.unco... |
1,284,137 | 2c65e042ad17b6b1bc012bc3c81ff75f | swh:1:cnt:a8b1da3a997767186e4cc29a6d34f42a2c54e3d9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=591-602/ | 702dfabf4ec836ca7f663fbe7d659b230d51c672 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/sender.js | onError | function | /**
* Handles a `Sender` error.
*
* @param {Sender} sender The `Sender` instance
* @param {Error} err The error
* @param {Function} [cb] The first pending callback
* @private
*/
function onError(sender, err, cb) {
callCallbacks(sender, err, cb);
sender.onerror(err);
} |
1,284,138 | 8ea27282c6931bda7dc2029de6af912d | swh:1:cnt:a8b1da3a997767186e4cc29a6d34f42a2c54e3d9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=572-589/ | 702dfabf4ec836ca7f663fbe7d659b230d51c672 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/sender.js | callCallbacks | function | /**
* Calls queued callbacks with an error.
*
* @param {Sender} sender The `Sender` instance
* @param {Error} err The error to call the callbacks with
* @param {Function} [cb] The first callback
* @private
*/
function callCallbacks(sender, err, cb) {
if (typeof cb === 'function') cb(err);
for (let i = 0; i ... |
1,284,139 | 6194ae1d95372c1d8dff60098e1121f2 | swh:1:cnt:4c58c911bc3da49c9b2610da77ff61b71f111810;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=7-15/ | 05eb38a17da8070823b13249039fa97ccfd2308f | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/stream.js | emitClose | function | /**
* Emits the `'close'` event on a stream.
*
* @param {Duplex} stream The stream.
* @private
*/
function emitClose(stream) {
stream.emit('close');
} |
1,284,140 | 83b45c374546389aefa531e136595979 | swh:1:cnt:4c58c911bc3da49c9b2610da77ff61b71f111810;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=17-26/ | 05eb38a17da8070823b13249039fa97ccfd2308f | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/stream.js | duplexOnEnd | function | /**
* The listener of the `'end'` event.
*
* @private
*/
function duplexOnEnd() {
if (!this.destroyed && this._writableState.finished) {
this.destroy();
}
} |
1,284,141 | 8807945e24d33aefd368217188c92d40 | swh:1:cnt:4c58c911bc3da49c9b2610da77ff61b71f111810;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=43-159/ | 05eb38a17da8070823b13249039fa97ccfd2308f | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/stream.js | createWebSocketStream | function | /**
* Wraps a `WebSocket` in a duplex stream.
*
* @param {WebSocket} ws The `WebSocket` to wrap
* @param {Object} [options] The options for the `Duplex` constructor
* @return {Duplex} The duplex stream
* @public
*/
function createWebSocketStream(ws, options) {
let terminateOnDestroy = true;
const duplex = n... |
1,284,142 | 780f861416461ebced101ca2add2a734 | swh:1:cnt:4c58c911bc3da49c9b2610da77ff61b71f111810;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=28-41/ | 05eb38a17da8070823b13249039fa97ccfd2308f | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/stream.js | duplexOnError | function | /**
* The listener of the `'error'` event.
*
* @param {Error} err The error
* @private
*/
function duplexOnError(err) {
this.removeListener('error', duplexOnError);
this.destroy();
if (this.listenerCount('error') === 0) {
// Do not suppress the throwing behavior.
this.emit('error', err);
}
} |
1,284,143 | f38e1217d7bef3fe6c92774ab5a1668e | swh:1:cnt:d4381e8864fd055e81dd75eeb4b852d9da864673;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=5-60/ | 26280e7b5766c02a9373ce061437ec29a308296d | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/subprotocol.js | parse | function | /**
* Parses the `Sec-WebSocket-Protocol` header into a set of subprotocol names.
*
* @param {String} header The field value of the header
* @return {Set} The subprotocol names
* @public
*/
function parse(header) {
const protocols = new Set();
let start = -1;
let end = -1;
let i = 0;
for (i; i < header... |
1,284,144 | 826f00a7d4c9c3ae9bf4ae3874ebd9ec | swh:1:cnt:4a2e68d5127279431a74b6961e8d35161d3276e2;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=30-46/ | 36e6fb93d90966a433f8fddde445fadc632fb8e1 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/validation.js | isValidStatusCode | function | /**
* Checks if a status code is allowed in a close frame.
*
* @param {Number} code The status code
* @return {Boolean} `true` if the status code is valid, else `false`
* @public
*/
function isValidStatusCode(code) {
return (
(code >= 1000 &&
code <= 1014 &&
code !== 1004 &&
code !== 1005 ... |
1,284,145 | 510c473572e91592f997fb1ab2a2880d | swh:1:cnt:4a2e68d5127279431a74b6961e8d35161d3276e2;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=112-129/ | 36e6fb93d90966a433f8fddde445fadc632fb8e1 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/validation.js | isBlob | function | /**
* Determines whether a value is a `Blob`.
*
* @param {*} value The value to be tested
* @return {Boolean} `true` if `value` is a `Blob`, else `false`
* @private
*/
function isBlob(value) {
return (
hasBlob &&
typeof value === 'object' &&
typeof value.arrayBuffer === 'function' &&
typeof valu... |
1,284,146 | 5b22059da3e5f7863dcbc1fc2666dd0c | swh:1:cnt:4a2e68d5127279431a74b6961e8d35161d3276e2;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=48-110/ | 36e6fb93d90966a433f8fddde445fadc632fb8e1 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/validation.js | _isValidUTF8 | function | /**
* Checks if a given buffer contains only correct UTF-8.
* Ported from https://www.cl.cam.ac.uk/%7Emgk25/ucs/utf8_check.c by
* Markus Kuhn.
*
* @param {Buffer} buf The buffer to check
* @return {Boolean} `true` if `buf` contains only correct UTF-8, else `false`
* @public
*/
function _isValidUTF8(buf) {
con... |
1,284,147 | 867eb10b581d6e09c69d811d3a655411 | swh:1:cnt:68aa7897d5b5ca2cb272f066e6cd9486c78a460f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=22-444/ | d341300c754b2365a4e3669bd00dd40337c2b9ff | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket-server.js | WebSocketServer | type | /**
* Class representing a WebSocket server.
*
* @extends EventEmitter
*/
class WebSocketServer extends EventEmitter {
/**
* Create a `WebSocketServer` instance.
*
* @param {Object} options Configuration options
* @param {Boolean} [options.allowSynchronousEvents=true] Specifies whether
* any of... |
1,284,148 | 6e6583259bf0740156d8a153643028c5 | swh:1:cnt:68aa7897d5b5ca2cb272f066e6cd9486c78a460f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=28-136/ | d341300c754b2365a4e3669bd00dd40337c2b9ff | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket-server.js | WebSocketServer::constructor | function | /**
* Create a `WebSocketServer` instance.
*
* @param {Object} options Configuration options
* @param {Boolean} [options.allowSynchronousEvents=true] Specifies whether
* any of the `'message'`, `'ping'`, and `'pong'` events can be emitted
* multiple times in the same tick
* @param {Boolean}... |
1,284,149 | e8f20aaf62c18acd080f927231e24280 | swh:1:cnt:68aa7897d5b5ca2cb272f066e6cd9486c78a460f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=138-154/ | d341300c754b2365a4e3669bd00dd40337c2b9ff | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket-server.js | WebSocketServer::address | function | /**
* Returns the bound address, the address family name, and port of the server
* as reported by the operating system if listening on an IP socket.
* If the server is listening on a pipe or UNIX domain socket, the name is
* returned as a string.
*
* @return {(Object|String|null)} The address of the s... |
1,284,150 | 2c39028c744424ea7820773b69d89226 | swh:1:cnt:68aa7897d5b5ca2cb272f066e6cd9486c78a460f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=156-209/ | d341300c754b2365a4e3669bd00dd40337c2b9ff | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket-server.js | WebSocketServer::close | function | /**
* Stop the server from accepting new connections and emit the `'close'` event
* when all existing connections are closed.
*
* @param {Function} [cb] A one-time listener for the `'close'` event
* @public
*/
close(cb) {
if (this._state === CLOSED) {
if (cb) {
this.once('close', (... |
1,284,151 | 80e69842868a96a5840e7dea77d8404c | swh:1:cnt:68aa7897d5b5ca2cb272f066e6cd9486c78a460f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=229-351/ | d341300c754b2365a4e3669bd00dd40337c2b9ff | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket-server.js | WebSocketServer::handleUpgrade | function | /**
* Handle a HTTP Upgrade request.
*
* @param {http.IncomingMessage} req The request object
* @param {Duplex} socket The network socket between the server and client
* @param {Buffer} head The first packet of the upgraded stream
* @param {Function} cb Callback
* @public
*/
handleUpgrade(req,... |
1,284,152 | c60dde2c4867470b2bef49c670df5a55 | swh:1:cnt:68aa7897d5b5ca2cb272f066e6cd9486c78a460f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=211-227/ | d341300c754b2365a4e3669bd00dd40337c2b9ff | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket-server.js | WebSocketServer::shouldHandle | function | /**
* See if a given request should be handled by this server instance.
*
* @param {http.IncomingMessage} req Request object to inspect
* @return {Boolean} `true` if the request is valid, else `false`
* @public
*/
shouldHandle(req) {
if (this.options.path) {
const index = req.url.indexOf('... |
1,284,153 | ef66c1382788c5acaf8aa150846867ec | swh:1:cnt:68aa7897d5b5ca2cb272f066e6cd9486c78a460f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=353-443/ | d341300c754b2365a4e3669bd00dd40337c2b9ff | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket-server.js | WebSocketServer::completeUpgrade | function | /**
* Upgrade the connection to WebSocket.
*
* @param {Object} extensions The accepted extensions
* @param {String} key The value of the `Sec-WebSocket-Key` header
* @param {Set} protocols The subprotocols
* @param {http.IncomingMessage} req The request object
* @param {Duplex} socket The network s... |
1,284,154 | a855651963ebe3e6bba07058be13f55e | swh:1:cnt:68aa7897d5b5ca2cb272f066e6cd9486c78a460f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=448-466/ | d341300c754b2365a4e3669bd00dd40337c2b9ff | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket-server.js | addListeners | function | /**
* Add event listeners on an `EventEmitter` using a map of <event, listener>
* pairs.
*
* @param {EventEmitter} server The event emitter
* @param {Object.<String, Function>} map The listeners to add
* @return {Function} A function that will remove the added listeners when
* called
* @private
*/
function... |
1,284,155 | d2058806e142549d27216038597ab3fc | swh:1:cnt:68aa7897d5b5ca2cb272f066e6cd9486c78a460f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=468-477/ | d341300c754b2365a4e3669bd00dd40337c2b9ff | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket-server.js | emitClose | function | /**
* Emit a `'close'` event on an `EventEmitter`.
*
* @param {EventEmitter} server The event emitter
* @private
*/
function emitClose(server) {
server._state = CLOSED;
server.emit('close');
} |
1,284,156 | 3bb33f6df76362e7b3acd107d9efe82c | swh:1:cnt:68aa7897d5b5ca2cb272f066e6cd9486c78a460f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=479-486/ | d341300c754b2365a4e3669bd00dd40337c2b9ff | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket-server.js | socketOnError | function | /**
* Handle socket errors.
*
* @private
*/
function socketOnError() {
this.destroy();
} |
1,284,157 | a90d0dbaae5c5ddd555853fee7d011a3 | swh:1:cnt:68aa7897d5b5ca2cb272f066e6cd9486c78a460f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=488-524/ | d341300c754b2365a4e3669bd00dd40337c2b9ff | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket-server.js | abortHandshake | function | /**
* Close the connection when preconditions are not fulfilled.
*
* @param {Duplex} socket The socket of the upgrade request
* @param {Number} code The HTTP response status code
* @param {String} [message] The HTTP response body
* @param {Object} [headers] Additional HTTP response headers
* @private
*/
functio... |
1,284,158 | 74bbe472e104f1923603ad4eea56e06f | swh:1:cnt:68aa7897d5b5ca2cb272f066e6cd9486c78a460f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=526-554/ | d341300c754b2365a4e3669bd00dd40337c2b9ff | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket-server.js | abortHandshakeOrEmitwsClientError | function | /**
* Emit a `'wsClientError'` event on a `WebSocketServer` if there is at least
* one listener for it, otherwise call `abortHandshake()`.
*
* @param {WebSocketServer} server The WebSocket server
* @param {http.IncomingMessage} req The request object
* @param {Duplex} socket The socket of the upgrade request
* @... |
1,284,159 | a734fd85ccce3ef5dfd852e41c719659 | swh:1:cnt:75d5bb2831a2e5d61ecdedb9a76e2e5a68be21af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=41-499/ | 9178abed68b7c36876543b7250a3fb211a4985a0 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket.js | WebSocket | type | /**
* Class representing a WebSocket.
*
* @extends EventEmitter
*/
class WebSocket extends EventEmitter {
/**
* Create a new `WebSocket`.
*
* @param {(String|URL)} address The URL to which to connect
* @param {(String|String[])} [protocols] The subprotocols
* @param {Object} [options] Connection op... |
1,284,160 | 648d94495e1277cf7bd07b578e196c5d | swh:1:cnt:75d5bb2831a2e5d61ecdedb9a76e2e5a68be21af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=47-94/ | 9178abed68b7c36876543b7250a3fb211a4985a0 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket.js | WebSocket::constructor | function | /**
* Create a new `WebSocket`.
*
* @param {(String|URL)} address The URL to which to connect
* @param {(String|String[])} [protocols] The subprotocols
* @param {Object} [options] Connection options
*/
constructor(address, protocols, options) {
super();
this._binaryType = BINARY_TYPES[0];
... |
1,284,161 | e95f87705f9e011df0382711ddab85ec | swh:1:cnt:75d5bb2831a2e5d61ecdedb9a76e2e5a68be21af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=106-115/ | 9178abed68b7c36876543b7250a3fb211a4985a0 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket.js | WebSocket::binaryType | function | set binaryType(type) {
if (!BINARY_TYPES.includes(type)) return;
this._binaryType = type;
//
// Allow to change `binaryType` on the fly.
//
if (this._receiver) this._receiver._binaryType = type;
} |
1,284,162 | e8763421c899731306b67bb08e6414a9 | swh:1:cnt:75d5bb2831a2e5d61ecdedb9a76e2e5a68be21af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=186-191/ | 9178abed68b7c36876543b7250a3fb211a4985a0 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket.js | WebSocket::url | function | /**
* @type {String}
*/
get url() {
return this._url;
} |
1,284,163 | 02fd373a28de09e1594a54b7d35f5869 | swh:1:cnt:75d5bb2831a2e5d61ecdedb9a76e2e5a68be21af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1062-1077/ | 9178abed68b7c36876543b7250a3fb211a4985a0 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket.js | tlsConnect | function | /**
* Create a `tls.TLSSocket` and initiate a connection.
*
* @param {Object} options Connection options
* @return {tls.TLSSocket} The newly created socket used to start the connection
* @private
*/
function tlsConnect(options) {
options.path = undefined;
if (!options.servername && options.servername !== '')... |
1,284,164 | 208e53b791035161be0a3e23340b7f4f | swh:1:cnt:75d5bb2831a2e5d61ecdedb9a76e2e5a68be21af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1217-1226/ | 9178abed68b7c36876543b7250a3fb211a4985a0 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket.js | receiverOnMessage | function | /**
* The listener of the `Receiver` `'message'` event.
*
* @param {Buffer|ArrayBuffer|Buffer[])} data The message
* @param {Boolean} isBinary Specifies whether the message is binary or not
* @private
*/
function receiverOnMessage(data, isBinary) {
this[kWebSocket].emit('message', data, isBinary);
} |
1,284,165 | 546c0d4bc82e1e2cc2b70fd545d52539 | swh:1:cnt:75d5bb2831a2e5d61ecdedb9a76e2e5a68be21af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1241-1249/ | 9178abed68b7c36876543b7250a3fb211a4985a0 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket.js | receiverOnPong | function | /**
* The listener of the `Receiver` `'pong'` event.
*
* @param {Buffer} data The data included in the pong frame
* @private
*/
function receiverOnPong(data) {
this[kWebSocket].emit('pong', data);
} |
1,284,166 | 61d8ffdb8afcb596b34a4e5895235fad | swh:1:cnt:75d5bb2831a2e5d61ecdedb9a76e2e5a68be21af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1378-1393/ | 9178abed68b7c36876543b7250a3fb211a4985a0 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket.js | socketOnError | function | /**
* The listener of the socket `'error'` event.
*
* @private
*/
function socketOnError() {
const websocket = this[kWebSocket];
this.removeListener('error', socketOnError);
this.on('error', NOOP);
if (websocket) {
websocket._readyState = WebSocket.CLOSING;
this.destroy();
}
} |
1,284,167 | 3d2a897bc75dd5a9c49a2288b26bc3dd | swh:1:cnt:75d5bb2831a2e5d61ecdedb9a76e2e5a68be21af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=592-598/ | 9178abed68b7c36876543b7250a3fb211a4985a0 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket.js | get | function | get() {
for (const listener of this.listeners(method)) {
if (listener[kForOnEventAttribute]) return listener[kListener];
}
return null;
} |
1,284,168 | 350fcdc4c520a02abf0f13ad0c051425 | swh:1:cnt:75d5bb2831a2e5d61ecdedb9a76e2e5a68be21af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1228-1239/ | 9178abed68b7c36876543b7250a3fb211a4985a0 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket.js | receiverOnPing | function | /**
* The listener of the `Receiver` `'ping'` event.
*
* @param {Buffer} data The data included in the ping frame
* @private
*/
function receiverOnPing(data) {
const websocket = this[kWebSocket];
if (websocket._autoPong) websocket.pong(data, !this._isServer, NOOP);
websocket.emit('ping', data);
} |
1,284,169 | 9543a492b1617a8cdbafbe6a7d6c1b41 | swh:1:cnt:75d5bb2831a2e5d61ecdedb9a76e2e5a68be21af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1251-1259/ | 9178abed68b7c36876543b7250a3fb211a4985a0 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket.js | resume | function | /**
* Resume a readable stream
*
* @param {Readable} stream The readable stream
* @private
*/
function resume(stream) {
stream.resume();
} |
1,284,170 | 28607405c377f20758ac5269ae110db6 | swh:1:cnt:75d5bb2831a2e5d61ecdedb9a76e2e5a68be21af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=117-124/ | 9178abed68b7c36876543b7250a3fb211a4985a0 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket.js | WebSocket::bufferedAmount | function | /**
* @type {Number}
*/
get bufferedAmount() {
if (!this._socket) return this._bufferedAmount;
return this._socket._writableState.length + this._sender._bufferedBytes;
} |
1,284,171 | 909b6f00ed1fa2afeba57c0455d90be6 | swh:1:cnt:75d5bb2831a2e5d61ecdedb9a76e2e5a68be21af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=148-154/ | 9178abed68b7c36876543b7250a3fb211a4985a0 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket.js | WebSocket::onerror | function | /**
* @type {Function}
*/
/* istanbul ignore next */
get onerror() {
return null;
} |
1,284,172 | 230271397be0b9022a32328c68ac56f5 | swh:1:cnt:75d5bb2831a2e5d61ecdedb9a76e2e5a68be21af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=156-162/ | 9178abed68b7c36876543b7250a3fb211a4985a0 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket.js | WebSocket::onopen | function | /**
* @type {Function}
*/
/* istanbul ignore next */
get onopen() {
return null;
} |
1,284,173 | 777497e46323cd32fc453d2417f01437 | swh:1:cnt:75d5bb2831a2e5d61ecdedb9a76e2e5a68be21af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=336-351/ | 9178abed68b7c36876543b7250a3fb211a4985a0 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket.js | WebSocket::pause | function | /**
* Pause the socket.
*
* @public
*/
pause() {
if (
this.readyState === WebSocket.CONNECTING ||
this.readyState === WebSocket.CLOSED
) {
return;
}
this._paused = true;
this._socket.pause();
} |
1,284,174 | 25ceafe3bf0c9dc5fbf4be1714a25ce7 | swh:1:cnt:75d5bb2831a2e5d61ecdedb9a76e2e5a68be21af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=255-274/ | 9178abed68b7c36876543b7250a3fb211a4985a0 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket.js | WebSocket::emitClose | function | /**
* Emit the `'close'` event.
*
* @private
*/
emitClose() {
if (!this._socket) {
this._readyState = WebSocket.CLOSED;
this.emit('close', this._closeCode, this._closeMessage);
return;
}
if (this._extensions[PerMessageDeflate.extensionName]) {
this._extensions[PerMessa... |
1,284,175 | e617e969d6f923e820d9c05b840fc431 | swh:1:cnt:75d5bb2831a2e5d61ecdedb9a76e2e5a68be21af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=385-415/ | 9178abed68b7c36876543b7250a3fb211a4985a0 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket.js | WebSocket::pong | function | /**
* Send a pong.
*
* @param {*} [data] The data to send
* @param {Boolean} [mask] Indicates whether or not to mask `data`
* @param {Function} [cb] Callback which is executed when the pong is sent
* @public
*/
pong(data, mask, cb) {
if (this.readyState === WebSocket.CONNECTING) {
throw... |
1,284,176 | c9325e7c4c6fdcce1004b86606692c6e | swh:1:cnt:75d5bb2831a2e5d61ecdedb9a76e2e5a68be21af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=172-177/ | 9178abed68b7c36876543b7250a3fb211a4985a0 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket.js | WebSocket::protocol | function | /**
* @type {String}
*/
get protocol() {
return this._protocol;
} |
1,284,177 | ecce61d66d08adf586862cec8e9beb74 | swh:1:cnt:75d5bb2831a2e5d61ecdedb9a76e2e5a68be21af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=193-253/ | 9178abed68b7c36876543b7250a3fb211a4985a0 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket.js | WebSocket::setSocket | function | /**
* Set up the socket and the internal resources.
*
* @param {Duplex} socket The network socket between the server and client
* @param {Buffer} head The first packet of the upgraded stream
* @param {Object} options Options object
* @param {Boolean} [options.allowSynchronousEvents=false] Specifies wh... |
1,284,178 | 4307b66b69b66c5f82b99d2d1f27551e | swh:1:cnt:75d5bb2831a2e5d61ecdedb9a76e2e5a68be21af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1079-1113/ | 9178abed68b7c36876543b7250a3fb211a4985a0 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket.js | abortHandshake | function | /**
* Abort the handshake and emit an error.
*
* @param {WebSocket} websocket The WebSocket instance
* @param {(http.ClientRequest|net.Socket|tls.Socket)} stream The request to
* abort or the socket to destroy
* @param {String} message The error message
* @private
*/
function abortHandshake(websocket, strea... |
1,284,179 | b7a09495f1a39906f9b9ee0c6f70ea5e | swh:1:cnt:75d5bb2831a2e5d61ecdedb9a76e2e5a68be21af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1170-1179/ | 9178abed68b7c36876543b7250a3fb211a4985a0 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket.js | receiverOnDrain | function | /**
* The listener of the `Receiver` `'drain'` event.
*
* @private
*/
function receiverOnDrain() {
const websocket = this[kWebSocket];
if (!websocket.isPaused) websocket._socket.resume();
} |
1,284,180 | 2d43c8c58aa18cca72781a04d4457c57 | swh:1:cnt:75d5bb2831a2e5d61ecdedb9a76e2e5a68be21af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1353-1363/ | 9178abed68b7c36876543b7250a3fb211a4985a0 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket.js | socketOnData | function | /**
* The listener of the socket `'data'` event.
*
* @param {Buffer} chunk A chunk of data
* @private
*/
function socketOnData(chunk) {
if (!this[kWebSocket]._receiver.write(chunk)) {
this.pause();
}
} |
1,284,181 | 96aeda5a6e6bf33b34972813f13b761c | swh:1:cnt:75d5bb2831a2e5d61ecdedb9a76e2e5a68be21af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=133-138/ | 9178abed68b7c36876543b7250a3fb211a4985a0 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket.js | WebSocket::isPaused | function | /**
* @type {Boolean}
*/
get isPaused() {
return this._paused;
} |
1,284,182 | fcd1ab79de716b0d7eb5321c27dac9a5 | swh:1:cnt:75d5bb2831a2e5d61ecdedb9a76e2e5a68be21af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=140-146/ | 9178abed68b7c36876543b7250a3fb211a4985a0 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket.js | WebSocket::onclose | function | /**
* @type {Function}
*/
/* istanbul ignore next */
get onclose() {
return null;
} |
1,284,183 | 983364ca79113534dc2272723610bdf5 | swh:1:cnt:75d5bb2831a2e5d61ecdedb9a76e2e5a68be21af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=179-184/ | 9178abed68b7c36876543b7250a3fb211a4985a0 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket.js | WebSocket::readyState | function | /**
* @type {Number}
*/
get readyState() {
return this._readyState;
} |
1,284,184 | f1c8f2656fd19f41d612d547ac8f2dae | swh:1:cnt:75d5bb2831a2e5d61ecdedb9a76e2e5a68be21af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=353-383/ | 9178abed68b7c36876543b7250a3fb211a4985a0 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket.js | WebSocket::ping | function | /**
* Send a ping.
*
* @param {*} [data] The data to send
* @param {Boolean} [mask] Indicates whether or not to mask `data`
* @param {Function} [cb] Callback which is executed when the ping is sent
* @public
*/
ping(data, mask, cb) {
if (this.readyState === WebSocket.CONNECTING) {
throw... |
1,284,185 | 7c2cd32e53a37d468d3ec61f0b13bc82 | swh:1:cnt:75d5bb2831a2e5d61ecdedb9a76e2e5a68be21af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=481-498/ | 9178abed68b7c36876543b7250a3fb211a4985a0 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket.js | WebSocket::terminate | function | /**
* Forcibly close the connection.
*
* @public
*/
terminate() {
if (this.readyState === WebSocket.CLOSED) return;
if (this.readyState === WebSocket.CONNECTING) {
const msg = 'WebSocket was closed before the connection was established';
abortHandshake(this, this._req, msg);
retu... |
1,284,186 | c6b77edd0d89fd481f091cafa2a0d8af | swh:1:cnt:75d5bb2831a2e5d61ecdedb9a76e2e5a68be21af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1032-1048/ | 9178abed68b7c36876543b7250a3fb211a4985a0 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket.js | emitErrorAndClose | function | /**
* Emit the `'error'` and `'close'` events.
*
* @param {WebSocket} websocket The WebSocket instance
* @param {Error} The error to emit
* @private
*/
function emitErrorAndClose(websocket, err) {
websocket._readyState = WebSocket.CLOSING;
//
// The following assignment is practically useless and is done on... |
1,284,187 | 43dab393fa0a7681425b7a01147bcf27 | swh:1:cnt:75d5bb2831a2e5d61ecdedb9a76e2e5a68be21af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1050-1060/ | 9178abed68b7c36876543b7250a3fb211a4985a0 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket.js | netConnect | function | /**
* Create a `net.Socket` and initiate a connection.
*
* @param {Object} options Connection options
* @return {net.Socket} The newly created socket used to start the connection
* @private
*/
function netConnect(options) {
options.path = options.socketPath;
return net.connect(options);
} |
1,284,188 | 803e3bd17eed6e1ffeade6350f5cf35b | swh:1:cnt:75d5bb2831a2e5d61ecdedb9a76e2e5a68be21af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1147-1168/ | 9178abed68b7c36876543b7250a3fb211a4985a0 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket.js | receiverOnConclude | function | /**
* The listener of the `Receiver` `'conclude'` event.
*
* @param {Number} code The status code
* @param {Buffer} reason The reason for closing
* @private
*/
function receiverOnConclude(code, reason) {
const websocket = this[kWebSocket];
websocket._closeFrameReceived = true;
websocket._closeMessage = rea... |
1,284,189 | 7220f033a45d4f6ba15e9989cbb10a4e | swh:1:cnt:75d5bb2831a2e5d61ecdedb9a76e2e5a68be21af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=599-612/ | 9178abed68b7c36876543b7250a3fb211a4985a0 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket.js | set | function | set(handler) {
for (const listener of this.listeners(method)) {
if (listener[kForOnEventAttribute]) {
this.removeListener(method, listener);
break;
}
}
if (typeof handler !== 'function') return;
this.addEventListener(method, handler, {
[kForOnEventAt... |
1,284,190 | 34c8da513ac38b21ac3bbe4008178f20 | swh:1:cnt:75d5bb2831a2e5d61ecdedb9a76e2e5a68be21af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1208-1215/ | 9178abed68b7c36876543b7250a3fb211a4985a0 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket.js | receiverOnFinish | function | /**
* The listener of the `Receiver` `'finish'` event.
*
* @private
*/
function receiverOnFinish() {
this[kWebSocket].emitClose();
} |
1,284,191 | c100c3132b42d221437d35c3b3ffc380 | swh:1:cnt:75d5bb2831a2e5d61ecdedb9a76e2e5a68be21af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=126-131/ | 9178abed68b7c36876543b7250a3fb211a4985a0 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket.js | WebSocket::extensions | function | /**
* @type {String}
*/
get extensions() {
return Object.keys(this._extensions).join();
} |
1,284,192 | 99af8dceee34652e12f8d6265902398c | swh:1:cnt:75d5bb2831a2e5d61ecdedb9a76e2e5a68be21af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=164-170/ | 9178abed68b7c36876543b7250a3fb211a4985a0 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket.js | WebSocket::onmessage | function | /**
* @type {Function}
*/
/* istanbul ignore next */
get onmessage() {
return null;
} |
1,284,193 | 1857706fb112d731c217eea5bf622840 | swh:1:cnt:75d5bb2831a2e5d61ecdedb9a76e2e5a68be21af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=276-334/ | 9178abed68b7c36876543b7250a3fb211a4985a0 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket.js | WebSocket::close | function | /**
* Start a closing handshake.
*
* +----------+ +-----------+ +----------+
* - - -|ws.close()|-->|close frame|-->|ws.close()|- - -
* | +----------+ +-----------+ +----------+ |
* +----------+ +-----------+ |
* CLOSING |ws.close()|<--|close frame... |
1,284,194 | 99c833a0219344db8fa19e6b4352d4cb | swh:1:cnt:75d5bb2831a2e5d61ecdedb9a76e2e5a68be21af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=417-432/ | 9178abed68b7c36876543b7250a3fb211a4985a0 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket.js | WebSocket::resume | function | /**
* Resume the socket.
*
* @public
*/
resume() {
if (
this.readyState === WebSocket.CONNECTING ||
this.readyState === WebSocket.CLOSED
) {
return;
}
this._paused = false;
if (!this._receiver._writableState.needDrain) this._socket.resume();
} |
1,284,195 | 8fea4f09cf76e9b330986cdcbd5791a5 | swh:1:cnt:75d5bb2831a2e5d61ecdedb9a76e2e5a68be21af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=434-479/ | 9178abed68b7c36876543b7250a3fb211a4985a0 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket.js | WebSocket::send | function | /**
* Send a data message.
*
* @param {*} data The message to send
* @param {Object} [options] Options object
* @param {Boolean} [options.binary] Specifies whether `data` is binary or
* text
* @param {Boolean} [options.compress] Specifies whether or not to compress
* `data`
* @param {... |
1,284,196 | 1e085a04c6c9febdb40e28e32eee6cef | swh:1:cnt:75d5bb2831a2e5d61ecdedb9a76e2e5a68be21af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=621-1030/ | 9178abed68b7c36876543b7250a3fb211a4985a0 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket.js | initAsClient | function | /**
* Initialize a WebSocket client.
*
* @param {WebSocket} websocket The client to initialize
* @param {(String|URL)} address The URL to which to connect
* @param {Array} protocols The subprotocols
* @param {Object} [options] Connection options
* @param {Boolean} [options.allowSynchronousEvents=true] Specifies ... |
1,284,197 | 974e63ae128371051c53648bcc9a3984 | swh:1:cnt:75d5bb2831a2e5d61ecdedb9a76e2e5a68be21af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1115-1145/ | 9178abed68b7c36876543b7250a3fb211a4985a0 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket.js | sendAfterClose | function | /**
* Handle cases where the `ping()`, `pong()`, or `send()` methods are called
* when the `readyState` attribute is `CLOSING` or `CLOSED`.
*
* @param {WebSocket} websocket The WebSocket instance
* @param {*} [data] The data to send
* @param {Function} [cb] Callback
* @private
*/
function sendAfterClose(websock... |
1,284,198 | bd46496c0d8725d462ccb6a227a6ee6b | swh:1:cnt:75d5bb2831a2e5d61ecdedb9a76e2e5a68be21af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1289-1300/ | 9178abed68b7c36876543b7250a3fb211a4985a0 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket.js | setCloseTimer | function | /**
* Set a timer to destroy the underlying raw socket of a WebSocket.
*
* @param {WebSocket} websocket The WebSocket instance
* @private
*/
function setCloseTimer(websocket) {
websocket._closeTimer = setTimeout(
websocket._socket.destroy.bind(websocket._socket),
websocket._closeTimeout
);
} |
1,284,199 | b22d26894aa5e9f65df0c957beadc3f7 | swh:1:cnt:75d5bb2831a2e5d61ecdedb9a76e2e5a68be21af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1302-1351/ | 9178abed68b7c36876543b7250a3fb211a4985a0 | wlbdashboard | wmcs | node_modules/webpack-dev-server/node_modules/ws/lib/websocket.js | socketOnClose | function | /**
* The listener of the socket `'close'` event.
*
* @private
*/
function socketOnClose() {
const websocket = this[kWebSocket];
this.removeListener('close', socketOnClose);
this.removeListener('data', socketOnData);
this.removeListener('end', socketOnEnd);
websocket._readyState = WebSocket.CLOSING;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.