bbbe08dd06a1faaca0a2f28721cc0bb136a65f52,ggplot/themes/theme.py,theme,__add__,#theme#Any#,108

Before Change


            return other
        else:
            theme_copy = deepcopy(self)
            theme_copy.element_themes = merge_element_targets(
                deepcopy(self.element_themes),
                deepcopy(other.element_themes))
            return theme_copy

    def __radd__(self, other):
        "Subclasses should not override this method."

After Change


            return theme_copy

    def __add__(self, other):
        if isinstance(other, theme):
            return self.add_theme(other)
        else:
            raise TypeError()

    def __radd__(self, other):
        Subclasses should not override this method.

        This will be called in one of two ways:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: has2k1/plotnine
Commit Name: bbbe08dd06a1faaca0a2f28721cc0bb136a65f52
Time: 2014-04-27
Author: pyrios@gmail.com
File Name: ggplot/themes/theme.py
Class Name: theme
Method Name: __add__


Project Name: keras-team/keras
Commit Name: be24159959672c32abb31697e721d96ae6ffaf97
Time: 2016-02-27
Author: ipod825@gmail.com
File Name: keras/wrappers/scikit_learn.py
Class Name: BaseWrapper
Method Name: fit


Project Name: has2k1/plotnine
Commit Name: 84cf106793f2c7eecbca220019369f10de0c0a42
Time: 2014-04-27
Author: pyrios@gmail.com
File Name: ggplot/themes/theme.py
Class Name: theme
Method Name: __radd__