Lines Matching defs:Score
197 float Score = 1;
211 Score *= 6.0 * (1 - S) / (1 + S) + 0.59;
215 Score *= 0.1f;
217 Score *= 0.1f;
219 Score *= 0.2f;
223 Score *= 4; // FIXME: important keywords should have specific boosts.
228 Score *= 1.1f;
231 Score *= 0.8f;
236 Score *= 0.5f;
243 return Score;
356 // Score = [1, 0.82, 0.67, 0.55, 0.45, .., 0]
366 // Score = [2.0, 1.55, 1.2, 0.93, 0.72, 0.65, 0.65, 0.65, .., 0.6]
398 float Score = 1;
403 Score *= NameMatch;
407 Score *= 1 + 2 * std::max(fileProximityScore(Derived.FileProximityDistance),
415 Score *= SemaSaysInScope
420 Score *= 1.5;
431 Score *= 1.5f;
434 Score *= 2;
437 Score *= 4;
447 Score *= 0.5f;
456 Score *= 5.0;
462 Score *= 0.2f;
466 Score *= 0.5f;
470 Score *= 0.5f;
479 Score *= 11.0 * (1 - S) / (1 + S) + 0.7;
484 Score *= 10.0 * (1 - S) / (1 + S) + 0.7;
487 return Score;
513 unsigned Score = fileProximityScore(Derived.FileProximityDistance);
514 OS << llvm::formatv("\tIndex URI proximity: {0} (distance={1})\n", Score,
549 std::string sortText(float Score, llvm::StringRef Name) {
550 // We convert -Score to an integer, and hex-encode for readability.
554 llvm::write_hex(OS, encodeFloat(-Score), llvm::HexPrintStyle::Lower,
555 /*Width=*/2 * sizeof(Score));