<commit_before>
ChatServiceError = require './ChatServiceError'
Promise = require 'bluebird'
_ = require 'lodash'

# Transport public API interface. An instance of {Transport}
# implementation is available as a member of {ChatService} instance.
class Transport

  # Sends a message to a channel (each room has a channel with the
  # same name). This messages are sent directly, bypassing room
  # history and permissions.
  #
  # @param channel [String] A channel.
  # @param messageName [String] Message name.
  # @param messageData [Array] Message data.
  #
  # @return [null]
  emitToChannel : (channel, messageName, messageData...) ->

  # Sends a message to a channel (each room has a channel with the
  # same name), excluding the sender socket. This messages are sent
  # directly, bypassing room history and permissions.
  #
  # @param id [String] Sender socket id.
  # @param channel [String] A channel.
  # @param messageName [String] Message name.
  # @param messageData [Array] Message data.
  #
  # @return [null]
  sendToChannel : (id, channel, messageName, messageData...) ->

  # Get an underlying connection object by id.
  #
  # @param id [String] Socket id.
  #
  # @return [Object or null] Connection object corresponding to the
  #   socket id. Returns `null` if the connection was closed.
  getConnectionObject : (id) ->


module.exports = Transport<commit_msg>Transport docs rest naming fix.<commit_after>
ChatServiceError = require './ChatServiceError'
Promise = require 'bluebird'
_ = require 'lodash'

# Transport public API interface. An instance of {Transport}
# implementation is available as a member of {ChatService} instance.
class Transport

  # Sends a message to a channel (each room has a channel with the
  # same name). This messages are sent directly, bypassing room
  # history and permissions.
  #
  # @param channel [String] A channel.
  # @param messageName [String] Message name.
  # @param messageData [Rest...] Message data.
  #
  # @return [null]
  emitToChannel : (channel, messageName, messageData...) ->

  # Sends a message to a channel (each room has a channel with the
  # same name), excluding the sender socket. This messages are sent
  # directly, bypassing room history and permissions.
  #
  # @param id [String] Sender socket id.
  # @param channel [String] A channel.
  # @param messageName [String] Message name.
  # @param messageData [Rest...] Message data.
  #
  # @return [null]
  sendToChannel : (id, channel, messageName, messageData...) ->

  # Get an underlying connection object by id.
  #
  # @param id [String] Socket id.
  #
  # @return [Object or null] Connection object corresponding to the
  #   socket id. Returns `null` if the connection was closed.
  getConnectionObject : (id) ->


module.exports = Transport
{'fraction_non_alphanumeric': 0.09720229555236728, 'fraction_numerical': 0.0, 'mean_word_length': 3.632890365448505, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '471403', 'n_tokens_mistral': 791, 'n_tokens_neox': 770, 'n_words': 333}