6283bcb4db1568fe43b46972da21ac8695ca3ad4,parlai/agents/remote_agent/remote_agent.py,ParsedRemoteAgent,add_cmdline_args,#Any#,142

Before Change



    @staticmethod
    def add_cmdline_args(argparser):
        super().add_cmdline_args(argparser)
        ParsedRemoteAgent.dictionary_class().add_cmdline_args(argparser)

    @staticmethod

After Change


    @staticmethod
    def add_cmdline_args(argparser):
        RemoteAgentAgent.add_cmdline_args(argparser)
        try:
            ParsedRemoteAgent.dictionary_class().add_cmdline_args(argparser)
        except argparse.ArgumentError:
            // don"t freak out if the dictionary has already been added
            pass

    @staticmethod
    def dictionary_class():
        return DictionaryAgent
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: facebookresearch/ParlAI
Commit Name: 6283bcb4db1568fe43b46972da21ac8695ca3ad4
Time: 2017-06-29
Author: ahm@fb.com
File Name: parlai/agents/remote_agent/remote_agent.py
Class Name: ParsedRemoteAgent
Method Name: add_cmdline_args


Project Name: descarteslabs/descarteslabs-python
Commit Name: 2c76358bcdbd01b199c04893370c3b06e867cca9
Time: 2020-03-30
Author: 51922948+sdelany2@users.noreply.github.com
File Name: descarteslabs/workflows/types/array/array_.py
Class Name: Array
Method Name: _promote


Project Name: polyaxon/polyaxon
Commit Name: 50bd806d8696d082fb5388c38c4e1375857d16b9
Time: 2018-11-15
Author: mouradmourafiq@gmail.com
File Name: polyaxon/api/endpoint/base.py
Class Name: BaseEndpoint
Method Name: dispatch