CURE
CURE copied to clipboard
Instruction to train CURE on JavaScript
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.
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?
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.
great, thanks for the pointer @jiang719. We really appreciate it.