docstring_tokens
sequence | code_tokens
sequence |
---|---|
[
"callback",
"function",
"called",
"on",
"message",
"receipt",
"from",
"context",
"hub"
] | [
"public",
"abstract",
"void",
"on",
"message",
"receipt",
"(",
"int",
"hub",
"handle",
",",
"int",
"nano",
"app",
"handle",
",",
"@",
"non",
"null",
"context",
"hub",
"message",
"message",
")",
";"
] |
[
"get",
"a",
"handle",
"to",
"all",
"the",
"context",
"hubs",
"in",
"the",
"system"
] | [
"try",
"{",
"return",
"m",
"service",
"get",
"context",
"hub",
"handles",
"(",
")",
";",
"}",
"catch",
"(",
"remote",
"exception",
"e",
")",
"{",
"throw",
"e",
"rethrow",
"from",
"system",
"server",
"(",
")",
";",
"}"
] |
[
"get",
"more",
"information",
"about",
"a",
"specific",
"hub"
] | [
"try",
"{",
"return",
"m",
"service",
"get",
"context",
"hub",
"info",
"(",
"hub",
"handle",
")",
";",
"}",
"catch",
"(",
"remote",
"exception",
"e",
")",
"{",
"throw",
"e",
"rethrow",
"from",
"system",
"server",
"(",
")",
";",
"}"
] |
[
"load",
"a",
"nano",
"app",
"on",
"a",
"specified",
"context",
"hub"
] | [
"try",
"{",
"return",
"m",
"service",
"load",
"nano",
"app",
"(",
"hub",
"handle",
",",
"app",
")",
";",
"}",
"catch",
"(",
"remote",
"exception",
"e",
")",
"{",
"throw",
"e",
"rethrow",
"from",
"system",
"server",
"(",
")",
";",
"}"
] |
[
"unload",
"a",
"specified",
"nano",
"app"
] | [
"try",
"{",
"return",
"m",
"service",
"unload",
"nano",
"app",
"(",
"nano",
"app",
"handle",
")",
";",
"}",
"catch",
"(",
"remote",
"exception",
"e",
")",
"{",
"throw",
"e",
"rethrow",
"from",
"system",
"server",
"(",
")",
";",
"}"
] |
[
"get",
"information",
"about",
"the",
"nano",
"app",
"instance"
] | [
"try",
"{",
"return",
"m",
"service",
"get",
"nano",
"app",
"instance",
"info",
"(",
"nano",
"app",
"handle",
")",
";",
"}",
"catch",
"(",
"remote",
"exception",
"e",
")",
"{",
"throw",
"e",
"rethrow",
"from",
"system",
"server",
"(",
")",
";",
"}"
] |
[
"find",
"a",
"specified",
"nano",
"app",
"on",
"the",
"system"
] | [
"try",
"{",
"return",
"m",
"service",
"find",
"nano",
"app",
"on",
"hub",
"(",
"hub",
"handle",
",",
"filter",
")",
";",
"}",
"catch",
"(",
"remote",
"exception",
"e",
")",
"{",
"throw",
"e",
"rethrow",
"from",
"system",
"server",
"(",
")",
";",
"}"
] |
[
"send",
"a",
"message",
"to",
"a",
"specific",
"nano",
"app",
"instance",
"on",
"a",
"context",
"hub"
] | [
"try",
"{",
"return",
"m",
"service",
"send",
"message",
"(",
"hub",
"handle",
",",
"nano",
"app",
"handle",
",",
"message",
")",
";",
"}",
"catch",
"(",
"remote",
"exception",
"e",
")",
"{",
"throw",
"e",
"rethrow",
"from",
"system",
"server",
"(",
")",
";",
"}"
] |
[
"returns",
"the",
"list",
"of",
"context",
"hub",
"info",
"objects",
"describing",
"the",
"available",
"context",
"hubs"
] | [
"try",
"{",
"return",
"m",
"service",
"get",
"context",
"hubs",
"(",
")",
";",
"}",
"catch",
"(",
"remote",
"exception",
"e",
")",
"{",
"throw",
"e",
"rethrow",
"from",
"system",
"server",
"(",
")",
";",
"}"
] |
[
"creates",
"an",
"interface",
"to",
"the",
"context",
"hub",
"client",
"to",
"send",
"down",
"to",
"the",
"service"
] | [
"return",
"new",
"i",
"context",
"hub",
"client",
"callback",
"stub",
"(",
")",
"{",
"@",
"override",
"public",
"void",
"on",
"message",
"from",
"nano",
"app",
"(",
"nano",
"app",
"message",
"message",
")",
"{",
"executor",
"execute",
"(",
"(",
")",
"-",
">",
"callback",
"on",
"message",
"from",
"nano",
"app",
"(",
"client",
",",
"message",
")",
")",
";",
"}",
"@",
"override",
"public",
"void",
"on",
"hub",
"reset",
"(",
")",
"{",
"executor",
"execute",
"(",
"(",
")",
"-",
">",
"callback",
"on",
"hub",
"reset",
"(",
"client",
")",
")",
";",
"}",
"@",
"override",
"public",
"void",
"on",
"nano",
"app",
"aborted",
"(",
"long",
"nano",
"app",
"id",
",",
"int",
"abort",
"code",
")",
"{",
"executor",
"execute",
"(",
"(",
")",
"-",
">",
"callback",
"on",
"nano",
"app",
"aborted",
"(",
"client",
",",
"nano",
"app",
"id",
",",
"abort",
"code",
")",
")",
";",
"}",
"@",
"override",
"public",
"void",
"on",
"nano",
"app",
"loaded",
"(",
"long",
"nano",
"app",
"id",
")",
"{",
"executor",
"execute",
"(",
"(",
")",
"-",
">",
"callback",
"on",
"nano",
"app",
"loaded",
"(",
"client",
",",
"nano",
"app",
"id",
")",
")",
";",
"}",
"@",
"override",
"public",
"void",
"on",
"nano",
"app",
"unloaded",
"(",
"long",
"nano",
"app",
"id",
")",
"{",
"executor",
"execute",
"(",
"(",
")",
"-",
">",
"callback",
"on",
"nano",
"app",
"unloaded",
"(",
"client",
",",
"nano",
"app",
"id",
")",
")",
";",
"}",
"@",
"override",
"public",
"void",
"on",
"nano",
"app",
"enabled",
"(",
"long",
"nano",
"app",
"id",
")",
"{",
"executor",
"execute",
"(",
"(",
")",
"-",
">",
"callback",
"on",
"nano",
"app",
"enabled",
"(",
"client",
",",
"nano",
"app",
"id",
")",
")",
";",
"}",
"@",
"override",
"public",
"void",
"on",
"nano",
"app",
"disabled",
"(",
"long",
"nano",
"app",
"id",
")",
"{",
"executor",
"execute",
"(",
"(",
")",
"-",
">",
"callback",
"on",
"nano",
"app",
"disabled",
"(",
"client",
",",
"nano",
"app",
"id",
")",
")",
";",
"}",
"}",
";"
] |
[
"equivalent",
"to",
"{",
"@",
"link",
"#",
"create",
"client",
"(",
"context",
"hub",
"info",
"context",
"hub",
"client",
"callback",
"executor",
")",
"}",
"with",
"the",
"executor",
"using",
"the",
"main",
"thread",
"s",
"looper"
] | [
"return",
"create",
"client",
"(",
"hub",
"info",
",",
"callback",
",",
"new",
"handler",
"executor",
"(",
"handler",
"get",
"main",
"(",
")",
")",
")",
";"
] |
[
"returns",
"an",
"integer",
"with",
"the",
"modifier",
"bits",
"set",
"based",
"on",
"whether",
"the",
"modifier",
"appears",
"in",
"the",
"given",
"event",
"unlike",
"{"
] | [
"int",
"modifiers",
"=",
"compute",
"modifiers",
"except",
"shift",
"(",
"event",
"is",
"meta",
"key",
"(",
")",
",",
"event",
"is",
"ctrl",
"key",
"(",
")",
",",
"event",
"is",
"alt",
"key",
"(",
")",
")",
";",
"if",
"(",
"event",
"is",
"shift",
"key",
"(",
")",
")",
"{",
"modifiers",
"|",
"=",
"shift",
";",
"}",
"return",
"modifiers",
";"
] |
[
"returns",
"the",
"task",
"stack"
] | [
"return",
"m",
"stack",
";"
] |
[
"updates",
"the",
"list",
"of",
"task",
"views"
] | [
"m",
"task",
"views",
"clear",
"(",
")",
";",
"int",
"child",
"count",
"=",
"get",
"child",
"count",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"child",
"count",
";",
"i",
"+",
"+",
")",
"{",
"view",
"v",
"=",
"get",
"child",
"at",
"(",
"i",
")",
";",
"if",
"(",
"v",
"instanceof",
"task",
"view",
")",
"{",
"m",
"task",
"views",
"add",
"(",
"(",
"task",
"view",
")",
"v",
")",
";",
"}",
"}"
] |
[
"gets",
"the",
"list",
"of",
"task",
"views"
] | [
"return",
"m",
"task",
"views",
";"
] |
[
"returns",
"the",
"front",
"most",
"task",
"view"
] | [
"list",
"<",
"task",
"view",
">",
"task",
"views",
"=",
"get",
"task",
"views",
"(",
")",
";",
"if",
"(",
"task",
"views",
"is",
"empty",
"(",
")",
")",
"{",
"return",
"null",
";",
"}",
"return",
"task",
"views",
"get",
"(",
"task",
"views",
"size",
"(",
")",
"-",
"1",
")",
";"
] |
[
"finds",
"the",
"child",
"view",
"given",
"a",
"specific",
"{"
] | [
"list",
"<",
"task",
"view",
">",
"task",
"views",
"=",
"get",
"task",
"views",
"(",
")",
";",
"int",
"task",
"view",
"count",
"=",
"task",
"views",
"size",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"task",
"view",
"count",
";",
"i",
"+",
"+",
")",
"{",
"task",
"view",
"tv",
"=",
"task",
"views",
"get",
"(",
"i",
")",
";",
"if",
"(",
"tv",
"get",
"task",
"(",
")",
"=",
"=",
"t",
")",
"{",
"return",
"tv",
";",
"}",
"}",
"return",
"null",
";"
] |
[
"returns",
"the",
"stack",
"algorithm",
"for",
"this",
"task",
"stack"
] | [
"return",
"m",
"layout",
"algorithm",
";"
] |
[
"returns",
"the",
"grid",
"algorithm",
"for",
"this",
"task",
"stack"
] | [
"return",
"m",
"layout",
"algorithm",
"m",
"task",
"grid",
"layout",
"algorithm",
";"
] |
[
"returns",
"the",
"touch",
"handler",
"for",
"this",
"task",
"stack"
] | [
"return",
"m",
"touch",
"handler",
";"
] |
[
"adds",
"a",
"task",
"to",
"the",
"ignored",
"set"
] | [
"m",
"ignore",
"tasks",
"add",
"(",
"task",
"key",
")",
";"
] |
[
"removes",
"a",
"task",
"from",
"the",
"ignored",
"set"
] | [
"m",
"ignore",
"tasks",
"remove",
"(",
"task",
"key",
")",
";"
] |
[
"returns",
"whether",
"the",
"specified",
"{"
] | [
"return",
"m",
"ignore",
"tasks",
"contains",
"(",
"task",
"key",
")",
";"
] |
[
"posts",
"an",
"update",
"to",
"synchronize",
"the",
"{"
] | [
"m",
"deferred",
"task",
"view",
"layout",
"animation",
"=",
"animation",
";",
"invalidate",
"(",
")",
";"
] |
[
"called",
"to",
"update",
"a",
"specific",
"{"
] | [
"if",
"(",
"task",
"view",
"is",
"animating",
"to",
"(",
"transform",
")",
")",
"{",
"return",
";",
"}",
"task",
"view",
"cancel",
"transform",
"animation",
"(",
")",
";",
"task",
"view",
"update",
"view",
"properties",
"to",
"task",
"transform",
"(",
"transform",
",",
"animation",
",",
"m",
"request",
"update",
"clipping",
"listener",
")",
";"
] |
[
"cancels",
"the",
"next",
"deferred",
"task",
"view",
"layout"
] | [
"m",
"deferred",
"task",
"view",
"layout",
"animation",
"=",
"null",
";"
] |
[
"cancels",
"all",
"{"
] | [
"list",
"<",
"task",
"view",
">",
"task",
"views",
"=",
"get",
"task",
"views",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"task",
"views",
"size",
"(",
")",
"-",
"1",
";",
"i",
">",
"=",
"0",
";",
"i",
"-",
"-",
")",
"{",
"final",
"task",
"view",
"tv",
"=",
"task",
"views",
"get",
"(",
"i",
")",
";",
"if",
"(",
"!",
"m",
"ignore",
"tasks",
"contains",
"(",
"tv",
"get",
"task",
"(",
")",
"key",
")",
")",
"{",
"tv",
"cancel",
"transform",
"animation",
"(",
")",
";",
"}",
"}"
] |
[
"returns",
"the",
"scroller"
] | [
"return",
"m",
"stack",
"scroller",
";"
] |
[
"sets",
"the",
"focused",
"task",
"to",
"the",
"provided",
"(",
"bounded",
"task",
"index",
")"
] | [
"return",
"set",
"focused",
"task",
"(",
"task",
"index",
",",
"scroll",
"to",
"task",
",",
"request",
"view",
"focus",
",",
"0",
")",
";"
] |
[
"sets",
"the",
"focused",
"task",
"relative",
"to",
"the",
"currently",
"focused",
"task"
] | [
"set",
"relative",
"focused",
"task",
"(",
"forward",
",",
"stack",
"tasks",
"only",
",",
"animated",
",",
"false",
",",
"0",
")",
";"
] |
[
"returns",
"the",
"focused",
"task"
] | [
"return",
"m",
"focused",
"task",
";"
] |
[
"returns",
"the",
"accessibility",
"focused",
"task"
] | [
"list",
"<",
"task",
"view",
">",
"task",
"views",
"=",
"get",
"task",
"views",
"(",
")",
";",
"int",
"task",
"view",
"count",
"=",
"task",
"views",
"size",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"task",
"view",
"count",
";",
"i",
"+",
"+",
")",
"{",
"task",
"view",
"tv",
"=",
"task",
"views",
"get",
"(",
"i",
")",
";",
"if",
"(",
"utilities",
"is",
"descendent",
"accessibility",
"focused",
"(",
"tv",
")",
")",
"{",
"return",
"tv",
"get",
"task",
"(",
")",
";",
"}",
"}",
"task",
"view",
"front",
"tv",
"=",
"get",
"front",
"most",
"task",
"view",
"(",
")",
";",
"if",
"(",
"front",
"tv",
"!",
"=",
"null",
")",
"{",
"return",
"front",
"tv",
"get",
"task",
"(",
")",
";",
"}",
"return",
"null",
";"
] |
[
"computes",
"the",
"maximum",
"number",
"of",
"visible",
"tasks",
"and",
"thumbnails",
"requires",
"that",
"update",
"layout",
"for",
"stack",
"(",
")",
"is",
"called",
"first"
] | [
"return",
"m",
"layout",
"algorithm",
"compute",
"stack",
"visibility",
"report",
"(",
"m",
"stack",
"get",
"tasks",
"(",
")",
")",
";"
] |
[
"updates",
"the",
"system",
"insets"
] | [
"boolean",
"changed",
"=",
"false",
";",
"changed",
"|",
"=",
"m",
"stable",
"layout",
"algorithm",
"set",
"system",
"insets",
"(",
"system",
"insets",
")",
";",
"changed",
"|",
"=",
"m",
"layout",
"algorithm",
"set",
"system",
"insets",
"(",
"system",
"insets",
")",
";",
"if",
"(",
"changed",
")",
"{",
"request",
"layout",
"(",
")",
";",
"}"
] |
[
"measures",
"a",
"task",
"view"
] | [
"rect",
"padding",
"=",
"new",
"rect",
"(",
")",
";",
"if",
"(",
"tv",
"get",
"background",
"(",
")",
"!",
"=",
"null",
")",
"{",
"tv",
"get",
"background",
"(",
")",
"get",
"padding",
"(",
"padding",
")",
";",
"}",
"m",
"tmp",
"rect",
"set",
"(",
"m",
"stable",
"layout",
"algorithm",
"get",
"task",
"rect",
"(",
")",
")",
";",
"m",
"tmp",
"rect",
"union",
"(",
"m",
"layout",
"algorithm",
"get",
"task",
"rect",
"(",
")",
")",
";",
"tv",
"measure",
"(",
"measure",
"spec",
"make",
"measure",
"spec",
"(",
"m",
"tmp",
"rect",
"width",
"(",
")",
"+",
"padding",
"left",
"+",
"padding",
"right",
",",
"measure",
"spec",
"exactly",
")",
",",
"measure",
"spec",
"make",
"measure",
"spec",
"(",
"m",
"tmp",
"rect",
"height",
"(",
")",
"+",
"padding",
"top",
"+",
"padding",
"bottom",
",",
"measure",
"spec",
"exactly",
")",
")",
";"
] |
[
"*",
"*",
"view",
"pool",
"consumer",
"implementation",
"*",
"*",
"*"
] | [
"if",
"(",
"recents",
"get",
"configuration",
"(",
")",
"is",
"grid",
"enabled",
")",
"{",
"return",
"(",
"grid",
"task",
"view",
")",
"m",
"inflater",
"inflate",
"(",
"r",
"layout",
"recents",
"grid",
"task",
"view",
",",
"this",
",",
"false",
")",
";",
"}",
"else",
"{",
"return",
"(",
"task",
"view",
")",
"m",
"inflater",
"inflate",
"(",
"r",
"layout",
"recents",
"task",
"view",
",",
"this",
",",
"false",
")",
";",
"}"
] |
[
"*",
"*",
"task",
"view",
"callbacks",
"implementation",
"*",
"*",
"*"
] | [
"if",
"(",
"!",
"m",
"task",
"views",
"clip",
"dirty",
")",
"{",
"m",
"task",
"views",
"clip",
"dirty",
"=",
"true",
";",
"invalidate",
"(",
")",
";",
"}"
] |
[
"*",
"*",
"task",
"stack",
"layout",
"algorithm",
"task",
"stack",
"layout",
"algorithm",
"callbacks",
"*",
"*",
"*"
] | [
"if",
"(",
"m",
"deferred",
"task",
"view",
"layout",
"animation",
"=",
"=",
"null",
")",
"{",
"m",
"u",
"i",
"doze",
"trigger",
"poke",
"(",
")",
";",
"relayout",
"task",
"views",
"on",
"next",
"frame",
"(",
"animation",
"props",
"immediate",
")",
";",
"}"
] |
[
"returns",
"the",
"insert",
"index",
"for",
"the",
"task",
"in",
"the",
"current",
"set",
"of",
"task",
"views",
"if",
"the",
"given",
"task",
"is",
"already",
"in",
"the",
"task",
"view",
"list",
"then",
"this",
"method",
"returns",
"the",
"insert",
"index",
"assuming",
"it",
"is",
"first",
"removed",
"at",
"the",
"previous",
"index"
] | [
"if",
"(",
"task",
"index",
"!",
"=",
"-",
"1",
")",
"{",
"list",
"<",
"task",
"view",
">",
"task",
"views",
"=",
"get",
"task",
"views",
"(",
")",
";",
"boolean",
"found",
"task",
"view",
"=",
"false",
";",
"int",
"task",
"view",
"count",
"=",
"task",
"views",
"size",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"task",
"view",
"count",
";",
"i",
"+",
"+",
")",
"{",
"task",
"tv",
"task",
"=",
"task",
"views",
"get",
"(",
"i",
")",
"get",
"task",
"(",
")",
";",
"if",
"(",
"tv",
"task",
"=",
"=",
"task",
")",
"{",
"found",
"task",
"view",
"=",
"true",
";",
"}",
"else",
"if",
"(",
"task",
"index",
"<",
"m",
"stack",
"index",
"of",
"task",
"(",
"tv",
"task",
")",
")",
"{",
"if",
"(",
"found",
"task",
"view",
")",
"{",
"return",
"i",
"-",
"1",
";",
"}",
"else",
"{",
"return",
"i",
";",
"}",
"}",
"}",
"}",
"return",
"-",
"1",
";"
] |
[
"check",
"whether",
"we",
"should",
"use",
"the",
"grid",
"layout"
] | [
"return",
"m",
"layout",
"algorithm",
"use",
"grid",
"layout",
"(",
")",
";"
] |
[
"reads",
"current",
"system",
"flags",
"related",
"to",
"accessibility",
"and",
"screen",
"pinning"
] | [
"system",
"services",
"proxy",
"ssp",
"=",
"recents",
"get",
"system",
"services",
"(",
")",
";",
"m",
"touch",
"exploration",
"enabled",
"=",
"ssp",
"is",
"touch",
"exploration",
"enabled",
"(",
")",
";",
"m",
"screen",
"pinning",
"enabled",
"=",
"activity",
"manager",
"wrapper",
"get",
"instance",
"(",
")",
"is",
"screen",
"pinning",
"enabled",
"(",
")",
"&",
"&",
"!",
"activity",
"manager",
"wrapper",
"get",
"instance",
"(",
")",
"is",
"lock",
"to",
"app",
"active",
"(",
")",
";"
] |
[
"returns",
"if",
"the",
"status",
"severity",
"is",
"ok"
] | [
"return",
"f",
"severity",
"=",
"=",
"i",
"status",
"ok",
";"
] |
[
"returns",
"if",
"the",
"status",
"severity",
"is",
"warning"
] | [
"return",
"f",
"severity",
"=",
"=",
"i",
"status",
"warning",
";"
] |
[
"returns",
"if",
"the",
"status",
"severity",
"is",
"info"
] | [
"return",
"f",
"severity",
"=",
"=",
"i",
"status",
"info",
";"
] |
[
"returns",
"if",
"the",
"status",
"severity",
"is",
"error"
] | [
"return",
"f",
"severity",
"=",
"=",
"i",
"status",
"error",
";"
] |
[
"sets",
"the",
"status",
"to",
"error"
] | [
"assert",
"is",
"not",
"null",
"(",
"error",
"message",
")",
";",
"f",
"status",
"message",
"=",
"error",
"message",
";",
"f",
"severity",
"=",
"i",
"status",
"error",
";"
] |
[
"sets",
"the",
"status",
"to",
"warning"
] | [
"assert",
"is",
"not",
"null",
"(",
"warning",
"message",
")",
";",
"f",
"status",
"message",
"=",
"warning",
"message",
";",
"f",
"severity",
"=",
"i",
"status",
"warning",
";"
] |
[
"sets",
"the",
"status",
"to",
"info"
] | [
"assert",
"is",
"not",
"null",
"(",
"info",
"message",
")",
";",
"f",
"status",
"message",
"=",
"info",
"message",
";",
"f",
"severity",
"=",
"i",
"status",
"info",
";"
] |
[
"sets",
"the",
"status",
"to",
"ok"
] | [
"f",
"status",
"message",
"=",
"null",
";",
"f",
"severity",
"=",
"i",
"status",
"ok",
";"
] |
[
"/",
"*"
] | [
"return",
"(",
"f",
"severity",
"&",
"severity",
"mask",
")",
"!",
"=",
"0",
";"
] |
[
"/",
"*",
"(",
"intentionally",
"not",
"javadoc",
"d",
")",
"implements",
"the",
"corresponding",
"method",
"on",
"<",
"code",
">",
"i",
"status",
"<",
"/",
"code",
">"
] | [
"return",
"false",
";"
] |
[
"returns",
"the",
"severity"
] | [
"return",
"f",
"severity",
";"
] |
[
"/",
"*"
] | [
"return",
"java",
"plugin",
"id",
"plugin",
";"
] |
[
"returns",
"always",
"<",
"code",
">",
"null",
"<",
"/",
"code",
">"
] | [
"return",
"null",
";"
] |
[
"returns",
"always",
"the",
"error",
"severity"
] | [
"return",
"f",
"severity",
";"
] |
[
"returns",
"always",
"an",
"empty",
"array"
] | [
"return",
"new",
"i",
"status",
"[",
"0",
"]",
";"
] |
[
"release",
"all",
"resources",
"held",
"by",
"this",
"provider"
] | [
"stop",
"(",
")",
";"
] |
[
"retrieves",
"information",
"about",
"the",
"given",
"package",
"asynchronously",
"when",
"details",
"have",
"been",
"retrieved",
"the",
"observer",
"is",
"alerted"
] | [
"protected",
"abstract",
"void",
"get",
"app",
"details",
"asynchronously",
"(",
"observer",
"observer",
",",
"string",
"url",
",",
"string",
"package",
"name",
",",
"string",
"referrer",
",",
"int",
"icon",
"size",
")",
";"
] |
[
"removes",
"all",
"components",
"and",
"destroys",
"it"
] | [
"public",
"abstract",
"void",
"destroy",
"(",
")",
";"
] |
[
"generates",
"and",
"adds",
"a",
"key",
"of",
"template",
"{"
] | [
"tinkey",
"util",
"create",
"key",
"(",
"tinkey",
"util",
"command",
"type",
"rotate",
"keyset",
",",
"output",
"stream",
",",
"out",
"format",
",",
"input",
"stream",
",",
"in",
"format",
",",
"master",
"key",
"uri",
",",
"credential",
"path",
",",
"key",
"template",
")",
";"
] |
[
"pure",
"convenience",
"wrapper"
] | [
"for",
"(",
"deep",
"water",
"parameters",
"network",
"network",
":",
"deep",
"water",
"parameters",
"network",
"values",
"(",
")",
")",
"{",
"if",
"(",
"network",
"=",
"=",
"deep",
"water",
"parameters",
"network",
"user",
")",
"continue",
";",
"if",
"(",
"network",
"=",
"=",
"deep",
"water",
"parameters",
"network",
"auto",
")",
"continue",
";",
"setting",
"model",
"info",
"(",
"network",
")",
";",
"}"
] |
[
"pure",
"convenience",
"wrapper"
] | [
"for",
"(",
"deep",
"water",
"parameters",
"network",
"network",
":",
"deep",
"water",
"parameters",
"network",
"values",
"(",
")",
")",
"{",
"if",
"(",
"network",
"=",
"=",
"deep",
"water",
"parameters",
"network",
"auto",
")",
"continue",
";",
"if",
"(",
"network",
"=",
"=",
"deep",
"water",
"parameters",
"network",
"user",
")",
"continue",
";",
"deep",
"water",
"load",
"save",
"test",
"(",
"network",
")",
";",
"}"
] |
[
"pure",
"convenience",
"wrapper"
] | [
"for",
"(",
"deep",
"water",
"parameters",
"network",
"network",
":",
"deep",
"water",
"parameters",
"network",
"values",
"(",
")",
")",
"{",
"if",
"(",
"network",
"=",
"=",
"deep",
"water",
"parameters",
"network",
"user",
")",
"continue",
";",
"if",
"(",
"network",
"=",
"=",
"deep",
"water",
"parameters",
"network",
"auto",
")",
"continue",
";",
"restore",
"state",
"(",
"network",
")",
";",
"}"
] |
[
"gets",
"the",
"list",
"of",
"tag",
"sets",
"as",
"a",
"list",
"of",
"{",
"@",
"code",
"tag",
"set",
"}",
"instances"
] | [
"return",
"collections",
"unmodifiable",
"list",
"(",
"tag",
"set",
"list",
")",
";"
] |
[
"construct",
"an",
"asynchronous",
"implementation",
"of",
"a",
"w",
"s",
"cloud",
"h",
"s",
"m",
"async",
"using",
"the",
"current",
"builder",
"configuration"
] | [
"return",
"new",
"a",
"w",
"s",
"cloud",
"h",
"s",
"m",
"async",
"client",
"(",
"params",
")",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"resource",
"group",
"<",
"/",
"p",
">"
] | [
"this",
"group",
"name",
"=",
"group",
"name",
";"
] |
[
"call",
"this",
"to",
"specify",
"an",
"explicit",
"transition",
"animation",
"to",
"perform",
"next"
] | [
"if",
"(",
"context",
"instanceof",
"activity",
")",
"{",
"(",
"(",
"activity",
")",
"context",
")",
"override",
"pending",
"transition",
"(",
"enter",
"anim",
",",
"exit",
"anim",
")",
";",
"}"
] |
[
"<",
"p",
">",
"the",
"page",
"token",
"for",
"the",
"next",
"set",
"of",
"results",
"to",
"retrieve",
"the",
"first",
"set",
"of",
"results",
"use",
"null",
"<",
"/",
"p",
">"
] | [
"this",
"page",
"token",
"=",
"page",
"token",
";"
] |
[
"<",
"p",
">",
"the",
"page",
"token",
"for",
"the",
"next",
"set",
"of",
"results",
"to",
"retrieve",
"the",
"first",
"set",
"of",
"results",
"use",
"null",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"page",
"token",
";"
] |
[
"<",
"p",
">",
"a",
"token",
"used",
"for",
"advancing",
"to",
"the",
"next",
"page",
"of",
"results",
"from",
"your",
"get",
"operations",
"request",
"<",
"/",
"p",
">"
] | [
"set",
"page",
"token",
"(",
"page",
"token",
")",
";",
"return",
"this",
";"
] |
[
"{"
] | [
"ignite",
"=",
"g",
"ignite",
"(",
"get",
"test",
"ignite",
"instance",
"name",
"(",
")",
")",
";"
] |
[
"describes",
"the",
"format",
"of",
"the",
"data",
"in",
"the",
"object",
"that",
"is",
"being",
"queried"
] | [
"return",
"input",
"serialization",
";"
] |
[
"<",
"p",
">",
"describes",
"the",
"serialization",
"format",
"of",
"the",
"object",
"<",
"/",
"p",
">"
] | [
"this",
"input",
"serialization",
"=",
"input",
"serialization",
";"
] |
[
"<",
"p",
">",
"describes",
"the",
"serialization",
"format",
"of",
"the",
"object",
"<",
"/",
"p",
">"
] | [
"set",
"input",
"serialization",
"(",
"input",
"serialization",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"type",
"of",
"the",
"provided",
"expression",
"for",
"example",
"<",
"code",
">",
"sql",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">"
] | [
"this",
"expression",
"type",
"=",
"expression",
"type",
";"
] |
[
"<",
"p",
">",
"the",
"type",
"of",
"the",
"provided",
"expression",
"for",
"example",
"<",
"code",
">",
"sql",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">"
] | [
"set",
"expression",
"type",
"(",
"expression",
"type",
")",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"expression",
"type"
] | [
"set",
"expression",
"type",
"(",
"expression",
"type",
"=",
"=",
"null",
"?",
"null",
":",
"expression",
"type",
"to",
"string",
"(",
")",
")",
";",
"return",
"this",
";"
] |
[
"a",
"replacement",
"expression",
"that",
"transforms",
"the",
"matched",
"expression",
"in",
"a",
"new",
"value"
] | [
"return",
"expression",
";"
] |
[
"<",
"p",
">",
"the",
"expression",
"that",
"is",
"used",
"to",
"select",
"the",
"object",
"<",
"/",
"p",
">"
] | [
"this",
"expression",
"=",
"expression",
";"
] |
[
"<",
"p",
">",
"the",
"expression",
"that",
"is",
"used",
"to",
"select",
"the",
"object",
"<",
"/",
"p",
">"
] | [
"set",
"expression",
"(",
"expression",
")",
";",
"return",
"this",
";"
] |
[
"describes",
"the",
"format",
"of",
"the",
"data",
"that",
"you",
"want",
"amazon",
"s3",
"to",
"return",
"in",
"response"
] | [
"return",
"output",
"serialization",
";"
] |
[
"<",
"p",
">",
"describes",
"how",
"the",
"results",
"of",
"the",
"select",
"job",
"are",
"serialized",
"<",
"/",
"p",
">"
] | [
"this",
"output",
"serialization",
"=",
"output",
"serialization",
";"
] |
[
"<",
"p",
">",
"describes",
"how",
"the",
"results",
"of",
"the",
"select",
"job",
"are",
"serialized",
"<",
"/",
"p",
">"
] | [
"set",
"output",
"serialization",
"(",
"output",
"serialization",
")",
";",
"return",
"this",
";"
] |
[
"implementations",
"for",
"annotation",
"visitor"
] | [
"if",
"(",
"!",
"clazz",
"equals",
"(",
"last",
"visited",
"class",
")",
")",
"{",
"clazz",
"accept",
"(",
"class",
"visitor",
")",
";",
"last",
"visited",
"class",
"=",
"clazz",
";",
"}"
] |
[
"inits",
"the",
"internal",
"objects",
"set",
"the",
"defaults"
] | [
"m",
"styles",
"=",
"new",
"styles",
"(",
")",
";",
"m",
"styles",
"size",
"=",
"2",
"0f",
";",
"m",
"paint",
"=",
"new",
"paint",
"(",
")",
";",
"m",
"paint",
"set",
"stroke",
"cap",
"(",
"paint",
"cap",
"round",
")",
";",
"set",
"shape",
"(",
"shape",
"point",
")",
";"
] |
[
"helper",
"to",
"draw",
"triangle"
] | [
"float",
"[",
"]",
"points",
"=",
"new",
"float",
"[",
"8",
"]",
";",
"points",
"[",
"0",
"]",
"=",
"point",
"[",
"0",
"]",
"x",
";",
"points",
"[",
"1",
"]",
"=",
"point",
"[",
"0",
"]",
"y",
";",
"points",
"[",
"2",
"]",
"=",
"point",
"[",
"1",
"]",
"x",
";",
"points",
"[",
"3",
"]",
"=",
"point",
"[",
"1",
"]",
"y",
";",
"points",
"[",
"4",
"]",
"=",
"point",
"[",
"2",
"]",
"x",
";",
"points",
"[",
"5",
"]",
"=",
"point",
"[",
"2",
"]",
"y",
";",
"points",
"[",
"6",
"]",
"=",
"point",
"[",
"0",
"]",
"x",
";",
"points",
"[",
"7",
"]",
"=",
"point",
"[",
"0",
"]",
"y",
";",
"canvas",
"draw",
"vertices",
"(",
"canvas",
"vertex",
"mode",
"triangles",
",",
"8",
",",
"points",
",",
"0",
",",
"null",
",",
"0",
",",
"null",
",",
"0",
",",
"null",
",",
"0",
",",
"0",
",",
"paint",
")",
";",
"path",
"path",
"=",
"new",
"path",
"(",
")",
";",
"path",
"move",
"to",
"(",
"point",
"[",
"0",
"]",
"x",
",",
"point",
"[",
"0",
"]",
"y",
")",
";",
"path",
"line",
"to",
"(",
"point",
"[",
"1",
"]",
"x",
",",
"point",
"[",
"1",
"]",
"y",
")",
";",
"path",
"line",
"to",
"(",
"point",
"[",
"2",
"]",
"x",
",",
"point",
"[",
"2",
"]",
"y",
")",
";",
"canvas",
"draw",
"path",
"(",
"path",
",",
"paint",
")",
";"
] |
[
"this",
"is",
"used",
"for",
"the",
"size",
"of",
"the",
"shape",
"that",
"will",
"be",
"drawn",
"this",
"is",
"useless",
"if",
"you",
"are",
"using",
"a",
"custom",
"shape"
] | [
"return",
"m",
"styles",
"size",
";"
] |
[
"this",
"is",
"used",
"for",
"the",
"size",
"of",
"the",
"shape",
"that",
"will",
"be",
"drawn",
"this",
"is",
"useless",
"if",
"you",
"are",
"using",
"a",
"custom",
"shape"
] | [
"m",
"styles",
"size",
"=",
"radius",
";"
] |
[
"use",
"a",
"custom",
"handler",
"to",
"draw",
"your",
"own",
"drawing",
"for",
"each",
"data",
"point"
] | [
"m",
"custom",
"shape",
"=",
"shape",
";"
] |
[
"return",
"the",
"job",
"id"
] | [
"return",
"job",
"id",
";"
] |
[
"the",
"name",
"of",
"the",
"index",
"storing",
"the",
"job",
"s",
"results",
"and",
"state",
"this",
"defaults",
"to",
"{"
] | [
"return",
"anomaly",
"detectors",
"index",
"fields",
"results",
"index",
"prefix",
"+",
"results",
"index",
"name",
";"
] |
[
"private",
"version",
"of",
"get",
"results",
"index",
"name",
"so",
"that",
"a",
"job",
"can",
"be",
"built",
"from",
"another",
"job",
"and",
"pass",
"index",
"name",
"validation"
] | [
"return",
"results",
"index",
"name",
";"
] |
[
"the",
"time",
"the",
"job",
"was",
"finished",
"or",
"<",
"code",
">",
"null",
"<",
"/",
"code",
">",
"if",
"not",
"finished"
] | [
"return",
"finished",
"time",
";"
] |
[
"the",
"analysis",
"configuration",
"object"
] | [
"return",
"analysis",
"config",
";"
] |
[
"make",
"a",
"best",
"estimate",
"of",
"the",
"job",
"s",
"memory",
"footprint",
"using",
"the",
"information",
"available",
"if",
"a",
"job",
"has",
"an",
"established",
"model",
"memory",
"size",
"then",
"this",
"is",
"the",
"best",
"estimate",
"otherwise",
"assume",
"the",
"maximum",
"model",
"memory",
"limit",
"will",
"eventually",
"be",
"required",
"in",
"either",
"case",
"a",
"fixed",
"overhead",
"is",
"added",
"to",
"account",
"for",
"the",
"memory",
"required",
"by",
"the",
"program",
"code",
"and",
"stack"
] | [
"if",
"(",
"established",
"model",
"memory",
"!",
"=",
"null",
"&",
"&",
"established",
"model",
"memory",
">",
"0",
")",
"{",
"return",
"established",
"model",
"memory",
"+",
"process",
"memory",
"overhead",
"get",
"bytes",
"(",
")",
";",
"}",
"return",
"byte",
"size",
"unit",
"mb",
"to",
"bytes",
"(",
"analysis",
"limits",
"get",
"model",
"memory",
"limit",
"(",
")",
")",
"+",
"process",
"memory",
"overhead",
"get",
"bytes",
"(",
")",
";"
] |
[
"returns",
"the",
"timestamp",
"before",
"which",
"data",
"is",
"not",
"accepted",
"by",
"the",
"job",
"this",
"is",
"the",
"latest",
"record",
"timestamp",
"minus",
"the",
"job",
"latency"
] | [
"long",
"current",
"time",
"=",
"0",
";",
"date",
"latest",
"record",
"timestamp",
"=",
"data",
"counts",
"get",
"latest",
"record",
"time",
"stamp",
"(",
")",
";",
"if",
"(",
"latest",
"record",
"timestamp",
"!",
"=",
"null",
")",
"{",
"time",
"value",
"latency",
"=",
"analysis",
"config",
"get",
"latency",
"(",
")",
";",
"long",
"latency",
"millis",
"=",
"latency",
"=",
"=",
"null",
"?",
"0",
":",
"latency",
"millis",
"(",
")",
";",
"current",
"time",
"=",
"latest",
"record",
"timestamp",
"get",
"time",
"(",
")",
"-",
"latency",
"millis",
";",
"}",
"return",
"current",
"time",
";"
] |
[
"returns",
"the",
"job",
"types",
"that",
"are",
"compatible",
"with",
"a",
"node",
"running",
"on",
"{"
] | [
"set",
"<",
"string",
">",
"compatible",
"types",
"=",
"new",
"hash",
"set",
"<",
">",
"(",
")",
";",
"compatible",
"types",
"add",
"(",
"anomaly",
"detector",
"job",
"type",
")",
";",
"return",
"compatible",
"types",
";"
] |
[
"contains",
"custom",
"meta",
"data",
"about",
"the",
"job"
] | [
"this",
"custom",
"settings",
"=",
"custom",
"settings",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"description",
"the",
"description",
"is",
"used",
"to",
"describe",
"the",
"test",
"integration",
"object",
"s",
"purpose",
"this",
"is",
"optional",
";",
"if",
"it",
"isn",
"t",
"set",
"it",
"will",
"have",
"a",
"default",
"value",
"of",
"{"
] | [
"this",
"description",
"=",
"description",
";",
"return",
"this",
";"
] |
[
"enables",
"/",
"disables",
"the",
"model",
"plot",
"config",
"setting",
"through",
"{",
"@",
"link",
"model",
"plot",
"config",
"#",
"enabled",
"}"
] | [
"this",
"model",
"plot",
"config",
"=",
"model",
"plot",
"config",
";",
"return",
"this",
";"
] |
Subsets and Splits