0a7e5d397ed2bb9b61ee54d73e38d7ef6d890e46,lib/gui/display_graph.py,GraphBase,lines_groupsize,#Any#Any#,199

Before Change


        if raw_lines:
            groupsize = len(raw_lines)
        else:
            for check in ("avg", "trend"):
                if any(item[0].startswith(check) for item in sorted_lines):
                    groupsize = len([item for item in sorted_lines if item[0].startswith(check)])
                    break
        logger.trace(groupsize)
        return groupsize

    def lines_style(self, lines, groupsize):

After Change


            groupsize = len(raw_lines)
        elif sorted_lines:
            keys = [key[0][:key[0].find("_")] for key in sorted_lines]
            distinct_keys = set(keys)
            groupsize = len(keys) // len(distinct_keys)
        logger.trace(groupsize)
        return groupsize
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: deepfakes/faceswap
Commit Name: 0a7e5d397ed2bb9b61ee54d73e38d7ef6d890e46
Time: 2019-06-26
Author: 36920800+torzdf@users.noreply.github.com
File Name: lib/gui/display_graph.py
Class Name: GraphBase
Method Name: lines_groupsize


Project Name: home-assistant/home-assistant
Commit Name: 561f6996c680005a92643132f84d2349382e20c0
Time: 2018-11-05
Author: hendrix_erik@hotmail.com
File Name: homeassistant/components/media_player/directv.py
Class Name:
Method Name: setup_platform


Project Name: Qiskit/qiskit-aqua
Commit Name: cfa2566a4e464b2ad1c22cf179dd8e0045d1dbb0
Time: 2018-10-01
Author: manoel@us.ibm.com
File Name: qiskit_aqua/quantumalgorithm.py
Class Name: QuantumAlgorithm
Method Name: register_and_get_operational_backends


Project Name: AlexEMG/DeepLabCut
Commit Name: ef59c0f5b64e5a3e76790855795a6393c5858963
Time: 2020-05-27
Author: 30733203+jeylau@users.noreply.github.com
File Name: deeplabcut/generate_training_dataset/multiple_individuals_labeling_toolbox.py
Class Name: MainFrame
Method Name: browseDir