MCPcopy Create free account
hub / github.com/FSoft-AI4Code/CodeWiki / get_overall_progress

Method get_overall_progress

codewiki/cli/utils/progress.py:117–131  ·  view source on GitHub ↗

Get overall progress percentage. Returns: Progress (0.0 to 1.0)

(self)

Source from the content-addressed store, hash-verified

115 """
116 completed_weight = sum(self.STAGE_WEIGHTS.get(s, 0) for s in range(1, self.current_stage))
117
118 current_weight = self.STAGE_WEIGHTS.get(self.current_stage, 0) * self.stage_progress
119
120 return completed_weight + current_weight
121
122 def _format_elapsed(self) -> str:
123 """Format elapsed time."""
124 elapsed = time.time() - self.start_time
125 minutes = int(elapsed // 60)
126 seconds = int(elapsed % 60)
127
128 if minutes > 0:
129 return f"{minutes:02d}:{seconds:02d}"
130 else:
131 return f"00:{seconds:02d}"
132
133 def get_eta(self) -> Optional[str]:
134 """

Callers 1

get_etaMethod · 0.95

Calls 1

getMethod · 0.80

Tested by

no test coverage detected