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

require './twitch_message_command'

class PingMessageCommand < TwitchMessageCommand
  def match? messageType, message
    messageParts = message.strip.split(' ', 3)
    unless messageParts[0] == 'PING'
      puts "Not a ping"
    end
    return messageParts[0] == 'PING'
  end

  def call producer, messageType, message
    puts "Sending PONG"
    messageParts = message.strip.split(' ', 2)
    responseMessage = messageParts[1]
    producer.produce "PONG #{responseMessage}", topic: 'outgoing-messages'
  end
end
<commit_msg>Update ping_message_command.rb<commit_after>#!/usr/bin/env ruby

require './twitch_message_command'

class PingMessageCommand < TwitchMessageCommand
  def match? message_type, message
    message_parts = message.strip.split(' ', 3)
    unless message_parts[0] == 'PING'
      puts "Not a ping"
    end
    return message_parts[0] == 'PING'
  end

  def call producer, message_type, message
    puts "Sending PONG"
    message_parts = message.strip.split(' ', 2)
    response_message = message_parts[1]
    producer.produce "PONG #{response_message}", topic: 'outgoing-messages'
  end
end

{'fraction_non_alphanumeric': 0.11043478260869566, 'fraction_numerical': 0.008695652173913044, 'mean_word_length': 3.982683982683983, 'pattern_counts': {'":': 0, '<': 5, '<?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': '736087', 'n_tokens_mistral': 374, 'n_tokens_neox': 362, 'n_words': 93}