MCPcopy Create free account
hub / github.com/dmlc/xgboost / process

Function process

ops/script/lint_cpp.py:125–132  ·  view source on GitHub ↗

Process a file.

(fname: str, allow_type: list[str])

Source from the content-addressed store, hash-verified

123
124
125def process(fname: str, allow_type: list[str]) -> None:
126 """Process a file."""
127 fname = str(fname)
128 arr = fname.rsplit(".", 1)
129 if fname.find("#") != -1 or arr[-1] not in allow_type:
130 return
131 if arr[-1] in CXX_SUFFIX:
132 _HELPER.process_cpp(fname, arr[-1])
133
134
135def main() -> None:

Callers 1

mainFunction · 0.85

Calls 1

process_cppMethod · 0.80

Tested by

no test coverage detected