<commit_before>from twisted.internet import reactor, protocol
from twisted.words.protocols import irc


class LoggingIRCClient(irc.IRCClient):

    nickname = raw_input("Enter a nickname: ")

    def signedOn(self):
        self.join('##testbot')

    def privmsg(self, user, channel, msg):
        user = user.split('!')[0]
        if msg == '~pym':
            self.msg(channel, 'http://pymbook.readthedocs.org/en/latest/')
        if msg.strip() == u'hello ' + self.nickname:
            self.msg(channel, '{} hello!'.format(user))
<commit_msg>Adding some features<commit_after>from twisted.internet import reactor, protocol
from twisted.words.protocols import irc
import time

class LoggingIRCClient(irc.IRCClient):

    nickname = raw_input("Enter a nickname: ")

    def signedOn(self):
        self.join('##testbot')

    def privmsg(self, user, channel, msg):
        user = user.split('!')[0]
        if msg == '~pym':
            self.msg(channel, 'http://pymbook.readthedocs.org/en/latest/')
        if msg == self.nickname + ',' + ' hello':
            self.msg(channel, '{}, hello!'.format(user))
        if msg == self.nickname + ',' + ' ping':
            self.msg(channel, '{}, pong'.format(user))
        if msg == self.nickname + ',' + ' quit':
            self.quit('')
        if msg == self.nickname + ',' + ' date' or msg == 'date':
            self.msg(channel, "Current date & time " + time.strftime("%c"))

{'fraction_non_alphanumeric': 0.1663172606568833, 'fraction_numerical': 0.001397624039133473, 'mean_word_length': 2.709844559585492, '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': '1471883', 'n_tokens_mistral': 476, 'n_tokens_neox': 453, 'n_words': 99}