255d82a11f7b5596554b7d2d37a4437481d7676c,examples/shapes_and_collections/dolphin.py,,,#,19
Before Change
code = parts[i]
path_code, npoints = code_map[code]
codes.extend([path_code] * npoints)
vertices.extend([[float(x) for x in y.split(",")] for y in
parts[i + 1:i + npoints + 1]])
i += npoints + 1
vertices = np.array(vertices, float)
After Change
path_code = code_map[parts[i]]
npoints = Path.NUM_VERTICES_FOR_CODE[path_code]
codes.extend([path_code] * npoints)
vertices.extend([[*map(float, y.split(","))]
for y in parts[i + 1:][:npoints]])
i += npoints + 1
vertices = np.array(vertices)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: matplotlib/matplotlib
Commit Name: 255d82a11f7b5596554b7d2d37a4437481d7676c
Time: 2020-02-28
Author: anntzer.lee@gmail.com
File Name: examples/shapes_and_collections/dolphin.py
Class Name:
Method Name:
Project Name: matplotlib/matplotlib
Commit Name: 0b92b4f5530fee68432f13075a1ddc866748f9d1
Time: 2020-11-20
Author: anntzer.lee@gmail.com
File Name: examples/showcase/firefox.py
Class Name:
Method Name: svg_parse
Project Name: epfl-lts2/pygsp
Commit Name: 25578194028e16c82cfbcfa7b2748d90d74e8715
Time: 2017-08-28
Author: michael.defferrard@epfl.ch
File Name: pygsp/plotting.py
Class Name:
Method Name: _qtg_plot_signal