use of de.dagere.peass.analysis.properties.ChangeProperties in project peass by DaGeRe.
the class GuessClassificationsByRules method call.
@Override
public Void call() throws Exception {
RepoFolders repos = new RepoFolders();
File propertyFile = new File(methodFileFolder.getParentFile(), project + ".json");
File classificationFile = new File(repos.getClassificationFolder(), project + ".json");
Classification manual = Constants.OBJECTMAPPER.readValue(classificationFile, Classification.class);
final VersionChangeProperties changes = Constants.OBJECTMAPPER.readValue(propertyFile, VersionChangeProperties.class);
for (Entry<String, ChangeProperties> version : changes.getVersions().entrySet()) {
guessVersion(manual, version);
}
System.out.println("Correct: " + correct + " Wrong " + wrong + " All: " + all);
return null;
}
Aggregations