All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gr.uom.java.xmi.diff.StringDistance Maven / Gradle / Ivy

Go to download

RefactoringMiner is a library/API written in Java that can detect refactorings applied in the history of a Java project.

There is a newer version: 3.0.9
Show newest version
package gr.uom.java.xmi.diff;

import org.apache.commons.text.similarity.LevenshteinDistance;

public class StringDistance {
	
	public static int editDistance(String a, String b, int threshold) {
		return new LevenshteinDistance(threshold).apply(a, b);
	}

	public static int editDistance(String a, String b) {
		return new LevenshteinDistance().apply(a, b);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy