Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2fe9bec

Browse files
core(api): remove the model asking prompt and add a filter to show only mis matches by default
1 parent d33dd96 commit 2fe9bec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎code_bert/cli/run_pipeline.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ def run_pipeline(args):
5656
if args.recursive:
5757
for file_path in iter_dir(args.recursive):
5858
if is_python_file(file_path):
59-
_run_model(file_path, fp, predictor, args.filter_match)
59+
_run_model(file_path, fp, predictor, args.show_match)
6060
else:
6161
if is_python_file(args.file_name):
62-
_run_model(args.file_name, fp, predictor, args.filter_match)
62+
_run_model(args.file_name, fp, predictor, args.show_match)
6363
else:
6464
print("Bye Bye!")
6565

@@ -69,7 +69,7 @@ def main():
6969
parser = ArgumentParser()
7070
parser.add_argument("-f", "--file_name", type=str, required=False, help="The name of the file you want to run the pipeline on")
7171
parser.add_argument("-r", "--recursive", required=False, help="Put the directory if you want to run recursively")
72-
parser.add_argument("-m", "--filter_match", action="store_false", help="Shall we only show the mis matches?")
72+
parser.add_argument("-m", "--show_match", action="store_false", help="Shall we only show the mis matches?")
7373

7474
args = parser.parse_args()
7575
run_pipeline(args)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /