':calls: `GET /repos/:owner/:repo/contents/:path <http://developer.github.com/v3/repos/contents>`_
:param path: string
:param ref: string
:rtype: :class:`github.ContentFile.ContentFile`'

def get_file_contents(self, path, ref=github.GithubObject.NotSet):

    assert isinstance(path, (str, unicode)), path
    assert ((ref is github.GithubObject.NotSet) or isinstance(ref, (str, unicode))), ref
    url_parameters = dict()
    if (ref is not github.GithubObject.NotSet):
        url_parameters['ref'] = ref
    (headers, data) = self._requester.requestJsonAndCheck('GET', ((self.url + '/contents') + path), parameters=url_parameters)
    return github.ContentFile.ContentFile(self._requester, headers, data, completed=True)
