zqudm
zqudm
String str1="this(duration, null, null);"; String str2 = " super();"; String left="./time_22_buggy/src/main/java/org/joda/time/base/BasePeriod.java"; String right="./time_22_fix/src/main/java/org/joda/time/base/BasePeriod.java"; final Diff result = new AstComparator().compare(str1,str2,left,right); System.out.println(result.toString()); for (Operation o :result.getRootOperations()) System.out.println(o.toString()+" ------ " + o.getNode().toString()); --------------------------------------------------------------------...
/// the following Class is a scanner, which aims to get the CtElement of specific line number. What is more, i want to get the root of CtElement and neglect...
``` 1 public class Example { 2 public static void main(String args[]){ 3 int[] intArr; 4 intArr = new int[5]; 5 if(intArr ==null) 6 System.out.println("hello"); 7 else 8 System.out.println("world"); 9...
root@autodl-container-d25111943c-47a1a17b:~/tree_sitter# npm -v 6.14.4 root@autodl-container-d25111943c-47a1a17b:~/tree_sitter# node -v v10.19.0 root@autodl-container-d25111943c-47a1a17b:~/tree_sitter# npm install tree-sitter-cli > [email protected] install /root/node_modules/tree-sitter-cli > node install.js Downloading https://github.com/tree-sitter/tree-sitter/releases/download/v0.20.8/tree-sitter-linux-x64.gz Download failed url: https://github.com/tree-sitter/tree-sitter/releases/download/v0.20.8/tree-sitter-linux-x64.gz status: 503 headers: { "content-length":...