<commit_before>require_relative '../../core_ext/socket_patch'
require 'ipaddr'
require 'socket'
require 'eventmachine'

class SSDP
  class Connection < EventMachine::Connection

    # Default broadcast address
    BROADCAST = '192.168.3.11'

    # Default multicast port
    MULTICAST_PORT = 1900

    # Default packet time to live (hops)
    TTL = 4

    # @return [Array] The list of responses from the current request.
    attr_reader :responses

    def initialize ttl=TTL<commit_msg>Moved BROADCAST, MULTICAST_PORT, and TTL to UPnP::Globals<commit_after>require_relative '../../core_ext/socket_patch'
require 'upnp/globals'
require 'ipaddr'
require 'socket'
require 'eventmachine'

class SSDP
  class Connection < EventMachine::Connection
    include UPnP::Globals

    # @return [Array] The list of responses from the current request.
    attr_reader :responses

    def initialize ttl=TTL
{'fraction_non_alphanumeric': 0.08715083798882682, 'fraction_numerical': 0.01564245810055866, 'mean_word_length': 4.033707865168539, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '3072837', 'n_tokens_mistral': 291, 'n_tokens_neox': 270, 'n_words': 83}