typilus-action
typilus-action copied to clipboard
A GitHub Action for suggesting Python type annotations.
solve #11 and #14
``` Traceback (most recent call last): File "/usr/src/entrypoint.py", line 113, in for graph, predictions in model.predict(data_iter(), nn, "cpu"): File "/usr/local/lib/python3.8/site-packages/ptgnn/implementations/typilus/graph2class.py", line 276, in predict for mb_data, original_datapoints in self.minibatch_iterator( File...
Hi,  please help https://github.com/Karim-53/Compare-xAI/actions/runs/3845474196/jobs/6549659436 Thanks
``` Diff GET Status Code: 200 Traceback (most recent call last): File "/usr/src/entrypoint.py", line 81, in changed_files = get_changed_files(diff_rq.text) File "/usr/src/changeutils.py", line 38, in get_changed_files assert file_diff_lines[3].startswith("---") IndexError: list index...
Here are couple of things I noticed trying Typilus inference using GH Action: - gracefully handle patches that include a file renames (\wo any content modifications) by skipping such files...
(suggested by @bzz)
The current model may return `%UNK%` that's not useful. Filter them. (suggested by @bzz)
Some of the suggestions of the machine learning model may be incorrect. Use a (configurable?) type checker to remove incorrect suggestions.
Get information from the statistics of reactions (e.g. for autotuning confidence thresholds, improving training etc.)