<commit_before>#!/usr/bin/env ruby

require 'socket'

opts = {
  :address => "0.0.0.0",
  :port => 2478
}

connection = TCPSocket.open opts[:address], opts[:port]

# Get ID
puts "Executing command 'ID twtmore'"
connection.print "ID twtmore"
puts connection.gets

# Status
puts "Executing command 'STATUS'"
connection.print "STATUS"
puts connection.gets

# Close the connection
connection.close<commit_msg>updated examples<commit_after>#!/usr/bin/env ruby

require 'socket'

opts = {
  :address => "0.0.0.0",
  :port => 2478
}

connection = TCPSocket.open opts[:address], opts[:port]

# Get ID
connection.print "ID twtmore"
puts connection.gets

# Status
connection.print "STATUS"
puts connection.gets

# Close the connection
connection.close
{'fraction_non_alphanumeric': 0.1349527665317139, 'fraction_numerical': 0.021592442645074223, 'mean_word_length': 4.751937984496124, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '2925769', 'n_tokens_mistral': 265, 'n_tokens_neox': 256, 'n_words': 67}