0f2d4db89845b9fe748bb8df19c166ebc937c930,sbin/db_mgmt_json.py,CVEDownloads,download_site,#CVEDownloads#Any#,285

Before Change


            filename = os.path.join(wd, url.split("/")[-1][:-3])
            // print("Saving file to: {}".format(filename))
            buf = BytesIO(response.content)
            with open(filename, "wb") as f:
                f.write(gzip.GzipFile(fileobj=buf).read())

            self.stream_json(filename=filename)

After Change


                                                    vulnerable_version["cpe23Uri"],
                                                )
                                        else:
                                            cve = add_if_missing(
                                                cve,
                                                "vulnerable_product",
                                                cpeuri["cpe23Uri"],
                                            )
                                            cve = add_if_missing(
                                                cve,
                                                "vulnerable_configuration",
                                                cpeuri["cpe23Uri"],
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: cve-search/cve-search
Commit Name: 0f2d4db89845b9fe748bb8df19c166ebc937c930
Time: 2020-08-11
Author: paul.tikken@gmail.com
File Name: sbin/db_mgmt_json.py
Class Name: CVEDownloads
Method Name: download_site


Project Name: comic/grand-challenge.org
Commit Name: b96135c218065188be9dfe1fea1dff76b6f66e4f
Time: 2019-02-26
Author: code@jmsmkn.com
File Name: app/grandchallenge/container_exec/tasks.py
Class Name:
Method Name: validate_docker_image_async


Project Name: developmentseed/label-maker
Commit Name: f4d4d575203f952dd003a6b2398cd01e02669fc1
Time: 2018-02-25
Author: drew@developmentseed.org
File Name: label_maker/images.py
Class Name:
Method Name: download_images