d7d300f9ac26bf54c196d4fe0e1e4fada549b7d3,sacred/initialize.py,Scaffold,_warn_about_suspicious_changes,#Scaffold#,164

Before Change



    def _warn_about_suspicious_changes(self):
        for add in sorted(self.config_mods.added):
            if add not in self.captured_args:
                raise KeyError("Added a new config entry "{}" that is not used"
                               " anywhere".format(add))
            else:

After Change



    def _warn_about_suspicious_changes(self):
        for add in sorted(self.config_mods.added):
            if not set(iter_prefixes(add)).intersection(self.captured_args):
                raise KeyError("Added a new config entry "{}" that is not used"
                               " anywhere".format(add))
            else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: IDSIA/sacred
Commit Name: d7d300f9ac26bf54c196d4fe0e1e4fada549b7d3
Time: 2016-01-11
Author: qwlouse@gmail.com
File Name: sacred/initialize.py
Class Name: Scaffold
Method Name: _warn_about_suspicious_changes


Project Name: IDSIA/sacred
Commit Name: 0966d9b9d230496e03c4c16b4a92cb43442c7adb
Time: 2016-01-17
Author: qwlouse@gmail.com
File Name: sacred/initialize.py
Class Name: Scaffold
Method Name: _warn_about_suspicious_changes


Project Name: has2k1/plotnine
Commit Name: 7fe5355c5fbfa9bf85f0b0eb9523ff6f35f33788
Time: 2014-06-13
Author: jonas@ifany.org
File Name: ggplot/components/legend.py
Class Name:
Method Name: draw_legend_group