This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Update CC Ranking model with better sampling.
ClosedPublic

Authored by usaxena95 on Jan 14 2021, 9:06 AM.

Details

Summary

A better sampling strategy was used to generate the dataset for this
model.
New signals introduced in this model:

  • NumNameInContext: Number of words in the context that matches the name of the candidate.
  • FractionNameInContext: Fraction of the words in context matching the name of the candidate.

We remove the signal IsForbidden from the model and down rank
forbidden signals aggresively.

Diff Detail

Event Timeline

usaxena95 created this revision.Jan 14 2021, 9:06 AM
usaxena95 requested review of this revision.Jan 14 2021, 9:06 AM
usaxena95 edited the summary of this revision. (Show Details)Jan 14 2021, 9:07 AM
adamcz accepted this revision.Jan 15 2021, 4:33 AM
adamcz added inline comments.
clang-tools-extra/clangd/Quality.cpp
515

Please add a guard for division by zero

This revision is now accepted and ready to land.Jan 15 2021, 4:33 AM
usaxena95 updated this revision to Diff 316969.Jan 15 2021, 8:52 AM

Addressed comments.

This revision was landed with ongoing or failed builds.Jan 15 2021, 9:14 AM
This revision was automatically updated to reflect the committed changes.