def do_stats(self, fp, records):
     stats = Statistics([StatisticsAuthorNameColumn('Name', lambda x : x.author)])
     stats.process_records(records.open_comments, [
         StatisticsDistinctCountColumn('Commented', lambda x : x.change)
         ])
     stats.process_records(records.open_votes, [
         StatisticsDistinctCountColumn('Voted', lambda x : x.change)
         ])
     stats.print_stats(fp, sort_by='Commented')
 def do_stats(self, fp, records):
     stats = Statistics([StatisticsAuthorNameColumn('Name', lambda x : x.author)])
     stats.process_records(records.open_changes, [
         StatisticsCountColumn('Open', lambda x : True),
         StatisticsCountColumn('RFC/WIP', lambda x : x.is_rfc_wip),
         StatisticsCountColumn('-Verified',
             lambda x : not x.is_rfc_wip and not x.is_verified),
         StatisticsCountColumn('-Review',
             lambda x : not x.is_rfc_wip and x.is_verified and x.is_downvoted),
         StatisticsCountColumn('Approved',
             lambda x : not x.is_rfc_wip and x.is_verified and x.is_approved),
         StatisticsCountColumn('+Review',
             lambda x : not x.is_rfc_wip and x.is_verified and not x.is_approved and x.is_upvoted),
         StatisticsCountColumn('Comments',
             lambda x : not x.is_rfc_wip and x.is_verified and not x.is_upvoted and not x.is_downvoted and x.has_comments),
         StatisticsCountColumn('Nothing',
             lambda x : not x.is_rfc_wip and x.is_verified and not x.has_comments)
         ])
     stats.print_stats(fp, sort_by='Open')
 def do_stats(self, fp, records):
     stats = Statistics([StatisticsAuthorNameColumn('Name', lambda x : x.author)])
     stats.process_records(records.comments, [
         StatisticsCountColumn('Comments', lambda x : x.timestamp)
         ])
     stats.process_records(records.technical_comments, [
         StatisticsCountColumn('Technical', lambda x : x.timestamp)
         ])
     stats.process_records(records.votes, [
         StatisticsCountColumn('Votes', lambda x : x.timestamp)
         ])
     stats.print_stats(fp, sort_by='Comments')
 def do_stats(self, fp, records):
     stats = Statistics([StatisticsAuthorNameColumn('Name', lambda x : x.author)])
     stats.process_records(records.change_activity, [
         StatisticsCountColumn('Created', lambda x : x.created_on),
         StatisticsCountColumn('Merged', lambda x : x.merged_on),
         StatisticsCountColumn('Abandoned', lambda x : x.abandoned_on),
         StatisticsCountColumn('Both', lambda x : x.created_on and x.closed_on)
         ])
     stats.process_records(records.comments, [
         StatisticsDistinctCountColumn('Commented', lambda x : x.change if x.timestamp else None)
         ])
     stats.process_records(records.votes, [
         StatisticsDistinctCountColumn('Voted', lambda x : x.change if x.timestamp else None)
         ])
     stats.print_stats(fp, sort_by='Voted')