public Community AllCommunity() { var community = new Community(); community.Committers = _committerProvider.GetAllMembers(); community.Contributors = _contributorProvider.GetAllContributors(); community.Authors = _packageAuthorProvider.AllPackageAuthors(); return(community); }
private IList <Contributor> InnerGetAllContributors() { var data = RawGetAllContributors(); // Pull out the contributors var comitters = _committerProvider.GetAllMembers(); foreach (var comitter in comitters) { var existing = (Contributor)null; if (data.TryGetValue(comitter.GithubUsername, out existing)) { comitter.Contributions = existing.Contributions; data.Remove(comitter.GithubUsername); } } data = data.OrderByDescending(x => x.Value.Contributions).ToDictionary(x => x.Key, x => x.Value); return(data.Values.ToList()); }