package statocaml_plots

  1. Overview
  2. Docs

Parameter Register.P

type dated = {
  1. mutable commits : Statocaml_profile.T.S.Sset.t;
  2. mutable lines_added : int;
  3. mutable lines_deleted : int;
  4. mutable issues : Statocaml_profile.T.S.Iset.t;
  5. mutable issues_created : Statocaml_profile.T.S.Iset.t;
  6. mutable issue_comments : Statocaml_profile.T.S.Iset.t;
  7. mutable issues_reviewed : Statocaml_profile.T.S.Iset.t;
  8. mutable prs : Statocaml_profile.T.S.Iset.t;
  9. mutable prs_created : Statocaml_profile.T.S.Iset.t;
  10. mutable prs_created_merged : Statocaml_profile.T.S.Iset.t;
  11. mutable pr_author_commits : Statocaml_profile.T.S.Sset.t;
  12. mutable lines_added_in_prs_as_author : int list;
  13. mutable lines_deleted_in_prs_as_author : int list;
  14. mutable avg_lines_added_by_pr_as_author : float option;
  15. mutable avg_lines_deleted_by_pr_as_author : float option;
  16. mutable pr_comments : Statocaml_profile.T.S.Iset.t;
  17. mutable pr_review_comments : Statocaml_profile.T.S.Iset.t;
  18. mutable pr_review_commits : Statocaml_profile.T.S.Sset.t;
  19. mutable lines_added_in_prs_as_reviewer : int list;
  20. mutable lines_deleted_in_prs_as_reviewer : int list;
  21. mutable avg_lines_added_by_pr_as_reviewer : float option;
  22. mutable avg_lines_deleted_by_pr_as_reviewer : float option;
  23. mutable prs_reviewed : Statocaml_profile.T.S.Iset.t;
  24. mutable prs_reviewed_from_changelog : Statocaml_profile.T.S.Iset.t;
  25. mutable subsys_issues : float Subs.Map.t;
  26. mutable subsys_commits : float Subs.Map.t;
  27. mutable subsys_committed_files : float Subs.Map.t;
  28. mutable subsys_committed_lines : float Subs.Map.t;
  29. mutable reviewer_of_shared : float Statocaml_profile.T.S.Imap.t;
  30. mutable reviewed_by_shared : float Statocaml_profile.T.S.Imap.t;
  31. mutable reviewer_of : float Statocaml_profile.T.S.Imap.t;
  32. mutable reviewed_by : float Statocaml_profile.T.S.Imap.t;
  33. mutable as_author : Statocaml_profile.T.S.Iset.t;
  34. mutable as_analyst : Statocaml_profile.T.S.Iset.t;
  35. mutable as_reviewer : Statocaml_profile.T.S.Iset.t;
  36. mutable as_reporter : Statocaml_profile.T.S.Iset.t;
  37. mutable as_suggester : Statocaml_profile.T.S.Iset.t;
  38. mutable as_other : Statocaml_profile.T.S.Iset.t;
  39. mutable activity_score : float;
}
val new_dated : unit -> dated
val merge_dated : src:dated -> dst:dated -> unit
val pp_dated : Format.formatter -> dated -> unit
and profile = {
  1. id : Statocaml_profile.T.user_id;
  2. kind : profile_kind;
  3. gh_user : Statocaml_profile.T.GH.Types.full_user option;
  4. name : string;
  5. mutable dateds : dated Statocaml_profile.T.Period.Map.t;
}
val opt_dated : profile -> Statocaml_profile.T.Period.t -> dated option
type finger
val finger_find : ?email:string -> ?login:string -> ?name:string -> ?commit:Statocaml_profile.T.GH.Types.commit -> ?id:Statocaml_profile.T.user_id -> finger -> profile option
type predefined_profile = {
  1. names : string list;
  2. gh_login : string;
  3. emails : string list;
}
val predefined_profiles_from_file : string -> predefined_profile list Lwt.t
val groups_from_file : string -> string Statocaml_profile.T.group Statocaml_profile.T.S.Smap.t Lwt.t
type gstats = {
  1. mutable g_issues : Statocaml_profile.T.GH.Types.issue Statocaml_profile.T.S.Imap.t;
  2. mutable g_prs : pr Statocaml_profile.T.S.Imap.t;
  3. mutable g_commits : Statocaml_profile.T.GH.Types.commit Statocaml_profile.T.S.Smap.t;
  4. mutable g_committers : (Statocaml_profile.T.user_id * int) list;
  5. mutable g_pr_commits : Statocaml_profile.T.GH.Types.commit Statocaml_profile.T.S.Smap.t;
  6. mutable g_pr_committers : (Statocaml_profile.T.user_id * int) list;
  7. mutable g_issue_comments : int;
  8. mutable g_issue_commenters : (Statocaml_profile.T.user_id * int) list;
  9. mutable g_issue_participants : (Statocaml_profile.T.user_id * int) list;
  10. mutable g_issue_creators : (Statocaml_profile.T.user_id * int) list;
  11. mutable g_issue_reviewers : (Statocaml_profile.T.user_id * int) list;
  12. mutable g_pr_comments : int;
  13. mutable g_pr_commenters : (Statocaml_profile.T.user_id * int) list;
  14. mutable g_pr_participants : (Statocaml_profile.T.user_id * int) list;
  15. mutable g_pr_creators : (Statocaml_profile.T.user_id * int) list;
  16. mutable g_pr_reviewers : (Statocaml_profile.T.user_id * int) list;
  17. mutable g_pr_reviewers_from_changelog : (Statocaml_profile.T.user_id * int) list;
  18. mutable g_prs_of_subsys : Statocaml_profile.T.S.Iset.t Subs.Map.t;
  19. mutable g_subsys_commits : float Subs.Map.t;
  20. mutable g_active_contributors : (Statocaml_profile.T.user_id * float) list;
}
val gstats : unit -> gstats
type max = {
  1. mutable max_committer : int * Statocaml_profile.T.user_id;
  2. mutable max_issue_commenter : int * Statocaml_profile.T.user_id;
  3. mutable max_issue_reviewer : int * Statocaml_profile.T.user_id;
  4. mutable max_issue_creator : int * Statocaml_profile.T.user_id;
  5. mutable max_pr_commenter : int * Statocaml_profile.T.user_id;
  6. mutable max_pr_creator : int * Statocaml_profile.T.user_id;
  7. mutable max_pr_reviewer : int * Statocaml_profile.T.user_id;
  8. mutable max_pr_reviewer_from_changelog : int * Statocaml_profile.T.user_id;
  9. mutable max_subsys_commits : (int * Statocaml_profile.T.user_id) Subs.Map.t;
}
type t = {
  1. repo_name : string;
  2. finger : finger;
  3. mutable stats : gstats Statocaml_profile.T.Period.Map.t;
  4. mutable max : max Statocaml_profile.T.Period.Map.t;
  5. orig_issues : Statocaml_profile.T.GH.Types.issue Statocaml_profile.T.S.Imap.t;
  6. orig_commits : Statocaml_profile.T.GH.Types.commit Statocaml_profile.T.S.Smap.t;
  7. get_gh_user : string -> Statocaml_profile.T.GH.Types.full_user option;
  8. orig_changelog : Changelog.t option;
  9. orig_events : Statocaml_profile.T.S.Types.event list;
  10. has_changelog : bool;
}
val dup : t -> t
val profiles : t -> profiles
val profile_opt : t -> Statocaml_profile.T.user_id -> profile option
val with_profiles : t -> profiles -> t
val dot_review : title:string -> ?profile_link:(profile -> string) -> file:string -> ?output_type:string -> directed:bool -> profile Statocaml_profile.T.S.Imap.t -> unit Lwt.t
val issue_creation_year : Statocaml_profile.T.GH.Types.issue -> int