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

Before Change



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

        self._ref_version = Version(str_version)

        if self._operator not in self._op_actions.keys():

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 = "=="

        if op not in self._op_actions.keys():
            raise ValueError("invalid boolean operator: "%s"" % op)
        else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

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: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: bd3a1021d7d990d5d4a8a71cc0621485af2d09e4
Time: 2019-09-03
Author: chriswilkes@google.com
File Name: perfkitbenchmarker/linux_virtual_machine.py
Class Name: LsCpuResults
Method Name: __init__


Project Name: neurosynth/neurosynth
Commit Name: e4f774a55446bb6f7fab43d999dd6fea24158e26
Time: 2014-10-27
Author: tyarkoni@gmail.com
File Name: neurosynth/analysis/cluster.py
Class Name: Clusterer
Method Name: cluster