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

require 'socket'


module Vapebot
  class Connection
    attr_accessor :socket
    def initialize(config)
      @socket = TCPSocket.new(config.host, config.port.to_i)
      @stream = []
      sleep 2
      register(config.nick, config.user, config.host, config.pass)
      sleep 3
      join_channel(config.channels)
    end

    def register(nick, user, host, pass)
      @socket.puts "NICK #{nick}"
      sleep 1
      @socket.puts "USER #{nick} 8 * :#{nick}"
      sleep 1
      @socket.puts "NICKSERV IDENTIFY #{pass}"
    end

    def join_channel(channels)
      channels.each { |channel|
        puts channel
        @socket.puts "JOIN #{channel}"
        @socket.puts "PRIVMSG #{channel} :HERE!"
      }
    end

    def listen
      Thread.new {
        while line = @socket.gets.chomp
          @stream << line
          puts line
        end
      }
    end
<commit_msg>Remove unused args in register function.<commit_after>#!/usr/bin/env ruby

require 'socket'


module Vapebot
  class Connection
    attr_accessor :socket
    def initialize(config)
      @socket = TCPSocket.new(config.host, config.port.to_i)
      @stream = []
      sleep 2
      register(config.nick, config.user, config.host, config.pass)
      sleep 3
      join_channel(config.channels)
    end

    def register(nick, pass)
      @socket.puts "NICK #{nick}"
      sleep 1
      @socket.puts "USER #{nick} 8 * :#{nick}"
      sleep 1
      @socket.puts "NICKSERV IDENTIFY #{pass}"
    end

    def join_channel(channels)
      channels.each { |channel|
        puts channel
        @socket.puts "JOIN #{channel}"
        @socket.puts "PRIVMSG #{channel} :HERE!"
      }
    end

    def listen
      Thread.new {
        while line = @socket.gets.chomp
          @stream << line
          puts line
        end
      }
    end

{'fraction_non_alphanumeric': 0.10978907517577069, 'fraction_numerical': 0.005408328826392645, 'mean_word_length': 2.067993366500829, 'pattern_counts': {'":': 0, '<': 7, '<?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': '5492589', 'n_tokens_mistral': 602, 'n_tokens_neox': 589, 'n_words': 151}