docstring_tokens
list | code_tokens
list |
---|---|
[
"returns",
"the",
"native",
"flow",
"graph",
"views",
"that",
"belong",
"to",
"this",
"module"
] |
[
"return",
"m",
"native",
"flowgraphs",
";"
] |
[
"returns",
"the",
"user",
"views",
"of",
"the",
"module"
] |
[
"return",
"new",
"array",
"list",
"<",
"i",
"navi",
"view",
">",
"(",
"m",
"custom",
"views",
")",
";"
] |
[
"returns",
"a",
"list",
"of",
"all",
"views",
"that",
"can",
"be",
"found",
"in",
"the",
"module"
] |
[
"final",
"list",
"<",
"i",
"navi",
"view",
">",
"views",
"=",
"new",
"array",
"list",
"<",
"i",
"navi",
"view",
">",
"(",
")",
";",
"views",
"add",
"(",
"m",
"native",
"callgraph",
"view",
")",
";",
"views",
"add",
"all",
"(",
"m",
"native",
"flowgraphs",
")",
";",
"views",
"add",
"all",
"(",
"m",
"custom",
"views",
")",
";",
"return",
"views",
";"
] |
[
"this",
"is",
"a",
"mandatory",
"parameter",
"example",
"value",
":",
"1"
] |
[
"this",
"id",
"=",
"id",
";",
"return",
"this",
";"
] |
[
"wraps",
"a",
"provided",
"{",
"@",
"link",
"directory",
"reader",
"}",
"note",
"that",
"for",
"convenience",
"the",
"returned",
"reader",
"can",
"be",
"used",
"normally",
"(",
"e",
"g",
"passed",
"to",
"{",
"@",
"link",
"directory",
"reader",
"#",
"open",
"if",
"changed",
"(",
"directory",
"reader",
")",
"}",
")",
"and",
"so",
"on"
] |
[
"return",
"new",
"uninverting",
"directory",
"reader",
"(",
"in",
",",
"mapper",
")",
";"
] |
[
"returns",
"the",
"field",
"s",
"uninversion",
"type",
"or",
"null",
"if",
"the",
"field",
"doesn",
"t",
"exist",
"or",
"doesn",
"t",
"have",
"a",
"mapping"
] |
[
"return",
"mapping",
"apply",
"(",
"field",
")",
";"
] |
[
"return",
"information",
"about",
"the",
"backing",
"cache"
] |
[
"cache",
"entry",
"[",
"]",
"entries",
"=",
"field",
"cache",
"default",
"get",
"cache",
"entries",
"(",
")",
";",
"long",
"total",
"bytes",
"used",
"=",
"0",
";",
"string",
"[",
"]",
"info",
"=",
"new",
"string",
"[",
"entries",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"entries",
"length",
";",
"i",
"+",
"+",
")",
"{",
"info",
"[",
"i",
"]",
"=",
"entries",
"[",
"i",
"]",
"to",
"string",
"(",
")",
";",
"total",
"bytes",
"used",
"+",
"=",
"entries",
"[",
"i",
"]",
"get",
"value",
"(",
")",
"ram",
"bytes",
"used",
"(",
")",
";",
"}",
"string",
"total",
"size",
"=",
"ram",
"usage",
"estimator",
"human",
"readable",
"units",
"(",
"total",
"bytes",
"used",
")",
";",
"return",
"new",
"field",
"cache",
"stats",
"(",
"total",
"size",
",",
"info",
")",
";"
] |
[
"return",
"the",
"server",
"at",
"the",
"given",
"address"
] |
[
"protected",
"abstract",
"clusterable",
"server",
"get",
"server",
"(",
"server",
"address",
"server",
"address",
")",
";"
] |
[
"gets",
"a",
"random",
"server",
"that",
"still",
"exists",
"in",
"the",
"cluster",
"returns",
"null",
"if",
"there",
"are",
"none"
] |
[
"while",
"(",
"!",
"server",
"descriptions",
"is",
"empty",
"(",
")",
")",
"{",
"int",
"server",
"pos",
"=",
"get",
"random",
"(",
")",
"next",
"int",
"(",
"server",
"descriptions",
"size",
"(",
")",
")",
";",
"clusterable",
"server",
"server",
"=",
"get",
"server",
"(",
"server",
"descriptions",
"get",
"(",
"server",
"pos",
")",
"get",
"address",
"(",
")",
")",
";",
"if",
"(",
"server",
"!",
"=",
"null",
")",
"{",
"return",
"server",
";",
"}",
"else",
"{",
"server",
"descriptions",
"remove",
"(",
"server",
"pos",
")",
";",
"}",
"}",
"return",
"null",
";"
] |
[
"initial",
"value",
"(",
")",
"method"
] |
[
"random",
"result",
"=",
"random",
"get",
"(",
")",
";",
"if",
"(",
"result",
"=",
"=",
"null",
")",
"{",
"result",
"=",
"new",
"random",
"(",
")",
";",
"random",
"set",
"(",
"result",
")",
";",
"}",
"return",
"result",
";"
] |
[
"called",
"before",
"recurrence",
"picker",
"is",
"shown"
] |
[
"if",
"(",
"m",
"date",
"picker",
"enabled",
"&",
"&",
"m",
"time",
"picker",
"enabled",
")",
"{",
"m",
"hidden",
"picker",
"=",
"m",
"date",
"picker",
"get",
"visibility",
"(",
")",
"=",
"=",
"view",
"visible",
"?",
"sublime",
"options",
"picker",
"date",
"picker",
":",
"sublime",
"options",
"picker",
"time",
"picker",
";",
"}",
"else",
"if",
"(",
"m",
"date",
"picker",
"enabled",
")",
"{",
"m",
"hidden",
"picker",
"=",
"sublime",
"options",
"picker",
"date",
"picker",
";",
"}",
"else",
"if",
"(",
"m",
"time",
"picker",
"enabled",
")",
"{",
"m",
"hidden",
"picker",
"=",
"sublime",
"options",
"picker",
"time",
"picker",
";",
"}",
"else",
"{",
"m",
"hidden",
"picker",
"=",
"sublime",
"options",
"picker",
"invalid",
";",
"}"
] |
[
"returns",
"the",
"maximum",
"size",
"for",
"a",
"decoded",
"frame",
"from",
"the",
"flac",
"stream"
] |
[
"return",
"max",
"block",
"size",
"*",
"channels",
"*",
"(",
"bits",
"per",
"sample",
"/",
"8",
")",
";"
] |
[
"returns",
"the",
"bit",
"-",
"rate",
"of",
"the",
"flac",
"stream"
] |
[
"return",
"bits",
"per",
"sample",
"*",
"sample",
"rate",
";"
] |
[
"returns",
"the",
"duration",
"of",
"the",
"flac",
"stream",
"in",
"microseconds"
] |
[
"return",
"(",
"total",
"samples",
"*",
"1000000l",
")",
"/",
"sample",
"rate",
";"
] |
[
"returns",
"the",
"sample",
"index",
"for",
"the",
"sample",
"at",
"given",
"position"
] |
[
"long",
"sample",
"index",
"=",
"(",
"time",
"us",
"*",
"sample",
"rate",
")",
"/",
"c",
"micros",
"per",
"second",
";",
"return",
"util",
"constrain",
"value",
"(",
"sample",
"index",
",",
"0",
",",
"total",
"samples",
"-",
"1",
")",
";"
] |
[
"creates",
"a",
"trigger",
"that",
"fires",
"once",
"the",
"number",
"of",
"elements",
"in",
"a",
"pane",
"reaches",
"the",
"given",
"count"
] |
[
"return",
"new",
"count",
"trigger",
"<",
">",
"(",
"max",
"count",
")",
";"
] |
[
"gets",
"date",
"value",
"of",
"date",
"header"
] |
[
"sip",
"parser",
"par",
"=",
"new",
"sip",
"parser",
"(",
"value",
")",
";",
"return",
"par",
"get",
"date",
"(",
")",
";"
] |
[
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/"
] |
[
"final",
"pb",
"account",
"age",
"witness",
"builder",
"builder",
"=",
"pb",
"account",
"age",
"witness",
"new",
"builder",
"(",
")",
"set",
"hash",
"(",
"byte",
"string",
"copy",
"from",
"(",
"hash",
")",
")",
"set",
"date",
"(",
"date",
")",
";",
"return",
"pb",
"persistable",
"network",
"payload",
"new",
"builder",
"(",
")",
"set",
"account",
"age",
"witness",
"(",
"builder",
")",
"build",
"(",
")",
";"
] |
[
"pre",
"0",
"6",
"version",
"don",
"t",
"know",
"the",
"new",
"message",
"type",
"and",
"throw",
"an",
"error",
"which",
"leads",
"to",
"disconnecting",
"the",
"peer"
] |
[
"return",
"new",
"array",
"list",
"<",
">",
"(",
"collections",
"singleton",
"list",
"(",
"capabilities",
"capability",
"account",
"age",
"witness",
"ordinal",
"(",
")",
")",
")",
";"
] |
[
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/"
] |
[
"return",
"new",
"p",
"2",
"p",
"data",
"storage",
"byte",
"array",
"(",
"hash",
")",
";"
] |
[
"returns",
"the",
"{"
] |
[
"ensure",
"initialized",
"(",
")",
";",
"return",
"m",
"trust",
"manager",
";"
] |
[
"returns",
"{"
] |
[
"ensure",
"initialized",
"(",
")",
";",
"if",
"(",
"m",
"configs",
"!",
"=",
"null",
")",
"{",
"for",
"(",
"pair",
"<",
"domain",
",",
"network",
"security",
"config",
">",
"entry",
":",
"m",
"configs",
")",
"{",
"if",
"(",
"!",
"entry",
"second",
"is",
"cleartext",
"traffic",
"permitted",
"(",
")",
")",
"{",
"return",
"false",
";",
"}",
"}",
"}",
"return",
"m",
"default",
"config",
"is",
"cleartext",
"traffic",
"permitted",
"(",
")",
";"
] |
[
"returns",
"{"
] |
[
"return",
"get",
"config",
"for",
"hostname",
"(",
"hostname",
")",
"is",
"cleartext",
"traffic",
"permitted",
"(",
")",
";"
] |
[
"get",
"the",
"message",
"that",
"is",
"logged",
"when",
"a",
"job",
"successfully",
"completes",
"its",
"execution"
] |
[
"return",
"job",
"success",
"message",
";"
] |
[
"get",
"the",
"message",
"that",
"is",
"logged",
"when",
"a",
"job",
"fails",
"its",
"execution"
] |
[
"return",
"job",
"failed",
"message",
";"
] |
[
"get",
"the",
"message",
"that",
"is",
"logged",
"when",
"a",
"job",
"is",
"about",
"to",
"execute"
] |
[
"return",
"job",
"to",
"be",
"fired",
"message",
";"
] |
[
"set",
"the",
"message",
"that",
"is",
"logged",
"when",
"a",
"job",
"successfully",
"completes",
"its",
"execution"
] |
[
"this",
"job",
"success",
"message",
"=",
"job",
"success",
"message",
";"
] |
[
"set",
"the",
"message",
"that",
"is",
"logged",
"when",
"a",
"job",
"fails",
"its",
"execution"
] |
[
"this",
"job",
"failed",
"message",
"=",
"job",
"failed",
"message",
";"
] |
[
"set",
"the",
"message",
"that",
"is",
"logged",
"when",
"a",
"job",
"is",
"about",
"to",
"execute"
] |
[
"this",
"job",
"to",
"be",
"fired",
"message",
"=",
"job",
"to",
"be",
"fired",
"message",
";"
] |
[
"get",
"the",
"message",
"that",
"is",
"logged",
"when",
"a",
"job",
"execution",
"is",
"vetoed",
"by",
"a",
"trigger",
"listener"
] |
[
"return",
"job",
"was",
"vetoed",
"message",
";"
] |
[
"set",
"the",
"message",
"that",
"is",
"logged",
"when",
"a",
"job",
"execution",
"is",
"vetoed",
"by",
"a",
"trigger",
"listener"
] |
[
"this",
"job",
"was",
"vetoed",
"message",
"=",
"job",
"was",
"vetoed",
"message",
";"
] |
[
"<",
"p",
">",
"called",
"during",
"creation",
"of",
"the",
"<",
"code",
">",
"scheduler",
"<",
"/",
"code",
">",
"in",
"order",
"to",
"give",
"the",
"<",
"code",
">",
"scheduler",
"plugin",
"<",
"/",
"code",
">",
"a",
"chance",
"to",
"initialize",
"<",
"/",
"p",
">"
] |
[
"this",
"name",
"=",
"pname",
";",
"scheduler",
"get",
"listener",
"manager",
"(",
")",
"add",
"job",
"listener",
"(",
"this",
",",
"everything",
"matcher",
"all",
"jobs",
"(",
")",
")",
";"
] |
[
"the",
"consumer",
"details"
] |
[
"return",
"consumer",
"details",
";"
] |
[
"destroys",
"the",
"node",
"with",
"the",
"specified",
"node",
"id"
] |
[
"predicate",
"<",
"node",
"metadata",
">",
"predicate",
"=",
"get",
"node",
"predicate",
"(",
"exchange",
")",
";",
"compute",
"service",
"destroy",
"nodes",
"matching",
"(",
"predicate",
")",
";"
] |
[
"sets",
"the",
"metadata",
"of",
"the",
"available",
"nodes",
"to",
"the",
"out",
"message"
] |
[
"predicate",
"<",
"compute",
"metadata",
">",
"predicate",
"=",
"get",
"compute",
"predicate",
"(",
"exchange",
")",
";",
"set",
"<",
"?",
"extends",
"compute",
"metadata",
">",
"compute",
"metadatas",
"=",
"compute",
"service",
"list",
"nodes",
"details",
"matching",
"(",
"predicate",
")",
";",
"exchange",
"get",
"out",
"(",
")",
"set",
"body",
"(",
"compute",
"metadatas",
")",
";"
] |
[
"sets",
"the",
"available",
"images",
"to",
"the",
"out",
"message"
] |
[
"set",
"<",
"?",
"extends",
"image",
">",
"images",
"=",
"compute",
"service",
"list",
"images",
"(",
")",
";",
"exchange",
"get",
"out",
"(",
")",
"set",
"body",
"(",
"images",
")",
";"
] |
[
"sets",
"the",
"available",
"hardware",
"profiles",
"to",
"the",
"out",
"message"
] |
[
"set",
"<",
"?",
"extends",
"hardware",
">",
"hardware",
"profiles",
"=",
"compute",
"service",
"list",
"hardware",
"profiles",
"(",
")",
";",
"exchange",
"get",
"out",
"(",
")",
"set",
"body",
"(",
"hardware",
"profiles",
")",
";"
] |
[
"reboot",
"the",
"node",
"with",
"the",
"specified",
"node",
"id"
] |
[
"predicate",
"<",
"node",
"metadata",
">",
"predicate",
"=",
"get",
"node",
"predicate",
"(",
"exchange",
")",
";",
"compute",
"service",
"reboot",
"nodes",
"matching",
"(",
"predicate",
")",
";"
] |
[
"suspend",
"the",
"node",
"with",
"the",
"specified",
"node",
"id"
] |
[
"predicate",
"<",
"node",
"metadata",
">",
"predicate",
"=",
"get",
"node",
"predicate",
"(",
"exchange",
")",
";",
"compute",
"service",
"suspend",
"nodes",
"matching",
"(",
"predicate",
")",
";"
] |
[
"suspend",
"the",
"node",
"with",
"the",
"specified",
"node",
"id"
] |
[
"predicate",
"<",
"node",
"metadata",
">",
"predicate",
"=",
"get",
"node",
"predicate",
"(",
"exchange",
")",
";",
"compute",
"service",
"resume",
"nodes",
"matching",
"(",
"predicate",
")",
";"
] |
[
"returns",
"the",
"required",
"{"
] |
[
"final",
"string",
"node",
"id",
"=",
"get",
"node",
"id",
"(",
"exchange",
")",
";",
"final",
"string",
"image",
"id",
"=",
"get",
"image",
"id",
"(",
"exchange",
")",
";",
"final",
"string",
"group",
"=",
"get",
"group",
"(",
"exchange",
")",
";",
"final",
"node",
"metadata",
"status",
"query",
"state",
"=",
"get",
"node",
"state",
"(",
"exchange",
")",
";",
"predicate",
"<",
"node",
"metadata",
">",
"predicate",
"=",
"new",
"predicate",
"<",
"node",
"metadata",
">",
"(",
")",
"{",
"public",
"boolean",
"apply",
"(",
"node",
"metadata",
"metadata",
")",
"{",
"if",
"(",
"node",
"id",
"!",
"=",
"null",
"&",
"&",
"!",
"node",
"id",
"equals",
"(",
"metadata",
"get",
"id",
"(",
")",
")",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"image",
"id",
"!",
"=",
"null",
"&",
"&",
"!",
"image",
"id",
"equals",
"(",
"metadata",
"get",
"image",
"id",
"(",
")",
")",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"query",
"state",
"!",
"=",
"null",
"&",
"&",
"!",
"query",
"state",
"equals",
"(",
"metadata",
"get",
"status",
"(",
")",
")",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"group",
"!",
"=",
"null",
"&",
"&",
"!",
"group",
"equals",
"(",
"metadata",
"get",
"group",
"(",
")",
")",
")",
"{",
"return",
"false",
";",
"}",
"return",
"true",
";",
"}",
"}",
";",
"return",
"predicate",
";"
] |
[
"retrieves",
"the",
"operation",
"from",
"the",
"uri",
"or",
"from",
"the",
"exchange",
"headers",
"the",
"header",
"will",
"take",
"precedence",
"over",
"the",
"uri"
] |
[
"string",
"operation",
"=",
"get",
"endpoint",
"(",
")",
"get",
"operation",
"(",
")",
";",
"if",
"(",
"object",
"helper",
"is",
"not",
"empty",
"(",
"exchange",
"get",
"in",
"(",
")",
"get",
"header",
"(",
"jclouds",
"constants",
"operation",
")",
")",
")",
"{",
"operation",
"=",
"exchange",
"get",
"in",
"(",
")",
"get",
"header",
"(",
"jclouds",
"constants",
"operation",
",",
"string",
"class",
")",
";",
"}",
"return",
"operation",
";"
] |
[
"retrieves",
"the",
"node",
"state",
"from",
"the",
"uri",
"or",
"from",
"the",
"exchange",
"headers",
"the",
"header",
"will",
"take",
"precedence",
"over",
"the",
"uri"
] |
[
"node",
"metadata",
"status",
"node",
"state",
"=",
"null",
";",
"string",
"state",
"=",
"get",
"endpoint",
"(",
")",
"get",
"node",
"state",
"(",
")",
";",
"if",
"(",
"object",
"helper",
"is",
"not",
"empty",
"(",
"state",
")",
")",
"{",
"node",
"state",
"=",
"node",
"metadata",
"status",
"value",
"of",
"(",
"state",
")",
";",
"}",
"if",
"(",
"object",
"helper",
"is",
"not",
"empty",
"(",
"exchange",
"get",
"in",
"(",
")",
"get",
"header",
"(",
"jclouds",
"constants",
"node",
"state",
")",
")",
")",
"{",
"object",
"state",
"header",
"=",
"exchange",
"get",
"in",
"(",
")",
"get",
"header",
"(",
"jclouds",
"constants",
"node",
"state",
")",
";",
"if",
"(",
"state",
"header",
"=",
"=",
"null",
")",
"{",
"node",
"state",
"=",
"null",
";",
"}",
"else",
"if",
"(",
"state",
"header",
"instanceof",
"node",
"metadata",
"status",
")",
"{",
"node",
"state",
"=",
"(",
"node",
"metadata",
"status",
")",
"state",
"header",
";",
"}",
"else",
"{",
"node",
"state",
"=",
"node",
"metadata",
"status",
"value",
"of",
"(",
"string",
"value",
"of",
"(",
"state",
"header",
")",
")",
";",
"}",
"}",
"return",
"node",
"state",
";"
] |
[
"retrieves",
"the",
"image",
"id",
"from",
"the",
"uri",
"or",
"from",
"the",
"exchange",
"properties",
"the",
"property",
"will",
"take",
"precedence",
"over",
"the",
"uri"
] |
[
"string",
"image",
"id",
"=",
"get",
"endpoint",
"(",
")",
"get",
"image",
"id",
"(",
")",
";",
"if",
"(",
"object",
"helper",
"is",
"not",
"empty",
"(",
"exchange",
"get",
"in",
"(",
")",
"get",
"header",
"(",
"jclouds",
"constants",
"image",
"id",
")",
")",
")",
"{",
"image",
"id",
"=",
"exchange",
"get",
"in",
"(",
")",
"get",
"header",
"(",
"jclouds",
"constants",
"image",
"id",
",",
"string",
"class",
")",
";",
"}",
"return",
"image",
"id",
";"
] |
[
"retrieves",
"the",
"hardware",
"id",
"from",
"the",
"uri",
"or",
"from",
"the",
"exchange",
"headers",
"the",
"header",
"will",
"take",
"precedence",
"over",
"the",
"uri"
] |
[
"string",
"hardware",
"id",
"=",
"get",
"endpoint",
"(",
")",
"get",
"hardware",
"id",
"(",
")",
";",
"if",
"(",
"object",
"helper",
"is",
"not",
"empty",
"(",
"exchange",
"get",
"in",
"(",
")",
"get",
"header",
"(",
"jclouds",
"constants",
"hardware",
"id",
")",
")",
")",
"{",
"hardware",
"id",
"=",
"exchange",
"get",
"in",
"(",
")",
"get",
"header",
"(",
"jclouds",
"constants",
"hardware",
"id",
",",
"string",
"class",
")",
";",
"}",
"return",
"hardware",
"id",
";"
] |
[
"retrieves",
"the",
"location",
"id",
"from",
"the",
"uri",
"or",
"from",
"the",
"exchange",
"headers",
"the",
"header",
"will",
"take",
"precedence",
"over",
"the",
"uri"
] |
[
"string",
"location",
"id",
"=",
"get",
"endpoint",
"(",
")",
"get",
"location",
"id",
"(",
")",
";",
"if",
"(",
"object",
"helper",
"is",
"not",
"empty",
"(",
"exchange",
"get",
"in",
"(",
")",
"get",
"header",
"(",
"jclouds",
"constants",
"location",
"id",
")",
")",
")",
"{",
"location",
"id",
"=",
"exchange",
"get",
"in",
"(",
")",
"get",
"header",
"(",
"jclouds",
"constants",
"location",
"id",
",",
"string",
"class",
")",
";",
"}",
"return",
"location",
"id",
";"
] |
[
"retrieves",
"the",
"node",
"id",
"from",
"the",
"uri",
"or",
"from",
"the",
"exchange",
"headers",
"the",
"header",
"will",
"take",
"precedence",
"over",
"the",
"uri"
] |
[
"string",
"node",
"id",
"=",
"get",
"endpoint",
"(",
")",
"get",
"node",
"id",
"(",
")",
";",
"if",
"(",
"object",
"helper",
"is",
"not",
"empty",
"(",
"exchange",
"get",
"in",
"(",
")",
"get",
"header",
"(",
"jclouds",
"constants",
"node",
"id",
")",
")",
")",
"{",
"node",
"id",
"=",
"exchange",
"get",
"in",
"(",
")",
"get",
"header",
"(",
"jclouds",
"constants",
"node",
"id",
",",
"string",
"class",
")",
";",
"}",
"return",
"node",
"id",
";"
] |
[
"retrieves",
"the",
"group",
"from",
"the",
"uri",
"or",
"from",
"the",
"exchange",
"headers",
"the",
"header",
"will",
"take",
"precedence",
"over",
"the",
"uri"
] |
[
"string",
"group",
"=",
"get",
"endpoint",
"(",
")",
"get",
"group",
"(",
")",
";",
"if",
"(",
"object",
"helper",
"is",
"not",
"empty",
"(",
"exchange",
"get",
"in",
"(",
")",
"get",
"header",
"(",
"jclouds",
"constants",
"group",
")",
")",
")",
"{",
"group",
"=",
"exchange",
"get",
"in",
"(",
")",
"get",
"header",
"(",
"jclouds",
"constants",
"group",
",",
"string",
"class",
")",
";",
"}",
"return",
"group",
";"
] |
[
"retrieves",
"the",
"user",
"from",
"the",
"uri",
"or",
"from",
"the",
"exchange",
"headers",
"the",
"header",
"will",
"take",
"precedence",
"over",
"the",
"uri"
] |
[
"string",
"user",
"=",
"get",
"endpoint",
"(",
")",
"get",
"user",
"(",
")",
";",
"if",
"(",
"object",
"helper",
"is",
"not",
"empty",
"(",
"exchange",
"get",
"in",
"(",
")",
"get",
"header",
"(",
"jclouds",
"constants",
"user",
")",
")",
")",
"{",
"user",
"=",
"exchange",
"get",
"in",
"(",
")",
"get",
"header",
"(",
"jclouds",
"constants",
"user",
",",
"string",
"class",
")",
";",
"}",
"return",
"user",
";"
] |
[
"returns",
"the",
"header",
"value",
"with",
"the",
"specified",
"header",
"name",
"if",
"there",
"are",
"more",
"than",
"one",
"header",
"value",
"for",
"the",
"specified",
"header",
"name",
"the",
"first",
"value",
"is",
"returned"
] |
[
"return",
"frame",
"get",
"header",
"(",
"name",
")",
";"
] |
[
"returns",
"the",
"header",
"value",
"with",
"the",
"specified",
"header",
"name",
"if",
"there",
"are",
"more",
"than",
"one",
"header",
"value",
"for",
"the",
"specified",
"header",
"name",
"the",
"first",
"value",
"is",
"returned"
] |
[
"string",
"value",
"=",
"frame",
"get",
"header",
"(",
"name",
")",
";",
"if",
"(",
"value",
"=",
"=",
"null",
")",
"{",
"return",
"default",
"value",
";",
"}",
"return",
"value",
";"
] |
[
"sets",
"a",
"new",
"header",
"with",
"the",
"specified",
"name",
"and",
"value",
"if",
"there",
"is",
"an",
"existing",
"header",
"with",
"the",
"same",
"name",
"the",
"existing",
"header",
"is",
"removed"
] |
[
"frame",
"set",
"header",
"(",
"name",
",",
"value",
")",
";"
] |
[
"sets",
"a",
"new",
"header",
"with",
"the",
"specified",
"name",
"and",
"values",
"if",
"there",
"is",
"an",
"existing",
"header",
"with",
"the",
"same",
"name",
"the",
"existing",
"header",
"is",
"removed"
] |
[
"frame",
"set",
"header",
"(",
"name",
",",
"values",
")",
";"
] |
[
"adds",
"a",
"new",
"header",
"with",
"the",
"specified",
"name",
"and",
"value"
] |
[
"frame",
"add",
"header",
"(",
"name",
",",
"value",
")",
";"
] |
[
"removes",
"the",
"spdy",
"host",
"header"
] |
[
"frame",
"remove",
"header",
"(",
"http",
"names",
"host",
")",
";"
] |
[
"returns",
"the",
"spdy",
"host",
"header"
] |
[
"return",
"frame",
"get",
"header",
"(",
"http",
"names",
"host",
")",
";"
] |
[
"set",
"the",
"spdy",
"host",
"header"
] |
[
"frame",
"set",
"header",
"(",
"http",
"names",
"host",
",",
"host",
")",
";"
] |
[
"removes",
"the",
"http",
"method",
"header"
] |
[
"if",
"(",
"spdy",
"version",
"<",
"3",
")",
"{",
"frame",
"remove",
"header",
"(",
"spdy",
"2",
"http",
"names",
"method",
")",
";",
"}",
"else",
"{",
"frame",
"remove",
"header",
"(",
"http",
"names",
"method",
")",
";",
"}"
] |
[
"returns",
"the",
"{"
] |
[
"try",
"{",
"if",
"(",
"spdy",
"version",
"<",
"3",
")",
"{",
"return",
"http",
"method",
"value",
"of",
"(",
"frame",
"get",
"header",
"(",
"spdy",
"2",
"http",
"names",
"method",
")",
")",
";",
"}",
"else",
"{",
"return",
"http",
"method",
"value",
"of",
"(",
"frame",
"get",
"header",
"(",
"http",
"names",
"method",
")",
")",
";",
"}",
"}",
"catch",
"(",
"exception",
"e",
")",
"{",
"return",
"null",
";",
"}"
] |
[
"sets",
"the",
"http",
"method",
"header"
] |
[
"if",
"(",
"spdy",
"version",
"<",
"3",
")",
"{",
"frame",
"set",
"header",
"(",
"spdy",
"2",
"http",
"names",
"method",
",",
"method",
"get",
"name",
"(",
")",
")",
";",
"}",
"else",
"{",
"frame",
"set",
"header",
"(",
"http",
"names",
"method",
",",
"method",
"get",
"name",
"(",
")",
")",
";",
"}"
] |
[
"removes",
"the",
"url",
"scheme",
"header"
] |
[
"if",
"(",
"spdy",
"version",
"<",
"2",
")",
"{",
"frame",
"remove",
"header",
"(",
"spdy",
"2",
"http",
"names",
"scheme",
")",
";",
"}",
"else",
"{",
"frame",
"remove",
"header",
"(",
"http",
"names",
"scheme",
")",
";",
"}"
] |
[
"returns",
"the",
"value",
"of",
"the",
"url",
"scheme",
"header"
] |
[
"if",
"(",
"spdy",
"version",
"<",
"3",
")",
"{",
"return",
"frame",
"get",
"header",
"(",
"spdy",
"2",
"http",
"names",
"scheme",
")",
";",
"}",
"else",
"{",
"return",
"frame",
"get",
"header",
"(",
"http",
"names",
"scheme",
")",
";",
"}"
] |
[
"sets",
"the",
"url",
"scheme",
"header"
] |
[
"if",
"(",
"spdy",
"version",
"<",
"3",
")",
"{",
"frame",
"set",
"header",
"(",
"spdy",
"2",
"http",
"names",
"scheme",
",",
"scheme",
")",
";",
"}",
"else",
"{",
"frame",
"set",
"header",
"(",
"http",
"names",
"scheme",
",",
"scheme",
")",
";",
"}"
] |
[
"removes",
"the",
"http",
"response",
"status",
"header"
] |
[
"if",
"(",
"spdy",
"version",
"<",
"3",
")",
"{",
"frame",
"remove",
"header",
"(",
"spdy",
"2",
"http",
"names",
"status",
")",
";",
"}",
"else",
"{",
"frame",
"remove",
"header",
"(",
"http",
"names",
"status",
")",
";",
"}"
] |
[
"returns",
"the",
"{"
] |
[
"try",
"{",
"string",
"status",
";",
"if",
"(",
"spdy",
"version",
"<",
"3",
")",
"{",
"status",
"=",
"frame",
"get",
"header",
"(",
"spdy",
"2",
"http",
"names",
"status",
")",
";",
"}",
"else",
"{",
"status",
"=",
"frame",
"get",
"header",
"(",
"http",
"names",
"status",
")",
";",
"}",
"int",
"space",
"=",
"status",
"index",
"of",
"(",
"'",
"'",
")",
";",
"if",
"(",
"space",
"=",
"=",
"-",
"1",
")",
"{",
"return",
"http",
"response",
"status",
"value",
"of",
"(",
"integer",
"parse",
"int",
"(",
"status",
")",
")",
";",
"}",
"else",
"{",
"int",
"code",
"=",
"integer",
"parse",
"int",
"(",
"status",
"substring",
"(",
"0",
",",
"space",
")",
")",
";",
"string",
"reason",
"phrase",
"=",
"status",
"substring",
"(",
"space",
"+",
"1",
")",
";",
"http",
"response",
"status",
"response",
"status",
"=",
"http",
"response",
"status",
"value",
"of",
"(",
"code",
")",
";",
"if",
"(",
"response",
"status",
"get",
"reason",
"phrase",
"(",
")",
"equals",
"(",
"reason",
"phrase",
")",
")",
"{",
"return",
"response",
"status",
";",
"}",
"else",
"{",
"return",
"new",
"http",
"response",
"status",
"(",
"code",
",",
"reason",
"phrase",
")",
";",
"}",
"}",
"}",
"catch",
"(",
"exception",
"e",
")",
"{",
"return",
"null",
";",
"}"
] |
[
"sets",
"the",
"http",
"response",
"status",
"header"
] |
[
"if",
"(",
"spdy",
"version",
"<",
"3",
")",
"{",
"frame",
"set",
"header",
"(",
"spdy",
"2",
"http",
"names",
"status",
",",
"status",
"to",
"string",
"(",
")",
")",
";",
"}",
"else",
"{",
"frame",
"set",
"header",
"(",
"http",
"names",
"status",
",",
"status",
"to",
"string",
"(",
")",
")",
";",
"}"
] |
[
"removes",
"the",
"url",
"path",
"header"
] |
[
"if",
"(",
"spdy",
"version",
"<",
"3",
")",
"{",
"frame",
"remove",
"header",
"(",
"spdy",
"2",
"http",
"names",
"url",
")",
";",
"}",
"else",
"{",
"frame",
"remove",
"header",
"(",
"http",
"names",
"path",
")",
";",
"}"
] |
[
"returns",
"the",
"value",
"of",
"the",
"url",
"path",
"header"
] |
[
"if",
"(",
"spdy",
"version",
"<",
"3",
")",
"{",
"return",
"frame",
"get",
"header",
"(",
"spdy",
"2",
"http",
"names",
"url",
")",
";",
"}",
"else",
"{",
"return",
"frame",
"get",
"header",
"(",
"http",
"names",
"path",
")",
";",
"}"
] |
[
"sets",
"the",
"url",
"path",
"header"
] |
[
"if",
"(",
"spdy",
"version",
"<",
"3",
")",
"{",
"frame",
"set",
"header",
"(",
"spdy",
"2",
"http",
"names",
"url",
",",
"path",
")",
";",
"}",
"else",
"{",
"frame",
"set",
"header",
"(",
"http",
"names",
"path",
",",
"path",
")",
";",
"}"
] |
[
"removes",
"the",
"http",
"version",
"header"
] |
[
"if",
"(",
"spdy",
"version",
"<",
"3",
")",
"{",
"frame",
"remove",
"header",
"(",
"spdy",
"2",
"http",
"names",
"version",
")",
";",
"}",
"else",
"{",
"frame",
"remove",
"header",
"(",
"http",
"names",
"version",
")",
";",
"}"
] |
[
"returns",
"the",
"{"
] |
[
"try",
"{",
"if",
"(",
"spdy",
"version",
"<",
"3",
")",
"{",
"return",
"http",
"version",
"value",
"of",
"(",
"frame",
"get",
"header",
"(",
"spdy",
"2",
"http",
"names",
"version",
")",
")",
";",
"}",
"else",
"{",
"return",
"http",
"version",
"value",
"of",
"(",
"frame",
"get",
"header",
"(",
"http",
"names",
"version",
")",
")",
";",
"}",
"}",
"catch",
"(",
"exception",
"e",
")",
"{",
"return",
"null",
";",
"}"
] |
[
"sets",
"the",
"http",
"version",
"header"
] |
[
"if",
"(",
"spdy",
"version",
"<",
"3",
")",
"{",
"frame",
"set",
"header",
"(",
"spdy",
"2",
"http",
"names",
"version",
",",
"http",
"version",
"get",
"text",
"(",
")",
")",
";",
"}",
"else",
"{",
"frame",
"set",
"header",
"(",
"http",
"names",
"version",
",",
"http",
"version",
"get",
"text",
"(",
")",
")",
";",
"}"
] |
[
"sets",
"the",
"animation",
"from",
"a",
"j",
"s",
"o",
"n",
"object",
"this",
"will",
"load",
"and",
"deserialize",
"the",
"file",
"asynchronously",
"<",
"p",
">",
"this",
"is",
"particularly",
"useful",
"for",
"animations",
"loaded",
"from",
"the",
"network",
"you",
"can",
"fetch",
"the",
"bodymovin",
"json",
"from",
"the",
"network",
"and",
"pass",
"it",
"directly",
"here"
] |
[
"cancel",
"loader",
"task",
"(",
")",
";",
"composition",
"loader",
"=",
"lottie",
"composition",
"factory",
"from",
"json",
"(",
"get",
"resources",
"(",
")",
",",
"json",
",",
"loaded",
"listener",
")",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"snapshot",
"for",
"which",
"you",
"are",
"requesting",
"information",
"<",
"/",
"p",
">"
] |
[
"set",
"instance",
"snapshot",
"name",
"(",
"instance",
"snapshot",
"name",
")",
";",
"return",
"this",
";"
] |
[
"specify",
"the",
"task",
"executor",
"to",
"use",
"for",
"<",
"i",
">",
"synchronous",
"<",
"/",
"i",
">",
"work",
"execution",
"(",
"i",
"e",
"{"
] |
[
"this",
"sync",
"task",
"executor",
"=",
"sync",
"task",
"executor",
";"
] |
[
"specify",
"the",
"task",
"executor",
"to",
"use",
"for",
"<",
"i",
">",
"asynchronous",
"<",
"/",
"i",
">",
"work",
"execution",
"(",
"i",
"e",
"{"
] |
[
"this",
"async",
"task",
"executor",
"=",
"async",
"task",
"executor",
";"
] |
[
"resets",
"a",
"distinct",
"value",
"estimator",
"object",
"to",
"its",
"original",
"state"
] |
[
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"num",
"bit",
"vectors",
";",
"i",
"+",
"+",
")",
"{",
"bit",
"vector",
"[",
"i",
"]",
"clear",
"(",
")",
";",
"}"
] |
[
"/",
"*",
"we",
"use",
"the",
"flajolet",
"-",
"martin",
"estimator",
"to",
"estimate",
"the",
"number",
"of",
"distinct",
"values",
"fm",
"uses",
"the",
"location",
"of",
"the",
"least",
"significant",
"zero",
"as",
"an",
"estimate",
"of",
"log",
"2",
"(",
"phi",
"*",
"ndvs",
")"
] |
[
"int",
"sum",
"least",
"sig",
"zero",
"=",
"0",
";",
"double",
"avg",
"least",
"sig",
"zero",
";",
"double",
"num",
"distinct",
"values",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"num",
"bit",
"vectors",
";",
"i",
"+",
"+",
")",
"{",
"int",
"least",
"sig",
"zero",
"=",
"bit",
"vector",
"[",
"i",
"]",
"next",
"clear",
"bit",
"(",
"0",
")",
";",
"sum",
"least",
"sig",
"zero",
"+",
"=",
"least",
"sig",
"zero",
";",
"}",
"avg",
"least",
"sig",
"zero",
"=",
"sum",
"least",
"sig",
"zero",
"/",
"(",
"num",
"bit",
"vectors",
"*",
"1",
"0",
")",
"-",
"(",
"math",
"log",
"(",
"phi",
")",
"/",
"math",
"log",
"(",
"2",
"0",
")",
")",
";",
"num",
"distinct",
"values",
"=",
"math",
"pow",
"(",
"2",
"0",
",",
"avg",
"least",
"sig",
"zero",
")",
";",
"return",
"(",
"(",
"long",
")",
"(",
"num",
"distinct",
"values",
")",
")",
";"
] |
[
"the",
"headers",
"to",
"use"
] |
[
"this",
"headers",
"=",
"headers",
";"
] |
[
"gets",
"only",
"the",
"headers",
"with",
"non",
"-",
"null",
"and",
"non",
"-",
"empty",
"names",
"it",
"returns",
"{",
"@",
"code",
"null",
"}",
"if",
"there",
"s",
"no",
"such",
"headers"
] |
[
"if",
"(",
"headers",
"=",
"=",
"null",
")",
"{",
"return",
"null",
";",
"}",
"list",
"<",
"string",
">",
"names",
"=",
"new",
"array",
"list",
"<",
">",
"(",
"headers",
"size",
"(",
")",
")",
";",
"for",
"(",
"uni",
"vocity",
"header",
"header",
":",
"headers",
")",
"{",
"if",
"(",
"header",
"get",
"name",
"(",
")",
"!",
"=",
"null",
"&",
"&",
"!",
"header",
"get",
"name",
"(",
")",
"is",
"empty",
"(",
")",
")",
"{",
"names",
"add",
"(",
"header",
"get",
"name",
"(",
")",
")",
";",
"}",
"}",
"return",
"names",
"is",
"empty",
"(",
")",
"?",
"null",
":",
"names",
"to",
"array",
"(",
"new",
"string",
"[",
"names",
"size",
"(",
")",
"]",
")",
";"
] |
[
"returns",
"the",
"list",
"of",
"tasks",
"by",
"node"
] |
[
"if",
"(",
"per",
"node",
"tasks",
"=",
"=",
"null",
")",
"{",
"per",
"node",
"tasks",
"=",
"tasks",
"stream",
"(",
")",
"collect",
"(",
"collectors",
"grouping",
"by",
"(",
"t",
"-",
">",
"t",
"get",
"task",
"id",
"(",
")",
"get",
"node",
"id",
"(",
")",
")",
")",
";",
"}",
"return",
"per",
"node",
"tasks",
";"
] |
[
"get",
"the",
"tasks",
"found",
"by",
"this",
"request",
"grouped",
"by",
"parent",
"tasks"
] |
[
"if",
"(",
"groups",
"=",
"=",
"null",
")",
"{",
"build",
"task",
"groups",
"(",
")",
";",
"}",
"return",
"groups",
";"
] |
[
"get",
"the",
"tasks",
"found",
"by",
"this",
"request"
] |
[
"return",
"tasks",
";"
] |
[
"convert",
"this",
"response",
"to",
"x",
"content",
"grouping",
"by",
"parent",
"tasks"
] |
[
"to",
"x",
"content",
"common",
"(",
"builder",
",",
"params",
")",
";",
"builder",
"start",
"object",
"(",
"tasks",
")",
";",
"for",
"(",
"task",
"group",
"group",
":",
"get",
"task",
"groups",
"(",
")",
")",
"{",
"builder",
"field",
"(",
"group",
"get",
"task",
"info",
"(",
")",
"get",
"task",
"id",
"(",
")",
"to",
"string",
"(",
")",
")",
";",
"group",
"to",
"x",
"content",
"(",
"builder",
",",
"params",
")",
";",
"}",
"builder",
"end",
"object",
"(",
")",
";",
"return",
"builder",
";"
] |
[
"presents",
"a",
"flat",
"list",
"of",
"tasks"
] |
[
"to",
"x",
"content",
"common",
"(",
"builder",
",",
"params",
")",
";",
"builder",
"start",
"array",
"(",
"tasks",
")",
";",
"for",
"(",
"task",
"info",
"task",
"info",
":",
"get",
"tasks",
"(",
")",
")",
"{",
"builder",
"start",
"object",
"(",
")",
";",
"task",
"info",
"to",
"x",
"content",
"(",
"builder",
",",
"params",
")",
";",
"builder",
"end",
"object",
"(",
")",
";",
"}",
"builder",
"end",
"array",
"(",
")",
";",
"return",
"builder",
";"
] |
[
"returns",
"the",
"connection",
"socket"
] |
[
"return",
"this",
"socket",
";"
] |
[
"returns",
"the",
"target",
"virtual",
"host"
] |
[
"return",
"this",
"host",
"name",
";"
] |
[
"sets",
"the",
"virtual",
"host",
"to",
"target"
] |
[
"assert",
"not",
"open",
"(",
")",
";"
] |
[
"returns",
"the",
"port",
"of",
"the",
"host"
] |
[
"if",
"(",
"port",
"number",
"<",
"0",
")",
"{",
"return",
"is",
"secure",
"(",
")",
"?",
"443",
":",
"80",
";",
"}",
"else",
"{",
"return",
"port",
"number",
";",
"}"
] |
[
"sets",
"the",
"port",
"to",
"connect",
"to"
] |
[
"assert",
"not",
"open",
"(",
")",
";",
"port",
"number",
"=",
"port",
";"
] |
[
"returns",
"the",
"proxy",
"host"
] |
[
"return",
"proxy",
"host",
"name",
";"
] |
[
"sets",
"the",
"host",
"to",
"proxy",
"through"
] |
[
"assert",
"not",
"open",
"(",
")",
";",
"proxy",
"host",
"name",
"=",
"host",
";"
] |
[
"returns",
"the",
"port",
"of",
"the",
"proxy",
"host"
] |
[
"return",
"proxy",
"port",
"number",
";"
] |
[
"sets",
"the",
"port",
"of",
"the",
"host",
"to",
"proxy",
"through"
] |
[
"assert",
"not",
"open",
"(",
")",
";",
"proxy",
"port",
"number",
"=",
"port",
";"
] |
[
"returns",
"<",
"tt",
">",
"true",
"<",
"/",
"tt",
">",
"if",
"the",
"connection",
"is",
"established",
"over",
"a",
"secure",
"protocol"
] |
[
"return",
"protocol",
"in",
"use",
"is",
"secure",
"(",
")",
";"
] |
[
"returns",
"the",
"protocol",
"used",
"to",
"establish",
"the",
"connection"
] |
[
"return",
"protocol",
"in",
"use",
";"
] |
[
"return",
"the",
"local",
"address",
"used",
"when",
"creating",
"the",
"connection",
"if",
"<",
"tt",
">",
"null",
"<",
"/",
"tt",
">",
"the",
"default",
"address",
"is",
"used"
] |
[
"return",
"this",
"local",
"address",
";"
] |
[
"set",
"the",
"local",
"address",
"used",
"when",
"creating",
"the",
"connection",
"if",
"unset",
"or",
"<",
"tt",
">",
"null",
"<",
"/",
"tt",
">",
"the",
"default",
"address",
"is",
"used"
] |
[
"assert",
"not",
"open",
"(",
")",
";",
"this",
"local",
"address",
"=",
"local",
"address",
";"
] |
[
"tests",
"if",
"stale",
"checking",
"is",
"enabled"
] |
[
"return",
"this",
"params",
"is",
"stale",
"checking",
"enabled",
"(",
")",
";"
] |
[
"sets",
"whether",
"or",
"not",
"is",
"stale",
"(",
")",
"will",
"be",
"called",
"when",
"testing",
"if",
"this",
"connection",
"is",
"open"
] |
[
"this",
"params",
"set",
"stale",
"checking",
"enabled",
"(",
"stale",
"check",
"enabled",
")",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.