GithubUserAudit.py
def generate_all_stats(self):
        """ generate statistics/info in Phabricator remarkup"""
        """ user table """
        """ 2fa-enabled """
        """ non-attributable log entries """
        """ percent owner operations """
        """ TODO: clean up and possibly support more output options """
        people_url = "https://github.com/orgs/wikimedia/people"
        member_fil = "?utf8=%E2%9C%93&query=role%3Amember"
        owner_fil = "?utf8=%E2%9C%93&query=role%3Aowner"
        num_people = len(self.wm_gh_members)
        num_owners = len(self.wm_gh_owners)
        num_members = num_people - num_owners

        print("!!**User Statistics**!!\n")
        print("| {icon info-circle color=blue} **User Statistics** |  ")
        print("| --- | ---")
        print(f"| [[ {people_url} | Total Collaborators ]] | {num_people}")
        print(f"| [[ {people_url}{member_fil} | Members ]] | {num_members}")
        print(f"| [[ {people_url}{owner_fil} | Owners ]] | {num_owners}")

        print("\n!!**2fa-Enabled**!!\n")
        print("{icon info-circle color=blue} Have a github admin ", end='')
        print("filter for 'two-factor:disabled' on all org members.")

        print("\n!!**Owner / Operations Statistics**!!\n")
        print("{icon exclamation-triangle color=red} "
              "Number of non-attributed log entries: "
              f"{len(self.non_attributed_log_entries)}.\n")
        print("{icon exclamation-triangle color=red} "
              f"{self.owners_performed_owner_actions[0]}% "
              "of the owners performed Owner actions ("
              f"{self.owners_performed_owner_actions[1]} of "
              f"{self.owners_performed_owner_actions[2]}).\n")
        print("Owners who have not performed any owner actions:\n\n"
              f"{self.absent_owners}")
 generate statistics/info in Phabricator remarkup
generate statistics/info in Phabricator remarkup
generate statistics / info in Phabricator remarkup
def generate_all_stats(self):
        people_url = "https://github.com/orgs/wikimedia/people"
        member_fil = "?utf8=%E2%9C%93&query=role%3Amember"
        owner_fil = "?utf8=%E2%9C%93&query=role%3Aowner"
        num_people = len(self.wm_gh_members)
        num_owners = len(self.wm_gh_owners)
        num_members = num_people - num_owners
        print("!!**User Statistics**!!\n")
        print("| {icon info-circle color=blue} **User Statistics** |  ")
        print("| --- | ---")
        print(f"| [[ {people_url} | Total Collaborators ]] | {num_people}")
        print(f"| [[ {people_url}{member_fil} | Members ]] | {num_members}")
        print(f"| [[ {people_url}{owner_fil} | Owners ]] | {num_owners}")
        print("\n!!**2fa-Enabled**!!\n")
        print("{icon info-circle color=blue} Have a github admin ", end='')
        print("filter for 'two-factor:disabled' on all org members.")
        print("\n!!**Owner / Operations Statistics**!!\n")
        print("{icon exclamation-triangle color=red} "
              "Number of non-attributed log entries: "
              f"{len(self.non_attributed_log_entries)}.\n")
        print("{icon exclamation-triangle color=red} "
              f"{self.owners_performed_owner_actions[0]}% "
              "of the owners performed Owner actions ("
              f"{self.owners_performed_owner_actions[1]} of "
              f"{self.owners_performed_owner_actions[2]}).\n")
        print("Owners who have not performed any owner actions:\n\n"
              f"{self.absent_owners}")
def generate_all_stats ( self ) : """ user table """ """ 2fa-enabled """ """ non-attributable log entries """ """ percent owner operations """ """ TODO: clean up and possibly support more output options """ people_url = "https://github.com/orgs/wikimedia/people" member_fil = "?utf8=%E2%9C%93&query=role%3Amember" owner_fil = "?utf8=%E2%9C%93&query=role%3Aowner" num_people = len ( self . wm_gh_members ) num_owners = len ( self . wm_gh_owners ) num_members = num_people - num_owners print ( "!!**User Statistics**!!\n" ) print ( "| {icon info-circle color=blue} **User Statistics** |  " ) print ( "| --- | ---" ) print ( f"| [[ {people_url} | Total Collaborators ]] | {num_people}" ) print ( f"| [[ {people_url}{member_fil} | Members ]] | {num_members}" ) print ( f"| [[ {people_url}{owner_fil} | Owners ]] | {num_owners}" ) print ( "\n!!**2fa-Enabled**!!\n" ) print ( "{icon info-circle color=blue} Have a github admin " , end = '' ) print ( "filter for 'two-factor:disabled' on all org members." ) print ( "\n!!**Owner / Operations Statistics**!!\n" ) print ( "{icon exclamation-triangle color=red} " "Number of non-attributed log entries: " f"{len(self.non_attributed_log_entries)}.\n" ) print ( "{icon exclamation-triangle color=red} " f"{self.owners_performed_owner_actions[0]}% " "of the owners performed Owner actions (" f"{self.owners_performed_owner_actions[1]} of " f"{self.owners_performed_owner_actions[2]}).\n" ) print ( "Owners who have not performed any owner actions:\n\n" f"{self.absent_owners}" )
generate statistics/info in Phabricator remarkup
generate statistics / info in Phabricator remarkup
""" generate statistics/info in Phabricator remarkup""" """ user table """ """ 2fa-enabled """ """ non-attributable log entries """ """ percent owner operations """ """ TODO: clean up and possibly support more output options """
self