8834dbff5f121e602331b845f9582eafb1c84d6c,hypertools/plot/plot.py,,plot,#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,21

Before Change



    // align data
    if align:
        if len(data) == 1:
            warn("Data in list of length 1 can not be aligned. "
                 "Skipping the alignment.")
        else:
            x = aligner(x)

    // find cluster and reshape if n_clusters
    if n_clusters is not None:
        cluster_labels = cluster(x, n_clusters=n_clusters, ndims=ndims)
        x = reshape_data(x, cluster_labels)
        if group:

After Change


    if legend is not None:
        if legend is False:
            legend = None
        elif legend is True and group is not None:
            legend = [item for item in sorted(set(group), key=list(group).index)]
        elif legend is True and group is None:
            legend = [i + 1 for i in range(len(x))]

        mpl_kwargs["label"] = legend

    // interpolate if its a line plot
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: ContextLab/hypertools
Commit Name: 8834dbff5f121e602331b845f9582eafb1c84d6c
Time: 2017-06-04
Author: sucharyan@gmail.com
File Name: hypertools/plot/plot.py
Class Name:
Method Name: plot


Project Name: tensorflow/cleverhans
Commit Name: f9dd2e3636db61ee1b4d32ee4f494fd9e71adc12
Time: 2017-03-29
Author: ngp5056@cse.psu.edu
File Name: cleverhans/attacks.py
Class Name: Attack
Method Name: generate_np


Project Name: ContextLab/hypertools
Commit Name: a9deec4f02739f0ac0a81c91bcd6b7bdea976876
Time: 2017-06-04
Author: sucharyan@gmail.com
File Name: hypertools/plot/plot.py
Class Name:
Method Name: plot