9304f141bc2b51e43fb29a5fe784b53ff798f8fa,qcengine/programs/terachem.py,TeraChemHarness,get_version,#TeraChemHarness#,40

Before Change


        if which_prog not in self.version_cache:
            with popen([which_prog, "--version"]) as exc:
                exc["proc"].wait(timeout=5)
            self.version_cache[which_prog] = safe_version(exc["stdout"].split()[2].strip("K"))

        return self.version_cache[which_prog]

After Change


            with popen([which_prog, "--version"]) as exc:
                exc["proc"].wait(timeout=5)
            mobj = re.search(NUMBER,exc["stdout"],re.VERBOSE)
            version = mobj.group(0)
            self.version_cache[which_prog] = safe_version(version)

        return self.version_cache[which_prog]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: MolSSI/QCEngine
Commit Name: 9304f141bc2b51e43fb29a5fe784b53ff798f8fa
Time: 2019-06-04
Author: fangliu.ustc@gmail.com
File Name: qcengine/programs/terachem.py
Class Name: TeraChemHarness
Method Name: get_version


Project Name: eth-cscs/reframe
Commit Name: 415b4241b76c6e24e43bca04be56a1e7b0439752
Time: 2019-01-29
Author: samuel.omlin@cscs.ch
File Name: reframe/core/schedulers/slurm.py
Class Name: SqueueJob
Method Name: _update_state


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__