org = g.get_organization(org_to_mine) print org.login, "has", org.public_repos, "repositories." print "" for repo in org.get_repos(): print "-", repo.name print "" for repo in org.get_repos(): print "---------" print "NOW ANALYSING:", repo.name b = org.get_repo(repo.name) analyse_repo(b, graph) # Getting rid of the node "None", it was used to catch the errors of users that are NoneType if "None" in graph: graph.remove_node('None') print "" print "NODES..." print graph.nodes() print "" print "EDGES..." print graph.edges() print "" print "Converting multiple edges to weighted edges..." print ""
org = g.get_organization(org_to_mine) print org.login,"has",org.public_repos, "repositories." print "" for repo in org.get_repos(): print "-",repo.name print "" for repo in org.get_repos(): print "---------" print "NOW ANALYSING:", repo.name b = org.get_repo(repo.name) analyse_repo(b,graph) # Getting rid of the node "None", it was used to catch the errors of users that are NoneType if "None" in graph: graph.remove_node('None') print "" print "NODES..." print graph.nodes() print "" print "EDGES..." print graph.edges() print "" print "Converting multiple edges to weighted edges..." print ""