Ejemplo n.º 1
0
    def msg_no_analysis_helper(rec_list, corrected_nick, nick, conn_comp_list,conversations,today_conversation):
        for receiver in rec_list:
            if(receiver == nick):
                if(corrected_nick != nick):                                 
                    nick_receiver = ''
                    nick_receiver = util.get_nick_sen_rec(config.MAX_EXPECTED_DIFF_NICKS, nick, conn_comp_list, nick_receiver)    

                    if DAY_BY_DAY_ANALYSIS:
                        today_conversation = util.extend_conversation_list(nick_sender, nick_receiver, today_conversation)
                    else:
                        conversations = util.extend_conversation_list(nick_sender, nick_receiver, conversations)
Ejemplo n.º 2
0
    def msg_no_analysis_helper(rec_list, corrected_nick, nick, conn_comp_list,conversations,today_conversation):
        for receiver in rec_list:
            if(receiver == nick):
                if(corrected_nick != nick):                                 
                    nick_receiver = ''
                    nick_receiver = util.get_nick_sen_rec(config.MAX_EXPECTED_DIFF_NICKS, nick, conn_comp_list, nick_receiver)    

                    if DAY_BY_DAY_ANALYSIS:
                        today_conversation = util.extend_conversation_list(nick_sender, nick_receiver, today_conversation)
                    else:
                        conversations = util.extend_conversation_list(nick_sender, nick_receiver, conversations)
Ejemplo n.º 3
0
 def test_extend_conversation_list(self):
     conversations = [[0] for i in range(config.MAX_EXPECTED_DIFF_NICKS)]
     util.extend_conversation_list("krishna", "rohan", conversations)
     util.extend_conversation_list("krishna", "rohan", conversations)
     util.extend_conversation_list("rohan", "rohit", conversations)
     self.assertListEqual(conversations[0:2],
                          [[2, "krishna", "rohan"], [1, "rohan", "rohit"]])