d1d0d8e9bc94a080952209dd53a800be2813ac97,slips/core/database.py,Database,setInfoForIPs,#Database#Any#Any#,908

Before Change


        // Get the previous info already stored
        data = self.getIPData(ip)
        if not data:
            data = {}
        // Append the new data
        data.update(ipdata)
        data = json.dumps(data)
        //self.print("Storing info for IP {}: {}".format(ip, ipdata),1,0)

After Change


        // Get the previous info already stored
        data = self.getIPData(ip)

        key = next(iter(ipdata))
        to_store = ipdata[key]

        // If the key is already stored, do not modify it
        try:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: stratosphereips/StratosphereLinuxIPS
Commit Name: d1d0d8e9bc94a080952209dd53a800be2813ac97
Time: 2019-04-07
Author: eldraco@gmail.com
File Name: slips/core/database.py
Class Name: Database
Method Name: setInfoForIPs


Project Name: bokeh/bokeh
Commit Name: c5f5379ed741c2e4484dc4b76903f50cc8cf124c
Time: 2015-12-10
Author: hp@pobox.com
File Name: bokeh/tests/test_client_server.py
Class Name: TestClientServer
Method Name: test_server_session_periodic_async


Project Name: bokeh/bokeh
Commit Name: c5f5379ed741c2e4484dc4b76903f50cc8cf124c
Time: 2015-12-10
Author: hp@pobox.com
File Name: bokeh/tests/test_client_server.py
Class Name: TestClientServer
Method Name: test_server_session_timeout_async