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

Instruction to train CURE on JavaScript #8

Open
nashid opened this issue Sep 28, 2022 · 3 comments
Open

Instruction to train CURE on JavaScript #8

nashid opened this issue Sep 28, 2022 · 3 comments

Comments

@nashid
Copy link

nashid commented Sep 28, 2022

We are working on to extend CURE for JavaScript. From our understanding it appears we have to prepare the following equivalent files for JS:

  • java_keywords.json
  • java_class.json

Furthermore, we need to generate Output.json on the following format for the test datapoints:

{"buggy line":"n = x;",
"imports":["java.util.ArrayList"],
"identifiers":["Test","x","y","m","n"],
"context":"Test(int x, double y) {\n    n = x;\n    double t = y + x;\n    m = t;\n}"}

Is this all we require? We would appreciate your feedback on this.

@msintaha
Copy link

Is the java_class.json created from within the dataset? Should it contain all the built-in java classes?
Also, is the java_keywords contain the top 100 keywords within the dataset?

@jiang719
Copy link
Collaborator

jiang719 commented Oct 5, 2022

These two files are prepared from JDK.

For keywords, I think you can search online for JavaScript keywords.

For Java class, we crawled the JDK8 to extract this. You can do similar thing for JavaScript.

@nashid
Copy link
Author

nashid commented Oct 5, 2022

great, thanks for the pointer @jiang719. We really appreciate it.

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

No branches or pull requests

3 participants