<commit_before>require 'listener_socket_context'
require 'extension/ionian_interface'
require 'extension/socket_extension_interface'
require 'ionian/socket'

describe Ionian::Socket do
  
  include_context "listener socket", Ionian::Extension::Socket
  
  include_examples "ionian interface"
  include_examples "socket extension interface"
  
  
  it "can be instantiated as a TCP, UDP, Unix client socket"
  
  it "can open a TCP client as non-persistent (closes after message received)"
  
  it "can open a Unix client as non-persistent (closes after message received)"
  
  it "can open a TCP client as send-and-forget (closes after TX)"
  
  it "can open a Unix client as send-and-forget (closes after TX)"
  
end<commit_msg>Revised Ionian::Socket tests.<commit_after>require 'listener_socket_context'
require 'extension/ionian_interface'
require 'extension/socket_extension_interface'
require 'ionian/socket'

describe Ionian::Socket do
  
  include_context "listener socket", Ionian::Extension::Socket
  
  include_examples "ionian interface"
  include_examples "socket extension interface"
  
  
  it "can be instantiated as a TCP client socket"
  
  it "can be instantiated as a UDP client socket"
  
  it "can be instantiated as a Unix client socket"
  
  it "defaults to TCP if the socket type is not specified"
  
  it "defaults to persistent"
  
  it "can open a persistent TCP client (standard: stays open)"
  
  it "can open a persistent UDP client (standard: stays open)"
  
  it "can open a persistent Unix client (standard: stays open)"
  
  it "can open a non-persistent TCP client (closes after message received)"
  
  it "can open a non-persistent Unix client (closes after message received)"
  
  it "igores the non-persistent flag for UDP sockets"
  
  it "can open a send-and-forget TCP client (closes after TX)"
  
  it "can open a send-and-forget Unix client (closes after TX)"
  
  it "ignores the send-and-forget flag for UDP sockets"
  
end
{'fraction_non_alphanumeric': 0.06961382113821138, 'fraction_numerical': 0.0, 'mean_word_length': 4.061696658097686, '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': '2315194', 'n_tokens_mistral': 603, 'n_tokens_neox': 573, 'n_words': 234}