d36e7ac67679e078575b44320deac06d9121f920,doudizhu/apps/game/components/simple.py,RobotPlayer,_write_message,#RobotPlayer#Any#,32

Before Change


            IOLoop.current().add_callback(self.to_server, [Pt.REQ_READY, 1])
        elif code == Pt.RSP_DEAL_POKER:
            if self.uid == packet[1]:
                IOLoop.current().add_callback(self.auto_call_score)
        elif code == Pt.RSP_CALL_SCORE:
            if self.room.turn_player == self:
                landlord = packet[1]["landlord"]
                if landlord == -1:

After Change


        if code == Pt.RSP_JOIN_ROOM:
            self.auto_ready()
        elif code == Pt.RSP_DEAL_POKER:
            if self.uid == packet[1]["uid"]:
                self.auto_call_score()
        elif code == Pt.RSP_CALL_SCORE:
            if self.room.turn_player == self:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: mailgyc/doudizhu
Commit Name: d36e7ac67679e078575b44320deac06d9121f920
Time: 2020-02-20
Author: 4143964+mailgyc@users.noreply.github.com
File Name: doudizhu/apps/game/components/simple.py
Class Name: RobotPlayer
Method Name: _write_message


Project Name: descarteslabs/descarteslabs-python
Commit Name: 706386b8e8356c9624743bb0ca58487ccfddbd54
Time: 2019-12-27
Author: jaap@descarteslabs.com
File Name: descarteslabs/catalog/tests/test_product.py
Class Name: TestProduct
Method Name: test_update_related_acls_with_single_value


Project Name: mailgyc/doudizhu
Commit Name: 03ea8f393c39169ad368a8fed61e1daf0037b333
Time: 2020-02-19
Author: 4143964+mailgyc@users.noreply.github.com
File Name: doudizhu/apps/game/components/simple.py
Class Name: RobotPlayer
Method Name: _write_message