Lines Matching refs:score
431 def score(self, member in ScoreCard
469 score = {
476 score['handshakes'] = self.handshakes()
478 score['downloads'] = self.downloads(count=download_count,
481 score['uploads'] = self.uploads(count=upload_count,
484 score['requests'] = self.requests(req_count=req_count)
486 return score
507 def print_score(self, score): argument
509 if 'handshakes' in score:
513 for key, val in score["handshakes"].items():
520 if 'downloads' in score:
527 for sskey, ssval in score['downloads'].items():
532 for mkey, mval in score['downloads'][sskey].items():
542 for size in score['downloads']:
543 size_score = score['downloads'][size]
562 if 'uploads' in score:
569 for sskey, ssval in score['uploads'].items():
586 size_score = score['uploads'][size]
608 if 'requests' in score:
614 for sskey, ssval in score['requests'].items():
619 for mkey in score['requests'][sskey]:
631 size_score = score['requests'][size]
632 count = score['requests']['count']
831 score = card.score(handshakes=handshakes,
839 print(json.JSONEncoder(indent=2).encode(score))
841 card.print_score(score)