Comments (4)
Hi Christopher,
Thanks for the feedback. It is highly possible that the edit script serializer is not entirely correct w.r.t. to node ids or positions because it has not been tested extensively.
Normally the edit script is formalized in our ASE paper you can read it to better understand. Maybe if you have a (small) case with a problem, you can attach the files here and I will take a look at it.
from gumtree.
I'll put together a few unit tests today on my fork to test whether the output matches what I'm expecting, then I'll add a short description here, together with a quick definition of the edit operations, based on the ASE paper.
from gumtree.
I ended up finding a slightly simpler way around the problem (in theory). I just need to use the mappings to work out the IDs of the nodes of interest in P and P', and from there I can do all kinds of clever analyses (some of which use the mappings to simplify things).
I recall seeing that someone else had modified GumTree to return the mappings, in addition to the edit script. I don't suppose you know the simplest way I might go about doing that?
from gumtree.
Accepting this pull request would add the functionality required to fix these problems (in a pre-processing stage): #21
from gumtree.
Related Issues (20)
- 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
- What is the difference between monaco, classic, monaco-native? HOT 5
- Including PLSQL HOT 15
- Is there a version supported by jdk8? HOT 1
- [Question] Why does deepCopy not copy over metadata? HOT 2
- parse go throw ClassCastException HOT 1
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.