-
Notifications
You must be signed in to change notification settings - Fork 4
Fixes bugs in ground truth files and in the mismatch tables emitted in the #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
jaltmayerpizzorno
wants to merge
18
commits into
secure-software-engineering:main
Choose a base branch
from
plasma-umass:202510-corrections
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Fixes bugs in ground truth files and in the mismatch tables emitted in the #11
jaltmayerpizzorno
wants to merge
18
commits into
secure-software-engineering:main
from
plasma-umass:202510-corrections
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
… python sources, such as incorrect variable names, incorrect or inconsistent position, missing function names, etc.;
… inference tools;
type inference on different program elements. The accompanying test demonstrates the issue (before the changes, naturally); - fixed small table formatting issues;
…e, but since the decorator overrides 'MyClass', we can still type the variable;
…uth. Note that in the case of MyClass.my_method, even calling from within the class as 'super().my_method()' or 'cls.my_method(self)' did not lead to the original method being invoked; verified with Python 3.12.9 and 3.13.3;
…nference tools; - aligned non-generated micro-benchmark code with that of the generated one;
…e, but since the decorator overrides 'MyClass', we can still type the variable; - moved Point out of function scope, making it actually available as a type;
to another bool yields an int, not a bool;
I've now corrected problems in the generation templates. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Dear TypeEvalPy authors,
Thank you for putting together a benchmark for type inference!
During the process of applying it to our tool, RightTyper, I discovered inconsistencies between the source code and the ground truth files, including discrepancies in column or line annotations, function or variable names, as well as a few incorrect types. These are all corrected in this pull request.
Finally, I also extended Python snippets to execute all ground truth functions, making the benchmark suitable for dynamic type inference tools.
RightTyper types all supported code elements correctly (I verified each of these corrections manually). It doesn't currently support variables, lambdas, or functions that aren't executed. I'll contribute the code to execute RightTyper in a separate pull request.
I attempted to structure the commits to facilitate review. Please let me know if you have any questions!
.. Juan Altmayer Pizzorno, UMass Amherst