5b8864d1863ac0474db8b657f023341686f4b1fb,autokeras/preprocessors/encoders.py,Encoder,__init__,#Encoder#Any#,28
Before Change
def __init__(self, labels, **kwargs):
super().__init__(**kwargs)
self.labels = list(map(str, labels))
def get_config(self):
return {"labels": self.labels}
After Change
def __init__(self, labels, **kwargs):
super().__init__(**kwargs)
self.labels = [
label.decode("utf-8") if isinstance(label, bytes) else str(label)
for label in labels
]
def get_config(self):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 8
Instances
Project Name: jhfjhfj1/autokeras
Commit Name: 5b8864d1863ac0474db8b657f023341686f4b1fb
Time: 2020-09-24
Author: jhfjhfj1@gmail.com
File Name: autokeras/preprocessors/encoders.py
Class Name: Encoder
Method Name: __init__
Project Name: elbayadm/attn2d
Commit Name: 1ec5f0a0e4c667135e651206383bf4defbcee4f7
Time: 2018-06-15
Author: myleott@fb.com
File Name: fairseq/options.py
Class Name:
Method Name: parse_args_and_arch