MCPcopy Create free account
hub / github.com/BVLC/caffe / __init__

Method __init__

scripts/cpp_lint.py:1196–1206  ·  view source on GitHub ↗
(self, lines)

Source from the content-addressed store, hash-verified

1194 """
1195
1196 def __init__(self, lines):
1197 self.elided = []
1198 self.lines = []
1199 self.raw_lines = lines
1200 self.num_lines = len(lines)
1201 self.lines_without_raw_strings = CleanseRawStrings(lines)
1202 for linenum in range(len(self.lines_without_raw_strings)):
1203 self.lines.append(CleanseComments(
1204 self.lines_without_raw_strings[linenum]))
1205 elided = self._CollapseStrings(self.lines_without_raw_strings[linenum])
1206 self.elided.append(CleanseComments(elided))
1207
1208 def NumLines(self):
1209 """Returns the number of lines represented."""

Callers

nothing calls this directly

Calls 3

_CollapseStringsMethod · 0.95
CleanseRawStringsFunction · 0.85
CleanseCommentsFunction · 0.85

Tested by

no test coverage detected