4de35e3bf617cd61a86da762a1fe29af5e2db1f7,pyntcloud/plot/points.py,,plot_PyntCloud,#,14

Before Change


    config_file_path = dest_directory / (output_name + ".config.json")

    if isinstance(lines, np.ndarray):
        lines = lines.tolist()

    // Make line_color canonical.
    // It always passed to the js as an array of strings
    // of the same length as lines.
    if not hasattr(line_color, "__len__"):
        line_color = [line_color]
    line_color_list = []
    for c in line_color:
        if isinstance(c, int):
            c = hex(c)
        line_color_list.append(c)
    if len(line_color_list) == 1:
        line_color_list = line_color_list * len(lines)

    if len(line_color_list) != len(lines):
        raise ValueError("lines and line_colors must be the same length")

After Change


    except FileExistsError:
        pass

    return IFrame("{}.html".format(output_name), width=IFrame_shape[0], height=IFrame_shape[1])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: daavoo/pyntcloud
Commit Name: 4de35e3bf617cd61a86da762a1fe29af5e2db1f7
Time: 2018-02-25
Author: daviddelaiglesiacastro@gmail.com
File Name: pyntcloud/plot/points.py
Class Name:
Method Name: plot_PyntCloud


Project Name: logpai/loglizer
Commit Name: 64e2c49007ccbd1df92a16d43c4943cee5f0147f
Time: 2019-03-05
Author: zhujm.home@gmail.com
File Name: loglizer/models/LogClustering.py
Class Name: LogClustering
Method Name: _extract_representatives


Project Name: lmcinnes/pynndescent
Commit Name: c1c31db36facdf8d557f4dcc69866ac86814b83f
Time: 2020-09-01
Author: leland.mcinnes@gmail.com
File Name: pynndescent/pynndescent_.py
Class Name: NNDescent
Method Name: _init_search_graph