docstring_tokens
list | code_tokens
list |
---|---|
[
"computes",
"a",
"human",
"-",
"readable",
"text",
"that",
"shows",
"the",
"expected",
"remaining",
"time",
"until",
"the",
"build",
"completes"
]
| [
"long",
"d",
"=",
"executable",
"estimated",
"duration",
";",
"if",
"(",
"d",
"<",
"0",
")",
"{",
"return",
"messages",
"executor",
"not",
"available",
"(",
")",
";",
"}",
"long",
"eta",
"=",
"d",
"-",
"get",
"elapsed",
"time",
"(",
")",
";",
"if",
"(",
"eta",
"<",
"=",
"0",
")",
"{",
"return",
"messages",
"executor",
"not",
"available",
"(",
")",
";",
"}",
"return",
"util",
"get",
"time",
"span",
"string",
"(",
"eta",
")",
";"
]
|
[
"the",
"same",
"as",
"{"
]
| [
"long",
"d",
"=",
"executable",
"estimated",
"duration",
";",
"if",
"(",
"d",
"<",
"0",
")",
"{",
"return",
"default",
"estimated",
"duration",
";",
"}",
"long",
"eta",
"=",
"d",
"-",
"get",
"elapsed",
"time",
"(",
")",
";",
"if",
"(",
"eta",
"<",
"=",
"0",
")",
"{",
"return",
"default",
"estimated",
"duration",
";",
"}",
"return",
"eta",
";"
]
|
[
"/",
"*",
"protected"
]
| [
"lock",
"write",
"lock",
"(",
")",
"lock",
"(",
")",
";",
"try",
"{",
"this",
"work",
"unit",
"=",
"task",
";",
"super",
"start",
"(",
")",
";",
"started",
"=",
"true",
";",
"}",
"finally",
"{",
"lock",
"write",
"lock",
"(",
")",
"unlock",
"(",
")",
";",
"}"
]
|
[
"checks",
"if",
"the",
"current",
"user",
"has",
"a",
"permission",
"to",
"stop",
"this",
"build"
]
| [
"lock",
"read",
"lock",
"(",
")",
"lock",
"(",
")",
";",
"try",
"{",
"return",
"executable",
"!",
"=",
"null",
"&",
"&",
"get",
"parent",
"of",
"(",
"executable",
")",
"get",
"owner",
"task",
"(",
")",
"has",
"abort",
"permission",
"(",
")",
";",
"}",
"finally",
"{",
"lock",
"read",
"lock",
"(",
")",
"unlock",
"(",
")",
";",
"}"
]
|
[
"returns",
"when",
"this",
"executor",
"started",
"or",
"should",
"start",
"being",
"idle"
]
| [
"if",
"(",
"is",
"idle",
"(",
")",
")",
"return",
"math",
"max",
"(",
"creation",
"time",
",",
"owner",
"get",
"connect",
"time",
"(",
")",
")",
";",
"else",
"{",
"return",
"math",
"max",
"(",
"start",
"time",
"+",
"math",
"max",
"(",
"0",
",",
"executable",
"estimated",
"duration",
")",
",",
"system",
"current",
"time",
"millis",
"(",
")",
"+",
"15000",
")",
";",
"}"
]
|
[
"creates",
"a",
"proxy",
"object",
"that",
"executes",
"the",
"callee",
"in",
"the",
"context",
"that",
"impersonates",
"this",
"executor",
"useful",
"to",
"export",
"an",
"object",
"to",
"a",
"remote",
"channel"
]
| [
"return",
"new",
"intercepting",
"proxy",
"(",
")",
"{",
"protected",
"object",
"call",
"(",
"object",
"o",
",",
"method",
"m",
",",
"object",
"[",
"]",
"args",
")",
"throws",
"throwable",
"{",
"final",
"executor",
"old",
"=",
"impersonation",
"get",
"(",
")",
";",
"impersonation",
"set",
"(",
"executor",
"this",
")",
";",
"try",
"{",
"return",
"m",
"invoke",
"(",
"o",
",",
"args",
")",
";",
"}",
"finally",
"{",
"impersonation",
"set",
"(",
"old",
")",
";",
"}",
"}",
"}",
"wrap",
"(",
"type",
",",
"core",
")",
";"
]
|
[
"returns",
"the",
"executor",
"of",
"the",
"current",
"thread",
"or",
"null",
"if",
"current",
"thread",
"is",
"not",
"an",
"executor"
]
| [
"thread",
"t",
"=",
"thread",
"current",
"thread",
"(",
")",
";",
"if",
"(",
"t",
"instanceof",
"executor",
")",
"return",
"(",
"executor",
")",
"t",
";",
"return",
"impersonation",
"get",
"(",
")",
";"
]
|
[
"<",
"p",
">",
"an",
"object",
"listing",
"the",
"requested",
"placements",
"<",
"/",
"p",
">"
]
| [
"return",
"placements",
";"
]
|
[
"<",
"p",
">",
"an",
"object",
"listing",
"the",
"requested",
"placements",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"placements",
"=",
"=",
"null",
")",
"{",
"this",
"placements",
"=",
"null",
";",
"return",
";",
"}",
"this",
"placements",
"=",
"new",
"java",
"util",
"array",
"list",
"<",
"placement",
"summary",
">",
"(",
"placements",
")",
";"
]
|
[
"<",
"p",
">",
"an",
"object",
"listing",
"the",
"requested",
"placements",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"placements",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"placements",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"this",
"placements",
"=",
"=",
"null",
")",
"{",
"set",
"placements",
"(",
"new",
"java",
"util",
"array",
"list",
"<",
"placement",
"summary",
">",
"(",
"placements",
"length",
")",
")",
";",
"}",
"for",
"(",
"placement",
"summary",
"ele",
":",
"placements",
")",
"{",
"this",
"placements",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"an",
"object",
"listing",
"the",
"requested",
"placements",
"<",
"/",
"p",
">"
]
| [
"set",
"placements",
"(",
"placements",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"token",
"used",
"to",
"retrieve",
"the",
"next",
"set",
"of",
"results",
"-",
"will",
"be",
"effectively",
"empty",
"if",
"there",
"are",
"no",
"further",
"results",
"<",
"/",
"p",
">"
]
| [
"set",
"next",
"token",
"(",
"next",
"token",
")",
";",
"return",
"this",
";"
]
|
[
"remove",
"all",
"deployments",
"from",
"the",
"model"
]
| [
"list",
"<",
"model",
"node",
">",
"deployment",
"list",
"=",
"get",
"deployment",
"list",
"(",
"main",
"server",
"group",
"address",
")",
";",
"for",
"(",
"model",
"node",
"deployment",
":",
"deployment",
"list",
")",
"{",
"remove",
"deployment",
"(",
"deployment",
"as",
"string",
"(",
")",
",",
"main",
"server",
"group",
"address",
")",
";",
"}",
"deployment",
"list",
"=",
"get",
"deployment",
"list",
"(",
"root",
"address",
")",
";",
"for",
"(",
"model",
"node",
"deployment",
":",
"deployment",
"list",
")",
"{",
"remove",
"deployment",
"(",
"deployment",
"as",
"string",
"(",
")",
",",
"root",
"address",
")",
";",
"}"
]
|
[
"}"
]
| [
"return",
"validate",
"response",
"(",
"test",
"support",
"get",
"domain",
"master",
"lifecycle",
"util",
"(",
")",
"get",
"domain",
"client",
"(",
")",
"execute",
"(",
"op",
")",
")",
";"
]
|
[
"{"
]
| [
"return",
"cache",
"atomicity",
"mode",
"atomic",
";"
]
|
[
"{"
]
| [
"return",
"cache",
"mode",
"partitioned",
";"
]
|
[
"the",
"id",
"of",
"the",
"subscription",
"definition"
]
| [
"set",
"subscription",
"definition",
"id",
"(",
"subscription",
"definition",
"id",
")",
";",
"return",
"this",
";"
]
|
[
"here",
"we",
"test",
"behavior",
"if",
"not",
"enough",
"funds",
"balance"
]
| [
"client",
"client",
"poor",
"=",
"create",
"mock",
"client",
"(",
"false",
")",
";",
"cashier",
"to",
"sell",
"(",
"client",
"poor",
",",
"milk",
")",
";",
"verify",
"(",
"client",
"poor",
")",
"have",
"amount",
"on",
"balance",
"(",
"cost",
"milk",
")",
";",
"verify",
"(",
"client",
"poor",
")",
"add",
"code",
"error",
"(",
"code",
"error",
"not",
"enough",
"funds",
"balance",
")",
";",
"verify",
"(",
"client",
",",
"never",
"(",
")",
")",
"withdraw",
"(",
"cost",
"milk",
")",
";",
"verify",
"(",
"client",
",",
"never",
"(",
")",
")",
"add",
"product",
"(",
"milk",
")",
";"
]
|
[
"check",
"if",
"there",
"is",
"enough",
"space",
"is",
"allocated"
]
| [
"int",
"req",
"=",
"new",
"size",
"*",
"item",
"size",
";",
"if",
"(",
"data",
"length",
"<",
"req",
")",
"data",
"=",
"arrays",
"copy",
"of",
"(",
"data",
",",
"data",
"length",
"<",
"<",
"1",
")",
";"
]
|
[
"{"
]
| [
"return",
"157",
";"
]
|
[
"compares",
"two",
"cache",
"versions"
]
| [
"int",
"top",
"ver",
"=",
"one",
"topology",
"version",
"(",
")",
";",
"int",
"other",
"top",
"ver",
"=",
"other",
"topology",
"version",
"(",
")",
";",
"if",
"(",
"top",
"ver",
"=",
"=",
"other",
"top",
"ver",
")",
"{",
"long",
"loc",
"order",
"=",
"one",
"order",
"(",
")",
";",
"long",
"other",
"loc",
"order",
"=",
"other",
"order",
"(",
")",
";",
"if",
"(",
"loc",
"order",
"=",
"=",
"other",
"loc",
"order",
")",
"{",
"int",
"node",
"order",
"=",
"one",
"node",
"order",
"(",
")",
";",
"int",
"other",
"node",
"order",
"=",
"other",
"node",
"order",
"(",
")",
";",
"return",
"node",
"order",
"=",
"=",
"other",
"node",
"order",
"?",
"0",
":",
"node",
"order",
"<",
"other",
"node",
"order",
"?",
"-",
"1",
":",
"1",
";",
"}",
"else",
"return",
"loc",
"order",
">",
"other",
"loc",
"order",
"?",
"1",
":",
"-",
"1",
";",
"}",
"else",
"return",
"top",
"ver",
">",
"other",
"top",
"ver",
"?",
"1",
":",
"-",
"1",
";"
]
|
[
"get",
"the",
"mvp",
"delegate",
"this",
"is",
"internally",
"used",
"for",
"creating",
"presenter",
"attaching",
"and",
"detaching",
"view",
"from",
"presenter",
"etc"
]
| [
"if",
"(",
"mvp",
"delegate",
"=",
"=",
"null",
")",
"{",
"mvp",
"delegate",
"=",
"new",
"view",
"group",
"mvp",
"delegate",
"impl",
"<",
">",
"(",
"this",
",",
"this",
",",
"true",
")",
";",
"}",
"return",
"mvp",
"delegate",
";"
]
|
[
"constructor",
"for",
"xml",
"parser"
]
| [
"o",
"s",
"m",
"file",
"header",
"header",
"=",
"new",
"o",
"s",
"m",
"file",
"header",
"(",
")",
";",
"parser",
"next",
"tag",
"(",
")",
";",
"return",
"header",
";"
]
|
[
"<",
"p",
">",
"a",
"token",
"used",
"for",
"paginating",
"the",
"results",
"from",
"your",
"get",
"load",
"balancers",
"request",
"<",
"/",
"p",
">"
]
| [
"set",
"page",
"token",
"(",
"page",
"token",
")",
";",
"return",
"this",
";"
]
|
[
"returns",
"{"
]
| [
"return",
"(",
"this",
"value",
"!",
"=",
"null",
")",
";"
]
|
[
"return",
"the",
"object",
"that",
"was",
"bound",
"or",
"{"
]
| [
"return",
"(",
"this",
"value",
"!",
"=",
"null",
")",
"?",
"this",
"value",
":",
"other",
";"
]
|
[
"return",
"the",
"object",
"that",
"was",
"bound",
"or",
"the",
"result",
"of",
"invoking",
"{"
]
| [
"return",
"(",
"this",
"value",
"!",
"=",
"null",
")",
"?",
"this",
"value",
":",
"other",
"get",
"(",
")",
";"
]
|
[
"return",
"the",
"object",
"that",
"was",
"bound",
"or",
"throw",
"an",
"exception",
"to",
"be",
"created",
"by",
"the",
"provided",
"supplier",
"if",
"no",
"value",
"has",
"been",
"bound"
]
| [
"if",
"(",
"this",
"value",
"=",
"=",
"null",
")",
"{",
"throw",
"exception",
"supplier",
"get",
"(",
")",
";",
"}",
"return",
"this",
"value",
";"
]
|
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"instance",
"profile",
"to",
"create",
"<",
"/",
"p",
">",
"<",
"p",
">",
"this",
"parameter",
"allows",
"(",
"per",
"its",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"wikipedia",
"org",
"/",
"wiki",
"/",
"regex",
">",
"regex",
"pattern",
"<",
"/",
"a",
">",
")",
"a",
"string",
"of",
"characters",
"consisting",
"of",
"upper",
"and",
"lowercase",
"alphanumeric",
"characters",
"with",
"no",
"spaces",
"you",
"can",
"also",
"include",
"any",
"of",
"the",
"following",
"characters",
":",
"+",
"=",
"@",
"-",
"<",
"/",
"p",
">"
]
| [
"set",
"instance",
"profile",
"name",
"(",
"instance",
"profile",
"name",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"path",
"to",
"the",
"instance",
"profile",
"for",
"more",
"information",
"about",
"paths",
"see",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"iam",
"/",
"latest",
"/",
"user",
"guide",
"/",
"using",
"identifiers",
"html",
">",
"iam",
"identifiers",
"<",
"/",
"a",
">",
"in",
"the",
"<",
"i",
">",
"iam",
"user",
"guide",
"<",
"/",
"i",
">",
"<",
"/",
"p",
">",
"<",
"p",
">",
"this",
"parameter",
"is",
"optional",
"if",
"it",
"is",
"not",
"included",
"it",
"defaults",
"to",
"a",
"slash",
"(",
"/",
")",
"<",
"/",
"p",
">",
"<",
"p",
">",
"this",
"parameter",
"allows",
"(",
"per",
"its",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"wikipedia",
"org",
"/",
"wiki",
"/",
"regex",
">",
"regex",
"pattern",
"<",
"/",
"a",
">",
")",
"a",
"string",
"of",
"characters",
"consisting",
"of",
"either",
"a",
"forward",
"slash",
"(",
"/",
")",
"by",
"itself",
"or",
"a",
"string",
"that",
"must",
"begin",
"and",
"end",
"with",
"forward",
"slashes",
"in",
"addition",
"it",
"can",
"contain",
"any",
"ascii",
"character",
"from",
"the",
"!",
"(",
"\\",
"u",
"0",
"0",
"2",
"1",
")",
"through",
"the",
"del",
"character",
"(",
"\\",
"u",
"0",
"0",
"7",
"f",
")",
"including",
"most",
"punctuation",
"characters",
"digits",
"and",
"upper",
"and",
"lowercased",
"letters",
"<",
"/",
"p",
">"
]
| [
"set",
"path",
"(",
"path",
")",
";",
"return",
"this",
";"
]
|
[
"adds",
"an",
"{",
"@",
"link",
"adapter",
"delegate",
"}",
"with",
"the",
"specified",
"view",
"type",
"<",
"p",
">",
"internally",
"calls",
"{",
"@",
"link",
"#",
"add",
"delegate",
"(",
"int",
"boolean",
"adapter",
"delegate",
")",
"}",
"with",
"allow",
"replacing",
"delegate",
"=",
"false",
"as",
"parameter"
]
| [
"return",
"add",
"delegate",
"(",
"view",
"type",
",",
"false",
",",
"delegate",
")",
";"
]
|
[
"removes",
"the",
"adapter",
"delegate",
"for",
"the",
"given",
"view",
"types"
]
| [
"delegates",
"remove",
"(",
"view",
"type",
")",
";",
"return",
"this",
";"
]
|
[
"must",
"be",
"called",
"from",
"{",
"@",
"link",
"recycler",
"view",
"adapter",
"#",
"on",
"bind",
"view",
"holder",
"(",
"recycler",
"view",
"view",
"holder",
"int",
"list",
")",
"}"
]
| [
"on",
"bind",
"view",
"holder",
"(",
"items",
",",
"position",
",",
"holder",
",",
"payloads",
"empty",
"list",
")",
";"
]
|
[
"set",
"a",
"fallback",
"delegate",
"that",
"should",
"be",
"used",
"if",
"no",
"{",
"@",
"link",
"adapter",
"delegate",
"}",
"has",
"been",
"found",
"that",
"can",
"handle",
"a",
"certain",
"view",
"type"
]
| [
"this",
"fallback",
"delegate",
"=",
"fallback",
"delegate",
";",
"return",
"this",
";"
]
|
[
"get",
"the",
"{",
"@",
"link",
"adapter",
"delegate",
"}",
"associated",
"with",
"the",
"given",
"view",
"type",
"integer"
]
| [
"return",
"delegates",
"get",
"(",
"view",
"type",
",",
"fallback",
"delegate",
")",
";"
]
|
[
"get",
"the",
"fallback",
"delegate"
]
| [
"return",
"fallback",
"delegate",
";"
]
|
[
"method",
"that",
"can",
"be",
"called",
"to",
"ask",
"implementation",
"to",
"deserialize",
"json",
"content",
"into",
"the",
"value",
"type",
"this",
"serializer",
"handles",
"returned",
"instance",
"is",
"to",
"be",
"constructed",
"by",
"method",
"itself",
"<",
"p",
">",
"pre",
"-",
"condition",
"for",
"this",
"method",
"is",
"that",
"the",
"parser",
"points",
"to",
"the",
"first",
"event",
"that",
"is",
"part",
"of",
"value",
"to",
"deserializer",
"(",
"and",
"which",
"is",
"never",
"json",
"null",
"literal",
"more",
"on",
"this",
"below",
")",
":",
"for",
"simple",
"types",
"it",
"may",
"be",
"the",
"only",
"value",
";",
"and",
"for",
"structured",
"types",
"the",
"object",
"start",
"marker",
"or",
"a",
"field",
"name",
"<",
"/",
"p",
">",
"<",
"p",
">",
"the",
"two",
"possible",
"input",
"conditions",
"for",
"structured",
"types",
"result",
"from",
"polymorphism",
"via",
"fields",
"in",
"the",
"ordinary",
"case",
"jackson",
"calls",
"this",
"method",
"when",
"it",
"has",
"encountered",
"an",
"object",
"start",
"and",
"the",
"method",
"implementation",
"must",
"advance",
"to",
"the",
"next",
"token",
"to",
"see",
"the",
"first",
"field",
"name",
"if",
"the",
"application",
"configures",
"polymorphism",
"via",
"a",
"field",
"then",
"the",
"object",
"looks",
"like",
"the",
"following",
"<",
"pre",
">",
"{",
"@",
"class",
":",
"class",
"name",
"}",
"<",
"/",
"pre",
">",
"jackson",
"consumes",
"the",
"two",
"tokens",
"(",
"the",
"<",
"tt",
">",
"@",
"class",
"<",
"/",
"tt",
">",
"field",
"name",
"and",
"its",
"value",
")",
"in",
"order",
"to",
"learn",
"the",
"class",
"and",
"select",
"the",
"deserializer",
"thus",
"the",
"stream",
"is",
"pointing",
"to",
"the",
"field",
"name",
"for",
"the",
"first",
"field",
"after",
"the",
"@",
"class",
"thus",
"if",
"you",
"want",
"your",
"method",
"to",
"work",
"correctly",
"both",
"with",
"and",
"without",
"polymorphism",
"you",
"must",
"begin",
"your",
"method",
"with",
":",
"<",
"pre",
">",
"if",
"(",
"p",
"get",
"current",
"token",
"(",
")",
"=",
"=",
"json",
"token",
"start",
"object",
")",
"{",
"p",
"next",
"token",
"(",
")",
";",
"}",
"<",
"/",
"pre",
">",
"this",
"results",
"in",
"the",
"stream",
"pointing",
"to",
"the",
"field",
"name",
"so",
"that",
"the",
"two",
"conditions",
"align",
"<",
"p",
">",
"post",
"-",
"condition",
"is",
"that",
"the",
"parser",
"will",
"point",
"to",
"the",
"last",
"event",
"that",
"is",
"part",
"of",
"deserialized",
"value",
"(",
"or",
"in",
"case",
"deserialization",
"fails",
"event",
"that",
"was",
"not",
"recognized",
"or",
"usable",
"which",
"may",
"be",
"the",
"same",
"event",
"as",
"the",
"one",
"it",
"pointed",
"to",
"upon",
"call",
")",
"<",
"p",
">",
"note",
"that",
"this",
"method",
"is",
"never",
"called",
"for",
"json",
"null",
"literal",
"and",
"thus",
"deserializers",
"need",
"(",
"and",
"should",
")",
"not",
"check",
"for",
"it"
]
| [
"public",
"abstract",
"t",
"deserialize",
"(",
"json",
"parser",
"p",
",",
"deserialization",
"context",
"ctxt",
")",
"throws",
"i",
"o",
"exception",
",",
"json",
"processing",
"exception",
";"
]
|
[
"method",
"that",
"will",
"return",
"deserializer",
"instance",
"that",
"is",
"able",
"to",
"handle",
"unwrapped",
"value",
"instances",
"if",
"no",
"unwrapped",
"instance",
"can",
"be",
"constructed",
"will",
"simply",
"return",
"this",
"object",
"as",
"-",
"is",
"<",
"p",
">",
"default",
"implementation",
"just",
"returns",
"this",
"indicating",
"that",
"no",
"unwrapped",
"variant",
"exists"
]
| [
"return",
"this",
";"
]
|
[
"method",
"that",
"can",
"be",
"called",
"to",
"try",
"to",
"replace",
"deserializer",
"this",
"deserializer",
"delegates",
"calls",
"to",
"if",
"not",
"supported",
"(",
"either",
"this",
"deserializer",
"does",
"not",
"delegate",
"anything",
";",
"or",
"it",
"does",
"not",
"want",
"any",
"changes",
")",
"should",
"either",
"throw",
"{"
]
| [
"throw",
"new",
"unsupported",
"operation",
"exception",
"(",
")",
";"
]
|
[
"method",
"for",
"accessing",
"type",
"of",
"values",
"this",
"deserializer",
"produces",
"note",
"that",
"this",
"information",
"is",
"not",
"guaranteed",
"to",
"be",
"exact",
"-",
"-",
"it",
"may",
"be",
"a",
"more",
"generic",
"(",
"super",
"-",
"type",
")",
"-",
"-",
"but",
"it",
"should",
"not",
"be",
"incorrect",
"(",
"return",
"a",
"non",
"-",
"related",
"type",
")",
"<",
"p",
">",
"default",
"implementation",
"will",
"return",
"null",
"which",
"means",
"almost",
"same",
"same",
"as",
"returning",
"<",
"code",
">",
"object",
"class",
"<",
"/",
"code",
">",
"would",
";",
"that",
"is",
"that",
"nothing",
"is",
"known",
"about",
"handled",
"type"
]
| [
"return",
"null",
";"
]
|
[
"method",
"called",
"to",
"see",
"if",
"deserializer",
"instance",
"is",
"cachable",
"and",
"usable",
"for",
"other",
"properties",
"of",
"same",
"type",
"(",
"type",
"for",
"which",
"instance",
"was",
"created",
")",
"<",
"p",
">",
"note",
"that",
"cached",
"instances",
"are",
"still",
"contextualized",
"on",
"per",
"-",
"property",
"basis",
"(",
"but",
"note",
"that",
"{"
]
| [
"return",
"false",
";"
]
|
[
"accessor",
"that",
"can",
"be",
"used",
"to",
"determine",
"if",
"this",
"deserializer",
"uses",
"another",
"deserializer",
"for",
"actual",
"deserialization",
"by",
"delegating",
"calls",
"if",
"so",
"will",
"return",
"immediate",
"delegate",
"(",
"which",
"itself",
"may",
"delegate",
"to",
"further",
"deserializers",
")",
";",
"otherwise",
"will",
"return",
"null"
]
| [
"return",
"null",
";"
]
|
[
"method",
"that",
"will",
"either",
"return",
"null",
"to",
"indicate",
"that",
"type",
"being",
"deserializers",
"has",
"no",
"concept",
"of",
"properties",
";",
"or",
"a",
"collection",
"of",
"identifiers",
"for",
"which",
"<",
"code",
">",
"to",
"string",
"<",
"/",
"code",
">",
"will",
"give",
"external",
"property",
"name",
"this",
"is",
"only",
"to",
"be",
"used",
"for",
"error",
"reporting",
"and",
"diagnostics",
"purposes",
"(",
"most",
"commonly",
"to",
"accompany",
"unknown",
"property",
"exception",
")"
]
| [
"return",
"null",
";"
]
|
[
"method",
"that",
"can",
"be",
"called",
"to",
"determine",
"value",
"to",
"be",
"used",
"for",
"representing",
"null",
"values",
"(",
"values",
"deserialized",
"when",
"json",
"token",
"is",
"{"
]
| [
"return",
"null",
";"
]
|
[
"this",
"method",
"may",
"be",
"called",
"in",
"conjunction",
"with",
"calls",
"to",
"{"
]
| [
"return",
"access",
"pattern",
"dynamic",
";"
]
|
[
"method",
"called",
"to",
"determine",
"value",
"to",
"be",
"used",
"for",
"empty",
"values",
"(",
"most",
"commonly",
"when",
"deserializing",
"from",
"empty",
"json",
"strings",
")",
"usually",
"this",
"is",
"same",
"as",
"{"
]
| [
"return",
"get",
"null",
"value",
"(",
"ctxt",
")",
";"
]
|
[
"accessor",
"that",
"can",
"be",
"used",
"to",
"check",
"whether",
"this",
"deserializer",
"is",
"expecting",
"to",
"possibly",
"get",
"an",
"object",
"identifier",
"value",
"instead",
"of",
"full",
"value",
"serialization",
"and",
"if",
"so",
"should",
"be",
"able",
"to",
"resolve",
"it",
"to",
"actual",
"object",
"instance",
"to",
"return",
"as",
"deserialized",
"value",
"<",
"p",
">",
"default",
"implementation",
"returns",
"null",
"as",
"support",
"cannot",
"be",
"implemented",
"generically",
"some",
"standard",
"deserializers",
"(",
"most",
"notably",
"{",
"@",
"link",
"com",
"fasterxml",
"jackson",
"databind",
"deser",
"bean",
"deserializer",
"}",
")",
"do",
"implement",
"this",
"feature",
"and",
"may",
"return",
"reader",
"instance",
"depending",
"on",
"exact",
"configuration",
"of",
"instance",
"(",
"which",
"is",
"based",
"on",
"type",
"and",
"referring",
"property",
")"
]
| [
"return",
"null",
";"
]
|
[
"introspection",
"method",
"that",
"may",
"be",
"called",
"to",
"see",
"whether",
"deserializer",
"supports",
"update",
"of",
"an",
"existing",
"value",
"(",
"aka",
"merging",
")",
"or",
"not",
"return",
"value",
"should",
"either",
"be",
"{"
]
| [
"return",
"null",
";"
]
|
[
"finds",
"the",
"manufacturer",
"in",
"the",
"database"
]
| [
"if",
"(",
"database",
"=",
"=",
"null",
"|",
"|",
"database",
"manufacturer",
"=",
"=",
"null",
")",
"{",
"return",
"false",
";",
"}",
"sel",
"manufacturer",
"=",
"null",
";",
"sel",
"product",
"=",
"null",
";",
"product",
"file",
"=",
"null",
";",
"for",
"(",
"z",
"wave",
"db",
"manufacturer",
"manufacturer",
":",
"database",
"manufacturer",
")",
"{",
"if",
"(",
"manufacturer",
"id",
"=",
"=",
"manufacturer",
"id",
")",
"{",
"sel",
"manufacturer",
"=",
"manufacturer",
";",
"return",
"true",
";",
"}",
"}",
"return",
"false",
";"
]
|
[
"finds",
"a",
"product",
"in",
"the",
"database"
]
| [
"if",
"(",
"find",
"manufacturer",
"(",
"manufacturer",
"id",
")",
"=",
"=",
"false",
")",
"{",
"return",
"false",
";",
"}",
"return",
"find",
"product",
"(",
"product",
"type",
",",
"product",
"id",
",",
"version",
")",
";"
]
|
[
"finds",
"a",
"product",
"in",
"the",
"database",
"find",
"manufacturer",
"must",
"be",
"called",
"before",
"this",
"function"
]
| [
"if",
"(",
"sel",
"manufacturer",
"=",
"=",
"null",
")",
"{",
"return",
"false",
";",
"}",
"product",
"version",
"=",
"version",
";",
"for",
"(",
"z",
"wave",
"db",
"product",
"product",
":",
"sel",
"manufacturer",
"product",
")",
"{",
"for",
"(",
"z",
"wave",
"db",
"product",
"reference",
"reference",
":",
"product",
"reference",
")",
"{",
"if",
"(",
"reference",
"type",
"=",
"=",
"product",
"type",
"&",
"&",
"reference",
"id",
"=",
"=",
"product",
"id",
")",
"{",
"sel",
"product",
"=",
"product",
";",
"return",
"true",
";",
"}",
"}",
"}",
"return",
"false",
";"
]
|
[
"returns",
"the",
"manufacturer",
"name",
"find",
"manufacturer",
"or",
"find",
"product",
"must",
"be",
"called",
"before",
"this",
"method"
]
| [
"if",
"(",
"sel",
"manufacturer",
"=",
"=",
"null",
")",
"{",
"return",
"\"",
"\"",
";",
"}",
"else",
"{",
"return",
"sel",
"manufacturer",
"name",
";",
"}"
]
|
[
"returns",
"the",
"manufacturer",
"id",
"find",
"manufacturer",
"or",
"find",
"product",
"must",
"be",
"called",
"before",
"this",
"method"
]
| [
"if",
"(",
"sel",
"manufacturer",
"=",
"=",
"null",
")",
"{",
"return",
"null",
";",
"}",
"else",
"{",
"return",
"sel",
"manufacturer",
"id",
";",
"}"
]
|
[
"returns",
"the",
"product",
"name",
"find",
"product",
"must",
"be",
"called",
"before",
"this",
"method"
]
| [
"if",
"(",
"sel",
"product",
"=",
"=",
"null",
")",
"{",
"return",
"\"",
"\"",
";",
"}",
"else",
"{",
"return",
"sel",
"product",
"model",
"+",
"\"",
"\"",
"+",
"get",
"label",
"(",
"sel",
"product",
"label",
")",
";",
"}"
]
|
[
"returns",
"the",
"product",
"model",
"find",
"product",
"must",
"be",
"called",
"before",
"this",
"method"
]
| [
"if",
"(",
"sel",
"product",
"=",
"=",
"null",
")",
"{",
"return",
"null",
";",
"}",
"return",
"sel",
"product",
"model",
";"
]
|
[
"returns",
"the",
"number",
"of",
"endpoints",
"from",
"the",
"database",
"find",
"product",
"must",
"be",
"called",
"before",
"this",
"method"
]
| [
"if",
"(",
"sel",
"product",
"=",
"=",
"null",
")",
"{",
"return",
"null",
";",
"}",
"return",
"0",
";"
]
|
[
"checks",
"if",
"a",
"specific",
"command",
"class",
"is",
"implemented",
"by",
"the",
"device",
"find",
"product",
"must",
"be",
"called",
"before",
"this",
"method"
]
| [
"if",
"(",
"load",
"product",
"file",
"(",
")",
"=",
"=",
"null",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"product",
"file",
"command",
"classes",
"=",
"=",
"null",
"|",
"|",
"product",
"file",
"command",
"classes",
"class",
"=",
"=",
"null",
")",
"{",
"return",
"false",
";",
"}",
"for",
"(",
"z",
"wave",
"db",
"command",
"class",
"i",
"class",
":",
"product",
"file",
"command",
"classes",
"class",
")",
"{",
"if",
"(",
"i",
"class",
"id",
"equals",
"(",
"class",
"number",
")",
")",
"{",
"return",
"true",
";",
"}",
"}",
"return",
"false",
";"
]
|
[
"returns",
"the",
"command",
"classes",
"implemented",
"by",
"the",
"device",
"find",
"product",
"must",
"be",
"called",
"before",
"this",
"method"
]
| [
"if",
"(",
"load",
"product",
"file",
"(",
")",
"=",
"=",
"null",
")",
"{",
"return",
"null",
";",
"}",
"if",
"(",
"product",
"file",
"command",
"classes",
"=",
"=",
"null",
")",
"{",
"return",
"null",
";",
"}",
"return",
"product",
"file",
"command",
"classes",
"class",
";"
]
|
[
"returns",
"the",
"configuration",
"parameters",
"list",
"find",
"product",
"must",
"be",
"called",
"before",
"this",
"method"
]
| [
"if",
"(",
"load",
"product",
"file",
"(",
")",
"=",
"=",
"null",
")",
"{",
"return",
"collections",
"empty",
"list",
"(",
")",
";",
"}",
"return",
"product",
"file",
"get",
"configuration",
"(",
")",
";"
]
|
[
"returns",
"the",
"associations",
"list",
"find",
"product",
"must",
"be",
"called",
"before",
"this",
"method"
]
| [
"if",
"(",
"load",
"product",
"file",
"(",
")",
"=",
"=",
"null",
")",
"{",
"return",
"null",
";",
"}",
"return",
"product",
"file",
"get",
"associations",
"(",
")",
";"
]
|
[
"helper",
"function",
"to",
"find",
"the",
"label",
"associated",
"with",
"the",
"specified",
"database",
"language",
"if",
"no",
"language",
"is",
"defined",
"or",
"if",
"the",
"label",
"cant",
"be",
"found",
"in",
"the",
"specified",
"language",
"the",
"english",
"label",
"will",
"be",
"returned"
]
| [
"if",
"(",
"label",
"list",
"=",
"=",
"null",
")",
"{",
"return",
"null",
";",
"}",
"for",
"(",
"z",
"wave",
"db",
"label",
"label",
":",
"label",
"list",
")",
"{",
"if",
"(",
"label",
"language",
"=",
"=",
"null",
")",
"{",
"return",
"label",
"label",
";",
"}",
"if",
"(",
"label",
"language",
"equals",
"(",
"language",
"to",
"string",
"(",
")",
")",
")",
"{",
"return",
"label",
"label",
";",
"}",
"}",
"return",
"null",
";"
]
|
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
]
| [
"return",
"model",
"package",
"literals",
"laser",
"range",
"finder",
"laser",
";"
]
|
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
]
| [
"logger",
"old",
"logger",
"=",
"logger",
";",
"logger",
"=",
"new",
"logger",
";",
"if",
"(",
"e",
"notification",
"required",
"(",
")",
")",
"e",
"notify",
"(",
"new",
"e",
"notification",
"impl",
"(",
"this",
",",
"notification",
"set",
",",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"logger",
",",
"old",
"logger",
",",
"logger",
")",
")",
";"
]
|
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
]
| [
"string",
"old",
"uid",
"=",
"uid",
";",
"uid",
"=",
"new",
"uid",
";",
"if",
"(",
"e",
"notification",
"required",
"(",
")",
")",
"e",
"notify",
"(",
"new",
"e",
"notification",
"impl",
"(",
"this",
",",
"notification",
"set",
",",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"uid",
",",
"old",
"uid",
",",
"uid",
")",
")",
";"
]
|
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
]
| [
"boolean",
"old",
"poll",
"=",
"poll",
";",
"poll",
"=",
"new",
"poll",
";",
"if",
"(",
"e",
"notification",
"required",
"(",
")",
")",
"e",
"notify",
"(",
"new",
"e",
"notification",
"impl",
"(",
"this",
",",
"notification",
"set",
",",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"poll",
",",
"old",
"poll",
",",
"poll",
")",
")",
";"
]
|
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
]
| [
"atomic",
"boolean",
"old",
"enabled",
"a",
"=",
"enabled",
"a",
";",
"enabled",
"a",
"=",
"new",
"enabled",
"a",
";",
"if",
"(",
"e",
"notification",
"required",
"(",
")",
")",
"e",
"notify",
"(",
"new",
"e",
"notification",
"impl",
"(",
"this",
",",
"notification",
"set",
",",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"enabled",
"a",
",",
"old",
"enabled",
"a",
",",
"enabled",
"a",
")",
")",
";"
]
|
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
]
| [
"string",
"old",
"sub",
"id",
"=",
"sub",
"id",
";",
"sub",
"id",
"=",
"new",
"sub",
"id",
";",
"if",
"(",
"e",
"notification",
"required",
"(",
")",
")",
"e",
"notify",
"(",
"new",
"e",
"notification",
"impl",
"(",
"this",
",",
"notification",
"set",
",",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"sub",
"id",
",",
"old",
"sub",
"id",
",",
"sub",
"id",
")",
")",
";"
]
|
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
]
| [
"if",
"(",
"e",
"container",
"feature",
"i",
"d",
"(",
")",
"!",
"=",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"mbrick",
")",
"return",
"null",
";",
"return",
"(",
"m",
"bricklet",
"laser",
"range",
"finder",
")",
"e",
"container",
"(",
")",
";"
]
|
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
]
| [
"if",
"(",
"e",
"container",
"feature",
"i",
"d",
"(",
")",
"!",
"=",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"mbrick",
")",
"return",
"null",
";",
"return",
"(",
"m",
"bricklet",
"laser",
"range",
"finder",
")",
"e",
"internal",
"container",
"(",
")",
";"
]
|
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
]
| [
"msgs",
"=",
"e",
"basic",
"set",
"container",
"(",
"(",
"internal",
"e",
"object",
")",
"new",
"mbrick",
",",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"mbrick",
",",
"msgs",
")",
";",
"return",
"msgs",
";"
]
|
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
]
| [
"high",
"low",
"value",
"old",
"digital",
"state",
"=",
"digital",
"state",
";",
"digital",
"state",
"=",
"new",
"digital",
"state",
";",
"if",
"(",
"e",
"notification",
"required",
"(",
")",
")",
"e",
"notify",
"(",
"new",
"e",
"notification",
"impl",
"(",
"this",
",",
"notification",
"set",
",",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"digital",
"state",
",",
"old",
"digital",
"state",
",",
"digital",
"state",
")",
")",
";"
]
|
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
]
| [
"try",
"{",
"high",
"low",
"value",
"value",
"=",
"tinkerforge",
"device",
"is",
"laser",
"enabled",
"(",
")",
"?",
"high",
"low",
"value",
"high",
":",
"high",
"low",
"value",
"low",
";",
"set",
"digital",
"state",
"(",
"value",
")",
";",
"}",
"catch",
"(",
"timeout",
"exception",
"e",
")",
"{",
"tinkerforge",
"error",
"handler",
"handle",
"error",
"(",
"this",
",",
"tinkerforge",
"error",
"handler",
"tf",
"timeout",
"exception",
",",
"e",
")",
";",
"}",
"catch",
"(",
"not",
"connected",
"exception",
"e",
")",
"{",
"tinkerforge",
"error",
"handler",
"handle",
"error",
"(",
"this",
",",
"tinkerforge",
"error",
"handler",
"tf",
"not",
"connection",
"exception",
",",
"e",
")",
";",
"}"
]
|
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
]
| [
"set",
"enabled",
"a",
"(",
"new",
"atomic",
"boolean",
"(",
")",
")",
";",
"logger",
"=",
"logger",
"factory",
"get",
"logger",
"(",
"laser",
"range",
"finder",
"laser",
"impl",
"class",
")",
";"
]
|
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
]
| [
"switch",
"(",
"feature",
"i",
"d",
")",
"{",
"case",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"mbrick",
":",
"if",
"(",
"e",
"internal",
"container",
"(",
")",
"!",
"=",
"null",
")",
"msgs",
"=",
"e",
"basic",
"remove",
"from",
"container",
"(",
"msgs",
")",
";",
"return",
"basic",
"set",
"mbrick",
"(",
"(",
"m",
"bricklet",
"laser",
"range",
"finder",
")",
"other",
"end",
",",
"msgs",
")",
";",
"}",
"return",
"super",
"e",
"inverse",
"add",
"(",
"other",
"end",
",",
"feature",
"i",
"d",
",",
"msgs",
")",
";"
]
|
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
]
| [
"switch",
"(",
"feature",
"i",
"d",
")",
"{",
"case",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"mbrick",
":",
"return",
"basic",
"set",
"mbrick",
"(",
"null",
",",
"msgs",
")",
";",
"}",
"return",
"super",
"e",
"inverse",
"remove",
"(",
"other",
"end",
",",
"feature",
"i",
"d",
",",
"msgs",
")",
";"
]
|
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
]
| [
"switch",
"(",
"e",
"container",
"feature",
"i",
"d",
"(",
")",
")",
"{",
"case",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"mbrick",
":",
"return",
"e",
"internal",
"container",
"(",
")",
"e",
"inverse",
"remove",
"(",
"this",
",",
"model",
"package",
"msub",
"device",
"holder",
"msubdevices",
",",
"m",
"sub",
"device",
"holder",
"class",
",",
"msgs",
")",
";",
"}",
"return",
"super",
"e",
"basic",
"remove",
"from",
"container",
"feature",
"(",
"msgs",
")",
";"
]
|
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
]
| [
"switch",
"(",
"feature",
"i",
"d",
")",
"{",
"case",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"logger",
":",
"return",
"get",
"logger",
"(",
")",
";",
"case",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"uid",
":",
"return",
"get",
"uid",
"(",
")",
";",
"case",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"poll",
":",
"return",
"is",
"poll",
"(",
")",
";",
"case",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"enabled",
"a",
":",
"return",
"get",
"enabled",
"a",
"(",
")",
";",
"case",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"sub",
"id",
":",
"return",
"get",
"sub",
"id",
"(",
")",
";",
"case",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"mbrick",
":",
"if",
"(",
"resolve",
")",
"return",
"get",
"mbrick",
"(",
")",
";",
"return",
"basic",
"get",
"mbrick",
"(",
")",
";",
"case",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"digital",
"state",
":",
"return",
"get",
"digital",
"state",
"(",
")",
";",
"case",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"device",
"type",
":",
"return",
"get",
"device",
"type",
"(",
")",
";",
"}",
"return",
"super",
"e",
"get",
"(",
"feature",
"i",
"d",
",",
"resolve",
",",
"core",
"type",
")",
";"
]
|
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
]
| [
"switch",
"(",
"feature",
"i",
"d",
")",
"{",
"case",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"logger",
":",
"set",
"logger",
"(",
"(",
"logger",
")",
"new",
"value",
")",
";",
"return",
";",
"case",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"uid",
":",
"set",
"uid",
"(",
"(",
"string",
")",
"new",
"value",
")",
";",
"return",
";",
"case",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"poll",
":",
"set",
"poll",
"(",
"(",
"boolean",
")",
"new",
"value",
")",
";",
"return",
";",
"case",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"enabled",
"a",
":",
"set",
"enabled",
"a",
"(",
"(",
"atomic",
"boolean",
")",
"new",
"value",
")",
";",
"return",
";",
"case",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"sub",
"id",
":",
"set",
"sub",
"id",
"(",
"(",
"string",
")",
"new",
"value",
")",
";",
"return",
";",
"case",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"mbrick",
":",
"set",
"mbrick",
"(",
"(",
"m",
"bricklet",
"laser",
"range",
"finder",
")",
"new",
"value",
")",
";",
"return",
";",
"case",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"digital",
"state",
":",
"set",
"digital",
"state",
"(",
"(",
"high",
"low",
"value",
")",
"new",
"value",
")",
";",
"return",
";",
"}",
"super",
"e",
"set",
"(",
"feature",
"i",
"d",
",",
"new",
"value",
")",
";"
]
|
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
]
| [
"switch",
"(",
"feature",
"i",
"d",
")",
"{",
"case",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"logger",
":",
"set",
"logger",
"(",
"logger",
"edefault",
")",
";",
"return",
";",
"case",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"uid",
":",
"set",
"uid",
"(",
"uid",
"edefault",
")",
";",
"return",
";",
"case",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"poll",
":",
"set",
"poll",
"(",
"poll",
"edefault",
")",
";",
"return",
";",
"case",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"enabled",
"a",
":",
"set",
"enabled",
"a",
"(",
"enabled",
"a",
"edefault",
")",
";",
"return",
";",
"case",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"sub",
"id",
":",
"set",
"sub",
"id",
"(",
"sub",
"id",
"edefault",
")",
";",
"return",
";",
"case",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"mbrick",
":",
"set",
"mbrick",
"(",
"(",
"m",
"bricklet",
"laser",
"range",
"finder",
")",
"null",
")",
";",
"return",
";",
"case",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"digital",
"state",
":",
"set",
"digital",
"state",
"(",
"digital",
"state",
"edefault",
")",
";",
"return",
";",
"}",
"super",
"e",
"unset",
"(",
"feature",
"i",
"d",
")",
";"
]
|
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
]
| [
"switch",
"(",
"feature",
"i",
"d",
")",
"{",
"case",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"logger",
":",
"return",
"logger",
"edefault",
"=",
"=",
"null",
"?",
"logger",
"!",
"=",
"null",
":",
"!",
"logger",
"edefault",
"equals",
"(",
"logger",
")",
";",
"case",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"uid",
":",
"return",
"uid",
"edefault",
"=",
"=",
"null",
"?",
"uid",
"!",
"=",
"null",
":",
"!",
"uid",
"edefault",
"equals",
"(",
"uid",
")",
";",
"case",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"poll",
":",
"return",
"poll",
"!",
"=",
"poll",
"edefault",
";",
"case",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"enabled",
"a",
":",
"return",
"enabled",
"a",
"edefault",
"=",
"=",
"null",
"?",
"enabled",
"a",
"!",
"=",
"null",
":",
"!",
"enabled",
"a",
"edefault",
"equals",
"(",
"enabled",
"a",
")",
";",
"case",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"sub",
"id",
":",
"return",
"sub",
"id",
"edefault",
"=",
"=",
"null",
"?",
"sub",
"id",
"!",
"=",
"null",
":",
"!",
"sub",
"id",
"edefault",
"equals",
"(",
"sub",
"id",
")",
";",
"case",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"mbrick",
":",
"return",
"basic",
"get",
"mbrick",
"(",
")",
"!",
"=",
"null",
";",
"case",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"digital",
"state",
":",
"return",
"digital",
"state",
"edefault",
"=",
"=",
"null",
"?",
"digital",
"state",
"!",
"=",
"null",
":",
"!",
"digital",
"state",
"edefault",
"equals",
"(",
"digital",
"state",
")",
";",
"case",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"device",
"type",
":",
"return",
"device",
"type",
"edefault",
"=",
"=",
"null",
"?",
"device",
"type",
"!",
"=",
"null",
":",
"!",
"device",
"type",
"edefault",
"equals",
"(",
"device",
"type",
")",
";",
"}",
"return",
"super",
"e",
"is",
"set",
"(",
"feature",
"i",
"d",
")",
";"
]
|
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
]
| [
"if",
"(",
"base",
"class",
"=",
"=",
"digital",
"actor",
"class",
")",
"{",
"switch",
"(",
"derived",
"feature",
"i",
"d",
")",
"{",
"case",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"digital",
"state",
":",
"return",
"model",
"package",
"digital",
"actor",
"digital",
"state",
";",
"default",
":",
"return",
"-",
"1",
";",
"}",
"}",
"return",
"super",
"e",
"base",
"structural",
"feature",
"i",
"d",
"(",
"derived",
"feature",
"i",
"d",
",",
"base",
"class",
")",
";"
]
|
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
]
| [
"if",
"(",
"base",
"class",
"=",
"=",
"digital",
"actor",
"class",
")",
"{",
"switch",
"(",
"base",
"feature",
"i",
"d",
")",
"{",
"case",
"model",
"package",
"digital",
"actor",
"digital",
"state",
":",
"return",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"digital",
"state",
";",
"default",
":",
"return",
"-",
"1",
";",
"}",
"}",
"return",
"super",
"e",
"derived",
"structural",
"feature",
"i",
"d",
"(",
"base",
"feature",
"i",
"d",
",",
"base",
"class",
")",
";"
]
|
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
]
| [
"if",
"(",
"base",
"class",
"=",
"=",
"digital",
"actor",
"class",
")",
"{",
"switch",
"(",
"base",
"operation",
"i",
"d",
")",
"{",
"case",
"model",
"package",
"digital",
"actor",
"turn",
"digital",
"highlowvalue",
":",
"return",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"turn",
"digital",
"highlowvalue",
";",
"case",
"model",
"package",
"digital",
"actor",
"fetch",
"digital",
"value",
":",
"return",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"fetch",
"digital",
"value",
";",
"default",
":",
"return",
"-",
"1",
";",
"}",
"}",
"return",
"super",
"e",
"derived",
"operation",
"i",
"d",
"(",
"base",
"operation",
"i",
"d",
",",
"base",
"class",
")",
";"
]
|
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
]
| [
"switch",
"(",
"operation",
"i",
"d",
")",
"{",
"case",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"turn",
"digital",
"highlowvalue",
":",
"turn",
"digital",
"(",
"(",
"high",
"low",
"value",
")",
"arguments",
"get",
"(",
"0",
")",
")",
";",
"return",
"null",
";",
"case",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"fetch",
"digital",
"value",
":",
"fetch",
"digital",
"value",
"(",
")",
";",
"return",
"null",
";",
"case",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"init",
":",
"init",
"(",
")",
";",
"return",
"null",
";",
"case",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"enable",
":",
"enable",
"(",
")",
";",
"return",
"null",
";",
"case",
"model",
"package",
"laser",
"range",
"finder",
"laser",
"disable",
":",
"disable",
"(",
")",
";",
"return",
"null",
";",
"}",
"return",
"super",
"e",
"invoke",
"(",
"operation",
"i",
"d",
",",
"arguments",
")",
";"
]
|
[
"the",
"setup",
"functions",
"defines",
"the",
"instantiation",
"logic",
"for",
"the",
"source",
"here",
"a",
"pulsar",
"client",
"and",
"consumer",
"are",
"created",
"that",
"will",
"listen",
"on",
"the",
"pulsar",
"topic"
]
| [
"try",
"{",
"client",
"=",
"pulsar",
"client",
"create",
"(",
"pulsar",
"connection",
"url",
")",
";",
"consumer",
"=",
"client",
"subscribe",
"(",
"consume",
"topic",
",",
"subscription",
")",
";",
"}",
"catch",
"(",
"pulsar",
"client",
"exception",
"e",
")",
"{",
"throw",
"new",
"runtime",
"exception",
"(",
"e",
")",
";",
"}"
]
|
[
"the",
"name",
"of",
"the",
"definition"
]
| [
"set",
"name",
"(",
"name",
")",
";",
"return",
"this",
";"
]
|
[
"the",
"id",
"of",
"the",
"subscription",
"definition"
]
| [
"set",
"subscription",
"definition",
"id",
"(",
"subscription",
"definition",
"id",
")",
";",
"return",
"this",
";"
]
|
[
"adds",
"the",
"given",
"{",
"@",
"link",
"data",
"set",
"}",
"to",
"this",
"cache",
"for",
"the",
"given",
"id"
]
| [
"cache",
"set",
"type",
"(",
"id",
",",
"set",
"type",
"data",
"set",
")",
";",
"data",
"sets",
"put",
"(",
"id",
",",
"set",
")",
";"
]
|
[
"adds",
"the",
"given",
"{",
"@",
"link",
"unsorted",
"grouping",
"}",
"to",
"this",
"cache",
"for",
"the",
"given",
"id"
]
| [
"cache",
"set",
"type",
"(",
"id",
",",
"set",
"type",
"unsorted",
"grouping",
")",
";",
"unsorted",
"groupings",
"put",
"(",
"id",
",",
"set",
")",
";"
]
|
[
"adds",
"the",
"given",
"{",
"@",
"link",
"sorted",
"grouping",
"}",
"to",
"this",
"cache",
"for",
"the",
"given",
"id"
]
| [
"cache",
"set",
"type",
"(",
"id",
",",
"set",
"type",
"sorted",
"grouping",
")",
";",
"sorted",
"groupings",
"put",
"(",
"id",
",",
"set",
")",
";"
]
|
[
"checks",
"whether",
"the",
"cached",
"set",
"for",
"the",
"given",
"id",
"is",
"a",
"{",
"@",
"link",
"data",
"set",
"}"
]
| [
"return",
"is",
"type",
"(",
"id",
",",
"set",
"type",
"data",
"set",
")",
";"
]
|
[
"checks",
"whether",
"the",
"cached",
"set",
"for",
"the",
"given",
"id",
"is",
"an",
"{",
"@",
"link",
"unsorted",
"grouping",
"}"
]
| [
"return",
"is",
"type",
"(",
"id",
",",
"set",
"type",
"unsorted",
"grouping",
")",
";"
]
|
[
"checks",
"whether",
"the",
"cached",
"set",
"for",
"the",
"given",
"id",
"is",
"a",
"{",
"@",
"link",
"sorted",
"grouping",
"}"
]
| [
"return",
"is",
"type",
"(",
"id",
",",
"set",
"type",
"sorted",
"grouping",
")",
";"
]
|
[
"resets",
"this",
"set",
"cache",
"removing",
"any",
"cached",
"sets"
]
| [
"set",
"types",
"clear",
"(",
")",
";",
"data",
"sets",
"clear",
"(",
")",
";",
"unsorted",
"groupings",
"clear",
"(",
")",
";",
"sorted",
"groupings",
"clear",
"(",
")",
";"
]
|
[
"set",
"target",
"value",
"that",
"should",
"be",
"reached",
"when",
"data",
"animation",
"finish",
"then",
"call",
"{",
"@",
"link",
"chart",
"#",
"start",
"data",
"animation",
"(",
")",
"}"
]
| [
"set",
"value",
"(",
"value",
")",
";",
"this",
"diff",
"=",
"target",
"-",
"origin",
"value",
";",
"return",
"this",
";"
]
|
[
"creates",
"a",
"default",
"initialization",
"instance"
]
| [
"initialization",
"initialization",
"=",
"new",
"initialization",
"(",
")",
";",
"initialization",
"set",
"entry",
"point",
"(",
"entry",
"point",
"default",
"rebase",
"name",
"(",
")",
")",
";",
"return",
"initialization",
";"
]
|
[
"sets",
"the",
"default",
"entry",
"point",
"or",
"any",
"constant",
"name",
"of",
"{",
"@",
"link",
"net",
"bytebuddy",
"build",
"entry",
"point",
"default",
"}"
]
| [
"this",
"entry",
"point",
"=",
"entry",
"point",
";"
]
|
[
"perform",
"the",
"actual",
"remote",
"request"
]
| [
"public",
"abstract",
"batched",
"entries",
"<",
"e",
">",
"make",
"request",
"(",
"k",
"prev",
"key",
")",
"throws",
"i",
"o",
"exception",
";"
]
|
[
"return",
"the",
"next",
"list",
"key",
"associated",
"with",
"an",
"element"
]
| [
"public",
"abstract",
"k",
"element",
"to",
"prev",
"key",
"(",
"e",
"element",
")",
";"
]
|
[
"<",
"p",
">",
"a",
"message",
"about",
"the",
"incompatibility",
"<",
"/",
"p",
">"
]
| [
"set",
"message",
"(",
"message",
")",
";",
"return",
"this",
";"
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.