a1a451a21fe1d606c7920206dbdc436b17824b0c,rasa/core/actions/action.py,,action_for_index,#Any#Any#Any#,77
Before Change
This method resolves the index to the actions name.
if domain.num_actions <= index or index < 0:
raise IndexError(
"Cannot access action at index {}. "
"Domain has {} actions."
"".format(index, domain.num_actions)
)
return action_for_name(domain.action_names[index], domain, action_endpoint)
After Change
index.
if domain.num_actions <= index or index < 0:
raise IndexError(
f"Cannot access action at index {index}. "
f"Domain has {domain.num_actions} actions."
)
return action_for_name(domain.action_names[index], domain, action_endpoint)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances
Project Name: RasaHQ/rasa
Commit Name: a1a451a21fe1d606c7920206dbdc436b17824b0c
Time: 2020-09-10
Author: t.wochinger@rasa.com
File Name: rasa/core/actions/action.py
Class Name:
Method Name: action_for_index
Project Name: stellargraph/stellargraph
Commit Name: 6e7be4c247f55585f25fd0d8406d86e096b645e6
Time: 2018-09-05
Author: docherty@gmail.com
File Name: stellargraph/mapper/link_mappers.py
Class Name: NodeSequence
Method Name: __getitem__
Project Name: open-mmlab/mmcv
Commit Name: b7e8d7d7fb49ae7a66fce7e6ee1f0cbaf561e7d6
Time: 2020-04-25
Author: yhcao6@gmail.com
File Name: mmcv/video/io.py
Class Name: VideoReader
Method Name: get_frame
Project Name: cornellius-gp/gpytorch
Commit Name: d71bc3c8b533c319e49cf6b347d13c48c925ea93
Time: 2019-03-18
Author: gpleiss@gmail.com
File Name: gpytorch/utils/getitem.py
Class Name:
Method Name: _compute_getitem_size