7450a07441793be2b1ef05cc48bc456f846a99c3,slips/core/database.py,Database,getSrcIPsfromProfileTW,#Database#Any#Any#,99

Before Change


        
        Get the src ip for a specific TW for a specific profileid
        
        if type(twid) == list:
            twid = twid[0].decode("utf-8") 
        return self.r.smembers(profileid + self.separator + twid + self.separator + "SrcIPs")

After Change


        //return self.r.smembers(profileid + self.separator + twid + self.separator + "SrcIPs")
        data = self.r.hget(profileid + self.separator + twid, "SrcIPs")
        if data:
            return data.decode("utf-8")
        else:
            return ""

    def getDstIPsfromProfileTW(self, profileid, twid):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: stratosphereips/StratosphereLinuxIPS
Commit Name: 7450a07441793be2b1ef05cc48bc456f846a99c3
Time: 2019-01-12
Author: eldraco@gmail.com
File Name: slips/core/database.py
Class Name: Database
Method Name: getSrcIPsfromProfileTW


Project Name: tensorflow/cleverhans
Commit Name: 701e2f54f611b767b6b279d1fa8609c26a6d9afb
Time: 2018-09-27
Author: goodfellow@google.com
File Name: cleverhans/devtools/tests/test_format.py
Class Name:
Method Name: test_format_pep8


Project Name: stratosphereips/StratosphereLinuxIPS
Commit Name: 7450a07441793be2b1ef05cc48bc456f846a99c3
Time: 2019-01-12
Author: eldraco@gmail.com
File Name: slips/core/database.py
Class Name: Database
Method Name: getDstIPsfromProfileTW