Ejemplo n.º 1
0
def count_stats():
    issue = 0
    commit = 0
    comment = 0
    milestone = 0
    for item in files:
        print item
        issue_data = read.get_issues(item)
        issue += len(issue_data.keys())
        print "ISSUE: " + str(len(issue_data.keys()))
        milestone_data = read.get_milestones(item)
        milestone += len(milestone_data)
        print "milestone: " + str(len(milestone_data))
        comment_data = read.get_comments(item)
        comment += len(comment_data)
        print "comment: " + str(len(comment_data))
        commit_data = read.get_commits(item)
        commit += len(commit_data)
        print "commit: " + str(len(commit_data))
        print
    print "Total"
    print "ISSUE: " + str(issue)
    print "commit: " + str(commit)
    print "comment: " + str(comment)
    print "milestone: " + str(milestone)
    print
Ejemplo n.º 2
0
def count_stats():
	issue = 0
	commit = 0
	comment = 0
	milestone = 0
	for item in files:
		print item
		issue_data = read.get_issues(item)
		issue += len(issue_data.keys())
		print "ISSUE: " + str(len(issue_data.keys()))
		milestone_data = read.get_milestones(item)
		milestone += len(milestone_data)
		print "milestone: " + str(len(milestone_data))
		comment_data = read.get_comments(item)
		comment += len(comment_data)
		print "comment: " + str(len(comment_data))
		commit_data = read.get_commits(item)
		commit += len(commit_data)
		print "commit: " + str(len(commit_data))
		print
	print "Total"
	print "ISSUE: " + str(issue)
	print "commit: " + str(commit)
	print "comment: " + str(comment)
	print "milestone: " + str(milestone)
	print
Ejemplo n.º 3
0
def process_4():
    for item in files:
        issue_data = read.get_issues(item)
        comments = read.get_comments(item)
        user_dict = {}
        for comment in comments:
            if comment["issue"]:
                if comment["issue"] in user_dict.keys():
                    user_dict[comment["issue"]] += 1
                else:
                    user_dict[comment["issue"]] = 1
        user_dict = user_dict.values()
        print "Project " + item
        print "Total issues: " + str(len(issue_data))
        print "Commented issues: " + str(len(user_dict))
        print "Mean: " + str(np.mean(user_dict))
        print "Std: " + str(np.std(user_dict))
        print "Min: " + str(min(user_dict))
        print "Max: " + str(max(user_dict))
        print
Ejemplo n.º 4
0
def process_4():
	for item in files:
		issue_data = read.get_issues(item)
		comments = read.get_comments(item)
		user_dict = {}
		for comment in comments:
			if comment["issue"]:
				if comment["issue"] in user_dict.keys():
					user_dict[comment["issue"]] += 1
				else:
					user_dict[comment["issue"]] = 1
		user_dict = user_dict.values()
		print "Project " + item
		print "Total issues: " + str(len(issue_data))
		print "Commented issues: " + str(len(user_dict))
		print "Mean: " + str(np.mean(user_dict))
		print "Std: " + str(np.std(user_dict))
		print "Min: " + str(min(user_dict))
		print "Max: " + str(max(user_dict))
		print
Ejemplo n.º 5
0
def process_5():
    for item in files:
        comments = read.get_comments(item)
        users = [x["user"] for x in comments]
        users = Counter(users)
        graph.pie_chart(users, "Project " + item)
Ejemplo n.º 6
0
def process_5():
	for item in files:
		comments = read.get_comments(item)
		users = [x["user"] for x in comments]
		users = Counter(users)
		graph.pie_chart(users, "Project "+item)