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
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():
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
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: coala/coala-bears
Commit Name: bfd61fb7a0c4456ce812a227f3b1962b2c727879
Time: 2016-09-03
Author: abdealikothari@gmail.com
File Name: bears/general/KeywordBear.py
Class Name: KeywordBear
Method Name: run
Project Name: HyperGAN/HyperGAN
Commit Name: 46a984d2fa6a25b54fd847104533caf70230dd2d
Time: 2018-12-02
Author: mikkel@255bits.com
File Name: hypergan/optimizers/curl_optimizer.py
Class Name: CurlOptimizer
Method Name: apply_gradients