code: public CompareResults compare(Object projectIdOrPath, String from, String to) throws GitLabApiException {
          return (compare(projectIdOrPath, from, to, false));
      }
docs: Compare branches, tags or commits. This can be accessed without authentication
  if the repository is publicly accessible.
  
  @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
  @param from the commit SHA or branch name
  @param to the commit SHA or branch name
  @return a CompareResults containing the results of the comparison
  @throws GitLabApiException if any exception occurs