ec1bbc9cc60d11fb35296bdebd0cac6048f8885f,pysos/kernel.py,SoS_Kernel,handle_magic_dict,#SoS_Kernel#Any#,588

Before Change


                return
        if "reset" in actions:
            self.send_result(self._reset_dict())
        if "keys" in actions:
            if "all" in actions:
                self.send_result(env.sos_dict._dict.keys())
            elif keys:

After Change


                      {"name": "stderr", "text": "Unrecognized sosdict option or variable name {}".format(x)})
                return
        for x in [x for x in actions if x.startswith("-")]:
            if not x in ["-r", "--reset", "-k", "--keys", "-a", "--all"]:
                raise RuntimeError("Unrecognized option {} for magic %dict".format(x))
        if "--reset" in actions or "-r" in actions:
            self.send_result(self._reset_dict())
        if "--keys" in actions or "-k" in actions:
            if "--all" in actions or "-a" in actions:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: vatlab/SoS
Commit Name: ec1bbc9cc60d11fb35296bdebd0cac6048f8885f
Time: 2016-10-26
Author: ben.bog@gmail.com
File Name: pysos/kernel.py
Class Name: SoS_Kernel
Method Name: handle_magic_dict


Project Name: vatlab/SoS
Commit Name: ec1bbc9cc60d11fb35296bdebd0cac6048f8885f
Time: 2016-10-26
Author: ben.bog@gmail.com
File Name: pysos/kernel.py
Class Name: SoS_Kernel
Method Name: handle_magic_dict


Project Name: vatlab/SoS
Commit Name: bb0740422c7b0d26a474bc894f7b03f5adfb9227
Time: 2019-03-11
Author: ben.bog@gmail.com
File Name: src/sos/executor_utils.py
Class Name:
Method Name: prepare_env


Project Name: vatlab/SoS
Commit Name: c8788d2eedcdb2671289d7d47a41b8fdcb0294f1
Time: 2017-09-11
Author: ben.bog@gmail.com
File Name: src/sos/sos_executor.py
Class Name: Base_Executor
Method Name: resolve_dangling_targets