4c70c8ef75e46ea3bafd06f49f2797c775e38596,sos/actions.py,,pandoc,#Any#Any#Any#Any#,607

Before Change


        write_to_stdout = True
        output_file = tempfile.NamedTemporaryFile(mode="w+t", suffix=".html", delete=False).name
    elif isinstance(output, str):
        output_file = interpolate(output, "${ }")
    else:
        raise RuntimeError("A filename is expected, {} provided".format(output))
    
    //

After Change


                        with open(ifile) as itmp:
                            tmp.write(itmp.read())
                    except Exception as e:
                        raise ValueError("Failed to read input file {}: {}".format(ifile, e))
    elif isinstance(script, str) and script.strip():
        input_file = tempfile.NamedTemporaryFile(mode="w+t", suffix=".md", delete=False).name
        with open(input_file, "w") as tmp:
            tmp.write(script)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: vatlab/SoS
Commit Name: 4c70c8ef75e46ea3bafd06f49f2797c775e38596
Time: 2016-12-15
Author: ben.bog@gmail.com
File Name: sos/actions.py
Class Name:
Method Name: pandoc


Project Name: vatlab/SoS
Commit Name: a32adb83ddeb05bef22c54489bf55e608b5be69b
Time: 2016-12-15
Author: pengwilliam1636368@gmail.com
File Name: sos/actions.py
Class Name:
Method Name: report


Project Name: vatlab/SoS
Commit Name: acab4d26b02cb0f4a1704ccfaffb7e47e4c76d0f
Time: 2016-12-15
Author: pengwilliam1636368@gmail.com
File Name: sos/actions.py
Class Name:
Method Name: report