-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add processing for ICLR-GREAT Paper and Fix bugs #8
Conversation
Add JsonVisitor to preprocess dataset for the ICLR-GREAT model. Also hack-fix some of the NullPointer / Peek errors.
Refactored DataGenerator in general and added BufferedOutputStream to flush and avoid running out of memory with bigger datasets.
If processing huge datasets there are bound to be code that on purpose doesn't compile. This commit will catch those examples and ignores them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! Some feedback!
src/main/java/com/github/sergdelft/j2graph/walker/json/JsonVisitor.java
Outdated
Show resolved
Hide resolved
|
||
/** | ||
* Tests that exercise the classes with imports. | ||
* This was a bug (issue #3) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this really related to issue #3 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, that's a copy-paste error. Will fix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still see 3 here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, I fixed it in the Enum test. 🤦 Pushed for the unparsable code test as well now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, I fixed the Enum test that had the same error. Added the commit for UnparsableCode. I guess the IllegalArgumentException is the expected output for unparsable code?
@mauricioaniche , made the changes. |
This pull request adds DataGenerator for ICLR2020-Great paper and also fixes some bugs.
2 Additional tests were added. One for unparsable code (expecting an illegalArgumentException) and one for Enums.
The enum test has a @todo tag since j2graph currently fails to handle them.