0d66931e6da93fda1c07388e6a2ed16d9a129040,src/syft/core/store/store_memory.py,MemoryStore,get_objects_of_type,#MemoryStore#Any#,33
Before Change
self.post_init()
def get_objects_of_type(self, obj_type: type) -> Set[AbstractStorableObject]:
results = set()
for key, obj in self._objects.items():
if isinstance(obj.data, obj_type):
results.add(obj)
After Change
self.post_init()
def get_objects_of_type(self, obj_type: type) -> Set[AbstractStorableObject]:
return {obj for obj in self.values() if isinstance(obj.data, obj_type)}
@syft_decorator(typechecking=True)
def __sizeof__(self) -> int:
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: OpenMined/PySyft
Commit Name: 0d66931e6da93fda1c07388e6a2ed16d9a129040
Time: 2020-08-29
Author: jason.paumier@gmail.com
File Name: src/syft/core/store/store_memory.py
Class Name: MemoryStore
Method Name: get_objects_of_type
Project Name: dask/distributed
Commit Name: dcb46d07318282d8a8976aadb0e4003144a42ae7
Time: 2020-10-15
Author: gforsyth@users.noreply.github.com
File Name: distributed/tests/test_failed_workers.py
Class Name:
Method Name: test_worker_who_has_clears_after_failed_connection
Project Name: pantsbuild/pants
Commit Name: 40c214aa1c044a02b5290aa3ec7cc9570dbe24ad
Time: 2016-11-06
Author: stuhood@gmail.com
File Name: src/python/pants/engine/rules.py
Class Name: GraphMaker
Method Name: full_graph
Project Name: Theano/Theano
Commit Name: 6ec43120736e7fdeb010727e391fcd362cddf028
Time: 2017-03-14
Author: nouiz@nouiz.org
File Name: theano/scan_module/scan_op.py
Class Name:
Method Name: profile_printer