b8ce0940159022a61a2709e615dade45b53f97ef,sbin/db_mgmt_ref.py,VIADownloads,file_to_queue,#VIADownloads#Any#,45

Before Change



        working_dir, filename = file_tuple

        with open(filename, "rb") as input_file:
            x = 0
            for cve in ijson.items(input_file, "cves"):
                self.queue.put(self.process_item(item=cve))
                x += 1

            self.logger.debug("Processed {} entries from file: {}".format(x, filename))

        with open(filename, "rb") as input_file:
            data = json.loads(input_file.read().decode("utf-8"))

            setColInfo("via4", "sources", data["metadata"]["sources"])

After Change


            x = 0
            for key, val in cve.items():
                entry_dict = {"id": key}
                entry_dict.update(val)
                self.process_item(item=entry_dict)
                x += 1

            self.logger.debug("Processed {} items from file: {}".format(x, filename))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 4

Instances


Project Name: cve-search/cve-search
Commit Name: b8ce0940159022a61a2709e615dade45b53f97ef
Time: 2020-08-17
Author: paul.tikken@gmail.com
File Name: sbin/db_mgmt_ref.py
Class Name: VIADownloads
Method Name: file_to_queue


Project Name: wandb/client
Commit Name: 074241c9d5fc1551b77308e43b6d9ff175414344
Time: 2020-08-05
Author: jeff@wandb.com
File Name: wandb/internal/sender.py
Class Name: SendManager
Method Name: handle_summary


Project Name: evilsocket/pwnagotchi
Commit Name: 02e6ccbd8ea2b33611993ca612688ddf45d3383e
Time: 2019-10-05
Author: evilsocket@gmail.com
File Name: sdcard/rootfs/root/pwnagotchi/scripts/pwnagotchi/plugins/default/auto-update.py
Class Name:
Method Name: on_internet_available


Project Name: okfn-brasil/serenata-de-amor
Commit Name: f799eeaec115d17693f99c6e02d3bb0eac3feaa9
Time: 2016-11-09
Author: schwendler@gmail.com
File Name: src/search_suspect_places.py
Class Name:
Method Name: write_suspicious_info


Project Name: pantsbuild/pants
Commit Name: 1c7de069b54c4fde261b0cf7d099cbd0060f73ad
Time: 2016-03-24
Author: stuhood@gmail.com
File Name: src/python/pants/source/payload_fields.py
Class Name: SourcesField
Method Name: _compute_fingerprint