code: def extract_bugs(changelog):
      
      bug_regexp = re.compile(r'\bbug (\d+)\b', re.IGNORECASE)
      bugs = set()
      for line in changelog:
          for bug in bug_regexp.findall(line):
              bugs.add(bug)
  
      return sorted(list(bugs))
docs: Takes output from git log --oneline and extracts bug numbers