2b4c7bd4c85d1ce4c9eab95b422962131b2bc7bb,ch18/telegram-bot.py,PlayerBot,text,#PlayerBot#Any#Any#,136

Before Change


            return

        won = self.sessions[chat_id].move_bot()
        bot.send_message(chat_id=chat_id, text=self.sessions[chat_id].render(), parse_mode="HTML")

        if won:
            bot.send_message(chat_id=chat_id, text="I won! Wheeee!")
            del self.sessions[chat_id]

After Change


            self._save_log(session, bot_score=1)
            del self.sessions[chat_id]
        // checking for a draw
        if session.is_draw():
            bot.send_message(chat_id=chat_id, text="Draw position. That"s unlikely, but possible. 1:1, see ya!")
            self._save_log(session, bot_score=0)
            del self.sessions[chat_id]

    def error(self, bot, update, error):
        try:
            raise error
        except TimedOut:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: PacktPublishing/Deep-Reinforcement-Learning-Hands-On
Commit Name: 2b4c7bd4c85d1ce4c9eab95b422962131b2bc7bb
Time: 2018-03-13
Author: max.lapan@gmail.com
File Name: ch18/telegram-bot.py
Class Name: PlayerBot
Method Name: text


Project Name: home-assistant/home-assistant
Commit Name: d16bc632da35a31957ba3ac399dab4769591af17
Time: 2017-03-07
Author: appzer@users.noreply.github.com
File Name: homeassistant/components/notify/pushsafer.py
Class Name: PushsaferNotificationService
Method Name: send_message


Project Name: flow-project/flow
Commit Name: 3f5718f8e40fa7207c7b547f3875f0076813e2b4
Time: 2019-01-09
Author: akreidieh@gmail.com
File Name: flow/utils/aimsun/run.py
Class Name:
Method Name: threaded_client