def get_year_commits(self, username='<STR_LIT>', password='<STR_LIT>', organization='<STR_LIT>', force=True):
date = str(datetime.date.today())<EOL>file_path =  ('<STR_LIT>')<EOL>if force or not os.path.isfile(file_path):<EOL><INDENT>my_github.login(username, password)<EOL>calls_beginning = self.logged_in_gh.ratelimit_remaining + <NUM_LIT:1><EOL>print('<STR_LIT>' + str(calls_beginning))<EOL>my_github.get_org(organization)<EOL>my_github.repos(building_stats=True)<EOL>print("<STR_LIT>")<EOL>time.sleep(<NUM_LIT:30>)<EOL>print("<STR_LIT>")<EOL>my_github.repos(building_stats=False)<EOL>my_github.calc_total_commits(starting_commits=<NUM_LIT>)<EOL>my_github.write_to_file()<EOL>calls_remaining = self.logged_in_gh.ratelimit_remaining<EOL>calls_used = calls_beginning - calls_remaining<EOL>print(('<STR_LIT>' + str(calls_remaining) + '<STR_LIT>'<EOL>+ str(calls_used) + '<STR_LIT>'))<EOL><DEDENT>
Does setup such as login, printing API info, and waiting for GitHub to
build the commit statistics. Then gets the last year of commits and
prints them to file.