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
list | docstring
stringlengths 6
2.61k
| docstring_tokens
list | sha
stringlengths 40
40
| url
stringlengths 85
252
| partition
stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|
google/go-github
|
github/github-accessors.go
|
GetPublicKey
|
func (g *GPGKey) GetPublicKey() string {
if g == nil || g.PublicKey == nil {
return ""
}
return *g.PublicKey
}
|
go
|
func (g *GPGKey) GetPublicKey() string {
if g == nil || g.PublicKey == nil {
return ""
}
return *g.PublicKey
}
|
[
"func",
"(",
"g",
"*",
"GPGKey",
")",
"GetPublicKey",
"(",
")",
"string",
"{",
"if",
"g",
"==",
"nil",
"||",
"g",
".",
"PublicKey",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"g",
".",
"PublicKey",
"\n",
"}"
] |
// GetPublicKey returns the PublicKey field if it's non-nil, zero value otherwise.
|
[
"GetPublicKey",
"returns",
"the",
"PublicKey",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L3192-L3197
|
train
|
google/go-github
|
github/github-accessors.go
|
GetActive
|
func (h *Hook) GetActive() bool {
if h == nil || h.Active == nil {
return false
}
return *h.Active
}
|
go
|
func (h *Hook) GetActive() bool {
if h == nil || h.Active == nil {
return false
}
return *h.Active
}
|
[
"func",
"(",
"h",
"*",
"Hook",
")",
"GetActive",
"(",
")",
"bool",
"{",
"if",
"h",
"==",
"nil",
"||",
"h",
".",
"Active",
"==",
"nil",
"{",
"return",
"false",
"\n",
"}",
"\n",
"return",
"*",
"h",
".",
"Active",
"\n",
"}"
] |
// GetActive returns the Active field if it's non-nil, zero value otherwise.
|
[
"GetActive",
"returns",
"the",
"Active",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L3240-L3245
|
train
|
google/go-github
|
github/github-accessors.go
|
GetActiveHooks
|
func (h *HookStats) GetActiveHooks() int {
if h == nil || h.ActiveHooks == nil {
return 0
}
return *h.ActiveHooks
}
|
go
|
func (h *HookStats) GetActiveHooks() int {
if h == nil || h.ActiveHooks == nil {
return 0
}
return *h.ActiveHooks
}
|
[
"func",
"(",
"h",
"*",
"HookStats",
")",
"GetActiveHooks",
"(",
")",
"int",
"{",
"if",
"h",
"==",
"nil",
"||",
"h",
".",
"ActiveHooks",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"h",
".",
"ActiveHooks",
"\n",
"}"
] |
// GetActiveHooks returns the ActiveHooks field if it's non-nil, zero value otherwise.
|
[
"GetActiveHooks",
"returns",
"the",
"ActiveHooks",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L3280-L3285
|
train
|
google/go-github
|
github/github-accessors.go
|
GetInactiveHooks
|
func (h *HookStats) GetInactiveHooks() int {
if h == nil || h.InactiveHooks == nil {
return 0
}
return *h.InactiveHooks
}
|
go
|
func (h *HookStats) GetInactiveHooks() int {
if h == nil || h.InactiveHooks == nil {
return 0
}
return *h.InactiveHooks
}
|
[
"func",
"(",
"h",
"*",
"HookStats",
")",
"GetInactiveHooks",
"(",
")",
"int",
"{",
"if",
"h",
"==",
"nil",
"||",
"h",
".",
"InactiveHooks",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"h",
".",
"InactiveHooks",
"\n",
"}"
] |
// GetInactiveHooks returns the InactiveHooks field if it's non-nil, zero value otherwise.
|
[
"GetInactiveHooks",
"returns",
"the",
"InactiveHooks",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L3288-L3293
|
train
|
google/go-github
|
github/github-accessors.go
|
GetTotalHooks
|
func (h *HookStats) GetTotalHooks() int {
if h == nil || h.TotalHooks == nil {
return 0
}
return *h.TotalHooks
}
|
go
|
func (h *HookStats) GetTotalHooks() int {
if h == nil || h.TotalHooks == nil {
return 0
}
return *h.TotalHooks
}
|
[
"func",
"(",
"h",
"*",
"HookStats",
")",
"GetTotalHooks",
"(",
")",
"int",
"{",
"if",
"h",
"==",
"nil",
"||",
"h",
".",
"TotalHooks",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"h",
".",
"TotalHooks",
"\n",
"}"
] |
// GetTotalHooks returns the TotalHooks field if it's non-nil, zero value otherwise.
|
[
"GetTotalHooks",
"returns",
"the",
"TotalHooks",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L3296-L3301
|
train
|
google/go-github
|
github/github-accessors.go
|
GetAuthorsCount
|
func (i *Import) GetAuthorsCount() int {
if i == nil || i.AuthorsCount == nil {
return 0
}
return *i.AuthorsCount
}
|
go
|
func (i *Import) GetAuthorsCount() int {
if i == nil || i.AuthorsCount == nil {
return 0
}
return *i.AuthorsCount
}
|
[
"func",
"(",
"i",
"*",
"Import",
")",
"GetAuthorsCount",
"(",
")",
"int",
"{",
"if",
"i",
"==",
"nil",
"||",
"i",
".",
"AuthorsCount",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"i",
".",
"AuthorsCount",
"\n",
"}"
] |
// GetAuthorsCount returns the AuthorsCount field if it's non-nil, zero value otherwise.
|
[
"GetAuthorsCount",
"returns",
"the",
"AuthorsCount",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L3304-L3309
|
train
|
google/go-github
|
github/github-accessors.go
|
GetAuthorsURL
|
func (i *Import) GetAuthorsURL() string {
if i == nil || i.AuthorsURL == nil {
return ""
}
return *i.AuthorsURL
}
|
go
|
func (i *Import) GetAuthorsURL() string {
if i == nil || i.AuthorsURL == nil {
return ""
}
return *i.AuthorsURL
}
|
[
"func",
"(",
"i",
"*",
"Import",
")",
"GetAuthorsURL",
"(",
")",
"string",
"{",
"if",
"i",
"==",
"nil",
"||",
"i",
".",
"AuthorsURL",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"i",
".",
"AuthorsURL",
"\n",
"}"
] |
// GetAuthorsURL returns the AuthorsURL field if it's non-nil, zero value otherwise.
|
[
"GetAuthorsURL",
"returns",
"the",
"AuthorsURL",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L3312-L3317
|
train
|
google/go-github
|
github/github-accessors.go
|
GetCommitCount
|
func (i *Import) GetCommitCount() int {
if i == nil || i.CommitCount == nil {
return 0
}
return *i.CommitCount
}
|
go
|
func (i *Import) GetCommitCount() int {
if i == nil || i.CommitCount == nil {
return 0
}
return *i.CommitCount
}
|
[
"func",
"(",
"i",
"*",
"Import",
")",
"GetCommitCount",
"(",
")",
"int",
"{",
"if",
"i",
"==",
"nil",
"||",
"i",
".",
"CommitCount",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"i",
".",
"CommitCount",
"\n",
"}"
] |
// GetCommitCount returns the CommitCount field if it's non-nil, zero value otherwise.
|
[
"GetCommitCount",
"returns",
"the",
"CommitCount",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L3320-L3325
|
train
|
google/go-github
|
github/github-accessors.go
|
GetFailedStep
|
func (i *Import) GetFailedStep() string {
if i == nil || i.FailedStep == nil {
return ""
}
return *i.FailedStep
}
|
go
|
func (i *Import) GetFailedStep() string {
if i == nil || i.FailedStep == nil {
return ""
}
return *i.FailedStep
}
|
[
"func",
"(",
"i",
"*",
"Import",
")",
"GetFailedStep",
"(",
")",
"string",
"{",
"if",
"i",
"==",
"nil",
"||",
"i",
".",
"FailedStep",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"i",
".",
"FailedStep",
"\n",
"}"
] |
// GetFailedStep returns the FailedStep field if it's non-nil, zero value otherwise.
|
[
"GetFailedStep",
"returns",
"the",
"FailedStep",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L3328-L3333
|
train
|
google/go-github
|
github/github-accessors.go
|
GetHasLargeFiles
|
func (i *Import) GetHasLargeFiles() bool {
if i == nil || i.HasLargeFiles == nil {
return false
}
return *i.HasLargeFiles
}
|
go
|
func (i *Import) GetHasLargeFiles() bool {
if i == nil || i.HasLargeFiles == nil {
return false
}
return *i.HasLargeFiles
}
|
[
"func",
"(",
"i",
"*",
"Import",
")",
"GetHasLargeFiles",
"(",
")",
"bool",
"{",
"if",
"i",
"==",
"nil",
"||",
"i",
".",
"HasLargeFiles",
"==",
"nil",
"{",
"return",
"false",
"\n",
"}",
"\n",
"return",
"*",
"i",
".",
"HasLargeFiles",
"\n",
"}"
] |
// GetHasLargeFiles returns the HasLargeFiles field if it's non-nil, zero value otherwise.
|
[
"GetHasLargeFiles",
"returns",
"the",
"HasLargeFiles",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L3336-L3341
|
train
|
google/go-github
|
github/github-accessors.go
|
GetHumanName
|
func (i *Import) GetHumanName() string {
if i == nil || i.HumanName == nil {
return ""
}
return *i.HumanName
}
|
go
|
func (i *Import) GetHumanName() string {
if i == nil || i.HumanName == nil {
return ""
}
return *i.HumanName
}
|
[
"func",
"(",
"i",
"*",
"Import",
")",
"GetHumanName",
"(",
")",
"string",
"{",
"if",
"i",
"==",
"nil",
"||",
"i",
".",
"HumanName",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"i",
".",
"HumanName",
"\n",
"}"
] |
// GetHumanName returns the HumanName field if it's non-nil, zero value otherwise.
|
[
"GetHumanName",
"returns",
"the",
"HumanName",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L3352-L3357
|
train
|
google/go-github
|
github/github-accessors.go
|
GetLargeFilesCount
|
func (i *Import) GetLargeFilesCount() int {
if i == nil || i.LargeFilesCount == nil {
return 0
}
return *i.LargeFilesCount
}
|
go
|
func (i *Import) GetLargeFilesCount() int {
if i == nil || i.LargeFilesCount == nil {
return 0
}
return *i.LargeFilesCount
}
|
[
"func",
"(",
"i",
"*",
"Import",
")",
"GetLargeFilesCount",
"(",
")",
"int",
"{",
"if",
"i",
"==",
"nil",
"||",
"i",
".",
"LargeFilesCount",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"i",
".",
"LargeFilesCount",
"\n",
"}"
] |
// GetLargeFilesCount returns the LargeFilesCount field if it's non-nil, zero value otherwise.
|
[
"GetLargeFilesCount",
"returns",
"the",
"LargeFilesCount",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L3360-L3365
|
train
|
google/go-github
|
github/github-accessors.go
|
GetLargeFilesSize
|
func (i *Import) GetLargeFilesSize() int {
if i == nil || i.LargeFilesSize == nil {
return 0
}
return *i.LargeFilesSize
}
|
go
|
func (i *Import) GetLargeFilesSize() int {
if i == nil || i.LargeFilesSize == nil {
return 0
}
return *i.LargeFilesSize
}
|
[
"func",
"(",
"i",
"*",
"Import",
")",
"GetLargeFilesSize",
"(",
")",
"int",
"{",
"if",
"i",
"==",
"nil",
"||",
"i",
".",
"LargeFilesSize",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"i",
".",
"LargeFilesSize",
"\n",
"}"
] |
// GetLargeFilesSize returns the LargeFilesSize field if it's non-nil, zero value otherwise.
|
[
"GetLargeFilesSize",
"returns",
"the",
"LargeFilesSize",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L3368-L3373
|
train
|
google/go-github
|
github/github-accessors.go
|
GetPercent
|
func (i *Import) GetPercent() int {
if i == nil || i.Percent == nil {
return 0
}
return *i.Percent
}
|
go
|
func (i *Import) GetPercent() int {
if i == nil || i.Percent == nil {
return 0
}
return *i.Percent
}
|
[
"func",
"(",
"i",
"*",
"Import",
")",
"GetPercent",
"(",
")",
"int",
"{",
"if",
"i",
"==",
"nil",
"||",
"i",
".",
"Percent",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"i",
".",
"Percent",
"\n",
"}"
] |
// GetPercent returns the Percent field if it's non-nil, zero value otherwise.
|
[
"GetPercent",
"returns",
"the",
"Percent",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L3384-L3389
|
train
|
google/go-github
|
github/github-accessors.go
|
GetPushPercent
|
func (i *Import) GetPushPercent() int {
if i == nil || i.PushPercent == nil {
return 0
}
return *i.PushPercent
}
|
go
|
func (i *Import) GetPushPercent() int {
if i == nil || i.PushPercent == nil {
return 0
}
return *i.PushPercent
}
|
[
"func",
"(",
"i",
"*",
"Import",
")",
"GetPushPercent",
"(",
")",
"int",
"{",
"if",
"i",
"==",
"nil",
"||",
"i",
".",
"PushPercent",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"i",
".",
"PushPercent",
"\n",
"}"
] |
// GetPushPercent returns the PushPercent field if it's non-nil, zero value otherwise.
|
[
"GetPushPercent",
"returns",
"the",
"PushPercent",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L3392-L3397
|
train
|
google/go-github
|
github/github-accessors.go
|
GetStatusText
|
func (i *Import) GetStatusText() string {
if i == nil || i.StatusText == nil {
return ""
}
return *i.StatusText
}
|
go
|
func (i *Import) GetStatusText() string {
if i == nil || i.StatusText == nil {
return ""
}
return *i.StatusText
}
|
[
"func",
"(",
"i",
"*",
"Import",
")",
"GetStatusText",
"(",
")",
"string",
"{",
"if",
"i",
"==",
"nil",
"||",
"i",
".",
"StatusText",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"i",
".",
"StatusText",
"\n",
"}"
] |
// GetStatusText returns the StatusText field if it's non-nil, zero value otherwise.
|
[
"GetStatusText",
"returns",
"the",
"StatusText",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L3416-L3421
|
train
|
google/go-github
|
github/github-accessors.go
|
GetTFVCProject
|
func (i *Import) GetTFVCProject() string {
if i == nil || i.TFVCProject == nil {
return ""
}
return *i.TFVCProject
}
|
go
|
func (i *Import) GetTFVCProject() string {
if i == nil || i.TFVCProject == nil {
return ""
}
return *i.TFVCProject
}
|
[
"func",
"(",
"i",
"*",
"Import",
")",
"GetTFVCProject",
"(",
")",
"string",
"{",
"if",
"i",
"==",
"nil",
"||",
"i",
".",
"TFVCProject",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"i",
".",
"TFVCProject",
"\n",
"}"
] |
// GetTFVCProject returns the TFVCProject field if it's non-nil, zero value otherwise.
|
[
"GetTFVCProject",
"returns",
"the",
"TFVCProject",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L3424-L3429
|
train
|
google/go-github
|
github/github-accessors.go
|
GetUseLFS
|
func (i *Import) GetUseLFS() string {
if i == nil || i.UseLFS == nil {
return ""
}
return *i.UseLFS
}
|
go
|
func (i *Import) GetUseLFS() string {
if i == nil || i.UseLFS == nil {
return ""
}
return *i.UseLFS
}
|
[
"func",
"(",
"i",
"*",
"Import",
")",
"GetUseLFS",
"(",
")",
"string",
"{",
"if",
"i",
"==",
"nil",
"||",
"i",
".",
"UseLFS",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"i",
".",
"UseLFS",
"\n",
"}"
] |
// GetUseLFS returns the UseLFS field if it's non-nil, zero value otherwise.
|
[
"GetUseLFS",
"returns",
"the",
"UseLFS",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L3440-L3445
|
train
|
google/go-github
|
github/github-accessors.go
|
GetVCS
|
func (i *Import) GetVCS() string {
if i == nil || i.VCS == nil {
return ""
}
return *i.VCS
}
|
go
|
func (i *Import) GetVCS() string {
if i == nil || i.VCS == nil {
return ""
}
return *i.VCS
}
|
[
"func",
"(",
"i",
"*",
"Import",
")",
"GetVCS",
"(",
")",
"string",
"{",
"if",
"i",
"==",
"nil",
"||",
"i",
".",
"VCS",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"i",
".",
"VCS",
"\n",
"}"
] |
// GetVCS returns the VCS field if it's non-nil, zero value otherwise.
|
[
"GetVCS",
"returns",
"the",
"VCS",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L3448-L3453
|
train
|
google/go-github
|
github/github-accessors.go
|
GetVCSPassword
|
func (i *Import) GetVCSPassword() string {
if i == nil || i.VCSPassword == nil {
return ""
}
return *i.VCSPassword
}
|
go
|
func (i *Import) GetVCSPassword() string {
if i == nil || i.VCSPassword == nil {
return ""
}
return *i.VCSPassword
}
|
[
"func",
"(",
"i",
"*",
"Import",
")",
"GetVCSPassword",
"(",
")",
"string",
"{",
"if",
"i",
"==",
"nil",
"||",
"i",
".",
"VCSPassword",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"i",
".",
"VCSPassword",
"\n",
"}"
] |
// GetVCSPassword returns the VCSPassword field if it's non-nil, zero value otherwise.
|
[
"GetVCSPassword",
"returns",
"the",
"VCSPassword",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L3456-L3461
|
train
|
google/go-github
|
github/github-accessors.go
|
GetVCSURL
|
func (i *Import) GetVCSURL() string {
if i == nil || i.VCSURL == nil {
return ""
}
return *i.VCSURL
}
|
go
|
func (i *Import) GetVCSURL() string {
if i == nil || i.VCSURL == nil {
return ""
}
return *i.VCSURL
}
|
[
"func",
"(",
"i",
"*",
"Import",
")",
"GetVCSURL",
"(",
")",
"string",
"{",
"if",
"i",
"==",
"nil",
"||",
"i",
".",
"VCSURL",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"i",
".",
"VCSURL",
"\n",
"}"
] |
// GetVCSURL returns the VCSURL field if it's non-nil, zero value otherwise.
|
[
"GetVCSURL",
"returns",
"the",
"VCSURL",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L3464-L3469
|
train
|
google/go-github
|
github/github-accessors.go
|
GetVCSUsername
|
func (i *Import) GetVCSUsername() string {
if i == nil || i.VCSUsername == nil {
return ""
}
return *i.VCSUsername
}
|
go
|
func (i *Import) GetVCSUsername() string {
if i == nil || i.VCSUsername == nil {
return ""
}
return *i.VCSUsername
}
|
[
"func",
"(",
"i",
"*",
"Import",
")",
"GetVCSUsername",
"(",
")",
"string",
"{",
"if",
"i",
"==",
"nil",
"||",
"i",
".",
"VCSUsername",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"i",
".",
"VCSUsername",
"\n",
"}"
] |
// GetVCSUsername returns the VCSUsername field if it's non-nil, zero value otherwise.
|
[
"GetVCSUsername",
"returns",
"the",
"VCSUsername",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L3472-L3477
|
train
|
google/go-github
|
github/github-accessors.go
|
GetAccessTokensURL
|
func (i *Installation) GetAccessTokensURL() string {
if i == nil || i.AccessTokensURL == nil {
return ""
}
return *i.AccessTokensURL
}
|
go
|
func (i *Installation) GetAccessTokensURL() string {
if i == nil || i.AccessTokensURL == nil {
return ""
}
return *i.AccessTokensURL
}
|
[
"func",
"(",
"i",
"*",
"Installation",
")",
"GetAccessTokensURL",
"(",
")",
"string",
"{",
"if",
"i",
"==",
"nil",
"||",
"i",
".",
"AccessTokensURL",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"i",
".",
"AccessTokensURL",
"\n",
"}"
] |
// GetAccessTokensURL returns the AccessTokensURL field if it's non-nil, zero value otherwise.
|
[
"GetAccessTokensURL",
"returns",
"the",
"AccessTokensURL",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L3480-L3485
|
train
|
google/go-github
|
github/github-accessors.go
|
GetSingleFileName
|
func (i *Installation) GetSingleFileName() string {
if i == nil || i.SingleFileName == nil {
return ""
}
return *i.SingleFileName
}
|
go
|
func (i *Installation) GetSingleFileName() string {
if i == nil || i.SingleFileName == nil {
return ""
}
return *i.SingleFileName
}
|
[
"func",
"(",
"i",
"*",
"Installation",
")",
"GetSingleFileName",
"(",
")",
"string",
"{",
"if",
"i",
"==",
"nil",
"||",
"i",
".",
"SingleFileName",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"i",
".",
"SingleFileName",
"\n",
"}"
] |
// GetSingleFileName returns the SingleFileName field if it's non-nil, zero value otherwise.
|
[
"GetSingleFileName",
"returns",
"the",
"SingleFileName",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L3552-L3557
|
train
|
google/go-github
|
github/github-accessors.go
|
GetTargetID
|
func (i *Installation) GetTargetID() int64 {
if i == nil || i.TargetID == nil {
return 0
}
return *i.TargetID
}
|
go
|
func (i *Installation) GetTargetID() int64 {
if i == nil || i.TargetID == nil {
return 0
}
return *i.TargetID
}
|
[
"func",
"(",
"i",
"*",
"Installation",
")",
"GetTargetID",
"(",
")",
"int64",
"{",
"if",
"i",
"==",
"nil",
"||",
"i",
".",
"TargetID",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"i",
".",
"TargetID",
"\n",
"}"
] |
// GetTargetID returns the TargetID field if it's non-nil, zero value otherwise.
|
[
"GetTargetID",
"returns",
"the",
"TargetID",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L3560-L3565
|
train
|
google/go-github
|
github/github-accessors.go
|
GetTargetType
|
func (i *Installation) GetTargetType() string {
if i == nil || i.TargetType == nil {
return ""
}
return *i.TargetType
}
|
go
|
func (i *Installation) GetTargetType() string {
if i == nil || i.TargetType == nil {
return ""
}
return *i.TargetType
}
|
[
"func",
"(",
"i",
"*",
"Installation",
")",
"GetTargetType",
"(",
")",
"string",
"{",
"if",
"i",
"==",
"nil",
"||",
"i",
".",
"TargetType",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"i",
".",
"TargetType",
"\n",
"}"
] |
// GetTargetType returns the TargetType field if it's non-nil, zero value otherwise.
|
[
"GetTargetType",
"returns",
"the",
"TargetType",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L3568-L3573
|
train
|
google/go-github
|
github/github-accessors.go
|
GetContents
|
func (i *InstallationPermissions) GetContents() string {
if i == nil || i.Contents == nil {
return ""
}
return *i.Contents
}
|
go
|
func (i *InstallationPermissions) GetContents() string {
if i == nil || i.Contents == nil {
return ""
}
return *i.Contents
}
|
[
"func",
"(",
"i",
"*",
"InstallationPermissions",
")",
"GetContents",
"(",
")",
"string",
"{",
"if",
"i",
"==",
"nil",
"||",
"i",
".",
"Contents",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"i",
".",
"Contents",
"\n",
"}"
] |
// GetContents returns the Contents field if it's non-nil, zero value otherwise.
|
[
"GetContents",
"returns",
"the",
"Contents",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L3608-L3613
|
train
|
google/go-github
|
github/github-accessors.go
|
GetIssues
|
func (i *InstallationPermissions) GetIssues() string {
if i == nil || i.Issues == nil {
return ""
}
return *i.Issues
}
|
go
|
func (i *InstallationPermissions) GetIssues() string {
if i == nil || i.Issues == nil {
return ""
}
return *i.Issues
}
|
[
"func",
"(",
"i",
"*",
"InstallationPermissions",
")",
"GetIssues",
"(",
")",
"string",
"{",
"if",
"i",
"==",
"nil",
"||",
"i",
".",
"Issues",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"i",
".",
"Issues",
"\n",
"}"
] |
// GetIssues returns the Issues field if it's non-nil, zero value otherwise.
|
[
"GetIssues",
"returns",
"the",
"Issues",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L3616-L3621
|
train
|
google/go-github
|
github/github-accessors.go
|
GetMetadata
|
func (i *InstallationPermissions) GetMetadata() string {
if i == nil || i.Metadata == nil {
return ""
}
return *i.Metadata
}
|
go
|
func (i *InstallationPermissions) GetMetadata() string {
if i == nil || i.Metadata == nil {
return ""
}
return *i.Metadata
}
|
[
"func",
"(",
"i",
"*",
"InstallationPermissions",
")",
"GetMetadata",
"(",
")",
"string",
"{",
"if",
"i",
"==",
"nil",
"||",
"i",
".",
"Metadata",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"i",
".",
"Metadata",
"\n",
"}"
] |
// GetMetadata returns the Metadata field if it's non-nil, zero value otherwise.
|
[
"GetMetadata",
"returns",
"the",
"Metadata",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L3624-L3629
|
train
|
google/go-github
|
github/github-accessors.go
|
GetSingleFile
|
func (i *InstallationPermissions) GetSingleFile() string {
if i == nil || i.SingleFile == nil {
return ""
}
return *i.SingleFile
}
|
go
|
func (i *InstallationPermissions) GetSingleFile() string {
if i == nil || i.SingleFile == nil {
return ""
}
return *i.SingleFile
}
|
[
"func",
"(",
"i",
"*",
"InstallationPermissions",
")",
"GetSingleFile",
"(",
")",
"string",
"{",
"if",
"i",
"==",
"nil",
"||",
"i",
".",
"SingleFile",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"i",
".",
"SingleFile",
"\n",
"}"
] |
// GetSingleFile returns the SingleFile field if it's non-nil, zero value otherwise.
|
[
"GetSingleFile",
"returns",
"the",
"SingleFile",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L3632-L3637
|
train
|
google/go-github
|
github/github-accessors.go
|
GetLimit
|
func (i *InteractionRestriction) GetLimit() string {
if i == nil || i.Limit == nil {
return ""
}
return *i.Limit
}
|
go
|
func (i *InteractionRestriction) GetLimit() string {
if i == nil || i.Limit == nil {
return ""
}
return *i.Limit
}
|
[
"func",
"(",
"i",
"*",
"InteractionRestriction",
")",
"GetLimit",
"(",
")",
"string",
"{",
"if",
"i",
"==",
"nil",
"||",
"i",
".",
"Limit",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"i",
".",
"Limit",
"\n",
"}"
] |
// GetLimit returns the Limit field if it's non-nil, zero value otherwise.
|
[
"GetLimit",
"returns",
"the",
"Limit",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L3696-L3701
|
train
|
google/go-github
|
github/github-accessors.go
|
GetOrigin
|
func (i *InteractionRestriction) GetOrigin() string {
if i == nil || i.Origin == nil {
return ""
}
return *i.Origin
}
|
go
|
func (i *InteractionRestriction) GetOrigin() string {
if i == nil || i.Origin == nil {
return ""
}
return *i.Origin
}
|
[
"func",
"(",
"i",
"*",
"InteractionRestriction",
")",
"GetOrigin",
"(",
")",
"string",
"{",
"if",
"i",
"==",
"nil",
"||",
"i",
".",
"Origin",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"i",
".",
"Origin",
"\n",
"}"
] |
// GetOrigin returns the Origin field if it's non-nil, zero value otherwise.
|
[
"GetOrigin",
"returns",
"the",
"Origin",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L3704-L3709
|
train
|
google/go-github
|
github/github-accessors.go
|
GetInvitationTeamURL
|
func (i *Invitation) GetInvitationTeamURL() string {
if i == nil || i.InvitationTeamURL == nil {
return ""
}
return *i.InvitationTeamURL
}
|
go
|
func (i *Invitation) GetInvitationTeamURL() string {
if i == nil || i.InvitationTeamURL == nil {
return ""
}
return *i.InvitationTeamURL
}
|
[
"func",
"(",
"i",
"*",
"Invitation",
")",
"GetInvitationTeamURL",
"(",
")",
"string",
"{",
"if",
"i",
"==",
"nil",
"||",
"i",
".",
"InvitationTeamURL",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"i",
".",
"InvitationTeamURL",
"\n",
"}"
] |
// GetInvitationTeamURL returns the InvitationTeamURL field if it's non-nil, zero value otherwise.
|
[
"GetInvitationTeamURL",
"returns",
"the",
"InvitationTeamURL",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L3736-L3741
|
train
|
google/go-github
|
github/github-accessors.go
|
GetTeamCount
|
func (i *Invitation) GetTeamCount() int {
if i == nil || i.TeamCount == nil {
return 0
}
return *i.TeamCount
}
|
go
|
func (i *Invitation) GetTeamCount() int {
if i == nil || i.TeamCount == nil {
return 0
}
return *i.TeamCount
}
|
[
"func",
"(",
"i",
"*",
"Invitation",
")",
"GetTeamCount",
"(",
")",
"int",
"{",
"if",
"i",
"==",
"nil",
"||",
"i",
".",
"TeamCount",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"i",
".",
"TeamCount",
"\n",
"}"
] |
// GetTeamCount returns the TeamCount field if it's non-nil, zero value otherwise.
|
[
"GetTeamCount",
"returns",
"the",
"TeamCount",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L3776-L3781
|
train
|
google/go-github
|
github/github-accessors.go
|
GetLocked
|
func (i *Issue) GetLocked() bool {
if i == nil || i.Locked == nil {
return false
}
return *i.Locked
}
|
go
|
func (i *Issue) GetLocked() bool {
if i == nil || i.Locked == nil {
return false
}
return *i.Locked
}
|
[
"func",
"(",
"i",
"*",
"Issue",
")",
"GetLocked",
"(",
")",
"bool",
"{",
"if",
"i",
"==",
"nil",
"||",
"i",
".",
"Locked",
"==",
"nil",
"{",
"return",
"false",
"\n",
"}",
"\n",
"return",
"*",
"i",
".",
"Locked",
"\n",
"}"
] |
// GetLocked returns the Locked field if it's non-nil, zero value otherwise.
|
[
"GetLocked",
"returns",
"the",
"Locked",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L3880-L3885
|
train
|
google/go-github
|
github/github-accessors.go
|
GetLockReason
|
func (i *IssueEvent) GetLockReason() string {
if i == nil || i.LockReason == nil {
return ""
}
return *i.LockReason
}
|
go
|
func (i *IssueEvent) GetLockReason() string {
if i == nil || i.LockReason == nil {
return ""
}
return *i.LockReason
}
|
[
"func",
"(",
"i",
"*",
"IssueEvent",
")",
"GetLockReason",
"(",
")",
"string",
"{",
"if",
"i",
"==",
"nil",
"||",
"i",
".",
"LockReason",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"i",
".",
"LockReason",
"\n",
"}"
] |
// GetLockReason returns the LockReason field if it's non-nil, zero value otherwise.
|
[
"GetLockReason",
"returns",
"the",
"LockReason",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L4208-L4213
|
train
|
google/go-github
|
github/github-accessors.go
|
GetAssignee
|
func (i *IssueRequest) GetAssignee() string {
if i == nil || i.Assignee == nil {
return ""
}
return *i.Assignee
}
|
go
|
func (i *IssueRequest) GetAssignee() string {
if i == nil || i.Assignee == nil {
return ""
}
return *i.Assignee
}
|
[
"func",
"(",
"i",
"*",
"IssueRequest",
")",
"GetAssignee",
"(",
")",
"string",
"{",
"if",
"i",
"==",
"nil",
"||",
"i",
".",
"Assignee",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"i",
".",
"Assignee",
"\n",
"}"
] |
// GetAssignee returns the Assignee field if it's non-nil, zero value otherwise.
|
[
"GetAssignee",
"returns",
"the",
"Assignee",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L4248-L4253
|
train
|
google/go-github
|
github/github-accessors.go
|
GetAssignees
|
func (i *IssueRequest) GetAssignees() []string {
if i == nil || i.Assignees == nil {
return nil
}
return *i.Assignees
}
|
go
|
func (i *IssueRequest) GetAssignees() []string {
if i == nil || i.Assignees == nil {
return nil
}
return *i.Assignees
}
|
[
"func",
"(",
"i",
"*",
"IssueRequest",
")",
"GetAssignees",
"(",
")",
"[",
"]",
"string",
"{",
"if",
"i",
"==",
"nil",
"||",
"i",
".",
"Assignees",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"return",
"*",
"i",
".",
"Assignees",
"\n",
"}"
] |
// GetAssignees returns the Assignees field if it's non-nil, zero value otherwise.
|
[
"GetAssignees",
"returns",
"the",
"Assignees",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L4256-L4261
|
train
|
google/go-github
|
github/github-accessors.go
|
GetLabels
|
func (i *IssueRequest) GetLabels() []string {
if i == nil || i.Labels == nil {
return nil
}
return *i.Labels
}
|
go
|
func (i *IssueRequest) GetLabels() []string {
if i == nil || i.Labels == nil {
return nil
}
return *i.Labels
}
|
[
"func",
"(",
"i",
"*",
"IssueRequest",
")",
"GetLabels",
"(",
")",
"[",
"]",
"string",
"{",
"if",
"i",
"==",
"nil",
"||",
"i",
".",
"Labels",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"return",
"*",
"i",
".",
"Labels",
"\n",
"}"
] |
// GetLabels returns the Labels field if it's non-nil, zero value otherwise.
|
[
"GetLabels",
"returns",
"the",
"Labels",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L4272-L4277
|
train
|
google/go-github
|
github/github-accessors.go
|
GetMilestone
|
func (i *IssueRequest) GetMilestone() int {
if i == nil || i.Milestone == nil {
return 0
}
return *i.Milestone
}
|
go
|
func (i *IssueRequest) GetMilestone() int {
if i == nil || i.Milestone == nil {
return 0
}
return *i.Milestone
}
|
[
"func",
"(",
"i",
"*",
"IssueRequest",
")",
"GetMilestone",
"(",
")",
"int",
"{",
"if",
"i",
"==",
"nil",
"||",
"i",
".",
"Milestone",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"i",
".",
"Milestone",
"\n",
"}"
] |
// GetMilestone returns the Milestone field if it's non-nil, zero value otherwise.
|
[
"GetMilestone",
"returns",
"the",
"Milestone",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L4280-L4285
|
train
|
google/go-github
|
github/github-accessors.go
|
GetTotalIssues
|
func (i *IssueStats) GetTotalIssues() int {
if i == nil || i.TotalIssues == nil {
return 0
}
return *i.TotalIssues
}
|
go
|
func (i *IssueStats) GetTotalIssues() int {
if i == nil || i.TotalIssues == nil {
return 0
}
return *i.TotalIssues
}
|
[
"func",
"(",
"i",
"*",
"IssueStats",
")",
"GetTotalIssues",
"(",
")",
"int",
"{",
"if",
"i",
"==",
"nil",
"||",
"i",
".",
"TotalIssues",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"i",
".",
"TotalIssues",
"\n",
"}"
] |
// GetTotalIssues returns the TotalIssues field if it's non-nil, zero value otherwise.
|
[
"GetTotalIssues",
"returns",
"the",
"TotalIssues",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L4400-L4405
|
train
|
google/go-github
|
github/github-accessors.go
|
GetReadOnly
|
func (k *Key) GetReadOnly() bool {
if k == nil || k.ReadOnly == nil {
return false
}
return *k.ReadOnly
}
|
go
|
func (k *Key) GetReadOnly() bool {
if k == nil || k.ReadOnly == nil {
return false
}
return *k.ReadOnly
}
|
[
"func",
"(",
"k",
"*",
"Key",
")",
"GetReadOnly",
"(",
")",
"bool",
"{",
"if",
"k",
"==",
"nil",
"||",
"k",
".",
"ReadOnly",
"==",
"nil",
"{",
"return",
"false",
"\n",
"}",
"\n",
"return",
"*",
"k",
".",
"ReadOnly",
"\n",
"}"
] |
// GetReadOnly returns the ReadOnly field if it's non-nil, zero value otherwise.
|
[
"GetReadOnly",
"returns",
"the",
"ReadOnly",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L4424-L4429
|
train
|
google/go-github
|
github/github-accessors.go
|
GetOID
|
func (l *LargeFile) GetOID() string {
if l == nil || l.OID == nil {
return ""
}
return *l.OID
}
|
go
|
func (l *LargeFile) GetOID() string {
if l == nil || l.OID == nil {
return ""
}
return *l.OID
}
|
[
"func",
"(",
"l",
"*",
"LargeFile",
")",
"GetOID",
"(",
")",
"string",
"{",
"if",
"l",
"==",
"nil",
"||",
"l",
".",
"OID",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"l",
".",
"OID",
"\n",
"}"
] |
// GetOID returns the OID field if it's non-nil, zero value otherwise.
|
[
"GetOID",
"returns",
"the",
"OID",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L4624-L4629
|
train
|
google/go-github
|
github/github-accessors.go
|
GetRefName
|
func (l *LargeFile) GetRefName() string {
if l == nil || l.RefName == nil {
return ""
}
return *l.RefName
}
|
go
|
func (l *LargeFile) GetRefName() string {
if l == nil || l.RefName == nil {
return ""
}
return *l.RefName
}
|
[
"func",
"(",
"l",
"*",
"LargeFile",
")",
"GetRefName",
"(",
")",
"string",
"{",
"if",
"l",
"==",
"nil",
"||",
"l",
".",
"RefName",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"l",
".",
"RefName",
"\n",
"}"
] |
// GetRefName returns the RefName field if it's non-nil, zero value otherwise.
|
[
"GetRefName",
"returns",
"the",
"RefName",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L4640-L4645
|
train
|
google/go-github
|
github/github-accessors.go
|
GetConditions
|
func (l *License) GetConditions() []string {
if l == nil || l.Conditions == nil {
return nil
}
return *l.Conditions
}
|
go
|
func (l *License) GetConditions() []string {
if l == nil || l.Conditions == nil {
return nil
}
return *l.Conditions
}
|
[
"func",
"(",
"l",
"*",
"License",
")",
"GetConditions",
"(",
")",
"[",
"]",
"string",
"{",
"if",
"l",
"==",
"nil",
"||",
"l",
".",
"Conditions",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"return",
"*",
"l",
".",
"Conditions",
"\n",
"}"
] |
// GetConditions returns the Conditions field if it's non-nil, zero value otherwise.
|
[
"GetConditions",
"returns",
"the",
"Conditions",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L4664-L4669
|
train
|
google/go-github
|
github/github-accessors.go
|
GetFeatured
|
func (l *License) GetFeatured() bool {
if l == nil || l.Featured == nil {
return false
}
return *l.Featured
}
|
go
|
func (l *License) GetFeatured() bool {
if l == nil || l.Featured == nil {
return false
}
return *l.Featured
}
|
[
"func",
"(",
"l",
"*",
"License",
")",
"GetFeatured",
"(",
")",
"bool",
"{",
"if",
"l",
"==",
"nil",
"||",
"l",
".",
"Featured",
"==",
"nil",
"{",
"return",
"false",
"\n",
"}",
"\n",
"return",
"*",
"l",
".",
"Featured",
"\n",
"}"
] |
// GetFeatured returns the Featured field if it's non-nil, zero value otherwise.
|
[
"GetFeatured",
"returns",
"the",
"Featured",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L4680-L4685
|
train
|
google/go-github
|
github/github-accessors.go
|
GetImplementation
|
func (l *License) GetImplementation() string {
if l == nil || l.Implementation == nil {
return ""
}
return *l.Implementation
}
|
go
|
func (l *License) GetImplementation() string {
if l == nil || l.Implementation == nil {
return ""
}
return *l.Implementation
}
|
[
"func",
"(",
"l",
"*",
"License",
")",
"GetImplementation",
"(",
")",
"string",
"{",
"if",
"l",
"==",
"nil",
"||",
"l",
".",
"Implementation",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"l",
".",
"Implementation",
"\n",
"}"
] |
// GetImplementation returns the Implementation field if it's non-nil, zero value otherwise.
|
[
"GetImplementation",
"returns",
"the",
"Implementation",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L4696-L4701
|
train
|
google/go-github
|
github/github-accessors.go
|
GetLimitations
|
func (l *License) GetLimitations() []string {
if l == nil || l.Limitations == nil {
return nil
}
return *l.Limitations
}
|
go
|
func (l *License) GetLimitations() []string {
if l == nil || l.Limitations == nil {
return nil
}
return *l.Limitations
}
|
[
"func",
"(",
"l",
"*",
"License",
")",
"GetLimitations",
"(",
")",
"[",
"]",
"string",
"{",
"if",
"l",
"==",
"nil",
"||",
"l",
".",
"Limitations",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"return",
"*",
"l",
".",
"Limitations",
"\n",
"}"
] |
// GetLimitations returns the Limitations field if it's non-nil, zero value otherwise.
|
[
"GetLimitations",
"returns",
"the",
"Limitations",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L4712-L4717
|
train
|
google/go-github
|
github/github-accessors.go
|
GetSPDXID
|
func (l *License) GetSPDXID() string {
if l == nil || l.SPDXID == nil {
return ""
}
return *l.SPDXID
}
|
go
|
func (l *License) GetSPDXID() string {
if l == nil || l.SPDXID == nil {
return ""
}
return *l.SPDXID
}
|
[
"func",
"(",
"l",
"*",
"License",
")",
"GetSPDXID",
"(",
")",
"string",
"{",
"if",
"l",
"==",
"nil",
"||",
"l",
".",
"SPDXID",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"l",
".",
"SPDXID",
"\n",
"}"
] |
// GetSPDXID returns the SPDXID field if it's non-nil, zero value otherwise.
|
[
"GetSPDXID",
"returns",
"the",
"SPDXID",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L4736-L4741
|
train
|
google/go-github
|
github/github-accessors.go
|
GetFilter
|
func (l *ListCheckRunsOptions) GetFilter() string {
if l == nil || l.Filter == nil {
return ""
}
return *l.Filter
}
|
go
|
func (l *ListCheckRunsOptions) GetFilter() string {
if l == nil || l.Filter == nil {
return ""
}
return *l.Filter
}
|
[
"func",
"(",
"l",
"*",
"ListCheckRunsOptions",
")",
"GetFilter",
"(",
")",
"string",
"{",
"if",
"l",
"==",
"nil",
"||",
"l",
".",
"Filter",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"l",
".",
"Filter",
"\n",
"}"
] |
// GetFilter returns the Filter field if it's non-nil, zero value otherwise.
|
[
"GetFilter",
"returns",
"the",
"Filter",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L4760-L4765
|
train
|
google/go-github
|
github/github-accessors.go
|
GetAffiliation
|
func (l *ListCollaboratorOptions) GetAffiliation() string {
if l == nil || l.Affiliation == nil {
return ""
}
return *l.Affiliation
}
|
go
|
func (l *ListCollaboratorOptions) GetAffiliation() string {
if l == nil || l.Affiliation == nil {
return ""
}
return *l.Affiliation
}
|
[
"func",
"(",
"l",
"*",
"ListCollaboratorOptions",
")",
"GetAffiliation",
"(",
")",
"string",
"{",
"if",
"l",
"==",
"nil",
"||",
"l",
".",
"Affiliation",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"l",
".",
"Affiliation",
"\n",
"}"
] |
// GetAffiliation returns the Affiliation field if it's non-nil, zero value otherwise.
|
[
"GetAffiliation",
"returns",
"the",
"Affiliation",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L4808-L4813
|
train
|
google/go-github
|
github/github-accessors.go
|
GetAccountsURL
|
func (m *MarketplacePlan) GetAccountsURL() string {
if m == nil || m.AccountsURL == nil {
return ""
}
return *m.AccountsURL
}
|
go
|
func (m *MarketplacePlan) GetAccountsURL() string {
if m == nil || m.AccountsURL == nil {
return ""
}
return *m.AccountsURL
}
|
[
"func",
"(",
"m",
"*",
"MarketplacePlan",
")",
"GetAccountsURL",
"(",
")",
"string",
"{",
"if",
"m",
"==",
"nil",
"||",
"m",
".",
"AccountsURL",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"m",
".",
"AccountsURL",
"\n",
"}"
] |
// GetAccountsURL returns the AccountsURL field if it's non-nil, zero value otherwise.
|
[
"GetAccountsURL",
"returns",
"the",
"AccountsURL",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L4848-L4853
|
train
|
google/go-github
|
github/github-accessors.go
|
GetBullets
|
func (m *MarketplacePlan) GetBullets() []string {
if m == nil || m.Bullets == nil {
return nil
}
return *m.Bullets
}
|
go
|
func (m *MarketplacePlan) GetBullets() []string {
if m == nil || m.Bullets == nil {
return nil
}
return *m.Bullets
}
|
[
"func",
"(",
"m",
"*",
"MarketplacePlan",
")",
"GetBullets",
"(",
")",
"[",
"]",
"string",
"{",
"if",
"m",
"==",
"nil",
"||",
"m",
".",
"Bullets",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"return",
"*",
"m",
".",
"Bullets",
"\n",
"}"
] |
// GetBullets returns the Bullets field if it's non-nil, zero value otherwise.
|
[
"GetBullets",
"returns",
"the",
"Bullets",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L4856-L4861
|
train
|
google/go-github
|
github/github-accessors.go
|
GetHasFreeTrial
|
func (m *MarketplacePlan) GetHasFreeTrial() bool {
if m == nil || m.HasFreeTrial == nil {
return false
}
return *m.HasFreeTrial
}
|
go
|
func (m *MarketplacePlan) GetHasFreeTrial() bool {
if m == nil || m.HasFreeTrial == nil {
return false
}
return *m.HasFreeTrial
}
|
[
"func",
"(",
"m",
"*",
"MarketplacePlan",
")",
"GetHasFreeTrial",
"(",
")",
"bool",
"{",
"if",
"m",
"==",
"nil",
"||",
"m",
".",
"HasFreeTrial",
"==",
"nil",
"{",
"return",
"false",
"\n",
"}",
"\n",
"return",
"*",
"m",
".",
"HasFreeTrial",
"\n",
"}"
] |
// GetHasFreeTrial returns the HasFreeTrial field if it's non-nil, zero value otherwise.
|
[
"GetHasFreeTrial",
"returns",
"the",
"HasFreeTrial",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L4872-L4877
|
train
|
google/go-github
|
github/github-accessors.go
|
GetMonthlyPriceInCents
|
func (m *MarketplacePlan) GetMonthlyPriceInCents() int {
if m == nil || m.MonthlyPriceInCents == nil {
return 0
}
return *m.MonthlyPriceInCents
}
|
go
|
func (m *MarketplacePlan) GetMonthlyPriceInCents() int {
if m == nil || m.MonthlyPriceInCents == nil {
return 0
}
return *m.MonthlyPriceInCents
}
|
[
"func",
"(",
"m",
"*",
"MarketplacePlan",
")",
"GetMonthlyPriceInCents",
"(",
")",
"int",
"{",
"if",
"m",
"==",
"nil",
"||",
"m",
".",
"MonthlyPriceInCents",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"m",
".",
"MonthlyPriceInCents",
"\n",
"}"
] |
// GetMonthlyPriceInCents returns the MonthlyPriceInCents field if it's non-nil, zero value otherwise.
|
[
"GetMonthlyPriceInCents",
"returns",
"the",
"MonthlyPriceInCents",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L4888-L4893
|
train
|
google/go-github
|
github/github-accessors.go
|
GetPriceModel
|
func (m *MarketplacePlan) GetPriceModel() string {
if m == nil || m.PriceModel == nil {
return ""
}
return *m.PriceModel
}
|
go
|
func (m *MarketplacePlan) GetPriceModel() string {
if m == nil || m.PriceModel == nil {
return ""
}
return *m.PriceModel
}
|
[
"func",
"(",
"m",
"*",
"MarketplacePlan",
")",
"GetPriceModel",
"(",
")",
"string",
"{",
"if",
"m",
"==",
"nil",
"||",
"m",
".",
"PriceModel",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"m",
".",
"PriceModel",
"\n",
"}"
] |
// GetPriceModel returns the PriceModel field if it's non-nil, zero value otherwise.
|
[
"GetPriceModel",
"returns",
"the",
"PriceModel",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L4904-L4909
|
train
|
google/go-github
|
github/github-accessors.go
|
GetUnitName
|
func (m *MarketplacePlan) GetUnitName() string {
if m == nil || m.UnitName == nil {
return ""
}
return *m.UnitName
}
|
go
|
func (m *MarketplacePlan) GetUnitName() string {
if m == nil || m.UnitName == nil {
return ""
}
return *m.UnitName
}
|
[
"func",
"(",
"m",
"*",
"MarketplacePlan",
")",
"GetUnitName",
"(",
")",
"string",
"{",
"if",
"m",
"==",
"nil",
"||",
"m",
".",
"UnitName",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"m",
".",
"UnitName",
"\n",
"}"
] |
// GetUnitName returns the UnitName field if it's non-nil, zero value otherwise.
|
[
"GetUnitName",
"returns",
"the",
"UnitName",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L4920-L4925
|
train
|
google/go-github
|
github/github-accessors.go
|
GetYearlyPriceInCents
|
func (m *MarketplacePlan) GetYearlyPriceInCents() int {
if m == nil || m.YearlyPriceInCents == nil {
return 0
}
return *m.YearlyPriceInCents
}
|
go
|
func (m *MarketplacePlan) GetYearlyPriceInCents() int {
if m == nil || m.YearlyPriceInCents == nil {
return 0
}
return *m.YearlyPriceInCents
}
|
[
"func",
"(",
"m",
"*",
"MarketplacePlan",
")",
"GetYearlyPriceInCents",
"(",
")",
"int",
"{",
"if",
"m",
"==",
"nil",
"||",
"m",
".",
"YearlyPriceInCents",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"m",
".",
"YearlyPriceInCents",
"\n",
"}"
] |
// GetYearlyPriceInCents returns the YearlyPriceInCents field if it's non-nil, zero value otherwise.
|
[
"GetYearlyPriceInCents",
"returns",
"the",
"YearlyPriceInCents",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L4936-L4941
|
train
|
google/go-github
|
github/github-accessors.go
|
GetOrganizationBillingEmail
|
func (m *MarketplacePlanAccount) GetOrganizationBillingEmail() string {
if m == nil || m.OrganizationBillingEmail == nil {
return ""
}
return *m.OrganizationBillingEmail
}
|
go
|
func (m *MarketplacePlanAccount) GetOrganizationBillingEmail() string {
if m == nil || m.OrganizationBillingEmail == nil {
return ""
}
return *m.OrganizationBillingEmail
}
|
[
"func",
"(",
"m",
"*",
"MarketplacePlanAccount",
")",
"GetOrganizationBillingEmail",
"(",
")",
"string",
"{",
"if",
"m",
"==",
"nil",
"||",
"m",
".",
"OrganizationBillingEmail",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"m",
".",
"OrganizationBillingEmail",
"\n",
"}"
] |
// GetOrganizationBillingEmail returns the OrganizationBillingEmail field if it's non-nil, zero value otherwise.
|
[
"GetOrganizationBillingEmail",
"returns",
"the",
"OrganizationBillingEmail",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L4992-L4997
|
train
|
google/go-github
|
github/github-accessors.go
|
GetBillingCycle
|
func (m *MarketplacePurchase) GetBillingCycle() string {
if m == nil || m.BillingCycle == nil {
return ""
}
return *m.BillingCycle
}
|
go
|
func (m *MarketplacePurchase) GetBillingCycle() string {
if m == nil || m.BillingCycle == nil {
return ""
}
return *m.BillingCycle
}
|
[
"func",
"(",
"m",
"*",
"MarketplacePurchase",
")",
"GetBillingCycle",
"(",
")",
"string",
"{",
"if",
"m",
"==",
"nil",
"||",
"m",
".",
"BillingCycle",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"m",
".",
"BillingCycle",
"\n",
"}"
] |
// GetBillingCycle returns the BillingCycle field if it's non-nil, zero value otherwise.
|
[
"GetBillingCycle",
"returns",
"the",
"BillingCycle",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L5024-L5029
|
train
|
google/go-github
|
github/github-accessors.go
|
GetFreeTrialEndsOn
|
func (m *MarketplacePurchase) GetFreeTrialEndsOn() Timestamp {
if m == nil || m.FreeTrialEndsOn == nil {
return Timestamp{}
}
return *m.FreeTrialEndsOn
}
|
go
|
func (m *MarketplacePurchase) GetFreeTrialEndsOn() Timestamp {
if m == nil || m.FreeTrialEndsOn == nil {
return Timestamp{}
}
return *m.FreeTrialEndsOn
}
|
[
"func",
"(",
"m",
"*",
"MarketplacePurchase",
")",
"GetFreeTrialEndsOn",
"(",
")",
"Timestamp",
"{",
"if",
"m",
"==",
"nil",
"||",
"m",
".",
"FreeTrialEndsOn",
"==",
"nil",
"{",
"return",
"Timestamp",
"{",
"}",
"\n",
"}",
"\n",
"return",
"*",
"m",
".",
"FreeTrialEndsOn",
"\n",
"}"
] |
// GetFreeTrialEndsOn returns the FreeTrialEndsOn field if it's non-nil, zero value otherwise.
|
[
"GetFreeTrialEndsOn",
"returns",
"the",
"FreeTrialEndsOn",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L5032-L5037
|
train
|
google/go-github
|
github/github-accessors.go
|
GetNextBillingDate
|
func (m *MarketplacePurchase) GetNextBillingDate() Timestamp {
if m == nil || m.NextBillingDate == nil {
return Timestamp{}
}
return *m.NextBillingDate
}
|
go
|
func (m *MarketplacePurchase) GetNextBillingDate() Timestamp {
if m == nil || m.NextBillingDate == nil {
return Timestamp{}
}
return *m.NextBillingDate
}
|
[
"func",
"(",
"m",
"*",
"MarketplacePurchase",
")",
"GetNextBillingDate",
"(",
")",
"Timestamp",
"{",
"if",
"m",
"==",
"nil",
"||",
"m",
".",
"NextBillingDate",
"==",
"nil",
"{",
"return",
"Timestamp",
"{",
"}",
"\n",
"}",
"\n",
"return",
"*",
"m",
".",
"NextBillingDate",
"\n",
"}"
] |
// GetNextBillingDate returns the NextBillingDate field if it's non-nil, zero value otherwise.
|
[
"GetNextBillingDate",
"returns",
"the",
"NextBillingDate",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L5040-L5045
|
train
|
google/go-github
|
github/github-accessors.go
|
GetOnFreeTrial
|
func (m *MarketplacePurchase) GetOnFreeTrial() bool {
if m == nil || m.OnFreeTrial == nil {
return false
}
return *m.OnFreeTrial
}
|
go
|
func (m *MarketplacePurchase) GetOnFreeTrial() bool {
if m == nil || m.OnFreeTrial == nil {
return false
}
return *m.OnFreeTrial
}
|
[
"func",
"(",
"m",
"*",
"MarketplacePurchase",
")",
"GetOnFreeTrial",
"(",
")",
"bool",
"{",
"if",
"m",
"==",
"nil",
"||",
"m",
".",
"OnFreeTrial",
"==",
"nil",
"{",
"return",
"false",
"\n",
"}",
"\n",
"return",
"*",
"m",
".",
"OnFreeTrial",
"\n",
"}"
] |
// GetOnFreeTrial returns the OnFreeTrial field if it's non-nil, zero value otherwise.
|
[
"GetOnFreeTrial",
"returns",
"the",
"OnFreeTrial",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L5048-L5053
|
train
|
google/go-github
|
github/github-accessors.go
|
GetOrganizationURL
|
func (m *Membership) GetOrganizationURL() string {
if m == nil || m.OrganizationURL == nil {
return ""
}
return *m.OrganizationURL
}
|
go
|
func (m *Membership) GetOrganizationURL() string {
if m == nil || m.OrganizationURL == nil {
return ""
}
return *m.OrganizationURL
}
|
[
"func",
"(",
"m",
"*",
"Membership",
")",
"GetOrganizationURL",
"(",
")",
"string",
"{",
"if",
"m",
"==",
"nil",
"||",
"m",
".",
"OrganizationURL",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"m",
".",
"OrganizationURL",
"\n",
"}"
] |
// GetOrganizationURL returns the OrganizationURL field if it's non-nil, zero value otherwise.
|
[
"GetOrganizationURL",
"returns",
"the",
"OrganizationURL",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L5176-L5181
|
train
|
google/go-github
|
github/github-accessors.go
|
GetScope
|
func (m *MembershipEvent) GetScope() string {
if m == nil || m.Scope == nil {
return ""
}
return *m.Scope
}
|
go
|
func (m *MembershipEvent) GetScope() string {
if m == nil || m.Scope == nil {
return ""
}
return *m.Scope
}
|
[
"func",
"(",
"m",
"*",
"MembershipEvent",
")",
"GetScope",
"(",
")",
"string",
"{",
"if",
"m",
"==",
"nil",
"||",
"m",
".",
"Scope",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"m",
".",
"Scope",
"\n",
"}"
] |
// GetScope returns the Scope field if it's non-nil, zero value otherwise.
|
[
"GetScope",
"returns",
"the",
"Scope",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L5248-L5253
|
train
|
google/go-github
|
github/github-accessors.go
|
GetDueOn
|
func (m *Milestone) GetDueOn() time.Time {
if m == nil || m.DueOn == nil {
return time.Time{}
}
return *m.DueOn
}
|
go
|
func (m *Milestone) GetDueOn() time.Time {
if m == nil || m.DueOn == nil {
return time.Time{}
}
return *m.DueOn
}
|
[
"func",
"(",
"m",
"*",
"Milestone",
")",
"GetDueOn",
"(",
")",
"time",
".",
"Time",
"{",
"if",
"m",
"==",
"nil",
"||",
"m",
".",
"DueOn",
"==",
"nil",
"{",
"return",
"time",
".",
"Time",
"{",
"}",
"\n",
"}",
"\n",
"return",
"*",
"m",
".",
"DueOn",
"\n",
"}"
] |
// GetDueOn returns the DueOn field if it's non-nil, zero value otherwise.
|
[
"GetDueOn",
"returns",
"the",
"DueOn",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L5432-L5437
|
train
|
google/go-github
|
github/github-accessors.go
|
GetClosedMilestones
|
func (m *MilestoneStats) GetClosedMilestones() int {
if m == nil || m.ClosedMilestones == nil {
return 0
}
return *m.ClosedMilestones
}
|
go
|
func (m *MilestoneStats) GetClosedMilestones() int {
if m == nil || m.ClosedMilestones == nil {
return 0
}
return *m.ClosedMilestones
}
|
[
"func",
"(",
"m",
"*",
"MilestoneStats",
")",
"GetClosedMilestones",
"(",
")",
"int",
"{",
"if",
"m",
"==",
"nil",
"||",
"m",
".",
"ClosedMilestones",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"m",
".",
"ClosedMilestones",
"\n",
"}"
] |
// GetClosedMilestones returns the ClosedMilestones field if it's non-nil, zero value otherwise.
|
[
"GetClosedMilestones",
"returns",
"the",
"ClosedMilestones",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L5576-L5581
|
train
|
google/go-github
|
github/github-accessors.go
|
GetOpenMilestones
|
func (m *MilestoneStats) GetOpenMilestones() int {
if m == nil || m.OpenMilestones == nil {
return 0
}
return *m.OpenMilestones
}
|
go
|
func (m *MilestoneStats) GetOpenMilestones() int {
if m == nil || m.OpenMilestones == nil {
return 0
}
return *m.OpenMilestones
}
|
[
"func",
"(",
"m",
"*",
"MilestoneStats",
")",
"GetOpenMilestones",
"(",
")",
"int",
"{",
"if",
"m",
"==",
"nil",
"||",
"m",
".",
"OpenMilestones",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"m",
".",
"OpenMilestones",
"\n",
"}"
] |
// GetOpenMilestones returns the OpenMilestones field if it's non-nil, zero value otherwise.
|
[
"GetOpenMilestones",
"returns",
"the",
"OpenMilestones",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L5584-L5589
|
train
|
google/go-github
|
github/github-accessors.go
|
GetTotalMilestones
|
func (m *MilestoneStats) GetTotalMilestones() int {
if m == nil || m.TotalMilestones == nil {
return 0
}
return *m.TotalMilestones
}
|
go
|
func (m *MilestoneStats) GetTotalMilestones() int {
if m == nil || m.TotalMilestones == nil {
return 0
}
return *m.TotalMilestones
}
|
[
"func",
"(",
"m",
"*",
"MilestoneStats",
")",
"GetTotalMilestones",
"(",
")",
"int",
"{",
"if",
"m",
"==",
"nil",
"||",
"m",
".",
"TotalMilestones",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"m",
".",
"TotalMilestones",
"\n",
"}"
] |
// GetTotalMilestones returns the TotalMilestones field if it's non-nil, zero value otherwise.
|
[
"GetTotalMilestones",
"returns",
"the",
"TotalMilestones",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L5592-L5597
|
train
|
google/go-github
|
github/github-accessors.go
|
GetIssue
|
func (n *NewPullRequest) GetIssue() int {
if n == nil || n.Issue == nil {
return 0
}
return *n.Issue
}
|
go
|
func (n *NewPullRequest) GetIssue() int {
if n == nil || n.Issue == nil {
return 0
}
return *n.Issue
}
|
[
"func",
"(",
"n",
"*",
"NewPullRequest",
")",
"GetIssue",
"(",
")",
"int",
"{",
"if",
"n",
"==",
"nil",
"||",
"n",
".",
"Issue",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"n",
".",
"Issue",
"\n",
"}"
] |
// GetIssue returns the Issue field if it's non-nil, zero value otherwise.
|
[
"GetIssue",
"returns",
"the",
"Issue",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L5632-L5637
|
train
|
google/go-github
|
github/github-accessors.go
|
GetParentTeamID
|
func (n *NewTeam) GetParentTeamID() int64 {
if n == nil || n.ParentTeamID == nil {
return 0
}
return *n.ParentTeamID
}
|
go
|
func (n *NewTeam) GetParentTeamID() int64 {
if n == nil || n.ParentTeamID == nil {
return 0
}
return *n.ParentTeamID
}
|
[
"func",
"(",
"n",
"*",
"NewTeam",
")",
"GetParentTeamID",
"(",
")",
"int64",
"{",
"if",
"n",
"==",
"nil",
"||",
"n",
".",
"ParentTeamID",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"n",
".",
"ParentTeamID",
"\n",
"}"
] |
// GetParentTeamID returns the ParentTeamID field if it's non-nil, zero value otherwise.
|
[
"GetParentTeamID",
"returns",
"the",
"ParentTeamID",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L5672-L5677
|
train
|
google/go-github
|
github/github-accessors.go
|
GetLastReadAt
|
func (n *Notification) GetLastReadAt() time.Time {
if n == nil || n.LastReadAt == nil {
return time.Time{}
}
return *n.LastReadAt
}
|
go
|
func (n *Notification) GetLastReadAt() time.Time {
if n == nil || n.LastReadAt == nil {
return time.Time{}
}
return *n.LastReadAt
}
|
[
"func",
"(",
"n",
"*",
"Notification",
")",
"GetLastReadAt",
"(",
")",
"time",
".",
"Time",
"{",
"if",
"n",
"==",
"nil",
"||",
"n",
".",
"LastReadAt",
"==",
"nil",
"{",
"return",
"time",
".",
"Time",
"{",
"}",
"\n",
"}",
"\n",
"return",
"*",
"n",
".",
"LastReadAt",
"\n",
"}"
] |
// GetLastReadAt returns the LastReadAt field if it's non-nil, zero value otherwise.
|
[
"GetLastReadAt",
"returns",
"the",
"LastReadAt",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L5704-L5709
|
train
|
google/go-github
|
github/github-accessors.go
|
GetUnread
|
func (n *Notification) GetUnread() bool {
if n == nil || n.Unread == nil {
return false
}
return *n.Unread
}
|
go
|
func (n *Notification) GetUnread() bool {
if n == nil || n.Unread == nil {
return false
}
return *n.Unread
}
|
[
"func",
"(",
"n",
"*",
"Notification",
")",
"GetUnread",
"(",
")",
"bool",
"{",
"if",
"n",
"==",
"nil",
"||",
"n",
".",
"Unread",
"==",
"nil",
"{",
"return",
"false",
"\n",
"}",
"\n",
"return",
"*",
"n",
".",
"Unread",
"\n",
"}"
] |
// GetUnread returns the Unread field if it's non-nil, zero value otherwise.
|
[
"GetUnread",
"returns",
"the",
"Unread",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L5736-L5741
|
train
|
google/go-github
|
github/github-accessors.go
|
GetBillingEmail
|
func (o *Organization) GetBillingEmail() string {
if o == nil || o.BillingEmail == nil {
return ""
}
return *o.BillingEmail
}
|
go
|
func (o *Organization) GetBillingEmail() string {
if o == nil || o.BillingEmail == nil {
return ""
}
return *o.BillingEmail
}
|
[
"func",
"(",
"o",
"*",
"Organization",
")",
"GetBillingEmail",
"(",
")",
"string",
"{",
"if",
"o",
"==",
"nil",
"||",
"o",
".",
"BillingEmail",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"o",
".",
"BillingEmail",
"\n",
"}"
] |
// GetBillingEmail returns the BillingEmail field if it's non-nil, zero value otherwise.
|
[
"GetBillingEmail",
"returns",
"the",
"BillingEmail",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L5800-L5805
|
train
|
google/go-github
|
github/github-accessors.go
|
GetDefaultRepoPermission
|
func (o *Organization) GetDefaultRepoPermission() string {
if o == nil || o.DefaultRepoPermission == nil {
return ""
}
return *o.DefaultRepoPermission
}
|
go
|
func (o *Organization) GetDefaultRepoPermission() string {
if o == nil || o.DefaultRepoPermission == nil {
return ""
}
return *o.DefaultRepoPermission
}
|
[
"func",
"(",
"o",
"*",
"Organization",
")",
"GetDefaultRepoPermission",
"(",
")",
"string",
"{",
"if",
"o",
"==",
"nil",
"||",
"o",
".",
"DefaultRepoPermission",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"o",
".",
"DefaultRepoPermission",
"\n",
"}"
] |
// GetDefaultRepoPermission returns the DefaultRepoPermission field if it's non-nil, zero value otherwise.
|
[
"GetDefaultRepoPermission",
"returns",
"the",
"DefaultRepoPermission",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L5840-L5845
|
train
|
google/go-github
|
github/github-accessors.go
|
GetDefaultRepoSettings
|
func (o *Organization) GetDefaultRepoSettings() string {
if o == nil || o.DefaultRepoSettings == nil {
return ""
}
return *o.DefaultRepoSettings
}
|
go
|
func (o *Organization) GetDefaultRepoSettings() string {
if o == nil || o.DefaultRepoSettings == nil {
return ""
}
return *o.DefaultRepoSettings
}
|
[
"func",
"(",
"o",
"*",
"Organization",
")",
"GetDefaultRepoSettings",
"(",
")",
"string",
"{",
"if",
"o",
"==",
"nil",
"||",
"o",
".",
"DefaultRepoSettings",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"o",
".",
"DefaultRepoSettings",
"\n",
"}"
] |
// GetDefaultRepoSettings returns the DefaultRepoSettings field if it's non-nil, zero value otherwise.
|
[
"GetDefaultRepoSettings",
"returns",
"the",
"DefaultRepoSettings",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L5848-L5853
|
train
|
google/go-github
|
github/github-accessors.go
|
GetMembersCanCreateRepos
|
func (o *Organization) GetMembersCanCreateRepos() bool {
if o == nil || o.MembersCanCreateRepos == nil {
return false
}
return *o.MembersCanCreateRepos
}
|
go
|
func (o *Organization) GetMembersCanCreateRepos() bool {
if o == nil || o.MembersCanCreateRepos == nil {
return false
}
return *o.MembersCanCreateRepos
}
|
[
"func",
"(",
"o",
"*",
"Organization",
")",
"GetMembersCanCreateRepos",
"(",
")",
"bool",
"{",
"if",
"o",
"==",
"nil",
"||",
"o",
".",
"MembersCanCreateRepos",
"==",
"nil",
"{",
"return",
"false",
"\n",
"}",
"\n",
"return",
"*",
"o",
".",
"MembersCanCreateRepos",
"\n",
"}"
] |
// GetMembersCanCreateRepos returns the MembersCanCreateRepos field if it's non-nil, zero value otherwise.
|
[
"GetMembersCanCreateRepos",
"returns",
"the",
"MembersCanCreateRepos",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L5952-L5957
|
train
|
google/go-github
|
github/github-accessors.go
|
GetPublicMembersURL
|
func (o *Organization) GetPublicMembersURL() string {
if o == nil || o.PublicMembersURL == nil {
return ""
}
return *o.PublicMembersURL
}
|
go
|
func (o *Organization) GetPublicMembersURL() string {
if o == nil || o.PublicMembersURL == nil {
return ""
}
return *o.PublicMembersURL
}
|
[
"func",
"(",
"o",
"*",
"Organization",
")",
"GetPublicMembersURL",
"(",
")",
"string",
"{",
"if",
"o",
"==",
"nil",
"||",
"o",
".",
"PublicMembersURL",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"o",
".",
"PublicMembersURL",
"\n",
"}"
] |
// GetPublicMembersURL returns the PublicMembersURL field if it's non-nil, zero value otherwise.
|
[
"GetPublicMembersURL",
"returns",
"the",
"PublicMembersURL",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L6016-L6021
|
train
|
google/go-github
|
github/github-accessors.go
|
GetTwoFactorRequirementEnabled
|
func (o *Organization) GetTwoFactorRequirementEnabled() bool {
if o == nil || o.TwoFactorRequirementEnabled == nil {
return false
}
return *o.TwoFactorRequirementEnabled
}
|
go
|
func (o *Organization) GetTwoFactorRequirementEnabled() bool {
if o == nil || o.TwoFactorRequirementEnabled == nil {
return false
}
return *o.TwoFactorRequirementEnabled
}
|
[
"func",
"(",
"o",
"*",
"Organization",
")",
"GetTwoFactorRequirementEnabled",
"(",
")",
"bool",
"{",
"if",
"o",
"==",
"nil",
"||",
"o",
".",
"TwoFactorRequirementEnabled",
"==",
"nil",
"{",
"return",
"false",
"\n",
"}",
"\n",
"return",
"*",
"o",
".",
"TwoFactorRequirementEnabled",
"\n",
"}"
] |
// GetTwoFactorRequirementEnabled returns the TwoFactorRequirementEnabled field if it's non-nil, zero value otherwise.
|
[
"GetTwoFactorRequirementEnabled",
"returns",
"the",
"TwoFactorRequirementEnabled",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L6048-L6053
|
train
|
google/go-github
|
github/github-accessors.go
|
GetDisabledOrgs
|
func (o *OrgStats) GetDisabledOrgs() int {
if o == nil || o.DisabledOrgs == nil {
return 0
}
return *o.DisabledOrgs
}
|
go
|
func (o *OrgStats) GetDisabledOrgs() int {
if o == nil || o.DisabledOrgs == nil {
return 0
}
return *o.DisabledOrgs
}
|
[
"func",
"(",
"o",
"*",
"OrgStats",
")",
"GetDisabledOrgs",
"(",
")",
"int",
"{",
"if",
"o",
"==",
"nil",
"||",
"o",
".",
"DisabledOrgs",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"o",
".",
"DisabledOrgs",
"\n",
"}"
] |
// GetDisabledOrgs returns the DisabledOrgs field if it's non-nil, zero value otherwise.
|
[
"GetDisabledOrgs",
"returns",
"the",
"DisabledOrgs",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L6168-L6173
|
train
|
google/go-github
|
github/github-accessors.go
|
GetTotalOrgs
|
func (o *OrgStats) GetTotalOrgs() int {
if o == nil || o.TotalOrgs == nil {
return 0
}
return *o.TotalOrgs
}
|
go
|
func (o *OrgStats) GetTotalOrgs() int {
if o == nil || o.TotalOrgs == nil {
return 0
}
return *o.TotalOrgs
}
|
[
"func",
"(",
"o",
"*",
"OrgStats",
")",
"GetTotalOrgs",
"(",
")",
"int",
"{",
"if",
"o",
"==",
"nil",
"||",
"o",
".",
"TotalOrgs",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"o",
".",
"TotalOrgs",
"\n",
"}"
] |
// GetTotalOrgs returns the TotalOrgs field if it's non-nil, zero value otherwise.
|
[
"GetTotalOrgs",
"returns",
"the",
"TotalOrgs",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L6176-L6181
|
train
|
google/go-github
|
github/github-accessors.go
|
GetTotalTeamMembers
|
func (o *OrgStats) GetTotalTeamMembers() int {
if o == nil || o.TotalTeamMembers == nil {
return 0
}
return *o.TotalTeamMembers
}
|
go
|
func (o *OrgStats) GetTotalTeamMembers() int {
if o == nil || o.TotalTeamMembers == nil {
return 0
}
return *o.TotalTeamMembers
}
|
[
"func",
"(",
"o",
"*",
"OrgStats",
")",
"GetTotalTeamMembers",
"(",
")",
"int",
"{",
"if",
"o",
"==",
"nil",
"||",
"o",
".",
"TotalTeamMembers",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"o",
".",
"TotalTeamMembers",
"\n",
"}"
] |
// GetTotalTeamMembers returns the TotalTeamMembers field if it's non-nil, zero value otherwise.
|
[
"GetTotalTeamMembers",
"returns",
"the",
"TotalTeamMembers",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L6184-L6189
|
train
|
google/go-github
|
github/github-accessors.go
|
GetTotalTeams
|
func (o *OrgStats) GetTotalTeams() int {
if o == nil || o.TotalTeams == nil {
return 0
}
return *o.TotalTeams
}
|
go
|
func (o *OrgStats) GetTotalTeams() int {
if o == nil || o.TotalTeams == nil {
return 0
}
return *o.TotalTeams
}
|
[
"func",
"(",
"o",
"*",
"OrgStats",
")",
"GetTotalTeams",
"(",
")",
"int",
"{",
"if",
"o",
"==",
"nil",
"||",
"o",
".",
"TotalTeams",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"o",
".",
"TotalTeams",
"\n",
"}"
] |
// GetTotalTeams returns the TotalTeams field if it's non-nil, zero value otherwise.
|
[
"GetTotalTeams",
"returns",
"the",
"TotalTeams",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L6192-L6197
|
train
|
google/go-github
|
github/github-accessors.go
|
GetPageName
|
func (p *Page) GetPageName() string {
if p == nil || p.PageName == nil {
return ""
}
return *p.PageName
}
|
go
|
func (p *Page) GetPageName() string {
if p == nil || p.PageName == nil {
return ""
}
return *p.PageName
}
|
[
"func",
"(",
"p",
"*",
"Page",
")",
"GetPageName",
"(",
")",
"string",
"{",
"if",
"p",
"==",
"nil",
"||",
"p",
".",
"PageName",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"p",
".",
"PageName",
"\n",
"}"
] |
// GetPageName returns the PageName field if it's non-nil, zero value otherwise.
|
[
"GetPageName",
"returns",
"the",
"PageName",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L6216-L6221
|
train
|
google/go-github
|
github/github-accessors.go
|
GetCNAME
|
func (p *Pages) GetCNAME() string {
if p == nil || p.CNAME == nil {
return ""
}
return *p.CNAME
}
|
go
|
func (p *Pages) GetCNAME() string {
if p == nil || p.CNAME == nil {
return ""
}
return *p.CNAME
}
|
[
"func",
"(",
"p",
"*",
"Pages",
")",
"GetCNAME",
"(",
")",
"string",
"{",
"if",
"p",
"==",
"nil",
"||",
"p",
".",
"CNAME",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"p",
".",
"CNAME",
"\n",
"}"
] |
// GetCNAME returns the CNAME field if it's non-nil, zero value otherwise.
|
[
"GetCNAME",
"returns",
"the",
"CNAME",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L6288-L6293
|
train
|
google/go-github
|
github/github-accessors.go
|
GetCustom404
|
func (p *Pages) GetCustom404() bool {
if p == nil || p.Custom404 == nil {
return false
}
return *p.Custom404
}
|
go
|
func (p *Pages) GetCustom404() bool {
if p == nil || p.Custom404 == nil {
return false
}
return *p.Custom404
}
|
[
"func",
"(",
"p",
"*",
"Pages",
")",
"GetCustom404",
"(",
")",
"bool",
"{",
"if",
"p",
"==",
"nil",
"||",
"p",
".",
"Custom404",
"==",
"nil",
"{",
"return",
"false",
"\n",
"}",
"\n",
"return",
"*",
"p",
".",
"Custom404",
"\n",
"}"
] |
// GetCustom404 returns the Custom404 field if it's non-nil, zero value otherwise.
|
[
"GetCustom404",
"returns",
"the",
"Custom404",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L6296-L6301
|
train
|
google/go-github
|
github/github-accessors.go
|
GetCommit
|
func (p *PagesBuild) GetCommit() string {
if p == nil || p.Commit == nil {
return ""
}
return *p.Commit
}
|
go
|
func (p *PagesBuild) GetCommit() string {
if p == nil || p.Commit == nil {
return ""
}
return *p.Commit
}
|
[
"func",
"(",
"p",
"*",
"PagesBuild",
")",
"GetCommit",
"(",
")",
"string",
"{",
"if",
"p",
"==",
"nil",
"||",
"p",
".",
"Commit",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"p",
".",
"Commit",
"\n",
"}"
] |
// GetCommit returns the Commit field if it's non-nil, zero value otherwise.
|
[
"GetCommit",
"returns",
"the",
"Commit",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L6336-L6341
|
train
|
google/go-github
|
github/github-accessors.go
|
GetDuration
|
func (p *PagesBuild) GetDuration() int {
if p == nil || p.Duration == nil {
return 0
}
return *p.Duration
}
|
go
|
func (p *PagesBuild) GetDuration() int {
if p == nil || p.Duration == nil {
return 0
}
return *p.Duration
}
|
[
"func",
"(",
"p",
"*",
"PagesBuild",
")",
"GetDuration",
"(",
")",
"int",
"{",
"if",
"p",
"==",
"nil",
"||",
"p",
".",
"Duration",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"p",
".",
"Duration",
"\n",
"}"
] |
// GetDuration returns the Duration field if it's non-nil, zero value otherwise.
|
[
"GetDuration",
"returns",
"the",
"Duration",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L6352-L6357
|
train
|
google/go-github
|
github/github-accessors.go
|
GetTotalPages
|
func (p *PageStats) GetTotalPages() int {
if p == nil || p.TotalPages == nil {
return 0
}
return *p.TotalPages
}
|
go
|
func (p *PageStats) GetTotalPages() int {
if p == nil || p.TotalPages == nil {
return 0
}
return *p.TotalPages
}
|
[
"func",
"(",
"p",
"*",
"PageStats",
")",
"GetTotalPages",
"(",
")",
"int",
"{",
"if",
"p",
"==",
"nil",
"||",
"p",
".",
"TotalPages",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"p",
".",
"TotalPages",
"\n",
"}"
] |
// GetTotalPages returns the TotalPages field if it's non-nil, zero value otherwise.
|
[
"GetTotalPages",
"returns",
"the",
"TotalPages",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L6424-L6429
|
train
|
google/go-github
|
github/github-accessors.go
|
GetZen
|
func (p *PingEvent) GetZen() string {
if p == nil || p.Zen == nil {
return ""
}
return *p.Zen
}
|
go
|
func (p *PingEvent) GetZen() string {
if p == nil || p.Zen == nil {
return ""
}
return *p.Zen
}
|
[
"func",
"(",
"p",
"*",
"PingEvent",
")",
"GetZen",
"(",
")",
"string",
"{",
"if",
"p",
"==",
"nil",
"||",
"p",
".",
"Zen",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"p",
".",
"Zen",
"\n",
"}"
] |
// GetZen returns the Zen field if it's non-nil, zero value otherwise.
|
[
"GetZen",
"returns",
"the",
"Zen",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L6456-L6461
|
train
|
google/go-github
|
github/github-accessors.go
|
GetPrivateRepos
|
func (p *Plan) GetPrivateRepos() int {
if p == nil || p.PrivateRepos == nil {
return 0
}
return *p.PrivateRepos
}
|
go
|
func (p *Plan) GetPrivateRepos() int {
if p == nil || p.PrivateRepos == nil {
return 0
}
return *p.PrivateRepos
}
|
[
"func",
"(",
"p",
"*",
"Plan",
")",
"GetPrivateRepos",
"(",
")",
"int",
"{",
"if",
"p",
"==",
"nil",
"||",
"p",
".",
"PrivateRepos",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"p",
".",
"PrivateRepos",
"\n",
"}"
] |
// GetPrivateRepos returns the PrivateRepos field if it's non-nil, zero value otherwise.
|
[
"GetPrivateRepos",
"returns",
"the",
"PrivateRepos",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L6480-L6485
|
train
|
google/go-github
|
github/github-accessors.go
|
GetSpace
|
func (p *Plan) GetSpace() int {
if p == nil || p.Space == nil {
return 0
}
return *p.Space
}
|
go
|
func (p *Plan) GetSpace() int {
if p == nil || p.Space == nil {
return 0
}
return *p.Space
}
|
[
"func",
"(",
"p",
"*",
"Plan",
")",
"GetSpace",
"(",
")",
"int",
"{",
"if",
"p",
"==",
"nil",
"||",
"p",
".",
"Space",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"p",
".",
"Space",
"\n",
"}"
] |
// GetSpace returns the Space field if it's non-nil, zero value otherwise.
|
[
"GetSpace",
"returns",
"the",
"Space",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L6488-L6493
|
train
|
google/go-github
|
github/github-accessors.go
|
GetConfigURL
|
func (p *PreReceiveHook) GetConfigURL() string {
if p == nil || p.ConfigURL == nil {
return ""
}
return *p.ConfigURL
}
|
go
|
func (p *PreReceiveHook) GetConfigURL() string {
if p == nil || p.ConfigURL == nil {
return ""
}
return *p.ConfigURL
}
|
[
"func",
"(",
"p",
"*",
"PreReceiveHook",
")",
"GetConfigURL",
"(",
")",
"string",
"{",
"if",
"p",
"==",
"nil",
"||",
"p",
".",
"ConfigURL",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"p",
".",
"ConfigURL",
"\n",
"}"
] |
// GetConfigURL returns the ConfigURL field if it's non-nil, zero value otherwise.
|
[
"GetConfigURL",
"returns",
"the",
"ConfigURL",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L6496-L6501
|
train
|
google/go-github
|
github/github-accessors.go
|
GetEnforcement
|
func (p *PreReceiveHook) GetEnforcement() string {
if p == nil || p.Enforcement == nil {
return ""
}
return *p.Enforcement
}
|
go
|
func (p *PreReceiveHook) GetEnforcement() string {
if p == nil || p.Enforcement == nil {
return ""
}
return *p.Enforcement
}
|
[
"func",
"(",
"p",
"*",
"PreReceiveHook",
")",
"GetEnforcement",
"(",
")",
"string",
"{",
"if",
"p",
"==",
"nil",
"||",
"p",
".",
"Enforcement",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"p",
".",
"Enforcement",
"\n",
"}"
] |
// GetEnforcement returns the Enforcement field if it's non-nil, zero value otherwise.
|
[
"GetEnforcement",
"returns",
"the",
"Enforcement",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L6504-L6509
|
train
|
google/go-github
|
github/github-accessors.go
|
GetColumnsURL
|
func (p *Project) GetColumnsURL() string {
if p == nil || p.ColumnsURL == nil {
return ""
}
return *p.ColumnsURL
}
|
go
|
func (p *Project) GetColumnsURL() string {
if p == nil || p.ColumnsURL == nil {
return ""
}
return *p.ColumnsURL
}
|
[
"func",
"(",
"p",
"*",
"Project",
")",
"GetColumnsURL",
"(",
")",
"string",
"{",
"if",
"p",
"==",
"nil",
"||",
"p",
".",
"ColumnsURL",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"p",
".",
"ColumnsURL",
"\n",
"}"
] |
// GetColumnsURL returns the ColumnsURL field if it's non-nil, zero value otherwise.
|
[
"GetColumnsURL",
"returns",
"the",
"ColumnsURL",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L6608-L6613
|
train
|
google/go-github
|
github/github-accessors.go
|
GetOwnerURL
|
func (p *Project) GetOwnerURL() string {
if p == nil || p.OwnerURL == nil {
return ""
}
return *p.OwnerURL
}
|
go
|
func (p *Project) GetOwnerURL() string {
if p == nil || p.OwnerURL == nil {
return ""
}
return *p.OwnerURL
}
|
[
"func",
"(",
"p",
"*",
"Project",
")",
"GetOwnerURL",
"(",
")",
"string",
"{",
"if",
"p",
"==",
"nil",
"||",
"p",
".",
"OwnerURL",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"p",
".",
"OwnerURL",
"\n",
"}"
] |
// GetOwnerURL returns the OwnerURL field if it's non-nil, zero value otherwise.
|
[
"GetOwnerURL",
"returns",
"the",
"OwnerURL",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L6672-L6677
|
train
|
google/go-github
|
github/github-accessors.go
|
GetColumnID
|
func (p *ProjectCard) GetColumnID() int64 {
if p == nil || p.ColumnID == nil {
return 0
}
return *p.ColumnID
}
|
go
|
func (p *ProjectCard) GetColumnID() int64 {
if p == nil || p.ColumnID == nil {
return 0
}
return *p.ColumnID
}
|
[
"func",
"(",
"p",
"*",
"ProjectCard",
")",
"GetColumnID",
"(",
")",
"int64",
"{",
"if",
"p",
"==",
"nil",
"||",
"p",
".",
"ColumnID",
"==",
"nil",
"{",
"return",
"0",
"\n",
"}",
"\n",
"return",
"*",
"p",
".",
"ColumnID",
"\n",
"}"
] |
// GetColumnID returns the ColumnID field if it's non-nil, zero value otherwise.
|
[
"GetColumnID",
"returns",
"the",
"ColumnID",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L6712-L6717
|
train
|
google/go-github
|
github/github-accessors.go
|
GetColumnName
|
func (p *ProjectCard) GetColumnName() string {
if p == nil || p.ColumnName == nil {
return ""
}
return *p.ColumnName
}
|
go
|
func (p *ProjectCard) GetColumnName() string {
if p == nil || p.ColumnName == nil {
return ""
}
return *p.ColumnName
}
|
[
"func",
"(",
"p",
"*",
"ProjectCard",
")",
"GetColumnName",
"(",
")",
"string",
"{",
"if",
"p",
"==",
"nil",
"||",
"p",
".",
"ColumnName",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"p",
".",
"ColumnName",
"\n",
"}"
] |
// GetColumnName returns the ColumnName field if it's non-nil, zero value otherwise.
|
[
"GetColumnName",
"returns",
"the",
"ColumnName",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L6720-L6725
|
train
|
google/go-github
|
github/github-accessors.go
|
GetColumnURL
|
func (p *ProjectCard) GetColumnURL() string {
if p == nil || p.ColumnURL == nil {
return ""
}
return *p.ColumnURL
}
|
go
|
func (p *ProjectCard) GetColumnURL() string {
if p == nil || p.ColumnURL == nil {
return ""
}
return *p.ColumnURL
}
|
[
"func",
"(",
"p",
"*",
"ProjectCard",
")",
"GetColumnURL",
"(",
")",
"string",
"{",
"if",
"p",
"==",
"nil",
"||",
"p",
".",
"ColumnURL",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"p",
".",
"ColumnURL",
"\n",
"}"
] |
// GetColumnURL returns the ColumnURL field if it's non-nil, zero value otherwise.
|
[
"GetColumnURL",
"returns",
"the",
"ColumnURL",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L6728-L6733
|
train
|
google/go-github
|
github/github-accessors.go
|
GetContentURL
|
func (p *ProjectCard) GetContentURL() string {
if p == nil || p.ContentURL == nil {
return ""
}
return *p.ContentURL
}
|
go
|
func (p *ProjectCard) GetContentURL() string {
if p == nil || p.ContentURL == nil {
return ""
}
return *p.ContentURL
}
|
[
"func",
"(",
"p",
"*",
"ProjectCard",
")",
"GetContentURL",
"(",
")",
"string",
"{",
"if",
"p",
"==",
"nil",
"||",
"p",
".",
"ContentURL",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"p",
".",
"ContentURL",
"\n",
"}"
] |
// GetContentURL returns the ContentURL field if it's non-nil, zero value otherwise.
|
[
"GetContentURL",
"returns",
"the",
"ContentURL",
"field",
"if",
"it",
"s",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] |
1fef44b9b427e6c43f92b2f20918e496c275393f
|
https://github.com/google/go-github/blob/1fef44b9b427e6c43f92b2f20918e496c275393f/github/github-accessors.go#L6736-L6741
|
train
|
Subsets and Splits
SQL Console for semeru/code-text-go
Retrieves a limited set of code samples with their languages, with a specific case adjustment for 'Go' language.