()
| 189 | |
| 190 | |
| 191 | def 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 | |
| 215 | if __name__ == "__main__": |
no test coverage detected
searching dependent graphs…