Esempio n. 1
0
from commit import Commit
from issue import Issue
from comment import Comment

tnum = input("insert the team number : ")
ci = Commit()
ci.go(tnum)

i = Issue()
i.go(tnum)

ce = Comment()
ce.go(tnum)

bunmo = ci.totalnum + i.totalnum + ce.totalnum

summation = 0
for k in i.a.keys():
    commitnum = ci.a[k]
    issuenum = i.a[k]
    commentnum = ce.a[k]
    bunja = commitnum + issuenum + commentnum
    result = bunja / bunmo * 100
    print(k, " 's score : ", result)

    summation += result

mean = summation / len(i.a.keys())
print("mean : ", mean)
Esempio n. 2
0
from commit import Commit
from issue import Issue
from comment import Comment

tnum = input("insert the team number : ")
ci = Commit()
ci.go(tnum)

iss = Issue()
iss.go(tnum)

ce = Comment()
ce.go(tnum)

days_score = {}
for i in ci.day_all.keys():  # 가장 넓은 범위의 날짜
    # 분모 계산(전체 커밋 + 이슈 + 코멘트)
    bunmo = 0
    if i in ci.day_all.keys():
        bunmo += ci.day_all[i]

    if i in ce.day_all.keys():
        bunmo += ce.day_all[i]

    if i in iss.day_all.keys():
        bunmo += iss.day_all[i]

    for j in ci.day.keys():  #가장 넓은 범위의 이름
        bunja = 0
        if j in ci.day.keys():
            if i in ci.day[j].keys():