Master branch updates from beta September 2023 #337

Manually merged
claudio.atzori merged 1271 commits from beta into master 2023-09-06 11:31:09 +02:00
1 changed files with 4 additions and 0 deletions
Showing only changes of commit f2bc665403 - Show all commits

View File

@ -43,6 +43,10 @@ public class PidMatch extends AbstractCondition {
int incommon = Sets.intersection(pidAset, pidBset).size(); int incommon = Sets.intersection(pidAset, pidBset).size();
int simDiff = Sets.symmetricDifference(pidAset, pidBset).size(); int simDiff = Sets.symmetricDifference(pidAset, pidBset).size();
if (incommon + simDiff == 0) {
return new ConditionEval(cond, a, b, 0);
}
int result = incommon / (incommon + simDiff) > 0.5 ? 1 : -1; int result = incommon / (incommon + simDiff) > 0.5 ? 1 : -1;
return new ConditionEval(cond, a, b, result); return new ConditionEval(cond, a, b, result);