Changeset 111

Show
Ignore:
Timestamp:
07/25/06 14:33:42 (2 years ago)
Author:
mk
Message:

Changed IndexRequiredFiles? and IndexFormattedDocstrings? scores a bit.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/mk/cheesecake/cheesecake_index.py

    r110 r111  
    832832        OneOf('test', 'tests'): 30, 
    833833 
    834         'demo': 10, 
    835         OneOf('example', 'examples'): 10, 
     834        OneOf('demo', 'example', 'examples'): 10, 
    836835    } 
    837836 
     
    888887 
    889888class IndexFormattedDocstrings(Index): 
    890     max_value = 5
     889    max_value = 3
    891890 
    892891    def compute(self, object_cnt, docformat_cnt): 
     
    896895 
    897896        # Scale the result. 
    898         # We give 20p for 25% of formatted docstrings, 35p for 50% and 50p for 75%. 
     897        # We give 10p for 25% of formatted docstrings, 20p for 50% and 30p for 75%. 
    899898        self.value = 0 
    900899        if percent > 0.75: 
    901             self.value = 5
     900            self.value = 3
    902901        elif percent > 0.50: 
    903             self.value = 35 
     902            self.value = 20 
    904903        elif percent > 0.25: 
    905             self.value = 2
     904            self.value = 1
    906905 
    907906        self.details = "found %d/%d=%.2f%% objects with formatted docstrings" %\