(self, alpha)
| 292 | return additions, deletions |
| 293 | |
| 294 | def update_shares(self, alpha): |
| 295 | self.scores = devrank(self.G, alpha=alpha) |
| 296 | for sha in self.history: |
| 297 | self.share[sha] = 0 |
| 298 | for func_name in self.history[sha]: |
| 299 | if func_name in self.G: |
| 300 | # this condition handles the case where |
| 301 | # func_name is deleted by sha, |
| 302 | # but has never been added or modified before |
| 303 | self.share[sha] += \ |
| 304 | (self.history[sha][func_name] / |
| 305 | self.G.node[func_name]['num_lines']) \ |
| 306 | * self.scores[func_name] |
| 307 | |
| 308 | def devrank_commits(self, alpha): |
| 309 | self.update_shares(alpha) |
no test coverage detected