MCPcopy Create free account
hub / github.com/pytorch/pytorch / main

Function main

scripts/release_notes/categorize.py:191–212  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

189
190
191def main():
192 parser = argparse.ArgumentParser(description="Tool to help categorize commits")
193 parser.add_argument(
194 "--category",
195 type=str,
196 default="Uncategorized",
197 help='Which category to filter by. "Uncategorized", None, or a category name',
198 )
199 parser.add_argument(
200 "--file",
201 help="The location of the commits CSV",
202 default="results/commitlist.csv",
203 )
204 parser.add_argument(
205 "--use_classifier",
206 action="store_true",
207 help="Whether or not to use a classifier to aid in categorization.",
208 )
209
210 args = parser.parse_args()
211 categorizer = Categorizer(args.file, args.category, args.use_classifier)
212 categorizer.categorize()
213
214
215if __name__ == "__main__":

Callers 1

categorize.pyFile · 0.70

Calls 3

categorizeMethod · 0.95
CategorizerClass · 0.85
parse_argsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…