Skip to content

Commit 7bb167b

Browse files
committed
A bit rewording on the user interfaces.
1 parent b301bf1 commit 7bb167b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

roosterize/interface/CommandLineInterface.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,15 +241,15 @@ def report_predictions(self, data: ProcessedFile, candidates_logprobs: List[List
241241
# Print suggestions
242242
total = len(good_names) + len(bad_names_and_suggestions) + len(bad_names_no_suggestion)
243243
print(f"== Analyzed {total} lemma names, "
244-
f"{len(good_names)} ({len(good_names)/total:.1%}) look good.")
244+
f"{len(good_names)} ({len(good_names)/total:.1%}) conform to the learned naming conventions.")
245245
if len(bad_names_and_suggestions) > 0:
246246
print(f"==========")
247247
print(f"== {len(bad_names_and_suggestions)} can be improved and here are Roosterize's suggestions:")
248248
for lemma, suggestion, score in sorted(bad_names_and_suggestions, key=lambda x: x[2], reverse=True):
249249
print(f"Line {lemma.vernac_command[0].lineno}: {lemma.name} => {suggestion} (likelihood: {score:.2f})")
250250
if len(bad_names_no_suggestion) > 0:
251251
print(f"==========")
252-
print(f"== {len(bad_names_no_suggestion)} can be improved but Roosterize cannot provide good suggestion (please consider improve_project_model):")
252+
print(f"== {len(bad_names_no_suggestion)} can be improved but Roosterize cannot provide good suggestion:")
253253
for lemma, suggestion, score in sorted(bad_names_no_suggestion, key=lambda x: x[2], reverse=True):
254254
print(f"Line {lemma.vernac_command[0].lineno}: {lemma.name} (best guess: {suggestion}; likelihood: {score:.2f})")
255255

roosterize/interface/VSCodeInterface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def report_predictions(self, data: ProcessedFile, candidates_logprobs: List[List
5656

5757
total = len(good_names) + len(bad_names_and_suggestions) + len(bad_names_no_suggestion)
5858
self.show_message(f"{data.path}: Analyzed {total} lemma names, "
59-
f"{len(good_names)} ({len(good_names)/total:.1%}) look good. "
59+
f"{len(good_names)} ({len(good_names)/total:.1%}) conform to the learned naming conventions. "
6060
f"Roosterize made {len(bad_names_and_suggestions)} suggestions.")
6161

6262
# Publish suggestions as diagnostics

0 commit comments

Comments
 (0)