fork of https://github.com/sourcegraph/zoekt
0

Configure Feed

Select the types of activity you want to include in your feed.

scoring: show atom count in debug score (#669)

Tiny change to display the atom count. I caught myself several times trying to
translate the score to an atom count.

Test plan:
Ran it locally

author
Stefan Hengl
committer
GitHub
date (Oct 23, 2023, 10:39 AM +0200) commit ca7ee51e parent c869a248
+1 -1
+1 -1
eval.go
··· 411 411 // atom-count boosts files with matches from more than 1 atom. The 412 412 // maximum boost is scoreFactorAtomMatch. 413 413 if atomMatchCount > 0 { 414 - fileMatch.addScore("atom", (1.0-1.0/float64(atomMatchCount))*scoreFactorAtomMatch, opts.DebugScore) 414 + fileMatch.addScore(fmt.Sprintf("atom(%d)", atomMatchCount), (1.0-1.0/float64(atomMatchCount))*scoreFactorAtomMatch, opts.DebugScore) 415 415 } 416 416 417 417 maxFileScore := 0.0