This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TreeContext ctx1; | |
TreeContext ctx2; | |
Matcher m = new CompositeMatches.ClassicGumtree(ctx1.getRoot(), ctx2.getRoot(), new MappingStore()); | |
m.match() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Match SimpleName: r(52) to SimpleName: r(68) | |
Match SimpleName: println(66) to SimpleName: println(49) | |
Match SimpleName: Random(45) to SimpleName: Random(61) | |
Match SimpleName: println(23) to SimpleName: println(23) | |
Match QualifiedName: System.out(65) to QualifiedName: System.out(48) | |
Match MethodInvocation(40) to MethodInvocation(40) | |
Match ClassInstanceCreation(47) to ClassInstanceCreation(63) | |
Match SimpleName: i(51) to SimpleName: i(67) | |
Match TypeDeclaration(72) to TypeDeclaration(85) | |
Match MethodDeclaration(71) to MethodDeclaration(54) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"matches": [ | |
{ | |
"src": 40, | |
"dest": 40 | |
}, | |
{ | |
"src": 50, | |
"dest": 66 | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update | |
sudo apt-get install gcc g++ libxml2-dev libxslt1-dev libarchive-dev antlr libantlr-dev libcurl4-openssl-dev libssl-dev | |
wget https://netix.dl.sourceforge.net/project/boost/boost/1.55.0/boost_1_55_0.tar.gz | |
tar -xvzf boost_1_55_0.tar.gz | |
cd boost_1_55_0 | |
./bootstrap.sh --without-libraries=atomic,chrono,context,coroutine,exception,graph,graph_parallel,iostreams,locale,log,math,mpi,python,random,serialization,signals,test,timer,wave | |
sudo ./b2 link=static cxxflags="-fPIC -static -Wl,--whole-archive" threading=multi install | |
wget http://131.123.42.38/lmcrs/beta/srcML-src.tar.gz | |
tar -xvzf srcML-src.tar.gz | |
cd srcML-src |