94bcd890a4d896511fe5b82c0099764ab7b78936,reframe/core/variables.py,VarSpace,join,#VarSpace#Any#,49
Before Change
for key, val in other.items():
// Override the required set
if key in other.required_vars:
self._requiredVars.add(key)
elif key in self._requiredVars:
self._requiredVars.remove(key)
self._attr[key] = val
def extend(self, cls):
for key, var in getattr(cls, self.localAttrSpaceName).items():
After Change
for key, val in other.items():
// Multiple inheritance is NOT allowed
if key in self._attr:
raise ValueError(
f"var {key!r} is already present in the var space"
)
self._attr[key] = val
def extend(self, cls):
localVarSpace = getattr(cls, self.localAttrSpaceName)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: eth-cscs/reframe
Commit Name: 94bcd890a4d896511fe5b82c0099764ab7b78936
Time: 2021-01-18
Author: jotero@cscs.ch
File Name: reframe/core/variables.py
Class Name: VarSpace
Method Name: join
Project Name: NeuroTechX/moabb
Commit Name: 66b0061685aa10d124ef89c9a2f5ddeb7ce1ea1b
Time: 2018-01-24
Author: vjayaram@danube.is.localnet
File Name: moabb/datasets/download.py
Class Name:
Method Name: data_path
Project Name: eth-cscs/reframe
Commit Name: 94bcd890a4d896511fe5b82c0099764ab7b78936
Time: 2021-01-18
Author: jotero@cscs.ch
File Name: reframe/core/variables.py
Class Name: VarSpace
Method Name: extend