Skip to content
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

Merged
merged 14 commits into from
Aug 25, 2020

Conversation

hsellik
Copy link
Collaborator

@hsellik hsellik commented Aug 10, 2020

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.

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.
Copy link
Contributor

@mauricioaniche mauricioaniche left a 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!


/**
* Tests that exercise the classes with imports.
* This was a bug (issue #3)
Copy link
Contributor

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 ?

Copy link
Collaborator Author

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.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Contributor

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?

Copy link
Collaborator Author

@hsellik hsellik Aug 13, 2020

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.

Copy link
Collaborator Author

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?

@hsellik
Copy link
Collaborator Author

hsellik commented Aug 13, 2020

@mauricioaniche , made the changes.

@mauricioaniche mauricioaniche merged commit 5447bb8 into master Aug 25, 2020
@mauricioaniche mauricioaniche deleted the processing_for_iclr_great branch August 25, 2020 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants