code: private void applyPatchForFeatures() {
          for (int i = 0; i < totalFeatures.length; i++) {
              int total = totalFeatures[i];
              int failures = getFailedFeatures()[i];
              if (total < failures) {
                  // this data must be changed since it was generated by invalid code
                  int tmp = total;
                  totalFeatures[i] = failures;
                  failedFeatures[i] = tmp;
              }
          }
      }
docs: Due to the error with old implementation where total features
  were passed instead of failures (and vice versa) following correction must be applied for trends generated
  between release 3.0.0 and 3.1.0.