(self, patch)
| 281 | inv_modified_func[func_name] |
| 282 | |
| 283 | def parse_patch(self, patch): |
| 284 | additions, deletions = None, None |
| 285 | try: |
| 286 | additions, deletions = self.patch_parser.parse( |
| 287 | patch.decode('utf-8', 'replace')) |
| 288 | except UnicodeDecodeError: |
| 289 | print("UnicodeDecodeError in function parse_patch!") |
| 290 | except: |
| 291 | print("Unknown error in function parse_patch!") |
| 292 | return additions, deletions |
| 293 | |
| 294 | def update_shares(self, alpha): |
| 295 | self.scores = devrank(self.G, alpha=alpha) |
no test coverage detected