seq_matching_vis
¶
Utilities to visualize the errors made on a file.
Module Contents¶
-
seq_matching_vis.
RED
= [41m¶
-
seq_matching_vis.
GREEN
= [42m¶
-
seq_matching_vis.
BLUE
= [94m¶
-
seq_matching_vis.
ENDC
= [m¶
-
seq_matching_vis.
prepare_file
(filename:str, client:BblfshClient, language:str)¶ Prepare the given file for analysis by extracting UAST and creating the gRPC wrapper.
Parameters: - filename – Path to the filename to analyze.
- client – Babelfish client. Babelfish server should be started accordingly.
- language – Language to consider. Will discard the other languages
-
seq_matching_vis.
visualize
(input_filename:str, bblfsh:str, language:str, model_path:str)¶ Visualize the errors made on a single file.