MCPcopy Index your code
hub / github.com/antlr/codebuff / files

Function files

python/src/groomlib.py:157–168  ·  view source on GitHub ↗

Return a list of filenames under dir (with dir as prefix of names)

(dir)

Source from the content-addressed store, hash-verified

155
156
157def files(dir):
158 """
159 Return a list of filenames under dir (with dir as prefix of names)
160 """
161 list = []
162 if os.path.isfile(dir): # oops, it's a file
163 return [dir]
164 for dirpath, dirs, files in os.walk(dir):
165 for f in files:
166 qf = dirpath + "/" + f
167 list.append(qf)
168 return list
169
170
171def graph_importance(forest, feature_names):

Callers 1

analyze_corpusFunction · 0.85

Calls 2

walkMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected