5715aa342524b61bbf5460d7c673235fe707e28a,profilerProcess.py,ProfilerProcess,add_flow_to_profile,#ProfilerProcess#Any#,261

Before Change


        __database__.addProfile(profilename, starttime)
        // Crate two fake tw
        __database__.addNewTW(profilename, "timewindow1", starttime, self.width)
        __database__.addNewTW(profilename, "timewindow2", time.mktime(datetime.strptime("2015-07-26T10:12:53.784566", "%Y-%m-%dT%H:%M:%S.%f").timetuple()), self.width)

        // 2. Get all previous info inside this profile, such as the width of the time window, etc.
        profileJSON = __database__.getProfileData(profilename)

After Change


        self.outputqueue.put("5|profiler|Received flow")
        // Get data
        saddr = columns["saddr"]
        daddr = columns["daddr"]
        profileid = "profile:" + str(saddr)
        starttime = time.mktime(columns["starttime"].timetuple())

        // The steps for adding a flow in a profile should be
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: stratosphereips/StratosphereLinuxIPS
Commit Name: 5715aa342524b61bbf5460d7c673235fe707e28a
Time: 2018-12-16
Author: eldraco@gmail.com
File Name: profilerProcess.py
Class Name: ProfilerProcess
Method Name: add_flow_to_profile


Project Name: nilmtk/nilmtk
Commit Name: 41a57942968c89762733f0ffdb2b918b6be79c6b
Time: 2014-01-14
Author: jack-list@xlk.org.uk
File Name: nilmtk/dataset/hes.py
Class Name:
Method Name: datetime_converter


Project Name: pfnet/optuna
Commit Name: 0c34ab098abd437e8ac385a5b284f0ef314f465a
Time: 2018-03-13
Author: sano@preferred.jp
File Name: tests/storage_tests/test_rdb.py
Class Name: TestRDBStorage
Method Name: test_get_trial