Comments (10)
Can you attach the two files ?
from gumtree.
Sure
left.js.zip
right.js.zip
from gumtree.
Ok same result here,
What's going on is that there are many little differences so GumTree do not recognize the function definition as being the same, therefore evertyhing seem to be moved even if it's not really the case.
There are some options that can make it better, with the following config it's way more accurate (pass to VM options): -Dgumtree.match.bu.sim=0.7
Of course it should be documented somewhere ;)
from gumtree.
Can I pass this to the gumtree command , something like
./gumtree webdiff left.js right.js -Dgumtree.match.bu.sim=0.7
(because it's not working like this :) ) or should I add it somewhere else ?
from gumtree.
Good question, I will ask it to floreal.
from gumtree.
Sure
from gumtree.
I have no clue of who did this script (maybe gradle) but it has no chance to work like this.
You can try (let me know which one are working):
./gumtree -Dgumtree.match.bu.sim=0.7 webdiff left.js right.js
JAVA_OPTS="-Dgumtree.match.bu.sim=0.7" ./gumtree webdiff left.js right.js
or (but I'm not sure we have implemented it)
./gumtree "-c match.bu.sim=0.7" webdiff left.js right.js
If none work I'll try it tomorow
from gumtree.
The second command
JAVA_OPTS="-Dgumtree.match.bu.sim=0.7" ./gumtree webdiff left.js right.js
worked.
Thanks
from gumtree.
umm , at instances I am finding the JAVA_OPTS="-Dgumtree.match.bu.sim=0.7"
flag is showing more differences than there actually are in the source files . Can someone explain why it might be ?
from gumtree.
It's not a flag it's a threshold. If you want to know more, you can read our ASE paper where it is described.
from gumtree.
Related Issues (20)
- How to simplify GTD's actions? HOT 1
- Confusing results generated by GTD HOT 2
- Confusion about Move action HOT 1
- Error while running gumtree with textdiff option HOT 16
- 3.0 jdt tree generator does not handle the type arguments of MethodInvocation HOT 4
- No syntax exception raised in some cases for JDT HOT 16
- Order ignored? HOT 3
- Respect .gitignore HOT 9
- `textdiff` has inconsistent range output between formats HOT 3
- Support for renaming files HOT 1
- Docker Image HOT 1
- Reversed left and right in git gd command HOT 1
- Steps to get AST Diff for Python Files HOT 5
- ClassNotFound `org/simmetrics/StringMetrics` HOT 15
- Can't generate a parse tree I get this error HOT 1
- ast diff in with gumtree in the browser for file diff on Github
- generate edit script through command HOT 3
- use gumtree diff two commit edit script HOT 2
- use treesitter parse ast failed HOT 4
- JdtVisitor ignores optionalTagName for javadocs HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gumtree.