Package ch.uzh.ifi.seal.changedistiller.treedifferencing.matching.measure

Examples of ch.uzh.ifi.seal.changedistiller.treedifferencing.matching.measure.TokenBasedCalculator


        assertThat(calculateSimilarity("change distiller", "/* merlin distiller\n* change */"), is(closeTo(1.0, 0.5)));
    }

    @Override
    protected double calculateSimilarity(String left, String right) {
        return new TokenBasedCalculator().calculateSimilarity(left, right);
    }
View Full Code Here


                Node /* T1 */v = (Node) w.getParent();

                // ii. If v(w) != v(x)
                boolean equals = true;
                if (l(w).isComment()) {
                    TokenBasedCalculator tbc = new TokenBasedCalculator();
                    double sim = tbc.calculateSimilarity(v(w), v(x));
                    equals = sim == 1.0;
                } else {
                    equals = v(w).equals(v(x));
                }
                if (!equals) {
View Full Code Here

TOP

Related Classes of ch.uzh.ifi.seal.changedistiller.treedifferencing.matching.measure.TokenBasedCalculator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.