old_contents: import requests
  import json
  
  
  def main(org):
      url = "https://api.github.com/orgs/{org}/repos?page=".format(org=org)
  
  
      i = 1
      repos = []
  
      while True:
          r = requests.get(url + str(i))
          current_repos = r.json()
          if not current_repos:
              break
  
          repos.extend(current_repos)
          i += 1
  
      tailored_repos = {}
  
      for repo in repos:
          tailored_repos[repo['name']] = {
              'name': repo['name'],
              'stars': repo['stargazers_count'],
              'language': repo['language'],
              'forks': repo['forks_count'],
              'issues': repo['open_issues']
          }
  
      languages = [v['language'] for v in tailored_repos.values()]
      unique_languages = set(languages)
      languages_by_count = { languages.count(lang) : lang for lang in unique_languages }
  
      with open('map.md', 'w') as f:
          f.write('We have {} repos written in {} languages\n'.format(len(tailored_repos), len(unique_languages)))
  
          f.write('\n\n\n')
          f.write('## Language breakdown\n')
  
  
          f.write('Language | Count\n')
          f.write('----------------\n')
          for number, lang in list(languages_by_count.items())[::-1]:
              f.write('{} | {}\n'.format(lang, number))
  
          f.write('\n\n\n')
          f.write('## Repo breakdown\n')
  
          f.write('Repo | Stars | Language | Forks | Issues\n')
          f.write('----------------------------------------\n')
          for repo in sorted(tailored_repos.values(), key=lambda x: x['stars'], reverse=True):
              f.write('{} | {} | {} | {} | {}\n'.format(
                  repo['name'],
                  repo['stars'],
                  repo['language'],
                  repo['forks'],
                  repo['issues'])
              )
  
  if __name__ == '__main__':
      org = "NoRedInk"
      main(org)
  
  
new_contents: import requests
  import json
  
  
  def main(org):
      url = "https://api.github.com/orgs/{org}/repos?page=".format(org=org)
  
  
      i = 1
      repos = []
  
      while True:
          r = requests.get(url + str(i))
          current_repos = r.json()
          if not current_repos:
              break
  
          repos.extend(current_repos)
          i += 1
  
      tailored_repos = {}
  
      for repo in repos:
          tailored_repos[repo['name']] = {
              'name': repo['name'],
              'stars': repo['stargazers_count'],
              'language': repo['language'],
              'forks': repo['forks_count'],
              'issues': repo['open_issues']
          }
  
      languages = [v['language'] for v in tailored_repos.values()]
      unique_languages = set(languages)
      languages_by_count = { languages.count(lang) : lang for lang in unique_languages }
  
      with open('map.md', 'w') as f:
          f.write('We have {} repos written in {} languages\n'.format(len(tailored_repos), len(unique_languages)))
  
          f.write('\n\n\n')
          f.write('## Language breakdown\n')
  
  
          f.write('Language | Count\n')
          f.write('----------------\n')
          for number, lang in list(languages_by_count.items())[::-1]:
              f.write('{} | {}\n'.format(lang, number))
  
          f.write('\n\n\n')
          f.write('## Repo breakdown\n')
  
          f.write('Repo | Stars | Language | Forks | Issues\n')
          f.write('----------------------------------------\n')
          for repo in sorted(tailored_repos.values(), key=lambda x: x['stars'], reverse=True):
              f.write('[{name}](http://github.com/{org}/{name}) | {stars} | {language} | {forks} | {issues}\n'.format(
                  org=org,
                  name=repo['name'],
                  stars=repo['stars'],
                  language=repo['language'],
                  forks=repo['forks'],
                  issues=repo['issues'])
              )
  
  if __name__ == '__main__':
      org = "NoRedInk"
      main(org)
  
  
subject: create mapper script