d1155b13ce2068a59b955fe0dba7925666f20bea,qcengine/programs/qchem.py,QChemHarness,execute,#QChemHarness#Any#Any#Any#Any#Any#Any#Any#,93

Before Change


        envs = self._get_qc_path()

        with temporary_directory(parent=inputs["scratch_directory"], suffix="_qchem_scratch") as tmpdir:
            envs["QCSCRATCH"] = os.path.join(tmpdir, "scratch").replace("//", "/")
            exe_success, proc = execute(commands,
                                        infiles=infiles,
                                        outfiles=outfiles,
                                        scratch_name=scratch_name,

After Change


        if extra_infiles is not None:
            infiles.update(extra_infiles)

        binary_files = [os.path.join("savepath", x) for x in ["99.0", "131.0", "132.0"]]

        // Collect all output files and extend with with extra_outfiles
        outfiles = ["dispatch.out"]
        if extra_outfiles is not None:
            outfiles.extend(extra_outfiles)

        // Replace commands with extra_commands if present
        commands = inputs["commands"] + ["savepath"]
        if extra_commands is not None:
            commands = extra_commands

        envs = self._get_qc_path()

        with temporary_directory(parent=inputs["scratch_directory"], suffix="_qchem_scratch") as tmpdir:
            envs["QCSCRATCH"] = tmpdir
            bdict = {x: None for x in binary_files}

            with disk_files({}, bdict, cwd=tmpdir, as_binary=binary_files):
                exe_success, proc = execute(commands,
                                            infiles=infiles,
                                            outfiles=outfiles,
                                            scratch_name=scratch_name,
                                            scratch_directory=tmpdir,
                                            scratch_messy=scratch_messy,
                                            timeout=timeout,
                                            environment=envs)

            proc["outfiles"].update({os.path.split(k)[-1]: v for k, v in bdict.items()})

        // QChem does not create an output file and only prints to stdout
        return exe_success, proc
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: MolSSI/QCEngine
Commit Name: d1155b13ce2068a59b955fe0dba7925666f20bea
Time: 2019-11-04
Author: malorian@me.com
File Name: qcengine/programs/qchem.py
Class Name: QChemHarness
Method Name: execute


Project Name: pysb/pysb
Commit Name: 9a552c89e11efcfcc041b43ece19886ddc5203df
Time: 2019-09-25
Author: alex.lubbock@vanderbilt.edu
File Name: pysb/importers/bngl.py
Class Name: BnglBuilder
Method Name: _parse_expressions


Project Name: mindsdb/mindsdb
Commit Name: 80ab5f2eb06c8023c6ba4b62c054ff04369913f8
Time: 2020-11-12
Author: stpmax@yandex.ru
File Name: tests/integration_tests/flows/test_mongo.py
Class Name: MongoTest
Method Name: setUpClass