# # Say something # hlist = database.AllHackers() elist = database.AllEmployers() # '*****@*****.**' in set(sum(map(lambda el: el.email, hlist), [])) # sum(map(lambda el: el.email, hlist), []) # pdb.set_trace() ndev = nempl = 0 for h in hlist: if len(h.patches) > 0: ndev += 1 for e in elist: if e.count > 0: nempl += 1 reports.Write('Processed %d csets from %d developers\n' % (CSCount, ndev)) reports.Write('%d employers found\n' % (nempl)) reports.Write( 'A total of %d lines added, %d removed, %d changed (delta %d)\n' % (TotalAdded, TotalRemoved, TotalChanged, TotalAdded - TotalRemoved)) if TotalChanged == 0: TotalChanged = 1 # HACK to avoid div by zero if DateStats: PrintDateStats() if CSVPrefix: csvdump.save_csv(CSVPrefix) if CSVFile: csvdump.OutputCSV(CSVFile) CSVFile.close()
bugs = [Bug.parse(l) for l in sys.stdin] for bug in bugs: bug.owner.addbugfixed(bug) empl = bug.owner.emailemployer(bug.owner.email[0], ConfigFile.ParseDate(bug.date)) empl.AddBug(bug) if DumpDB: database.DumpDB () database.MixVirtuals () # # Say something # hlist = database.AllHackers () elist = database.AllEmployers () ndev = nempl = 0 for h in hlist: if len (h.bugsfixed) > 0: ndev += 1 for e in elist: if len(e.bugsfixed) > 0: nempl += 1 reports.Write ('Processed %d bugs from %d developers\n' % (len(bugs), ndev)) reports.Write ('%d employers found\n' % (nempl)) if DevReports: reports.DevBugReports (hlist, len(bugs)) reports.EmplBugReports (elist, len(bugs))