2e180b4eda979e3455df916c89cb0295370fc7d7,reframe/utility/versioning.py,_RelationalValidator,__init__,#_RelationalValidator#Any#,110

Before Change


            "!=": lambda x, y: x != y,
        }
        try:
            self._operator = "".join(list(takewhile(lambda s: not s.isdigit(),
                                                    condition)))
            if self._operator == "":
                self._operator = "=="

            str_version = condition.split(self._operator, maxsplit=1)[-1]
        except ValueError:
            raise ValueError("invalid condition: %s" %
                             condition.strip()) from None

After Change


            "!=": lambda x, y: x != y,
        }
        cond_match = re.match(r"(\W{0,2})(\S+)", condition)
        if not cond_match:
            raise ValueError("invalid condition: "%s"" % condition)

        self._ref_version = Version(cond_match.group(2))
        op = cond_match.group(1)
        if op == "":
            op = "=="
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: eth-cscs/reframe
Commit Name: 2e180b4eda979e3455df916c89cb0295370fc7d7
Time: 2018-06-07
Author: rafael.sarmiento@cscs.ch
File Name: reframe/utility/versioning.py
Class Name: _RelationalValidator
Method Name: __init__


Project Name: floydhub/dockerfiles
Commit Name: 5ac177662e054b9b8f4ad95fc9053561cc69a6a8
Time: 2017-06-20
Author: dave2008713@gmail.com
File Name: floydker/src/floydker/utils.py
Class Name:
Method Name: gen_target_env_from_tag


Project Name: eth-cscs/reframe
Commit Name: 0f1c2a98960c6e3ba8d48e4f00ad358ccb204f07
Time: 2020-09-15
Author: karakasis@cscs.ch
File Name: reframe/core/schedulers/slurm.py
Class Name: SlurmJobScheduler
Method Name: poll