Пример #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
 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
 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
 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)