docstring_tokens
list | code_tokens
list |
---|---|
[
"<",
"p",
">",
"the",
"barcode",
"that",
"identifies",
"a",
"specific",
"virtual",
"tape",
"<",
"/",
"p",
">"
]
| [
"set",
"tape",
"barcode",
"(",
"tape",
"barcode",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"size",
"in",
"bytes",
"of",
"a",
"virtual",
"tape",
"<",
"/",
"p",
">"
]
| [
"set",
"tape",
"size",
"in",
"bytes",
"(",
"tape",
"size",
"in",
"bytes",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"status",
"of",
"the",
"tape",
"<",
"/",
"p",
">"
]
| [
"set",
"tape",
"status",
"(",
"tape",
"status",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"amazon",
"resource",
"name",
"(",
"arn",
")",
"of",
"the",
"gateway",
"use",
"the",
"<",
"a",
">",
"list",
"gateways",
"<",
"/",
"a",
">",
"operation",
"to",
"return",
"a",
"list",
"of",
"gateways",
"for",
"your",
"account",
"and",
"region",
"<",
"/",
"p",
">"
]
| [
"set",
"gateway",
"a",
"r",
"n",
"(",
"gateway",
"a",
"r",
"n",
")",
";",
"return",
"this",
";"
]
|
[
"if",
"we",
"use",
"injection",
"we",
"can",
"have",
"different",
"arrays",
"lengths",
"we",
"need",
"synchronize",
"them",
"for",
"consistency",
"behavior",
"with",
"ui"
]
| [
"int",
"nr",
"fields",
"=",
"(",
"key",
"stream",
"=",
"=",
"null",
")",
"?",
"-",
"1",
":",
"key",
"stream",
"length",
";",
"if",
"(",
"nr",
"fields",
"<",
"=",
"0",
")",
"{",
"return",
";",
"}",
"string",
"[",
"]",
"[",
"]",
"rtn",
"=",
"utils",
"normalize",
"arrays",
"(",
"nr",
"fields",
",",
"key",
"lookup",
",",
"key",
"condition",
",",
"key",
"stream",
"2",
")",
";",
"key",
"lookup",
"=",
"rtn",
"[",
"0",
"]",
";",
"key",
"condition",
"=",
"rtn",
"[",
"1",
"]",
";",
"key",
"stream",
"2",
"=",
"rtn",
"[",
"2",
"]",
";",
"nr",
"fields",
"=",
"update",
"lookup",
"length",
";",
"rtn",
"=",
"utils",
"normalize",
"arrays",
"(",
"nr",
"fields",
",",
"update",
"stream",
")",
";",
"update",
"stream",
"=",
"rtn",
"[",
"0",
"]",
";"
]
|
[
"run",
"query"
]
| [
"grid",
"query",
"processor",
"qry",
"proc",
"=",
"(",
"(",
"ignite",
"ex",
")",
"node",
")",
"context",
"(",
")",
"query",
"(",
")",
";",
"return",
"qry",
"proc",
"query",
"sql",
"fields",
"(",
"new",
"sql",
"fields",
"query",
"(",
"sql",
"text",
")",
",",
"false",
")",
"get",
"all",
"(",
")",
";"
]
|
[
"run",
"query",
"locally"
]
| [
"grid",
"query",
"processor",
"qry",
"proc",
"=",
"(",
"(",
"ignite",
"ex",
")",
"node",
")",
"context",
"(",
")",
"query",
"(",
")",
";",
"return",
"qry",
"proc",
"query",
"sql",
"fields",
"(",
"new",
"sql",
"fields",
"query",
"(",
"sql",
"text",
")",
"set",
"local",
"(",
"true",
")",
",",
"false",
")",
"get",
"all",
"(",
")",
";"
]
|
[
"insert",
"pending",
"characters"
]
| [
"if",
"(",
"remaining",
"text",
"string",
"=",
"=",
"null",
")",
"{",
"return",
";",
"}",
"try",
"{",
"insert",
"string",
"(",
"last",
"pos",
",",
"remaining",
"text",
"string",
",",
"remaining",
"text",
"attr",
")",
";",
"}",
"catch",
"(",
"final",
"exception",
"ex",
")",
"{",
"ex",
"print",
"stack",
"trace",
"(",
")",
";",
"}",
"remaining",
"text",
"string",
"=",
"null",
";",
"remaining",
"text",
"attr",
"=",
"null",
";"
]
|
[
"insert",
"a",
"single",
"character",
"into",
"the",
"document",
"if",
"the",
"character",
"is",
"contained",
"within",
"the",
"delimiters",
"the",
"previous",
"word",
"supposed",
"to",
"be",
"complete",
"then",
"is",
"checked",
"against",
"the",
"ones",
"to",
"be",
"syntax",
"highlighted",
"by",
"check",
"text",
"(",
")"
]
| [
"if",
"(",
"offs",
"<",
"0",
")",
"{",
"return",
";",
"}",
"try",
"{",
"super",
"insert",
"string",
"(",
"offs",
",",
"str",
",",
"normal",
")",
";",
"}",
"catch",
"(",
"final",
"exception",
"ex",
")",
"{",
"ex",
"print",
"stack",
"trace",
"(",
")",
";",
"}"
]
|
[
"write",
"a",
"specific",
"python",
"prompt",
"into",
"the",
"given",
"position",
"the",
"position",
"is",
"nearly",
"always",
"the",
"end",
"of",
"the",
"document"
]
| [
"try",
"{",
"super",
"insert",
"string",
"(",
"pos",
",",
"prompt",
",",
"python",
"prompt",
"attr",
")",
";",
"}",
"catch",
"(",
"final",
"exception",
"ex",
")",
"{",
"ex",
"print",
"stack",
"trace",
"(",
")",
";",
"}"
]
|
[
"insert",
"a",
"string",
"of",
"source",
"code",
"to",
"be",
"highlighted",
"to",
"the",
"document",
"the",
"string",
"is",
"then",
"inserted",
"character",
"by",
"character",
"if",
"longer",
"than",
"1",
"char"
]
| [
"if",
"(",
"offs",
"<",
"0",
")",
"{",
"return",
";",
"}",
"if",
"(",
"str",
"length",
"(",
")",
">",
"1",
")",
"{",
"int",
"i",
";",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<",
"str",
"length",
"(",
")",
";",
"i",
"+",
"+",
")",
"{",
"if",
"(",
"str",
"char",
"at",
"(",
"i",
")",
"=",
"=",
"'",
"\\",
"n",
"'",
")",
"{",
"remaining",
"text",
"string",
"=",
"str",
"substring",
"(",
"i",
"+",
"1",
")",
";",
"remaining",
"text",
"attr",
"=",
"attr",
";",
"input",
"key",
"listener",
"key",
"pressed",
"(",
"new",
"key",
"event",
"(",
"new",
"container",
"(",
")",
",",
"key",
"event",
"key",
"pressed",
",",
"0",
",",
"0",
",",
"key",
"event",
"vk",
"enter",
",",
"'",
"\\",
"n",
"'",
")",
")",
";",
"break",
";",
"}",
"else",
"{",
"insert",
"char",
"(",
"offs",
"+",
"i",
",",
"\"",
"\"",
"+",
"str",
"char",
"at",
"(",
"i",
")",
")",
";",
"}",
"}",
"}",
"else",
"if",
"(",
"str",
"length",
"(",
")",
"=",
"=",
"1",
")",
"{",
"insert",
"char",
"(",
"offs",
",",
"str",
")",
";",
"}"
]
|
[
"set",
"the",
"key",
"listener",
"instance",
"used",
"by",
"the",
"parent",
"this",
"is",
"needed",
"in",
"order",
"for",
"this",
"class",
"to",
"be",
"able",
"to",
"send",
"key",
"events",
"to",
"the",
"input",
"text",
"pane"
]
| [
"input",
"key",
"listener",
"=",
"kl",
";"
]
|
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
]
| [
"return",
"model",
"package",
"literals",
"mbricklet",
"co2",
";"
]
|
[
"<",
"!",
"-",
"-",
"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",
"mbricklet",
"co2",
"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",
"mbricklet",
"co2",
"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",
"mbricklet",
"co2",
"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",
"mbricklet",
"co2",
"enabled",
"a",
",",
"old",
"enabled",
"a",
",",
"enabled",
"a",
")",
")",
";"
]
|
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
]
| [
"return",
"tinkerforge",
"device",
";"
]
|
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
]
| [
"bricklet",
"c",
"o",
"2",
"old",
"tinkerforge",
"device",
"=",
"tinkerforge",
"device",
";",
"tinkerforge",
"device",
"=",
"new",
"tinkerforge",
"device",
";",
"if",
"(",
"e",
"notification",
"required",
"(",
")",
")",
"e",
"notify",
"(",
"new",
"e",
"notification",
"impl",
"(",
"this",
",",
"notification",
"set",
",",
"model",
"package",
"mbricklet",
"co2",
"tinkerforge",
"device",
",",
"old",
"tinkerforge",
"device",
",",
"tinkerforge",
"device",
")",
")",
";"
]
|
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
]
| [
"i",
"p",
"connection",
"old",
"ip",
"connection",
"=",
"ip",
"connection",
";",
"ip",
"connection",
"=",
"new",
"ip",
"connection",
";",
"if",
"(",
"e",
"notification",
"required",
"(",
")",
")",
"e",
"notify",
"(",
"new",
"e",
"notification",
"impl",
"(",
"this",
",",
"notification",
"set",
",",
"model",
"package",
"mbricklet",
"co2",
"ip",
"connection",
",",
"old",
"ip",
"connection",
",",
"ip",
"connection",
")",
")",
";"
]
|
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
]
| [
"string",
"old",
"connected",
"uid",
"=",
"connected",
"uid",
";",
"connected",
"uid",
"=",
"new",
"connected",
"uid",
";",
"if",
"(",
"e",
"notification",
"required",
"(",
")",
")",
"e",
"notify",
"(",
"new",
"e",
"notification",
"impl",
"(",
"this",
",",
"notification",
"set",
",",
"model",
"package",
"mbricklet",
"co2",
"connected",
"uid",
",",
"old",
"connected",
"uid",
",",
"connected",
"uid",
")",
")",
";"
]
|
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
]
| [
"char",
"old",
"position",
"=",
"position",
";",
"position",
"=",
"new",
"position",
";",
"if",
"(",
"e",
"notification",
"required",
"(",
")",
")",
"e",
"notify",
"(",
"new",
"e",
"notification",
"impl",
"(",
"this",
",",
"notification",
"set",
",",
"model",
"package",
"mbricklet",
"co2",
"position",
",",
"old",
"position",
",",
"position",
")",
")",
";"
]
|
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
]
| [
"int",
"old",
"device",
"identifier",
"=",
"device",
"identifier",
";",
"device",
"identifier",
"=",
"new",
"device",
"identifier",
";",
"if",
"(",
"e",
"notification",
"required",
"(",
")",
")",
"e",
"notify",
"(",
"new",
"e",
"notification",
"impl",
"(",
"this",
",",
"notification",
"set",
",",
"model",
"package",
"mbricklet",
"co2",
"device",
"identifier",
",",
"old",
"device",
"identifier",
",",
"device",
"identifier",
")",
")",
";"
]
|
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
]
| [
"string",
"old",
"name",
"=",
"name",
";",
"name",
"=",
"new",
"name",
";",
"if",
"(",
"e",
"notification",
"required",
"(",
")",
")",
"e",
"notify",
"(",
"new",
"e",
"notification",
"impl",
"(",
"this",
",",
"notification",
"set",
",",
"model",
"package",
"mbricklet",
"co2",
"name",
",",
"old",
"name",
",",
"name",
")",
")",
";"
]
|
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
]
| [
"if",
"(",
"e",
"container",
"feature",
"i",
"d",
"(",
")",
"!",
"=",
"model",
"package",
"mbricklet",
"co2",
"brickd",
")",
"return",
"null",
";",
"return",
"(",
"m",
"brickd",
")",
"e",
"container",
"(",
")",
";"
]
|
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
]
| [
"if",
"(",
"e",
"container",
"feature",
"i",
"d",
"(",
")",
"!",
"=",
"model",
"package",
"mbricklet",
"co2",
"brickd",
")",
"return",
"null",
";",
"return",
"(",
"m",
"brickd",
")",
"e",
"internal",
"container",
"(",
")",
";"
]
|
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
]
| [
"msgs",
"=",
"e",
"basic",
"set",
"container",
"(",
"(",
"internal",
"e",
"object",
")",
"new",
"brickd",
",",
"model",
"package",
"mbricklet",
"co2",
"brickd",
",",
"msgs",
")",
";",
"return",
"msgs",
";"
]
|
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
]
| [
"decimal",
"value",
"old",
"sensor",
"value",
"=",
"sensor",
"value",
";",
"sensor",
"value",
"=",
"new",
"sensor",
"value",
";",
"if",
"(",
"e",
"notification",
"required",
"(",
")",
")",
"e",
"notify",
"(",
"new",
"e",
"notification",
"impl",
"(",
"this",
",",
"notification",
"set",
",",
"model",
"package",
"mbricklet",
"co2",
"sensor",
"value",
",",
"old",
"sensor",
"value",
",",
"sensor",
"value",
")",
")",
";"
]
|
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
]
| [
"t",
"f",
"base",
"configuration",
"old",
"tf",
"config",
"=",
"tf",
"config",
";",
"tf",
"config",
"=",
"new",
"tf",
"config",
";",
"if",
"(",
"e",
"notification",
"required",
"(",
")",
")",
"{",
"e",
"notification",
"impl",
"notification",
"=",
"new",
"e",
"notification",
"impl",
"(",
"this",
",",
"notification",
"set",
",",
"model",
"package",
"mbricklet",
"co2",
"tf",
"config",
",",
"old",
"tf",
"config",
",",
"new",
"tf",
"config",
")",
";",
"if",
"(",
"msgs",
"=",
"=",
"null",
")",
"msgs",
"=",
"notification",
";",
"else",
"msgs",
"add",
"(",
"notification",
")",
";",
"}",
"return",
"msgs",
";"
]
|
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
]
| [
"if",
"(",
"new",
"tf",
"config",
"!",
"=",
"tf",
"config",
")",
"{",
"notification",
"chain",
"msgs",
"=",
"null",
";",
"if",
"(",
"tf",
"config",
"!",
"=",
"null",
")",
"msgs",
"=",
"(",
"(",
"internal",
"e",
"object",
")",
"tf",
"config",
")",
"e",
"inverse",
"remove",
"(",
"this",
",",
"eopposite",
"feature",
"base",
"-",
"model",
"package",
"mbricklet",
"co2",
"tf",
"config",
",",
"null",
",",
"msgs",
")",
";",
"if",
"(",
"new",
"tf",
"config",
"!",
"=",
"null",
")",
"msgs",
"=",
"(",
"(",
"internal",
"e",
"object",
")",
"new",
"tf",
"config",
")",
"e",
"inverse",
"add",
"(",
"this",
",",
"eopposite",
"feature",
"base",
"-",
"model",
"package",
"mbricklet",
"co2",
"tf",
"config",
",",
"null",
",",
"msgs",
")",
";",
"msgs",
"=",
"basic",
"set",
"tf",
"config",
"(",
"new",
"tf",
"config",
",",
"msgs",
")",
";",
"if",
"(",
"msgs",
"!",
"=",
"null",
")",
"msgs",
"dispatch",
"(",
")",
";",
"}",
"else",
"if",
"(",
"e",
"notification",
"required",
"(",
")",
")",
"e",
"notify",
"(",
"new",
"e",
"notification",
"impl",
"(",
"this",
",",
"notification",
"set",
",",
"model",
"package",
"mbricklet",
"co2",
"tf",
"config",
",",
"new",
"tf",
"config",
",",
"new",
"tf",
"config",
")",
")",
";"
]
|
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
]
| [
"long",
"old",
"callback",
"period",
"=",
"callback",
"period",
";",
"callback",
"period",
"=",
"new",
"callback",
"period",
";",
"if",
"(",
"e",
"notification",
"required",
"(",
")",
")",
"e",
"notify",
"(",
"new",
"e",
"notification",
"impl",
"(",
"this",
",",
"notification",
"set",
",",
"model",
"package",
"mbricklet",
"co2",
"callback",
"period",
",",
"old",
"callback",
"period",
",",
"callback",
"period",
")",
")",
";"
]
|
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
]
| [
"big",
"decimal",
"old",
"threshold",
"=",
"threshold",
";",
"threshold",
"=",
"new",
"threshold",
";",
"if",
"(",
"e",
"notification",
"required",
"(",
")",
")",
"e",
"notify",
"(",
"new",
"e",
"notification",
"impl",
"(",
"this",
",",
"notification",
"set",
",",
"model",
"package",
"mbricklet",
"co2",
"threshold",
",",
"old",
"threshold",
",",
"threshold",
")",
")",
";"
]
|
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
]
| [
"set",
"enabled",
"a",
"(",
"new",
"atomic",
"boolean",
"(",
")",
")",
";",
"logger",
"=",
"logger",
"factory",
"get",
"logger",
"(",
"m",
"bricklet",
"c",
"o",
"2",
"impl",
"class",
")",
";"
]
|
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
]
| [
"try",
"{",
"int",
"co",
"2",
"concentration",
"=",
"tinkerforge",
"device",
"get",
"c",
"o",
"2",
"concentration",
"(",
")",
";",
"decimal",
"value",
"value",
"=",
"tools",
"calculate",
"(",
"co",
"2",
"concentration",
")",
";",
"set",
"sensor",
"value",
"(",
"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",
"-",
"-",
">"
]
| [
"if",
"(",
"listener",
"!",
"=",
"null",
")",
"{",
"tinkerforge",
"device",
"remove",
"c",
"o",
"2",
"concentration",
"listener",
"(",
"listener",
")",
";",
"}",
"tinkerforge",
"device",
"=",
"null",
";"
]
|
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
]
| [
"switch",
"(",
"feature",
"i",
"d",
")",
"{",
"case",
"model",
"package",
"mbricklet",
"co2",
"brickd",
":",
"if",
"(",
"e",
"internal",
"container",
"(",
")",
"!",
"=",
"null",
")",
"msgs",
"=",
"e",
"basic",
"remove",
"from",
"container",
"(",
"msgs",
")",
";",
"return",
"basic",
"set",
"brickd",
"(",
"(",
"m",
"brickd",
")",
"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",
"mbricklet",
"co2",
"brickd",
":",
"return",
"basic",
"set",
"brickd",
"(",
"null",
",",
"msgs",
")",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"tf",
"config",
":",
"return",
"basic",
"set",
"tf",
"config",
"(",
"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",
"mbricklet",
"co2",
"brickd",
":",
"return",
"e",
"internal",
"container",
"(",
")",
"e",
"inverse",
"remove",
"(",
"this",
",",
"model",
"package",
"mbrickd",
"mdevices",
",",
"m",
"brickd",
"class",
",",
"msgs",
")",
";",
"}",
"return",
"super",
"e",
"basic",
"remove",
"from",
"container",
"feature",
"(",
"msgs",
")",
";"
]
|
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
]
| [
"switch",
"(",
"feature",
"i",
"d",
")",
"{",
"case",
"model",
"package",
"mbricklet",
"co2",
"logger",
":",
"return",
"get",
"logger",
"(",
")",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"uid",
":",
"return",
"get",
"uid",
"(",
")",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"poll",
":",
"return",
"is",
"poll",
"(",
")",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"enabled",
"a",
":",
"return",
"get",
"enabled",
"a",
"(",
")",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"tinkerforge",
"device",
":",
"return",
"get",
"tinkerforge",
"device",
"(",
")",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"ip",
"connection",
":",
"return",
"get",
"ip",
"connection",
"(",
")",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"connected",
"uid",
":",
"return",
"get",
"connected",
"uid",
"(",
")",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"position",
":",
"return",
"get",
"position",
"(",
")",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"device",
"identifier",
":",
"return",
"get",
"device",
"identifier",
"(",
")",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"name",
":",
"return",
"get",
"name",
"(",
")",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"brickd",
":",
"if",
"(",
"resolve",
")",
"return",
"get",
"brickd",
"(",
")",
";",
"return",
"basic",
"get",
"brickd",
"(",
")",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"sensor",
"value",
":",
"return",
"get",
"sensor",
"value",
"(",
")",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"tf",
"config",
":",
"return",
"get",
"tf",
"config",
"(",
")",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"callback",
"period",
":",
"return",
"get",
"callback",
"period",
"(",
")",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"device",
"type",
":",
"return",
"get",
"device",
"type",
"(",
")",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"threshold",
":",
"return",
"get",
"threshold",
"(",
")",
";",
"}",
"return",
"super",
"e",
"get",
"(",
"feature",
"i",
"d",
",",
"resolve",
",",
"core",
"type",
")",
";"
]
|
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
]
| [
"switch",
"(",
"feature",
"i",
"d",
")",
"{",
"case",
"model",
"package",
"mbricklet",
"co2",
"logger",
":",
"set",
"logger",
"(",
"(",
"logger",
")",
"new",
"value",
")",
";",
"return",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"uid",
":",
"set",
"uid",
"(",
"(",
"string",
")",
"new",
"value",
")",
";",
"return",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"poll",
":",
"set",
"poll",
"(",
"(",
"boolean",
")",
"new",
"value",
")",
";",
"return",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"enabled",
"a",
":",
"set",
"enabled",
"a",
"(",
"(",
"atomic",
"boolean",
")",
"new",
"value",
")",
";",
"return",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"tinkerforge",
"device",
":",
"set",
"tinkerforge",
"device",
"(",
"(",
"bricklet",
"c",
"o",
"2",
")",
"new",
"value",
")",
";",
"return",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"ip",
"connection",
":",
"set",
"ip",
"connection",
"(",
"(",
"i",
"p",
"connection",
")",
"new",
"value",
")",
";",
"return",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"connected",
"uid",
":",
"set",
"connected",
"uid",
"(",
"(",
"string",
")",
"new",
"value",
")",
";",
"return",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"position",
":",
"set",
"position",
"(",
"(",
"character",
")",
"new",
"value",
")",
";",
"return",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"device",
"identifier",
":",
"set",
"device",
"identifier",
"(",
"(",
"integer",
")",
"new",
"value",
")",
";",
"return",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"name",
":",
"set",
"name",
"(",
"(",
"string",
")",
"new",
"value",
")",
";",
"return",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"brickd",
":",
"set",
"brickd",
"(",
"(",
"m",
"brickd",
")",
"new",
"value",
")",
";",
"return",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"sensor",
"value",
":",
"set",
"sensor",
"value",
"(",
"(",
"decimal",
"value",
")",
"new",
"value",
")",
";",
"return",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"tf",
"config",
":",
"set",
"tf",
"config",
"(",
"(",
"t",
"f",
"base",
"configuration",
")",
"new",
"value",
")",
";",
"return",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"callback",
"period",
":",
"set",
"callback",
"period",
"(",
"(",
"long",
")",
"new",
"value",
")",
";",
"return",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"threshold",
":",
"set",
"threshold",
"(",
"(",
"big",
"decimal",
")",
"new",
"value",
")",
";",
"return",
";",
"}",
"super",
"e",
"set",
"(",
"feature",
"i",
"d",
",",
"new",
"value",
")",
";"
]
|
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
]
| [
"switch",
"(",
"feature",
"i",
"d",
")",
"{",
"case",
"model",
"package",
"mbricklet",
"co2",
"logger",
":",
"set",
"logger",
"(",
"logger",
"edefault",
")",
";",
"return",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"uid",
":",
"set",
"uid",
"(",
"uid",
"edefault",
")",
";",
"return",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"poll",
":",
"set",
"poll",
"(",
"poll",
"edefault",
")",
";",
"return",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"enabled",
"a",
":",
"set",
"enabled",
"a",
"(",
"enabled",
"a",
"edefault",
")",
";",
"return",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"tinkerforge",
"device",
":",
"set",
"tinkerforge",
"device",
"(",
"(",
"bricklet",
"c",
"o",
"2",
")",
"null",
")",
";",
"return",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"ip",
"connection",
":",
"set",
"ip",
"connection",
"(",
"ip",
"connection",
"edefault",
")",
";",
"return",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"connected",
"uid",
":",
"set",
"connected",
"uid",
"(",
"connected",
"uid",
"edefault",
")",
";",
"return",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"position",
":",
"set",
"position",
"(",
"position",
"edefault",
")",
";",
"return",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"device",
"identifier",
":",
"set",
"device",
"identifier",
"(",
"device",
"identifier",
"edefault",
")",
";",
"return",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"name",
":",
"set",
"name",
"(",
"name",
"edefault",
")",
";",
"return",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"brickd",
":",
"set",
"brickd",
"(",
"(",
"m",
"brickd",
")",
"null",
")",
";",
"return",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"sensor",
"value",
":",
"set",
"sensor",
"value",
"(",
"(",
"decimal",
"value",
")",
"null",
")",
";",
"return",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"tf",
"config",
":",
"set",
"tf",
"config",
"(",
"(",
"t",
"f",
"base",
"configuration",
")",
"null",
")",
";",
"return",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"callback",
"period",
":",
"set",
"callback",
"period",
"(",
"callback",
"period",
"edefault",
")",
";",
"return",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"threshold",
":",
"set",
"threshold",
"(",
"threshold",
"edefault",
")",
";",
"return",
";",
"}",
"super",
"e",
"unset",
"(",
"feature",
"i",
"d",
")",
";"
]
|
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
]
| [
"switch",
"(",
"feature",
"i",
"d",
")",
"{",
"case",
"model",
"package",
"mbricklet",
"co2",
"logger",
":",
"return",
"logger",
"edefault",
"=",
"=",
"null",
"?",
"logger",
"!",
"=",
"null",
":",
"!",
"logger",
"edefault",
"equals",
"(",
"logger",
")",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"uid",
":",
"return",
"uid",
"edefault",
"=",
"=",
"null",
"?",
"uid",
"!",
"=",
"null",
":",
"!",
"uid",
"edefault",
"equals",
"(",
"uid",
")",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"poll",
":",
"return",
"poll",
"!",
"=",
"poll",
"edefault",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"enabled",
"a",
":",
"return",
"enabled",
"a",
"edefault",
"=",
"=",
"null",
"?",
"enabled",
"a",
"!",
"=",
"null",
":",
"!",
"enabled",
"a",
"edefault",
"equals",
"(",
"enabled",
"a",
")",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"tinkerforge",
"device",
":",
"return",
"tinkerforge",
"device",
"!",
"=",
"null",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"ip",
"connection",
":",
"return",
"ip",
"connection",
"edefault",
"=",
"=",
"null",
"?",
"ip",
"connection",
"!",
"=",
"null",
":",
"!",
"ip",
"connection",
"edefault",
"equals",
"(",
"ip",
"connection",
")",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"connected",
"uid",
":",
"return",
"connected",
"uid",
"edefault",
"=",
"=",
"null",
"?",
"connected",
"uid",
"!",
"=",
"null",
":",
"!",
"connected",
"uid",
"edefault",
"equals",
"(",
"connected",
"uid",
")",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"position",
":",
"return",
"position",
"!",
"=",
"position",
"edefault",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"device",
"identifier",
":",
"return",
"device",
"identifier",
"!",
"=",
"device",
"identifier",
"edefault",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"name",
":",
"return",
"name",
"edefault",
"=",
"=",
"null",
"?",
"name",
"!",
"=",
"null",
":",
"!",
"name",
"edefault",
"equals",
"(",
"name",
")",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"brickd",
":",
"return",
"basic",
"get",
"brickd",
"(",
")",
"!",
"=",
"null",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"sensor",
"value",
":",
"return",
"sensor",
"value",
"!",
"=",
"null",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"tf",
"config",
":",
"return",
"tf",
"config",
"!",
"=",
"null",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"callback",
"period",
":",
"return",
"callback",
"period",
"!",
"=",
"callback",
"period",
"edefault",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"device",
"type",
":",
"return",
"device",
"type",
"edefault",
"=",
"=",
"null",
"?",
"device",
"type",
"!",
"=",
"null",
":",
"!",
"device",
"type",
"edefault",
"equals",
"(",
"device",
"type",
")",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"threshold",
":",
"return",
"threshold",
"edefault",
"=",
"=",
"null",
"?",
"threshold",
"!",
"=",
"null",
":",
"!",
"threshold",
"edefault",
"equals",
"(",
"threshold",
")",
";",
"}",
"return",
"super",
"e",
"is",
"set",
"(",
"feature",
"i",
"d",
")",
";"
]
|
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
]
| [
"if",
"(",
"base",
"class",
"=",
"=",
"m",
"sensor",
"class",
")",
"{",
"switch",
"(",
"derived",
"feature",
"i",
"d",
")",
"{",
"case",
"model",
"package",
"mbricklet",
"co2",
"sensor",
"value",
":",
"return",
"model",
"package",
"msensor",
"sensor",
"value",
";",
"default",
":",
"return",
"-",
"1",
";",
"}",
"}",
"if",
"(",
"base",
"class",
"=",
"=",
"m",
"t",
"f",
"config",
"consumer",
"class",
")",
"{",
"switch",
"(",
"derived",
"feature",
"i",
"d",
")",
"{",
"case",
"model",
"package",
"mbricklet",
"co2",
"tf",
"config",
":",
"return",
"model",
"package",
"mtf",
"config",
"consumer",
"tf",
"config",
";",
"default",
":",
"return",
"-",
"1",
";",
"}",
"}",
"if",
"(",
"base",
"class",
"=",
"=",
"callback",
"listener",
"class",
")",
"{",
"switch",
"(",
"derived",
"feature",
"i",
"d",
")",
"{",
"case",
"model",
"package",
"mbricklet",
"co2",
"callback",
"period",
":",
"return",
"model",
"package",
"callback",
"listener",
"callback",
"period",
";",
"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",
"=",
"=",
"m",
"sensor",
"class",
")",
"{",
"switch",
"(",
"base",
"feature",
"i",
"d",
")",
"{",
"case",
"model",
"package",
"msensor",
"sensor",
"value",
":",
"return",
"model",
"package",
"mbricklet",
"co2",
"sensor",
"value",
";",
"default",
":",
"return",
"-",
"1",
";",
"}",
"}",
"if",
"(",
"base",
"class",
"=",
"=",
"m",
"t",
"f",
"config",
"consumer",
"class",
")",
"{",
"switch",
"(",
"base",
"feature",
"i",
"d",
")",
"{",
"case",
"model",
"package",
"mtf",
"config",
"consumer",
"tf",
"config",
":",
"return",
"model",
"package",
"mbricklet",
"co2",
"tf",
"config",
";",
"default",
":",
"return",
"-",
"1",
";",
"}",
"}",
"if",
"(",
"base",
"class",
"=",
"=",
"callback",
"listener",
"class",
")",
"{",
"switch",
"(",
"base",
"feature",
"i",
"d",
")",
"{",
"case",
"model",
"package",
"callback",
"listener",
"callback",
"period",
":",
"return",
"model",
"package",
"mbricklet",
"co2",
"callback",
"period",
";",
"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",
"=",
"=",
"m",
"sensor",
"class",
")",
"{",
"switch",
"(",
"base",
"operation",
"i",
"d",
")",
"{",
"case",
"model",
"package",
"msensor",
"fetch",
"sensor",
"value",
":",
"return",
"model",
"package",
"mbricklet",
"co2",
"fetch",
"sensor",
"value",
";",
"default",
":",
"return",
"-",
"1",
";",
"}",
"}",
"if",
"(",
"base",
"class",
"=",
"=",
"m",
"t",
"f",
"config",
"consumer",
"class",
")",
"{",
"switch",
"(",
"base",
"operation",
"i",
"d",
")",
"{",
"default",
":",
"return",
"-",
"1",
";",
"}",
"}",
"if",
"(",
"base",
"class",
"=",
"=",
"callback",
"listener",
"class",
")",
"{",
"switch",
"(",
"base",
"operation",
"i",
"d",
")",
"{",
"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",
"mbricklet",
"co2",
"init",
":",
"init",
"(",
")",
";",
"return",
"null",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"fetch",
"sensor",
"value",
":",
"fetch",
"sensor",
"value",
"(",
")",
";",
"return",
"null",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"enable",
":",
"enable",
"(",
")",
";",
"return",
"null",
";",
"case",
"model",
"package",
"mbricklet",
"co2",
"disable",
":",
"disable",
"(",
")",
";",
"return",
"null",
";",
"}",
"return",
"super",
"e",
"invoke",
"(",
"operation",
"i",
"d",
",",
"arguments",
")",
";"
]
|
[
"set",
"-",
"up",
"the",
"tests"
]
| [
"injection",
"manager",
"=",
"injections",
"create",
"injection",
"manager",
"(",
"this",
")",
";",
"executor",
"providers",
"register",
"executor",
"bindings",
"(",
"injection",
"manager",
")",
";",
"injection",
"manager",
"complete",
"registration",
"(",
")",
";"
]
|
[
"todo",
":",
"move",
"into",
"d",
"histogram"
]
| [
"double",
"n",
"=",
"h",
"w",
"(",
"b",
")",
";",
"return",
"n",
">",
"0",
"?",
"sums",
"[",
"b",
"]",
"/",
"n",
":",
"h",
"bin",
"at",
"(",
"b",
")",
";"
]
|
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"function",
"<",
"/",
"p",
">"
]
| [
"set",
"function",
"name",
"(",
"function",
"name",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"java",
"class",
"that",
"contains",
"the",
"function",
"code",
"<",
"/",
"p",
">"
]
| [
"set",
"class",
"name",
"(",
"class",
"name",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"owner",
"of",
"the",
"function",
"<",
"/",
"p",
">"
]
| [
"set",
"owner",
"name",
"(",
"owner",
"name",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"owner",
"type",
"<",
"/",
"p",
">"
]
| [
"set",
"owner",
"type",
"(",
"owner",
"type",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"owner",
"type",
"<",
"/",
"p",
">"
]
| [
"this",
"owner",
"type",
"=",
"owner",
"type",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"time",
"at",
"which",
"the",
"function",
"was",
"created",
"<",
"/",
"p",
">"
]
| [
"set",
"create",
"time",
"(",
"create",
"time",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"resource",
"u",
"r",
"is",
"for",
"the",
"function",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"resource",
"uris",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"resource",
"uris",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"this",
"resource",
"uris",
"=",
"=",
"null",
")",
"{",
"set",
"resource",
"uris",
"(",
"new",
"java",
"util",
"array",
"list",
"<",
"resource",
"uri",
">",
"(",
"resource",
"uris",
"length",
")",
")",
";",
"}",
"for",
"(",
"resource",
"uri",
"ele",
":",
"resource",
"uris",
")",
"{",
"this",
"resource",
"uris",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"resource",
"u",
"r",
"is",
"for",
"the",
"function",
"<",
"/",
"p",
">"
]
| [
"set",
"resource",
"uris",
"(",
"resource",
"uris",
")",
";",
"return",
"this",
";"
]
|
[
"-",
"-",
"-",
"executable",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-"
]
| [
"assert",
"does",
"not",
"throw",
"(",
"nix",
")",
";"
]
|
[
"indicates",
"use",
"of",
"rsv1",
"flag",
"for",
"indicating",
"deflation",
"is",
"in",
"use"
]
| [
"return",
"true",
";"
]
|
[
"return",
"the",
"mode",
"of",
"operation",
"for",
"dropping",
"(",
"or",
"keeping",
")",
"tail",
"bytes",
"in",
"frames",
"generated",
"by",
"compress",
"(",
"outgoing",
")"
]
| [
"abstract",
"int",
"get",
"tail",
"drop",
"mode",
"(",
")",
";"
]
|
[
"return",
"the",
"mode",
"of",
"operation",
"for",
"rsv",
"flag",
"use",
"in",
"frames",
"generate",
"by",
"compress",
"(",
"outgoing",
")"
]
| [
"abstract",
"int",
"get",
"rsv",
"use",
"mode",
"(",
")",
";"
]
|
[
"test",
"for",
"representation",
"of",
"boolean"
]
| [
"boolean",
"y",
"=",
"x",
";"
]
|
[
"test",
"for",
"representation",
"of",
"byte"
]
| [
"byte",
"y",
"=",
"x",
";"
]
|
[
"test",
"for",
"representation",
"of",
"char"
]
| [
"char",
"y",
"=",
"x",
";"
]
|
[
"test",
"for",
"representation",
"of",
"double"
]
| [
"double",
"y",
"=",
"x",
";"
]
|
[
"test",
"for",
"representation",
"of",
"float"
]
| [
"float",
"y",
"=",
"x",
";"
]
|
[
"test",
"for",
"representation",
"of",
"int"
]
| [
"int",
"y",
"=",
"x",
";"
]
|
[
"test",
"for",
"representation",
"of",
"long"
]
| [
"long",
"y",
"=",
"x",
";"
]
|
[
"test",
"for",
"representation",
"of",
"short"
]
| [
"short",
"y",
"=",
"x",
";"
]
|
[
"test",
"for",
"representation",
"of",
"object"
]
| [
"object",
"y",
"=",
"x",
";"
]
|
[
"reference",
"type",
")"
]
| [
"string",
"y",
"=",
"x",
";"
]
|
[
"test",
"for",
"representation",
"of",
"int",
"[",
"]",
"(",
"as",
"a",
"token",
"example",
"of",
"an",
"array",
"class",
")"
]
| [
"int",
"[",
"]",
"y",
"=",
"x",
";"
]
|
[
"we",
"shouldn",
"t",
"use",
"all",
"the",
"processors",
"available",
"because",
"this",
"can",
"bog",
"down",
"the",
"system",
"but",
"using",
"n",
"/",
"2",
"with",
"an",
"upper",
"limit",
"of",
"4",
"as",
"the",
"thread",
"limit",
"should",
"give",
"us",
"enough",
"threads",
"to",
"keep",
"s",
"s",
"ds",
"busy",
"whilst",
"not",
"bogging",
"down",
"systems",
"with",
"slow",
"rotating",
"disks"
]
| [
"int",
"limit",
"=",
"math",
"max",
"(",
"runtime",
"get",
"runtime",
"(",
")",
"available",
"processors",
"(",
")",
"/",
"2",
",",
"4",
")",
";",
"return",
"limit",
">",
"0",
"?",
"limit",
":",
"1",
";"
]
|
[
"write",
"edits",
"log",
"operation",
"to",
"the",
"stream"
]
| [
"abstract",
"public",
"void",
"write",
"(",
"f",
"s",
"edit",
"log",
"op",
"op",
")",
"throws",
"i",
"o",
"exception",
";"
]
|
[
"write",
"raw",
"data",
"to",
"an",
"edit",
"log",
"this",
"data",
"should",
"already",
"have",
"the",
"transaction",
"id",
"checksum",
"etc",
"included",
"it",
"is",
"for",
"use",
"within",
"the",
"backup",
"node",
"when",
"replicating",
"edits",
"from",
"the",
"name",
"node"
]
| [
"abstract",
"public",
"void",
"write",
"raw",
"(",
"byte",
"[",
"]",
"bytes",
",",
"int",
"offset",
",",
"int",
"length",
")",
"throws",
"i",
"o",
"exception",
";"
]
|
[
"create",
"and",
"initialize",
"underlying",
"persistent",
"edits",
"log",
"storage"
]
| [
"abstract",
"public",
"void",
"create",
"(",
"int",
"layout",
"version",
")",
"throws",
"i",
"o",
"exception",
";"
]
|
[
"close",
"the",
"journal"
]
| [
"@",
"override",
"abstract",
"public",
"void",
"close",
"(",
")",
"throws",
"i",
"o",
"exception",
";"
]
|
[
"close",
"the",
"stream",
"without",
"necessarily",
"flushing",
"any",
"pending",
"data",
"this",
"may",
"be",
"called",
"after",
"a",
"previous",
"write",
"or",
"close",
"threw",
"an",
"exception"
]
| [
"abstract",
"public",
"void",
"abort",
"(",
")",
"throws",
"i",
"o",
"exception",
";"
]
|
[
"all",
"data",
"that",
"has",
"been",
"written",
"to",
"the",
"stream",
"so",
"far",
"will",
"be",
"flushed",
"new",
"data",
"can",
"be",
"still",
"written",
"to",
"the",
"stream",
"while",
"flushing",
"is",
"performed"
]
| [
"abstract",
"public",
"void",
"set",
"ready",
"to",
"flush",
"(",
")",
"throws",
"i",
"o",
"exception",
";"
]
|
[
"flush",
"and",
"sync",
"all",
"data",
"that",
"is",
"ready",
"to",
"be",
"flush",
"{"
]
| [
"abstract",
"protected",
"void",
"flush",
"and",
"sync",
"(",
"boolean",
"durable",
")",
"throws",
"i",
"o",
"exception",
";"
]
|
[
"flush",
"data",
"to",
"persistent",
"store",
"collect",
"sync",
"metrics"
]
| [
"flush",
"(",
"true",
")",
";"
]
|
[
"implement",
"the",
"policy",
"when",
"to",
"automatically",
"sync",
"the",
"buffered",
"edits",
"log",
"the",
"buffered",
"edits",
"can",
"be",
"flushed",
"when",
"the",
"buffer",
"becomes",
"full",
"or",
"a",
"certain",
"period",
"of",
"time",
"is",
"elapsed"
]
| [
"return",
"false",
";"
]
|
[
"return",
"total",
"time",
"spent",
"in",
"{"
]
| [
"return",
"total",
"time",
"sync",
";"
]
|
[
"return",
"number",
"of",
"calls",
"to",
"{"
]
| [
"return",
"num",
"sync",
";"
]
|
[
"randomly",
"return",
"the",
"cluster",
"s",
"zk",
"based",
"csc",
"or",
"http",
"cluster",
"provider",
"based",
"csc"
]
| [
"return",
"random",
"(",
")",
"next",
"boolean",
"(",
")",
"?",
"cluster",
"get",
"solr",
"client",
"(",
")",
":",
"http",
"based",
"cloud",
"solr",
"client",
";"
]
|
[
"get",
"the",
"name",
"of",
"a",
"{"
]
| [
"if",
"(",
"bean",
"name",
"length",
"(",
")",
">",
"cache",
"manager",
"suffix",
"length",
"(",
")",
"&",
"&",
"string",
"utils",
"ends",
"with",
"ignore",
"case",
"(",
"bean",
"name",
",",
"cache",
"manager",
"suffix",
")",
")",
"{",
"return",
"bean",
"name",
"substring",
"(",
"0",
",",
"bean",
"name",
"length",
"(",
")",
"-",
"cache",
"manager",
"suffix",
"length",
"(",
")",
")",
";",
"}",
"return",
"bean",
"name",
";"
]
|
[
"sets",
"a",
"{"
]
| [
"m",
"input",
"event",
"listener",
"=",
"listener",
";"
]
|
[
"returns",
"the",
"display",
"properties",
"or",
"{"
]
| [
"return",
"m",
"display",
"properties",
";"
]
|
[
"unbinds",
"from",
"the",
"braille",
"display",
"service",
"and",
"deallocates",
"any",
"resources",
"this",
"method",
"should",
"be",
"called",
"when",
"the",
"braille",
"display",
"is",
"no",
"longer",
"in",
"use",
"by",
"this",
"client"
]
| [
"do",
"unbind",
"service",
"(",
")",
";"
]
|
[
"merge",
"entries",
"from",
"two",
"manifests",
"together",
"with",
"existing",
"attributes",
"being",
"overwritten"
]
| [
"attributes",
"attributes",
"=",
"from",
"get",
"main",
"attributes",
"(",
")",
";",
"if",
"(",
"attributes",
"!",
"=",
"null",
")",
"{",
"for",
"(",
"map",
"entry",
"<",
"object",
",",
"object",
">",
"attribute",
":",
"attributes",
"entry",
"set",
"(",
")",
")",
"{",
"into",
"get",
"main",
"attributes",
"(",
")",
"put",
"(",
"attribute",
"get",
"key",
"(",
")",
",",
"attribute",
"get",
"value",
"(",
")",
")",
";",
"}",
"}",
"map",
"<",
"string",
",",
"attributes",
">",
"entries",
"=",
"from",
"get",
"entries",
"(",
")",
";",
"if",
"(",
"entries",
"!",
"=",
"null",
")",
"{",
"for",
"(",
"map",
"entry",
"<",
"string",
",",
"attributes",
">",
"entry",
":",
"entries",
"entry",
"set",
"(",
")",
")",
"{",
"attributes",
"existing",
"=",
"into",
"get",
"attributes",
"(",
"entry",
"get",
"key",
"(",
")",
")",
";",
"if",
"(",
"existing",
"=",
"=",
"null",
")",
"{",
"existing",
"=",
"new",
"attributes",
"(",
")",
";",
"into",
"get",
"entries",
"(",
")",
"put",
"(",
"entry",
"get",
"key",
"(",
")",
",",
"existing",
")",
";",
"}",
"existing",
"put",
"all",
"(",
"entry",
"get",
"value",
"(",
")",
")",
";",
"}",
"}"
]
|
[
"get",
"the",
"wrapped",
"instance",
"by",
"<",
"code",
">",
"reader",
"<",
"/",
"code",
">",
"as",
"long",
"as",
"this",
"reader",
"is",
"an",
"instance",
"of",
"{"
]
| [
"while",
"(",
"reader",
"instanceof",
"filter",
"codec",
"reader",
")",
"{",
"reader",
"=",
"(",
"(",
"filter",
"codec",
"reader",
")",
"reader",
")",
"get",
"delegate",
"(",
")",
";",
"}",
"return",
"reader",
";"
]
|
[
"returns",
"the",
"wrapped",
"{"
]
| [
"return",
"in",
";"
]
|
[
"aggregates",
"a",
"sequence",
"of",
"{"
]
| [
"public",
"abstract",
"long",
"run",
"long",
"(",
"longs",
"values",
")",
";"
]
|
[
"aggregates",
"a",
"sequence",
"of",
"{"
]
| [
"public",
"abstract",
"double",
"run",
"double",
"(",
"doubles",
"values",
")",
";"
]
|
[
"returns",
"the",
"interpolation",
"method",
"to",
"use",
"when",
"working",
"with",
"data",
"points",
"across",
"time",
"series"
]
| [
"return",
"interpolation",
"method",
";"
]
|
[
"returns",
"configuration",
"key",
"for",
"effective",
"usergroups",
"allowed",
"for",
"a",
"superuser"
]
| [
"return",
"config",
"prefix",
"+",
"user",
"name",
"+",
"conf",
"users",
";"
]
|
[
"returns",
"configuration",
"key",
"for",
"effective",
"groups",
"allowed",
"for",
"a",
"superuser"
]
| [
"return",
"config",
"prefix",
"+",
"user",
"name",
"+",
"conf",
"groups",
";"
]
|
[
"return",
"configuration",
"key",
"for",
"superuser",
"ip",
"addresses"
]
| [
"return",
"config",
"prefix",
"+",
"user",
"name",
"+",
"conf",
"hosts",
";"
]
|
[
"/",
"*",
"returns",
"true",
"if",
"passed",
"list",
"contains",
"the",
"same",
"user",
"ids",
"as",
"this",
"list"
]
| [
"if",
"(",
"compare",
"ids",
"=",
"=",
"null",
"|",
"|",
"compare",
"ids",
"size",
"(",
")",
"!",
"=",
"this",
"size",
"(",
")",
")",
"{",
"return",
"false",
";",
"}",
"return",
"this",
"contains",
"all",
"(",
"compare",
"ids",
")",
";"
]
|
[
"returns",
"the",
"thread",
"-",
"pool",
"responsible",
"for",
"processing",
"incoming",
"requests"
]
| [
"return",
"query",
"executor",
";"
]
|
[
"returns",
"the",
"{"
]
| [
"public",
"abstract",
"abstract",
"server",
"handler",
"<",
"req",
",",
"resp",
">",
"initialize",
"handler",
"(",
")",
";"
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.