docstring_tokens
list | code_tokens
list |
---|---|
[
"check",
"whether",
"the",
"object",
"equals",
"method",
"is",
"called",
"on",
"is",
"not",
"a",
"string",
"literal",
"and",
"not",
"too",
"complex"
]
| [
"boolean",
"result",
"=",
"true",
";",
"final",
"detail",
"a",
"s",
"t",
"previous",
"sibling",
"=",
"obj",
"called",
"on",
"get",
"previous",
"sibling",
"(",
")",
";",
"if",
"(",
"previous",
"sibling",
"!",
"=",
"null",
"&",
"&",
"previous",
"sibling",
"get",
"type",
"(",
")",
"=",
"=",
"token",
"types",
"dot",
")",
"{",
"result",
"=",
"false",
";",
"}",
"if",
"(",
"is",
"string",
"literal",
"(",
"obj",
"called",
"on",
")",
")",
"{",
"result",
"=",
"false",
";",
"}",
"return",
"result",
";"
]
|
[
"checks",
"for",
"calling",
"equals",
"on",
"string",
"literal",
"and",
"anon",
"object",
"which",
"cannot",
"be",
"null"
]
| [
"return",
"obj",
"called",
"on",
"get",
"type",
"(",
")",
"=",
"=",
"token",
"types",
"string",
"literal",
"|",
"|",
"obj",
"called",
"on",
"get",
"type",
"(",
")",
"=",
"=",
"token",
"types",
"literal",
"new",
";"
]
|
[
"verify",
"that",
"method",
"call",
"has",
"one",
"argument"
]
| [
"final",
"detail",
"a",
"s",
"t",
"elist",
"=",
"method",
"call",
"find",
"first",
"token",
"(",
"token",
"types",
"elist",
")",
";",
"return",
"elist",
"get",
"child",
"count",
"(",
")",
"=",
"=",
"1",
";"
]
|
[
"looks",
"for",
"all",
"safe",
"token",
"combinations",
"in",
"the",
"argument",
"expression",
"branch"
]
| [
"detail",
"a",
"s",
"t",
"arg",
"=",
"expr",
"get",
"first",
"child",
"(",
")",
";",
"arg",
"=",
"skip",
"variable",
"assign",
"(",
"arg",
")",
";",
"boolean",
"arg",
"is",
"not",
"null",
"=",
"false",
";",
"if",
"(",
"arg",
"get",
"type",
"(",
")",
"=",
"=",
"token",
"types",
"plus",
")",
"{",
"detail",
"a",
"s",
"t",
"child",
"=",
"arg",
"get",
"first",
"child",
"(",
")",
";",
"while",
"(",
"child",
"!",
"=",
"null",
"&",
"&",
"!",
"arg",
"is",
"not",
"null",
")",
"{",
"arg",
"is",
"not",
"null",
"=",
"child",
"get",
"type",
"(",
")",
"=",
"=",
"token",
"types",
"string",
"literal",
"|",
"|",
"child",
"get",
"type",
"(",
")",
"=",
"=",
"token",
"types",
"ident",
";",
"child",
"=",
"child",
"get",
"next",
"sibling",
"(",
")",
";",
"}",
"}",
"return",
"arg",
"is",
"not",
"null",
"|",
"|",
"!",
"arg",
"branch",
"contains",
"(",
"token",
"types",
"ident",
")",
"&",
"&",
"!",
"arg",
"branch",
"contains",
"(",
"token",
"types",
"literal",
"null",
")",
";"
]
|
[
"skips",
"over",
"an",
"inner",
"assign",
"portion",
"of",
"an",
"argument",
"expression"
]
| [
"detail",
"a",
"s",
"t",
"result",
"=",
"current",
"a",
"s",
"t",
";",
"if",
"(",
"current",
"a",
"s",
"t",
"get",
"type",
"(",
")",
"=",
"=",
"token",
"types",
"assign",
"&",
"&",
"current",
"a",
"s",
"t",
"get",
"first",
"child",
"(",
")",
"get",
"type",
"(",
")",
"=",
"=",
"token",
"types",
"ident",
")",
"{",
"result",
"=",
"current",
"a",
"s",
"t",
"get",
"first",
"child",
"(",
")",
"get",
"next",
"sibling",
"(",
")",
";",
"}",
"return",
"result",
";"
]
|
[
"determine",
"whether",
"equals",
"method",
"is",
"called",
"on",
"a",
"field",
"of",
"string",
"type"
]
| [
"final",
"boolean",
"result",
";",
"final",
"detail",
"a",
"s",
"t",
"previous",
"sibling",
"ast",
"=",
"obj",
"called",
"on",
"get",
"previous",
"sibling",
"(",
")",
";",
"if",
"(",
"previous",
"sibling",
"ast",
"=",
"=",
"null",
")",
"{",
"result",
"=",
"is",
"string",
"field",
"or",
"variable",
"(",
"obj",
"called",
"on",
")",
";",
"}",
"else",
"{",
"if",
"(",
"previous",
"sibling",
"ast",
"get",
"type",
"(",
")",
"=",
"=",
"token",
"types",
"literal",
"this",
")",
"{",
"result",
"=",
"is",
"string",
"field",
"or",
"variable",
"from",
"this",
"instance",
"(",
"obj",
"called",
"on",
")",
";",
"}",
"else",
"{",
"final",
"string",
"class",
"name",
"=",
"previous",
"sibling",
"ast",
"get",
"text",
"(",
")",
";",
"result",
"=",
"is",
"string",
"field",
"or",
"variable",
"from",
"class",
"(",
"obj",
"called",
"on",
",",
"class",
"name",
")",
";",
"}",
"}",
"return",
"result",
";"
]
|
[
"whether",
"the",
"field",
"or",
"the",
"variable",
"is",
"of",
"string",
"type"
]
| [
"boolean",
"result",
"=",
"false",
";",
"final",
"string",
"name",
"=",
"obj",
"called",
"on",
"get",
"text",
"(",
")",
";",
"field",
"frame",
"frame",
"=",
"current",
"frame",
";",
"while",
"(",
"frame",
"!",
"=",
"null",
")",
"{",
"final",
"detail",
"a",
"s",
"t",
"field",
"=",
"frame",
"find",
"field",
"(",
"name",
")",
";",
"if",
"(",
"field",
"!",
"=",
"null",
"&",
"&",
"(",
"frame",
"is",
"class",
"or",
"enum",
"or",
"enum",
"const",
"def",
"(",
")",
"|",
"|",
"check",
"line",
"no",
"(",
"field",
",",
"obj",
"called",
"on",
")",
")",
")",
"{",
"result",
"=",
"string",
"equals",
"(",
"get",
"field",
"type",
"(",
"field",
")",
")",
";",
"break",
";",
"}",
"frame",
"=",
"frame",
"get",
"parent",
"(",
")",
";",
"}",
"return",
"result",
";"
]
|
[
"whether",
"the",
"field",
"or",
"the",
"variable",
"from",
"this",
"instance",
"is",
"of",
"string",
"type"
]
| [
"boolean",
"result",
"=",
"false",
";",
"final",
"string",
"name",
"=",
"obj",
"called",
"on",
"get",
"text",
"(",
")",
";",
"final",
"detail",
"a",
"s",
"t",
"field",
"=",
"get",
"object",
"frame",
"(",
"current",
"frame",
")",
"find",
"field",
"(",
"name",
")",
";",
"if",
"(",
"field",
"!",
"=",
"null",
")",
"{",
"result",
"=",
"string",
"equals",
"(",
"get",
"field",
"type",
"(",
"field",
")",
")",
";",
"}",
"return",
"result",
";"
]
|
[
"whether",
"the",
"field",
"or",
"the",
"variable",
"from",
"the",
"specified",
"class",
"is",
"of",
"string",
"type"
]
| [
"boolean",
"result",
"=",
"false",
";",
"final",
"string",
"name",
"=",
"obj",
"called",
"on",
"get",
"text",
"(",
")",
";",
"field",
"frame",
"frame",
"=",
"get",
"object",
"frame",
"(",
"current",
"frame",
")",
";",
"while",
"(",
"frame",
"!",
"=",
"null",
")",
"{",
"if",
"(",
"class",
"name",
"equals",
"(",
"frame",
"get",
"frame",
"name",
"(",
")",
")",
")",
"{",
"final",
"detail",
"a",
"s",
"t",
"field",
"=",
"frame",
"find",
"field",
"(",
"name",
")",
";",
"if",
"(",
"field",
"!",
"=",
"null",
")",
"{",
"result",
"=",
"string",
"equals",
"(",
"get",
"field",
"type",
"(",
"field",
")",
")",
";",
"}",
"break",
";",
"}",
"frame",
"=",
"get",
"object",
"frame",
"(",
"frame",
"get",
"parent",
"(",
")",
")",
";",
"}",
"return",
"result",
";"
]
|
[
"get",
"the",
"nearest",
"parent",
"frame",
"which",
"is",
"class",
"def",
"enum",
"def",
"or",
"enum",
"const",
"def"
]
| [
"field",
"frame",
"object",
"frame",
"=",
"frame",
";",
"while",
"(",
"object",
"frame",
"!",
"=",
"null",
"&",
"&",
"!",
"object",
"frame",
"is",
"class",
"or",
"enum",
"or",
"enum",
"const",
"def",
"(",
")",
")",
"{",
"object",
"frame",
"=",
"object",
"frame",
"get",
"parent",
"(",
")",
";",
"}",
"return",
"object",
"frame",
";"
]
|
[
"get",
"field",
"type"
]
| [
"string",
"field",
"type",
"=",
"null",
";",
"final",
"detail",
"a",
"s",
"t",
"ident",
"ast",
"=",
"field",
"find",
"first",
"token",
"(",
"token",
"types",
"type",
")",
"find",
"first",
"token",
"(",
"token",
"types",
"ident",
")",
";",
"if",
"(",
"ident",
"ast",
"!",
"=",
"null",
")",
"{",
"field",
"type",
"=",
"ident",
"ast",
"get",
"text",
"(",
")",
";",
"}",
"return",
"field",
"type",
";"
]
|
[
"set",
"the",
"frame",
"name"
]
| [
"this",
"frame",
"name",
"=",
"frame",
"name",
";"
]
|
[
"getter",
"for",
"parent",
"frame"
]
| [
"return",
"parent",
";"
]
|
[
"getter",
"for",
"frame",
"s",
"children"
]
| [
"return",
"collections",
"unmodifiable",
"set",
"(",
"children",
")",
";"
]
|
[
"add",
"child",
"frame",
"to",
"this",
"frame"
]
| [
"children",
"add",
"(",
"child",
")",
";"
]
|
[
"add",
"field",
"to",
"this",
"field",
"frame"
]
| [
"fields",
"add",
"(",
"field",
")",
";"
]
|
[
"sets",
"is",
"class",
"or",
"enum"
]
| [
"class",
"or",
"enum",
"or",
"enum",
"const",
"def",
"=",
"value",
";"
]
|
[
"getter",
"for",
"class",
"or",
"enum",
"or",
"enum",
"const",
"def"
]
| [
"return",
"class",
"or",
"enum",
"or",
"enum",
"const",
"def",
";"
]
|
[
"add",
"method",
"call",
"to",
"this",
"frame"
]
| [
"method",
"calls",
"add",
"(",
"method",
"call",
")",
";"
]
|
[
"determines",
"whether",
"this",
"field",
"frame",
"contains",
"the",
"field"
]
| [
"detail",
"a",
"s",
"t",
"result",
"field",
"=",
"null",
";",
"for",
"(",
"detail",
"a",
"s",
"t",
"field",
":",
"fields",
")",
"{",
"if",
"(",
"get",
"field",
"name",
"(",
"field",
")",
"equals",
"(",
"name",
")",
")",
"{",
"result",
"field",
"=",
"field",
";",
"break",
";",
"}",
"}",
"return",
"result",
"field",
";"
]
|
[
"getter",
"for",
"frame",
"s",
"method",
"calls"
]
| [
"return",
"collections",
"unmodifiable",
"set",
"(",
"method",
"calls",
")",
";"
]
|
[
"get",
"the",
"name",
"of",
"the",
"field"
]
| [
"return",
"field",
"find",
"first",
"token",
"(",
"token",
"types",
"ident",
")",
"get",
"text",
"(",
")",
";"
]
|
[
"<",
"p",
">",
"a",
"list",
"of",
"<",
"code",
">",
"stack",
"events",
"<",
"/",
"code",
">",
"structures",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"stack",
"events",
"=",
"=",
"null",
")",
"{",
"stack",
"events",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"stack",
"event",
">",
"(",
")",
";",
"}",
"return",
"stack",
"events",
";"
]
|
[
"<",
"p",
">",
"a",
"list",
"of",
"<",
"code",
">",
"stack",
"events",
"<",
"/",
"code",
">",
"structures",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"stack",
"events",
"=",
"=",
"null",
")",
"{",
"this",
"stack",
"events",
"=",
"null",
";",
"return",
";",
"}",
"this",
"stack",
"events",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"stack",
"event",
">",
"(",
"stack",
"events",
")",
";"
]
|
[
"<",
"p",
">",
"a",
"list",
"of",
"<",
"code",
">",
"stack",
"events",
"<",
"/",
"code",
">",
"structures",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"stack",
"events",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"stack",
"events",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"this",
"stack",
"events",
"=",
"=",
"null",
")",
"{",
"set",
"stack",
"events",
"(",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"stack",
"event",
">",
"(",
"stack",
"events",
"length",
")",
")",
";",
"}",
"for",
"(",
"stack",
"event",
"ele",
":",
"stack",
"events",
")",
"{",
"this",
"stack",
"events",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"a",
"list",
"of",
"<",
"code",
">",
"stack",
"events",
"<",
"/",
"code",
">",
"structures",
"<",
"/",
"p",
">"
]
| [
"set",
"stack",
"events",
"(",
"stack",
"events",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"if",
"the",
"output",
"exceeds",
"1",
"mb",
"in",
"size",
"a",
"string",
"that",
"identifies",
"the",
"next",
"page",
"of",
"events",
"if",
"no",
"additional",
"page",
"exists",
"this",
"value",
"is",
"null",
"<",
"/",
"p",
">"
]
| [
"set",
"next",
"token",
"(",
"next",
"token",
")",
";",
"return",
"this",
";"
]
|
[
"todo",
"change",
"current",
"config",
"and",
"restart",
"the",
"automatic",
"backup",
"plugin"
]
| []
|
[
"returns",
"the",
"rain",
"in",
"millimeters"
]
| [
"return",
"rain",
";"
]
|
[
"sets",
"the",
"rain",
"in",
"millimeters"
]
| [
"this",
"rain",
"=",
"rain",
";"
]
|
[
"returns",
"the",
"snow",
"in",
"centimeter"
]
| [
"return",
"snow",
";"
]
|
[
"sets",
"the",
"snow",
"in",
"centimeter"
]
| [
"this",
"snow",
"=",
"snow",
";"
]
|
[
"returns",
"the",
"probability",
"in",
"percent"
]
| [
"return",
"probability",
";"
]
|
[
"sets",
"the",
"probability",
"in",
"percent"
]
| [
"this",
"probability",
"=",
"probability",
";"
]
|
[
"returns",
"the",
"total",
"amount",
"of",
"todays",
"precipitation"
]
| [
"return",
"total",
";"
]
|
[
"<",
"p",
">",
"the",
"completion",
"status",
"of",
"this",
"check",
"one",
"of",
"in",
"progress",
"waiting",
"for",
"data",
"collection",
"canceled",
"completed",
"compliant",
"completed",
"non",
"compliant",
"or",
"failed",
"<",
"/",
"p",
">"
]
| [
"this",
"check",
"run",
"status",
"=",
"check",
"run",
"status",
";"
]
|
[
"<",
"p",
">",
"the",
"completion",
"status",
"of",
"this",
"check",
"one",
"of",
"in",
"progress",
"waiting",
"for",
"data",
"collection",
"canceled",
"completed",
"compliant",
"completed",
"non",
"compliant",
"or",
"failed",
"<",
"/",
"p",
">"
]
| [
"return",
"this",
"check",
"run",
"status",
";"
]
|
[
"<",
"p",
">",
"the",
"completion",
"status",
"of",
"this",
"check",
"one",
"of",
"in",
"progress",
"waiting",
"for",
"data",
"collection",
"canceled",
"completed",
"compliant",
"completed",
"non",
"compliant",
"or",
"failed",
"<",
"/",
"p",
">"
]
| [
"set",
"check",
"run",
"status",
"(",
"check",
"run",
"status",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"completion",
"status",
"of",
"this",
"check",
"one",
"of",
"in",
"progress",
"waiting",
"for",
"data",
"collection",
"canceled",
"completed",
"compliant",
"completed",
"non",
"compliant",
"or",
"failed",
"<",
"/",
"p",
">"
]
| [
"this",
"check",
"run",
"status",
"=",
"check",
"run",
"status",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"true",
"if",
"the",
"check",
"completed",
"and",
"found",
"all",
"resources",
"compliant",
"<",
"/",
"p",
">"
]
| [
"this",
"check",
"compliant",
"=",
"check",
"compliant",
";"
]
|
[
"<",
"p",
">",
"true",
"if",
"the",
"check",
"completed",
"and",
"found",
"all",
"resources",
"compliant",
"<",
"/",
"p",
">"
]
| [
"return",
"this",
"check",
"compliant",
";"
]
|
[
"<",
"p",
">",
"true",
"if",
"the",
"check",
"completed",
"and",
"found",
"all",
"resources",
"compliant",
"<",
"/",
"p",
">"
]
| [
"set",
"check",
"compliant",
"(",
"check",
"compliant",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"true",
"if",
"the",
"check",
"completed",
"and",
"found",
"all",
"resources",
"compliant",
"<",
"/",
"p",
">"
]
| [
"return",
"this",
"check",
"compliant",
";"
]
|
[
"<",
"p",
">",
"the",
"number",
"of",
"resources",
"on",
"which",
"the",
"check",
"was",
"performed",
"<",
"/",
"p",
">"
]
| [
"this",
"total",
"resources",
"count",
"=",
"total",
"resources",
"count",
";"
]
|
[
"<",
"p",
">",
"the",
"number",
"of",
"resources",
"on",
"which",
"the",
"check",
"was",
"performed",
"<",
"/",
"p",
">"
]
| [
"return",
"this",
"total",
"resources",
"count",
";"
]
|
[
"<",
"p",
">",
"the",
"number",
"of",
"resources",
"on",
"which",
"the",
"check",
"was",
"performed",
"<",
"/",
"p",
">"
]
| [
"set",
"total",
"resources",
"count",
"(",
"total",
"resources",
"count",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"number",
"of",
"resources",
"that",
"the",
"check",
"found",
"non",
"-",
"compliant",
"<",
"/",
"p",
">"
]
| [
"this",
"non",
"compliant",
"resources",
"count",
"=",
"non",
"compliant",
"resources",
"count",
";"
]
|
[
"<",
"p",
">",
"the",
"number",
"of",
"resources",
"that",
"the",
"check",
"found",
"non",
"-",
"compliant",
"<",
"/",
"p",
">"
]
| [
"return",
"this",
"non",
"compliant",
"resources",
"count",
";"
]
|
[
"<",
"p",
">",
"the",
"number",
"of",
"resources",
"that",
"the",
"check",
"found",
"non",
"-",
"compliant",
"<",
"/",
"p",
">"
]
| [
"set",
"non",
"compliant",
"resources",
"count",
"(",
"non",
"compliant",
"resources",
"count",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"code",
"of",
"any",
"error",
"encountered",
"when",
"performing",
"this",
"check",
"during",
"this",
"audit",
"one",
"of",
"insufficient",
"permissions",
"or",
"audit",
"check",
"disabled",
"<",
"/",
"p",
">"
]
| [
"set",
"error",
"code",
"(",
"error",
"code",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"message",
"associated",
"with",
"any",
"error",
"encountered",
"when",
"performing",
"this",
"check",
"during",
"this",
"audit",
"<",
"/",
"p",
">"
]
| [
"set",
"message",
"(",
"message",
")",
";",
"return",
"this",
";"
]
|
[
"set",
"the",
"h",
"base",
"row",
"data",
"(",
"a",
"result",
"writable",
")",
"for",
"this",
"lazy",
"struct"
]
| [
"this",
"result",
"=",
"r",
";",
"set",
"parsed",
"(",
"false",
")",
";"
]
|
[
"get",
"one",
"field",
"out",
"of",
"the",
"h",
"base",
"row"
]
| [
"init",
"fields",
"(",
")",
";",
"return",
"unchecked",
"get",
"field",
"(",
"field",
"i",
"d",
")",
";"
]
|
[
"get",
"the",
"values",
"of",
"the",
"fields",
"as",
"an",
"array",
"list"
]
| [
"init",
"fields",
"(",
")",
";",
"if",
"(",
"cached",
"list",
"=",
"=",
"null",
")",
"{",
"cached",
"list",
"=",
"new",
"array",
"list",
"<",
"object",
">",
"(",
")",
";",
"}",
"else",
"{",
"cached",
"list",
"clear",
"(",
")",
";",
"}",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"get",
"fields",
"(",
")",
"length",
";",
"i",
"+",
"+",
")",
"{",
"cached",
"list",
"add",
"(",
"unchecked",
"get",
"field",
"(",
"i",
")",
")",
";",
"}",
"return",
"cached",
"list",
";"
]
|
[
"returns",
"the",
"human",
"readable",
"protocol",
"display",
"name"
]
| [
"return",
"get",
"name",
"(",
")",
";"
]
|
[
"returns",
"the",
"members",
"of",
"the",
"group",
"or",
"{",
"@",
"code",
"null",
"}",
"if",
"the",
"members",
"were",
"not",
"retrieved",
"the",
"results",
"of",
"this",
"method",
"are",
"not",
"live",
"they",
"represent",
"the",
"membership",
"at",
"the",
"time",
"the",
"{",
"@",
"link",
"group",
"details",
"}",
"was",
"instantiated",
"as",
"fetching",
"the",
"membership",
"of",
"a",
"group",
"can",
"be",
"an",
"expensive",
"operation",
"it",
"is",
"preferential",
"to",
"use",
"the",
"{",
"@",
"link",
"security",
"realm",
"#",
"load",
"group",
"by",
"groupname",
"(",
"string",
"boolean",
")",
"}",
"method",
"to",
"retrieve",
"{",
"@",
"link",
"group",
"details",
"}",
"in",
"those",
"cases",
"where",
"you",
"want",
"to",
"try",
"and",
"retrieve",
"the",
"members",
"of",
"the",
"group",
"though",
"even",
"that",
"method",
"does",
"not",
"guarantee",
"to",
"retrieve",
"the",
"members",
"of",
"a",
"group",
"as",
"the",
"backing",
"{",
"@",
"link",
"security",
"realm",
"}",
"implementation",
"may",
"not",
"support",
"such",
"a",
"query"
]
| [
"return",
"null",
";"
]
|
[
"returns",
"true",
"if",
"the",
"given",
"process",
"name",
"is",
"a",
"long",
"running",
"process",
"or",
"service"
]
| [
"return",
"services",
"contains",
"(",
"process",
"name",
")",
";"
]
|
[
"{"
]
| [
"m",
"color",
"filter",
"=",
"color",
"filter",
";",
"invalidate",
"self",
"(",
")",
";"
]
|
[
"{"
]
| [
"m",
"tint",
"list",
"=",
"tint",
";",
"if",
"(",
"update",
"tint",
"filter",
"(",
")",
")",
"{",
"invalidate",
"self",
"(",
")",
";",
"}"
]
|
[
"{"
]
| [
"m",
"tint",
"mode",
"=",
"tint",
"mode",
";",
"if",
"(",
"update",
"tint",
"filter",
"(",
")",
")",
"{",
"invalidate",
"self",
"(",
")",
";",
"}"
]
|
[
"{"
]
| [
"rect",
"bounds",
"=",
"get",
"bounds",
"(",
")",
";",
"if",
"(",
"bounds",
"width",
"(",
")",
"=",
"=",
"0",
"|",
"|",
"bounds",
"height",
"(",
")",
"=",
"=",
"0",
")",
"{",
"return",
";",
"}",
"int",
"save",
"count",
"=",
"canvas",
"save",
"(",
")",
";",
"canvas",
"translate",
"(",
"bounds",
"left",
",",
"bounds",
"top",
")",
";",
"on",
"draw",
"(",
"canvas",
",",
"bounds",
"width",
"(",
")",
",",
"bounds",
"height",
"(",
")",
")",
";",
"canvas",
"restore",
"to",
"count",
"(",
"save",
"count",
")",
";"
]
|
[
"order",
"to",
"make",
"layer",
"drawable",
"happy",
"we",
"return",
"ourselves",
"from",
"dummy",
"constant",
"state",
"new",
"drawable",
"(",
")"
]
| [
"return",
"m",
"constant",
"state",
";"
]
|
[
"returns",
"a",
"<",
"code",
">",
"set",
"action",
"<",
"/",
"code",
">",
"object",
"used",
"for",
"building",
"update",
"expression",
"if",
"the",
"attribute",
"referred",
"to",
"by",
"this",
"path",
"operand",
"doesn",
"t",
"exist",
"the",
"returned",
"object",
"represents",
"adding",
"the",
"specified",
"value",
"as",
"an",
"attribute",
"to",
"an",
"item",
"if",
"the",
"attribute",
"referred",
"to",
"by",
"this",
"path",
"operand",
"already",
"exists",
"the",
"returned",
"object",
"represents",
"the",
"value",
"replacement",
"of",
"the",
"current",
"attribute",
"by",
"the",
"specified",
"value"
]
| [
"return",
"new",
"set",
"action",
"(",
"this",
",",
"new",
"literal",
"operand",
"(",
"new",
"linked",
"hash",
"set",
"<",
"string",
">",
"(",
"arrays",
"as",
"list",
"(",
"values",
")",
")",
")",
")",
";"
]
|
[
"returns",
"a",
"<",
"code",
">",
"set",
"action",
"<",
"/",
"code",
">",
"object",
"used",
"for",
"building",
"update",
"expression",
"if",
"the",
"attribute",
"referred",
"to",
"by",
"this",
"path",
"operand",
"doesn",
"t",
"exist",
"the",
"returned",
"object",
"represents",
"adding",
"the",
"attribute",
"value",
"of",
"the",
"specified",
"source",
"path",
"operand",
"to",
"an",
"item",
"if",
"the",
"current",
"attribute",
"already",
"exists",
"the",
"returned",
"object",
"represents",
"the",
"value",
"replacement",
"of",
"the",
"current",
"attribute",
"by",
"the",
"attribute",
"value",
"of",
"the",
"specified",
"source",
"path",
"operand"
]
| [
"return",
"new",
"set",
"action",
"(",
"this",
",",
"source",
")",
";"
]
|
[
"returns",
"an",
"<",
"code",
">",
"add",
"action",
"<",
"/",
"code",
">",
"for",
"building",
"expression",
"that",
"would",
"append",
"the",
"specified",
"values",
"to",
"this",
"string",
"set",
";",
"or",
"if",
"the",
"attribute",
"does",
"not",
"already",
"exist",
"add",
"the",
"new",
"attribute",
"and",
"the",
"value",
"(",
"s",
")",
"to",
"the",
"item",
"<",
"p",
">",
"in",
"general",
"dynamo",
"d",
"b",
"recommends",
"using",
"set",
"rather",
"than",
"add"
]
| [
"return",
"new",
"add",
"action",
"(",
"this",
",",
"new",
"literal",
"operand",
"(",
"new",
"linked",
"hash",
"set",
"<",
"string",
">",
"(",
"arrays",
"as",
"list",
"(",
"values",
")",
")",
")",
")",
";"
]
|
[
"returns",
"an",
"<",
"code",
">",
"add",
"action",
"<",
"/",
"code",
">",
"for",
"building",
"expression",
"that",
"would",
"append",
"the",
"specified",
"values",
"to",
"this",
"string",
"set",
";",
"or",
"if",
"the",
"attribute",
"does",
"not",
"already",
"exist",
"add",
"the",
"new",
"attribute",
"and",
"the",
"value",
"(",
"s",
")",
"to",
"the",
"item",
"<",
"p",
">",
"in",
"general",
"dynamo",
"d",
"b",
"recommends",
"using",
"set",
"rather",
"than",
"add"
]
| [
"return",
"new",
"add",
"action",
"(",
"this",
",",
"new",
"literal",
"operand",
"(",
"values",
")",
")",
";"
]
|
[
"returns",
"a",
"<",
"code",
">",
"delete",
"action",
"<",
"/",
"code",
">",
"for",
"deleting",
"the",
"specified",
"values",
"from",
"this",
"string",
"set"
]
| [
"return",
"new",
"delete",
"action",
"(",
"this",
",",
"new",
"literal",
"operand",
"(",
"new",
"linked",
"hash",
"set",
"<",
"string",
">",
"(",
"arrays",
"as",
"list",
"(",
"values",
")",
")",
")",
")",
";"
]
|
[
"returns",
"a",
"<",
"code",
">",
"delete",
"action",
"<",
"/",
"code",
">",
"for",
"deleting",
"the",
"specified",
"values",
"from",
"this",
"string",
"set"
]
| [
"return",
"new",
"delete",
"action",
"(",
"this",
",",
"new",
"literal",
"operand",
"(",
"values",
")",
")",
";"
]
|
[
"returns",
"an",
"<",
"code",
">",
"if",
"not",
"exists",
"function",
"<",
"/",
"code",
">",
"object",
"which",
"represents",
"an",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"amazondynamodb",
"/",
"latest",
"/",
"developerguide",
"/",
"expressions",
"modifying",
"html",
">",
"if",
"not",
"exists",
"(",
"path",
"operand",
")",
"<",
"/",
"a",
">",
"function",
"call",
"where",
"path",
"refers",
"to",
"that",
"of",
"the",
"current",
"path",
"operand",
";",
"used",
"for",
"building",
"expressions"
]
| [
"return",
"new",
"if",
"not",
"exists",
"function",
"<",
"ss",
">",
"(",
"this",
",",
"new",
"literal",
"operand",
"(",
"new",
"linked",
"hash",
"set",
"<",
"string",
">",
"(",
"arrays",
"as",
"list",
"(",
"default",
"value",
")",
")",
")",
")",
";"
]
|
[
"returns",
"an",
"<",
"code",
">",
"if",
"not",
"exists",
"function",
"<",
"/",
"code",
">",
"object",
"which",
"represents",
"an",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"amazondynamodb",
"/",
"latest",
"/",
"developerguide",
"/",
"expressions",
"modifying",
"html",
">",
"if",
"not",
"exists",
"(",
"path",
"operand",
")",
"<",
"/",
"a",
">",
"function",
"call",
"where",
"path",
"refers",
"to",
"that",
"of",
"the",
"current",
"path",
"operand",
";",
"used",
"for",
"building",
"expressions"
]
| [
"return",
"new",
"if",
"not",
"exists",
"function",
"<",
"ss",
">",
"(",
"this",
",",
"default",
"value",
")",
";"
]
|
[
"returns",
"a",
"<",
"code",
">",
"set",
"action",
"<",
"/",
"code",
">",
"object",
"used",
"for",
"building",
"update",
"expression",
"if",
"the",
"attribute",
"referred",
"to",
"by",
"this",
"path",
"operand",
"doesn",
"t",
"exist",
"the",
"returned",
"object",
"represents",
"adding",
"the",
"specified",
"value",
"as",
"an",
"attribute",
"to",
"an",
"item",
"if",
"the",
"attribute",
"referred",
"to",
"by",
"this",
"path",
"operand",
"already",
"exists",
"the",
"returned",
"object",
"represents",
"the",
"value",
"replacement",
"of",
"the",
"current",
"attribute",
"by",
"the",
"specified",
"value"
]
| [
"return",
"new",
"set",
"action",
"(",
"this",
",",
"new",
"literal",
"operand",
"(",
"value",
")",
")",
";"
]
|
[
"returns",
"a",
"<",
"code",
">",
"set",
"action",
"<",
"/",
"code",
">",
"object",
"used",
"for",
"building",
"update",
"expression",
"if",
"the",
"attribute",
"referred",
"to",
"by",
"this",
"path",
"operand",
"doesn",
"t",
"exist",
"the",
"returned",
"object",
"represents",
"adding",
"the",
"value",
"of",
"evaluating",
"the",
"specified",
"<",
"code",
">",
"if",
"not",
"exists",
"<",
"/",
"code",
">",
"function",
"as",
"an",
"attribute",
"to",
"an",
"item",
"if",
"the",
"attribute",
"referred",
"to",
"by",
"this",
"path",
"operand",
"already",
"exists",
"the",
"returned",
"object",
"represents",
"the",
"value",
"replacement",
"of",
"the",
"current",
"attribute",
"by",
"the",
"value",
"of",
"evaluating",
"the",
"specified",
"<",
"code",
">",
"if",
"not",
"exists",
"<",
"/",
"code",
">",
"function"
]
| [
"return",
"new",
"set",
"action",
"(",
"this",
",",
"if",
"not",
"exists",
"function",
")",
";"
]
|
[
"returns",
"an",
"<",
"code",
">",
"if",
"not",
"exists",
"<",
"/",
"code",
">",
"object",
"which",
"represents",
"an",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"amazondynamodb",
"/",
"latest",
"/",
"developerguide",
"/",
"expressions",
"modifying",
"html",
">",
"if",
"not",
"exists",
"(",
"path",
"operand",
")",
"<",
"/",
"a",
">",
"function",
"call",
"where",
"path",
"refers",
"to",
"that",
"of",
"the",
"current",
"path",
"operand",
";",
"used",
"for",
"building",
"expressions"
]
| [
"return",
"new",
"if",
"not",
"exists",
"function",
"<",
"ss",
">",
"(",
"this",
",",
"new",
"literal",
"operand",
"(",
"default",
"value",
")",
")",
";"
]
|
[
"find",
"a",
"position",
"that",
"can",
"be",
"selected",
"(",
"i",
"e",
"is",
"not",
"a",
"separator",
")"
]
| [
"final",
"list",
"adapter",
"adapter",
"=",
"get",
"adapter",
"(",
")",
";",
"if",
"(",
"adapter",
"=",
"=",
"null",
"|",
"|",
"is",
"in",
"touch",
"mode",
"(",
")",
")",
"{",
"return",
"invalid",
"position",
";",
"}",
"final",
"int",
"count",
"=",
"adapter",
"get",
"count",
"(",
")",
";",
"if",
"(",
"!",
"get",
"adapter",
"(",
")",
"are",
"all",
"items",
"enabled",
"(",
")",
")",
"{",
"if",
"(",
"look",
"down",
")",
"{",
"position",
"=",
"math",
"max",
"(",
"0",
",",
"position",
")",
";",
"while",
"(",
"position",
"<",
"count",
"&",
"&",
"!",
"adapter",
"is",
"enabled",
"(",
"position",
")",
")",
"{",
"position",
"+",
"+",
";",
"}",
"}",
"else",
"{",
"position",
"=",
"math",
"min",
"(",
"position",
",",
"count",
"-",
"1",
")",
";",
"while",
"(",
"position",
">",
"=",
"0",
"&",
"&",
"!",
"adapter",
"is",
"enabled",
"(",
"position",
")",
")",
"{",
"position",
"-",
"-",
";",
"}",
"}",
"if",
"(",
"position",
"<",
"0",
"|",
"|",
"position",
">",
"=",
"count",
")",
"{",
"return",
"invalid",
"position",
";",
"}",
"return",
"position",
";",
"}",
"else",
"{",
"if",
"(",
"position",
"<",
"0",
"|",
"|",
"position",
">",
"=",
"count",
")",
"{",
"return",
"invalid",
"position",
";",
"}",
"return",
"position",
";",
"}"
]
|
[
"indicates",
"whether",
"threaded",
"rendering",
"is",
"currently",
"enabled"
]
| [
"m",
"enabled",
"=",
"enabled",
";"
]
|
[
"returns",
"the",
"value",
"of",
"the",
"{"
]
| [
"return",
"nlen",
"(",
"address",
"(",
")",
")",
";"
]
|
[
"returns",
"a",
"new",
"{"
]
| [
"return",
"wrap",
"(",
"nk",
"str",
"class",
",",
"nmem",
"alloc",
"checked",
"(",
"sizeof",
")",
")",
";"
]
|
[
"returns",
"a",
"new",
"{"
]
| [
"return",
"wrap",
"(",
"nk",
"str",
"class",
",",
"nmem",
"calloc",
"checked",
"(",
"1",
",",
"sizeof",
")",
")",
";"
]
|
[
"returns",
"a",
"new",
"{"
]
| [
"byte",
"buffer",
"container",
"=",
"buffer",
"utils",
"create",
"byte",
"buffer",
"(",
"sizeof",
")",
";",
"return",
"wrap",
"(",
"nk",
"str",
"class",
",",
"mem",
"address",
"(",
"container",
")",
",",
"container",
")",
";"
]
|
[
"returns",
"a",
"new",
"{"
]
| [
"return",
"wrap",
"(",
"nk",
"str",
"class",
",",
"address",
")",
";"
]
|
[
"like",
"{"
]
| [
"return",
"address",
"=",
"=",
"null",
"?",
"null",
":",
"wrap",
"(",
"nk",
"str",
"class",
",",
"address",
")",
";"
]
|
[
"returns",
"a",
"new",
"{",
"@",
"link",
"nk",
"str",
"buffer",
"}",
"instance",
"allocated",
"with",
"{",
"@",
"link",
"memory",
"util",
"#",
"mem",
"alloc",
"mem",
"alloc",
"}",
"the",
"instance",
"must",
"be",
"explicitly",
"freed"
]
| [
"return",
"wrap",
"(",
"buffer",
"class",
",",
"nmem",
"alloc",
"checked",
"(",
"check",
"malloc",
"(",
"capacity",
",",
"sizeof",
")",
")",
",",
"capacity",
")",
";"
]
|
[
"returns",
"a",
"new",
"{",
"@",
"link",
"nk",
"str",
"buffer",
"}",
"instance",
"allocated",
"with",
"{",
"@",
"link",
"memory",
"util",
"#",
"mem",
"calloc",
"mem",
"calloc",
"}",
"the",
"instance",
"must",
"be",
"explicitly",
"freed"
]
| [
"return",
"wrap",
"(",
"buffer",
"class",
",",
"nmem",
"calloc",
"checked",
"(",
"capacity",
",",
"sizeof",
")",
",",
"capacity",
")",
";"
]
|
[
"returns",
"a",
"new",
"{",
"@",
"link",
"nk",
"str",
"buffer",
"}",
"instance",
"allocated",
"with",
"{",
"@",
"link",
"buffer",
"utils",
"}"
]
| [
"byte",
"buffer",
"container",
"=",
"create",
"(",
"capacity",
",",
"sizeof",
")",
";",
"return",
"wrap",
"(",
"buffer",
"class",
",",
"mem",
"address",
"(",
"container",
")",
",",
"capacity",
",",
"container",
")",
";"
]
|
[
"create",
"a",
"{",
"@",
"link",
"nk",
"str",
"buffer",
"}",
"instance",
"at",
"the",
"specified",
"memory"
]
| [
"return",
"wrap",
"(",
"buffer",
"class",
",",
"address",
",",
"capacity",
")",
";"
]
|
[
"like",
"{"
]
| [
"return",
"address",
"=",
"=",
"null",
"?",
"null",
":",
"wrap",
"(",
"buffer",
"class",
",",
"address",
",",
"capacity",
")",
";"
]
|
[
"returns",
"a",
"new",
"{"
]
| [
"return",
"malloc",
"stack",
"(",
"stack",
"get",
"(",
")",
")",
";"
]
|
[
"returns",
"a",
"new",
"{"
]
| [
"return",
"calloc",
"stack",
"(",
"stack",
"get",
"(",
")",
")",
";"
]
|
[
"returns",
"a",
"new",
"{",
"@",
"link",
"nk",
"str",
"}",
"instance",
"allocated",
"on",
"the",
"specified",
"{",
"@",
"link",
"memory",
"stack",
"}"
]
| [
"return",
"wrap",
"(",
"nk",
"str",
"class",
",",
"stack",
"nmalloc",
"(",
"alignof",
",",
"sizeof",
")",
")",
";"
]
|
[
"returns",
"a",
"new",
"{",
"@",
"link",
"nk",
"str",
"}",
"instance",
"allocated",
"on",
"the",
"specified",
"{",
"@",
"link",
"memory",
"stack",
"}",
"and",
"initializes",
"all",
"its",
"bits",
"to",
"zero"
]
| [
"return",
"wrap",
"(",
"nk",
"str",
"class",
",",
"stack",
"ncalloc",
"(",
"alignof",
",",
"1",
",",
"sizeof",
")",
")",
";"
]
|
[
"returns",
"a",
"new",
"{",
"@",
"link",
"nk",
"str",
"buffer",
"}",
"instance",
"allocated",
"on",
"the",
"thread",
"-",
"local",
"{",
"@",
"link",
"memory",
"stack",
"}"
]
| [
"return",
"malloc",
"stack",
"(",
"capacity",
",",
"stack",
"get",
"(",
")",
")",
";"
]
|
[
"returns",
"a",
"new",
"{",
"@",
"link",
"nk",
"str",
"buffer",
"}",
"instance",
"allocated",
"on",
"the",
"thread",
"-",
"local",
"{",
"@",
"link",
"memory",
"stack",
"}",
"and",
"initializes",
"all",
"its",
"bits",
"to",
"zero"
]
| [
"return",
"calloc",
"stack",
"(",
"capacity",
",",
"stack",
"get",
"(",
")",
")",
";"
]
|
[
"returns",
"a",
"new",
"{",
"@",
"link",
"nk",
"str",
"buffer",
"}",
"instance",
"allocated",
"on",
"the",
"specified",
"{",
"@",
"link",
"memory",
"stack",
"}"
]
| [
"return",
"wrap",
"(",
"buffer",
"class",
",",
"stack",
"nmalloc",
"(",
"alignof",
",",
"capacity",
"*",
"sizeof",
")",
",",
"capacity",
")",
";"
]
|
[
"returns",
"a",
"new",
"{",
"@",
"link",
"nk",
"str",
"buffer",
"}",
"instance",
"allocated",
"on",
"the",
"specified",
"{",
"@",
"link",
"memory",
"stack",
"}",
"and",
"initializes",
"all",
"its",
"bits",
"to",
"zero"
]
| [
"return",
"wrap",
"(",
"buffer",
"class",
",",
"stack",
"ncalloc",
"(",
"alignof",
",",
"capacity",
",",
"sizeof",
")",
",",
"capacity",
")",
";"
]
|
[
"unsafe",
"version",
"of",
"{"
]
| [
"return",
"nk",
"buffer",
"create",
"(",
"struct",
"+",
"nk",
"str",
"buffer",
")",
";"
]
|
[
"unsafe",
"version",
"of",
"{"
]
| [
"return",
"unsafe",
"get",
"int",
"(",
"null",
",",
"struct",
"+",
"nk",
"str",
"len",
")",
";"
]
|
[
"returns",
"the",
"value",
"of",
"the",
"{"
]
| [
"return",
"nk",
"str",
"nlen",
"(",
"address",
"(",
")",
")",
";"
]
|
[
"-",
"-",
"-",
"-",
"general",
"helpers",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-"
]
| [
"f",
"return",
"kind",
"=",
"right",
"f",
"return",
"kind",
";",
"f",
"branches",
"=",
"right",
"f",
"branches",
";"
]
|
[
"-",
"-",
"-",
"-",
"return",
"kind",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-"
]
| [
"f",
"return",
"kind",
"=",
"no",
"return",
";"
]
|
[
"-",
"-",
"-",
"-",
"branches",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-"
]
| [
"return",
"f",
"branches",
"!",
"=",
"null",
"&",
"&",
"!",
"f",
"branches",
"is",
"empty",
"(",
")",
";"
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.