clang-tools-extra/clangd/benchmarks/CompletionModel/DecisionForestBenchmark.cpp fails to compile since "CompletionModel.h" is auto-generated from clang-tools-extra/clangd/quality/model/features.json, which was changed in https://reviews.llvm.org/D94697 to remove setFilterLength and setIsForbidden, rename setFileProximityDistance and setSymbolScopeDistance, and add setNumNameInContext and setFractionNameInContext. This patch removes calls to the two removed functions, updates calls to the two renamed functions, and adds calls to the two new functions. (20 is an arbitrary choice for the setNumNameInContext argument.) It also changes the FlipCoin argument from float to double to silence lossy conversion warnings.
Note: I don't use this tool but encountered the build errors and took a shot at fixing them. Please holler if there's another recommended solution. Thanks!
s/keys()/size().