class_docstr: This class contains URLs and templates which used in requests to GitHub API
class_docstr_tok: ["This","class","contains","URLs","and","templates","which","used","in","requests","to","GitHub","API"]
docstr: Generates all URLs and templates
docstr_tok: ["Generates","all","URLs","and","templates"]
code: def __init__(
      self,
      user="sympy",
      repo="sympy",
      api_url="https://api.github.com",
      authorize_url="https://api.github.com/authorizations",
      uploads_url="https://uploads.github.com",
      main_url="https://github.com",
  ):
      """Generates all URLs and templates"""
  
      self.user = user
      self.repo = repo
      self.api_url = api_url
      self.authorize_url = authorize_url
      self.uploads_url = uploads_url
      self.main_url = main_url
  
      self.pull_list_url = (
          api_url + "/repos" + "/" + user + "/" + repo + "/pulls"
      )
      self.issue_list_url = (
          api_url + "/repos/" + user + "/" + repo + "/issues"
      )
      self.releases_url = (
          api_url + "/repos/" + user + "/" + repo + "/releases"
      )
      self.single_issue_template = self.issue_list_url + "/%d"
      self.single_pull_template = self.pull_list_url + "/%d"
      self.user_info_template = api_url + "/users/%s"
      self.user_repos_template = api_url + "/users/%s/repos"
      self.issue_comment_template = (
          api_url
          + "/repos"
          + "/"
          + user
          + "/"
          + repo
          + "/issues/%d"
          + "/comments"
      )
      self.release_uploads_url = (
          uploads_url
          + "/repos/"
          + user
          + "/"
          + repo
          + "/releases/%d"
          + "/assets"
      )
      self.release_download_url = (
          main_url
          + "/"
          + user
          + "/"
          + repo
          + "/releases/download/%s/%s"
      )
  
imports: import os
  import json
  from subprocess import check_output
  from collections import OrderedDict, defaultdict
  from collections.abc import Mapping
  import glob
  from contextlib import contextmanager
  import requests
  from requests_oauthlib import OAuth2
label_desc: Use image node_id 1 to create a new URLs object from inherited base classes: object with example: obj = URLs(user, repo, api_url, authorize_url, uploads_url, main_url)