docstring_tokens
list | code_tokens
list |
---|---|
[
"<",
"p",
">",
"this",
"is",
"a",
"legacy",
"parameter",
"use",
"<",
"code",
">",
"filter",
"expression",
"<",
"/",
"code",
">",
"instead",
"for",
"more",
"information",
"see",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"amazondynamodb",
"/",
"latest",
"/",
"developerguide",
"/",
"legacy",
"conditional",
"parameters",
"conditional",
"operator",
"html",
">",
"conditional",
"operator",
"<",
"/",
"a",
">",
"in",
"the",
"<",
"i",
">",
"amazon",
"dynamo",
"d",
"b",
"developer",
"guide",
"<",
"/",
"i",
">",
"<",
"/",
"p",
">"
]
| [
"set",
"conditional",
"operator",
"(",
"conditional",
"operator",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"this",
"is",
"a",
"legacy",
"parameter",
"use",
"<",
"code",
">",
"filter",
"expression",
"<",
"/",
"code",
">",
"instead",
"for",
"more",
"information",
"see",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"amazondynamodb",
"/",
"latest",
"/",
"developerguide",
"/",
"legacy",
"conditional",
"parameters",
"conditional",
"operator",
"html",
">",
"conditional",
"operator",
"<",
"/",
"a",
">",
"in",
"the",
"<",
"i",
">",
"amazon",
"dynamo",
"d",
"b",
"developer",
"guide",
"<",
"/",
"i",
">",
"<",
"/",
"p",
">"
]
| [
"this",
"conditional",
"operator",
"=",
"conditional",
"operator",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"primary",
"key",
"of",
"the",
"first",
"item",
"that",
"this",
"operation",
"will",
"evaluate",
"use",
"the",
"value",
"that",
"was",
"returned",
"for",
"<",
"code",
">",
"last",
"evaluated",
"key",
"<",
"/",
"code",
">",
"in",
"the",
"previous",
"operation",
"<",
"/",
"p",
">",
"<",
"p",
">",
"the",
"data",
"type",
"for",
"<",
"code",
">",
"exclusive",
"start",
"key",
"<",
"/",
"code",
">",
"must",
"be",
"string",
"number",
"or",
"binary",
"no",
"set",
"data",
"types",
"are",
"allowed",
"<",
"/",
"p",
">"
]
| [
"return",
"exclusive",
"start",
"key",
";"
]
|
[
"<",
"p",
">",
"the",
"primary",
"key",
"of",
"the",
"first",
"item",
"that",
"this",
"operation",
"will",
"evaluate",
"use",
"the",
"value",
"that",
"was",
"returned",
"for",
"<",
"code",
">",
"last",
"evaluated",
"key",
"<",
"/",
"code",
">",
"in",
"the",
"previous",
"operation",
"<",
"/",
"p",
">",
"<",
"p",
">",
"the",
"data",
"type",
"for",
"<",
"code",
">",
"exclusive",
"start",
"key",
"<",
"/",
"code",
">",
"must",
"be",
"string",
"number",
"or",
"binary",
"no",
"set",
"data",
"types",
"are",
"allowed",
"<",
"/",
"p",
">"
]
| [
"this",
"exclusive",
"start",
"key",
"=",
"exclusive",
"start",
"key",
";"
]
|
[
"<",
"p",
">",
"the",
"primary",
"key",
"of",
"the",
"first",
"item",
"that",
"this",
"operation",
"will",
"evaluate",
"use",
"the",
"value",
"that",
"was",
"returned",
"for",
"<",
"code",
">",
"last",
"evaluated",
"key",
"<",
"/",
"code",
">",
"in",
"the",
"previous",
"operation",
"<",
"/",
"p",
">",
"<",
"p",
">",
"the",
"data",
"type",
"for",
"<",
"code",
">",
"exclusive",
"start",
"key",
"<",
"/",
"code",
">",
"must",
"be",
"string",
"number",
"or",
"binary",
"no",
"set",
"data",
"types",
"are",
"allowed",
"<",
"/",
"p",
">",
"<",
"p",
">",
"in",
"a",
"parallel",
"scan",
"a",
"<",
"code",
">",
"scan",
"<",
"/",
"code",
">",
"request",
"that",
"includes",
"<",
"code",
">",
"exclusive",
"start",
"key",
"<",
"/",
"code",
">",
"must",
"specify",
"the",
"same",
"segment",
"whose",
"previous",
"<",
"code",
">",
"scan",
"<",
"/",
"code",
">",
"returned",
"the",
"corresponding",
"value",
"of",
"<",
"code",
">",
"last",
"evaluated",
"key",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">"
]
| [
"set",
"exclusive",
"start",
"key",
"(",
"exclusive",
"start",
"key",
")",
";",
"return",
"this",
";"
]
|
[
"removes",
"all",
"the",
"entries",
"added",
"into",
"exclusive",
"start",
"key"
]
| [
"this",
"exclusive",
"start",
"key",
"=",
"null",
";",
"return",
"this",
";"
]
|
[
"sets",
"the",
"total",
"number",
"of",
"segments",
"into",
"which",
"the",
"scan",
"will",
"be",
"divided"
]
| [
"this",
"total",
"segments",
"=",
"total",
"segments",
";"
]
|
[
"<",
"p",
">",
"the",
"total",
"numer",
"of",
"segments",
"<",
"/",
"p",
">"
]
| [
"return",
"this",
"total",
"segments",
";"
]
|
[
"<",
"p",
">",
"for",
"a",
"parallel",
"<",
"code",
">",
"scan",
"<",
"/",
"code",
">",
"request",
"<",
"code",
">",
"total",
"segments",
"<",
"/",
"code",
">",
"represents",
"the",
"total",
"number",
"of",
"segments",
"into",
"which",
"the",
"<",
"code",
">",
"scan",
"<",
"/",
"code",
">",
"operation",
"will",
"be",
"divided",
"the",
"value",
"of",
"<",
"code",
">",
"total",
"segments",
"<",
"/",
"code",
">",
"corresponds",
"to",
"the",
"number",
"of",
"application",
"workers",
"that",
"will",
"perform",
"the",
"parallel",
"scan",
"for",
"example",
"if",
"you",
"want",
"to",
"use",
"four",
"application",
"threads",
"to",
"scan",
"a",
"table",
"or",
"an",
"index",
"specify",
"a",
"<",
"code",
">",
"total",
"segments",
"<",
"/",
"code",
">",
"value",
"of",
"4",
"<",
"/",
"p",
">",
"<",
"p",
">",
"the",
"value",
"for",
"<",
"code",
">",
"total",
"segments",
"<",
"/",
"code",
">",
"must",
"be",
"greater",
"than",
"or",
"equal",
"to",
"1",
"and",
"less",
"than",
"or",
"equal",
"to",
"1000000",
"if",
"you",
"specify",
"a",
"<",
"code",
">",
"total",
"segments",
"<",
"/",
"code",
">",
"value",
"of",
"1",
"the",
"<",
"code",
">",
"scan",
"<",
"/",
"code",
">",
"operation",
"will",
"be",
"sequential",
"rather",
"than",
"parallel",
"<",
"/",
"p",
">",
"<",
"p",
">",
"if",
"you",
"specify",
"<",
"code",
">",
"total",
"segments",
"<",
"/",
"code",
">",
"you",
"must",
"also",
"specify",
"<",
"code",
">",
"segment",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">"
]
| [
"set",
"total",
"segments",
"(",
"total",
"segments",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"for",
"a",
"parallel",
"<",
"code",
">",
"scan",
"<",
"/",
"code",
">",
"request",
"<",
"code",
">",
"segment",
"<",
"/",
"code",
">",
"identifies",
"an",
"individual",
"segment",
"to",
"be",
"scanned",
"by",
"an",
"application",
"worker",
"<",
"/",
"p",
">",
"<",
"p",
">",
"segment",
"i",
"ds",
"are",
"zero",
"-",
"based",
"so",
"the",
"first",
"segment",
"is",
"always",
"0",
"for",
"example",
"if",
"you",
"want",
"to",
"use",
"four",
"application",
"threads",
"to",
"scan",
"a",
"table",
"or",
"an",
"index",
"then",
"the",
"first",
"thread",
"specifies",
"a",
"<",
"code",
">",
"segment",
"<",
"/",
"code",
">",
"value",
"of",
"0",
"the",
"second",
"thread",
"specifies",
"1",
"and",
"so",
"on",
"<",
"/",
"p",
">",
"<",
"p",
">",
"the",
"value",
"of",
"<",
"code",
">",
"last",
"evaluated",
"key",
"<",
"/",
"code",
">",
"returned",
"from",
"a",
"parallel",
"<",
"code",
">",
"scan",
"<",
"/",
"code",
">",
"request",
"must",
"be",
"used",
"as",
"<",
"code",
">",
"exclusive",
"start",
"key",
"<",
"/",
"code",
">",
"with",
"the",
"same",
"segment",
"id",
"in",
"a",
"subsequent",
"<",
"code",
">",
"scan",
"<",
"/",
"code",
">",
"operation",
"<",
"/",
"p",
">",
"<",
"p",
">",
"the",
"value",
"for",
"<",
"code",
">",
"segment",
"<",
"/",
"code",
">",
"must",
"be",
"greater",
"than",
"or",
"equal",
"to",
"0",
"and",
"less",
"than",
"the",
"value",
"provided",
"for",
"<",
"code",
">",
"total",
"segments",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">",
"<",
"p",
">",
"if",
"you",
"provide",
"<",
"code",
">",
"segment",
"<",
"/",
"code",
">",
"you",
"must",
"also",
"provide",
"<",
"code",
">",
"total",
"segments",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">"
]
| [
"return",
"this",
"segment",
";"
]
|
[
"<",
"p",
">",
"for",
"a",
"parallel",
"<",
"code",
">",
"scan",
"<",
"/",
"code",
">",
"request",
"<",
"code",
">",
"segment",
"<",
"/",
"code",
">",
"identifies",
"an",
"individual",
"segment",
"to",
"be",
"scanned",
"by",
"an",
"application",
"worker",
"<",
"/",
"p",
">",
"<",
"p",
">",
"segment",
"i",
"ds",
"are",
"zero",
"-",
"based",
"so",
"the",
"first",
"segment",
"is",
"always",
"0",
"for",
"example",
"if",
"you",
"want",
"to",
"use",
"four",
"application",
"threads",
"to",
"scan",
"a",
"table",
"or",
"an",
"index",
"then",
"the",
"first",
"thread",
"specifies",
"a",
"<",
"code",
">",
"segment",
"<",
"/",
"code",
">",
"value",
"of",
"0",
"the",
"second",
"thread",
"specifies",
"1",
"and",
"so",
"on",
"<",
"/",
"p",
">",
"<",
"p",
">",
"the",
"value",
"of",
"<",
"code",
">",
"last",
"evaluated",
"key",
"<",
"/",
"code",
">",
"returned",
"from",
"a",
"parallel",
"<",
"code",
">",
"scan",
"<",
"/",
"code",
">",
"request",
"must",
"be",
"used",
"as",
"<",
"code",
">",
"exclusive",
"start",
"key",
"<",
"/",
"code",
">",
"with",
"the",
"same",
"segment",
"id",
"in",
"a",
"subsequent",
"<",
"code",
">",
"scan",
"<",
"/",
"code",
">",
"operation",
"<",
"/",
"p",
">",
"<",
"p",
">",
"the",
"value",
"for",
"<",
"code",
">",
"segment",
"<",
"/",
"code",
">",
"must",
"be",
"greater",
"than",
"or",
"equal",
"to",
"0",
"and",
"less",
"than",
"the",
"value",
"provided",
"for",
"<",
"code",
">",
"total",
"segments",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">",
"<",
"p",
">",
"if",
"you",
"provide",
"<",
"code",
">",
"segment",
"<",
"/",
"code",
">",
"you",
"must",
"also",
"provide",
"<",
"code",
">",
"total",
"segments",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">"
]
| [
"set",
"segment",
"(",
"segment",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"a",
"string",
"that",
"identifies",
"one",
"or",
"more",
"attributes",
"to",
"retrieve",
"from",
"the",
"specified",
"table",
"or",
"index",
"these",
"attributes",
"can",
"include",
"scalars",
"sets",
"or",
"elements",
"of",
"a",
"json",
"document",
"the",
"attributes",
"in",
"the",
"expression",
"must",
"be",
"separated",
"by",
"commas",
"<",
"/",
"p",
">",
"<",
"p",
">",
"if",
"no",
"attribute",
"names",
"are",
"specified",
"then",
"all",
"attributes",
"will",
"be",
"returned",
"if",
"any",
"of",
"the",
"requested",
"attributes",
"are",
"not",
"found",
"they",
"will",
"not",
"appear",
"in",
"the",
"result",
"<",
"/",
"p",
">",
"<",
"p",
">",
"for",
"more",
"information",
"see",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"amazondynamodb",
"/",
"latest",
"/",
"developerguide",
"/",
"expressions",
"accessing",
"item",
"attributes",
"html",
">",
"accessing",
"item",
"attributes",
"<",
"/",
"a",
">",
"in",
"the",
"<",
"i",
">",
"amazon",
"dynamo",
"d",
"b",
"developer",
"guide",
"<",
"/",
"i",
">",
"<",
"/",
"p",
">"
]
| [
"set",
"projection",
"expression",
"(",
"projection",
"expression",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"a",
"string",
"that",
"contains",
"conditions",
"that",
"dynamo",
"d",
"b",
"applies",
"after",
"the",
"<",
"code",
">",
"scan",
"<",
"/",
"code",
">",
"operation",
"but",
"before",
"the",
"data",
"is",
"returned",
"to",
"you",
"items",
"that",
"do",
"not",
"satisfy",
"the",
"<",
"code",
">",
"filter",
"expression",
"<",
"/",
"code",
">",
"criteria",
"are",
"not",
"returned",
"<",
"/",
"p",
">",
"<",
"note",
">",
"<",
"p",
">",
"a",
"<",
"code",
">",
"filter",
"expression",
"<",
"/",
"code",
">",
"is",
"applied",
"after",
"the",
"items",
"have",
"already",
"been",
"read",
";",
"the",
"process",
"of",
"filtering",
"does",
"not",
"consume",
"any",
"additional",
"read",
"capacity",
"units",
"<",
"/",
"p",
">",
"<",
"/",
"note",
">",
"<",
"p",
">",
"for",
"more",
"information",
"see",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"amazondynamodb",
"/",
"latest",
"/",
"developerguide",
"/",
"query",
"and",
"scan",
"html",
"#",
"filtering",
"results",
">",
"filter",
"expressions",
"<",
"/",
"a",
">",
"in",
"the",
"<",
"i",
">",
"amazon",
"dynamo",
"d",
"b",
"developer",
"guide",
"<",
"/",
"i",
">",
"<",
"/",
"p",
">"
]
| [
"set",
"filter",
"expression",
"(",
"filter",
"expression",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"one",
"or",
"more",
"substitution",
"tokens",
"for",
"attribute",
"names",
"in",
"an",
"expression",
"the",
"following",
"are",
"some",
"use",
"cases",
"for",
"using",
"<",
"code",
">",
"expression",
"attribute",
"names",
"<",
"/",
"code",
">",
":",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"to",
"access",
"an",
"attribute",
"whose",
"name",
"conflicts",
"with",
"a",
"dynamo",
"d",
"b",
"reserved",
"word",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"to",
"create",
"a",
"placeholder",
"for",
"repeating",
"occurrences",
"of",
"an",
"attribute",
"name",
"in",
"an",
"expression",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"to",
"prevent",
"special",
"characters",
"in",
"an",
"attribute",
"name",
"from",
"being",
"misinterpreted",
"in",
"an",
"expression",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">",
"<",
"p",
">",
"use",
"the",
"<",
"b",
">",
"#",
"<",
"/",
"b",
">",
"character",
"in",
"an",
"expression",
"to",
"dereference",
"an",
"attribute",
"name",
"for",
"example",
"consider",
"the",
"following",
"attribute",
"name",
":",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"percentile",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">",
"<",
"p",
">",
"the",
"name",
"of",
"this",
"attribute",
"conflicts",
"with",
"a",
"reserved",
"word",
"so",
"it",
"cannot",
"be",
"used",
"directly",
"in",
"an",
"expression",
"(",
"for",
"the",
"complete",
"list",
"of",
"reserved",
"words",
"see",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"amazondynamodb",
"/",
"latest",
"/",
"developerguide",
"/",
"reserved",
"words",
"html",
">",
"reserved",
"words",
"<",
"/",
"a",
">",
"in",
"the",
"<",
"i",
">",
"amazon",
"dynamo",
"d",
"b",
"developer",
"guide",
"<",
"/",
"i",
">",
")",
"to",
"work",
"around",
"this",
"you",
"could",
"specify",
"the",
"following",
"for",
"<",
"code",
">",
"expression",
"attribute",
"names",
"<",
"/",
"code",
">",
":",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"{",
"#",
"p",
":",
"percentile",
"}",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">",
"<",
"p",
">",
"you",
"could",
"then",
"use",
"this",
"substitution",
"in",
"an",
"expression",
"as",
"in",
"this",
"example",
":",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"#",
"p",
"=",
":",
"val",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">",
"<",
"note",
">",
"<",
"p",
">",
"tokens",
"that",
"begin",
"with",
"the",
"<",
"b",
">",
":",
"<",
"/",
"b",
">",
"character",
"are",
"<",
"i",
">",
"expression",
"attribute",
"values",
"<",
"/",
"i",
">",
"which",
"are",
"placeholders",
"for",
"the",
"actual",
"value",
"at",
"runtime",
"<",
"/",
"p",
">",
"<",
"/",
"note",
">",
"<",
"p",
">",
"for",
"more",
"information",
"on",
"expression",
"attribute",
"names",
"see",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"amazondynamodb",
"/",
"latest",
"/",
"developerguide",
"/",
"expressions",
"accessing",
"item",
"attributes",
"html",
">",
"accessing",
"item",
"attributes",
"<",
"/",
"a",
">",
"in",
"the",
"<",
"i",
">",
"amazon",
"dynamo",
"d",
"b",
"developer",
"guide",
"<",
"/",
"i",
">",
"<",
"/",
"p",
">"
]
| [
"set",
"expression",
"attribute",
"names",
"(",
"expression",
"attribute",
"names",
")",
";",
"return",
"this",
";"
]
|
[
"removes",
"all",
"the",
"entries",
"added",
"into",
"expression",
"attribute",
"names"
]
| [
"this",
"expression",
"attribute",
"names",
"=",
"null",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"one",
"or",
"more",
"values",
"that",
"can",
"be",
"substituted",
"in",
"an",
"expression",
"<",
"/",
"p",
">",
"<",
"p",
">",
"use",
"the",
"<",
"b",
">",
":",
"<",
"/",
"b",
">",
"(",
"colon",
")",
"character",
"in",
"an",
"expression",
"to",
"dereference",
"an",
"attribute",
"value",
"for",
"example",
"suppose",
"that",
"you",
"wanted",
"to",
"check",
"whether",
"the",
"value",
"of",
"the",
"<",
"i",
">",
"product",
"status",
"<",
"/",
"i",
">",
"attribute",
"was",
"one",
"of",
"the",
"following",
":",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"code",
">",
"available",
"|",
"backordered",
"|",
"discontinued",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">",
"<",
"p",
">",
"you",
"would",
"first",
"need",
"to",
"specify",
"<",
"code",
">",
"expression",
"attribute",
"values",
"<",
"/",
"code",
">",
"as",
"follows",
":",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"code",
">",
"{",
":",
"avail",
":",
"{",
"s",
":",
"available",
"}",
":",
"back",
":",
"{",
"s",
":",
"backordered",
"}",
":",
"disc",
":",
"{",
"s",
":",
"discontinued",
"}",
"}",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">",
"<",
"p",
">",
"you",
"could",
"then",
"use",
"these",
"values",
"in",
"an",
"expression",
"such",
"as",
"this",
":",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"code",
">",
"product",
"status",
"in",
"(",
":",
"avail",
":",
"back",
":",
"disc",
")",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">",
"<",
"p",
">",
"for",
"more",
"information",
"on",
"expression",
"attribute",
"values",
"see",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"amazondynamodb",
"/",
"latest",
"/",
"developerguide",
"/",
"expressions",
"specifying",
"conditions",
"html",
">",
"specifying",
"conditions",
"<",
"/",
"a",
">",
"in",
"the",
"<",
"i",
">",
"amazon",
"dynamo",
"d",
"b",
"developer",
"guide",
"<",
"/",
"i",
">",
"<",
"/",
"p",
">"
]
| [
"set",
"expression",
"attribute",
"values",
"(",
"expression",
"attribute",
"values",
")",
";",
"return",
"this",
";"
]
|
[
"removes",
"all",
"the",
"entries",
"added",
"into",
"expression",
"attribute",
"values"
]
| [
"this",
"expression",
"attribute",
"values",
"=",
"null",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"a",
"boolean",
"value",
"that",
"determines",
"the",
"read",
"consistency",
"model",
"during",
"the",
"scan",
":",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"if",
"<",
"code",
">",
"consistent",
"read",
"<",
"/",
"code",
">",
"is",
"<",
"code",
">",
"false",
"<",
"/",
"code",
">",
"then",
"the",
"data",
"returned",
"from",
"<",
"code",
">",
"scan",
"<",
"/",
"code",
">",
"might",
"not",
"contain",
"the",
"results",
"from",
"other",
"recently",
"completed",
"write",
"operations",
"(",
"put",
"item",
"update",
"item",
"or",
"delete",
"item",
")",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"if",
"<",
"code",
">",
"consistent",
"read",
"<",
"/",
"code",
">",
"is",
"<",
"code",
">",
"true",
"<",
"/",
"code",
">",
"then",
"all",
"of",
"the",
"write",
"operations",
"that",
"completed",
"before",
"the",
"<",
"code",
">",
"scan",
"<",
"/",
"code",
">",
"began",
"are",
"guaranteed",
"to",
"be",
"contained",
"in",
"the",
"<",
"code",
">",
"scan",
"<",
"/",
"code",
">",
"response",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">",
"<",
"p",
">",
"the",
"default",
"setting",
"for",
"<",
"code",
">",
"consistent",
"read",
"<",
"/",
"code",
">",
"is",
"<",
"code",
">",
"false",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">",
"<",
"p",
">",
"the",
"<",
"code",
">",
"consistent",
"read",
"<",
"/",
"code",
">",
"parameter",
"is",
"not",
"supported",
"on",
"global",
"secondary",
"indexes",
"if",
"you",
"scan",
"a",
"global",
"secondary",
"index",
"with",
"<",
"code",
">",
"consistent",
"read",
"<",
"/",
"code",
">",
"set",
"to",
"true",
"you",
"will",
"receive",
"a",
"<",
"code",
">",
"validation",
"exception",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">"
]
| [
"set",
"consistent",
"read",
"(",
"consistent",
"read",
")",
";",
"return",
"this",
";"
]
|
[
"the",
"primary",
"hash",
"and",
"range",
"keys",
"of",
"the",
"first",
"item",
"that",
"this",
"operation",
"will",
"evaluate",
"use",
"the",
"value",
"that",
"was",
"returned",
"for",
"<",
"i",
">",
"last",
"evaluated",
"key",
"<",
"/",
"i",
">",
"in",
"the",
"previous",
"operation",
"<",
"p",
">",
"the",
"data",
"type",
"for",
"<",
"i",
">",
"exclusive",
"start",
"key",
"<",
"/",
"i",
">",
"must",
"be",
"string",
"number",
"or",
"binary",
"no",
"set",
"data",
"types",
"are",
"allowed",
"<",
"p",
">",
"returns",
"a",
"reference",
"to",
"this",
"object",
"so",
"that",
"method",
"calls",
"can",
"be",
"chained",
"together"
]
| [
"set",
"exclusive",
"start",
"key",
"(",
"hash",
"key",
",",
"range",
"key",
")",
";",
"return",
"this",
";"
]
|
[
"{"
]
| [
"return",
"s",
"to",
"string",
"(",
"grid",
"rest",
"topology",
"request",
"class",
",",
"this",
",",
"super",
"to",
"string",
"(",
")",
")",
";"
]
|
[
"<",
"p",
">",
"the",
"arn",
"of",
"the",
"schema",
"where",
"the",
"facet",
"resides",
"<",
"/",
"p",
">"
]
| [
"set",
"schema",
"arn",
"(",
"schema",
"arn",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"facet",
"whose",
"attributes",
"will",
"be",
"retrieved",
"<",
"/",
"p",
">"
]
| [
"set",
"name",
"(",
"name",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"pagination",
"token",
"<",
"/",
"p",
">"
]
| [
"set",
"next",
"token",
"(",
"next",
"token",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"maximum",
"number",
"of",
"results",
"to",
"retrieve",
"<",
"/",
"p",
">"
]
| [
"set",
"max",
"results",
"(",
"max",
"results",
")",
";",
"return",
"this",
";"
]
|
[
"use",
"this",
"for",
"radiolist",
"prefs",
"to",
"get",
"the",
"single",
"-",
"select",
"item"
]
| [
"for",
"(",
"pref",
"list",
"item",
"item",
":",
"this",
")",
"{",
"if",
"(",
"item",
"m",
"is",
"checked",
")",
"{",
"return",
"item",
";",
"}",
"}",
"return",
"null",
";"
]
|
[
"use",
"this",
"for",
"checklist",
"prefs",
"to",
"get",
"all",
"selected",
"items"
]
| [
"pref",
"list",
"items",
"selected",
"items",
"=",
"new",
"pref",
"list",
"items",
"(",
")",
";",
"for",
"(",
"pref",
"list",
"item",
"item",
":",
"this",
")",
"{",
"if",
"(",
"item",
"m",
"is",
"checked",
")",
"{",
"selected",
"items",
"add",
"(",
"item",
")",
";",
"}",
"}",
"return",
"selected",
"items",
";"
]
|
[
"use",
"this",
"with",
"radiolist",
"prefs",
"to",
"select",
"only",
"the",
"passed",
"name"
]
| [
"for",
"(",
"pref",
"list",
"item",
"item",
":",
"this",
")",
"{",
"item",
"m",
"is",
"checked",
"=",
"string",
"utils",
"equals",
"(",
"selected",
"name",
",",
"item",
"m",
"item",
"name",
")",
";",
"}"
]
|
[
"/",
"*",
"blue",
"heading",
"text",
"that",
"should",
"appear",
"above",
"the",
"preference",
"when",
"it",
"s",
"the",
"first",
"in",
"a",
"group"
]
| [
"m",
"heading",
"text",
"view",
"set",
"text",
"(",
"heading",
")",
";",
"m",
"heading",
"text",
"view",
"set",
"visibility",
"(",
"text",
"utils",
"is",
"empty",
"(",
"heading",
")",
"?",
"gone",
":",
"visible",
")",
";"
]
|
[
"/",
"*",
"title",
"above",
"the",
"preference",
"and",
"below",
"the",
"optional",
"heading"
]
| [
"m",
"title",
"text",
"view",
"set",
"text",
"(",
"title",
")",
";"
]
|
[
"/",
"*",
"optional",
"description",
"that",
"appears",
"below",
"the",
"title"
]
| [
"m",
"summary",
"text",
"view",
"set",
"text",
"(",
"summary",
")",
";",
"m",
"summary",
"text",
"view",
"set",
"visibility",
"(",
"text",
"utils",
"is",
"empty",
"(",
"summary",
")",
"?",
"view",
"gone",
":",
"view",
"visible",
")",
";"
]
|
[
"/",
"*",
"subtitle",
"on",
"the",
"dialog",
"that",
"appears",
"when",
"the",
"pref",
"type",
"is",
"text"
]
| [
"m",
"text",
"dialog",
"subtitle",
"=",
"subtitle",
";"
]
|
[
"/",
"*",
"current",
"entry",
"when",
"the",
"pref",
"type",
"is",
"text"
]
| [
"return",
"m",
"text",
"entry",
";"
]
|
[
"/",
"*",
"returns",
"whether",
"or",
"not",
"the",
"switch",
"is",
"checked",
"when",
"the",
"pref",
"type",
"is",
"toggle"
]
| [
"return",
"m",
"pref",
"type",
"=",
"=",
"pref",
"type",
"toggle",
"&",
"&",
"m",
"toggle",
"switch",
"is",
"checked",
"(",
")",
";"
]
|
[
"/",
"*",
"the",
"list",
"of",
"items",
"when",
"the",
"pref",
"type",
"is",
"checklist",
"or",
"radiolist"
]
| [
"return",
"m",
"list",
"items",
";"
]
|
[
"/",
"*",
"user",
"clicked",
"the",
"toggle",
"switch"
]
| [
"do",
"pref",
"changed",
"(",
")",
";"
]
|
[
"/",
"*",
"user",
"clicked",
"the",
"view",
"when",
"the",
"pref",
"type",
"is",
"checklist",
"-",
"shows",
"a",
"multi",
"-",
"select",
"dialog",
"enabling",
"the",
"user",
"to",
"modify",
"the",
"list"
]
| [
"char",
"sequence",
"[",
"]",
"items",
"=",
"new",
"char",
"sequence",
"[",
"m",
"list",
"items",
"size",
"(",
")",
"]",
";",
"boolean",
"[",
"]",
"checked",
"items",
"=",
"new",
"boolean",
"[",
"m",
"list",
"items",
"size",
"(",
")",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"m",
"list",
"items",
"size",
"(",
")",
";",
"i",
"+",
"+",
")",
"{",
"items",
"[",
"i",
"]",
"=",
"m",
"list",
"items",
"get",
"(",
"i",
")",
"m",
"item",
"name",
";",
"checked",
"items",
"[",
"i",
"]",
"=",
"m",
"list",
"items",
"get",
"(",
"i",
")",
"m",
"is",
"checked",
";",
"}",
"alert",
"dialog",
"builder",
"builder",
"=",
"new",
"alert",
"dialog",
"builder",
"(",
"new",
"context",
"theme",
"wrapper",
"(",
"get",
"context",
"(",
")",
",",
"r",
"style",
"calypso",
"dialog",
"alert",
")",
")",
"set",
"title",
"(",
"m",
"title",
"text",
"view",
"get",
"text",
"(",
")",
")",
"set",
"negative",
"button",
"(",
"android",
"r",
"string",
"cancel",
",",
"null",
")",
"set",
"positive",
"button",
"(",
"android",
"r",
"string",
"ok",
",",
"new",
"dialog",
"interface",
"on",
"click",
"listener",
"(",
")",
"{",
"@",
"override",
"public",
"void",
"on",
"click",
"(",
"dialog",
"interface",
"dialog",
",",
"int",
"which",
")",
"{",
"sparse",
"boolean",
"array",
"checked",
"items",
"=",
"(",
"(",
"alert",
"dialog",
")",
"dialog",
")",
"get",
"list",
"view",
"(",
")",
"get",
"checked",
"item",
"positions",
"(",
")",
";",
"m",
"list",
"items",
"set",
"checked",
"items",
"(",
"checked",
"items",
")",
";",
"do",
"pref",
"changed",
"(",
")",
";",
"}",
"}",
")",
"set",
"multi",
"choice",
"items",
"(",
"items",
",",
"checked",
"items",
",",
"null",
")",
";",
"return",
"builder",
"create",
"(",
")",
";"
]
|
[
"/",
"*",
"user",
"clicked",
"the",
"view",
"when",
"the",
"pref",
"type",
"is",
"radiolist",
"-",
"shows",
"a",
"single",
"-",
"select",
"dialog",
"enabling",
"the",
"user",
"to",
"choose",
"a",
"different",
"item"
]
| [
"char",
"sequence",
"[",
"]",
"items",
"=",
"new",
"char",
"sequence",
"[",
"m",
"list",
"items",
"size",
"(",
")",
"]",
";",
"int",
"selected",
"pos",
"=",
"0",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"m",
"list",
"items",
"size",
"(",
")",
";",
"i",
"+",
"+",
")",
"{",
"items",
"[",
"i",
"]",
"=",
"m",
"list",
"items",
"get",
"(",
"i",
")",
"m",
"item",
"name",
";",
"if",
"(",
"m",
"list",
"items",
"get",
"(",
"i",
")",
"m",
"is",
"checked",
")",
"{",
"selected",
"pos",
"=",
"i",
";",
"}",
"}",
"alert",
"dialog",
"builder",
"builder",
"=",
"new",
"alert",
"dialog",
"builder",
"(",
"new",
"context",
"theme",
"wrapper",
"(",
"get",
"context",
"(",
")",
",",
"r",
"style",
"calypso",
"dialog",
"alert",
")",
")",
"set",
"title",
"(",
"m",
"title",
"text",
"view",
"get",
"text",
"(",
")",
")",
"set",
"negative",
"button",
"(",
"android",
"r",
"string",
"cancel",
",",
"null",
")",
"set",
"positive",
"button",
"(",
"android",
"r",
"string",
"ok",
",",
"new",
"dialog",
"interface",
"on",
"click",
"listener",
"(",
")",
"{",
"@",
"override",
"public",
"void",
"on",
"click",
"(",
"dialog",
"interface",
"dialog",
",",
"int",
"which",
")",
"{",
"sparse",
"boolean",
"array",
"checked",
"items",
"=",
"(",
"(",
"alert",
"dialog",
")",
"dialog",
")",
"get",
"list",
"view",
"(",
")",
"get",
"checked",
"item",
"positions",
"(",
")",
";",
"m",
"list",
"items",
"set",
"checked",
"items",
"(",
"checked",
"items",
")",
";",
"pref",
"list",
"item",
"item",
"=",
"m",
"list",
"items",
"get",
"first",
"selected",
"item",
"(",
")",
";",
"set",
"summary",
"(",
"item",
"!",
"=",
"null",
"?",
"item",
"m",
"item",
"name",
":",
"\"",
"\"",
")",
";",
"do",
"pref",
"changed",
"(",
")",
";",
"}",
"}",
")",
"set",
"single",
"choice",
"items",
"(",
"items",
",",
"selected",
"pos",
",",
"null",
")",
";",
"return",
"builder",
"create",
"(",
")",
";"
]
|
[
"writes",
"audio",
"state",
"object",
"into",
"a",
"serializeable",
"parcel"
]
| [
"destination",
"write",
"byte",
"(",
"(",
"byte",
")",
"(",
"is",
"muted",
"?",
"1",
":",
"0",
")",
")",
";",
"destination",
"write",
"int",
"(",
"route",
")",
";",
"destination",
"write",
"int",
"(",
"supported",
"route",
"mask",
")",
";"
]
|
[
"<",
"p",
">",
"an",
"array",
"of",
"text",
"that",
"was",
"detected",
"in",
"the",
"input",
"image",
"<",
"/",
"p",
">"
]
| [
"return",
"text",
"detections",
";"
]
|
[
"<",
"p",
">",
"an",
"array",
"of",
"text",
"that",
"was",
"detected",
"in",
"the",
"input",
"image",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"text",
"detections",
"=",
"=",
"null",
")",
"{",
"this",
"text",
"detections",
"=",
"null",
";",
"return",
";",
"}",
"this",
"text",
"detections",
"=",
"new",
"java",
"util",
"array",
"list",
"<",
"text",
"detection",
">",
"(",
"text",
"detections",
")",
";"
]
|
[
"<",
"p",
">",
"an",
"array",
"of",
"text",
"that",
"was",
"detected",
"in",
"the",
"input",
"image",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"text",
"detections",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"text",
"detections",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"this",
"text",
"detections",
"=",
"=",
"null",
")",
"{",
"set",
"text",
"detections",
"(",
"new",
"java",
"util",
"array",
"list",
"<",
"text",
"detection",
">",
"(",
"text",
"detections",
"length",
")",
")",
";",
"}",
"for",
"(",
"text",
"detection",
"ele",
":",
"text",
"detections",
")",
"{",
"this",
"text",
"detections",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"an",
"array",
"of",
"text",
"that",
"was",
"detected",
"in",
"the",
"input",
"image",
"<",
"/",
"p",
">"
]
| [
"set",
"text",
"detections",
"(",
"text",
"detections",
")",
";",
"return",
"this",
";"
]
|
[
"set",
"the",
"given",
"view",
"as",
"clicked",
"or",
"not",
"-",
"clicked"
]
| [
"view",
"set",
"tag",
"(",
"tag",
"clicked",
"notification",
",",
"clicked",
"?",
"true",
":",
"null",
")",
";"
]
|
[
"check",
"if",
"the",
"given",
"view",
"has",
"the",
"flag",
"of",
"clicked",
"notification"
]
| [
"boolean",
"clicked",
"=",
"(",
"boolean",
")",
"view",
"get",
"tag",
"(",
"tag",
"clicked",
"notification",
")",
";",
"return",
"clicked",
"!",
"=",
"null",
"&",
"&",
"clicked",
";"
]
|
[
"validates",
"tags",
"and",
"resolves",
"conflicts",
"between",
"user",
"and",
"system",
"tags"
]
| [
"for",
"(",
"string",
"tag",
":",
"tags",
")",
"{",
"rule",
"tag",
"format",
"validate",
"(",
"tag",
")",
";",
"}",
"set",
"<",
"string",
">",
"initial",
"tags",
"=",
"rule",
"get",
"tags",
"(",
")",
";",
"final",
"set",
"<",
"string",
">",
"system",
"tags",
"=",
"rule",
"get",
"system",
"tags",
"(",
")",
";",
"set",
"<",
"string",
">",
"without",
"system",
"tags",
"=",
"sets",
"filter",
"(",
"tags",
",",
"input",
"-",
">",
"input",
"!",
"=",
"null",
"&",
"&",
"!",
"system",
"tags",
"contains",
"(",
"input",
")",
")",
";",
"rule",
"set",
"tags",
"(",
"without",
"system",
"tags",
")",
";",
"return",
"without",
"system",
"tags",
"size",
"(",
")",
"!",
"=",
"initial",
"tags",
"size",
"(",
")",
"|",
"|",
"!",
"without",
"system",
"tags",
"contains",
"all",
"(",
"initial",
"tags",
")",
";"
]
|
[
"passes",
"the",
"{"
]
| [
"consumer",
"accept",
"(",
"parameters",
"(",
")",
")",
";",
"return",
"this",
";"
]
|
[
"copies",
"the",
"specified",
"{"
]
| [
"nparameters",
"(",
"address",
"(",
")",
",",
"value",
")",
";",
"return",
"this",
";"
]
|
[
"initializes",
"this",
"struct",
"with",
"the",
"specified",
"values"
]
| [
"s",
"type",
"(",
"s",
"type",
")",
";",
"p",
"next",
"(",
"p",
"next",
")",
";",
"flags",
"(",
"flags",
")",
";",
"parameters",
"(",
"parameters",
")",
";",
"return",
"this",
";"
]
|
[
"copies",
"the",
"specified",
"struct",
"data",
"to",
"this",
"struct"
]
| [
"mem",
"copy",
"(",
"src",
"address",
"(",
")",
",",
"address",
"(",
")",
",",
"sizeof",
")",
";",
"return",
"this",
";"
]
|
[
"returns",
"a",
"new",
"{"
]
| [
"return",
"wrap",
"(",
"vk",
"display",
"mode",
"create",
"info",
"k",
"h",
"r",
"class",
",",
"nmem",
"alloc",
"checked",
"(",
"sizeof",
")",
")",
";"
]
|
[
"returns",
"a",
"new",
"{"
]
| [
"return",
"wrap",
"(",
"vk",
"display",
"mode",
"create",
"info",
"k",
"h",
"r",
"class",
",",
"nmem",
"calloc",
"checked",
"(",
"1",
",",
"sizeof",
")",
")",
";"
]
|
[
"returns",
"a",
"new",
"{"
]
| [
"byte",
"buffer",
"container",
"=",
"buffer",
"utils",
"create",
"byte",
"buffer",
"(",
"sizeof",
")",
";",
"return",
"wrap",
"(",
"vk",
"display",
"mode",
"create",
"info",
"k",
"h",
"r",
"class",
",",
"mem",
"address",
"(",
"container",
")",
",",
"container",
")",
";"
]
|
[
"returns",
"a",
"new",
"{"
]
| [
"return",
"wrap",
"(",
"vk",
"display",
"mode",
"create",
"info",
"k",
"h",
"r",
"class",
",",
"address",
")",
";"
]
|
[
"like",
"{"
]
| [
"return",
"address",
"=",
"=",
"null",
"?",
"null",
":",
"wrap",
"(",
"vk",
"display",
"mode",
"create",
"info",
"k",
"h",
"r",
"class",
",",
"address",
")",
";"
]
|
[
"returns",
"a",
"new",
"{",
"@",
"link",
"vk",
"display",
"mode",
"create",
"info",
"k",
"h",
"r",
"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",
"vk",
"display",
"mode",
"create",
"info",
"k",
"h",
"r",
"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",
"vk",
"display",
"mode",
"create",
"info",
"k",
"h",
"r",
"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",
"vk",
"display",
"mode",
"create",
"info",
"k",
"h",
"r",
"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",
"vk",
"display",
"mode",
"create",
"info",
"k",
"h",
"r",
"}",
"instance",
"allocated",
"on",
"the",
"specified",
"{",
"@",
"link",
"memory",
"stack",
"}"
]
| [
"return",
"wrap",
"(",
"vk",
"display",
"mode",
"create",
"info",
"k",
"h",
"r",
"class",
",",
"stack",
"nmalloc",
"(",
"alignof",
",",
"sizeof",
")",
")",
";"
]
|
[
"returns",
"a",
"new",
"{",
"@",
"link",
"vk",
"display",
"mode",
"create",
"info",
"k",
"h",
"r",
"}",
"instance",
"allocated",
"on",
"the",
"specified",
"{",
"@",
"link",
"memory",
"stack",
"}",
"and",
"initializes",
"all",
"its",
"bits",
"to",
"zero"
]
| [
"return",
"wrap",
"(",
"vk",
"display",
"mode",
"create",
"info",
"k",
"h",
"r",
"class",
",",
"stack",
"ncalloc",
"(",
"alignof",
",",
"1",
",",
"sizeof",
")",
")",
";"
]
|
[
"returns",
"a",
"new",
"{",
"@",
"link",
"vk",
"display",
"mode",
"create",
"info",
"k",
"h",
"r",
"buffer",
"}",
"instance",
"allocated",
"on",
"the",
"thread",
"-",
"local",
"{",
"@",
"link",
"memory",
"stack",
"}"
]
| [
"return",
"malloc",
"stack",
"(",
"capacity",
",",
"stack",
"get",
"(",
")",
")",
";"
]
|
[
"returns",
"a",
"new",
"{",
"@",
"link",
"vk",
"display",
"mode",
"create",
"info",
"k",
"h",
"r",
"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",
"vk",
"display",
"mode",
"create",
"info",
"k",
"h",
"r",
"buffer",
"}",
"instance",
"allocated",
"on",
"the",
"specified",
"{",
"@",
"link",
"memory",
"stack",
"}"
]
| [
"return",
"wrap",
"(",
"buffer",
"class",
",",
"stack",
"nmalloc",
"(",
"alignof",
",",
"capacity",
"*",
"sizeof",
")",
",",
"capacity",
")",
";"
]
|
[
"returns",
"a",
"new",
"{",
"@",
"link",
"vk",
"display",
"mode",
"create",
"info",
"k",
"h",
"r",
"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",
"unsafe",
"get",
"int",
"(",
"null",
",",
"struct",
"+",
"vk",
"display",
"mode",
"create",
"info",
"k",
"h",
"r",
"stype",
")",
";"
]
|
[
"unsafe",
"version",
"of",
"{"
]
| [
"return",
"mem",
"get",
"address",
"(",
"struct",
"+",
"vk",
"display",
"mode",
"create",
"info",
"k",
"h",
"r",
"pnext",
")",
";"
]
|
[
"unsafe",
"version",
"of",
"{"
]
| [
"return",
"unsafe",
"get",
"int",
"(",
"null",
",",
"struct",
"+",
"vk",
"display",
"mode",
"create",
"info",
"k",
"h",
"r",
"flags",
")",
";"
]
|
[
"unsafe",
"version",
"of",
"{"
]
| [
"return",
"vk",
"display",
"mode",
"parameters",
"k",
"h",
"r",
"create",
"(",
"struct",
"+",
"vk",
"display",
"mode",
"create",
"info",
"k",
"h",
"r",
"parameters",
")",
";"
]
|
[
"unsafe",
"version",
"of",
"{"
]
| [
"unsafe",
"put",
"int",
"(",
"null",
",",
"struct",
"+",
"vk",
"display",
"mode",
"create",
"info",
"k",
"h",
"r",
"stype",
",",
"value",
")",
";"
]
|
[
"unsafe",
"version",
"of",
"{"
]
| [
"mem",
"put",
"address",
"(",
"struct",
"+",
"vk",
"display",
"mode",
"create",
"info",
"k",
"h",
"r",
"pnext",
",",
"value",
")",
";"
]
|
[
"unsafe",
"version",
"of",
"{"
]
| [
"unsafe",
"put",
"int",
"(",
"null",
",",
"struct",
"+",
"vk",
"display",
"mode",
"create",
"info",
"k",
"h",
"r",
"flags",
",",
"value",
")",
";"
]
|
[
"unsafe",
"version",
"of",
"{"
]
| [
"mem",
"copy",
"(",
"value",
"address",
"(",
")",
",",
"struct",
"+",
"vk",
"display",
"mode",
"create",
"info",
"k",
"h",
"r",
"parameters",
",",
"vk",
"display",
"mode",
"parameters",
"k",
"h",
"r",
"sizeof",
")",
";"
]
|
[
"returns",
"a",
"{"
]
| [
"return",
"vk",
"display",
"mode",
"create",
"info",
"k",
"h",
"r",
"nparameters",
"(",
"address",
"(",
")",
")",
";"
]
|
[
"passes",
"the",
"{"
]
| [
"consumer",
"accept",
"(",
"parameters",
"(",
")",
")",
";",
"return",
"this",
";"
]
|
[
"copies",
"the",
"specified",
"{"
]
| [
"vk",
"display",
"mode",
"create",
"info",
"k",
"h",
"r",
"nparameters",
"(",
"address",
"(",
")",
",",
"value",
")",
";",
"return",
"this",
";"
]
|
[
"/",
"*",
"boolean",
"is",
"fee",
"from",
"funding",
"tx",
"sufficient",
"(",
")",
"{",
"return",
"!",
"is",
"main",
"net",
"get",
"(",
")",
"|",
"|",
"fee",
"from",
"funding",
"tx",
"property",
"get",
"(",
")",
"compare",
"to",
"(",
"fee",
"policy",
"get",
"min",
"required",
"fee",
"for",
"funding",
"tx",
"(",
")",
")",
">",
"=",
"0",
";",
"}"
]
| [
"return",
"payment",
"accounts",
";"
]
|
[
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/"
]
| [
"return",
"amount",
";"
]
|
[
"deletes",
"web",
"app",
"directories",
"with",
"stale",
"data"
]
| [
"if",
"(",
"m",
"cleanup",
"task",
"!",
"=",
"null",
")",
"return",
"m",
"cleanup",
"task",
";",
"m",
"cleanup",
"task",
"=",
"new",
"async",
"task",
"<",
"void",
",",
"void",
",",
"void",
">",
"(",
")",
"{",
"@",
"override",
"protected",
"final",
"void",
"do",
"in",
"background",
"(",
"void",
"params",
")",
"{",
"set",
"<",
"file",
">",
"directories",
"to",
"delete",
"=",
"new",
"hash",
"set",
"<",
"file",
">",
"(",
")",
";",
"directories",
"to",
"delete",
"add",
"(",
"get",
"webapp",
"directory",
"(",
"context",
",",
"current",
"webapp",
"id",
")",
")",
";",
"boolean",
"should",
"delete",
"old",
"directories",
"=",
"build",
"version",
"sdk",
"int",
">",
"=",
"build",
"version",
"codes",
"lollipop",
";",
"if",
"(",
"should",
"delete",
"old",
"directories",
"&",
"&",
"s",
"must",
"clean",
"up",
"old",
"directories",
"get",
"and",
"set",
"(",
"false",
")",
")",
"{",
"find",
"stale",
"webapp",
"directories",
"(",
"context",
",",
"directories",
"to",
"delete",
")",
";",
"}",
"for",
"(",
"file",
"directory",
":",
"directories",
"to",
"delete",
")",
"{",
"if",
"(",
"is",
"cancelled",
"(",
")",
")",
"return",
"null",
";",
"file",
"utils",
"recursively",
"delete",
"file",
"(",
"directory",
")",
";",
"}",
"return",
"null",
";",
"}",
"}",
";",
"m",
"cleanup",
"task",
"execute",
"on",
"executor",
"(",
"async",
"task",
"thread",
"pool",
"executor",
")",
";",
"return",
"m",
"cleanup",
"task",
";"
]
|
[
"cancels",
"the",
"cleanup",
"task",
"if",
"one",
"exists"
]
| [
"if",
"(",
"m",
"cleanup",
"task",
"!",
"=",
"null",
")",
"m",
"cleanup",
"task",
"cancel",
"(",
"true",
")",
";"
]
|
[
"returns",
"the",
"directory",
"containing",
"all",
"of",
"chrome",
"s",
"web",
"app",
"data",
"creating",
"it",
"if",
"needed"
]
| [
"return",
"context",
"get",
"dir",
"(",
"webapp",
"directory",
"name",
",",
"context",
"mode",
"private",
")",
";"
]
|
[
"returns",
"a",
"set",
"of",
"intents",
"for",
"all",
"chrome",
"tasks",
"currently",
"known",
"by",
"the",
"activity",
"manager"
]
| [
"set",
"<",
"intent",
">",
"base",
"intents",
"=",
"new",
"hash",
"set",
"<",
"intent",
">",
"(",
")",
";",
"context",
"context",
"=",
"context",
"utils",
"get",
"application",
"context",
"(",
")",
";",
"activity",
"manager",
"manager",
"=",
"(",
"activity",
"manager",
")",
"context",
"get",
"system",
"service",
"(",
"context",
"activity",
"service",
")",
";",
"for",
"(",
"app",
"task",
"task",
":",
"manager",
"get",
"app",
"tasks",
"(",
")",
")",
"{",
"intent",
"intent",
"=",
"document",
"utils",
"get",
"base",
"intent",
"from",
"task",
"(",
"task",
")",
";",
"if",
"(",
"intent",
"!",
"=",
"null",
")",
"base",
"intents",
"add",
"(",
"intent",
")",
";",
"}",
"return",
"base",
"intents",
";"
]
|
[
"creates",
"a",
"{",
"@",
"code",
"g",
"l",
"f",
"w",
"framebuffer",
"size",
"callback",
"}",
"instance",
"from",
"the",
"specified",
"function",
"pointer"
]
| [
"g",
"l",
"f",
"w",
"framebuffer",
"size",
"callback",
"i",
"instance",
"=",
"callback",
"get",
"(",
"function",
"pointer",
")",
";",
"return",
"instance",
"instanceof",
"g",
"l",
"f",
"w",
"framebuffer",
"size",
"callback",
"?",
"(",
"g",
"l",
"f",
"w",
"framebuffer",
"size",
"callback",
")",
"instance",
":",
"new",
"container",
"(",
"function",
"pointer",
",",
"instance",
")",
";"
]
|
[
"like",
"{"
]
| [
"return",
"function",
"pointer",
"=",
"=",
"null",
"?",
"null",
":",
"create",
"(",
"function",
"pointer",
")",
";"
]
|
[
"creates",
"a",
"{"
]
| [
"return",
"instance",
"instanceof",
"g",
"l",
"f",
"w",
"framebuffer",
"size",
"callback",
"?",
"(",
"g",
"l",
"f",
"w",
"framebuffer",
"size",
"callback",
")",
"instance",
":",
"new",
"container",
"(",
"instance",
"address",
"(",
")",
",",
"instance",
")",
";"
]
|
[
"see",
"{"
]
| [
"glfw",
"set",
"framebuffer",
"size",
"callback",
"(",
"window",
",",
"this",
")",
";",
"return",
"this",
";"
]
|
[
"create",
"a",
"new",
"vector",
"with",
"just",
"the",
"valid",
"keys",
"in",
"and",
"return",
"it"
]
| [
"int",
"size",
";",
"if",
"(",
"start",
"<",
"end",
")",
"size",
"=",
"end",
"-",
"start",
";",
"else",
"size",
"=",
"kv",
"length",
"-",
"(",
"start",
"-",
"end",
")",
";",
"long",
"[",
"]",
"lv",
"=",
"new",
"long",
"[",
"size",
"]",
";",
"int",
"copya",
";",
"if",
"(",
"size",
">",
"kv",
"length",
"-",
"start",
")",
"copya",
"=",
"kv",
"length",
"-",
"start",
";",
"else",
"copya",
"=",
"size",
";",
"system",
"arraycopy",
"(",
"kv",
",",
"start",
",",
"lv",
",",
"0",
",",
"copya",
")",
";",
"if",
"(",
"copya",
"<",
"size",
")",
"{",
"system",
"arraycopy",
"(",
"kv",
",",
"0",
",",
"lv",
",",
"copya",
",",
"size",
"-",
"copya",
")",
";",
"}",
"return",
"lv",
";"
]
|
[
"/",
"*",
"could",
"binary",
"search",
"but",
"it",
"s",
"probably",
"the",
"first",
"one"
]
| [
"int",
"i",
"=",
"start",
";",
"while",
"(",
"i",
"!",
"=",
"end",
"&",
"&",
"kv",
"[",
"i",
"]",
"!",
"=",
"l",
")",
"if",
"(",
"i",
"=",
"=",
"(",
"kv",
"length",
"-",
"1",
")",
")",
"i",
"=",
"0",
";",
"else",
"i",
"+",
"+",
";",
"if",
"(",
"i",
"=",
"=",
"end",
")",
"return",
"-",
"1",
";",
"return",
"i",
";"
]
|
[
"asserts",
"that",
"the",
"specified",
"debug",
"result",
"key",
"does",
"or",
"does",
"not",
"exist",
"in",
"the",
"response",
"based",
"on",
"the",
"expected",
"boolean"
]
| [
"if",
"(",
"expected",
")",
"{",
"assert",
"in",
"debug",
"(",
"response",
",",
"key",
")",
";",
"}",
"else",
"{",
"assert",
"not",
"in",
"debug",
"(",
"response",
",",
"key",
")",
";",
"}"
]
|
[
"converts",
"the",
"given",
"data",
"to",
"be",
"safe",
"for",
"use",
"in",
"signed",
"u",
"r",
"ls",
"for",
"a",
"private",
"distribution",
"by",
"using",
"specialized",
"base",
"6",
"4",
"encoding"
]
| [
"byte",
"[",
"]",
"encoded",
"=",
"base",
"6",
"4",
"encode",
"(",
"bytes",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"encoded",
"length",
";",
"i",
"+",
"+",
")",
"{",
"switch",
"(",
"encoded",
"[",
"i",
"]",
")",
"{",
"case",
"'",
"+",
"'",
":",
"encoded",
"[",
"i",
"]",
"=",
"'",
"-",
"'",
";",
"continue",
";",
"case",
"'",
"=",
"'",
":",
"encoded",
"[",
"i",
"]",
"=",
"'",
"'",
";",
"continue",
";",
"case",
"'",
"/",
"'",
":",
"encoded",
"[",
"i",
"]",
"=",
"'",
"~",
"'",
";",
"continue",
";",
"default",
":",
"continue",
";",
"}",
"}",
"return",
"new",
"string",
"(",
"encoded",
",",
"utf8",
")",
";"
]
|
[
"converts",
"the",
"given",
"string",
"to",
"be",
"safe",
"for",
"use",
"in",
"signed",
"u",
"r",
"ls",
"for",
"a",
"private",
"distribution"
]
| [
"return",
"make",
"bytes",
"url",
"safe",
"(",
"str",
"get",
"bytes",
"(",
"string",
"utils",
"utf8",
")",
")",
";"
]
|
[
"/",
"*"
]
| [
"v",
"object",
"=",
"remove",
"(",
"key",
")",
";",
"super",
"put",
"(",
"key",
",",
"value",
")",
";",
"return",
"object",
";"
]
|
[
"/",
"*"
]
| [
"return",
"size",
"(",
")",
">",
"f",
"max",
"size",
";"
]
|
[
"/",
"*"
]
| [
"if",
"(",
"remove",
"(",
"o",
")",
")",
"{",
"super",
"add",
"(",
"o",
")",
";",
"return",
"false",
";",
"}",
"if",
"(",
"size",
"(",
")",
">",
"=",
"f",
"max",
"size",
")",
"remove",
"(",
"this",
"iterator",
"(",
")",
"next",
"(",
")",
")",
";",
"super",
"add",
"(",
"o",
")",
";",
"return",
"true",
";"
]
|
[
"returns",
"the",
"rank",
"of",
"a",
"type",
"in",
"the",
"history",
"in",
"[",
"0",
"0",
"&",
"nbsp",
";",
"1",
"0",
"]",
"the",
"rank",
"of",
"the",
"most",
"recently",
"selected",
"type",
"is",
"1",
"0",
"the",
"rank",
"of",
"any",
"type",
"that",
"is",
"not",
"remembered",
"is",
"zero"
]
| [
"if",
"(",
"f",
"history",
"=",
"=",
"null",
")",
"return",
"0",
"0f",
";",
"integer",
"integer",
"=",
"f",
"history",
"get",
"(",
"type",
")",
";",
"return",
"integer",
"=",
"=",
"null",
"?",
"0",
"0f",
":",
"integer",
"float",
"value",
"(",
")",
"/",
"f",
"history",
"size",
"(",
")",
";"
]
|
[
"returns",
"the",
"size",
"of",
"the",
"history"
]
| [
"return",
"f",
"history",
"=",
"=",
"null",
"?",
"0",
":",
"f",
"history",
"size",
"(",
")",
";"
]
|
[
"returns",
"the",
"list",
"of",
"remembered",
"types",
"ordered",
"by",
"recency",
"the",
"first",
"element",
"is",
"the",
"<",
"i",
">",
"least",
"<",
"/",
"i",
">",
"the",
"last",
"element",
"the",
"<",
"i",
">",
"most",
"<",
"/",
"i",
">",
"recently",
"remembered",
"type"
]
| [
"if",
"(",
"f",
"history",
"=",
"=",
"null",
")",
"return",
"collections",
"empty",
"list",
"(",
")",
";",
"if",
"(",
"f",
"list",
"=",
"=",
"null",
")",
"{",
"f",
"list",
"=",
"collections",
"unmodifiable",
"list",
"(",
"new",
"array",
"list",
"<",
"string",
">",
"(",
"f",
"history",
"key",
"set",
"(",
")",
")",
")",
";",
"}",
"return",
"f",
"list",
";"
]
|
[
"returns",
"the",
"{",
"@",
"link",
"r",
"h",
"s",
"history",
"history",
"}",
"of",
"the",
"types",
"that",
"have",
"been",
"selected",
"most",
"recently",
"as",
"right",
"hand",
"sides",
"for",
"the",
"given",
"type"
]
| [
"m",
"r",
"u",
"set",
"<",
"string",
">",
"rhs",
"cache",
"=",
"f",
"l",
"h",
"s",
"cache",
"get",
"(",
"lhs",
")",
";",
"if",
"(",
"rhs",
"cache",
"!",
"=",
"null",
")",
"{",
"int",
"count",
"=",
"rhs",
"cache",
"size",
"(",
")",
";",
"linked",
"hash",
"map",
"<",
"string",
",",
"integer",
">",
"history",
"=",
"new",
"linked",
"hash",
"map",
"<",
"string",
",",
"integer",
">",
"(",
"(",
"int",
")",
"(",
"count",
"/",
"0",
"75",
")",
")",
";",
"int",
"rank",
"=",
"1",
";",
"for",
"(",
"iterator",
"<",
"string",
">",
"it",
"=",
"rhs",
"cache",
"iterator",
"(",
")",
";",
"it",
"has",
"next",
"(",
")",
";",
"rank",
"+",
"+",
")",
"{",
"string",
"type",
"=",
"it",
"next",
"(",
")",
";",
"history",
"put",
"(",
"type",
",",
"new",
"integer",
"(",
"rank",
")",
")",
";",
"}",
"return",
"new",
"r",
"h",
"s",
"history",
"(",
"history",
")",
";",
"}",
"return",
"empty",
"history",
";"
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.