def configure(self, user, owner, repo,
                  sourcerer_api_origin=None,
                  sourcerer_api_secret=None,
                  github_token=None):
        """Sets tracker to a repo.

        If you supply API origin, you will also need API secret. API is used
        if provided, and if github token was not directly supplied. In case,
        there is neither API nor token supplied, anonymous access to GitHub
        is used.

        Args:
          user: GitHub user who set up tracking for this repo.
          owner: GitHub repo owner.
          repo: GitHub repo, repo URL is github.com/:owner/:repo.
          sourcerer_api_origin: API origin, used to fetch GitHub token.
          sourcerer_api_secret: Secret for API authentication.
          github_token: GitHub token supplied directly.
        """
        self.user = user
        self.owner = owner
        self.repo = repo
        self.github_token = github_token
        if not github_token and sourcerer_api_origin:
            if not sourcerer_api_secret:
                raise TrackerError('Sourcerer API secret required')

            self.github_token = self._load_github_token(
                sourcerer_api_origin, sourcerer_api_secret)
Sets tracker to a repo.

        If you supply API origin, you will also need API secret. API is used
        if provided, and if github token was not directly supplied. In case,
        there is neither API nor token supplied, anonymous access to GitHub
        is used.

        Args:
          user: GitHub user who set up tracking for this repo.
          owner: GitHub repo owner.
          repo: GitHub repo, repo URL is github.com/:owner/:repo.
          sourcerer_api_origin: API origin, used to fetch GitHub token.
          sourcerer_api_secret: Secret for API authentication.
          github_token: GitHub token supplied directly.
        
fame/github_tracker.py