docstring_tokens list | code_tokens list |
|---|---|
[
"{"
] | [
"synchronized",
"(",
"this",
"context",
"map",
")",
"{",
"this",
"hit",
"count",
"set",
"(",
"0",
")",
";",
"this",
"miss",
"count",
"set",
"(",
"0",
")",
";",
"}"
] |
[
"<",
"p",
">",
"a",
"json",
"object",
"that",
"contains",
"the",
"url",
"string",
"<",
"/",
"p",
">"
] | [
"this",
"authorized",
"url",
"=",
"authorized",
"url",
";"
] |
[
"<",
"p",
">",
"a",
"json",
"object",
"that",
"contains",
"the",
"url",
"string",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"authorized",
"url",
";"
] |
[
"<",
"p",
">",
"a",
"json",
"object",
"that",
"contains",
"the",
"url",
"string",
"<",
"/",
"p",
">"
] | [
"set",
"authorized",
"url",
"(",
"authorized",
"url",
")",
";",
"return",
"this",
";"
] |
[
"generate",
"the",
"hash",
"code",
"for",
"this",
"type",
"info"
] | [
"return",
"objects",
"hash",
"(",
"type",
"name",
",",
"time",
"zone",
")",
";"
] |
[
"{"
] | [
"super",
"init",
"new",
"page",
"(",
"page",
"addr",
",",
"page",
"id",
",",
"page",
"size",
")",
";",
"set",
"empty",
"page",
"(",
"page",
"addr",
",",
"page",
"size",
")",
";",
"set",
"free",
"list",
"page",
"id",
"(",
"page",
"addr",
",",
"0l"... |
[
"equivalent",
"for",
"{",
"@",
"link",
"#",
"actual",
"free",
"space",
"(",
"long",
"int",
")",
"}",
"but",
"reads",
"saved",
"value"
] | [
"return",
"page",
"utils",
"get",
"short",
"(",
"page",
"addr",
",",
"free",
"space",
"off",
")",
";"
] |
[
"sets",
"position",
"to",
"start",
"of",
"actual",
"fragment",
"data",
"and",
"limit",
"to",
"it",
"s",
"end"
] | [
"int",
"data",
"off",
"=",
"get",
"data",
"offset",
"(",
"page",
"addr",
",",
"item",
"id",
",",
"page",
"size",
")",
";",
"boolean",
"fragmented",
"=",
"is",
"fragmented",
"(",
"page",
"addr",
",",
"data",
"off",
")",
";",
"long",
"next",
"link",
... |
[
"adds",
"maximum",
"possible",
"fragment",
"of",
"the",
"given",
"row",
"to",
"this",
"data",
"page",
"and",
"sets",
"respective",
"link",
"to",
"the",
"row"
] | [
"return",
"add",
"row",
"fragment",
"(",
"page",
"mem",
",",
"page",
"id",
",",
"page",
"addr",
",",
"written",
",",
"row",
"size",
",",
"row",
"link",
"(",
")",
",",
"row",
",",
"null",
",",
"page",
"size",
")",
";"
] |
[
"adds",
"this",
"payload",
"as",
"a",
"fragment",
"to",
"this",
"data",
"page"
] | [
"add",
"row",
"fragment",
"(",
"null",
",",
"page",
"id",
",",
"page",
"addr",
",",
"0",
",",
"0",
",",
"last",
"link",
",",
"null",
",",
"payload",
",",
"page",
"size",
")",
";"
] |
[
"write",
"row",
"data",
"fragment"
] | [
"protected",
"abstract",
"void",
"write",
"fragment",
"data",
"(",
"final",
"t",
"row",
",",
"final",
"byte",
"buffer",
"buf",
",",
"final",
"int",
"row",
"off",
",",
"final",
"int",
"payload",
"size",
")",
"throws",
"ignite",
"checked",
"exception",
";"
] |
[
"full",
"-",
"scan",
"free",
"space",
"calculation",
"procedure"
] | [
"int",
"direct",
"cnt",
"=",
"get",
"direct",
"count",
"(",
"page",
"addr",
")",
";",
"int",
"entries",
"size",
"=",
"0",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"direct",
"cnt",
";",
"i",
"+",
"+",
")",
"{",
"int",
"off",
"=",
... |
[
"gets",
"the",
"plugin",
"property"
] | [
"return",
"plugin",
"property",
";"
] |
[
"sets",
"the",
"plugin",
"property"
] | [
"this",
"plugin",
"property",
"=",
"plugin",
"property",
";"
] |
[
"returns",
"true",
"if",
"field",
"lockid",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"return",
"encoding",
"utils",
"test",
"bit",
"(",
"isset",
"bitfield",
",",
"lockid",
"isset",
"id",
")",
";"
] |
[
"returns",
"true",
"if",
"field",
"dbname",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"return",
"this",
"dbname",
"!",
"=",
"null",
";"
] |
[
"returns",
"true",
"if",
"field",
"tablename",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"return",
"this",
"tablename",
"!",
"=",
"null",
";"
] |
[
"returns",
"true",
"if",
"field",
"partname",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"return",
"this",
"partname",
"!",
"=",
"null",
";"
] |
[
"returns",
"true",
"if",
"field",
"txnid",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"return",
"encoding",
"utils",
"test",
"bit",
"(",
"isset",
"bitfield",
",",
"txnid",
"isset",
"id",
")",
";"
] |
[
"returns",
"true",
"if",
"field",
"lastheartbeat",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"return",
"encoding",
"utils",
"test",
"bit",
"(",
"isset",
"bitfield",
",",
"lastheartbeat",
"isset",
"id",
")",
";"
] |
[
"returns",
"true",
"if",
"field",
"acquiredat",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"return",
"encoding",
"utils",
"test",
"bit",
"(",
"isset",
"bitfield",
",",
"acquiredat",
"isset",
"id",
")",
";"
] |
[
"returns",
"true",
"if",
"field",
"user",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"return",
"this",
"user",
"!",
"=",
"null",
";"
] |
[
"<",
"p",
">",
"the",
"public",
"dns",
"name",
"of",
"the",
"task",
"runner",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"hostname",
";"
] |
[
"returns",
"true",
"if",
"field",
"hostname",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"return",
"this",
"hostname",
"!",
"=",
"null",
";"
] |
[
"returns",
"true",
"if",
"field",
"heartbeat",
"count",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"return",
"encoding",
"utils",
"test",
"bit",
"(",
"isset",
"bitfield",
",",
"heartbeatcount",
"isset",
"id",
")",
";"
] |
[
"returns",
"true",
"if",
"field",
"agent",
"info",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"return",
"this",
"agent",
"info",
"!",
"=",
"null",
";"
] |
[
"returns",
"true",
"if",
"field",
"blocked",
"by",
"ext",
"id",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"return",
"encoding",
"utils",
"test",
"bit",
"(",
"isset",
"bitfield",
",",
"blockedbyextid",
"isset",
"id",
")",
";"
] |
[
"returns",
"true",
"if",
"field",
"blocked",
"by",
"int",
"id",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"return",
"encoding",
"utils",
"test",
"bit",
"(",
"isset",
"bitfield",
",",
"blockedbyintid",
"isset",
"id",
")",
";"
] |
[
"returns",
"true",
"if",
"field",
"lock",
"id",
"internal",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"return",
"encoding",
"utils",
"test",
"bit",
"(",
"isset",
"bitfield",
",",
"lockidinternal",
"isset",
"id",
")",
";"
] |
[
"returns",
"true",
"if",
"field",
"corresponding",
"to",
"field",
"i",
"d",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"if",
"(",
"field",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
")",
";",
"}",
"switch",
"(",
"field",
")",
"{",
"case",
"lockid",
":",
"return",
"is",
"set",
"lockid",
"(",
")",
";",
"case",
"dbname",
":",
... |
[
"set",
"input",
"filter",
"size",
"for",
"this",
"locally",
"connected",
"1d",
"layer"
] | [
";",
"this",
"input",
"size",
"=",
"input",
"size",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"<",
"code",
">",
"dimensions",
"<",
"/",
"code",
">",
"for",
"the",
"<",
"code",
">",
"current",
"metric",
"result",
"<",
"/",
"code",
">",
"object",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"dimensions",
";"
] |
[
"<",
"p",
">",
"the",
"<",
"code",
">",
"dimensions",
"<",
"/",
"code",
">",
"for",
"the",
"metrics",
"<",
"/",
"p",
">"
] | [
"set",
"dimensions",
"(",
"dimensions",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"a",
"list",
"of",
"<",
"code",
">",
"historical",
"metric",
"data",
"<",
"/",
"code",
">",
"objects",
"<",
"/",
"p",
">"
] | [
"return",
"collections",
";"
] |
[
"<",
"p",
">",
"a",
"list",
"of",
"<",
"code",
">",
"historical",
"metric",
"data",
"<",
"/",
"code",
">",
"objects",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"collections",
"=",
"=",
"null",
")",
"{",
"this",
"collections",
"=",
"null",
";",
"return",
";",
"}",
"this",
"collections",
"=",
"new",
"java",
"util",
"array",
"list",
"<",
"historical",
"metric",
"data",
">",
"(",
"collections",
")",
";... |
[
"<",
"p",
">",
"a",
"list",
"of",
"<",
"code",
">",
"historical",
"metric",
"data",
"<",
"/",
"code",
">",
"objects",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"valu... | [
"if",
"(",
"this",
"collections",
"=",
"=",
"null",
")",
"{",
"set",
"collections",
"(",
"new",
"java",
"util",
"array",
"list",
"<",
"historical",
"metric",
"data",
">",
"(",
"collections",
"length",
")",
")",
";",
"}",
"for",
"(",
"historical",
"metr... |
[
"<",
"p",
">",
"a",
"list",
"of",
"<",
"code",
">",
"historical",
"metric",
"data",
"<",
"/",
"code",
">",
"objects",
"<",
"/",
"p",
">"
] | [
"set",
"collections",
"(",
"collections",
")",
";",
"return",
"this",
";"
] |
[
"on",
"preference",
"start",
"fragment",
"callback",
":"
] | [
"start",
"fragment",
"(",
"preference",
"get",
"fragment",
"(",
")",
",",
"preference",
"get",
"extras",
"(",
")",
")",
";",
"return",
"true",
";"
] |
[
"starts",
"a",
"new",
"preferences",
"activity",
"showing",
"the",
"desired",
"fragment"
] | [
"intent",
"intent",
"=",
"new",
"intent",
"(",
"intent",
"action",
"main",
")",
";",
"intent",
"set",
"class",
"(",
"this",
",",
"get",
"class",
"(",
")",
")",
";",
"intent",
"put",
"extra",
"(",
"extra",
"show",
"fragment",
",",
"fragment",
"class",
... |
[
"returns",
"the",
"fragment",
"showing",
"as",
"this",
"activity",
"s",
"main",
"content",
"typically",
"a",
"preference",
"fragment",
"this",
"does",
"not",
"include",
"dialog",
"fragments",
"or",
"other",
"fragments",
"shown",
"on",
"top",
"of",
"the",
"main... | [
"return",
"get",
"fragment",
"manager",
"(",
")",
"find",
"fragment",
"by",
"id",
"(",
"android",
"r",
"id",
"content",
")",
";"
] |
[
"returns",
"the",
"azimuth"
] | [
"return",
"azimuth",
";"
] |
[
"sets",
"the",
"azimuth"
] | [
"this",
"azimuth",
"=",
"azimuth",
";"
] |
[
"returns",
"the",
"elevation"
] | [
"return",
"elevation",
";"
] |
[
"sets",
"the",
"elevation"
] | [
"this",
"elevation",
"=",
"elevation",
";"
] |
[
"visits",
"a",
"primitive",
"value",
"of",
"the",
"annotation"
] | [
"if",
"(",
"av",
"!",
"=",
"null",
")",
"{",
"av",
"visit",
"(",
"name",
",",
"value",
")",
";",
"}"
] |
[
"visits",
"an",
"enumeration",
"value",
"of",
"the",
"annotation"
] | [
"if",
"(",
"av",
"!",
"=",
"null",
")",
"{",
"av",
"visit",
"enum",
"(",
"name",
",",
"descriptor",
",",
"value",
")",
";",
"}"
] |
[
"visits",
"a",
"nested",
"annotation",
"value",
"of",
"the",
"annotation"
] | [
"if",
"(",
"av",
"!",
"=",
"null",
")",
"{",
"return",
"av",
"visit",
"annotation",
"(",
"name",
",",
"descriptor",
")",
";",
"}",
"return",
"null",
";"
] |
[
"visits",
"an",
"array",
"value",
"of",
"the",
"annotation",
"note",
"that",
"arrays",
"of",
"primitive",
"types",
"(",
"such",
"as",
"byte",
"boolean",
"short",
"char",
"int",
"long",
"float",
"or",
"double",
")",
"can",
"be",
"passed",
"as",
"value",
"... | [
"if",
"(",
"av",
"!",
"=",
"null",
")",
"{",
"return",
"av",
"visit",
"array",
"(",
"name",
")",
";",
"}",
"return",
"null",
";"
] |
[
"visits",
"the",
"end",
"of",
"the",
"annotation"
] | [
"if",
"(",
"av",
"!",
"=",
"null",
")",
"{",
"av",
"visit",
"end",
"(",
")",
";",
"}"
] |
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
] | [
"return",
"model",
"package",
"literals",
"color",
"color",
";"
] |
[
"<",
"!",
"-",
"-",
"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"... |
[
"<",
"!",
"-",
"-",
"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... |
[
"<",
"!",
"-",
"-",
"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",
"pa... |
[
"<",
"!",
"-",
"-",
"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",
","... |
[
"<",
"!",
"-",
"-",
"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",
"se... |
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
] | [
"if",
"(",
"e",
"container",
"feature",
"i",
"d",
"(",
")",
"!",
"=",
"model",
"package",
"color",
"color",
"mbrick",
")",
"return",
"null",
";",
"return",
"(",
"m",
"bricklet",
"color",
")",
"e",
"container",
"(",
")",
";"
] |
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
] | [
"if",
"(",
"e",
"container",
"feature",
"i",
"d",
"(",
")",
"!",
"=",
"model",
"package",
"color",
"color",
"mbrick",
")",
"return",
"null",
";",
"return",
"(",
"m",
"bricklet",
"color",
")",
"e",
"internal",
"container",
"(",
")",
";"
] |
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
] | [
"msgs",
"=",
"e",
"basic",
"set",
"container",
"(",
"(",
"internal",
"e",
"object",
")",
"new",
"mbrick",
",",
"model",
"package",
"color",
"color",
"mbrick",
",",
"msgs",
")",
";",
"return",
"msgs",
";"
] |
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
] | [
"return",
"sensor",
"value",
";"
] |
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
] | [
"h",
"s",
"b",
"value",
"old",
"sensor",
"value",
"=",
"sensor",
"value",
";",
"sensor",
"value",
"=",
"new",
"sensor",
"value",
";",
"if",
"(",
"e",
"notification",
"required",
"(",
")",
")",
"e",
"notify",
"(",
"new",
"e",
"notification",
"impl",
"... |
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
] | [
"return",
"tf",
"config",
";"
] |
[
"<",
"!",
"-",
"-",
"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"... |
[
"<",
"!",
"-",
"-",
"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",
")",... |
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
] | [
"return",
"callback",
"period",
";"
] |
[
"<",
"!",
"-",
"-",
"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",
"(",
"thi... |
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
] | [
"try",
"{",
"com",
"tinkerforge",
"bricklet",
"color",
"color",
"color",
"=",
"tinkerforge",
"device",
"get",
"color",
"(",
")",
";",
"set",
"sensor",
"value",
"(",
"new",
"h",
"s",
"b",
"value",
"(",
"new",
"h",
"s",
"b",
"type",
"(",
"new",
"color"... |
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
] | [
"set",
"enabled",
"a",
"(",
"new",
"atomic",
"boolean",
"(",
")",
")",
";",
"logger",
"=",
"logger",
"factory",
"get",
"logger",
"(",
"color",
"color",
"impl",
"class",
")",
";"
] |
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
] | [
"if",
"(",
"listener",
"!",
"=",
"null",
")",
"{",
"tinkerforge",
"device",
"remove",
"color",
"listener",
"(",
"listener",
")",
";",
"}",
"tinkerforge",
"device",
"=",
"null",
";"
] |
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
] | [
"switch",
"(",
"feature",
"i",
"d",
")",
"{",
"case",
"model",
"package",
"color",
"color",
"mbrick",
":",
"if",
"(",
"e",
"internal",
"container",
"(",
")",
"!",
"=",
"null",
")",
"msgs",
"=",
"e",
"basic",
"remove",
"from",
"container",
"(",
"msgs"... |
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
] | [
"switch",
"(",
"feature",
"i",
"d",
")",
"{",
"case",
"model",
"package",
"color",
"color",
"mbrick",
":",
"return",
"basic",
"set",
"mbrick",
"(",
"null",
",",
"msgs",
")",
";",
"case",
"model",
"package",
"color",
"color",
"tf",
"config",
":",
"retur... |
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
] | [
"switch",
"(",
"e",
"container",
"feature",
"i",
"d",
"(",
")",
")",
"{",
"case",
"model",
"package",
"color",
"color",
"mbrick",
":",
"return",
"e",
"internal",
"container",
"(",
")",
"e",
"inverse",
"remove",
"(",
"this",
",",
"model",
"package",
"ms... |
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
] | [
"switch",
"(",
"feature",
"i",
"d",
")",
"{",
"case",
"model",
"package",
"color",
"color",
"logger",
":",
"return",
"get",
"logger",
"(",
")",
";",
"case",
"model",
"package",
"color",
"color",
"uid",
":",
"return",
"get",
"uid",
"(",
")",
";",
"cas... |
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
] | [
"switch",
"(",
"feature",
"i",
"d",
")",
"{",
"case",
"model",
"package",
"color",
"color",
"logger",
":",
"set",
"logger",
"(",
"(",
"logger",
")",
"new",
"value",
")",
";",
"return",
";",
"case",
"model",
"package",
"color",
"color",
"uid",
":",
"s... |
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
] | [
"switch",
"(",
"feature",
"i",
"d",
")",
"{",
"case",
"model",
"package",
"color",
"color",
"logger",
":",
"set",
"logger",
"(",
"logger",
"edefault",
")",
";",
"return",
";",
"case",
"model",
"package",
"color",
"color",
"uid",
":",
"set",
"uid",
"(",... |
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
] | [
"switch",
"(",
"feature",
"i",
"d",
")",
"{",
"case",
"model",
"package",
"color",
"color",
"logger",
":",
"return",
"logger",
"edefault",
"=",
"=",
"null",
"?",
"logger",
"!",
"=",
"null",
":",
"!",
"logger",
"edefault",
"equals",
"(",
"logger",
")",
... |
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
] | [
"if",
"(",
"base",
"class",
"=",
"=",
"m",
"sensor",
"class",
")",
"{",
"switch",
"(",
"derived",
"feature",
"i",
"d",
")",
"{",
"case",
"model",
"package",
"color",
"color",
"sensor",
"value",
":",
"return",
"model",
"package",
"msensor",
"sensor",
"v... |
[
"<",
"!",
"-",
"-",
"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",
"color",
"color",
"sensor",
"valu... |
[
"<",
"!",
"-",
"-",
"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",
"color",
"color",
"fet... |
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
] | [
"switch",
"(",
"operation",
"i",
"d",
")",
"{",
"case",
"model",
"package",
"color",
"color",
"fetch",
"sensor",
"value",
":",
"fetch",
"sensor",
"value",
"(",
")",
";",
"return",
"null",
";",
"case",
"model",
"package",
"color",
"color",
"init",
":",
... |
[
"check",
"the",
"indentation",
"level",
"of",
"the",
"conditional",
"expression"
] | [
"final",
"detail",
"a",
"s",
"t",
"cond",
"ast",
"=",
"get",
"main",
"ast",
"(",
")",
"find",
"first",
"token",
"(",
"token",
"types",
"lparen",
")",
"get",
"next",
"sibling",
"(",
")",
";",
"check",
"expression",
"subtree",
"(",
"cond",
"ast",
",",
... |
[
"sets",
"the",
"name",
"of",
"the",
"target",
"bucket",
"and",
"returns",
"this",
"updated",
"request",
"object",
"so",
"that",
"additional",
"method",
"calls",
"can",
"be",
"chained",
"together"
] | [
"set",
"bucket",
"name",
"(",
"bucket",
"name",
")",
";",
"return",
"this",
";"
] |
[
"override"
] | [
"reset",
"checking",
"state",
"(",
"new",
"model",
"!",
"=",
"null",
"?",
"(",
"default",
"mutable",
"tree",
"node",
")",
"new",
"model",
"get",
"root",
"(",
")",
":",
"null",
")",
";",
"super",
"set",
"model",
"(",
"new",
"model",
")",
";"
] |
[
"new",
"method",
"that",
"returns",
"only",
"the",
"checked",
"paths",
"(",
"totally",
"ignores",
"original",
"selection",
"mechanism",
")"
] | [
"return",
"checked",
"paths",
"to",
"array",
"(",
"new",
"tree",
"path",
"[",
"checked",
"paths",
"size",
"(",
")",
"]",
")",
";"
] |
[
"returns",
"true",
"in",
"case",
"that",
"the",
"node",
"is",
"selected",
"has",
"children",
"but",
"not",
"all",
"of",
"them",
"are",
"selected"
] | [
"checked",
"node",
"cn",
"=",
"nodes",
"checking",
"state",
"get",
"(",
"path",
")",
";",
"return",
"cn",
"is",
"selected",
"&",
"&",
"cn",
"has",
"children",
"&",
"&",
"!",
"cn",
"all",
"children",
"selected",
";"
] |
[
"creating",
"data",
"structure",
"of",
"the",
"current",
"model",
"for",
"the",
"checking",
"mechanism"
] | [
"tree",
"node",
"[",
"]",
"path",
"=",
"node",
"get",
"path",
"(",
")",
";",
"tree",
"path",
"tp",
"=",
"new",
"tree",
"path",
"(",
"path",
")",
";",
"checked",
"node",
"cn",
"=",
"new",
"checked",
"node",
"(",
"false",
",",
"node",
"get",
"child... |
[
"recursively",
"checks",
"/",
"unchecks",
"a",
"subtree"
] | [
"checked",
"node",
"cn",
"=",
"nodes",
"checking",
"state",
"get",
"(",
"tp",
")",
";",
"cn",
"is",
"selected",
"=",
"check",
";",
"default",
"mutable",
"tree",
"node",
"node",
"=",
"(",
"default",
"mutable",
"tree",
"node",
")",
"tp",
"get",
"last",
... |
[
"recursively",
"checks",
"/",
"unchecks",
"a",
"subtree"
] | [
"checked",
"node",
"cn",
"=",
"nodes",
"checking",
"state",
"get",
"(",
"tp",
")",
";",
"cn",
"is",
"selected",
"=",
"check",
";",
"if",
"(",
"check",
")",
"{",
"checked",
"paths",
"add",
"(",
"tp",
")",
";",
"}",
"else",
"{",
"checked",
"paths",
... |
[
"unsafe",
"version",
"of",
":",
"{",
"@",
"link",
"#",
"gl",
"draw",
"elements",
"instanced",
"draw",
"elements",
"instanced",
"}"
] | [
"public",
"static",
"native",
"void",
"ngl",
"draw",
"elements",
"instanced",
"(",
"int",
"mode",
",",
"int",
"count",
",",
"int",
"type",
",",
"long",
"indices",
",",
"int",
"primcount",
")",
";"
] |
[
"-",
"-",
"-",
"[",
"gl",
"get",
"uniform",
"indices",
"]",
"-",
"-",
"-"
] | [
"public",
"static",
"native",
"void",
"ngl",
"get",
"uniform",
"indices",
"(",
"int",
"program",
",",
"int",
"uniform",
"count",
",",
"long",
"uniform",
"names",
",",
"long",
"uniform",
"indices",
")",
";"
] |
[
"-",
"-",
"-",
"[",
"gl",
"get",
"active",
"uniformsiv",
"]",
"-",
"-",
"-"
] | [
"public",
"static",
"native",
"void",
"ngl",
"get",
"active",
"uniformsiv",
"(",
"int",
"program",
",",
"int",
"uniform",
"count",
",",
"long",
"uniform",
"indices",
",",
"int",
"pname",
",",
"long",
"params",
")",
";"
] |
[
"unsafe",
"version",
"of",
":",
"{",
"@",
"link",
"#",
"gl",
"get",
"active",
"uniform",
"name",
"get",
"active",
"uniform",
"name",
"}"
] | [
"public",
"static",
"native",
"void",
"ngl",
"get",
"active",
"uniform",
"name",
"(",
"int",
"program",
",",
"int",
"uniform",
"index",
",",
"int",
"buf",
"size",
",",
"long",
"length",
",",
"long",
"uniform",
"name",
")",
";"
] |
[
"-",
"-",
"-",
"[",
"gl",
"get",
"uniform",
"block",
"index",
"]",
"-",
"-",
"-"
] | [
"public",
"static",
"native",
"int",
"ngl",
"get",
"uniform",
"block",
"index",
"(",
"int",
"program",
",",
"long",
"uniform",
"block",
"name",
")",
";"
] |
[
"-",
"-",
"-",
"[",
"gl",
"get",
"active",
"uniform",
"blockiv",
"]",
"-",
"-",
"-"
] | [
"public",
"static",
"native",
"void",
"ngl",
"get",
"active",
"uniform",
"blockiv",
"(",
"int",
"program",
",",
"int",
"uniform",
"block",
"index",
",",
"int",
"pname",
",",
"long",
"params",
")",
";"
] |
[
"-",
"-",
"-",
"[",
"gl",
"get",
"active",
"uniform",
"block",
"name",
"]",
"-",
"-",
"-"
] | [
"public",
"static",
"native",
"void",
"ngl",
"get",
"active",
"uniform",
"block",
"name",
"(",
"int",
"program",
",",
"int",
"uniform",
"block",
"index",
",",
"int",
"buf",
"size",
",",
"long",
"length",
",",
"long",
"uniform",
"block",
"name",
")",
";"
... |
[
"{"
] | [
"ignite",
"configuration",
"cfg",
"=",
"super",
"get",
"configuration",
"(",
"grid",
"name",
")",
";",
"cfg",
"set",
"consistent",
"id",
"(",
"grid",
"name",
")",
";",
"(",
"(",
"tcp",
"discovery",
"spi",
")",
"cfg",
"get",
"discovery",
"spi",
"(",
")"... |
[
"{"
] | [
"super",
"after",
"tests",
"stopped",
"(",
")",
";",
"stop",
"all",
"grids",
"(",
")",
";",
"clean",
"persistence",
"dir",
"(",
")",
";"
] |
[
"{"
] | [
"super",
"after",
"test",
"(",
")",
";",
"stop",
"all",
"grids",
"(",
")",
";",
"clean",
"persistence",
"dir",
"(",
")",
";"
] |
[
"simulates",
"tapping",
"the",
"menu",
"key"
] | [
"final",
"instrumentation",
"inst",
"=",
"test",
"get",
"instrumentation",
"(",
")",
";",
"inst",
"send",
"key",
"sync",
"(",
"new",
"key",
"event",
"(",
"key",
"event",
"action",
"down",
",",
"key",
"event",
"keycode",
"menu",
")",
")",
";",
"inst",
"... |
[
"simulates",
"chording",
"the",
"menu",
"key"
] | [
"final",
"instrumentation",
"inst",
"=",
"test",
"get",
"instrumentation",
"(",
")",
";",
"final",
"key",
"event",
"push",
"menu",
"key",
"=",
"new",
"key",
"event",
"(",
"key",
"event",
"action",
"down",
",",
"key",
"event",
"keycode",
"menu",
")",
";",... |
[
"simulates",
"a",
"long",
"click",
"via",
"the",
"keyboard"
] | [
"final",
"instrumentation",
"inst",
"=",
"test",
"get",
"instrumentation",
"(",
")",
";",
"inst",
"send",
"key",
"sync",
"(",
"new",
"key",
"event",
"(",
"key",
"event",
"action",
"down",
",",
"key",
"event",
"keycode",
"dpad",
"center",
")",
")",
";",
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.