34b8eb46e5de6b760bc131e461755042716e259d,lib/matplotlib/category.py,UnitData,update,#UnitData#Any#,106
Before Change
def update(self, new_data):
// so as not to conflict with spdict
value = max(max(self.locs) + 1, 0)
self._set_seq_locs(new_data, value)
def _set_seq_locs(self, data, value):
After Change
data = [data]
unsorted_unique = OrderedDict.fromkeys(data)
for val in unsorted_unique:
if not isinstance(val, VALID_TYPES):
raise TypeError("{val!r} is not a string".format(val=val))
if val not in self._mapping:
self._mapping[val] = next(self._counter)
// Connects the convertor to matplotlib
units.registry[str] = StrCategoryConverter()
units.registry[np.str_] = StrCategoryConverter()
units.registry[six.text_type] = StrCategoryConverter()
units.registry[bytes] = StrCategoryConverter()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: matplotlib/matplotlib
Commit Name: 34b8eb46e5de6b760bc131e461755042716e259d
Time: 2018-02-07
Author: story645@gmail.com
File Name: lib/matplotlib/category.py
Class Name: UnitData
Method Name: update
Project Name: Alexander-H-Liu/End-to-end-ASR-Pytorch
Commit Name: 57cf91dbd3d6cdaa1b239320ba693a5b7bfbf02e
Time: 2019-09-25
Author: alexliu36@gmail.com
File Name: bin/train_asr.py
Class Name: Solver
Method Name: exec
Project Name: flow-project/flow
Commit Name: 560b8b450da344aff0b9d6ff9751c1230c1b07ec
Time: 2018-09-20
Author: kathyjang@gmail.com
File Name: flow/envs/green_wave_env.py
Class Name: PO_TrafficLightGridEnv
Method Name: __init__