ce42587e9b57f4fe8c4c7af95e99752ed1515a2b,Orange/canvas/registry/description.py,,output_channel_from_args,#Any#,173

Before Change


def output_channel_from_args(args):
    if isinstance(args, tuple):
        return OutputSignal(*args)
    elif isinstance(args, dict):
        return OutputSignal(**args)
    elif isinstance(args, OutputSignal):
        return args
    else:
        raise TypeError("tuple, dict or OutputSignal expected "
                        "(got {0!r})".format(type(args)))


class WidgetDescription(object):
    

After Change


    elif isinstance(args, OutputSignal):
        return args
    else:
        raise TypeError("invalid declaration of widget output signal")

class WidgetDescription(object):
    
    Description of a widget.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: biolab/orange3
Commit Name: ce42587e9b57f4fe8c4c7af95e99752ed1515a2b
Time: 2015-05-22
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/canvas/registry/description.py
Class Name:
Method Name: output_channel_from_args


Project Name: biolab/orange3
Commit Name: ce42587e9b57f4fe8c4c7af95e99752ed1515a2b
Time: 2015-05-22
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/canvas/registry/description.py
Class Name:
Method Name: input_channel_from_args


Project Name: prody/ProDy
Commit Name: c7d1a85aada74d750b2cdd5a5f2e54ae8ff00329
Time: 2012-11-25
Author: lordnapi@gmail.com
File Name: lib/prody/dynamics/nma.py
Class Name: NMA
Method Name: setEigens