
import requests
from graphviz import Digraph
import module_commiters
import module_projects


f = open('input.txt')
str = f.read()
f.close()
users = str.split(' ')

'''
users = project_commiters('r1chardj0n3s/parse')
print(users)
'''

dot = Digraph(comment='Collaborations', format='png')

for user in users:
	dot.node(user, user)



for user in users:
	user_repos = module_projects.user_projects(user)
	i = 0
	n = min(len(user_repos), 5)
	while i < n:
		repo = user_repos[i]
		i = i + 1
		dot.node(repo, repo)
		commiters = module_commiters.project_commiters(repo)
		result = list(set(commiters) & set(users))
		for commiter in result:
			dot.edge(commiter, repo)
dot.render('github.gv')

@@ -1,13 +1,12 @@
-%0A
 import reque
@@ -86,17 +86,16 @@
 ojects%0A%0A
-%0A
 f = open
@@ -161,78 +161,8 @@
 ')%0A%0A
-'''%0Ausers = project_commiters('r1chardj0n3s/parse')%0Aprint(users)%0A'''%0A%0A
 dot 
@@ -254,18 +254,16 @@
  user)%0A%0A
-%0A%0A
 for user
@@ -328,91 +328,31 @@
 r)%0A%09
-i = 0%0A%09n = min(len(user_repos), 5)%0A%09while i %3C n:%0A%09%09repo = user_repos%5Bi%5D%0A%09%09i = i + 1
+for repo in user_repos:
 %0A%09%09d

Update Main.py (2)