docstring_tokens
sequence | code_tokens
sequence |
---|---|
[
"<",
"tt",
">",
"ctx",
"gateway",
"(",
")",
"read",
"unlock",
"(",
")",
"<",
"/",
"tt",
">"
] | [
"assert",
"ctx",
"!",
"=",
"null",
";",
"ctx",
"gateway",
"(",
")",
"read",
"unlock",
"(",
")",
";"
] |
[
"{"
] | [
"ignite",
"instance",
"name",
"=",
"u",
"read",
"string",
"(",
"in",
")",
";"
] |
[
"{"
] | [
"u",
"write",
"string",
"(",
"out",
",",
"ignite",
"instance",
"name",
")",
";"
] |
[
"{"
] | [
"return",
"s",
"to",
"string",
"(",
"reconnect",
"state",
"class",
",",
"this",
")",
";"
] |
[
"unregisters",
"all",
"previously",
"registered",
"m",
"beans"
] | [
"boolean",
"success",
"=",
"true",
";",
"for",
"(",
"object",
"name",
"name",
":",
"m",
"bean",
"names",
")",
"success",
"=",
"success",
"&",
"&",
"unregister",
"m",
"bean",
"(",
"name",
")",
";",
"return",
"success",
";"
] |
[
"{"
] | [
"ctx",
"io",
"(",
")",
"run",
"io",
"test",
"(",
"warmup",
",",
"duration",
",",
"threads",
",",
"max",
"latency",
",",
"ranges",
"cnt",
",",
"pay",
"load",
"size",
",",
"proc",
"from",
"nio",
"thread",
",",
"new",
"array",
"list",
"(",
"ctx",
"cluster",
"(",
")",
"get",
"(",
")",
"for",
"servers",
"(",
")",
"for",
"remotes",
"(",
")",
"nodes",
"(",
")",
")",
")",
";"
] |
[
"{"
] | [
"ctx",
"cluster",
"(",
")",
"get",
"(",
")",
"clear",
"node",
"map",
"(",
")",
";"
] |
[
"{"
] | [
"return",
"s",
"to",
"string",
"(",
"ignite",
"kernal",
"class",
",",
"this",
")",
";"
] |
[
"registers",
"an",
"inner",
"touch",
"delegate",
"for",
"the",
"given",
"view",
"with",
"the",
"specified",
"expansion",
"it",
"assumes",
"the",
"given",
"view",
"has",
"its",
"final",
"bounds",
"set"
] | [
"m",
"delegates",
"put",
"(",
"index",
",",
"inner",
"touch",
"delegate",
"acquire",
"(",
"view",
",",
"touch",
"expansion",
")",
")",
";"
] |
[
"unregisters",
"an",
"inner",
"touch",
"delegate",
"with",
"the",
"given",
"index"
] | [
"if",
"(",
"maybe",
"unregister",
"from",
"scrap",
"(",
"index",
")",
")",
"{",
"return",
";",
"}",
"final",
"int",
"value",
"index",
"=",
"m",
"delegates",
"index",
"of",
"key",
"(",
"index",
")",
";",
"final",
"inner",
"touch",
"delegate",
"touch",
"delegate",
"=",
"m",
"delegates",
"value",
"at",
"(",
"value",
"index",
")",
";",
"m",
"delegates",
"remove",
"at",
"(",
"value",
"index",
")",
";",
"touch",
"delegate",
"release",
"(",
")",
";"
] |
[
"called",
"when",
"the",
"mount",
"item",
"this",
"delegate",
"is",
"referred",
"to",
"is",
"moved",
"to",
"another",
"position",
"to",
"also",
"update",
"the",
"indexes",
"of",
"the",
"touch",
"expansion",
"delegate"
] | [
"if",
"(",
"m",
"delegates",
"get",
"(",
"new",
"index",
")",
"!",
"=",
"null",
")",
"{",
"ensure",
"scrap",
"delegates",
"(",
")",
";",
"component",
"host",
"utils",
"scrap",
"item",
"at",
"(",
"new",
"index",
",",
"m",
"delegates",
",",
"m",
"scrap",
"delegates",
")",
";",
"}",
"component",
"host",
"utils",
"move",
"item",
"(",
"old",
"index",
",",
"new",
"index",
",",
"m",
"delegates",
",",
"m",
"scrap",
"delegates",
")",
";",
"release",
"scrap",
"delegates",
"if",
"needed",
"(",
")",
";"
] |
[
"initializes",
"the",
"native",
"component",
"of",
"a",
"{"
] | [
"if",
"(",
"m",
"native",
"ptr",
"=",
"=",
"0",
")",
"{",
"m",
"native",
"ptr",
"=",
"native",
"init",
"(",
")",
";",
"}",
"assert",
"m",
"native",
"ptr",
"!",
"=",
"0",
";"
] |
[
"destroys",
"this",
"object",
"and",
"the",
"corresponding",
"native",
"component"
] | [
"assert",
"m",
"native",
"ptr",
"!",
"=",
"0",
";",
"native",
"destroy",
"(",
"m",
"native",
"ptr",
")",
";",
"assert",
"m",
"native",
"ptr",
"=",
"=",
"0",
";"
] |
[
"copies",
"native",
"binaries",
"to",
"a",
"shared",
"library",
"directory"
] | [
"for",
"(",
"long",
"apk",
"handle",
":",
"handle",
"apk",
"handles",
")",
"{",
"int",
"res",
"=",
"native",
"copy",
"native",
"binaries",
"(",
"apk",
"handle",
",",
"shared",
"library",
"dir",
"get",
"path",
"(",
")",
",",
"abi",
",",
"handle",
"extract",
"native",
"libs",
",",
"handle",
"debuggable",
")",
";",
"if",
"(",
"res",
"!",
"=",
"install",
"succeeded",
")",
"{",
"return",
"res",
";",
"}",
"}",
"return",
"install",
"succeeded",
";"
] |
[
"returns",
"true",
"iff",
"this",
"fragment",
"is",
"to",
"be",
"highlighted"
] | [
"return",
"false",
";"
] |
[
"returns",
"true",
"iff",
"this",
"fragment",
"is",
"an",
"ellipsis"
] | [
"return",
"false",
";"
] |
[
"returns",
"an",
"html",
"representation",
"of",
"this",
"fragment"
] | [
"return",
"htmlize",
"(",
"text",
")",
";"
] |
[
"returns",
"true"
] | [
"return",
"true",
";"
] |
[
"returns",
"true"
] | [
"return",
"true",
";"
] |
[
"/",
"*",
"adds",
"a",
"fragment",
"to",
"a",
"summary"
] | [
"fragments",
"add",
"(",
"fragment",
")",
";"
] |
[
"returns",
"an",
"array",
"of",
"all",
"of",
"this",
"summary",
"s",
"fragments"
] | [
"return",
"(",
"fragment",
"[",
"]",
")",
"fragments",
"to",
"array",
"(",
"fragment",
"proto",
")",
";"
] |
[
"returns",
"an",
"html",
"representation",
"of",
"this",
"fragment"
] | [
"string",
"builder",
"buffer",
"=",
"new",
"string",
"builder",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"fragments",
"size",
"(",
")",
";",
"i",
"+",
"+",
")",
"{",
"buffer",
"append",
"(",
"fragments",
"get",
"(",
"i",
")",
")",
";",
"}",
"return",
"buffer",
"to",
"string",
"(",
")",
";"
] |
[
"select",
"version",
"("
] | [
"while",
"(",
"stmt",
"length",
"(",
")",
">",
"+",
"+",
"offset",
")",
"{",
"switch",
"(",
"stmt",
"char",
"at",
"(",
"offset",
")",
")",
"{",
"case",
"'",
"'",
":",
"case",
"'",
"\\",
"t",
"'",
":",
"case",
"'",
"\\",
"r",
"'",
":",
"case",
"'",
"\\",
"n",
"'",
":",
"continue",
";",
"case",
"'",
")",
"'",
":",
"while",
"(",
"stmt",
"length",
"(",
")",
">",
"+",
"+",
"offset",
")",
"{",
"switch",
"(",
"stmt",
"char",
"at",
"(",
"offset",
")",
")",
"{",
"case",
"'",
"'",
":",
"case",
"'",
"\\",
"t",
"'",
":",
"case",
"'",
"\\",
"r",
"'",
":",
"case",
"'",
"\\",
"n",
"'",
":",
"continue",
";",
"default",
":",
"return",
"other",
";",
"}",
"}",
"return",
"version",
";",
"default",
":",
"return",
"other",
";",
"}",
"}",
"return",
"other",
";"
] |
[
"<",
"code",
">",
"select",
"last",
"insert",
"id",
"(",
")",
"as",
"id",
"<",
"/",
"code",
">"
] | [
"offset",
"=",
"parse",
"util",
"move",
"(",
"stmt",
",",
"offset",
",",
"0",
")",
";",
"if",
"(",
"offset",
">",
"=",
"stmt",
"length",
"(",
")",
")",
"return",
"offset",
";",
"switch",
"(",
"stmt",
"char",
"at",
"(",
"offset",
")",
")",
"{",
"case",
"'",
"\\",
"'",
"'",
":",
"return",
"skip",
"string",
"(",
"stmt",
",",
"offset",
")",
";",
"case",
"'",
"\"",
"'",
":",
"return",
"skip",
"string",
"2",
"(",
"stmt",
",",
"offset",
")",
";",
"case",
"'",
"`",
"'",
":",
"return",
"skip",
"identifier",
"escape",
"(",
"stmt",
",",
"offset",
")",
";",
"default",
":",
"if",
"(",
"char",
"types",
"is",
"identifier",
"char",
"(",
"stmt",
"char",
"at",
"(",
"offset",
")",
")",
")",
"{",
"for",
"(",
";",
"offset",
"<",
"stmt",
"length",
"(",
")",
"&",
"&",
"char",
"types",
"is",
"identifier",
"char",
"(",
"stmt",
"char",
"at",
"(",
"offset",
")",
")",
";",
"+",
"+",
"offset",
")",
";",
"return",
"offset",
";",
"}",
"}",
"return",
"-",
"1",
";"
] |
[
"<",
"code",
">",
"abc",
"d",
"<",
"/",
"code",
">"
] | [
"for",
"(",
"+",
"+",
"offset",
";",
"offset",
"<",
"stmt",
"length",
"(",
")",
";",
"+",
"+",
"offset",
")",
"{",
"if",
"(",
"stmt",
"char",
"at",
"(",
"offset",
")",
"=",
"=",
"'",
"`",
"'",
")",
"{",
"if",
"(",
"+",
"+",
"offset",
">",
"=",
"stmt",
"length",
"(",
")",
"|",
"|",
"stmt",
"char",
"at",
"(",
"offset",
")",
"!",
"=",
"'",
"`",
"'",
")",
"{",
"return",
"offset",
";",
"}",
"}",
"}",
"return",
"-",
"1",
";"
] |
[
"<",
"code",
">",
"abc",
"d",
"<",
"/",
"code",
">"
] | [
"int",
"state",
"=",
"0",
";",
"for",
"(",
"+",
"+",
"offset",
";",
"offset",
"<",
"stmt",
"length",
"(",
")",
";",
"+",
"+",
"offset",
")",
"{",
"char",
"c",
"=",
"stmt",
"char",
"at",
"(",
"offset",
")",
";",
"switch",
"(",
"state",
")",
"{",
"case",
"0",
":",
"switch",
"(",
"c",
")",
"{",
"case",
"'",
"\\",
"\\",
"'",
":",
"state",
"=",
"1",
";",
"break",
";",
"case",
"'",
"\\",
"'",
"'",
":",
"state",
"=",
"2",
";",
"break",
";",
"}",
"break",
";",
"case",
"1",
":",
"state",
"=",
"0",
";",
"break",
";",
"case",
"2",
":",
"switch",
"(",
"c",
")",
"{",
"case",
"'",
"\\",
"'",
"'",
":",
"state",
"=",
"0",
";",
"break",
";",
"default",
":",
"return",
"offset",
";",
"}",
"break",
";",
"}",
"}",
"if",
"(",
"offset",
"=",
"=",
"stmt",
"length",
"(",
")",
"&",
"&",
"state",
"=",
"=",
"2",
")",
"{",
"return",
"stmt",
"length",
"(",
")",
";",
"}",
"return",
"-",
"1",
";"
] |
[
"select",
"last",
"insert",
"id",
"(",
")"
] | [
"offset",
"=",
"index",
"after",
"last",
"insert",
"id",
"func",
"(",
"stmt",
",",
"offset",
")",
";",
"if",
"(",
"offset",
"<",
"0",
")",
"{",
"return",
"other",
";",
"}",
"offset",
"=",
"skip",
"as",
"(",
"stmt",
",",
"offset",
")",
";",
"offset",
"=",
"skip",
"alias",
"(",
"stmt",
",",
"offset",
")",
";",
"if",
"(",
"offset",
"<",
"0",
")",
"{",
"return",
"other",
";",
"}",
"offset",
"=",
"parse",
"util",
"move",
"(",
"stmt",
",",
"offset",
",",
"0",
")",
";",
"if",
"(",
"offset",
"<",
"stmt",
"length",
"(",
")",
")",
"{",
"return",
"other",
";",
"}",
"return",
"last",
"insert",
"id",
";"
] |
[
"select"
] | [
"offset",
"=",
"index",
"after",
"identity",
"(",
"stmt",
",",
"offset",
")",
";",
"if",
"(",
"offset",
"<",
"0",
")",
"{",
"return",
"other",
";",
"}",
"offset",
"=",
"skip",
"as",
"(",
"stmt",
",",
"offset",
")",
";",
"offset",
"=",
"skip",
"alias",
"(",
"stmt",
",",
"offset",
")",
";",
"if",
"(",
"offset",
"<",
"0",
")",
"{",
"return",
"other",
";",
"}",
"offset",
"=",
"parse",
"util",
"move",
"(",
"stmt",
",",
"offset",
",",
"0",
")",
";",
"if",
"(",
"offset",
"<",
"stmt",
"length",
"(",
")",
")",
"{",
"return",
"other",
";",
"}",
"return",
"identity",
";"
] |
[
"select",
"database",
"(",
")"
] | [
"int",
"length",
"=",
"offset",
"+",
"database",
"length",
";",
"if",
"(",
"stmt",
"length",
"(",
")",
">",
"=",
"length",
"&",
"&",
"parse",
"util",
"compare",
"(",
"stmt",
",",
"offset",
",",
"database",
")",
")",
"{",
"if",
"(",
"stmt",
"length",
"(",
")",
">",
"length",
"&",
"&",
"stmt",
"char",
"at",
"(",
"length",
")",
"!",
"=",
"'",
"'",
")",
"{",
"return",
"other",
";",
"}",
"else",
"{",
"return",
"database",
";",
"}",
"}",
"return",
"other",
";"
] |
[
"select",
"user",
"(",
")"
] | [
"if",
"(",
"stmt",
"length",
"(",
")",
">",
"offset",
"+",
"5",
")",
"{",
"char",
"c",
"1",
"=",
"stmt",
"char",
"at",
"(",
"+",
"+",
"offset",
")",
";",
"char",
"c",
"2",
"=",
"stmt",
"char",
"at",
"(",
"+",
"+",
"offset",
")",
";",
"char",
"c",
"3",
"=",
"stmt",
"char",
"at",
"(",
"+",
"+",
"offset",
")",
";",
"char",
"c",
"4",
"=",
"stmt",
"char",
"at",
"(",
"+",
"+",
"offset",
")",
";",
"char",
"c",
"5",
"=",
"stmt",
"char",
"at",
"(",
"+",
"+",
"offset",
")",
";",
"if",
"(",
"(",
"c",
"1",
"=",
"=",
"'",
"s",
"'",
"|",
"|",
"c",
"1",
"=",
"=",
"'",
"s",
"'",
")",
"&",
"&",
"(",
"c",
"2",
"=",
"=",
"'",
"e",
"'",
"|",
"|",
"c",
"2",
"=",
"=",
"'",
"e",
"'",
")",
"&",
"&",
"(",
"c",
"3",
"=",
"=",
"'",
"r",
"'",
"|",
"|",
"c",
"3",
"=",
"=",
"'",
"r",
"'",
")",
"&",
"&",
"(",
"c",
"4",
"=",
"=",
"'",
"(",
"'",
")",
"&",
"&",
"(",
"c",
"5",
"=",
"=",
"'",
")",
"'",
")",
"&",
"&",
"(",
"stmt",
"length",
"(",
")",
"=",
"=",
"+",
"+",
"offset",
"|",
"|",
"parse",
"util",
"is",
"e",
"o",
"f",
"(",
"stmt",
"char",
"at",
"(",
"offset",
")",
")",
")",
")",
"{",
"return",
"user",
";",
"}",
"}",
"return",
"other",
";"
] |
[
"select"
] | [
"int",
"length",
"=",
"offset",
"+",
"version",
"comment",
"length",
";",
"if",
"(",
"stmt",
"length",
"(",
")",
">",
"=",
"length",
"&",
"&",
"parse",
"util",
"compare",
"(",
"stmt",
",",
"offset",
",",
"version",
"comment",
")",
")",
"{",
"if",
"(",
"stmt",
"length",
"(",
")",
">",
"length",
"&",
"&",
"stmt",
"char",
"at",
"(",
"length",
")",
"!",
"=",
"'",
"'",
")",
"{",
"return",
"other",
";",
"}",
"else",
"{",
"return",
"version",
"comment",
";",
"}",
"}",
"return",
"other",
";"
] |
[
"sets",
"path",
"either",
"absolute",
"or",
"relative",
"to",
"{",
"@",
"code",
"ignite",
"home",
"}",
"to",
"{",
"@",
"code",
"jetty",
"}",
"xml",
"configuration",
"file",
"{",
"@",
"code",
"jetty",
"}",
"is",
"used",
"to",
"support",
"rest",
"over",
"http",
"protocol",
"for",
"accessing",
"ignite",
"a",
"p",
"is",
"remotely"
] | [
"this",
"jetty",
"path",
"=",
"jetty",
"path",
";",
"return",
"this",
";"
] |
[
"gets",
"path",
"either",
"absolute",
"or",
"relative",
"to",
"{",
"@",
"code",
"ignite",
"home",
"}",
"to",
"{",
"@",
"code",
"jetty",
"}",
"xml",
"configuration",
"file",
"{",
"@",
"code",
"jetty",
"}",
"is",
"used",
"to",
"support",
"rest",
"over",
"http",
"protocol",
"for",
"accessing",
"ignite",
"a",
"p",
"is",
"remotely",
"<",
"p",
">",
"if",
"not",
"provided",
"jetty",
"instance",
"with",
"default",
"configuration",
"will",
"be",
"started",
"picking",
"{",
"@",
"link",
"ignite",
"system",
"properties",
"#",
"ignite",
"jetty",
"host",
"}",
"and",
"{",
"@",
"link",
"ignite",
"system",
"properties",
"#",
"ignite",
"jetty",
"port",
"}",
"as",
"host",
"and",
"port",
"respectively"
] | [
"return",
"jetty",
"path",
";"
] |
[
"sets",
"secret",
"key",
"to",
"authenticate",
"rest",
"requests",
"if",
"key",
"is",
"{",
"@",
"code",
"null",
"}",
"or",
"empty",
"authentication",
"is",
"disabled"
] | [
"this",
"secret",
"key",
"=",
"secret",
"key",
";",
"return",
"this",
";"
] |
[
"sets",
"host",
"for",
"tcp",
"binary",
"protocol",
"server"
] | [
"this",
"host",
"=",
"host",
";",
"return",
"this",
";"
] |
[
"sets",
"port",
"for",
"tcp",
"binary",
"protocol",
"server"
] | [
"this",
"port",
"=",
"port",
";",
"return",
"this",
";"
] |
[
"sets",
"whether",
"{",
"@",
"code",
"tcp",
"nodelay",
"}",
"option",
"should",
"be",
"set",
"for",
"all",
"accepted",
"client",
"connections"
] | [
"this",
"no",
"delay",
"=",
"no",
"delay",
";",
"return",
"this",
";"
] |
[
"sets",
"whether",
"to",
"use",
"direct",
"buffer",
"for",
"rest",
"tcp",
"server"
] | [
"this",
"direct",
"buf",
"=",
"direct",
"buf",
";",
"return",
"this",
";"
] |
[
"sets",
"rest",
"tcp",
"server",
"send",
"buffer",
"size"
] | [
"this",
"snd",
"buf",
"size",
"=",
"snd",
"buf",
"size",
";",
"return",
"this",
";"
] |
[
"sets",
"rest",
"tcp",
"server",
"receive",
"buffer",
"size"
] | [
"this",
"rcv",
"buf",
"size",
"=",
"rcv",
"buf",
"size",
";",
"return",
"this",
";"
] |
[
"sets",
"rest",
"tcp",
"server",
"send",
"queue",
"limit"
] | [
"this",
"snd",
"queue",
"limit",
"=",
"snd",
"queue",
"limit",
";",
"return",
"this",
";"
] |
[
"sets",
"number",
"of",
"selector",
"threads",
"for",
"rest",
"tcp",
"server"
] | [
"this",
"selector",
"cnt",
"=",
"selector",
"cnt",
";",
"return",
"this",
";"
] |
[
"sets",
"idle",
"timeout",
"for",
"rest",
"server"
] | [
"this",
"idle",
"timeout",
"=",
"idle",
"timeout",
";",
"return",
"this",
";"
] |
[
"sets",
"whether",
"secure",
"socket",
"layer",
"should",
"be",
"enabled",
"for",
"rest",
"tcp",
"binary",
"protocol",
"<",
"p",
"/",
">",
"note",
"that",
"if",
"this",
"flag",
"is",
"set",
"to",
"{",
"@",
"code",
"true",
"}",
"then",
"a",
"valid",
"instance",
"of",
"{",
"@",
"link",
"grid",
"ssl",
"context",
"factory",
"}",
"should",
"be",
"provided",
"in",
"{",
"@",
"link",
"ignite",
"configuration",
"}",
"otherwise",
"tcp",
"binary",
"protocol",
"will",
"fail",
"to",
"start"
] | [
"this",
"ssl",
"enabled",
"=",
"ssl",
"enabled",
";",
"return",
"this",
";"
] |
[
"sets",
"flag",
"indicating",
"whether",
"or",
"not",
"ssl",
"client",
"authentication",
"is",
"required"
] | [
"this",
"ssl",
"client",
"auth",
"=",
"ssl",
"client",
"auth",
";",
"return",
"this",
";"
] |
[
"gets",
"context",
"factory",
"that",
"will",
"be",
"used",
"for",
"creating",
"a",
"secure",
"socket",
"layer",
"of",
"rest",
"binary",
"server"
] | [
"return",
"ssl",
"ctx",
"factory",
";"
] |
[
"sets",
"instance",
"of",
"{",
"@",
"link",
"grid",
"ssl",
"context",
"factory",
"}",
"that",
"will",
"be",
"used",
"to",
"create",
"an",
"instance",
"of",
"{",
"@",
"code",
"s",
"s",
"l",
"context",
"}",
"for",
"secure",
"socket",
"layer",
"on",
"tcp",
"binary",
"protocol",
"this",
"factory",
"will",
"only",
"be",
"used",
"if",
"{",
"@",
"link",
"#",
"set",
"ssl",
"enabled",
"(",
"boolean",
")",
"}",
"is",
"set",
"to",
"{",
"@",
"code",
"true",
"}"
] | [
"this",
"ssl",
"ctx",
"factory",
"=",
"ssl",
"ctx",
"factory",
";",
"return",
"this",
";"
] |
[
"gets",
"context",
"factory",
"that",
"will",
"be",
"used",
"for",
"creating",
"a",
"secure",
"socket",
"layer",
"of",
"rest",
"binary",
"server"
] | [
"return",
"ssl",
"factory",
";"
] |
[
"sets",
"instance",
"of",
"{",
"@",
"link",
"factory",
"}",
"that",
"will",
"be",
"used",
"to",
"create",
"an",
"instance",
"of",
"{",
"@",
"code",
"s",
"s",
"l",
"context",
"}",
"for",
"secure",
"socket",
"layer",
"on",
"tcp",
"binary",
"protocol",
"this",
"factory",
"will",
"only",
"be",
"used",
"if",
"{",
"@",
"link",
"#",
"set",
"ssl",
"enabled",
"(",
"boolean",
")",
"}",
"is",
"set",
"to",
"{",
"@",
"code",
"true",
"}"
] | [
"this",
"ssl",
"factory",
"=",
"ssl",
"factory",
";",
"return",
"this",
";"
] |
[
"sets",
"number",
"of",
"ports",
"to",
"try",
"if",
"configured",
"one",
"is",
"in",
"use"
] | [
"this",
"port",
"range",
"=",
"port",
"range",
";",
"return",
"this",
";"
] |
[
"sets",
"thread",
"pool",
"size",
"to",
"use",
"for",
"processing",
"of",
"client",
"messages",
"(",
"rest",
"requests",
")"
] | [
"this",
"thread",
"pool",
"size",
"=",
"thread",
"pool",
"size",
";",
"return",
"this",
";"
] |
[
"gets",
"interceptor",
"for",
"objects",
"moving",
"to",
"and",
"from",
"remote",
"clients",
"if",
"this",
"method",
"returns",
"{",
"@",
"code",
"null",
"}",
"then",
"no",
"interception",
"will",
"be",
"applied",
"<",
"p",
">",
"setting",
"interceptor",
"allows",
"to",
"transform",
"all",
"objects",
"exchanged",
"via",
"rest",
"protocol",
"for",
"example",
"if",
"you",
"use",
"custom",
"serialisation",
"on",
"client",
"you",
"can",
"write",
"interceptor",
"to",
"transform",
"binary",
"representations",
"received",
"from",
"client",
"to",
"java",
"objects",
"and",
"later",
"access",
"them",
"from",
"java",
"code",
"directly",
"<",
"p",
">",
"default",
"value",
"is",
"{",
"@",
"code",
"null",
"}"
] | [
"return",
"msg",
"interceptor",
";"
] |
[
"sets",
"client",
"message",
"interceptor",
"<",
"p",
">",
"setting",
"interceptor",
"allows",
"to",
"transform",
"all",
"objects",
"exchanged",
"via",
"rest",
"protocol",
"for",
"example",
"if",
"you",
"use",
"custom",
"serialisation",
"on",
"client",
"you",
"can",
"write",
"interceptor",
"to",
"transform",
"binary",
"representations",
"received",
"from",
"client",
"to",
"java",
"objects",
"and",
"later",
"access",
"them",
"from",
"java",
"code",
"directly"
] | [
"msg",
"interceptor",
"=",
"interceptor",
";",
"return",
"this",
";"
] |
[
"sets",
"idle",
"query",
"cursors",
"timeout"
] | [
"this",
"idle",
"qry",
"cur",
"timeout",
"=",
"idle",
"qry",
"cur",
"timeout",
";",
"return",
"this",
";"
] |
[
"sets",
"idle",
"query",
"cursor",
"check",
"frequency"
] | [
"this",
"idle",
"qry",
"cur",
"check",
"freq",
"=",
"idle",
"qry",
"cur",
"check",
"freq",
";",
"return",
"this",
";"
] |
[
"{"
] | [
"return",
"s",
"to",
"string",
"(",
"connector",
"configuration",
"class",
",",
"this",
")",
";"
] |
[
"removes",
"the",
"local",
"copy",
"of",
"the",
"cache",
"configuration",
"if",
"one",
"exists",
"<",
"p",
">",
"the",
"default",
"implementation",
"does",
"not",
"require",
"it",
"but",
"client",
"implementation",
"overrides",
"this",
"to",
"track",
"a",
"local",
"copy",
"of",
"the",
"config"
] | [] |
[
"destroys",
"all",
"managed",
"caches"
] | [
"if",
"(",
"!",
"is",
"destroyed",
"compare",
"and",
"set",
"(",
"false",
",",
"true",
")",
")",
"{",
"return",
";",
"}",
"deregister",
"lifecycle",
"listener",
"(",
")",
";",
"for",
"(",
"i",
"cache",
"internal",
"cache",
":",
"caches",
"values",
"(",
")",
")",
"{",
"cache",
"destroy",
"(",
")",
";",
"}",
"caches",
"clear",
"(",
")",
";",
"is",
"closed",
"set",
"(",
"true",
")",
";",
"post",
"destroy",
"(",
")",
";"
] |
[
"calculates",
"a",
"fixed",
"string",
"based",
"on",
"the",
"uri",
"and",
"classloader",
"<",
"p",
">",
"uses",
"the",
"formula",
":",
"<",
"pre",
">",
"<",
"code",
">",
"/",
"hz",
"[",
"/",
"uri",
"]",
"[",
"/",
"classloader",
"]",
"/",
"<",
"/",
"code",
">",
"<",
"/",
"pre",
">",
"<",
"p",
">",
"uri",
"and",
"classloader",
"are",
"dropped",
"if",
"they",
"have",
"default",
"values"
] | [
"string",
"cache",
"name",
"prefix",
"=",
"get",
"prefix",
"(",
"is",
"default",
"u",
"r",
"i",
"?",
"null",
":",
"uri",
",",
"is",
"default",
"class",
"loader",
"?",
"null",
":",
"get",
"class",
"loader",
"(",
")",
")",
";",
"if",
"(",
"cache",
"name",
"prefix",
"=",
"=",
"null",
")",
"{",
"return",
"hazelcast",
"cache",
"manager",
"cache",
"manager",
"prefix",
";",
"}",
"else",
"{",
"return",
"hazelcast",
"cache",
"manager",
"cache",
"manager",
"prefix",
"+",
"cache",
"name",
"prefix",
";",
"}"
] |
[
"{"
] | [
"if",
"(",
"active",
"part",
"instanceof",
"commands",
"explorer",
"presenter",
")",
"{",
"command",
"impl",
"command",
"=",
"(",
"(",
"commands",
"explorer",
"view",
")",
"commands",
"explorer",
"get",
"view",
"(",
")",
")",
"get",
"selected",
"command",
"(",
")",
";",
"if",
"(",
"command",
"!",
"=",
"null",
")",
"{",
"command",
"manager",
"remove",
"command",
"(",
"command",
"get",
"name",
"(",
")",
")",
"then",
"(",
"this",
":",
":",
"on",
"success",
")",
"catch",
"error",
"(",
"this",
":",
":",
"on",
"failure",
")",
";",
"}",
"}",
"else",
"{",
"delete",
"resource",
"manager",
"delete",
"(",
"true",
",",
"app",
"context",
"get",
"resources",
"(",
")",
")",
"then",
"(",
"this",
":",
":",
"on",
"success",
")",
"catch",
"error",
"(",
"this",
":",
":",
"on",
"failure",
")",
";",
"}"
] |
[
"{"
] | [
"event",
"get",
"presentation",
"(",
")",
"set",
"visible",
"(",
"true",
")",
";",
"if",
"(",
"active",
"part",
"instanceof",
"commands",
"explorer",
"presenter",
")",
"{",
"command",
"impl",
"command",
"=",
"(",
"(",
"commands",
"explorer",
"view",
")",
"commands",
"explorer",
"get",
"view",
"(",
")",
")",
"get",
"selected",
"command",
"(",
")",
";",
"event",
"get",
"presentation",
"(",
")",
"set",
"enabled",
"(",
"command",
"!",
"=",
"null",
")",
";",
"return",
";",
"}",
"final",
"resource",
"[",
"]",
"resources",
"=",
"app",
"context",
"get",
"resources",
"(",
")",
";",
"event",
"get",
"presentation",
"(",
")",
"set",
"enabled",
"(",
"resources",
"!",
"=",
"null",
"&",
"&",
"resources",
"length",
">",
"0",
"&",
"&",
"!",
"(",
"active",
"part",
"instanceof",
"text",
"editor",
")",
"&",
"&",
"!",
"(",
"active",
"part",
"get",
"selection",
"(",
")",
"instanceof",
"selection",
"no",
"selection",
"provided",
")",
")",
";"
] |
[
"{"
] | [
"final",
"callback",
"promise",
"helper",
"call",
"<",
"void",
",",
"throwable",
">",
"call",
"=",
"callback",
"-",
">",
"{",
"action",
"completed",
"call",
"back",
"=",
"callback",
";",
"action",
"performed",
"(",
"event",
")",
";",
"}",
";",
"return",
"create",
"from",
"callback",
"(",
"call",
")",
";"
] |
[
"compares",
"some",
"bytes",
"with",
"the",
"text",
"we",
"re",
"expecting"
] | [
"if",
"(",
"what",
"length",
"!",
"=",
"with",
"length",
"(",
")",
")",
"{",
"return",
"false",
";",
"}",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"what",
"length",
";",
"i",
"+",
"+",
")",
"{",
"if",
"(",
"with",
"char",
"at",
"(",
"i",
")",
"!",
"=",
"what",
"[",
"i",
"]",
")",
"{",
"return",
"false",
";",
"}",
"}",
"return",
"true",
";"
] |
[
"closes",
"this",
"stream",
"the",
"source",
"stream",
"is",
"closed",
"and",
"any",
"resources",
"associated",
"with",
"it",
"are",
"released"
] | [
"if",
"(",
"buf",
"!",
"=",
"null",
")",
"{",
"byte",
"array",
"pool",
"put",
"(",
"buf",
")",
";",
"buf",
"=",
"null",
";",
"}",
"input",
"stream",
"local",
"in",
"=",
"in",
";",
"in",
"=",
"null",
";",
"if",
"(",
"local",
"in",
"!",
"=",
"null",
")",
"{",
"local",
"in",
"close",
"(",
")",
";",
"}"
] |
[
"flush",
"the",
"cached",
"messages"
] | [
"if",
"(",
"cache",
"!",
"=",
"null",
")",
"cache",
"flush",
"cache",
"(",
")",
";",
"return",
"this",
";"
] |
[
"master",
"server",
"name",
"used",
"by",
"redis",
"sentinel",
"servers",
"and",
"master",
"change",
"monitoring",
"task"
] | [
"this",
"master",
"name",
"=",
"master",
"name",
";",
"return",
"this",
";"
] |
[
"add",
"redis",
"sentinel",
"node",
"address",
"in",
"host",
":",
"port",
"format",
"multiple",
"nodes",
"at",
"once",
"could",
"be",
"added"
] | [
"for",
"(",
"string",
"address",
":",
"addresses",
")",
"{",
"sentinel",
"addresses",
"add",
"(",
"u",
"r",
"i",
"builder",
"create",
"(",
"address",
")",
")",
";",
"}",
"return",
"this",
";"
] |
[
"database",
"index",
"used",
"for",
"redis",
"connection",
"default",
"is",
"<",
"code",
">",
"0",
"<",
"/",
"code",
">"
] | [
"this",
"database",
"=",
"database",
";",
"return",
"this",
";"
] |
[
"sentinel",
"scan",
"interval",
"in",
"milliseconds"
] | [
"this",
"scan",
"interval",
"=",
"scan",
"interval",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"amount",
"of",
"data",
"in",
"gb",
"allocated",
"for",
"monthly",
"data",
"transfers",
"<",
"/",
"p",
">"
] | [
"this",
"monthly",
"transfer",
"=",
"monthly",
"transfer",
";"
] |
[
"<",
"p",
">",
"the",
"amount",
"of",
"data",
"in",
"gb",
"allocated",
"for",
"monthly",
"data",
"transfers",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"monthly",
"transfer",
";"
] |
[
"<",
"p",
">",
"the",
"amount",
"of",
"data",
"in",
"gb",
"allocated",
"for",
"monthly",
"data",
"transfers",
"<",
"/",
"p",
">"
] | [
"set",
"monthly",
"transfer",
"(",
"monthly",
"transfer",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"an",
"array",
"of",
"key",
"-",
"value",
"pairs",
"containing",
"information",
"about",
"the",
"ports",
"on",
"the",
"instance",
"<",
"/",
"p",
">"
] | [
"return",
"ports",
";"
] |
[
"<",
"p",
">",
"an",
"array",
"of",
"key",
"-",
"value",
"pairs",
"containing",
"information",
"about",
"the",
"ports",
"on",
"the",
"instance",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"ports",
"=",
"=",
"null",
")",
"{",
"this",
"ports",
"=",
"null",
";",
"return",
";",
"}",
"this",
"ports",
"=",
"new",
"java",
"util",
"array",
"list",
"<",
"instance",
"port",
"info",
">",
"(",
"ports",
")",
";"
] |
[
"<",
"p",
">",
"an",
"array",
"of",
"key",
"-",
"value",
"pairs",
"containing",
"information",
"about",
"the",
"ports",
"on",
"the",
"instance",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"ports",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"ports",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"this",
"ports",
"=",
"=",
"null",
")",
"{",
"set",
"ports",
"(",
"new",
"java",
"util",
"array",
"list",
"<",
"instance",
"port",
"info",
">",
"(",
"ports",
"length",
")",
")",
";",
"}",
"for",
"(",
"instance",
"port",
"info",
"ele",
":",
"ports",
")",
"{",
"this",
"ports",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"an",
"array",
"of",
"key",
"-",
"value",
"pairs",
"containing",
"information",
"about",
"the",
"ports",
"on",
"the",
"instance",
"<",
"/",
"p",
">"
] | [
"set",
"ports",
"(",
"ports",
")",
";",
"return",
"this",
";"
] |
[
"the",
"unique",
"id",
"of",
"the",
"application",
"to",
"which",
"the",
"email",
"channel",
"belongs"
] | [
"set",
"application",
"id",
"(",
"application",
"id",
")",
";",
"return",
"this",
";"
] |
[
"the",
"date",
"that",
"the",
"settings",
"were",
"last",
"updated",
"in",
"iso",
"8601",
"format"
] | [
"set",
"creation",
"date",
"(",
"creation",
"date",
")",
";",
"return",
"this",
";"
] |
[
"if",
"the",
"channel",
"is",
"enabled",
"for",
"sending",
"messages"
] | [
"set",
"enabled",
"(",
"enabled",
")",
";",
"return",
"this",
";"
] |
[
"the",
"email",
"address",
"used",
"to",
"send",
"emails",
"from"
] | [
"return",
"this",
"from",
"address",
";"
] |
[
"the",
"email",
"address",
"used",
"to",
"send",
"emails",
"from"
] | [
"set",
"from",
"address",
"(",
"from",
"address",
")",
";",
"return",
"this",
";"
] |
[
"not",
"used",
"retained",
"for",
"backwards",
"compatibility"
] | [
"set",
"has",
"credential",
"(",
"has",
"credential",
")",
";",
"return",
"this",
";"
] |
[
"channel",
"id",
"not",
"used",
"only",
"for",
"backwards",
"compatibility"
] | [
"set",
"id",
"(",
"id",
")",
";",
"return",
"this",
";"
] |
[
"the",
"arn",
"of",
"an",
"identity",
"verified",
"with",
"ses"
] | [
"set",
"identity",
"(",
"identity",
")",
";",
"return",
"this",
";"
] |
[
"is",
"this",
"channel",
"archived"
] | [
"set",
"is",
"archived",
"(",
"is",
"archived",
")",
";",
"return",
"this",
";"
] |
[
"who",
"last",
"updated",
"this",
"entry"
] | [
"set",
"last",
"modified",
"by",
"(",
"last",
"modified",
"by",
")",
";",
"return",
"this",
";"
] |
[
"last",
"date",
"this",
"was",
"updated"
] | [
"set",
"last",
"modified",
"date",
"(",
"last",
"modified",
"date",
")",
";",
"return",
"this",
";"
] |
[
"messages",
"per",
"second",
"that",
"can",
"be",
"sent"
] | [
"set",
"messages",
"per",
"second",
"(",
"messages",
"per",
"second",
")",
";",
"return",
"this",
";"
] |
[
"platform",
"type",
"will",
"be",
"email"
] | [
"set",
"platform",
"(",
"platform",
")",
";",
"return",
"this",
";"
] |
[
"the",
"arn",
"of",
"an",
"iam",
"role",
"used",
"to",
"submit",
"events",
"to",
"mobile",
"analytics",
"event",
"ingestion",
"service"
] | [
"set",
"role",
"arn",
"(",
"role",
"arn",
")",
";",
"return",
"this",
";"
] |
[
"version",
"of",
"channel"
] | [
"set",
"version",
"(",
"version",
")",
";",
"return",
"this",
";"
] |
[
"{"
] | [
"return",
"s",
"to",
"string",
"(",
"zk",
"alive",
"node",
"data",
"class",
",",
"this",
")",
";"
] |
[
"{"
] | [
"return",
"cur",
";"
] |
[
"{"
] | [
"cur",
"=",
"iter",
"has",
"next",
"(",
")",
"?",
"iter",
"next",
"(",
")",
":",
"null",
";",
"return",
"cur",
"!",
"=",
"null",
";"
] |
[
"create",
"an",
"i",
"tunes",
"style",
"meta",
"box"
] | [
"mp",
"4",
"box",
"header",
"meta",
"header",
"=",
"new",
"mp",
"4",
"box",
"header",
"(",
"mp",
"4",
"atom",
"identifier",
"meta",
"get",
"field",
"name",
"(",
")",
")",
";",
"meta",
"header",
"set",
"length",
"(",
"mp",
"4",
"box",
"header",
"header",
"length",
"+",
"mp",
"4",
"meta",
"box",
"flags",
"length",
"+",
"children",
"size",
")",
";",
"byte",
"buffer",
"meta",
"data",
"=",
"byte",
"buffer",
"allocate",
"(",
"mp",
"4",
"meta",
"box",
"flags",
"length",
")",
";",
"mp",
"4",
"meta",
"box",
"meta",
"box",
"=",
"new",
"mp",
"4",
"meta",
"box",
"(",
"meta",
"header",
",",
"meta",
"data",
")",
";",
"return",
"meta",
"box",
";"
] |
[
"required",
"parameter",
"types",
":",
"{",
"@",
"link",
"trade",
"history",
"param",
"paging",
"#",
"get",
"page",
"length",
"(",
")",
"}"
] | [
"return",
"bitso",
"adapters",
"adapt",
"trade",
"history",
"(",
"get",
"bitso",
"user",
"transactions",
"(",
"long",
"value",
"of",
"(",
"(",
"(",
"trade",
"history",
"param",
"paging",
")",
"params",
")",
"get",
"page",
"length",
"(",
")",
")",
")",
")",
";"
] |
[
"gets",
"the",
"current",
"date",
"and",
"time",
"formatted",
"by",
"the",
"pattern",
"specified"
] | [
"return",
"format",
"(",
"zoned",
"date",
"time",
"now",
"(",
"zone",
"offset",
"utc",
")",
")",
";"
] |
[
"format",
"the",
"datetime",
"given"
] | [
"return",
"format",
"(",
"date",
"time",
"utils",
"date",
"of",
"(",
"dt",
")",
")",
";"
] |
[
"format",
"the",
"datetime",
"given"
] | [
"return",
"format",
"(",
"date",
"time",
"utils",
"date",
"of",
"(",
"dt",
")",
")",
";"
] |
[
"return",
"the",
"dependencies",
"supported",
"by",
"the",
"service"
] | [
"return",
"this",
"dependencies",
"values",
"(",
")",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.