old_contents: import requests
  import constants
  
  # payload = "{\"query\": \"query($repository: String!) {repository(owner: \\\"talk-to\\\",name: $repository) " \
  #           "{refs(last: 10,refPrefix:\\\"refs/tags/\\\") {edges {node{name}}}}}\"," \
  #           "\"variables\": \"{\\\"repository\\\": \\\"Knock\\\"}\"\n\t\n}\n\n"
  #
  # response = requests.request("POST", url, data=payload, headers=headers)
  #
  # print(response.text)
  
  QUERY = """
  query($repository_owner:String!, $repository_name: String!, $count: Int!) {
    repository(
      owner: $repository_owner,
      name: $repository_name) {
      
      refs(last: $count,refPrefix:"refs/tags/") {
        edges {
          node{
            name
          }
        }
      }
      
      releases(last: $count) {
        edges {
          node {
            name
          }
        }
      }
    }
  }
  """
  
  class Github:
  
      def __authorization_header(self):
          return "token " + self.token
  
      def __request_headers(self):
          return {
              'authorization': self.__authorization_header(),
          }
  
      def __init__(self, token):
          self.token = token
  
      def getTagsAndReleases(self, repository_owner, repository_name, count):
          payload = {"query": QUERY,
                     "variables": {
                         "repository_owner": repository_owner,
                         "repository_name": repository_name,
                         "count": count
                     }}
          response = requests.post(constants.GITHUB_API_URL, json=payload, headers=self.__request_headers())
          print response
          return response
new_contents: import requests
  import constants
  
  QUERY = """
  query($repository_owner:String!, $repository_name: String!, $count: Int!) {
    repository(
      owner: $repository_owner,
      name: $repository_name) {
      
      refs(last: $count,refPrefix:"refs/tags/") {
        edges {
          node{
            name
          }
        }
      }
      
      releases(last: $count) {
        edges {
          node {
            name
          }
        }
      }
    }
  }
  """
  
  class Github:
  
      def __authorization_header(self):
          return "token " + self.token
  
      def __request_headers(self):
          return {
              'authorization': self.__authorization_header(),
          }
  
      def __init__(self, token):
          self.token = token
  
      def getTagsAndReleases(self, repository_owner, repository_name, count):
          payload = {"query": QUERY,
                     "variables": {
                         "repository_owner": repository_owner,
                         "repository_name": repository_name,
                         "count": count
                     }}
          response = requests.post(constants.GITHUB_API_URL, json=payload, headers=self.__request_headers())
          print response
          return response
subject: Remove documented code