Skip to content

Commit

Permalink
Merge pull request #196 from vibinex/tr/fix/authorCount
Browse files Browse the repository at this point in the history
Lower number of relevant authors for comment
  • Loading branch information
tapishr authored Nov 29, 2024
2 parents ae0ecf5 + f9b937f commit 19466cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions vibi-dpu/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[package]
name = "vibi-dpu"
version = "2.0.6"
version = "2.0.7"
edition = "2021"
authors = ["Tapish Rathore <tapish@vibinex.com>"]
license = "GPL-3.0-or-later"
description = "Vibinex Data Processing Unit for analysing praivate data"
description = "Vibinex Data Processing Unit for analysing source code"
readme = "README.md"
homepage = "https://vibinex.com"
repository = "https://github.com/vibinex/vibi-dpu"
Expand Down
3 changes: 1 addition & 2 deletions vibi-dpu/src/core/relevance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,13 +190,12 @@ async fn relevant_reviewers_comment_text(relevance_vec: &Vec<Relevance>, auto_as

let (deduplicated_relevance_map, unmapped_aliases) = deduplicated_relevance_vec_for_comment(relevance_vec);
let (filtered_relevance_vec, remaining_relevance_vec) = filter_deduplicated_relevance_map(
&deduplicated_relevance_map, 8, 0.1);
&deduplicated_relevance_map, 4, 0.1);

for (provider_ids, relevance) in &filtered_relevance_vec {
let provider_id_opt = provider_ids.iter().next();
if provider_id_opt.is_some() {
let provider_id = provider_id_opt.expect("Empty provider_id_opt");
log::debug!("[comment-text] provider_id: {:?}", provider_id);
let formatted_relevance_value = format!("{:.2}", *relevance);
comment += &format!("| {} | {}% |\n", provider_id, formatted_relevance_value);
}
Expand Down

0 comments on commit 19466cf

Please sign in to comment.