b4cb0c14ebf600daa5573bc90a419eb24329eb55,api/python/quilt3/packages.py,Package,build,#Package#Any#Any#Any#,757

Before Change


            // Sanitize name.
            validate_package_name(name)

            named_path = registry_prefix + "/named_packages/" + quote(name) + "/"
            // todo: use a float to string formater instead of double casting
            hash_bytes = hash_string.encode("utf-8")
            timestamp_path = named_path + str(int(time.time()))
            latest_path = named_path + "latest"

After Change



        registry = registry.rstrip("/")
        validate_package_name(name)
        name = quote(name)

        self._fix_sha256()
        manifest = io.BytesIO()
        self.dump(manifest)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: quiltdata/quilt
Commit Name: b4cb0c14ebf600daa5573bc90a419eb24329eb55
Time: 2019-06-05
Author: aleksey@residentmar.io
File Name: api/python/quilt3/packages.py
Class Name: Package
Method Name: build


Project Name: matplotlib/matplotlib
Commit Name: a2287b17273c1227ae4cd77a96e37171428d3653
Time: 2018-05-19
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/textpath.py
Class Name: TextToPath
Method Name: _get_char_id


Project Name: quiltdata/quilt
Commit Name: b4cb0c14ebf600daa5573bc90a419eb24329eb55
Time: 2019-06-05
Author: aleksey@residentmar.io
File Name: api/python/quilt3/packages.py
Class Name: Package
Method Name: browse


Project Name: cve-search/cve-search
Commit Name: 4324dd2462e89abdc2085050f6638fed72246331
Time: 2019-09-26
Author: jan.dobos.tgep@gmail.com
File Name: lib/Config.py
Class Name: Configuration
Method Name: getMongoConnection