Comments (4)
Hi!
Thanks for reporting an issue about GumTree.
This is really strange, Matchers.getInstance().getMatcher(src, dst)
should return an instance of ClassicGumtree
, and not ZsMatcher. Can you provide me the code to reproduce the problem, against the latest commit on the develop branch?
ClassicMatcher is the only (almost 😉) production ready matcher furnished in GumTree, all the others are only implemented for evaluation purpose. However if there is a infinite loop in ZsMatcher
,
I am really interested about the test case since this matcher is used under the hood by ClassicGumtree
.
Cheers!
from gumtree.
Thanks for you response @jrfaller
It is possible that Matchers.getInstance().getMatcher(src, dst)
is returning ClassicGumtree but calling ZsMatcher, I thought it was returning just ZsMatcher because that's what I see on stacktrace when it goes infinite loop.
using these files (I know they are very peculiar).
https://gist.github.com/onhate/21bd5764fcf333051d05e221e7063a5e
and this snippet
TreeContext src = Generators.getInstance().getTree(left.toString());
TreeContext dst = Generators.getInstance().getTree(right.toString());
Matcher matcher = Matchers.getInstance().getMatcher(src.getRoot(), dst.getRoot());
matcher.match();
TreeClassifier classifier = new RootAndLeavesClassifier(src, dst, matcher);
from gumtree.
OK thanks for the files!
The problem seems to come from the variable LZD containing a binary string because when I remove it, it works like a charm.
I am not sure though why it's a problem for ZsMatcher, unless it comes from the levenstein distance that is computed under the hood.
from gumtree.
Actually, the method used to return label similarity is this one :
return 1D - StringMetrics.qGramsDistance().compare(n1.getLabel(), n2.getLabel());
from gumtree.
Related Issues (20)
- How to view the algorithm execution process
- add known mappings to zsmatcher HOT 1
- Gradle build failed HOT 1
- Empty EditScript from non-empty diff HOT 5
- add support for Go HOT 4
- Feature request: Markdown support HOT 2
- Packaging and build issues
- 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 12
- 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
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.