888675a2451f0908f2eb18a07ae48a42a9f4fe0d,distributed/security.py,Security,__repr__,#Security#,86
Before Change
setattr(self, field, out)
def __repr__(self):
items = sorted((k, getattr(self, k)) for k in self.__slots__)
return (
"Security("
+ ", ".join("%s=%r" % (k, v) for k, v in items if v is not None)
+ ")"
After Change
setattr(self, field, out)
def __repr__(self):
keys = sorted(self.__slots__)
items = []
for k in keys:
val = getattr(self, k)
if val is not None:
if isinstance(val, str) and "\n" in val:
items.append((k, "..."))
else:
items.append((k, repr(val)))
return "Security(" + ", ".join("%s=%s" % (k, v) for k, v in items) + ")"
def get_tls_config_for_role(self, role):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 10
Instances
Project Name: dask/distributed
Commit Name: 888675a2451f0908f2eb18a07ae48a42a9f4fe0d
Time: 2019-10-25
Author: jcrist@users.noreply.github.com
File Name: distributed/security.py
Class Name: Security
Method Name: __repr__
Project Name: ncullen93/torchsample
Commit Name: afaf4383126b25be6ed427c0f3626ae09ae35b45
Time: 2017-04-23
Author: ncullen@Nicks-MacBook-Pro.local
File Name: torchsample/utils.py
Class Name:
Method Name: th_meshgrid
Project Name: stellargraph/stellargraph
Commit Name: 7a9c823fa3422e642e779e3ed23e4dda935ee14f
Time: 2019-12-05
Author: andrew.docherty@data61.csiro.au
File Name: scripts/format_notebooks.py
Class Name:
Method Name: