b2ce76b9b7789a69e8171d6bf06a0ff72412ab42,corextopic/vis_topic.py,,edge2pdf,#Any#Any#Any#Any#Any#Any#Any#Any#,284

Before Change


                    np.clip(d["weight"], 0, 9)) + "];\n").encode("utf-8"))
            else:
                if d["weight"] > threshold:
                    f.write(("\t" + cnn(a) + " -- " + cnn(b) + " [penwidth=" + str(3 * d["weight"]) + "];\n").encode(
                        "utf-8"))
        else:
            if directed:
                f.write(("\t" + cnn(a) + " -> " + cnn(b) + "\n").encode("utf-8"))

After Change


    //f.write("\tgraph [overlap=scale];\n".encode("utf-8"))
    f.write("\tnode [shape=point];\n")
    for a, b, d in g.edges(data=True):
        if "weight" in d:
            if directed:
                f.write(("\t" + cnn(a) + " -> " + cnn(b) + " [penwidth=%.2f" % float(
                    np.clip(d["weight"], 0, 9)) + "];\n"))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: gregversteeg/corex_topic
Commit Name: b2ce76b9b7789a69e8171d6bf06a0ff72412ab42
Time: 2018-11-18
Author: trokhymenko@trokhymenko.local
File Name: corextopic/vis_topic.py
Class Name:
Method Name: edge2pdf


Project Name: UFAL-DSG/tgen
Commit Name: f0a55e8621986cc1c4593f3bac939bbde5e4b3bd
Time: 2019-06-08
Author: odusek@ufal.mff.cuni.cz
File Name: tgen/data.py
Class Name: DAI
Method Name: __str__


Project Name: oddt/oddt
Commit Name: e7dfbe88426950ff5f730681e68fd8b28e59ee3b
Time: 2016-12-19
Author: maciek@wojcikowski.pl
File Name: oddt/pandas.py
Class Name: ChemDataFrame
Method Name: to_excel