74a277d0410b527fb20063baeedc45835ddebebc,modules/ThreatIntelligence-1/update_ip_manager.py,UpdateIPManager,update,#UpdateIPManager#Any#,143

Before Change


                    "01|ThreadIntelligence|[ThreadIntelligence] An error occured during downloading data for Threat intelligence module."
                    " Updating was aborted.")
        else:
            self.outputqueue.put("01|ThreadIntelligence|\t\t[ThreadIntelligence] Thread Intelligence module is up to date. No downloading.")

        // Save e-tag and lastUpdate to log file if they are not None.
        if self.set_e_tag:
            self.__set_log_file(self.e_tag_var, str(self.set_e_tag))

After Change



        // Check if the remote file is newer than our own
        if self.__check_if_update(update_period):
            if self.__download_malicious_ips():
                self.print("\t\tSuccessful Update of remote maliciuos IP file.", 0, 1)
                // Read the last update time from the db
                __database__.set_last_update_time_malicious_file(self.new_update_time)
            else:
                self.print("An error occured during downloading data for Threat intelligence module. Updating was aborted.", 0, 1)


        else:
            self.print("\t\tMalicious IP is up to date. No downloading.", 0, 1)

        
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: stratosphereips/StratosphereLinuxIPS
Commit Name: 74a277d0410b527fb20063baeedc45835ddebebc
Time: 2019-06-15
Author: eldraco@gmail.com
File Name: modules/ThreatIntelligence-1/update_ip_manager.py
Class Name: UpdateIPManager
Method Name: update


Project Name: stratosphereips/StratosphereLinuxIPS
Commit Name: 725ba9a972e0d73e1b3d9476604270c8fc67b5c3
Time: 2019-04-03
Author: eldraco@gmail.com
File Name: evidenceProcess.py
Class Name: EvidenceProcess
Method Name: run


Project Name: analysiscenter/batchflow
Commit Name: 7f8d2c26168f1d2282c8d1ffe8ee03839b3c2a3b
Time: 2020-08-07
Author: Tsimfer.SA@gazprom-neft.ru
File Name: batchflow/monitor.py
Class Name: ResourceMonitor
Method Name: stop


Project Name: quiltdata/quilt
Commit Name: f84d7243d70c2f8a2a7b7a4390141789fb181ceb
Time: 2017-02-22
Author: dima@gmail.com
File Name: tests/version_test.py
Class Name: VersionTestCase
Method Name: setUp


Project Name: quiltdata/quilt
Commit Name: f84d7243d70c2f8a2a7b7a4390141789fb181ceb
Time: 2017-02-22
Author: dima@gmail.com
File Name: tests/tag_test.py
Class Name: TagTestCase
Method Name: setUp