repo
stringlengths 5
54
| path
stringlengths 4
155
| func_name
stringlengths 1
118
| original_string
stringlengths 52
85.5k
| language
stringclasses 1
value | code
stringlengths 52
85.5k
| code_tokens
sequence | docstring
stringlengths 6
2.61k
| docstring_tokens
sequence | sha
stringlengths 40
40
| url
stringlengths 85
252
| partition
stringclasses 1
value |
---|---|---|---|---|---|---|---|---|---|---|---|
google/go-github | github/github-accessors.go | GetPreviousColumnName | func (p *ProjectCard) GetPreviousColumnName() string {
if p == nil || p.PreviousColumnName == nil {
return ""
}
return *p.PreviousColumnName
} | go | func (p *ProjectCard) GetPreviousColumnName() string {
if p == nil || p.PreviousColumnName == nil {
return ""
}
return *p.PreviousColumnName
} | [
"func",
"(",
"p",
"*",
"ProjectCard",
")",
"GetPreviousColumnName",
"(",
")",
"string",
"{",
"if",
"p",
"==",
"nil",
"||",
"p",
".",
"PreviousColumnName",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"p",
".",
"PreviousColumnName",
"\n",
"}"
] | // GetPreviousColumnName returns the PreviousColumnName field if it's non-nil, zero value otherwise. | [
"GetPreviousColumnName",
"returns",
"the",
"PreviousColumnName",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L6784-L6789 | train |
google/go-github | github/github-accessors.go | GetProjectID | func (p *ProjectCard) GetProjectID() int64 {
if p == nil || p.ProjectID == nil {
return 0
}
return *p.ProjectID
} | go | func (p *ProjectCard) GetProjectID() int64 {
if p == nil || p.ProjectID == nil {
return 0
}
return *p.ProjectID
} | [
"func",
"(",
"p",
"*",
"ProjectCard",
")",
"GetProjectID",
"(",
")",
"int64",
"{",
"if",
"p",
"==",
"nil",
"||",
"p",
".",
"ProjectID",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"p",
".",
"ProjectID",
"\n",
"}"
] | // GetProjectID returns the ProjectID field if it's non-nil, zero value otherwise. | [
"GetProjectID",
"returns",
"the",
"ProjectID",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L6792-L6797 | train |
google/go-github | github/github-accessors.go | GetArchivedState | func (p *ProjectCardListOptions) GetArchivedState() string {
if p == nil || p.ArchivedState == nil {
return ""
}
return *p.ArchivedState
} | go | func (p *ProjectCardListOptions) GetArchivedState() string {
if p == nil || p.ArchivedState == nil {
return ""
}
return *p.ArchivedState
} | [
"func",
"(",
"p",
"*",
"ProjectCardListOptions",
")",
"GetArchivedState",
"(",
")",
"string",
"{",
"if",
"p",
"==",
"nil",
"||",
"p",
".",
"ArchivedState",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"p",
".",
"ArchivedState",
"\n",
"}"
] | // GetArchivedState returns the ArchivedState field if it's non-nil, zero value otherwise. | [
"GetArchivedState",
"returns",
"the",
"ArchivedState",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L6888-L6893 | train |
google/go-github | github/github-accessors.go | GetCardsURL | func (p *ProjectColumn) GetCardsURL() string {
if p == nil || p.CardsURL == nil {
return ""
}
return *p.CardsURL
} | go | func (p *ProjectColumn) GetCardsURL() string {
if p == nil || p.CardsURL == nil {
return ""
}
return *p.CardsURL
} | [
"func",
"(",
"p",
"*",
"ProjectColumn",
")",
"GetCardsURL",
"(",
")",
"string",
"{",
"if",
"p",
"==",
"nil",
"||",
"p",
".",
"CardsURL",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"p",
".",
"CardsURL",
"\n",
"}"
] | // GetCardsURL returns the CardsURL field if it's non-nil, zero value otherwise. | [
"GetCardsURL",
"returns",
"the",
"CardsURL",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L6912-L6917 | train |
google/go-github | github/github-accessors.go | GetOrganizationPermission | func (p *ProjectOptions) GetOrganizationPermission() string {
if p == nil || p.OrganizationPermission == nil {
return ""
}
return *p.OrganizationPermission
} | go | func (p *ProjectOptions) GetOrganizationPermission() string {
if p == nil || p.OrganizationPermission == nil {
return ""
}
return *p.OrganizationPermission
} | [
"func",
"(",
"p",
"*",
"ProjectOptions",
")",
"GetOrganizationPermission",
"(",
")",
"string",
"{",
"if",
"p",
"==",
"nil",
"||",
"p",
".",
"OrganizationPermission",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"p",
".",
"OrganizationPermission",
"\n",
"}"
] | // GetOrganizationPermission returns the OrganizationPermission field if it's non-nil, zero value otherwise. | [
"GetOrganizationPermission",
"returns",
"the",
"OrganizationPermission",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L7112-L7117 | train |
google/go-github | github/github-accessors.go | GetChangedFiles | func (p *PullRequest) GetChangedFiles() int {
if p == nil || p.ChangedFiles == nil {
return 0
}
return *p.ChangedFiles
} | go | func (p *PullRequest) GetChangedFiles() int {
if p == nil || p.ChangedFiles == nil {
return 0
}
return *p.ChangedFiles
} | [
"func",
"(",
"p",
"*",
"PullRequest",
")",
"GetChangedFiles",
"(",
")",
"int",
"{",
"if",
"p",
"==",
"nil",
"||",
"p",
".",
"ChangedFiles",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"p",
".",
"ChangedFiles",
"\n",
"}"
] | // GetChangedFiles returns the ChangedFiles field if it's non-nil, zero value otherwise. | [
"GetChangedFiles",
"returns",
"the",
"ChangedFiles",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L7280-L7285 | train |
google/go-github | github/github-accessors.go | GetMergeable | func (p *PullRequest) GetMergeable() bool {
if p == nil || p.Mergeable == nil {
return false
}
return *p.Mergeable
} | go | func (p *PullRequest) GetMergeable() bool {
if p == nil || p.Mergeable == nil {
return false
}
return *p.Mergeable
} | [
"func",
"(",
"p",
"*",
"PullRequest",
")",
"GetMergeable",
"(",
")",
"bool",
"{",
"if",
"p",
"==",
"nil",
"||",
"p",
".",
"Mergeable",
"==",
"nil",
"{",
"return",
"false",
"\n",
"}",
"\n",
"return",
"*",
"p",
".",
"Mergeable",
"\n",
"}"
] | // GetMergeable returns the Mergeable field if it's non-nil, zero value otherwise. | [
"GetMergeable",
"returns",
"the",
"Mergeable",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L7408-L7413 | train |
google/go-github | github/github-accessors.go | GetMergeableState | func (p *PullRequest) GetMergeableState() string {
if p == nil || p.MergeableState == nil {
return ""
}
return *p.MergeableState
} | go | func (p *PullRequest) GetMergeableState() string {
if p == nil || p.MergeableState == nil {
return ""
}
return *p.MergeableState
} | [
"func",
"(",
"p",
"*",
"PullRequest",
")",
"GetMergeableState",
"(",
")",
"string",
"{",
"if",
"p",
"==",
"nil",
"||",
"p",
".",
"MergeableState",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"p",
".",
"MergeableState",
"\n",
"}"
] | // GetMergeableState returns the MergeableState field if it's non-nil, zero value otherwise. | [
"GetMergeableState",
"returns",
"the",
"MergeableState",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L7416-L7421 | train |
google/go-github | github/github-accessors.go | GetMergeCommitSHA | func (p *PullRequest) GetMergeCommitSHA() string {
if p == nil || p.MergeCommitSHA == nil {
return ""
}
return *p.MergeCommitSHA
} | go | func (p *PullRequest) GetMergeCommitSHA() string {
if p == nil || p.MergeCommitSHA == nil {
return ""
}
return *p.MergeCommitSHA
} | [
"func",
"(",
"p",
"*",
"PullRequest",
")",
"GetMergeCommitSHA",
"(",
")",
"string",
"{",
"if",
"p",
"==",
"nil",
"||",
"p",
".",
"MergeCommitSHA",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"p",
".",
"MergeCommitSHA",
"\n",
"}"
] | // GetMergeCommitSHA returns the MergeCommitSHA field if it's non-nil, zero value otherwise. | [
"GetMergeCommitSHA",
"returns",
"the",
"MergeCommitSHA",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L7424-L7429 | train |
google/go-github | github/github-accessors.go | GetMergedAt | func (p *PullRequest) GetMergedAt() time.Time {
if p == nil || p.MergedAt == nil {
return time.Time{}
}
return *p.MergedAt
} | go | func (p *PullRequest) GetMergedAt() time.Time {
if p == nil || p.MergedAt == nil {
return time.Time{}
}
return *p.MergedAt
} | [
"func",
"(",
"p",
"*",
"PullRequest",
")",
"GetMergedAt",
"(",
")",
"time",
".",
"Time",
"{",
"if",
"p",
"==",
"nil",
"||",
"p",
".",
"MergedAt",
"==",
"nil",
"{",
"return",
"time",
".",
"Time",
"{",
"}",
"\n",
"}",
"\n",
"return",
"*",
"p",
".",
"MergedAt",
"\n",
"}"
] | // GetMergedAt returns the MergedAt field if it's non-nil, zero value otherwise. | [
"GetMergedAt",
"returns",
"the",
"MergedAt",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L7440-L7445 | train |
google/go-github | github/github-accessors.go | GetReviewComments | func (p *PullRequest) GetReviewComments() int {
if p == nil || p.ReviewComments == nil {
return 0
}
return *p.ReviewComments
} | go | func (p *PullRequest) GetReviewComments() int {
if p == nil || p.ReviewComments == nil {
return 0
}
return *p.ReviewComments
} | [
"func",
"(",
"p",
"*",
"PullRequest",
")",
"GetReviewComments",
"(",
")",
"int",
"{",
"if",
"p",
"==",
"nil",
"||",
"p",
".",
"ReviewComments",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"p",
".",
"ReviewComments",
"\n",
"}"
] | // GetReviewComments returns the ReviewComments field if it's non-nil, zero value otherwise. | [
"GetReviewComments",
"returns",
"the",
"ReviewComments",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L7488-L7493 | train |
google/go-github | github/github-accessors.go | GetReviewCommentsURL | func (p *PullRequest) GetReviewCommentsURL() string {
if p == nil || p.ReviewCommentsURL == nil {
return ""
}
return *p.ReviewCommentsURL
} | go | func (p *PullRequest) GetReviewCommentsURL() string {
if p == nil || p.ReviewCommentsURL == nil {
return ""
}
return *p.ReviewCommentsURL
} | [
"func",
"(",
"p",
"*",
"PullRequest",
")",
"GetReviewCommentsURL",
"(",
")",
"string",
"{",
"if",
"p",
"==",
"nil",
"||",
"p",
".",
"ReviewCommentsURL",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"p",
".",
"ReviewCommentsURL",
"\n",
"}"
] | // GetReviewCommentsURL returns the ReviewCommentsURL field if it's non-nil, zero value otherwise. | [
"GetReviewCommentsURL",
"returns",
"the",
"ReviewCommentsURL",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L7496-L7501 | train |
google/go-github | github/github-accessors.go | GetReviewCommentURL | func (p *PullRequest) GetReviewCommentURL() string {
if p == nil || p.ReviewCommentURL == nil {
return ""
}
return *p.ReviewCommentURL
} | go | func (p *PullRequest) GetReviewCommentURL() string {
if p == nil || p.ReviewCommentURL == nil {
return ""
}
return *p.ReviewCommentURL
} | [
"func",
"(",
"p",
"*",
"PullRequest",
")",
"GetReviewCommentURL",
"(",
")",
"string",
"{",
"if",
"p",
"==",
"nil",
"||",
"p",
".",
"ReviewCommentURL",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"p",
".",
"ReviewCommentURL",
"\n",
"}"
] | // GetReviewCommentURL returns the ReviewCommentURL field if it's non-nil, zero value otherwise. | [
"GetReviewCommentURL",
"returns",
"the",
"ReviewCommentURL",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L7504-L7509 | train |
google/go-github | github/github-accessors.go | GetDiffHunk | func (p *PullRequestComment) GetDiffHunk() string {
if p == nil || p.DiffHunk == nil {
return ""
}
return *p.DiffHunk
} | go | func (p *PullRequestComment) GetDiffHunk() string {
if p == nil || p.DiffHunk == nil {
return ""
}
return *p.DiffHunk
} | [
"func",
"(",
"p",
"*",
"PullRequestComment",
")",
"GetDiffHunk",
"(",
")",
"string",
"{",
"if",
"p",
"==",
"nil",
"||",
"p",
".",
"DiffHunk",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"p",
".",
"DiffHunk",
"\n",
"}"
] | // GetDiffHunk returns the DiffHunk field if it's non-nil, zero value otherwise. | [
"GetDiffHunk",
"returns",
"the",
"DiffHunk",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L7632-L7637 | train |
google/go-github | github/github-accessors.go | GetInReplyTo | func (p *PullRequestComment) GetInReplyTo() int64 {
if p == nil || p.InReplyTo == nil {
return 0
}
return *p.InReplyTo
} | go | func (p *PullRequestComment) GetInReplyTo() int64 {
if p == nil || p.InReplyTo == nil {
return 0
}
return *p.InReplyTo
} | [
"func",
"(",
"p",
"*",
"PullRequestComment",
")",
"GetInReplyTo",
"(",
")",
"int64",
"{",
"if",
"p",
"==",
"nil",
"||",
"p",
".",
"InReplyTo",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"p",
".",
"InReplyTo",
"\n",
"}"
] | // GetInReplyTo returns the InReplyTo field if it's non-nil, zero value otherwise. | [
"GetInReplyTo",
"returns",
"the",
"InReplyTo",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L7656-L7661 | train |
google/go-github | github/github-accessors.go | GetOriginalCommitID | func (p *PullRequestComment) GetOriginalCommitID() string {
if p == nil || p.OriginalCommitID == nil {
return ""
}
return *p.OriginalCommitID
} | go | func (p *PullRequestComment) GetOriginalCommitID() string {
if p == nil || p.OriginalCommitID == nil {
return ""
}
return *p.OriginalCommitID
} | [
"func",
"(",
"p",
"*",
"PullRequestComment",
")",
"GetOriginalCommitID",
"(",
")",
"string",
"{",
"if",
"p",
"==",
"nil",
"||",
"p",
".",
"OriginalCommitID",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"p",
".",
"OriginalCommitID",
"\n",
"}"
] | // GetOriginalCommitID returns the OriginalCommitID field if it's non-nil, zero value otherwise. | [
"GetOriginalCommitID",
"returns",
"the",
"OriginalCommitID",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L7672-L7677 | train |
google/go-github | github/github-accessors.go | GetOriginalPosition | func (p *PullRequestComment) GetOriginalPosition() int {
if p == nil || p.OriginalPosition == nil {
return 0
}
return *p.OriginalPosition
} | go | func (p *PullRequestComment) GetOriginalPosition() int {
if p == nil || p.OriginalPosition == nil {
return 0
}
return *p.OriginalPosition
} | [
"func",
"(",
"p",
"*",
"PullRequestComment",
")",
"GetOriginalPosition",
"(",
")",
"int",
"{",
"if",
"p",
"==",
"nil",
"||",
"p",
".",
"OriginalPosition",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"p",
".",
"OriginalPosition",
"\n",
"}"
] | // GetOriginalPosition returns the OriginalPosition field if it's non-nil, zero value otherwise. | [
"GetOriginalPosition",
"returns",
"the",
"OriginalPosition",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L7680-L7685 | train |
google/go-github | github/github-accessors.go | GetPullRequestReviewID | func (p *PullRequestComment) GetPullRequestReviewID() int64 {
if p == nil || p.PullRequestReviewID == nil {
return 0
}
return *p.PullRequestReviewID
} | go | func (p *PullRequestComment) GetPullRequestReviewID() int64 {
if p == nil || p.PullRequestReviewID == nil {
return 0
}
return *p.PullRequestReviewID
} | [
"func",
"(",
"p",
"*",
"PullRequestComment",
")",
"GetPullRequestReviewID",
"(",
")",
"int64",
"{",
"if",
"p",
"==",
"nil",
"||",
"p",
".",
"PullRequestReviewID",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"p",
".",
"PullRequestReviewID",
"\n",
"}"
] | // GetPullRequestReviewID returns the PullRequestReviewID field if it's non-nil, zero value otherwise. | [
"GetPullRequestReviewID",
"returns",
"the",
"PullRequestReviewID",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L7704-L7709 | train |
google/go-github | github/github-accessors.go | GetSubmittedAt | func (p *PullRequestReview) GetSubmittedAt() time.Time {
if p == nil || p.SubmittedAt == nil {
return time.Time{}
}
return *p.SubmittedAt
} | go | func (p *PullRequestReview) GetSubmittedAt() time.Time {
if p == nil || p.SubmittedAt == nil {
return time.Time{}
}
return *p.SubmittedAt
} | [
"func",
"(",
"p",
"*",
"PullRequestReview",
")",
"GetSubmittedAt",
"(",
")",
"time",
".",
"Time",
"{",
"if",
"p",
"==",
"nil",
"||",
"p",
".",
"SubmittedAt",
"==",
"nil",
"{",
"return",
"time",
".",
"Time",
"{",
"}",
"\n",
"}",
"\n",
"return",
"*",
"p",
".",
"SubmittedAt",
"\n",
"}"
] | // GetSubmittedAt returns the SubmittedAt field if it's non-nil, zero value otherwise. | [
"GetSubmittedAt",
"returns",
"the",
"SubmittedAt",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L7952-L7957 | train |
google/go-github | github/github-accessors.go | GetDismissStaleReviews | func (p *PullRequestReviewsEnforcementUpdate) GetDismissStaleReviews() bool {
if p == nil || p.DismissStaleReviews == nil {
return false
}
return *p.DismissStaleReviews
} | go | func (p *PullRequestReviewsEnforcementUpdate) GetDismissStaleReviews() bool {
if p == nil || p.DismissStaleReviews == nil {
return false
}
return *p.DismissStaleReviews
} | [
"func",
"(",
"p",
"*",
"PullRequestReviewsEnforcementUpdate",
")",
"GetDismissStaleReviews",
"(",
")",
"bool",
"{",
"if",
"p",
"==",
"nil",
"||",
"p",
".",
"DismissStaleReviews",
"==",
"nil",
"{",
"return",
"false",
"\n",
"}",
"\n",
"return",
"*",
"p",
".",
"DismissStaleReviews",
"\n",
"}"
] | // GetDismissStaleReviews returns the DismissStaleReviews field if it's non-nil, zero value otherwise. | [
"GetDismissStaleReviews",
"returns",
"the",
"DismissStaleReviews",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L8136-L8141 | train |
google/go-github | github/github-accessors.go | GetMergablePulls | func (p *PullStats) GetMergablePulls() int {
if p == nil || p.MergablePulls == nil {
return 0
}
return *p.MergablePulls
} | go | func (p *PullStats) GetMergablePulls() int {
if p == nil || p.MergablePulls == nil {
return 0
}
return *p.MergablePulls
} | [
"func",
"(",
"p",
"*",
"PullStats",
")",
"GetMergablePulls",
"(",
")",
"int",
"{",
"if",
"p",
"==",
"nil",
"||",
"p",
".",
"MergablePulls",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"p",
".",
"MergablePulls",
"\n",
"}"
] | // GetMergablePulls returns the MergablePulls field if it's non-nil, zero value otherwise. | [
"GetMergablePulls",
"returns",
"the",
"MergablePulls",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L8144-L8149 | train |
google/go-github | github/github-accessors.go | GetMergedPulls | func (p *PullStats) GetMergedPulls() int {
if p == nil || p.MergedPulls == nil {
return 0
}
return *p.MergedPulls
} | go | func (p *PullStats) GetMergedPulls() int {
if p == nil || p.MergedPulls == nil {
return 0
}
return *p.MergedPulls
} | [
"func",
"(",
"p",
"*",
"PullStats",
")",
"GetMergedPulls",
"(",
")",
"int",
"{",
"if",
"p",
"==",
"nil",
"||",
"p",
".",
"MergedPulls",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"p",
".",
"MergedPulls",
"\n",
"}"
] | // GetMergedPulls returns the MergedPulls field if it's non-nil, zero value otherwise. | [
"GetMergedPulls",
"returns",
"the",
"MergedPulls",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L8152-L8157 | train |
google/go-github | github/github-accessors.go | GetTotalPulls | func (p *PullStats) GetTotalPulls() int {
if p == nil || p.TotalPulls == nil {
return 0
}
return *p.TotalPulls
} | go | func (p *PullStats) GetTotalPulls() int {
if p == nil || p.TotalPulls == nil {
return 0
}
return *p.TotalPulls
} | [
"func",
"(",
"p",
"*",
"PullStats",
")",
"GetTotalPulls",
"(",
")",
"int",
"{",
"if",
"p",
"==",
"nil",
"||",
"p",
".",
"TotalPulls",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"p",
".",
"TotalPulls",
"\n",
"}"
] | // GetTotalPulls returns the TotalPulls field if it's non-nil, zero value otherwise. | [
"GetTotalPulls",
"returns",
"the",
"TotalPulls",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L8160-L8165 | train |
google/go-github | github/github-accessors.go | GetUnmergablePulls | func (p *PullStats) GetUnmergablePulls() int {
if p == nil || p.UnmergablePulls == nil {
return 0
}
return *p.UnmergablePulls
} | go | func (p *PullStats) GetUnmergablePulls() int {
if p == nil || p.UnmergablePulls == nil {
return 0
}
return *p.UnmergablePulls
} | [
"func",
"(",
"p",
"*",
"PullStats",
")",
"GetUnmergablePulls",
"(",
")",
"int",
"{",
"if",
"p",
"==",
"nil",
"||",
"p",
".",
"UnmergablePulls",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"p",
".",
"UnmergablePulls",
"\n",
"}"
] | // GetUnmergablePulls returns the UnmergablePulls field if it's non-nil, zero value otherwise. | [
"GetUnmergablePulls",
"returns",
"the",
"UnmergablePulls",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L8168-L8173 | train |
google/go-github | github/github-accessors.go | GetDay | func (p *PunchCard) GetDay() int {
if p == nil || p.Day == nil {
return 0
}
return *p.Day
} | go | func (p *PunchCard) GetDay() int {
if p == nil || p.Day == nil {
return 0
}
return *p.Day
} | [
"func",
"(",
"p",
"*",
"PunchCard",
")",
"GetDay",
"(",
")",
"int",
"{",
"if",
"p",
"==",
"nil",
"||",
"p",
".",
"Day",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"p",
".",
"Day",
"\n",
"}"
] | // GetDay returns the Day field if it's non-nil, zero value otherwise. | [
"GetDay",
"returns",
"the",
"Day",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L8184-L8189 | train |
google/go-github | github/github-accessors.go | GetHour | func (p *PunchCard) GetHour() int {
if p == nil || p.Hour == nil {
return 0
}
return *p.Hour
} | go | func (p *PunchCard) GetHour() int {
if p == nil || p.Hour == nil {
return 0
}
return *p.Hour
} | [
"func",
"(",
"p",
"*",
"PunchCard",
")",
"GetHour",
"(",
")",
"int",
"{",
"if",
"p",
"==",
"nil",
"||",
"p",
".",
"Hour",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"p",
".",
"Hour",
"\n",
"}"
] | // GetHour returns the Hour field if it's non-nil, zero value otherwise. | [
"GetHour",
"returns",
"the",
"Hour",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L8192-L8197 | train |
google/go-github | github/github-accessors.go | GetBaseRef | func (p *PushEvent) GetBaseRef() string {
if p == nil || p.BaseRef == nil {
return ""
}
return *p.BaseRef
} | go | func (p *PushEvent) GetBaseRef() string {
if p == nil || p.BaseRef == nil {
return ""
}
return *p.BaseRef
} | [
"func",
"(",
"p",
"*",
"PushEvent",
")",
"GetBaseRef",
"(",
")",
"string",
"{",
"if",
"p",
"==",
"nil",
"||",
"p",
".",
"BaseRef",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"p",
".",
"BaseRef",
"\n",
"}"
] | // GetBaseRef returns the BaseRef field if it's non-nil, zero value otherwise. | [
"GetBaseRef",
"returns",
"the",
"BaseRef",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L8208-L8213 | train |
google/go-github | github/github-accessors.go | GetDistinctSize | func (p *PushEvent) GetDistinctSize() int {
if p == nil || p.DistinctSize == nil {
return 0
}
return *p.DistinctSize
} | go | func (p *PushEvent) GetDistinctSize() int {
if p == nil || p.DistinctSize == nil {
return 0
}
return *p.DistinctSize
} | [
"func",
"(",
"p",
"*",
"PushEvent",
")",
"GetDistinctSize",
"(",
")",
"int",
"{",
"if",
"p",
"==",
"nil",
"||",
"p",
".",
"DistinctSize",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"p",
".",
"DistinctSize",
"\n",
"}"
] | // GetDistinctSize returns the DistinctSize field if it's non-nil, zero value otherwise. | [
"GetDistinctSize",
"returns",
"the",
"DistinctSize",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L8248-L8253 | train |
google/go-github | github/github-accessors.go | GetPushID | func (p *PushEvent) GetPushID() int64 {
if p == nil || p.PushID == nil {
return 0
}
return *p.PushID
} | go | func (p *PushEvent) GetPushID() int64 {
if p == nil || p.PushID == nil {
return 0
}
return *p.PushID
} | [
"func",
"(",
"p",
"*",
"PushEvent",
")",
"GetPushID",
"(",
")",
"int64",
"{",
"if",
"p",
"==",
"nil",
"||",
"p",
".",
"PushID",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"p",
".",
"PushID",
"\n",
"}"
] | // GetPushID returns the PushID field if it's non-nil, zero value otherwise. | [
"GetPushID",
"returns",
"the",
"PushID",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L8296-L8301 | train |
google/go-github | github/github-accessors.go | GetTreeID | func (p *PushEventCommit) GetTreeID() string {
if p == nil || p.TreeID == nil {
return ""
}
return *p.TreeID
} | go | func (p *PushEventCommit) GetTreeID() string {
if p == nil || p.TreeID == nil {
return ""
}
return *p.TreeID
} | [
"func",
"(",
"p",
"*",
"PushEventCommit",
")",
"GetTreeID",
"(",
")",
"string",
"{",
"if",
"p",
"==",
"nil",
"||",
"p",
".",
"TreeID",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"p",
".",
"TreeID",
"\n",
"}"
] | // GetTreeID returns the TreeID field if it's non-nil, zero value otherwise. | [
"GetTreeID",
"returns",
"the",
"TreeID",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L8392-L8397 | train |
google/go-github | github/github-accessors.go | GetOrganization | func (p *PushEventRepository) GetOrganization() string {
if p == nil || p.Organization == nil {
return ""
}
return *p.Organization
} | go | func (p *PushEventRepository) GetOrganization() string {
if p == nil || p.Organization == nil {
return ""
}
return *p.Organization
} | [
"func",
"(",
"p",
"*",
"PushEventRepository",
")",
"GetOrganization",
"(",
")",
"string",
"{",
"if",
"p",
"==",
"nil",
"||",
"p",
".",
"Organization",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"p",
".",
"Organization",
"\n",
"}"
] | // GetOrganization returns the Organization field if it's non-nil, zero value otherwise. | [
"GetOrganization",
"returns",
"the",
"Organization",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L8592-L8597 | train |
google/go-github | github/github-accessors.go | GetConfused | func (r *Reactions) GetConfused() int {
if r == nil || r.Confused == nil {
return 0
}
return *r.Confused
} | go | func (r *Reactions) GetConfused() int {
if r == nil || r.Confused == nil {
return 0
}
return *r.Confused
} | [
"func",
"(",
"r",
"*",
"Reactions",
")",
"GetConfused",
"(",
")",
"int",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"Confused",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"Confused",
"\n",
"}"
] | // GetConfused returns the Confused field if it's non-nil, zero value otherwise. | [
"GetConfused",
"returns",
"the",
"Confused",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L8736-L8741 | train |
google/go-github | github/github-accessors.go | GetHeart | func (r *Reactions) GetHeart() int {
if r == nil || r.Heart == nil {
return 0
}
return *r.Heart
} | go | func (r *Reactions) GetHeart() int {
if r == nil || r.Heart == nil {
return 0
}
return *r.Heart
} | [
"func",
"(",
"r",
"*",
"Reactions",
")",
"GetHeart",
"(",
")",
"int",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"Heart",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"Heart",
"\n",
"}"
] | // GetHeart returns the Heart field if it's non-nil, zero value otherwise. | [
"GetHeart",
"returns",
"the",
"Heart",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L8744-L8749 | train |
google/go-github | github/github-accessors.go | GetHooray | func (r *Reactions) GetHooray() int {
if r == nil || r.Hooray == nil {
return 0
}
return *r.Hooray
} | go | func (r *Reactions) GetHooray() int {
if r == nil || r.Hooray == nil {
return 0
}
return *r.Hooray
} | [
"func",
"(",
"r",
"*",
"Reactions",
")",
"GetHooray",
"(",
")",
"int",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"Hooray",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"Hooray",
"\n",
"}"
] | // GetHooray returns the Hooray field if it's non-nil, zero value otherwise. | [
"GetHooray",
"returns",
"the",
"Hooray",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L8752-L8757 | train |
google/go-github | github/github-accessors.go | GetLaugh | func (r *Reactions) GetLaugh() int {
if r == nil || r.Laugh == nil {
return 0
}
return *r.Laugh
} | go | func (r *Reactions) GetLaugh() int {
if r == nil || r.Laugh == nil {
return 0
}
return *r.Laugh
} | [
"func",
"(",
"r",
"*",
"Reactions",
")",
"GetLaugh",
"(",
")",
"int",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"Laugh",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"Laugh",
"\n",
"}"
] | // GetLaugh returns the Laugh field if it's non-nil, zero value otherwise. | [
"GetLaugh",
"returns",
"the",
"Laugh",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L8760-L8765 | train |
google/go-github | github/github-accessors.go | GetMinusOne | func (r *Reactions) GetMinusOne() int {
if r == nil || r.MinusOne == nil {
return 0
}
return *r.MinusOne
} | go | func (r *Reactions) GetMinusOne() int {
if r == nil || r.MinusOne == nil {
return 0
}
return *r.MinusOne
} | [
"func",
"(",
"r",
"*",
"Reactions",
")",
"GetMinusOne",
"(",
")",
"int",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"MinusOne",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"MinusOne",
"\n",
"}"
] | // GetMinusOne returns the MinusOne field if it's non-nil, zero value otherwise. | [
"GetMinusOne",
"returns",
"the",
"MinusOne",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L8768-L8773 | train |
google/go-github | github/github-accessors.go | GetPlusOne | func (r *Reactions) GetPlusOne() int {
if r == nil || r.PlusOne == nil {
return 0
}
return *r.PlusOne
} | go | func (r *Reactions) GetPlusOne() int {
if r == nil || r.PlusOne == nil {
return 0
}
return *r.PlusOne
} | [
"func",
"(",
"r",
"*",
"Reactions",
")",
"GetPlusOne",
"(",
")",
"int",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"PlusOne",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"PlusOne",
"\n",
"}"
] | // GetPlusOne returns the PlusOne field if it's non-nil, zero value otherwise. | [
"GetPlusOne",
"returns",
"the",
"PlusOne",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L8776-L8781 | train |
google/go-github | github/github-accessors.go | GetBrowserDownloadURL | func (r *ReleaseAsset) GetBrowserDownloadURL() string {
if r == nil || r.BrowserDownloadURL == nil {
return ""
}
return *r.BrowserDownloadURL
} | go | func (r *ReleaseAsset) GetBrowserDownloadURL() string {
if r == nil || r.BrowserDownloadURL == nil {
return ""
}
return *r.BrowserDownloadURL
} | [
"func",
"(",
"r",
"*",
"ReleaseAsset",
")",
"GetBrowserDownloadURL",
"(",
")",
"string",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"BrowserDownloadURL",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"BrowserDownloadURL",
"\n",
"}"
] | // GetBrowserDownloadURL returns the BrowserDownloadURL field if it's non-nil, zero value otherwise. | [
"GetBrowserDownloadURL",
"returns",
"the",
"BrowserDownloadURL",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L8832-L8837 | train |
google/go-github | github/github-accessors.go | GetContentType | func (r *ReleaseAsset) GetContentType() string {
if r == nil || r.ContentType == nil {
return ""
}
return *r.ContentType
} | go | func (r *ReleaseAsset) GetContentType() string {
if r == nil || r.ContentType == nil {
return ""
}
return *r.ContentType
} | [
"func",
"(",
"r",
"*",
"ReleaseAsset",
")",
"GetContentType",
"(",
")",
"string",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"ContentType",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"ContentType",
"\n",
"}"
] | // GetContentType returns the ContentType field if it's non-nil, zero value otherwise. | [
"GetContentType",
"returns",
"the",
"ContentType",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L8840-L8845 | train |
google/go-github | github/github-accessors.go | GetDownloadCount | func (r *ReleaseAsset) GetDownloadCount() int {
if r == nil || r.DownloadCount == nil {
return 0
}
return *r.DownloadCount
} | go | func (r *ReleaseAsset) GetDownloadCount() int {
if r == nil || r.DownloadCount == nil {
return 0
}
return *r.DownloadCount
} | [
"func",
"(",
"r",
"*",
"ReleaseAsset",
")",
"GetDownloadCount",
"(",
")",
"int",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"DownloadCount",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"DownloadCount",
"\n",
"}"
] | // GetDownloadCount returns the DownloadCount field if it's non-nil, zero value otherwise. | [
"GetDownloadCount",
"returns",
"the",
"DownloadCount",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L8856-L8861 | train |
google/go-github | github/github-accessors.go | GetFrom | func (r *Rename) GetFrom() string {
if r == nil || r.From == nil {
return ""
}
return *r.From
} | go | func (r *Rename) GetFrom() string {
if r == nil || r.From == nil {
return ""
}
return *r.From
} | [
"func",
"(",
"r",
"*",
"Rename",
")",
"GetFrom",
"(",
")",
"string",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"From",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"From",
"\n",
"}"
] | // GetFrom returns the From field if it's non-nil, zero value otherwise. | [
"GetFrom",
"returns",
"the",
"From",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L8976-L8981 | train |
google/go-github | github/github-accessors.go | GetTo | func (r *Rename) GetTo() string {
if r == nil || r.To == nil {
return ""
}
return *r.To
} | go | func (r *Rename) GetTo() string {
if r == nil || r.To == nil {
return ""
}
return *r.To
} | [
"func",
"(",
"r",
"*",
"Rename",
")",
"GetTo",
"(",
")",
"string",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"To",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"To",
"\n",
"}"
] | // GetTo returns the To field if it's non-nil, zero value otherwise. | [
"GetTo",
"returns",
"the",
"To",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L8984-L8989 | train |
google/go-github | github/github-accessors.go | GetAllowMergeCommit | func (r *Repository) GetAllowMergeCommit() bool {
if r == nil || r.AllowMergeCommit == nil {
return false
}
return *r.AllowMergeCommit
} | go | func (r *Repository) GetAllowMergeCommit() bool {
if r == nil || r.AllowMergeCommit == nil {
return false
}
return *r.AllowMergeCommit
} | [
"func",
"(",
"r",
"*",
"Repository",
")",
"GetAllowMergeCommit",
"(",
")",
"bool",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"AllowMergeCommit",
"==",
"nil",
"{",
"return",
"false",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"AllowMergeCommit",
"\n",
"}"
] | // GetAllowMergeCommit returns the AllowMergeCommit field if it's non-nil, zero value otherwise. | [
"GetAllowMergeCommit",
"returns",
"the",
"AllowMergeCommit",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L9008-L9013 | train |
google/go-github | github/github-accessors.go | GetAllowRebaseMerge | func (r *Repository) GetAllowRebaseMerge() bool {
if r == nil || r.AllowRebaseMerge == nil {
return false
}
return *r.AllowRebaseMerge
} | go | func (r *Repository) GetAllowRebaseMerge() bool {
if r == nil || r.AllowRebaseMerge == nil {
return false
}
return *r.AllowRebaseMerge
} | [
"func",
"(",
"r",
"*",
"Repository",
")",
"GetAllowRebaseMerge",
"(",
")",
"bool",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"AllowRebaseMerge",
"==",
"nil",
"{",
"return",
"false",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"AllowRebaseMerge",
"\n",
"}"
] | // GetAllowRebaseMerge returns the AllowRebaseMerge field if it's non-nil, zero value otherwise. | [
"GetAllowRebaseMerge",
"returns",
"the",
"AllowRebaseMerge",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L9016-L9021 | train |
google/go-github | github/github-accessors.go | GetAllowSquashMerge | func (r *Repository) GetAllowSquashMerge() bool {
if r == nil || r.AllowSquashMerge == nil {
return false
}
return *r.AllowSquashMerge
} | go | func (r *Repository) GetAllowSquashMerge() bool {
if r == nil || r.AllowSquashMerge == nil {
return false
}
return *r.AllowSquashMerge
} | [
"func",
"(",
"r",
"*",
"Repository",
")",
"GetAllowSquashMerge",
"(",
")",
"bool",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"AllowSquashMerge",
"==",
"nil",
"{",
"return",
"false",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"AllowSquashMerge",
"\n",
"}"
] | // GetAllowSquashMerge returns the AllowSquashMerge field if it's non-nil, zero value otherwise. | [
"GetAllowSquashMerge",
"returns",
"the",
"AllowSquashMerge",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L9024-L9029 | train |
google/go-github | github/github-accessors.go | GetAssigneesURL | func (r *Repository) GetAssigneesURL() string {
if r == nil || r.AssigneesURL == nil {
return ""
}
return *r.AssigneesURL
} | go | func (r *Repository) GetAssigneesURL() string {
if r == nil || r.AssigneesURL == nil {
return ""
}
return *r.AssigneesURL
} | [
"func",
"(",
"r",
"*",
"Repository",
")",
"GetAssigneesURL",
"(",
")",
"string",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"AssigneesURL",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"AssigneesURL",
"\n",
"}"
] | // GetAssigneesURL returns the AssigneesURL field if it's non-nil, zero value otherwise. | [
"GetAssigneesURL",
"returns",
"the",
"AssigneesURL",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L9048-L9053 | train |
google/go-github | github/github-accessors.go | GetAutoInit | func (r *Repository) GetAutoInit() bool {
if r == nil || r.AutoInit == nil {
return false
}
return *r.AutoInit
} | go | func (r *Repository) GetAutoInit() bool {
if r == nil || r.AutoInit == nil {
return false
}
return *r.AutoInit
} | [
"func",
"(",
"r",
"*",
"Repository",
")",
"GetAutoInit",
"(",
")",
"bool",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"AutoInit",
"==",
"nil",
"{",
"return",
"false",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"AutoInit",
"\n",
"}"
] | // GetAutoInit returns the AutoInit field if it's non-nil, zero value otherwise. | [
"GetAutoInit",
"returns",
"the",
"AutoInit",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L9056-L9061 | train |
google/go-github | github/github-accessors.go | GetBlobsURL | func (r *Repository) GetBlobsURL() string {
if r == nil || r.BlobsURL == nil {
return ""
}
return *r.BlobsURL
} | go | func (r *Repository) GetBlobsURL() string {
if r == nil || r.BlobsURL == nil {
return ""
}
return *r.BlobsURL
} | [
"func",
"(",
"r",
"*",
"Repository",
")",
"GetBlobsURL",
"(",
")",
"string",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"BlobsURL",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"BlobsURL",
"\n",
"}"
] | // GetBlobsURL returns the BlobsURL field if it's non-nil, zero value otherwise. | [
"GetBlobsURL",
"returns",
"the",
"BlobsURL",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L9064-L9069 | train |
google/go-github | github/github-accessors.go | GetBranchesURL | func (r *Repository) GetBranchesURL() string {
if r == nil || r.BranchesURL == nil {
return ""
}
return *r.BranchesURL
} | go | func (r *Repository) GetBranchesURL() string {
if r == nil || r.BranchesURL == nil {
return ""
}
return *r.BranchesURL
} | [
"func",
"(",
"r",
"*",
"Repository",
")",
"GetBranchesURL",
"(",
")",
"string",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"BranchesURL",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"BranchesURL",
"\n",
"}"
] | // GetBranchesURL returns the BranchesURL field if it's non-nil, zero value otherwise. | [
"GetBranchesURL",
"returns",
"the",
"BranchesURL",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L9072-L9077 | train |
google/go-github | github/github-accessors.go | GetCollaboratorsURL | func (r *Repository) GetCollaboratorsURL() string {
if r == nil || r.CollaboratorsURL == nil {
return ""
}
return *r.CollaboratorsURL
} | go | func (r *Repository) GetCollaboratorsURL() string {
if r == nil || r.CollaboratorsURL == nil {
return ""
}
return *r.CollaboratorsURL
} | [
"func",
"(",
"r",
"*",
"Repository",
")",
"GetCollaboratorsURL",
"(",
")",
"string",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"CollaboratorsURL",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"CollaboratorsURL",
"\n",
"}"
] | // GetCollaboratorsURL returns the CollaboratorsURL field if it's non-nil, zero value otherwise. | [
"GetCollaboratorsURL",
"returns",
"the",
"CollaboratorsURL",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L9096-L9101 | train |
google/go-github | github/github-accessors.go | GetCompareURL | func (r *Repository) GetCompareURL() string {
if r == nil || r.CompareURL == nil {
return ""
}
return *r.CompareURL
} | go | func (r *Repository) GetCompareURL() string {
if r == nil || r.CompareURL == nil {
return ""
}
return *r.CompareURL
} | [
"func",
"(",
"r",
"*",
"Repository",
")",
"GetCompareURL",
"(",
")",
"string",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"CompareURL",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"CompareURL",
"\n",
"}"
] | // GetCompareURL returns the CompareURL field if it's non-nil, zero value otherwise. | [
"GetCompareURL",
"returns",
"the",
"CompareURL",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L9120-L9125 | train |
google/go-github | github/github-accessors.go | GetContributorsURL | func (r *Repository) GetContributorsURL() string {
if r == nil || r.ContributorsURL == nil {
return ""
}
return *r.ContributorsURL
} | go | func (r *Repository) GetContributorsURL() string {
if r == nil || r.ContributorsURL == nil {
return ""
}
return *r.ContributorsURL
} | [
"func",
"(",
"r",
"*",
"Repository",
")",
"GetContributorsURL",
"(",
")",
"string",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"ContributorsURL",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"ContributorsURL",
"\n",
"}"
] | // GetContributorsURL returns the ContributorsURL field if it's non-nil, zero value otherwise. | [
"GetContributorsURL",
"returns",
"the",
"ContributorsURL",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L9136-L9141 | train |
google/go-github | github/github-accessors.go | GetDeploymentsURL | func (r *Repository) GetDeploymentsURL() string {
if r == nil || r.DeploymentsURL == nil {
return ""
}
return *r.DeploymentsURL
} | go | func (r *Repository) GetDeploymentsURL() string {
if r == nil || r.DeploymentsURL == nil {
return ""
}
return *r.DeploymentsURL
} | [
"func",
"(",
"r",
"*",
"Repository",
")",
"GetDeploymentsURL",
"(",
")",
"string",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"DeploymentsURL",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"DeploymentsURL",
"\n",
"}"
] | // GetDeploymentsURL returns the DeploymentsURL field if it's non-nil, zero value otherwise. | [
"GetDeploymentsURL",
"returns",
"the",
"DeploymentsURL",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L9160-L9165 | train |
google/go-github | github/github-accessors.go | GetDisabled | func (r *Repository) GetDisabled() bool {
if r == nil || r.Disabled == nil {
return false
}
return *r.Disabled
} | go | func (r *Repository) GetDisabled() bool {
if r == nil || r.Disabled == nil {
return false
}
return *r.Disabled
} | [
"func",
"(",
"r",
"*",
"Repository",
")",
"GetDisabled",
"(",
")",
"bool",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"Disabled",
"==",
"nil",
"{",
"return",
"false",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"Disabled",
"\n",
"}"
] | // GetDisabled returns the Disabled field if it's non-nil, zero value otherwise. | [
"GetDisabled",
"returns",
"the",
"Disabled",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L9176-L9181 | train |
google/go-github | github/github-accessors.go | GetDownloadsURL | func (r *Repository) GetDownloadsURL() string {
if r == nil || r.DownloadsURL == nil {
return ""
}
return *r.DownloadsURL
} | go | func (r *Repository) GetDownloadsURL() string {
if r == nil || r.DownloadsURL == nil {
return ""
}
return *r.DownloadsURL
} | [
"func",
"(",
"r",
"*",
"Repository",
")",
"GetDownloadsURL",
"(",
")",
"string",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"DownloadsURL",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"DownloadsURL",
"\n",
"}"
] | // GetDownloadsURL returns the DownloadsURL field if it's non-nil, zero value otherwise. | [
"GetDownloadsURL",
"returns",
"the",
"DownloadsURL",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L9184-L9189 | train |
google/go-github | github/github-accessors.go | GetForksURL | func (r *Repository) GetForksURL() string {
if r == nil || r.ForksURL == nil {
return ""
}
return *r.ForksURL
} | go | func (r *Repository) GetForksURL() string {
if r == nil || r.ForksURL == nil {
return ""
}
return *r.ForksURL
} | [
"func",
"(",
"r",
"*",
"Repository",
")",
"GetForksURL",
"(",
")",
"string",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"ForksURL",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"ForksURL",
"\n",
"}"
] | // GetForksURL returns the ForksURL field if it's non-nil, zero value otherwise. | [
"GetForksURL",
"returns",
"the",
"ForksURL",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L9216-L9221 | train |
google/go-github | github/github-accessors.go | GetGitCommitsURL | func (r *Repository) GetGitCommitsURL() string {
if r == nil || r.GitCommitsURL == nil {
return ""
}
return *r.GitCommitsURL
} | go | func (r *Repository) GetGitCommitsURL() string {
if r == nil || r.GitCommitsURL == nil {
return ""
}
return *r.GitCommitsURL
} | [
"func",
"(",
"r",
"*",
"Repository",
")",
"GetGitCommitsURL",
"(",
")",
"string",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"GitCommitsURL",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"GitCommitsURL",
"\n",
"}"
] | // GetGitCommitsURL returns the GitCommitsURL field if it's non-nil, zero value otherwise. | [
"GetGitCommitsURL",
"returns",
"the",
"GitCommitsURL",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L9232-L9237 | train |
google/go-github | github/github-accessors.go | GetGitignoreTemplate | func (r *Repository) GetGitignoreTemplate() string {
if r == nil || r.GitignoreTemplate == nil {
return ""
}
return *r.GitignoreTemplate
} | go | func (r *Repository) GetGitignoreTemplate() string {
if r == nil || r.GitignoreTemplate == nil {
return ""
}
return *r.GitignoreTemplate
} | [
"func",
"(",
"r",
"*",
"Repository",
")",
"GetGitignoreTemplate",
"(",
")",
"string",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"GitignoreTemplate",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"GitignoreTemplate",
"\n",
"}"
] | // GetGitignoreTemplate returns the GitignoreTemplate field if it's non-nil, zero value otherwise. | [
"GetGitignoreTemplate",
"returns",
"the",
"GitignoreTemplate",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L9240-L9245 | train |
google/go-github | github/github-accessors.go | GetGitRefsURL | func (r *Repository) GetGitRefsURL() string {
if r == nil || r.GitRefsURL == nil {
return ""
}
return *r.GitRefsURL
} | go | func (r *Repository) GetGitRefsURL() string {
if r == nil || r.GitRefsURL == nil {
return ""
}
return *r.GitRefsURL
} | [
"func",
"(",
"r",
"*",
"Repository",
")",
"GetGitRefsURL",
"(",
")",
"string",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"GitRefsURL",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"GitRefsURL",
"\n",
"}"
] | // GetGitRefsURL returns the GitRefsURL field if it's non-nil, zero value otherwise. | [
"GetGitRefsURL",
"returns",
"the",
"GitRefsURL",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L9248-L9253 | train |
google/go-github | github/github-accessors.go | GetGitTagsURL | func (r *Repository) GetGitTagsURL() string {
if r == nil || r.GitTagsURL == nil {
return ""
}
return *r.GitTagsURL
} | go | func (r *Repository) GetGitTagsURL() string {
if r == nil || r.GitTagsURL == nil {
return ""
}
return *r.GitTagsURL
} | [
"func",
"(",
"r",
"*",
"Repository",
")",
"GetGitTagsURL",
"(",
")",
"string",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"GitTagsURL",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"GitTagsURL",
"\n",
"}"
] | // GetGitTagsURL returns the GitTagsURL field if it's non-nil, zero value otherwise. | [
"GetGitTagsURL",
"returns",
"the",
"GitTagsURL",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L9256-L9261 | train |
google/go-github | github/github-accessors.go | GetHasProjects | func (r *Repository) GetHasProjects() bool {
if r == nil || r.HasProjects == nil {
return false
}
return *r.HasProjects
} | go | func (r *Repository) GetHasProjects() bool {
if r == nil || r.HasProjects == nil {
return false
}
return *r.HasProjects
} | [
"func",
"(",
"r",
"*",
"Repository",
")",
"GetHasProjects",
"(",
")",
"bool",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"HasProjects",
"==",
"nil",
"{",
"return",
"false",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"HasProjects",
"\n",
"}"
] | // GetHasProjects returns the HasProjects field if it's non-nil, zero value otherwise. | [
"GetHasProjects",
"returns",
"the",
"HasProjects",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L9296-L9301 | train |
google/go-github | github/github-accessors.go | GetIssueCommentURL | func (r *Repository) GetIssueCommentURL() string {
if r == nil || r.IssueCommentURL == nil {
return ""
}
return *r.IssueCommentURL
} | go | func (r *Repository) GetIssueCommentURL() string {
if r == nil || r.IssueCommentURL == nil {
return ""
}
return *r.IssueCommentURL
} | [
"func",
"(",
"r",
"*",
"Repository",
")",
"GetIssueCommentURL",
"(",
")",
"string",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"IssueCommentURL",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"IssueCommentURL",
"\n",
"}"
] | // GetIssueCommentURL returns the IssueCommentURL field if it's non-nil, zero value otherwise. | [
"GetIssueCommentURL",
"returns",
"the",
"IssueCommentURL",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L9344-L9349 | train |
google/go-github | github/github-accessors.go | GetIssueEventsURL | func (r *Repository) GetIssueEventsURL() string {
if r == nil || r.IssueEventsURL == nil {
return ""
}
return *r.IssueEventsURL
} | go | func (r *Repository) GetIssueEventsURL() string {
if r == nil || r.IssueEventsURL == nil {
return ""
}
return *r.IssueEventsURL
} | [
"func",
"(",
"r",
"*",
"Repository",
")",
"GetIssueEventsURL",
"(",
")",
"string",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"IssueEventsURL",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"IssueEventsURL",
"\n",
"}"
] | // GetIssueEventsURL returns the IssueEventsURL field if it's non-nil, zero value otherwise. | [
"GetIssueEventsURL",
"returns",
"the",
"IssueEventsURL",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L9352-L9357 | train |
google/go-github | github/github-accessors.go | GetKeysURL | func (r *Repository) GetKeysURL() string {
if r == nil || r.KeysURL == nil {
return ""
}
return *r.KeysURL
} | go | func (r *Repository) GetKeysURL() string {
if r == nil || r.KeysURL == nil {
return ""
}
return *r.KeysURL
} | [
"func",
"(",
"r",
"*",
"Repository",
")",
"GetKeysURL",
"(",
")",
"string",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"KeysURL",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"KeysURL",
"\n",
"}"
] | // GetKeysURL returns the KeysURL field if it's non-nil, zero value otherwise. | [
"GetKeysURL",
"returns",
"the",
"KeysURL",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L9368-L9373 | train |
google/go-github | github/github-accessors.go | GetLanguagesURL | func (r *Repository) GetLanguagesURL() string {
if r == nil || r.LanguagesURL == nil {
return ""
}
return *r.LanguagesURL
} | go | func (r *Repository) GetLanguagesURL() string {
if r == nil || r.LanguagesURL == nil {
return ""
}
return *r.LanguagesURL
} | [
"func",
"(",
"r",
"*",
"Repository",
")",
"GetLanguagesURL",
"(",
")",
"string",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"LanguagesURL",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"LanguagesURL",
"\n",
"}"
] | // GetLanguagesURL returns the LanguagesURL field if it's non-nil, zero value otherwise. | [
"GetLanguagesURL",
"returns",
"the",
"LanguagesURL",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L9392-L9397 | train |
google/go-github | github/github-accessors.go | GetLicenseTemplate | func (r *Repository) GetLicenseTemplate() string {
if r == nil || r.LicenseTemplate == nil {
return ""
}
return *r.LicenseTemplate
} | go | func (r *Repository) GetLicenseTemplate() string {
if r == nil || r.LicenseTemplate == nil {
return ""
}
return *r.LicenseTemplate
} | [
"func",
"(",
"r",
"*",
"Repository",
")",
"GetLicenseTemplate",
"(",
")",
"string",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"LicenseTemplate",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"LicenseTemplate",
"\n",
"}"
] | // GetLicenseTemplate returns the LicenseTemplate field if it's non-nil, zero value otherwise. | [
"GetLicenseTemplate",
"returns",
"the",
"LicenseTemplate",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L9408-L9413 | train |
google/go-github | github/github-accessors.go | GetMergesURL | func (r *Repository) GetMergesURL() string {
if r == nil || r.MergesURL == nil {
return ""
}
return *r.MergesURL
} | go | func (r *Repository) GetMergesURL() string {
if r == nil || r.MergesURL == nil {
return ""
}
return *r.MergesURL
} | [
"func",
"(",
"r",
"*",
"Repository",
")",
"GetMergesURL",
"(",
")",
"string",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"MergesURL",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"MergesURL",
"\n",
"}"
] | // GetMergesURL returns the MergesURL field if it's non-nil, zero value otherwise. | [
"GetMergesURL",
"returns",
"the",
"MergesURL",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L9424-L9429 | train |
google/go-github | github/github-accessors.go | GetMilestonesURL | func (r *Repository) GetMilestonesURL() string {
if r == nil || r.MilestonesURL == nil {
return ""
}
return *r.MilestonesURL
} | go | func (r *Repository) GetMilestonesURL() string {
if r == nil || r.MilestonesURL == nil {
return ""
}
return *r.MilestonesURL
} | [
"func",
"(",
"r",
"*",
"Repository",
")",
"GetMilestonesURL",
"(",
")",
"string",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"MilestonesURL",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"MilestonesURL",
"\n",
"}"
] | // GetMilestonesURL returns the MilestonesURL field if it's non-nil, zero value otherwise. | [
"GetMilestonesURL",
"returns",
"the",
"MilestonesURL",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L9432-L9437 | train |
google/go-github | github/github-accessors.go | GetMirrorURL | func (r *Repository) GetMirrorURL() string {
if r == nil || r.MirrorURL == nil {
return ""
}
return *r.MirrorURL
} | go | func (r *Repository) GetMirrorURL() string {
if r == nil || r.MirrorURL == nil {
return ""
}
return *r.MirrorURL
} | [
"func",
"(",
"r",
"*",
"Repository",
")",
"GetMirrorURL",
"(",
")",
"string",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"MirrorURL",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"MirrorURL",
"\n",
"}"
] | // GetMirrorURL returns the MirrorURL field if it's non-nil, zero value otherwise. | [
"GetMirrorURL",
"returns",
"the",
"MirrorURL",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L9440-L9445 | train |
google/go-github | github/github-accessors.go | GetNetworkCount | func (r *Repository) GetNetworkCount() int {
if r == nil || r.NetworkCount == nil {
return 0
}
return *r.NetworkCount
} | go | func (r *Repository) GetNetworkCount() int {
if r == nil || r.NetworkCount == nil {
return 0
}
return *r.NetworkCount
} | [
"func",
"(",
"r",
"*",
"Repository",
")",
"GetNetworkCount",
"(",
")",
"int",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"NetworkCount",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"NetworkCount",
"\n",
"}"
] | // GetNetworkCount returns the NetworkCount field if it's non-nil, zero value otherwise. | [
"GetNetworkCount",
"returns",
"the",
"NetworkCount",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L9456-L9461 | train |
google/go-github | github/github-accessors.go | GetNotificationsURL | func (r *Repository) GetNotificationsURL() string {
if r == nil || r.NotificationsURL == nil {
return ""
}
return *r.NotificationsURL
} | go | func (r *Repository) GetNotificationsURL() string {
if r == nil || r.NotificationsURL == nil {
return ""
}
return *r.NotificationsURL
} | [
"func",
"(",
"r",
"*",
"Repository",
")",
"GetNotificationsURL",
"(",
")",
"string",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"NotificationsURL",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"NotificationsURL",
"\n",
"}"
] | // GetNotificationsURL returns the NotificationsURL field if it's non-nil, zero value otherwise. | [
"GetNotificationsURL",
"returns",
"the",
"NotificationsURL",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L9472-L9477 | train |
google/go-github | github/github-accessors.go | GetPullsURL | func (r *Repository) GetPullsURL() string {
if r == nil || r.PullsURL == nil {
return ""
}
return *r.PullsURL
} | go | func (r *Repository) GetPullsURL() string {
if r == nil || r.PullsURL == nil {
return ""
}
return *r.PullsURL
} | [
"func",
"(",
"r",
"*",
"Repository",
")",
"GetPullsURL",
"(",
")",
"string",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"PullsURL",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"PullsURL",
"\n",
"}"
] | // GetPullsURL returns the PullsURL field if it's non-nil, zero value otherwise. | [
"GetPullsURL",
"returns",
"the",
"PullsURL",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L9528-L9533 | train |
google/go-github | github/github-accessors.go | GetReleasesURL | func (r *Repository) GetReleasesURL() string {
if r == nil || r.ReleasesURL == nil {
return ""
}
return *r.ReleasesURL
} | go | func (r *Repository) GetReleasesURL() string {
if r == nil || r.ReleasesURL == nil {
return ""
}
return *r.ReleasesURL
} | [
"func",
"(",
"r",
"*",
"Repository",
")",
"GetReleasesURL",
"(",
")",
"string",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"ReleasesURL",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"ReleasesURL",
"\n",
"}"
] | // GetReleasesURL returns the ReleasesURL field if it's non-nil, zero value otherwise. | [
"GetReleasesURL",
"returns",
"the",
"ReleasesURL",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L9544-L9549 | train |
google/go-github | github/github-accessors.go | GetStargazersURL | func (r *Repository) GetStargazersURL() string {
if r == nil || r.StargazersURL == nil {
return ""
}
return *r.StargazersURL
} | go | func (r *Repository) GetStargazersURL() string {
if r == nil || r.StargazersURL == nil {
return ""
}
return *r.StargazersURL
} | [
"func",
"(",
"r",
"*",
"Repository",
")",
"GetStargazersURL",
"(",
")",
"string",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"StargazersURL",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"StargazersURL",
"\n",
"}"
] | // GetStargazersURL returns the StargazersURL field if it's non-nil, zero value otherwise. | [
"GetStargazersURL",
"returns",
"the",
"StargazersURL",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L9584-L9589 | train |
google/go-github | github/github-accessors.go | GetSubscribersCount | func (r *Repository) GetSubscribersCount() int {
if r == nil || r.SubscribersCount == nil {
return 0
}
return *r.SubscribersCount
} | go | func (r *Repository) GetSubscribersCount() int {
if r == nil || r.SubscribersCount == nil {
return 0
}
return *r.SubscribersCount
} | [
"func",
"(",
"r",
"*",
"Repository",
")",
"GetSubscribersCount",
"(",
")",
"int",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"SubscribersCount",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"SubscribersCount",
"\n",
"}"
] | // GetSubscribersCount returns the SubscribersCount field if it's non-nil, zero value otherwise. | [
"GetSubscribersCount",
"returns",
"the",
"SubscribersCount",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L9600-L9605 | train |
google/go-github | github/github-accessors.go | GetSubscribersURL | func (r *Repository) GetSubscribersURL() string {
if r == nil || r.SubscribersURL == nil {
return ""
}
return *r.SubscribersURL
} | go | func (r *Repository) GetSubscribersURL() string {
if r == nil || r.SubscribersURL == nil {
return ""
}
return *r.SubscribersURL
} | [
"func",
"(",
"r",
"*",
"Repository",
")",
"GetSubscribersURL",
"(",
")",
"string",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"SubscribersURL",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"SubscribersURL",
"\n",
"}"
] | // GetSubscribersURL returns the SubscribersURL field if it's non-nil, zero value otherwise. | [
"GetSubscribersURL",
"returns",
"the",
"SubscribersURL",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L9608-L9613 | train |
google/go-github | github/github-accessors.go | GetSubscriptionURL | func (r *Repository) GetSubscriptionURL() string {
if r == nil || r.SubscriptionURL == nil {
return ""
}
return *r.SubscriptionURL
} | go | func (r *Repository) GetSubscriptionURL() string {
if r == nil || r.SubscriptionURL == nil {
return ""
}
return *r.SubscriptionURL
} | [
"func",
"(",
"r",
"*",
"Repository",
")",
"GetSubscriptionURL",
"(",
")",
"string",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"SubscriptionURL",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"SubscriptionURL",
"\n",
"}"
] | // GetSubscriptionURL returns the SubscriptionURL field if it's non-nil, zero value otherwise. | [
"GetSubscriptionURL",
"returns",
"the",
"SubscriptionURL",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L9616-L9621 | train |
google/go-github | github/github-accessors.go | GetTagsURL | func (r *Repository) GetTagsURL() string {
if r == nil || r.TagsURL == nil {
return ""
}
return *r.TagsURL
} | go | func (r *Repository) GetTagsURL() string {
if r == nil || r.TagsURL == nil {
return ""
}
return *r.TagsURL
} | [
"func",
"(",
"r",
"*",
"Repository",
")",
"GetTagsURL",
"(",
")",
"string",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"TagsURL",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"TagsURL",
"\n",
"}"
] | // GetTagsURL returns the TagsURL field if it's non-nil, zero value otherwise. | [
"GetTagsURL",
"returns",
"the",
"TagsURL",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L9632-L9637 | train |
google/go-github | github/github-accessors.go | GetTeamID | func (r *Repository) GetTeamID() int64 {
if r == nil || r.TeamID == nil {
return 0
}
return *r.TeamID
} | go | func (r *Repository) GetTeamID() int64 {
if r == nil || r.TeamID == nil {
return 0
}
return *r.TeamID
} | [
"func",
"(",
"r",
"*",
"Repository",
")",
"GetTeamID",
"(",
")",
"int64",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"TeamID",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"TeamID",
"\n",
"}"
] | // GetTeamID returns the TeamID field if it's non-nil, zero value otherwise. | [
"GetTeamID",
"returns",
"the",
"TeamID",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L9640-L9645 | train |
google/go-github | github/github-accessors.go | GetTeamsURL | func (r *Repository) GetTeamsURL() string {
if r == nil || r.TeamsURL == nil {
return ""
}
return *r.TeamsURL
} | go | func (r *Repository) GetTeamsURL() string {
if r == nil || r.TeamsURL == nil {
return ""
}
return *r.TeamsURL
} | [
"func",
"(",
"r",
"*",
"Repository",
")",
"GetTeamsURL",
"(",
")",
"string",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"TeamsURL",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"TeamsURL",
"\n",
"}"
] | // GetTeamsURL returns the TeamsURL field if it's non-nil, zero value otherwise. | [
"GetTeamsURL",
"returns",
"the",
"TeamsURL",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L9648-L9653 | train |
google/go-github | github/github-accessors.go | GetTreesURL | func (r *Repository) GetTreesURL() string {
if r == nil || r.TreesURL == nil {
return ""
}
return *r.TreesURL
} | go | func (r *Repository) GetTreesURL() string {
if r == nil || r.TreesURL == nil {
return ""
}
return *r.TreesURL
} | [
"func",
"(",
"r",
"*",
"Repository",
")",
"GetTreesURL",
"(",
")",
"string",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"TreesURL",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"TreesURL",
"\n",
"}"
] | // GetTreesURL returns the TreesURL field if it's non-nil, zero value otherwise. | [
"GetTreesURL",
"returns",
"the",
"TreesURL",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L9656-L9661 | train |
google/go-github | github/github-accessors.go | GetTarget | func (r *RepositoryContent) GetTarget() string {
if r == nil || r.Target == nil {
return ""
}
return *r.Target
} | go | func (r *RepositoryContent) GetTarget() string {
if r == nil || r.Target == nil {
return ""
}
return *r.Target
} | [
"func",
"(",
"r",
"*",
"RepositoryContent",
")",
"GetTarget",
"(",
")",
"string",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"Target",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"Target",
"\n",
"}"
] | // GetTarget returns the Target field if it's non-nil, zero value otherwise. | [
"GetTarget",
"returns",
"the",
"Target",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L9912-L9917 | train |
google/go-github | github/github-accessors.go | GetCommitMessage | func (r *RepositoryMergeRequest) GetCommitMessage() string {
if r == nil || r.CommitMessage == nil {
return ""
}
return *r.CommitMessage
} | go | func (r *RepositoryMergeRequest) GetCommitMessage() string {
if r == nil || r.CommitMessage == nil {
return ""
}
return *r.CommitMessage
} | [
"func",
"(",
"r",
"*",
"RepositoryMergeRequest",
")",
"GetCommitMessage",
"(",
")",
"string",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"CommitMessage",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"CommitMessage",
"\n",
"}"
] | // GetCommitMessage returns the CommitMessage field if it's non-nil, zero value otherwise. | [
"GetCommitMessage",
"returns",
"the",
"CommitMessage",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L10192-L10197 | train |
google/go-github | github/github-accessors.go | GetAssetsURL | func (r *RepositoryRelease) GetAssetsURL() string {
if r == nil || r.AssetsURL == nil {
return ""
}
return *r.AssetsURL
} | go | func (r *RepositoryRelease) GetAssetsURL() string {
if r == nil || r.AssetsURL == nil {
return ""
}
return *r.AssetsURL
} | [
"func",
"(",
"r",
"*",
"RepositoryRelease",
")",
"GetAssetsURL",
"(",
")",
"string",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"AssetsURL",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"AssetsURL",
"\n",
"}"
] | // GetAssetsURL returns the AssetsURL field if it's non-nil, zero value otherwise. | [
"GetAssetsURL",
"returns",
"the",
"AssetsURL",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L10224-L10229 | train |
google/go-github | github/github-accessors.go | GetPrerelease | func (r *RepositoryRelease) GetPrerelease() bool {
if r == nil || r.Prerelease == nil {
return false
}
return *r.Prerelease
} | go | func (r *RepositoryRelease) GetPrerelease() bool {
if r == nil || r.Prerelease == nil {
return false
}
return *r.Prerelease
} | [
"func",
"(",
"r",
"*",
"RepositoryRelease",
")",
"GetPrerelease",
"(",
")",
"bool",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"Prerelease",
"==",
"nil",
"{",
"return",
"false",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"Prerelease",
"\n",
"}"
] | // GetPrerelease returns the Prerelease field if it's non-nil, zero value otherwise. | [
"GetPrerelease",
"returns",
"the",
"Prerelease",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L10296-L10301 | train |
google/go-github | github/github-accessors.go | GetPublishedAt | func (r *RepositoryRelease) GetPublishedAt() Timestamp {
if r == nil || r.PublishedAt == nil {
return Timestamp{}
}
return *r.PublishedAt
} | go | func (r *RepositoryRelease) GetPublishedAt() Timestamp {
if r == nil || r.PublishedAt == nil {
return Timestamp{}
}
return *r.PublishedAt
} | [
"func",
"(",
"r",
"*",
"RepositoryRelease",
")",
"GetPublishedAt",
"(",
")",
"Timestamp",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"PublishedAt",
"==",
"nil",
"{",
"return",
"Timestamp",
"{",
"}",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"PublishedAt",
"\n",
"}"
] | // GetPublishedAt returns the PublishedAt field if it's non-nil, zero value otherwise. | [
"GetPublishedAt",
"returns",
"the",
"PublishedAt",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L10304-L10309 | train |
google/go-github | github/github-accessors.go | GetTagName | func (r *RepositoryRelease) GetTagName() string {
if r == nil || r.TagName == nil {
return ""
}
return *r.TagName
} | go | func (r *RepositoryRelease) GetTagName() string {
if r == nil || r.TagName == nil {
return ""
}
return *r.TagName
} | [
"func",
"(",
"r",
"*",
"RepositoryRelease",
")",
"GetTagName",
"(",
")",
"string",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"TagName",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"TagName",
"\n",
"}"
] | // GetTagName returns the TagName field if it's non-nil, zero value otherwise. | [
"GetTagName",
"returns",
"the",
"TagName",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L10312-L10317 | train |
google/go-github | github/github-accessors.go | GetTargetCommitish | func (r *RepositoryRelease) GetTargetCommitish() string {
if r == nil || r.TargetCommitish == nil {
return ""
}
return *r.TargetCommitish
} | go | func (r *RepositoryRelease) GetTargetCommitish() string {
if r == nil || r.TargetCommitish == nil {
return ""
}
return *r.TargetCommitish
} | [
"func",
"(",
"r",
"*",
"RepositoryRelease",
")",
"GetTargetCommitish",
"(",
")",
"string",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"TargetCommitish",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"TargetCommitish",
"\n",
"}"
] | // GetTargetCommitish returns the TargetCommitish field if it's non-nil, zero value otherwise. | [
"GetTargetCommitish",
"returns",
"the",
"TargetCommitish",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L10328-L10333 | train |
google/go-github | github/github-accessors.go | GetUploadURL | func (r *RepositoryRelease) GetUploadURL() string {
if r == nil || r.UploadURL == nil {
return ""
}
return *r.UploadURL
} | go | func (r *RepositoryRelease) GetUploadURL() string {
if r == nil || r.UploadURL == nil {
return ""
}
return *r.UploadURL
} | [
"func",
"(",
"r",
"*",
"RepositoryRelease",
")",
"GetUploadURL",
"(",
")",
"string",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"UploadURL",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"UploadURL",
"\n",
"}"
] | // GetUploadURL returns the UploadURL field if it's non-nil, zero value otherwise. | [
"GetUploadURL",
"returns",
"the",
"UploadURL",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L10336-L10341 | train |
google/go-github | github/github-accessors.go | GetForkRepos | func (r *RepoStats) GetForkRepos() int {
if r == nil || r.ForkRepos == nil {
return 0
}
return *r.ForkRepos
} | go | func (r *RepoStats) GetForkRepos() int {
if r == nil || r.ForkRepos == nil {
return 0
}
return *r.ForkRepos
} | [
"func",
"(",
"r",
"*",
"RepoStats",
")",
"GetForkRepos",
"(",
")",
"int",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"ForkRepos",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"ForkRepos",
"\n",
"}"
] | // GetForkRepos returns the ForkRepos field if it's non-nil, zero value otherwise. | [
"GetForkRepos",
"returns",
"the",
"ForkRepos",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L10400-L10405 | train |
google/go-github | github/github-accessors.go | GetOrgRepos | func (r *RepoStats) GetOrgRepos() int {
if r == nil || r.OrgRepos == nil {
return 0
}
return *r.OrgRepos
} | go | func (r *RepoStats) GetOrgRepos() int {
if r == nil || r.OrgRepos == nil {
return 0
}
return *r.OrgRepos
} | [
"func",
"(",
"r",
"*",
"RepoStats",
")",
"GetOrgRepos",
"(",
")",
"int",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"OrgRepos",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"OrgRepos",
"\n",
"}"
] | // GetOrgRepos returns the OrgRepos field if it's non-nil, zero value otherwise. | [
"GetOrgRepos",
"returns",
"the",
"OrgRepos",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L10408-L10413 | train |
google/go-github | github/github-accessors.go | GetRootRepos | func (r *RepoStats) GetRootRepos() int {
if r == nil || r.RootRepos == nil {
return 0
}
return *r.RootRepos
} | go | func (r *RepoStats) GetRootRepos() int {
if r == nil || r.RootRepos == nil {
return 0
}
return *r.RootRepos
} | [
"func",
"(",
"r",
"*",
"RepoStats",
")",
"GetRootRepos",
"(",
")",
"int",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"RootRepos",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"RootRepos",
"\n",
"}"
] | // GetRootRepos returns the RootRepos field if it's non-nil, zero value otherwise. | [
"GetRootRepos",
"returns",
"the",
"RootRepos",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L10416-L10421 | train |
google/go-github | github/github-accessors.go | GetTotalPushes | func (r *RepoStats) GetTotalPushes() int {
if r == nil || r.TotalPushes == nil {
return 0
}
return *r.TotalPushes
} | go | func (r *RepoStats) GetTotalPushes() int {
if r == nil || r.TotalPushes == nil {
return 0
}
return *r.TotalPushes
} | [
"func",
"(",
"r",
"*",
"RepoStats",
")",
"GetTotalPushes",
"(",
")",
"int",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"TotalPushes",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"TotalPushes",
"\n",
"}"
] | // GetTotalPushes returns the TotalPushes field if it's non-nil, zero value otherwise. | [
"GetTotalPushes",
"returns",
"the",
"TotalPushes",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L10424-L10429 | train |
google/go-github | github/github-accessors.go | GetTotalRepos | func (r *RepoStats) GetTotalRepos() int {
if r == nil || r.TotalRepos == nil {
return 0
}
return *r.TotalRepos
} | go | func (r *RepoStats) GetTotalRepos() int {
if r == nil || r.TotalRepos == nil {
return 0
}
return *r.TotalRepos
} | [
"func",
"(",
"r",
"*",
"RepoStats",
")",
"GetTotalRepos",
"(",
")",
"int",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"TotalRepos",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"TotalRepos",
"\n",
"}"
] | // GetTotalRepos returns the TotalRepos field if it's non-nil, zero value otherwise. | [
"GetTotalRepos",
"returns",
"the",
"TotalRepos",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L10432-L10437 | train |
google/go-github | github/github-accessors.go | GetTotalWikis | func (r *RepoStats) GetTotalWikis() int {
if r == nil || r.TotalWikis == nil {
return 0
}
return *r.TotalWikis
} | go | func (r *RepoStats) GetTotalWikis() int {
if r == nil || r.TotalWikis == nil {
return 0
}
return *r.TotalWikis
} | [
"func",
"(",
"r",
"*",
"RepoStats",
")",
"GetTotalWikis",
"(",
")",
"int",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"TotalWikis",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"TotalWikis",
"\n",
"}"
] | // GetTotalWikis returns the TotalWikis field if it's non-nil, zero value otherwise. | [
"GetTotalWikis",
"returns",
"the",
"TotalWikis",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L10440-L10445 | train |
google/go-github | github/github-accessors.go | GetStrict | func (r *RequiredStatusChecksRequest) GetStrict() bool {
if r == nil || r.Strict == nil {
return false
}
return *r.Strict
} | go | func (r *RequiredStatusChecksRequest) GetStrict() bool {
if r == nil || r.Strict == nil {
return false
}
return *r.Strict
} | [
"func",
"(",
"r",
"*",
"RequiredStatusChecksRequest",
")",
"GetStrict",
"(",
")",
"bool",
"{",
"if",
"r",
"==",
"nil",
"||",
"r",
".",
"Strict",
"==",
"nil",
"{",
"return",
"false",
"\n",
"}",
"\n",
"return",
"*",
"r",
".",
"Strict",
"\n",
"}"
] | // GetStrict returns the Strict field if it's non-nil, zero value otherwise. | [
"GetStrict",
"returns",
"the",
"Strict",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L10528-L10533 | train |
google/go-github | github/github-accessors.go | GetEnabled | func (s *SignaturesProtectedBranch) GetEnabled() bool {
if s == nil || s.Enabled == nil {
return false
}
return *s.Enabled
} | go | func (s *SignaturesProtectedBranch) GetEnabled() bool {
if s == nil || s.Enabled == nil {
return false
}
return *s.Enabled
} | [
"func",
"(",
"s",
"*",
"SignaturesProtectedBranch",
")",
"GetEnabled",
"(",
")",
"bool",
"{",
"if",
"s",
"==",
"nil",
"||",
"s",
".",
"Enabled",
"==",
"nil",
"{",
"return",
"false",
"\n",
"}",
"\n",
"return",
"*",
"s",
".",
"Enabled",
"\n",
"}"
] | // GetEnabled returns the Enabled field if it's non-nil, zero value otherwise. | [
"GetEnabled",
"returns",
"the",
"Enabled",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L10552-L10557 | train |
google/go-github | github/github-accessors.go | GetSignature | func (s *SignatureVerification) GetSignature() string {
if s == nil || s.Signature == nil {
return ""
}
return *s.Signature
} | go | func (s *SignatureVerification) GetSignature() string {
if s == nil || s.Signature == nil {
return ""
}
return *s.Signature
} | [
"func",
"(",
"s",
"*",
"SignatureVerification",
")",
"GetSignature",
"(",
")",
"string",
"{",
"if",
"s",
"==",
"nil",
"||",
"s",
".",
"Signature",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"s",
".",
"Signature",
"\n",
"}"
] | // GetSignature returns the Signature field if it's non-nil, zero value otherwise. | [
"GetSignature",
"returns",
"the",
"Signature",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L10584-L10589 | train |
google/go-github | github/github-accessors.go | GetImportURL | func (s *SourceImportAuthor) GetImportURL() string {
if s == nil || s.ImportURL == nil {
return ""
}
return *s.ImportURL
} | go | func (s *SourceImportAuthor) GetImportURL() string {
if s == nil || s.ImportURL == nil {
return ""
}
return *s.ImportURL
} | [
"func",
"(",
"s",
"*",
"SourceImportAuthor",
")",
"GetImportURL",
"(",
")",
"string",
"{",
"if",
"s",
"==",
"nil",
"||",
"s",
".",
"ImportURL",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"s",
".",
"ImportURL",
"\n",
"}"
] | // GetImportURL returns the ImportURL field if it's non-nil, zero value otherwise. | [
"GetImportURL",
"returns",
"the",
"ImportURL",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L10656-L10661 | train |
google/go-github | github/github-accessors.go | GetRemoteID | func (s *SourceImportAuthor) GetRemoteID() string {
if s == nil || s.RemoteID == nil {
return ""
}
return *s.RemoteID
} | go | func (s *SourceImportAuthor) GetRemoteID() string {
if s == nil || s.RemoteID == nil {
return ""
}
return *s.RemoteID
} | [
"func",
"(",
"s",
"*",
"SourceImportAuthor",
")",
"GetRemoteID",
"(",
")",
"string",
"{",
"if",
"s",
"==",
"nil",
"||",
"s",
".",
"RemoteID",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"s",
".",
"RemoteID",
"\n",
"}"
] | // GetRemoteID returns the RemoteID field if it's non-nil, zero value otherwise. | [
"GetRemoteID",
"returns",
"the",
"RemoteID",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | 1fef44b9b427e6c43f92b2f20918e496c275393f | https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L10672-L10677 | train |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.