0b92b4f5530fee68432f13075a1ddc866748f9d1,examples/showcase/firefox.py,,svg_parse,#Any#,19
Before Change
"Q": (Path.CURVE3,)*2,
"C": (Path.CURVE4,)*3,
"Z": (Path.CLOSEPOLY,)}
path_re = re.compile(r"([MLHVCSQTAZ])([^MLHVCSQTAZ]+)", re.IGNORECASE)
float_re = re.compile(r"(?:[\s,]*)([+-]?\d+(?:\.\d+)?)")
vertices = []
codes = []
last = (0, 0)
After Change
for cmd, values in zip(cmd_values[::2], cmd_values[1::2]):
// Numbers are separated either by commas, or by +/- signs (but not at
// the beginning of the string).
points = ([*map(float, re.split(",|(?<!^)(?=[+-])", values))] if values
else [(0., 0.)]) // Only for "z/Z" (CLOSEPOLY).
points = np.reshape(points, (-1, 2))
if cmd.islower():
points += vertices[-1][-1]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances 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: horovod/horovod
Commit Name: a38040921420f6e03f46b029b3300bb0f7094062
Time: 2020-03-25
Author: fardin@uber.com
File Name: horovod/run/run.py
Class Name:
Method Name: _run
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: c84eb9306a521ddcefe8ca805ac633408e5b312a
Time: 2015-05-09
Author: voellm@google.com
File Name: perfkitbenchmarker/benchmarks/iperf_benchmark.py
Class Name:
Method Name: _RunIperf