19555472029f57ce2c9caabe757425d8201c0324,ffmpeg/_view.py,,view,#,17

Before Change


        name = node.name
        if "_kwargs" in dir(node) and "filename" in node._kwargs:
            name = os.path.basename(node._kwargs["filename"])
        if isinstance(node, InputNode):
            color = "/኿cc00"
        elif isinstance(node, OutputNode):
            color = "/኿ccff"
        elif isinstance(node, FilterNode):
            color = "//ffcc00"
        else:
            color = None
        graph.node(str(hash(node)), name, shape="box", style="filled", fillcolor=color)
        outgoing_edge_map = outgoing_edge_maps.get(node, {})
        for edge in get_outgoing_edges(node, outgoing_edge_map):
            kwargs = {}

After Change



    nodes = []
    for stream in streams:
        if not isinstance(stream, Stream):
            raise TypeError("Expected Stream; got {}".format(type(stream)))
        nodes.append(stream.node)

    sorted_nodes, outgoing_edge_maps = topo_sort(nodes)
    graph = graphviz.Digraph()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: kkroening/ffmpeg-python
Commit Name: 19555472029f57ce2c9caabe757425d8201c0324
Time: 2017-07-06
Author: karlk@kralnet.us
File Name: ffmpeg/_view.py
Class Name:
Method Name: view


Project Name: arogozhnikov/einops
Commit Name: 680f4831e6c8f3102be8d99056b746b48ce34051
Time: 2018-09-27
Author: iamfullofspam@gmail.com
File Name: einops.py
Class Name:
Method Name: reduce


Project Name: chartbeat-labs/textacy
Commit Name: db3deb22ff32f40ba446149946b4f0d47ba2fed2
Time: 2019-07-14
Author: burtdewilde@gmail.com
File Name: textacy/similarity.py
Class Name:
Method Name: jaccard