817dab1773d0c2cbfbbea466e5967ffed5ba4d45,framework/CodeInterfaces/Generic/GenericCodeInterface.py,GenericCode,generateCommand,#GenericCode#Any#Any#Any#Any#,57

Before Change


    //FIXME I think if you give multiple output flags this could result in overwriting
    self.caseName = inputFiles[index].getBase()
    outfile = "out~"+self.caseName
    if "output" in clargs.keys():
      todo+=" "+clargs["output"]+" "+outfile
    //text flags
    todo+=" "+clargs["text"]

After Change


    //FIXME I think if you give multiple output flags this could result in overwriting
    self.caseName = inputFiles[index].getBase()
    outfile = "out~"+self.caseName
    if "output" in clargs:
      toAppend = clargs["output"]+" "+outfile
      todo+=" "+clargs["output"]+" "+outfile
    elif "output" in fargs:
      outfile = fargs["output"]
      if "." in outfile:
        splitted = outfile.split(".")
        outfile, userExt = ".".join(splitted[0:-1]), splitted[-1].strip()
        if userExt != "csv":
          raise IOError("user defined output extension ""+userExt+"" is not a "csv"!")
    //text flags
    todo+=" "+clargs["text"]
    //postpend
    todo+=" "+clargs["post"]
    returnCommand = [("parallel",todo)],outfile
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: idaholab/raven
Commit Name: 817dab1773d0c2cbfbbea466e5967ffed5ba4d45
Time: 2018-01-24
Author: andrea.alfonsi@inl.gov
File Name: framework/CodeInterfaces/Generic/GenericCodeInterface.py
Class Name: GenericCode
Method Name: generateCommand


Project Name: autonomio/talos
Commit Name: bd9d11f8b28a311807906b26395a8ed4f5b74181
Time: 2018-10-04
Author: mailme@mikkokotila.com
File Name: talos/metrics/entropy.py
Class Name:
Method Name: epoch_entropy


Project Name: facebook/FAI-PEP
Commit Name: de1f281aea65d7a648825397d94ac96d75632bb8
Time: 2018-08-01
Author: huaminli@fb.com
File Name: benchmarking/frameworks/framework_base.py
Class Name: FrameworkBase
Method Name: runBenchmark