예제 #1
0
 def rating(self):
     """
     Returns rating of snippet on the scale of 0 to 1
     """
     return stats.rating(self.up_votes, self.down_votes)
예제 #2
0
파일: core.py 프로젝트: zemmali/codehunkit
 def guru_level(self):
     """
     Return guru level of code snippets submitted for this language
     """
     return int(stats.rating(self.up_votes, self.down_votes) * 100)
예제 #3
0
파일: core.py 프로젝트: zemmali/codehunkit
 def guru_level(self):
     """
     Return guru level of code snippets submitted by this University students
     """
     return int(stats.rating(self.up_votes, self.down_votes) * 100)
예제 #4
0
파일: core.py 프로젝트: zemmali/codehunkit
 def guru_score(self):
     """
     Return expertness of User on coding based
     """
     return int(stats.rating(self.up_votes, self.down_votes) * 100)
예제 #5
0
 def rating(self):
     """
     Returns rating of snippet on the scale of 0 to 1
     """
     return stats.rating(self.up_votes, self.down_votes)