MCPcopy Index your code
hub / github.com/nodejs/node / FieldWidth

Class FieldWidth

deps/v8/tools/avg.py:62–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60
61
62class FieldWidth:
63
64 def __init__(self, points=0, key=0, average=0, stddev=0, min_width=0, max_width=0):
65 self.widths = dict(points=points, key=key, average=average, stddev=stddev,
66 min=min_width, max=max_width)
67
68 def max_widths(self, other):
69 self.widths = {k: max(v, other.widths[k]) for k, v in self.widths.items()}
70
71 def __getattr__(self, key):
72 return self.widths[key]
73
74
75def fmtS(string, width=0):

Callers 2

widthsMethod · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…