Home
last modified time | relevance | path

Searched refs:FlipCoin (Results 1 – 1 of 1) sorted by relevance

/external/llvm-project/clang-tools-extra/clangd/benchmarks/CompletionModel/
DDecisionForestBenchmark.cpp24 auto FlipCoin = [&](float Probability) { in generateRandomDataset() local
36 E.setIsDeprecated(FlipCoin(0.1)); // Boolean. in generateRandomDataset()
37 E.setIsReservedName(FlipCoin(0.1)); // Boolean. in generateRandomDataset()
38 E.setIsImplementationDetail(FlipCoin(0.3)); // Boolean. in generateRandomDataset()
42 E.setIsNameInContext(FlipCoin(0.5)); // Boolean. in generateRandomDataset()
43 E.setIsForbidden(FlipCoin(0.1)); // Boolean. in generateRandomDataset()
44 E.setIsInBaseClass(FlipCoin(0.3)); // Boolean. in generateRandomDataset()
46 FlipCoin(0.1) ? 999999 // Sometimes file distance is not available. in generateRandomDataset()
50 FlipCoin(0.1) ? 999999 // Sometimes scope distance is not available. in generateRandomDataset()
52 E.setSemaSaysInScope(FlipCoin(0.5)); // Boolean. in generateRandomDataset()
[all …]