GithubHelp home page GithubHelp logo

Comments (10)

jrfaller avatar jrfaller commented on June 18, 2024

Can you attach the two files ?

from gumtree.

irajdeep avatar irajdeep commented on June 18, 2024

Sure
left.js.zip
right.js.zip

from gumtree.

jrfaller avatar jrfaller commented on June 18, 2024

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.

irajdeep avatar irajdeep commented on June 18, 2024

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.

jrfaller avatar jrfaller commented on June 18, 2024

Good question, I will ask it to floreal.

from gumtree.

irajdeep avatar irajdeep commented on June 18, 2024

Sure

from gumtree.

morandat avatar morandat commented on June 18, 2024

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.

irajdeep avatar irajdeep commented on June 18, 2024

The second command
JAVA_OPTS="-Dgumtree.match.bu.sim=0.7" ./gumtree webdiff left.js right.js worked.
Thanks

from gumtree.

irajdeep avatar irajdeep commented on June 18, 2024

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.

jrfaller avatar jrfaller commented on June 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.