<commit_before>package ircbot

import (
	"fmt"
	"strings"
)

type ActionFunc func(b *IrcBot, m *IrcMsg)

type Actioner interface {
	Command() []string
	Usage() string
	Do(b *IrcBot, m *IrcMsg)
}

//Pong sends a pong response to ping
type Pong struct{}

func (p *Pong) Command() []string {
	return []string{"PONG"}
}

func (p *Pong) Usage() string {
	return "pong answer to ping request"
}

func (p *Pong) Do(b *IrcBot, m *IrcMsg) {
	s := fmt.Sprintf("PONG %s", strings.Join(m.Args, " "))
	fmt.Println("irc >> ", s)
	b.writer.PrintfLine(s)
}

// func Pong(b *IrcBot, m *IrcMsg) {<commit_msg>the command received is PING not PONG<commit_after>package ircbot

import (
	"fmt"
	"strings"
)

type ActionFunc func(b *IrcBot, m *IrcMsg)

type Actioner interface {
	Command() []string
	Usage() string
	Do(b *IrcBot, m *IrcMsg)
}

//Pong sends a pong response to ping
type Pong struct{}

func (p *Pong) Command() []string {
	return []string{"PING"}
}

func (p *Pong) Usage() string {
	return "pong answer to ping request"
}

func (p *Pong) Do(b *IrcBot, m *IrcMsg) {
	s := fmt.Sprintf("PONG %s", strings.Join(m.Args, " "))
	fmt.Println("irc >> ", s)
	b.writer.PrintfLine(s)
}

// func Pong(b *IrcBot, m *IrcMsg) {
{'fraction_non_alphanumeric': 0.16777408637873753, 'fraction_numerical': 0.0, 'mean_word_length': 4.171673819742489, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '6387512', 'n_tokens_mistral': 507, 'n_tokens_neox': 499, 'n_words': 144}