From 9534ce7d965202ed7df4e62c3a713a7506eb96de Mon Sep 17 00:00:00 2001 From: "Vincent A. Cicirello" Date: Fri, 1 Dec 2023 17:30:33 -0500 Subject: [PATCH 1/6] removed adjustment for watching own repos --- src/Statistician.py | 22 ++----------- src/queries/watchingAdjustment.graphql | 14 -------- tests/tests.py | 45 +++++++++----------------- 3 files changed, 19 insertions(+), 62 deletions(-) delete mode 100644 src/queries/watchingAdjustment.graphql diff --git a/src/Statistician.py b/src/Statistician.py index 559d79c9..b9900714 100644 --- a/src/Statistician.py +++ b/src/Statistician.py @@ -92,9 +92,6 @@ def __init__( fail) oneYearContribTemplate = self.loadQuery("/queries/singleYearQueryFragment.graphql", fail) - watchingAdjustmentQuery = self.loadQuery("/queries/watchingAdjustment.graphql", - fail) - reposContributedTo = self.loadQuery("/queries/reposContributedTo.graphql", fail) @@ -104,9 +101,6 @@ def __init__( self.executeQuery(additionalRepoStatsQuery, needsPagination=True, failOnError=fail), - self.executeQuery(watchingAdjustmentQuery, - needsPagination=True, - failOnError=fail), self.executeQuery(reposContributedTo, needsPagination=True, failOnError=fail) @@ -152,13 +146,12 @@ def loadQuery(self, queryFilepath, failOnError=True): set_outputs({"exit-code" : 1}) exit(1 if failOnError else 0) - def parseStats(self, basicStats, repoStats, watchingStats, reposContributedToStats): + def parseStats(self, basicStats, repoStats, reposContributedToStats): """Parses the user statistics. Keyword arguments: basicStats - The results of the basic stats query. repoStats - The results of the repo stats query. - watchingStats - The results of the query of repositories the user is watching. """ # Extract username (i.e., login) and fullname. # Name needed for title of statistics card, and username @@ -208,7 +201,6 @@ def parseStats(self, basicStats, repoStats, watchingStats, reposContributedToSta # Reorganize for simplicity repoStats = list(map(lambda x : x["data"]["user"]["repositories"], repoStats)) - watchingStats = list(map(lambda x : x["data"]["user"]["watching"], watchingStats)) reposContributedToStats = list( map(lambda x : x["data"]["user"]["topRepositories"], reposContributedToStats)) @@ -286,20 +278,12 @@ def parseStats(self, basicStats, repoStats, watchingStats, reposContributedToSta watchers = sum( repo["watchers"]["totalCount"] for page in repoStats if page[ "nodes"] != None for repo in page["nodes"] if not repo["isPrivate"]) - watchers -= watchingStats[0]["totalCount"] - - if watchingStats[0]["totalCount"] > 0: - watchingMyOwnNonForks = sum( - 1 for page in watchingStats if page[ - "nodes"] != None for repo in page["nodes"] if not repo["isFork"]) - else: - watchingMyOwnNonForks = 0 + watchersNonForks = sum( repo["watchers"]["totalCount"] for page in repoStats if page[ "nodes"] != None for repo in page["nodes"] if not repo[ "isPrivate"] and not repo["isFork"]) - watchersNonForks -= watchingMyOwnNonForks - + # Count of private repos (not accurate since depends on token used to authenticate query, # however, all those here are included in count of owned repos. privateCount = sum( diff --git a/src/queries/watchingAdjustment.graphql b/src/queries/watchingAdjustment.graphql deleted file mode 100644 index 496cfcf6..00000000 --- a/src/queries/watchingAdjustment.graphql +++ /dev/null @@ -1,14 +0,0 @@ -query($owner: String!, $endCursor: String) { - user(login: $owner) { - watching(first: 100, after: $endCursor, ownerAffiliations: OWNER, privacy: PUBLIC) { - totalCount - nodes { - isFork - } - pageInfo { - hasNextPage - endCursor - } - } - } -} diff --git a/tests/tests.py b/tests/tests.py index 584aaf47..b36a6602 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -53,8 +53,6 @@ [{'data': {'user': {'repositories': {'totalCount': 31, 'nodes': [{'stargazerCount': 0, 'forkCount': 0, 'isArchived': True, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo1', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 1, 'totalSize': 7139, 'edges': [{'size': 7139, 'node': {'color': '#b07219', 'name': 'Java'}}]}}, {'stargazerCount': 0, 'forkCount': 0, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo2', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 4, 'totalSize': 1479512, 'edges': [{'size': 1309108, 'node': {'color': '#e34c26', 'name': 'HTML'}}, {'size': 168479, 'node': {'color': '#3D6117', 'name': 'TeX'}}, {'size': 1721, 'node': {'color': '#563d7c', 'name': 'CSS'}}, {'size': 204, 'node': {'color': '#f1e05a', 'name': 'JavaScript'}}]}}, {'stargazerCount': 0, 'forkCount': 0, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo3', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 1, 'totalSize': 5842, 'edges': [{'size': 5842, 'node': {'color': '#b07219', 'name': 'Java'}}]}}, {'stargazerCount': 3, 'forkCount': 0, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo4', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 2, 'totalSize': 45961, 'edges': [{'size': 44035, 'node': {'color': '#b07219', 'name': 'Java'}}, {'size': 1926, 'node': {'color': '#89e051', 'name': 'Shell'}}]}}, {'stargazerCount': 0, 'forkCount': 0, 'isArchived': True, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo5', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 1, 'totalSize': 7717, 'edges': [{'size': 7717, 'node': {'color': '#b07219', 'name': 'Java'}}]}}, {'stargazerCount': 0, 'forkCount': 0, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo6', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 1, 'totalSize': 8491, 'edges': [{'size': 8491, 'node': {'color': '#b07219', 'name': 'Java'}}]}}, {'stargazerCount': 0, 'forkCount': 3, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo7', 'watchers': {'totalCount': 2}, 'languages': {'totalCount': 1, 'totalSize': 74003, 'edges': [{'size': 74003, 'node': {'color': '#3572A5', 'name': 'Python'}}]}}, {'stargazerCount': 3, 'forkCount': 2, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo8', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 1, 'totalSize': 739339, 'edges': [{'size': 739339, 'node': {'color': '#b07219', 'name': 'Java'}}]}}, {'stargazerCount': 2, 'forkCount': 0, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo9', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 1, 'totalSize': 52285, 'edges': [{'size': 52285, 'node': {'color': '#b07219', 'name': 'Java'}}]}}, {'stargazerCount': 7, 'forkCount': 4, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo10', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 1, 'totalSize': 2100055, 'edges': [{'size': 2100055, 'node': {'color': '#b07219', 'name': 'Java'}}]}}, {'stargazerCount': 3, 'forkCount': 0, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo11', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 3, 'totalSize': 266774, 'edges': [{'size': 198236, 'node': {'color': '#b07219', 'name': 'Java'}}, {'size': 34345, 'node': {'color': '#3D6117', 'name': 'TeX'}}, {'size': 34193, 'node': {'color': '#e34c26', 'name': 'HTML'}}]}}, {'stargazerCount': 3, 'forkCount': 2, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo12', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 2, 'totalSize': 39091, 'edges': [{'size': 38882, 'node': {'color': '#3572A5', 'name': 'Python'}}, {'size': 209, 'node': {'color': '#384d54', 'name': 'Dockerfile'}}]}}, {'stargazerCount': 0, 'forkCount': 0, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo13', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 0, 'totalSize': 0, 'edges': []}}, {'stargazerCount': 0, 'forkCount': 1, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo14', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 1, 'totalSize': 852, 'edges': [{'size': 852, 'node': {'color': '#384d54', 'name': 'Dockerfile'}}]}}, {'stargazerCount': 0, 'forkCount': 0, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo15', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 1, 'totalSize': 787, 'edges': [{'size': 787, 'node': {'color': '#384d54', 'name': 'Dockerfile'}}]}}, {'stargazerCount': 1, 'forkCount': 2, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo16', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 1, 'totalSize': 1412, 'edges': [{'size': 1412, 'node': {'color': '#384d54', 'name': 'Dockerfile'}}]}}, {'stargazerCount': 0, 'forkCount': 0, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo17', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 0, 'totalSize': 0, 'edges': []}}, {'stargazerCount': 2, 'forkCount': 0, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo18', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 2, 'totalSize': 31866, 'edges': [{'size': 31656, 'node': {'color': '#3572A5', 'name': 'Python'}}, {'size': 210, 'node': {'color': '#384d54', 'name': 'Dockerfile'}}]}}, {'stargazerCount': 0, 'forkCount': 0, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo19', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 1, 'totalSize': 692, 'edges': [{'size': 692, 'node': {'color': '#384d54', 'name': 'Dockerfile'}}]}}, {'stargazerCount': 2, 'forkCount': 0, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo20', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 4, 'totalSize': 36101, 'edges': [{'size': 26436, 'node': {'color': '#b07219', 'name': 'Java'}}, {'size': 7807, 'node': {'color': '#3572A5', 'name': 'Python'}}, {'size': 1758, 'node': {'color': '#427819', 'name': 'Makefile'}}, {'size': 100, 'node': {'color': '#C1F12E', 'name': 'Batchfile'}}]}}, {'stargazerCount': 0, 'forkCount': 0, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo21', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 2, 'totalSize': 107241, 'edges': [{'size': 106048, 'node': {'color': '#b07219', 'name': 'Java'}}, {'size': 1193, 'node': {'color': '#427819', 'name': 'Makefile'}}]}}, {'stargazerCount': 1, 'forkCount': 0, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': True, 'name': 'repo22', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 2, 'totalSize': 1943, 'edges': [{'size': 1469, 'node': {'color': '#3572A5', 'name': 'Python'}}, {'size': 474, 'node': {'color': '#384d54', 'name': 'Dockerfile'}}]}}, {'stargazerCount': 9, 'forkCount': 14, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo23', 'watchers': {'totalCount': 2}, 'languages': {'totalCount': 2, 'totalSize': 46228, 'edges': [{'size': 45994, 'node': {'color': '#3572A5', 'name': 'Python'}}, {'size': 234, 'node': {'color': '#384d54', 'name': 'Dockerfile'}}]}}, {'stargazerCount': 0, 'forkCount': 0, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo24', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 2, 'totalSize': 91844, 'edges': [{'size': 90353, 'node': {'color': '#b07219', 'name': 'Java'}}, {'size': 1491, 'node': {'color': '#427819', 'name': 'Makefile'}}]}}, {'stargazerCount': 0, 'forkCount': 0, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo25', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 0, 'totalSize': 0, 'edges': []}}, {'stargazerCount': 0, 'forkCount': 0, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo26', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 2, 'totalSize': 1984, 'edges': [{'size': 1763, 'node': {'color': '#3572A5', 'name': 'Python'}}, {'size': 221, 'node': {'color': '#384d54', 'name': 'Dockerfile'}}]}}, {'stargazerCount': 0, 'forkCount': 0, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo27', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 0, 'totalSize': 0, 'edges': []}}, {'stargazerCount': 0, 'forkCount': 0, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo28', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 0, 'totalSize': 0, 'edges': []}}, {'stargazerCount': 0, 'forkCount': 0, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo29', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 3, 'totalSize': 75220, 'edges': [{'size': 72961, 'node': {'color': '#3572A5', 'name': 'Python'}}, {'size': 1902, 'node': {'color': '#e10098', 'name': 'GraphQL'}}, {'size': 357, 'node': {'color': '#384d54', 'name': 'Dockerfile'}}]}}, {'stargazerCount': 0, 'forkCount': 0, 'isArchived': False, 'isFork': True, 'isPrivate': False, 'isTemplate': False, 'name': 'repo30', 'watchers': {'totalCount': 0}, 'languages': {'totalCount': 0, 'totalSize': 0, 'edges': []}}, {'stargazerCount': 0, 'forkCount': 0, 'isArchived': False, 'isFork': True, 'isPrivate': False, 'isTemplate': False, 'name': 'repo31', 'watchers': {'totalCount': 0}, 'languages': {'totalCount': 7, 'totalSize': 1415534, 'edges': [{'size': 998990, 'node': {'color': '#f1e05a', 'name': 'JavaScript'}}, {'size': 247728, 'node': {'color': '#2b7489', 'name': 'TypeScript'}}, {'size': 127643, 'node': {'color': '#e34c26', 'name': 'HTML'}}, {'size': 26509, 'node': {'color': '#c6538c', 'name': 'SCSS'}}, {'size': 5854, 'node': {'color': '#3572A5', 'name': 'Python'}}, {'size': 5303, 'node': {'color': '#89e051', 'name': 'Shell'}}, {'size': 3507, 'node': {'color': '#384d54', 'name': 'Dockerfile'}}]}}], 'pageInfo': {'hasNextPage': False, 'endCursor': 'Y3Vyc29yOnYyOpHOFwfoDg=='}}}}}], - [{'data': {'user': {'watching': {'totalCount': 28, 'nodes': [{'isFork': False}, {'isFork': False}, {'isFork': False}, {'isFork': False}, {'isFork': False}, {'isFork': False}, {'isFork': False}, {'isFork': False}, {'isFork': False}, {'isFork': False}, {'isFork': False}, {'isFork': False}, {'isFork': False}, {'isFork': False}, {'isFork': False}, {'isFork': False}, {'isFork': False}, {'isFork': False}, {'isFork': False}, {'isFork': False}, {'isFork': False}, {'isFork': False}, {'isFork': False}, {'isFork': False}, {'isFork': False}, {'isFork': False}, {'isFork': False}, {'isFork': False}], 'pageInfo': {'hasNextPage': False, 'endCursor': 'Mjg'}}}}}], - {'data': {'user': {'year2021': {'totalCommitContributions': 1850, 'totalPullRequestReviewContributions': 223, 'restrictedContributionsCount': 105}, 'year2020': {'totalCommitContributions': 1845, 'totalPullRequestReviewContributions': 92, 'restrictedContributionsCount': 0}, 'year2019': {'totalCommitContributions': 194, 'totalPullRequestReviewContributions': 0, 'restrictedContributionsCount': 0}, 'year2018': {'totalCommitContributions': 198, 'totalPullRequestReviewContributions': 0, 'restrictedContributionsCount': 0}, 'year2017': {'totalCommitContributions': 177, 'totalPullRequestReviewContributions': 0, 'restrictedContributionsCount': 0}, 'year2016': {'totalCommitContributions': 138, 'totalPullRequestReviewContributions': 0, 'restrictedContributionsCount': 0}, 'year2015': {'totalCommitContributions': 0, 'totalPullRequestReviewContributions': 0, 'restrictedContributionsCount': 0}, 'year2014': {'totalCommitContributions': 0, 'totalPullRequestReviewContributions': 0, 'restrictedContributionsCount': 0}, 'year2013': {'totalCommitContributions': 0, 'totalPullRequestReviewContributions': 0, 'restrictedContributionsCount': 0}, 'year2012': {'totalCommitContributions': 0, 'totalPullRequestReviewContributions': 0, 'restrictedContributionsCount': 0}, 'year2011': {'totalCommitContributions': 0, 'totalPullRequestReviewContributions': 0, 'restrictedContributionsCount': 0}}}}, [{'data': {'user': {'topRepositories': {'totalCount': 34, 'nodes': [{'owner': {'login': 'someuser'}}, {'owner': {'login': 'someuser'}}, {'owner': {'login': 'someuser'}}, {'owner': {'login': 'someuser'}}, {'owner': {'login': 'someuser'}}, {'owner': {'login': 'someuser'}}, {'owner': {'login': 'someuser'}}, {'owner': {'login': 'someuser'}}, {'owner': {'login': 'someuser'}}, {'owner': {'login': 'someuser'}}, {'owner': {'login': 'someuser'}}, {'owner': {'login': 'someuser'}}, {'owner': {'login': 'someuser'}}, {'owner': {'login': 'someuser'}}, {'owner': {'login': 'someuser'}}, {'owner': {'login': 'someuser'}}, {'owner': {'login': 'someuser'}}, {'owner': {'login': 'someuser'}}, {'owner': {'login': 'someuser'}}, {'owner': {'login': 'someUserA'}}, {'owner': {'login': 'someuser'}}, {'owner': {'login': 'someuser'}}, {'owner': {'login': 'someuser'}}, {'owner': {'login': 'someUserA'}}, {'owner': {'login': 'someuser'}}, {'owner': {'login': 'someUserB'}}, {'owner': {'login': 'someuser'}}, {'owner': {'login': 'someUserC'}}, {'owner': {'login': 'someUserD'}}, {'owner': {'login': 'someUserE'}}, {'owner': {'login': 'someuser'}}, {'owner': {'login': 'someuser'}}, {'owner': {'login': 'someUserA'}}, {'owner': {'login': 'someUserF'}}], 'pageInfo': {'hasNextPage': False, 'endCursor': 'MzQ'}}}}}] @@ -65,8 +63,6 @@ [{'data': {'user': {'repositories': {'totalCount': 31, 'nodes': [{'stargazerCount': 0, 'forkCount': 0, 'isArchived': True, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo1', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 1, 'totalSize': 7139, 'edges': [{'size': 7139, 'node': {'color': '#b07219', 'name': 'Java'}}]}}, {'stargazerCount': 0, 'forkCount': 0, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo2', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 4, 'totalSize': 1479512, 'edges': [{'size': 1309108, 'node': {'color': '#e34c26', 'name': 'HTML'}}, {'size': 168479, 'node': {'color': '#3D6117', 'name': 'TeX'}}, {'size': 1721, 'node': {'color': '#563d7c', 'name': 'CSS'}}, {'size': 204, 'node': {'color': '#f1e05a', 'name': 'JavaScript'}}]}}, {'stargazerCount': 0, 'forkCount': 0, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo3', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 1, 'totalSize': 5842, 'edges': [{'size': 5842, 'node': {'color': '#b07219', 'name': 'Java'}}]}}, {'stargazerCount': 3, 'forkCount': 0, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo4', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 2, 'totalSize': 45961, 'edges': [{'size': 44035, 'node': {'color': '#b07219', 'name': 'Java'}}, {'size': 1926, 'node': {'color': '#89e051', 'name': 'Shell'}}]}}, {'stargazerCount': 0, 'forkCount': 0, 'isArchived': True, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo5', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 1, 'totalSize': 7717, 'edges': [{'size': 7717, 'node': {'color': '#b07219', 'name': 'Java'}}]}}, {'stargazerCount': 0, 'forkCount': 0, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo6', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 1, 'totalSize': 8491, 'edges': [{'size': 8491, 'node': {'color': '#b07219', 'name': 'Java'}}]}}, {'stargazerCount': 0, 'forkCount': 3, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo7', 'watchers': {'totalCount': 2}, 'languages': {'totalCount': 1, 'totalSize': 74003, 'edges': [{'size': 74003, 'node': {'color': '#3572A5', 'name': 'Python'}}]}}, {'stargazerCount': 3, 'forkCount': 2, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo8', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 1, 'totalSize': 739339, 'edges': [{'size': 739339, 'node': {'color': '#b07219', 'name': 'Java'}}]}}, {'stargazerCount': 2, 'forkCount': 0, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo9', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 1, 'totalSize': 52285, 'edges': [{'size': 52285, 'node': {'color': '#b07219', 'name': 'Java'}}]}}, {'stargazerCount': 7, 'forkCount': 4, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo10', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 1, 'totalSize': 2100055, 'edges': [{'size': 2100055, 'node': {'color': '#b07219', 'name': 'Java'}}]}}], 'pageInfo': {'hasNextPage': True, 'endCursor': 'Y3Vyc29yOnYyOpHOEEbJCQ=='}}}}}, {'data': {'user': {'repositories': {'totalCount': 31, 'nodes': [{'stargazerCount': 3, 'forkCount': 0, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo11', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 3, 'totalSize': 266774, 'edges': [{'size': 198236, 'node': {'color': '#b07219', 'name': 'Java'}}, {'size': 34345, 'node': {'color': '#3D6117', 'name': 'TeX'}}, {'size': 34193, 'node': {'color': '#e34c26', 'name': 'HTML'}}]}}, {'stargazerCount': 3, 'forkCount': 2, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo12', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 2, 'totalSize': 39091, 'edges': [{'size': 38882, 'node': {'color': '#3572A5', 'name': 'Python'}}, {'size': 209, 'node': {'color': '#384d54', 'name': 'Dockerfile'}}]}}, {'stargazerCount': 0, 'forkCount': 0, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo13', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 0, 'totalSize': 0, 'edges': []}}, {'stargazerCount': 0, 'forkCount': 1, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo14', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 1, 'totalSize': 852, 'edges': [{'size': 852, 'node': {'color': '#384d54', 'name': 'Dockerfile'}}]}}, {'stargazerCount': 0, 'forkCount': 0, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo15', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 1, 'totalSize': 787, 'edges': [{'size': 787, 'node': {'color': '#384d54', 'name': 'Dockerfile'}}]}}, {'stargazerCount': 1, 'forkCount': 2, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo16', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 1, 'totalSize': 1412, 'edges': [{'size': 1412, 'node': {'color': '#384d54', 'name': 'Dockerfile'}}]}}, {'stargazerCount': 0, 'forkCount': 0, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo17', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 0, 'totalSize': 0, 'edges': []}}, {'stargazerCount': 2, 'forkCount': 0, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo18', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 2, 'totalSize': 31866, 'edges': [{'size': 31656, 'node': {'color': '#3572A5', 'name': 'Python'}}, {'size': 210, 'node': {'color': '#384d54', 'name': 'Dockerfile'}}]}}, {'stargazerCount': 0, 'forkCount': 0, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo19', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 1, 'totalSize': 692, 'edges': [{'size': 692, 'node': {'color': '#384d54', 'name': 'Dockerfile'}}]}}, {'stargazerCount': 2, 'forkCount': 0, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo20', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 4, 'totalSize': 36101, 'edges': [{'size': 26436, 'node': {'color': '#b07219', 'name': 'Java'}}, {'size': 7807, 'node': {'color': '#3572A5', 'name': 'Python'}}, {'size': 1758, 'node': {'color': '#427819', 'name': 'Makefile'}}, {'size': 100, 'node': {'color': '#C1F12E', 'name': 'Batchfile'}}]}}], 'pageInfo': {'hasNextPage': True, 'endCursor': 'Y3Vyc29yOnYyOpHOEcjkCw=='}}}}}, {'data': {'user': {'repositories': {'totalCount': 31, 'nodes': [{'stargazerCount': 0, 'forkCount': 0, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo21', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 2, 'totalSize': 107241, 'edges': [{'size': 106048, 'node': {'color': '#b07219', 'name': 'Java'}}, {'size': 1193, 'node': {'color': '#427819', 'name': 'Makefile'}}]}}, {'stargazerCount': 1, 'forkCount': 0, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': True, 'name': 'repo22', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 2, 'totalSize': 1943, 'edges': [{'size': 1469, 'node': {'color': '#3572A5', 'name': 'Python'}}, {'size': 474, 'node': {'color': '#384d54', 'name': 'Dockerfile'}}]}}, {'stargazerCount': 9, 'forkCount': 14, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo23', 'watchers': {'totalCount': 2}, 'languages': {'totalCount': 2, 'totalSize': 46228, 'edges': [{'size': 45994, 'node': {'color': '#3572A5', 'name': 'Python'}}, {'size': 234, 'node': {'color': '#384d54', 'name': 'Dockerfile'}}]}}, {'stargazerCount': 0, 'forkCount': 0, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo24', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 2, 'totalSize': 91844, 'edges': [{'size': 90353, 'node': {'color': '#b07219', 'name': 'Java'}}, {'size': 1491, 'node': {'color': '#427819', 'name': 'Makefile'}}]}}, {'stargazerCount': 0, 'forkCount': 0, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo25', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 0, 'totalSize': 0, 'edges': []}}, {'stargazerCount': 0, 'forkCount': 0, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo26', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 2, 'totalSize': 1984, 'edges': [{'size': 1763, 'node': {'color': '#3572A5', 'name': 'Python'}}, {'size': 221, 'node': {'color': '#384d54', 'name': 'Dockerfile'}}]}}, {'stargazerCount': 0, 'forkCount': 0, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo27', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 0, 'totalSize': 0, 'edges': []}}, {'stargazerCount': 0, 'forkCount': 0, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo28', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 0, 'totalSize': 0, 'edges': []}}, {'stargazerCount': 0, 'forkCount': 0, 'isArchived': False, 'isFork': False, 'isPrivate': False, 'isTemplate': False, 'name': 'repo29', 'watchers': {'totalCount': 1}, 'languages': {'totalCount': 3, 'totalSize': 75220, 'edges': [{'size': 72961, 'node': {'color': '#3572A5', 'name': 'Python'}}, {'size': 1902, 'node': {'color': '#e10098', 'name': 'GraphQL'}}, {'size': 357, 'node': {'color': '#384d54', 'name': 'Dockerfile'}}]}}, {'stargazerCount': 0, 'forkCount': 0, 'isArchived': False, 'isFork': True, 'isPrivate': False, 'isTemplate': False, 'name': 'repo30', 'watchers': {'totalCount': 0}, 'languages': {'totalCount': 0, 'totalSize': 0, 'edges': []}}], 'pageInfo': {'hasNextPage': True, 'endCursor': 'Y3Vyc29yOnYyOpHOFvwXeA=='}}}}}, {'data': {'user': {'repositories': {'totalCount': 31, 'nodes': [{'stargazerCount': 0, 'forkCount': 0, 'isArchived': False, 'isFork': True, 'isPrivate': False, 'isTemplate': False, 'name': 'repo31', 'watchers': {'totalCount': 0}, 'languages': {'totalCount': 7, 'totalSize': 1415534, 'edges': [{'size': 998990, 'node': {'color': '#f1e05a', 'name': 'JavaScript'}}, {'size': 247728, 'node': {'color': '#2b7489', 'name': 'TypeScript'}}, {'size': 127643, 'node': {'color': '#e34c26', 'name': 'HTML'}}, {'size': 26509, 'node': {'color': '#c6538c', 'name': 'SCSS'}}, {'size': 5854, 'node': {'color': '#3572A5', 'name': 'Python'}}, {'size': 5303, 'node': {'color': '#89e051', 'name': 'Shell'}}, {'size': 3507, 'node': {'color': '#384d54', 'name': 'Dockerfile'}}]}}], 'pageInfo': {'hasNextPage': False, 'endCursor': 'Y3Vyc29yOnYyOpHOFwfoDg=='}}}}}], - [{'data': {'user': {'watching': {'totalCount': 28, 'nodes': [{'isFork': False}, {'isFork': False}, {'isFork': False}, {'isFork': False}, {'isFork': False}, {'isFork': False}, {'isFork': False}, {'isFork': False}, {'isFork': False}, {'isFork': False}], 'pageInfo': {'hasNextPage': True, 'endCursor': 'MTA'}}}}}, {'data': {'user': {'watching': {'totalCount': 28, 'nodes': [{'isFork': False}, {'isFork': False}, {'isFork': False}, {'isFork': False}, {'isFork': False}, {'isFork': False}, {'isFork': False}, {'isFork': False}, {'isFork': False}, {'isFork': False}], 'pageInfo': {'hasNextPage': True, 'endCursor': 'MjA'}}}}}, {'data': {'user': {'watching': {'totalCount': 28, 'nodes': [{'isFork': False}, {'isFork': False}, {'isFork': False}, {'isFork': False}, {'isFork': False}, {'isFork': False}, {'isFork': False}, {'isFork': False}], 'pageInfo': {'hasNextPage': False, 'endCursor': 'Mjg'}}}}}], - {'data': {'user': {'year2021': {'totalCommitContributions': 1850, 'totalPullRequestReviewContributions': 223, 'restrictedContributionsCount': 105}, 'year2020': {'totalCommitContributions': 1845, 'totalPullRequestReviewContributions': 92, 'restrictedContributionsCount': 0}, 'year2019': {'totalCommitContributions': 194, 'totalPullRequestReviewContributions': 0, 'restrictedContributionsCount': 0}, 'year2018': {'totalCommitContributions': 198, 'totalPullRequestReviewContributions': 0, 'restrictedContributionsCount': 0}, 'year2017': {'totalCommitContributions': 177, 'totalPullRequestReviewContributions': 0, 'restrictedContributionsCount': 0}, 'year2016': {'totalCommitContributions': 138, 'totalPullRequestReviewContributions': 0, 'restrictedContributionsCount': 0}, 'year2015': {'totalCommitContributions': 0, 'totalPullRequestReviewContributions': 0, 'restrictedContributionsCount': 0}, 'year2014': {'totalCommitContributions': 0, 'totalPullRequestReviewContributions': 0, 'restrictedContributionsCount': 0}, 'year2013': {'totalCommitContributions': 0, 'totalPullRequestReviewContributions': 0, 'restrictedContributionsCount': 0}, 'year2012': {'totalCommitContributions': 0, 'totalPullRequestReviewContributions': 0, 'restrictedContributionsCount': 0}, 'year2011': {'totalCommitContributions': 0, 'totalPullRequestReviewContributions': 0, 'restrictedContributionsCount': 0}}}}, [{'data': {'user': {'topRepositories': {'totalCount': 34, 'nodes': [{'owner': {'login': 'someuser'}}, {'owner': {'login': 'someuser'}}, {'owner': {'login': 'someuser'}}, {'owner': {'login': 'someuser'}}, {'owner': {'login': 'someuser'}}, {'owner': {'login': 'someuser'}}, {'owner': {'login': 'someuser'}}, {'owner': {'login': 'someuser'}}, {'owner': {'login': 'someuser'}}, {'owner': {'login': 'someuser'}}], 'pageInfo': {'hasNextPage': True, 'endCursor': 'MTA'}}}}}, {'data': {'user': {'topRepositories': {'totalCount': 34, 'nodes': [{'owner': {'login': 'someuser'}}, {'owner': {'login': 'someuser'}}, {'owner': {'login': 'someuser'}}, {'owner': {'login': 'someuser'}}, {'owner': {'login': 'someuser'}}, {'owner': {'login': 'someuser'}}, {'owner': {'login': 'someuser'}}, {'owner': {'login': 'someuser'}}, {'owner': {'login': 'someuser'}}, {'owner': {'login': 'someUserA'}}], 'pageInfo': {'hasNextPage': True, 'endCursor': 'MjA'}}}}}, {'data': {'user': {'topRepositories': {'totalCount': 34, 'nodes': [{'owner': {'login': 'someuser'}}, {'owner': {'login': 'someuser'}}, {'owner': {'login': 'someuser'}}, {'owner': {'login': 'someUserA'}}, {'owner': {'login': 'someuser'}}, {'owner': {'login': 'someUserB'}}, {'owner': {'login': 'someuser'}}, {'owner': {'login': 'someUserC'}}, {'owner': {'login': 'someUserD'}}, {'owner': {'login': 'someUserE'}}], 'pageInfo': {'hasNextPage': True, 'endCursor': 'MzA'}}}}}, {'data': {'user': {'topRepositories': {'totalCount': 34, 'nodes': [{'owner': {'login': 'someuser'}}, {'owner': {'login': 'someuser'}}, {'owner': {'login': 'someUserA'}}, {'owner': {'login': 'someUserF'}}], 'pageInfo': {'hasNextPage': False, 'endCursor': 'MzQ'}}}}}] @@ -85,10 +81,9 @@ def __init__(self, fail, autoLanguages, maxLanguages, languageRepoExclusions, fe self.parseStats( executedQueryResults[0], executedQueryResults[1], - executedQueryResults[2], - executedQueryResults[4] + executedQueryResults[3] ) - self.parsePriorYearStats(executedQueryResults[3]) + self.parsePriorYearStats(executedQueryResults[2]) stats = NoQueries(True, False, 1000, set(), None) self._validate(stats) @@ -103,10 +98,9 @@ def __init__(self, fail, autoLanguages, maxLanguages, languageRepoExclusions, fe self.parseStats( executedQueryResults[0], executedQueryResults[1], - executedQueryResults[2], - executedQueryResults[4] + executedQueryResults[3] ) - self.parsePriorYearStats(executedQueryResults[3]) + self.parsePriorYearStats(executedQueryResults[2]) stats = NoQueries(True, False, 1000, set(), None) self._validate(stats) @@ -121,10 +115,9 @@ def __init__(self, fail, autoLanguages, maxLanguages, languageRepoExclusions, fe self.parseStats( executedQueryResults[0], executedQueryResults[1], - executedQueryResults[2], - executedQueryResults[4] + executedQueryResults[3] ) - self.parsePriorYearStats(executedQueryResults[3]) + self.parsePriorYearStats(executedQueryResults[2]) stats = NoQueriesMultipage(True, False, 1000, {"repo29", "repoDoesntExist"}, None) self._validate(stats, True) @@ -139,10 +132,9 @@ def __init__(self, fail, autoLanguages, maxLanguages, languageRepoExclusions, fe self.parseStats( executedQueryResults[0], executedQueryResults[1], - executedQueryResults[2], - executedQueryResults[4] + executedQueryResults[3] ) - self.parsePriorYearStats(executedQueryResults[3]) + self.parsePriorYearStats(executedQueryResults[2]) stats = NoQueriesMultipage(True, False, 1000, {"repo29", "repoDoesntExist"}, None) self._validate(stats, True) @@ -159,10 +151,9 @@ def __init__(self, fail, autoLanguages, maxLanguages, languageRepoExclusions, fe self.parseStats( executedQueryResults[0], executedQueryResults[1], - executedQueryResults[2], - executedQueryResults[4] + executedQueryResults[3] ) - self.parsePriorYearStats(executedQueryResults[3]) + self.parsePriorYearStats(executedQueryResults[2]) stats = NoQueries(True, False, 1000, set(), None) self._validateAllForks(stats) @@ -329,10 +320,9 @@ def __init__(self, fail, autoLanguages, maxLanguages, languageRepoExclusions, fe self.parseStats( executedQueryResults[0], executedQueryResults[1], - executedQueryResults[2], - executedQueryResults[4] + executedQueryResults[3] ) - self.parsePriorYearStats(executedQueryResults[3]) + self.parsePriorYearStats(executedQueryResults[2]) stats = NoQueries(True, False, 100, set(), "FavoriteRepo") #stats._name = "Firstname ReallyLongMiddleName Lastname" #categories = ["general", "repositories", "languages", "contributions"] @@ -390,8 +380,8 @@ def _validate(self, stats, skip=False) : self.assertEqual(36, stats._repo["starredBy"][1]) self.assertEqual(28, stats._repo["forkedBy"][0]) self.assertEqual(28, stats._repo["forkedBy"][1]) - self.assertEqual(3, stats._repo["watchedBy"][0]) - self.assertEqual(3, stats._repo["watchedBy"][1]) + self.assertEqual(31, stats._repo["watchedBy"][0]) + self.assertEqual(31, stats._repo["watchedBy"][1]) self.assertEqual(2, stats._repo["archived"][0]) self.assertEqual(2, stats._repo["archived"][1]) self.assertEqual(1, stats._repo["templates"][0]) @@ -429,7 +419,7 @@ def _validateAllForks(self, stats) : self.assertEqual(0, stats._repo["forkedBy"][0]) self.assertEqual(28, stats._repo["forkedBy"][1]) self.assertEqual(0, stats._repo["watchedBy"][0]) - self.assertEqual(3, stats._repo["watchedBy"][1]) + self.assertEqual(31, stats._repo["watchedBy"][1]) self.assertEqual(0, stats._repo["archived"][0]) self.assertEqual(2, stats._repo["archived"][1]) self.assertEqual(0, stats._repo["templates"][0]) @@ -526,8 +516,5 @@ def _validateLanguagesSkip(self, stats) : def _changeToAllForks(self, queryResults) : for repo in queryResults[1][0]["data"]["user"]["repositories"]["nodes"] : repo["isFork"] = True - for repo in queryResults[4][0]["data"]["user"]["topRepositories"]["nodes"] : + for repo in queryResults[3][0]["data"]["user"]["topRepositories"]["nodes"] : repo["isFork"] = True - for repo in queryResults[2][0]["data"]["user"]["watching"]["nodes"] : - repo["isFork"] = True - From 9946b6aa64fa87e966420a10f28f47c787f4300a Mon Sep 17 00:00:00 2001 From: "Vincent A. Cicirello" Date: Fri, 1 Dec 2023 17:31:56 -0500 Subject: [PATCH 2/6] Update Statistician.py --- src/Statistician.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Statistician.py b/src/Statistician.py index b9900714..215d7c44 100644 --- a/src/Statistician.py +++ b/src/Statistician.py @@ -235,7 +235,7 @@ def parseStats(self, basicStats, repoStats, reposContributedToStats): # precautionary since the above check of totalCount should be sufficient # to protect against a null list of repos. - # Count stargazers, forks of my repos, and watchers excluding me + # Count stargazers, forks of my repos, and watchers stargazers = sum( repo["stargazerCount"] for page in repoStats if page[ "nodes"] != None for repo in page[ @@ -274,7 +274,7 @@ def parseStats(self, basicStats, repoStats, reposContributedToStats): except ValueError: pass - # Compute number of watchers excluding cases where user is watching their own repos. + # Compute number of watchers watchers = sum( repo["watchers"]["totalCount"] for page in repoStats if page[ "nodes"] != None for repo in page["nodes"] if not repo["isPrivate"]) From 794e5d120a98f825fa2279c30a53837f7ea0633d Mon Sep 17 00:00:00 2001 From: "Vincent A. Cicirello" Date: Fri, 1 Dec 2023 17:32:51 -0500 Subject: [PATCH 3/6] update docs for watchedBy stat --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c62a9e37..a5b3c79e 100644 --- a/README.md +++ b/README.md @@ -453,7 +453,7 @@ The statistics include the following. | `public` | My Repositories | simple count | | `starredBy` | Starred By | simple count | | `forkedBy` | Forked By | simple count | -| `watchedBy` | Watched By | number watching your repositories (excluding you) | +| `watchedBy` | Watched By | number watching your repositories | | `templates` | Templates | number of your repositories that are templates | | `archived` | Archived | number of your repositories that you have archived | From ad9156bdb9d3bc9c4bca327c1a3c489d3dbac254 Mon Sep 17 00:00:00 2001 From: "Vincent A. Cicirello" Date: Fri, 1 Dec 2023 17:34:30 -0500 Subject: [PATCH 4/6] Update CHANGELOG.md --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c4fe8080..f8f0dabb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [Unreleased] - 2023-11-06 +## [Unreleased] - 2023-12-01 ### Added @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Removed ### Fixed +* Eliminated adjustment for watching own repositories from the watched stat for consistency with other stats that don't make such an adjustment such as the star count. ### Dependencies * Bump cicirello/pyaction from 4.25.0 to 4.26.0 From bae9223310e337655086b2d86e240417c7b043f0 Mon Sep 17 00:00:00 2001 From: "Vincent A. Cicirello" Date: Fri, 1 Dec 2023 17:36:00 -0500 Subject: [PATCH 5/6] Update CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f8f0dabb..029a8aa5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,7 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Removed ### Fixed -* Eliminated adjustment for watching own repositories from the watched stat for consistency with other stats that don't make such an adjustment such as the star count. +* Eliminated adjustment for watching own repositories from the "Watched By" stat for consistency with other stats that don't make such an adjustment such as the star count. ### Dependencies * Bump cicirello/pyaction from 4.25.0 to 4.26.0 From 0428a825e2650acb256c81c759e8fe974858ab61 Mon Sep 17 00:00:00 2001 From: "Vincent A. Cicirello" Date: Fri, 1 Dec 2023 17:45:08 -0500 Subject: [PATCH 6/6] Update Statistician.py --- src/Statistician.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Statistician.py b/src/Statistician.py index 215d7c44..e574419a 100644 --- a/src/Statistician.py +++ b/src/Statistician.py @@ -326,7 +326,6 @@ def parseStats(self, basicStats, repoStats, reposContributedToStats): stargazersAll = 0 forksOfMyReposAll = 0 watchers = 0 - watchingMyOwnNonForks = 0 watchersNonForks = 0 privateCount = 0 publicAll = 0