parameters: (self, repository_id)
return_statement: return None
docstring: Get repository by ID.
docstring_summary: Get repository by ID.
docstring_tokens: Get repository by ID .
function: def get_by_id(self, repository_id):
          """Get repository by ID."""
          try:
              for repository in self.repositories:
                  if str(repository.data.id) == str(repository_id):
                      return repository
          except (Exception, BaseException):  # pylint: disable=broad-except
              pass
          return None
function_tokens: def get_by_id ( self , repository_id ) : try : for repository in self . repositories : if str ( repository . data . id ) == str ( repository_id ) : return repository except ( Exception , BaseException ) : # pylint: disable=broad-except pass return None