511dd8aa75f9148415c8f9efc91257c62e503e2e,api/python/quilt3/packages.py,Package,set,#Package#Any#Any#Any#Any#Any#,863
Before Change
serialization_format_opts = {}
serialized_object_bytes, new_meta = format_handlers[0].serialize(entry, meta=None, ext=ext,
**serialization_format_opts)
if serialization_location:
serialization_path = pathlib.Path(serialization_location).expanduser().absolute()
serialization_path.parent.mkdir(exist_ok=True, parents=True)
else:
suffix = f".{ext}" if ext else None
tmpfile = tempfile.NamedTemporaryFile(delete=False, suffix=suffix)
serialization_path = tmpfile.name
write_url = fix_url(f"file://{serialization_path}")
put_bytes(serialized_object_bytes, write_url, meta=new_meta)
size, _, _ = get_size_and_meta(write_url)
entry = PackageEntry([write_url], size, hash_obj=None, meta=new_meta)
After Change
**serialization_format_opts)
if serialization_location is None:
serialization_location = APP_DIR_TEMPFILE_DIR / str(uuid.uuid4())
if ext:
serialization_location = serialization_location.with_suffix(f".{ext}")
serialization_path = pathlib.Path(serialization_location).expanduser().absolute()
serialization_path.parent.mkdir(exist_ok=True, parents=True)
write_url = fix_url(f"file://{serialization_path}")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: quiltdata/quilt
Commit Name: 511dd8aa75f9148415c8f9efc91257c62e503e2e
Time: 2019-10-09
Author: armandmcqueen@users.noreply.github.com
File Name: api/python/quilt3/packages.py
Class Name: Package
Method Name: set
Project Name: pfnet/optuna
Commit Name: dac1135635661f39b66432f702047abc704585d1
Time: 2018-06-24
Author: sano@preferred.jp
File Name: examples/chainermn_mnist.py
Class Name:
Method Name:
Project Name: GRAAL-Research/pytoune
Commit Name: d03443dda7f4782e845819de1a45a6699c41899f
Time: 2020-11-14
Author: fredy_14@live.fr
File Name: poutyne/framework/callbacks/_utils.py
Class Name:
Method Name: atomic_lambda_save