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

Before Change



            // print("Read {} from {}".format(len(response.content), url))
            wd = tempfile.mkdtemp()
            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)

    def stream_json(self, filename):

After Change


                                            cve = add_if_missing(
                                                cve,
                                                "vulnerable_configuration",
                                                cpeuri["cpe23Uri"],
                                            )
                                else:
                                    // If the cpe_match did not have any of the version start/end modifiers,
                                    // add the CPE string as it is.
                                    cve = add_if_missing(
                                        cve, "vulnerable_product", cpeuri["cpe23Uri"]
                                    )
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

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: floydhub/dockerfiles
Commit Name: 40a882d47b80ca9c8743510320288477445a14a2
Time: 2017-05-14
Author: dave2008713@gmail.com
File Name: floydker/src/floydker/render.py
Class Name:
Method Name: render_matrix


Project Name: facebook/FAI-PEP
Commit Name: 184719bf2f01c441208fe972c2a2dc2c43726d98
Time: 2019-10-08
Author: asankaran@fb.com
File Name: benchmarking/run_remote.py
Class Name: RunRemote
Method Name: _updateArgs