<commit_before>"use strict";

const Constants = require("../Constants");
const Events = Constants.Events;
const Utils = require("../core/Utils");

const GUILD_STREAMING_TIMEOUT = 1000;

function emitReady(gw) {
  const ready = this._pendingReady;
  const timedOut = Array.from(this._streamingGuilds);

  if (!this._pendingReady) return;
  this._pendingReady = null;
  this._streamingGuilds.clear();

  if (gw.isPrimary) {
    this._discordie.Dispatcher.emit(Events.GATEWAY_READY, {
      socket: gw,
      data: ready
    });
  }
  this._discordie.Dispatcher.emit(Events.ANY_GATEWAY_READY, {
    socket: gw,
    data: ready
  });<commit_msg>Bump streaming guild timeout to 3 seconds<commit_after>"use strict";

const Constants = require("../Constants");
const Events = Constants.Events;
const Utils = require("../core/Utils");

const GUILD_STREAMING_TIMEOUT = 3000;

function emitReady(gw) {
  const ready = this._pendingReady;
  const timedOut = Array.from(this._streamingGuilds);

  if (!this._pendingReady) return;
  this._pendingReady = null;
  this._streamingGuilds.clear();

  if (gw.isPrimary) {
    this._discordie.Dispatcher.emit(Events.GATEWAY_READY, {
      socket: gw,
      data: ready
    });
  }
  this._discordie.Dispatcher.emit(Events.ANY_GATEWAY_READY, {
    socket: gw,
    data: ready
  });
{'fraction_non_alphanumeric': 0.13129770992366413, 'fraction_numerical': 0.006870229007633588, 'mean_word_length': 3.9847908745247147, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '244208', 'n_tokens_mistral': 462, 'n_tokens_neox': 445, 'n_words': 86}