docstring_tokens
list | code_tokens
list |
---|---|
[
"<",
"p",
">",
"one",
"or",
"more",
"of",
"the",
"segment",
"documents",
"is",
"in",
"progress",
"<",
"/",
"p",
">"
]
| [
"return",
"this",
"is",
"partial",
";"
]
|
[
"<",
"p",
">",
"one",
"or",
"more",
"of",
"the",
"segment",
"documents",
"is",
"in",
"progress",
"<",
"/",
"p",
">"
]
| [
"set",
"is",
"partial",
"(",
"is",
"partial",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"one",
"or",
"more",
"of",
"the",
"segment",
"documents",
"is",
"in",
"progress",
"<",
"/",
"p",
">"
]
| [
"return",
"this",
"is",
"partial",
";"
]
|
[
"<",
"p",
">",
"information",
"about",
"the",
"http",
"request",
"served",
"by",
"the",
"trace",
"<",
"/",
"p",
">"
]
| [
"return",
"this",
"http",
";"
]
|
[
"<",
"p",
">",
"information",
"about",
"the",
"http",
"request",
"served",
"by",
"the",
"trace",
"<",
"/",
"p",
">"
]
| [
"set",
"http",
"(",
"http",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"annotations",
"from",
"the",
"trace",
"s",
"segment",
"documents",
"<",
"/",
"p",
">"
]
| [
"return",
"annotations",
";"
]
|
[
"<",
"p",
">",
"annotations",
"from",
"the",
"trace",
"s",
"segment",
"documents",
"<",
"/",
"p",
">"
]
| [
"this",
"annotations",
"=",
"annotations",
";"
]
|
[
"<",
"p",
">",
"annotations",
"from",
"the",
"trace",
"s",
"segment",
"documents",
"<",
"/",
"p",
">"
]
| [
"set",
"annotations",
"(",
"annotations",
")",
";",
"return",
"this",
";"
]
|
[
"removes",
"all",
"the",
"entries",
"added",
"into",
"annotations"
]
| [
"this",
"annotations",
"=",
"null",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"users",
"from",
"the",
"trace",
"s",
"segment",
"documents",
"<",
"/",
"p",
">"
]
| [
"return",
"users",
";"
]
|
[
"<",
"p",
">",
"users",
"from",
"the",
"trace",
"s",
"segment",
"documents",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"users",
"=",
"=",
"null",
")",
"{",
"this",
"users",
"=",
"null",
";",
"return",
";",
"}",
"this",
"users",
"=",
"new",
"java",
"util",
"array",
"list",
"<",
"trace",
"user",
">",
"(",
"users",
")",
";"
]
|
[
"<",
"p",
">",
"users",
"from",
"the",
"trace",
"s",
"segment",
"documents",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"users",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"users",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"this",
"users",
"=",
"=",
"null",
")",
"{",
"set",
"users",
"(",
"new",
"java",
"util",
"array",
"list",
"<",
"trace",
"user",
">",
"(",
"users",
"length",
")",
")",
";",
"}",
"for",
"(",
"trace",
"user",
"ele",
":",
"users",
")",
"{",
"this",
"users",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"users",
"from",
"the",
"trace",
"s",
"segment",
"documents",
"<",
"/",
"p",
">"
]
| [
"set",
"users",
"(",
"users",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"service",
"i",
"ds",
"from",
"the",
"trace",
"s",
"segment",
"documents",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"service",
"ids",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"service",
"ids",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"this",
"service",
"ids",
"=",
"=",
"null",
")",
"{",
"set",
"service",
"ids",
"(",
"new",
"java",
"util",
"array",
"list",
"<",
"service",
"id",
">",
"(",
"service",
"ids",
"length",
")",
")",
";",
"}",
"for",
"(",
"service",
"id",
"ele",
":",
"service",
"ids",
")",
"{",
"this",
"service",
"ids",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"service",
"i",
"ds",
"from",
"the",
"trace",
"s",
"segment",
"documents",
"<",
"/",
"p",
">"
]
| [
"set",
"service",
"ids",
"(",
"service",
"ids",
")",
";",
"return",
"this",
";"
]
|
[
"call",
"this",
"only",
"from",
"within",
"after",
"position",
"to",
"insert",
"a",
"new",
"token",
"after",
"calling",
"this",
"you",
"should",
"set",
"any",
"necessary",
"token",
"you",
"need"
]
| [
"if",
"(",
"token",
"pending",
")",
"{",
"positions",
"get",
"(",
"input",
"pos",
")",
"add",
"(",
"capture",
"state",
"(",
")",
")",
";",
"token",
"pending",
"=",
"false",
";",
"}",
"assert",
"!",
"insert",
"pending",
";",
"insert",
"pending",
"=",
"true",
";"
]
|
[
"this",
"is",
"called",
"when",
"all",
"input",
"tokens",
"leaving",
"a",
"given",
"position",
"have",
"been",
"returned",
"override",
"this",
"and",
"call",
"insert",
"token",
"and",
"then",
"set",
"whichever",
"token",
"s",
"attributes",
"you",
"want",
"if",
"you",
"want",
"to",
"inject",
"a",
"token",
"starting",
"from",
"this",
"position"
]
| []
|
[
"todo",
":",
"close",
"(",
")",
"?"
]
| [
"super",
"reset",
"(",
")",
";",
"positions",
"reset",
"(",
")",
";",
"input",
"pos",
"=",
"-",
"1",
";",
"output",
"pos",
"=",
"0",
";",
"token",
"pending",
"=",
"false",
";",
"end",
"=",
"false",
";"
]
|
[
"called",
"when",
"the",
"connection",
"goes",
"idle"
]
| [
"parsing",
"=",
"false",
";",
"handle",
"schedule",
"(",
"request",
"idle",
"timeout",
")",
";"
]
|
[
"called",
"when",
"a",
"request",
"is",
"received",
"however",
"it",
"is",
"not",
"parsed",
"in",
"a",
"single",
"read",
"(",
")",
"call",
"this",
"starts",
"a",
"timer",
"and",
"if",
"the",
"request",
"is",
"not",
"parsed",
"within",
"this",
"time",
"then",
"the",
"connection",
"is",
"closed"
]
| [
"if",
"(",
"!",
"parsing",
")",
"{",
"parsing",
"=",
"true",
";",
"handle",
"schedule",
"(",
"request",
"parse",
"timeout",
")",
";",
"}"
]
|
[
"cancels",
"timeout",
"countdown",
"<",
"p",
">",
"should",
"be",
"called",
"after",
"parsing",
"is",
"complete",
"(",
"to",
"avoid",
"closing",
"connection",
"during",
"other",
"activities",
")",
"<",
"/",
"p",
">"
]
| [
"expire",
"time",
"=",
"-",
"1",
";",
"parsing",
"=",
"false",
";"
]
|
[
"handles",
"the",
"given",
"exception",
"using",
"the",
"{",
"@",
"link",
"#",
"get",
"exception",
"handler",
"(",
")",
"}"
]
| [
"get",
"exception",
"handler",
"(",
")",
"handle",
"exception",
"(",
"t",
")",
";"
]
|
[
"syntactic",
"sugar",
"for",
"doing",
"<",
"code",
">",
"new",
"request",
"logging",
"filter",
"(",
"stream",
")",
"<",
"/",
"code",
">"
]
| [
"return",
"new",
"request",
"logging",
"filter",
"(",
"stream",
")",
";"
]
|
[
"deletes",
"the",
"given",
"index",
"synchronously"
]
| [
"delete",
"index",
"(",
"rest",
"client",
",",
"connection",
"configuration",
"get",
"index",
"(",
")",
")",
";"
]
|
[
"forces",
"a",
"refresh",
"of",
"the",
"given",
"index",
"to",
"make",
"recently",
"inserted",
"documents",
"available",
"for",
"search",
"using",
"the",
"index",
"and",
"type",
"named",
"in",
"the",
"connection",
"configuration"
]
| [
"return",
"refresh",
"index",
"and",
"get",
"current",
"num",
"docs",
"(",
"rest",
"client",
",",
"connection",
"configuration",
"get",
"index",
"(",
")",
",",
"connection",
"configuration",
"get",
"type",
"(",
")",
")",
";"
]
|
[
"<",
"p",
">",
"the",
"public",
"key",
"<",
"/",
"p",
">"
]
| [
"set",
"public",
"key",
"(",
"public",
"key",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"private",
"key",
"<",
"/",
"p",
">"
]
| [
"set",
"private",
"key",
"(",
"private",
"key",
")",
";",
"return",
"this",
";"
]
|
[
"creates",
"arguments",
"holder",
"with",
"required",
"parameters"
]
| [
"return",
"new",
"remove",
"network",
"params",
"(",
")",
"with",
"network",
"id",
"(",
"net",
"id",
")",
";"
]
|
[
"adds",
"network",
"identifier",
"to",
"this",
"parameters"
]
| [
"require",
"non",
"null",
"(",
"net",
"id",
")",
";",
"this",
"net",
"id",
"=",
"net",
"id",
";",
"return",
"this",
";"
]
|
[
"used",
"to",
"prepare",
"the",
"environment",
"for",
"testing",
"(",
"e",
"g",
"starting",
"a",
"jta",
"transaction",
"or",
"obtaining",
"a",
"user",
"-",
"supplied",
"connection",
")"
]
| []
|
[
"used",
"to",
"cleanup",
"the",
"environment",
"after",
"testing",
"(",
"e",
"g",
"ending",
"a",
"jta",
"transaction",
"or",
"closing",
"a",
"user",
"-",
"supplied",
"connection",
")"
]
| []
|
[
"used",
"to",
"get",
"a",
"session",
"configured",
"based",
"on",
"the",
"config",
"scenario",
"being",
"tested"
]
| [
"protected",
"abstract",
"session",
"get",
"session",
"under",
"test",
"(",
")",
"throws",
"throwable",
";"
]
|
[
"used",
"to",
"release",
"a",
"{",
"@",
"link",
"#",
"get",
"session",
"under",
"test",
"fixture",
"session",
"}",
"overridden",
"to",
"perform",
"session",
"releasing",
"/",
"testing",
"specific",
"to",
"the",
"given",
"config",
"scenario",
"being",
"tested"
]
| [
"if",
"(",
"session",
"!",
"=",
"null",
"&",
"&",
"session",
"is",
"open",
"(",
")",
")",
"{",
"try",
"{",
"session",
"close",
"(",
")",
";",
"}",
"catch",
"(",
"throwable",
"ignore",
")",
"{",
"}",
"}"
]
|
[
"perform",
"any",
"steps",
"needed",
"to",
"reconnect",
"a",
"fixture",
"session"
]
| [
"protected",
"abstract",
"void",
"reconnect",
"(",
"session",
"session",
")",
"throws",
"throwable",
";"
]
|
[
"check",
"the",
"state",
"of",
"a",
"fixture",
"session",
"after",
"serialization",
"as",
"well",
"as",
"validate",
"the",
"environmental",
"state",
"after",
"session",
"serialization"
]
| []
|
[
"check",
"the",
"state",
"of",
"a",
"fixture",
"session",
"after",
"deserialization",
"as",
"well",
"as",
"validate",
"the",
"environmental",
"state",
"after",
"session",
"deserialization"
]
| []
|
[
"test",
"that",
"a",
"session",
"which",
"has",
"been",
"manually",
"disconnected",
"will",
"be",
"allowed",
"to",
"serialize"
]
| [
"prepare",
"(",
")",
";",
"session",
"session",
"under",
"test",
"=",
"get",
"session",
"under",
"test",
"(",
")",
";",
"disconnect",
"(",
"session",
"under",
"test",
")",
";",
"serialization",
"helper",
"serialize",
"(",
"session",
"under",
"test",
")",
";",
"check",
"serialized",
"state",
"(",
"session",
"under",
"test",
")",
";",
"release",
"(",
"session",
"under",
"test",
")",
";",
"done",
"(",
")",
";"
]
|
[
"test",
"that",
"the",
"legacy",
"manual",
"disconnect",
"(",
")",
"/",
"reconnect",
"(",
")",
"chain",
"works",
"as",
"expected",
"in",
"the",
"given",
"environment"
]
| [
"prepare",
"(",
")",
";",
"session",
"session",
"under",
"test",
"=",
"get",
"session",
"under",
"test",
"(",
")",
";",
"disconnect",
"(",
"session",
"under",
"test",
")",
";",
"byte",
"[",
"]",
"bytes",
"=",
"serialization",
"helper",
"serialize",
"(",
"session",
"under",
"test",
")",
";",
"check",
"serialized",
"state",
"(",
"session",
"under",
"test",
")",
";",
"session",
"s",
"2",
"=",
"(",
"session",
")",
"serialization",
"helper",
"deserialize",
"(",
"bytes",
")",
";",
"check",
"deserialized",
"state",
"(",
"s",
"2",
")",
";",
"reconnect",
"(",
"s",
"2",
")",
";",
"disconnect",
"(",
"s",
"2",
")",
";",
"reconnect",
"(",
"s",
"2",
")",
";",
"release",
"(",
"session",
"under",
"test",
")",
";",
"release",
"(",
"s",
"2",
")",
";",
"done",
"(",
")",
";"
]
|
[
"sets",
"this",
"rotation",
"to",
"the",
"given",
"quaternion",
"value"
]
| [
"this",
"rot",
"set",
"(",
"rot",
")",
";",
"return",
"this",
";"
]
|
[
"sets",
"this",
"translation",
"to",
"the",
"given",
"value"
]
| [
"this",
"translation",
"set",
"(",
"trans",
")",
";",
"return",
"this",
";"
]
|
[
"return",
"the",
"translation",
"vector",
"in",
"this",
"matrix"
]
| [
"return",
"translation",
";"
]
|
[
"sets",
"this",
"scale",
"to",
"the",
"given",
"value"
]
| [
"this",
"scale",
"set",
"(",
"scale",
")",
";",
"return",
"this",
";"
]
|
[
"sets",
"this",
"scale",
"to",
"the",
"given",
"value"
]
| [
"this",
"scale",
"set",
"(",
"scale",
",",
"scale",
",",
"scale",
")",
";",
"return",
"this",
";"
]
|
[
"stores",
"this",
"translation",
"value",
"into",
"the",
"given",
"vector",
"3f",
"if",
"trans",
"is",
"null",
"a",
"new",
"vector",
"3f",
"is",
"created",
"to",
"hold",
"the",
"value",
"the",
"value",
"once",
"stored",
"is",
"returned"
]
| [
"if",
"(",
"trans",
"=",
"=",
"null",
")",
"trans",
"=",
"new",
"vector",
"3f",
"(",
")",
";",
"trans",
"set",
"(",
"this",
"translation",
")",
";",
"return",
"trans",
";"
]
|
[
"stores",
"this",
"rotation",
"value",
"into",
"the",
"given",
"quaternion",
"if",
"quat",
"is",
"null",
"a",
"new",
"quaternion",
"is",
"created",
"to",
"hold",
"the",
"value",
"the",
"value",
"once",
"stored",
"is",
"returned"
]
| [
"if",
"(",
"quat",
"=",
"=",
"null",
")",
"quat",
"=",
"new",
"quaternion",
"(",
")",
";",
"quat",
"set",
"(",
"rot",
")",
";",
"return",
"quat",
";"
]
|
[
"return",
"the",
"rotation",
"quaternion",
"in",
"this",
"matrix"
]
| [
"return",
"rot",
";"
]
|
[
"stores",
"this",
"scale",
"value",
"into",
"the",
"given",
"vector",
"3f",
"if",
"scale",
"is",
"null",
"a",
"new",
"vector",
"3f",
"is",
"created",
"to",
"hold",
"the",
"value",
"the",
"value",
"once",
"stored",
"is",
"returned"
]
| [
"if",
"(",
"scale",
"=",
"=",
"null",
")",
"scale",
"=",
"new",
"vector",
"3f",
"(",
")",
";",
"scale",
"set",
"(",
"this",
"scale",
")",
";",
"return",
"scale",
";"
]
|
[
"sets",
"this",
"transform",
"to",
"the",
"interpolation",
"between",
"the",
"first",
"transform",
"and",
"the",
"second",
"by",
"delta",
"amount"
]
| [
"t",
"1",
"rot",
"nlerp",
"(",
"t",
"2",
"rot",
",",
"delta",
")",
";",
"this",
"rot",
"set",
"(",
"t",
"1",
"rot",
")",
";",
"this",
"translation",
"interpolate",
"local",
"(",
"t",
"1",
"translation",
",",
"t",
"2",
"translation",
",",
"delta",
")",
";",
"this",
"scale",
"interpolate",
"local",
"(",
"t",
"1",
"scale",
",",
"t",
"2",
"scale",
",",
"delta",
")",
";"
]
|
[
"sets",
"this",
"matrix",
"s",
"translation",
"to",
"the",
"given",
"x",
"y",
"z",
"values"
]
| [
"translation",
"set",
"(",
"x",
",",
"y",
",",
"z",
")",
";",
"return",
"this",
";"
]
|
[
"sets",
"this",
"matrix",
"s",
"scale",
"to",
"the",
"given",
"x",
"y",
"z",
"values"
]
| [
"scale",
"set",
"(",
"x",
",",
"y",
",",
"z",
")",
";",
"return",
"this",
";"
]
|
[
"loads",
"the",
"identity",
"equal",
"to",
"translation",
"=",
"0",
"0",
"0",
"scale",
"=",
"1",
"1",
"1",
"rot",
"=",
"0",
"0",
"0",
"1"
]
| [
"translation",
"set",
"(",
"0",
",",
"0",
",",
"0",
")",
";",
"scale",
"set",
"(",
"1",
",",
"1",
",",
"1",
")",
";",
"rot",
"set",
"(",
"0",
",",
"0",
",",
"0",
",",
"1",
")",
";"
]
|
[
"test",
"for",
"exact",
"identity"
]
| [
"return",
"translation",
"x",
"=",
"=",
"0f",
"&",
"&",
"translation",
"y",
"=",
"=",
"0f",
"&",
"&",
"translation",
"z",
"=",
"=",
"0f",
"&",
"&",
"scale",
"x",
"=",
"=",
"1f",
"&",
"&",
"scale",
"y",
"=",
"=",
"1f",
"&",
"&",
"scale",
"z",
"=",
"=",
"1f",
"&",
"&",
"rot",
"w",
"=",
"=",
"1f",
"&",
"&",
"rot",
"x",
"=",
"=",
"0f",
"&",
"&",
"rot",
"y",
"=",
"=",
"0f",
"&",
"&",
"rot",
"z",
"=",
"=",
"0f",
";"
]
|
[
"sets",
"this",
"matrix",
"to",
"be",
"equal",
"to",
"the",
"given",
"matrix"
]
| [
"this",
"translation",
"set",
"(",
"matrix",
"quat",
"translation",
")",
";",
"this",
"rot",
"set",
"(",
"matrix",
"quat",
"rot",
")",
";",
"this",
"scale",
"set",
"(",
"matrix",
"quat",
"scale",
")",
";",
"return",
"this",
";"
]
|
[
"write",
"typeface",
"to",
"parcel"
]
| [
"parcel",
"write",
"int",
"(",
"process",
"my",
"pid",
"(",
")",
")",
";",
"synchronized",
"(",
"s",
"lock",
")",
"{",
"final",
"int",
"id",
";",
"final",
"integer",
"i",
"=",
"s",
"typeface",
"map",
"get",
"(",
"typeface",
")",
";",
"if",
"(",
"i",
"!",
"=",
"null",
")",
"{",
"id",
"=",
"i",
"int",
"value",
"(",
")",
";",
"}",
"else",
"{",
"id",
"=",
"s",
"storage",
"size",
"(",
")",
";",
"s",
"storage",
"add",
"(",
"typeface",
")",
";",
"s",
"typeface",
"map",
"put",
"(",
"typeface",
",",
"id",
")",
";",
"}",
"parcel",
"write",
"int",
"(",
"id",
")",
";",
"}"
]
|
[
"removes",
"all",
"values"
]
| [
"m",
"values",
"clear",
"(",
")",
";"
]
|
[
"returns",
"true",
"if",
"this",
"object",
"has",
"the",
"named",
"value"
]
| [
"return",
"m",
"values",
"contains",
"key",
"(",
"key",
")",
";"
]
|
[
"gets",
"a",
"value",
"valid",
"value",
"types",
"are",
"{",
"@",
"link",
"string",
"}",
"{",
"@",
"link",
"boolean",
"}",
"{",
"@",
"link",
"number",
"}",
"and",
"{",
"@",
"code",
"byte",
"[",
"]",
"}",
"implementations"
]
| [
"return",
"m",
"values",
"get",
"(",
"key",
")",
";"
]
|
[
"indicates",
"whether",
"this",
"collection",
"is",
"empty"
]
| [
"return",
"m",
"values",
"is",
"empty",
"(",
")",
";"
]
|
[
"returns",
"a",
"set",
"of",
"all",
"of",
"the",
"keys"
]
| [
"return",
"m",
"values",
"key",
"set",
"(",
")",
";"
]
|
[
"remove",
"a",
"single",
"value"
]
| [
"m",
"values",
"remove",
"(",
"key",
")",
";"
]
|
[
"schedule",
"a",
"single",
"lifecycle",
"request",
"or",
"callback",
"to",
"client",
"activity",
"@",
"param",
"client",
"target",
"client",
"@",
"param",
"activity",
"token",
"target",
"activity",
"token",
"@",
"param",
"state",
"request",
"a",
"request",
"to",
"move",
"target",
"activity",
"to",
"a",
"desired",
"lifecycle",
"state",
"@",
"throws",
"remote",
"exception"
]
| [
"final",
"client",
"transaction",
"client",
"transaction",
"=",
"transaction",
"with",
"state",
"(",
"client",
",",
"activity",
"token",
",",
"state",
"request",
")",
";",
"schedule",
"transaction",
"(",
"client",
"transaction",
")",
";"
]
|
[
"schedule",
"a",
"single",
"callback",
"delivery",
"to",
"client",
"activity",
"@",
"param",
"client",
"target",
"client",
"@",
"param",
"activity",
"token",
"target",
"activity",
"token",
"@",
"param",
"callback",
"a",
"request",
"to",
"deliver",
"a",
"callback",
"@",
"throws",
"remote",
"exception"
]
| [
"final",
"client",
"transaction",
"client",
"transaction",
"=",
"transaction",
"with",
"callback",
"(",
"client",
",",
"activity",
"token",
",",
"callback",
")",
";",
"schedule",
"transaction",
"(",
"client",
"transaction",
")",
";"
]
|
[
"@",
"return",
"a",
"new",
"instance",
"of",
"{",
"@",
"link",
"client",
"transaction",
"}",
"with",
"a",
"single",
"lifecycle",
"state",
"request"
]
| [
"final",
"client",
"transaction",
"client",
"transaction",
"=",
"client",
"transaction",
"obtain",
"(",
"client",
",",
"activity",
"token",
")",
";",
"client",
"transaction",
"set",
"lifecycle",
"state",
"request",
"(",
"state",
"request",
")",
";",
"return",
"client",
"transaction",
";"
]
|
[
"@",
"return",
"a",
"new",
"instance",
"of",
"{",
"@",
"link",
"client",
"transaction",
"}",
"with",
"a",
"single",
"callback",
"invocation"
]
| [
"final",
"client",
"transaction",
"client",
"transaction",
"=",
"client",
"transaction",
"obtain",
"(",
"client",
",",
"activity",
"token",
")",
";",
"client",
"transaction",
"add",
"callback",
"(",
"callback",
")",
";",
"return",
"client",
"transaction",
";"
]
|
[
"returns",
"a",
"new",
"{"
]
| [
"return",
"wrap",
"(",
"v",
"r",
"event",
"web",
"console",
"class",
",",
"address",
")",
";"
]
|
[
"like",
"{"
]
| [
"return",
"address",
"=",
"=",
"null",
"?",
"null",
":",
"wrap",
"(",
"v",
"r",
"event",
"web",
"console",
"class",
",",
"address",
")",
";"
]
|
[
"create",
"a",
"{",
"@",
"link",
"v",
"r",
"event",
"web",
"console",
"buffer",
"}",
"instance",
"at",
"the",
"specified",
"memory"
]
| [
"return",
"wrap",
"(",
"buffer",
"class",
",",
"address",
",",
"capacity",
")",
";"
]
|
[
"like",
"{"
]
| [
"return",
"address",
"=",
"=",
"null",
"?",
"null",
":",
"wrap",
"(",
"buffer",
"class",
",",
"address",
",",
"capacity",
")",
";"
]
|
[
"unsafe",
"version",
"of",
"{"
]
| [
"return",
"unsafe",
"get",
"long",
"(",
"null",
",",
"struct",
"+",
"v",
"r",
"event",
"web",
"console",
"webconsolehandle",
")",
";"
]
|
[
"todo",
":",
"implement",
"method"
]
| [
"throw",
"new",
"not",
"yet",
"implemented",
"for",
"exchange",
"exception",
"(",
")",
";"
]
|
[
"todo",
":",
"implement",
"method"
]
| [
"throw",
"new",
"not",
"yet",
"implemented",
"for",
"exchange",
"exception",
"(",
")",
";"
]
|
[
"return",
"the",
"encapsulated",
"ip",
"address"
]
| [
"return",
"ip",
"address",
";"
]
|
[
"return",
"the",
"encapsulated",
"subnet",
"mask"
]
| [
"return",
"ip",
"subnet",
"mask",
";"
]
|
[
"return",
"the",
"extended",
"extended",
"network",
"prefix"
]
| [
"return",
"extended",
"network",
"prefix",
";"
]
|
[
"compute",
"the",
"extended",
"network",
"prefix",
"from",
"the",
"ip",
"subnet",
"mask"
]
| [
"int",
"result",
"=",
"0",
";",
"int",
"tmp",
"=",
"mask",
"get",
"i",
"p",
"address",
"(",
")",
";",
"while",
"(",
"(",
"tmp",
"&",
"0x",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"1",
")",
"=",
"=",
"0x",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"1",
")",
"{",
"result",
"+",
"+",
";",
"tmp",
"=",
"tmp",
">",
">",
">",
"1",
";",
"}",
"if",
"(",
"tmp",
"!",
"=",
"0",
")",
"{",
"return",
"-",
"1",
";",
"}",
"return",
"result",
";"
]
|
[
"check",
"if",
"the",
"specified",
"ip",
"address",
"is",
"in",
"the",
"encapsulated",
"range"
]
| [
"if",
"(",
"ip",
"subnet",
"mask",
"=",
"=",
"null",
")",
"{",
"return",
"this",
"ip",
"address",
"equals",
"(",
"address",
")",
";",
"}",
"int",
"result",
"1",
"=",
"address",
"get",
"i",
"p",
"address",
"(",
")",
"&",
"ip",
"subnet",
"mask",
"get",
"i",
"p",
"address",
"(",
")",
";",
"int",
"result",
"2",
"=",
"ip",
"address",
"get",
"i",
"p",
"address",
"(",
")",
"&",
"ip",
"subnet",
"mask",
"get",
"i",
"p",
"address",
"(",
")",
";",
"return",
"result",
"1",
"=",
"=",
"result",
"2",
";"
]
|
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"log",
"group",
"<",
"/",
"p",
">"
]
| [
"set",
"log",
"group",
"name",
"(",
"log",
"group",
"name",
")",
";",
"return",
"this",
";"
]
|
[
"some",
"overloaded",
"methods"
]
| [
"assert",
"true",
"(",
"true",
")",
";"
]
|
[
"this",
"test",
"must",
"fail",
"since",
"{"
]
| [
"/",
"*",
"no",
"-",
"op",
"*",
"/"
]
|
[
"this",
"set",
"-",
"up",
"/",
"tear",
"-",
"down",
"method",
"is",
"here",
"to",
"verify",
"that",
"{",
"@",
"code",
"@",
"before",
"each",
"}",
"and",
"{",
"@",
"code",
"@",
"after",
"each",
"}",
"methods",
"are",
"properly",
"invoked",
"using",
"the",
"same",
"{",
"@",
"code",
"extension",
"registry",
"}",
"as",
"the",
"one",
"used",
"for",
"the",
"corresponding",
"{",
"@",
"code",
"@",
"test",
"}",
"method"
]
| [
"assert",
"not",
"null",
"(",
"custom",
"type",
")",
";",
"assert",
"not",
"null",
"(",
"value",
")",
";"
]
|
[
"gets",
"registered",
"service",
"for",
"consent"
]
| [
"val",
"service",
"to",
"use",
"=",
"this",
"authentication",
"request",
"service",
"selection",
"strategies",
"resolve",
"service",
"(",
"service",
")",
";",
"val",
"registered",
"service",
"=",
"this",
"services",
"manager",
"find",
"service",
"by",
"(",
"service",
"to",
"use",
")",
";",
"registered",
"service",
"access",
"strategy",
"utils",
"ensure",
"service",
"access",
"is",
"allowed",
"(",
"service",
",",
"registered",
"service",
")",
";",
"return",
"registered",
"service",
";"
]
|
[
"used",
"to",
"deliver",
"a",
"progress",
"event",
"to",
"the",
"given",
"listener"
]
| [
"if",
"(",
"listener",
"=",
"=",
"progress",
"listener",
"noop",
"|",
"|",
"listener",
"=",
"=",
"null",
"|",
"|",
"type",
"=",
"=",
"null",
")",
"{",
"return",
"null",
";",
"}",
"return",
"deliver",
"event",
"(",
"listener",
",",
"new",
"progress",
"event",
"(",
"type",
")",
")",
";"
]
|
[
"convenient",
"method",
"to",
"publish",
"a",
"request",
"content",
"length",
"event",
"to",
"the",
"given",
"listener"
]
| [
"return",
"publish",
"byte",
"count",
"event",
"(",
"listener",
",",
"request",
"content",
"length",
"event",
",",
"bytes",
")",
";"
]
|
[
"convenient",
"method",
"to",
"publish",
"a",
"response",
"content",
"length",
"event",
"to",
"the",
"given",
"listener"
]
| [
"return",
"publish",
"byte",
"count",
"event",
"(",
"listener",
",",
"response",
"content",
"length",
"event",
",",
"bytes",
")",
";"
]
|
[
"convenient",
"method",
"to",
"publish",
"a",
"request",
"byte",
"transfer",
"event",
"to",
"the",
"given",
"listener"
]
| [
"return",
"publish",
"byte",
"count",
"event",
"(",
"listener",
",",
"request",
"byte",
"transfer",
"event",
",",
"bytes",
")",
";"
]
|
[
"convenient",
"method",
"to",
"publish",
"a",
"response",
"byte",
"transfer",
"event",
"to",
"the",
"given",
"listener"
]
| [
"return",
"publish",
"byte",
"count",
"event",
"(",
"listener",
",",
"response",
"byte",
"transfer",
"event",
",",
"bytes",
")",
";"
]
|
[
"convenient",
"method",
"to",
"publish",
"a",
"request",
"reset",
"event",
"to",
"the",
"given",
"listener"
]
| [
"return",
"publish",
"reset",
"event",
"(",
"listener",
",",
"http",
"request",
"content",
"reset",
"event",
",",
"bytes",
"reset",
")",
";"
]
|
[
"convenient",
"method",
"to",
"publish",
"a",
"response",
"reset",
"event",
"to",
"the",
"given",
"listener"
]
| [
"return",
"publish",
"reset",
"event",
"(",
"listener",
",",
"http",
"response",
"content",
"reset",
"event",
",",
"bytes",
"reset",
")",
";"
]
|
[
"convenient",
"method",
"to",
"publish",
"a",
"response",
"bytes",
"discard",
"event",
"to",
"the",
"given",
"listener"
]
| [
"return",
"publish",
"reset",
"event",
"(",
"listener",
",",
"progress",
"event",
"type",
"response",
"byte",
"discard",
"event",
",",
"bytes",
"discarded",
")",
";"
]
|
[
"returns",
"the",
"executor",
"service",
"used",
"for",
"performing",
"the",
"callbacks"
]
| [
"return",
"lazy",
"holder",
"executor",
";"
]
|
[
"for",
"internal",
"testing",
"and",
"backward",
"compatibility",
"only",
"this",
"method",
"blocks",
"until",
"all",
"the",
"submitted",
"callbacks",
"are",
"executed",
"listeners",
"should",
"never",
"block",
"so",
"this",
"method",
"should",
"never",
"be",
"used"
]
| [
"if",
"(",
"latest",
"future",
"task",
"!",
"=",
"null",
")",
"{",
"latest",
"future",
"task",
"get",
"(",
")",
";",
"}"
]
|
[
"can",
"be",
"used",
"to",
"shutdown",
"the",
"(",
"legacy",
")",
"executor",
"<",
"p",
">",
"however",
"the",
"recommended",
"best",
"practice",
"is",
"to",
"always",
"make",
"use",
"of",
"progress",
"listeners",
"that",
"are",
"short",
"-",
"lived",
"(",
"ie",
"do",
"not",
"block",
")",
"and",
"are",
"subclasses",
"of",
"either",
"{",
"@",
"link",
"sync",
"progress",
"listener",
"}",
"or",
"<",
"code",
">",
"s",
"3",
"sync",
"progress",
"listener",
"<",
"/",
"code",
">",
"that",
"way",
"the",
"progress",
"publisher",
"(",
"legacy",
")",
"thread",
"will",
"never",
"be",
"activated",
"in",
"the",
"first",
"place"
]
| [
"if",
"(",
"now",
")",
"lazy",
"holder",
"executor",
"shutdown",
"now",
"(",
")",
";",
"else",
"lazy",
"holder",
"executor",
"shutdown",
"(",
")",
";"
]
|
[
"add",
"a",
"new",
"column",
"definition"
]
| [
"string",
"type",
"name",
"=",
"configuration",
"get",
"type",
"name",
"(",
"type",
")",
";",
"columns",
"add",
"(",
"new",
"column",
"data",
"(",
"templates",
"quote",
"identifier",
"(",
"name",
")",
",",
"type",
"name",
")",
")",
";",
"return",
"this",
";"
]
|
[
"set",
"the",
"last",
"added",
"column",
"to",
"not",
"null"
]
| [
"last",
"column",
"(",
")",
"set",
"null",
"allowed",
"(",
"false",
")",
";",
"return",
"this",
";"
]
|
[
"set",
"the",
"size",
"of",
"the",
"last",
"column",
"s",
"type"
]
| [
"last",
"column",
"(",
")",
"set",
"size",
"(",
"size",
")",
";",
"return",
"this",
";"
]
|
[
"set",
"the",
"last",
"column",
"to",
"auto",
"increment"
]
| [
"last",
"column",
"(",
")",
"set",
"auto",
"increment",
"(",
"true",
")",
";",
"return",
"this",
";"
]
|
[
"set",
"the",
"primary",
"key"
]
| [
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"columns",
"length",
";",
"i",
"+",
"+",
")",
"{",
"columns",
"[",
"i",
"]",
"=",
"templates",
"quote",
"identifier",
"(",
"columns",
"[",
"i",
"]",
")",
";",
"}",
"primary",
"key",
"=",
"new",
"primary",
"key",
"data",
"(",
"templates",
"quote",
"identifier",
"(",
"name",
")",
",",
"columns",
")",
";",
"return",
"this",
";"
]
|
[
"add",
"an",
"index"
]
| [
"indexes",
"add",
"(",
"new",
"index",
"data",
"(",
"name",
",",
"columns",
")",
")",
";",
"return",
"this",
";"
]
|
[
"set",
"the",
"last",
"added",
"index",
"to",
"unique"
]
| [
"indexes",
"get",
"(",
"indexes",
"size",
"(",
")",
"-",
"1",
")",
"set",
"unique",
"(",
"true",
")",
";",
"return",
"this",
";"
]
|
[
"add",
"a",
"foreign",
"key"
]
| [
"return",
"new",
"foreign",
"key",
"builder",
"(",
"this",
",",
"templates",
",",
"foreign",
"keys",
",",
"templates",
"quote",
"identifier",
"(",
"name",
")",
",",
"columns",
")",
";"
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.