docstring_tokens
list | code_tokens
list |
---|---|
[
"returns",
"true",
"if",
"field",
"group",
"privileges",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] |
[
"return",
"this",
"group",
"privileges",
"!",
"=",
"null",
";"
] |
[
"returns",
"true",
"if",
"field",
"role",
"privileges",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] |
[
"return",
"this",
"role",
"privileges",
"!",
"=",
"null",
";"
] |
[
"returns",
"true",
"if",
"field",
"corresponding",
"to",
"field",
"i",
"d",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] |
[
"if",
"(",
"field",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
")",
";",
"}",
"switch",
"(",
"field",
")",
"{",
"case",
"user",
"privileges",
":",
"return",
"is",
"set",
"user",
"privileges",
"(",
")",
";",
"case",
"group",
"privileges",
":",
"return",
"is",
"set",
"group",
"privileges",
"(",
")",
";",
"case",
"role",
"privileges",
":",
"return",
"is",
"set",
"role",
"privileges",
"(",
")",
";",
"}",
"throw",
"new",
"illegal",
"state",
"exception",
"(",
")",
";"
] |
[
"get",
"the",
"maximum",
"length",
"of",
"the",
"rope"
] |
[
"return",
"joint",
"get",
"max",
"length",
"(",
")",
";"
] |
[
"handles",
"a",
"change",
"in",
"viewport",
"this",
"method",
"should",
"not",
"be",
"called",
"outside",
"of",
"the",
"method",
"{"
] |
[
"final",
"int",
"first",
"visible",
"position",
"=",
"m",
"layout",
"info",
"find",
"first",
"visible",
"item",
"position",
"(",
")",
";",
"final",
"int",
"last",
"visible",
"position",
"=",
"m",
"layout",
"info",
"find",
"last",
"visible",
"item",
"position",
"(",
")",
";",
"final",
"int",
"first",
"fully",
"visible",
"item",
"position",
"=",
"m",
"layout",
"info",
"find",
"first",
"fully",
"visible",
"item",
"position",
"(",
")",
";",
"final",
"int",
"last",
"fully",
"visible",
"item",
"position",
"=",
"m",
"layout",
"info",
"find",
"last",
"fully",
"visible",
"item",
"position",
"(",
")",
";",
"final",
"int",
"total",
"item",
"count",
"=",
"m",
"layout",
"info",
"get",
"item",
"count",
"(",
")",
";",
"if",
"(",
"first",
"visible",
"position",
"<",
"0",
"|",
"|",
"last",
"visible",
"position",
"<",
"0",
")",
"{",
"return",
";",
"}",
"if",
"(",
"first",
"visible",
"position",
"=",
"=",
"m",
"current",
"first",
"visible",
"position",
"&",
"&",
"last",
"visible",
"position",
"=",
"=",
"m",
"current",
"last",
"visible",
"position",
"&",
"&",
"first",
"fully",
"visible",
"item",
"position",
"=",
"=",
"m",
"current",
"first",
"fully",
"visible",
"position",
"&",
"&",
"last",
"fully",
"visible",
"item",
"position",
"=",
"=",
"m",
"current",
"last",
"fully",
"visible",
"position",
"&",
"&",
"total",
"item",
"count",
"=",
"=",
"m",
"total",
"item",
"count",
"&",
"&",
"state",
"!",
"=",
"viewport",
"info",
"state",
"data",
"changes",
")",
"{",
"return",
";",
"}",
"m",
"current",
"first",
"visible",
"position",
"=",
"first",
"visible",
"position",
";",
"m",
"current",
"last",
"visible",
"position",
"=",
"last",
"visible",
"position",
";",
"m",
"current",
"first",
"fully",
"visible",
"position",
"=",
"first",
"fully",
"visible",
"item",
"position",
";",
"m",
"current",
"last",
"fully",
"visible",
"position",
"=",
"last",
"fully",
"visible",
"item",
"position",
";",
"m",
"total",
"item",
"count",
"=",
"total",
"item",
"count",
";",
"m",
"should",
"update",
"=",
"false",
";",
"if",
"(",
"m",
"viewport",
"changed",
"listeners",
"=",
"=",
"null",
"|",
"|",
"m",
"viewport",
"changed",
"listeners",
"is",
"empty",
"(",
")",
")",
"{",
"return",
";",
"}",
"for",
"(",
"int",
"i",
"=",
"0",
",",
"size",
"=",
"m",
"viewport",
"changed",
"listeners",
"size",
"(",
")",
";",
"i",
"<",
"size",
";",
"i",
"+",
"+",
")",
"{",
"final",
"viewport",
"changed",
"viewport",
"changed",
"listener",
"=",
"m",
"viewport",
"changed",
"listeners",
"get",
"(",
"i",
")",
";",
"viewport",
"changed",
"listener",
"viewport",
"changed",
"(",
"first",
"visible",
"position",
",",
"last",
"visible",
"position",
",",
"first",
"fully",
"visible",
"item",
"position",
",",
"last",
"fully",
"visible",
"item",
"position",
",",
"state",
")",
";",
"}"
] |
[
"whether",
"first",
"/",
"last",
"visible",
"positions",
"should",
"be",
"updated",
"if",
"this",
"returns",
"true",
"we",
"should",
"not",
"do",
"any",
"computations",
"based",
"on",
"current",
"first",
"/",
"last",
"visible",
"positions",
"until",
"they",
"are",
"updated"
] |
[
"return",
"m",
"current",
"first",
"visible",
"position",
"<",
"0",
"|",
"|",
"m",
"current",
"last",
"visible",
"position",
"<",
"0",
"|",
"|",
"m",
"should",
"update",
";"
] |
[
"<",
"p",
">",
"indicates",
"whether",
"the",
"rule",
"is",
"an",
"egress",
"rule",
"<",
"/",
"p",
">"
] |
[
"set",
"egress",
"(",
"egress",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"id",
"of",
"the",
"network",
"acl",
"<",
"/",
"p",
">"
] |
[
"set",
"network",
"acl",
"id",
"(",
"network",
"acl",
"id",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"rule",
"number",
"of",
"the",
"entry",
"to",
"delete",
"<",
"/",
"p",
">"
] |
[
"set",
"rule",
"number",
"(",
"rule",
"number",
")",
";",
"return",
"this",
";"
] |
[
"expected",
"to",
"be",
"called",
"very",
"infrequently"
] |
[
"string",
"[",
"]",
"error",
"snapshot",
"=",
"error",
"store",
"to",
"array",
"(",
"new",
"string",
"[",
"0",
"]",
")",
";",
"string",
"builder",
"errors",
"=",
"new",
"string",
"builder",
"(",
")",
";",
"for",
"(",
"string",
"error",
":",
"error",
"snapshot",
")",
"{",
"errors",
"append",
"(",
"error",
")",
"append",
"(",
"'",
"\\",
"n",
"'",
")",
";",
"}",
"return",
"errors",
"to",
"string",
"(",
")",
";"
] |
[
"{"
] |
[
"thread",
"current",
"thread",
"(",
")",
"interrupt",
"(",
")",
";"
] |
[
"/",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"/",
"*",
"json",
"serializable",
"base",
"implementation",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*"
] |
[
"writable",
"type",
"id",
"type",
"id",
"def",
"=",
"new",
"writable",
"type",
"id",
"(",
"this",
",",
"json",
"token",
"value",
"string",
")",
";",
"type",
"ser",
"write",
"type",
"prefix",
"(",
"g",
",",
"type",
"id",
"def",
")",
";",
"this",
"serialize",
"(",
"g",
",",
"provider",
")",
";",
"type",
"ser",
"write",
"type",
"suffix",
"(",
"g",
",",
"type",
"id",
"def",
")",
";"
] |
[
"creates",
"a",
"deep",
"copy",
"of",
"the",
"itself"
] |
[
"return",
"new",
"registered",
"broadcast",
"state",
"backend",
"meta",
"info",
"<",
">",
"(",
"this",
")",
";"
] |
[
"for",
"tests",
"only",
":",
"sets",
"the",
"download",
"resumption",
"scheduler"
] |
[
"s",
"download",
"resumption",
"scheduler",
"=",
"scheduler",
";"
] |
[
"cancels",
"a",
"download",
"resumption",
"task",
"if",
"it",
"is",
"scheduled"
] |
[
"gcm",
"network",
"manager",
"gcm",
"network",
"manager",
"=",
"gcm",
"network",
"manager",
"get",
"instance",
"(",
"m",
"context",
")",
";",
"gcm",
"network",
"manager",
"cancel",
"task",
"(",
"task",
"tag",
",",
"chrome",
"background",
"service",
"class",
")",
";"
] |
[
"launch",
"search",
"ui"
] |
[
"start",
"search",
"(",
"initial",
"query",
",",
"select",
"initial",
"query",
",",
"launch",
"activity",
",",
"app",
"search",
"data",
",",
"global",
"search",
",",
"null",
")",
";"
] |
[
"returns",
"a",
"list",
"of",
"installed",
"apps",
"that",
"handle",
"the",
"global",
"search",
"intent"
] |
[
"try",
"{",
"return",
"m",
"service",
"get",
"global",
"search",
"activities",
"(",
")",
";",
"}",
"catch",
"(",
"remote",
"exception",
"ex",
")",
"{",
"throw",
"ex",
"rethrow",
"from",
"system",
"server",
"(",
")",
";",
"}"
] |
[
"gets",
"the",
"name",
"of",
"the",
"global",
"search",
"activity"
] |
[
"try",
"{",
"return",
"m",
"service",
"get",
"global",
"search",
"activity",
"(",
")",
";",
"}",
"catch",
"(",
"remote",
"exception",
"ex",
")",
"{",
"throw",
"ex",
"rethrow",
"from",
"system",
"server",
"(",
")",
";",
"}"
] |
[
"gets",
"the",
"name",
"of",
"the",
"web",
"search",
"activity"
] |
[
"try",
"{",
"return",
"m",
"service",
"get",
"web",
"search",
"activity",
"(",
")",
";",
"}",
"catch",
"(",
"remote",
"exception",
"ex",
")",
"{",
"throw",
"ex",
"rethrow",
"from",
"system",
"server",
"(",
")",
";",
"}"
] |
[
"terminate",
"search",
"ui"
] |
[
"if",
"(",
"m",
"search",
"dialog",
"!",
"=",
"null",
")",
"{",
"m",
"search",
"dialog",
"cancel",
"(",
")",
";",
"}"
] |
[
"determine",
"if",
"the",
"search",
"ui",
"is",
"currently",
"displayed"
] |
[
"return",
"m",
"search",
"dialog",
"=",
"=",
"null",
"?",
"false",
":",
"m",
"search",
"dialog",
"is",
"showing",
"(",
")",
";"
] |
[
"set",
"or",
"clear",
"the",
"callback",
"that",
"will",
"be",
"invoked",
"whenever",
"the",
"search",
"ui",
"is",
"dismissed"
] |
[
"m",
"dismiss",
"listener",
"=",
"listener",
";"
] |
[
"set",
"or",
"clear",
"the",
"callback",
"that",
"will",
"be",
"invoked",
"whenever",
"the",
"search",
"ui",
"is",
"canceled"
] |
[
"m",
"cancel",
"listener",
"=",
"listener",
";"
] |
[
"gets",
"information",
"about",
"a",
"searchable",
"activity"
] |
[
"try",
"{",
"return",
"m",
"service",
"get",
"searchable",
"info",
"(",
"component",
"name",
")",
";",
"}",
"catch",
"(",
"remote",
"exception",
"ex",
")",
"{",
"throw",
"ex",
"rethrow",
"from",
"system",
"server",
"(",
")",
";",
"}"
] |
[
"gets",
"a",
"cursor",
"with",
"search",
"suggestions"
] |
[
"return",
"get",
"suggestions",
"(",
"searchable",
",",
"query",
",",
"-",
"1",
")",
";"
] |
[
"returns",
"a",
"list",
"of",
"the",
"searchable",
"activities",
"that",
"can",
"be",
"included",
"in",
"global",
"search"
] |
[
"try",
"{",
"return",
"m",
"service",
"get",
"searchables",
"in",
"global",
"search",
"(",
")",
";",
"}",
"catch",
"(",
"remote",
"exception",
"e",
")",
"{",
"throw",
"e",
"rethrow",
"from",
"system",
"server",
"(",
")",
";",
"}"
] |
[
"gets",
"an",
"intent",
"for",
"launching",
"installed",
"assistant",
"activity",
"or",
"null",
"if",
"not",
"available",
"@",
"return",
"the",
"assist",
"intent"
] |
[
"try",
"{",
"intent",
"intent",
"=",
"new",
"intent",
"(",
"intent",
"action",
"assist",
")",
";",
"if",
"(",
"incl",
"context",
")",
"{",
"i",
"activity",
"manager",
"am",
"=",
"activity",
"manager",
"get",
"service",
"(",
")",
";",
"bundle",
"extras",
"=",
"am",
"get",
"assist",
"context",
"extras",
"(",
"activity",
"manager",
"assist",
"context",
"basic",
")",
";",
"if",
"(",
"extras",
"!",
"=",
"null",
")",
"{",
"intent",
"replace",
"extras",
"(",
"extras",
")",
";",
"}",
"}",
"return",
"intent",
";",
"}",
"catch",
"(",
"remote",
"exception",
"re",
")",
"{",
"throw",
"re",
"rethrow",
"from",
"system",
"server",
"(",
")",
";",
"}"
] |
[
"starts",
"the",
"assistant"
] |
[
"try",
"{",
"if",
"(",
"m",
"service",
"=",
"=",
"null",
")",
"{",
"return",
";",
"}",
"m",
"service",
"launch",
"assist",
"(",
"args",
")",
";",
"}",
"catch",
"(",
"remote",
"exception",
"re",
")",
"{",
"throw",
"re",
"rethrow",
"from",
"system",
"server",
"(",
")",
";",
"}"
] |
[
"starts",
"the",
"legacy",
"assistant",
"(",
"i",
"e",
"the",
"{",
"@",
"link",
"intent",
"#",
"action",
"assist",
"}",
")"
] |
[
"try",
"{",
"if",
"(",
"m",
"service",
"=",
"=",
"null",
")",
"{",
"return",
"false",
";",
"}",
"return",
"m",
"service",
"launch",
"legacy",
"assist",
"(",
"hint",
",",
"user",
"handle",
",",
"args",
")",
";",
"}",
"catch",
"(",
"remote",
"exception",
"re",
")",
"{",
"throw",
"re",
"rethrow",
"from",
"system",
"server",
"(",
")",
";",
"}"
] |
[
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/"
] |
[
"out",
"write",
"long",
"(",
"capacity",
")",
";",
"out",
"write",
"long",
"(",
"used",
")",
";",
"out",
"write",
"long",
"(",
"remaining",
")",
";"
] |
[
"creates",
"a",
"response",
"handler",
"to",
"be",
"used",
"for",
"handling",
"a",
"successful",
"response"
] |
[
"final",
"json",
"response",
"handler",
"<",
"t",
">",
"response",
"handler",
"=",
"json",
"factory",
"create",
"response",
"handler",
"(",
"operation",
"metadata",
",",
"response",
"unmarshaller",
")",
";",
"return",
"new",
"api",
"gateway",
"response",
"handler",
"<",
">",
"(",
"response",
"handler",
")",
";"
] |
[
"creates",
"a",
"response",
"handler",
"for",
"handling",
"a",
"error",
"response",
"(",
"non",
"2xx",
"response",
")"
] |
[
"return",
"new",
"api",
"gateway",
"error",
"response",
"handler",
"(",
"create",
"error",
"unmarshallers",
"(",
"error",
"respons",
"metadata",
"get",
"error",
"shapes",
"(",
")",
"stream",
"(",
")",
")",
",",
"sdk",
"structured",
"plain",
"json",
"factory",
"json",
"factory",
")",
";"
] |
[
"creates",
"a",
"new",
"connection",
"handle",
"for",
"the",
"underlying",
"physical",
"connection",
"represented",
"by",
"the",
"managed",
"connection",
"instance"
] |
[
"connection",
"=",
"new",
"hello",
"world",
"connection",
"impl",
"(",
"mcf",
")",
";",
"return",
"connection",
";"
] |
[
"used",
"by",
"the",
"container",
"to",
"change",
"the",
"association",
"of",
"an",
"<",
"p",
"/",
">",
"application",
"-",
"level",
"connection",
"handle",
"with",
"a",
"managed",
"conneciton",
"instance"
] |
[
"this",
"connection",
"=",
"connection",
";"
] |
[
"destroys",
"the",
"physical",
"connection",
"to",
"the",
"underlying",
"resource",
"manager"
] |
[
"this",
"connection",
"=",
"null",
";"
] |
[
"sets",
"the",
"log",
"writer",
"for",
"this",
"managed",
"connection",
"instance"
] |
[
"this",
"log",
"writer",
"=",
"out",
";"
] |
[
"gets",
"the",
"metadata",
"information",
"for",
"this",
"connection",
"s",
"underlying",
"<",
"p",
"/",
">",
"eis",
"resource",
"manager",
"instance"
] |
[
"return",
"new",
"hello",
"world",
"managed",
"connection",
"meta",
"data",
"(",
")",
";"
] |
[
"select",
"between",
"the",
"different",
"selection",
"behaviors",
"there",
"are",
"now",
"2",
"different",
"variants",
"of",
"selection",
"you",
"can",
"toggle",
"this",
"via",
"with",
"select",
"with",
"item",
"update",
"(",
"boolean",
")",
"(",
"where",
"false",
"=",
"=",
"default",
"-",
"variant",
"1",
")",
"1",
")",
"direct",
"selection",
"via",
"the",
"view",
"selected",
"state",
"we",
"also",
"make",
"sure",
"we",
"do",
"not",
"animate",
"here",
"so",
"no",
"notify",
"item",
"changed",
"is",
"called",
"if",
"we",
"repeatly",
"press",
"the",
"same",
"item",
"2",
")",
"we",
"select",
"the",
"items",
"via",
"a",
"notify",
"item",
"changed",
"this",
"will",
"allow",
"custom",
"selected",
"logics",
"within",
"your",
"views",
"(",
"is",
"selected",
"(",
")",
"-",
"do",
"something",
")",
"and",
"it",
"will",
"also",
"animate",
"the",
"change",
"via",
"the",
"provided",
"item",
"animator",
"because",
"of",
"the",
"animation",
"of",
"the",
"item",
"animator",
"the",
"selection",
"will",
"have",
"a",
"small",
"delay",
"(",
"time",
"of",
"animating",
")"
] |
[
"this",
"m",
"select",
"with",
"item",
"update",
"=",
"select",
"with",
"item",
"update",
";",
"return",
"this",
";"
] |
[
"enable",
"this",
"if",
"you",
"want",
"multi",
"selection",
"possible",
"in",
"the",
"list"
] |
[
"m",
"multi",
"select",
"=",
"multi",
"select",
";",
"return",
"this",
";"
] |
[
"disable",
"this",
"if",
"you",
"want",
"the",
"selection",
"on",
"a",
"single",
"tap"
] |
[
"m",
"select",
"on",
"long",
"click",
"=",
"select",
"on",
"long",
"click",
";",
"return",
"this",
";"
] |
[
"if",
"false",
"a",
"user",
"can",
"t",
"deselect",
"an",
"item",
"via",
"click",
"(",
"you",
"can",
"still",
"do",
"this",
"programmatically",
")"
] |
[
"this",
"m",
"allow",
"deselection",
"=",
"allow",
"deselection",
";",
"return",
"this",
";"
] |
[
"set",
"if",
"no",
"item",
"is",
"selectable"
] |
[
"this",
"m",
"selectable",
"=",
"selectable",
";",
"return",
"this",
";"
] |
[
"set",
"a",
"listener",
"that",
"get",
"s",
"notified",
"whenever",
"an",
"item",
"is",
"selected",
"or",
"deselected"
] |
[
"this",
"m",
"selection",
"listener",
"=",
"selection",
"listener",
";",
"return",
"this",
";"
] |
[
"toggles",
"the",
"selection",
"of",
"the",
"item",
"at",
"the",
"given",
"position"
] |
[
"if",
"(",
"m",
"fast",
"adapter",
"get",
"item",
"(",
"position",
")",
"is",
"selected",
"(",
")",
")",
"{",
"deselect",
"(",
"position",
")",
";",
"}",
"else",
"{",
"select",
"(",
"position",
")",
";",
"}"
] |
[
"select",
"all",
"items"
] |
[
"select",
"(",
"false",
")",
";"
] |
[
"select",
"all",
"items"
] |
[
"m",
"fast",
"adapter",
"recursive",
"(",
"new",
"adapter",
"predicate",
"<",
"item",
">",
"(",
")",
"{",
"@",
"override",
"public",
"boolean",
"apply",
"(",
"@",
"non",
"null",
"i",
"adapter",
"<",
"item",
">",
"last",
"parent",
"adapter",
",",
"int",
"last",
"parent",
"position",
",",
"item",
"item",
",",
"int",
"position",
")",
"{",
"select",
"(",
"last",
"parent",
"adapter",
",",
"item",
",",
"-",
"1",
",",
"false",
",",
"consider",
"selectable",
"flag",
")",
";",
"return",
"false",
";",
"}",
"}",
",",
"false",
")",
";",
"m",
"fast",
"adapter",
"notify",
"data",
"set",
"changed",
"(",
")",
";"
] |
[
"select",
"s",
"a",
"provided",
"item",
"this",
"won",
"t",
"notify",
"the",
"adapter"
] |
[
"if",
"(",
"consider",
"selectable",
"flag",
"&",
"&",
"!",
"item",
"is",
"selectable",
"(",
")",
")",
"{",
"return",
";",
"}",
"item",
"with",
"set",
"selected",
"(",
"true",
")",
";",
"if",
"(",
"m",
"selection",
"listener",
"!",
"=",
"null",
")",
"{",
"m",
"selection",
"listener",
"on",
"selection",
"changed",
"(",
"item",
",",
"true",
")",
";",
"}"
] |
[
"selects",
"all",
"items",
"at",
"the",
"positions",
"in",
"the",
"iteratable"
] |
[
"for",
"(",
"integer",
"position",
":",
"positions",
")",
"{",
"select",
"(",
"position",
")",
";",
"}"
] |
[
"selects",
"an",
"item",
"and",
"remembers",
"its",
"position",
"in",
"the",
"selections",
"list"
] |
[
"select",
"(",
"position",
",",
"false",
")",
";"
] |
[
"selects",
"an",
"item",
"and",
"remembers",
"its",
"position",
"in",
"the",
"selections",
"list"
] |
[
"select",
"(",
"position",
",",
"fire",
"event",
",",
"false",
")",
";"
] |
[
"selects",
"an",
"item",
"and",
"remembers",
"its",
"position",
"in",
"the",
"selections",
"list"
] |
[
"fast",
"adapter",
"relative",
"info",
"<",
"item",
">",
"relative",
"info",
"=",
"m",
"fast",
"adapter",
"get",
"relative",
"info",
"(",
"position",
")",
";",
"if",
"(",
"relative",
"info",
"=",
"=",
"null",
"|",
"|",
"relative",
"info",
"item",
"=",
"=",
"null",
")",
"{",
"return",
";",
"}",
"select",
"(",
"relative",
"info",
"adapter",
",",
"relative",
"info",
"item",
",",
"position",
",",
"fire",
"event",
",",
"consider",
"selectable",
"flag",
")",
";"
] |
[
"selects",
"an",
"item",
"and",
"remembers",
"its",
"position",
"in",
"the",
"selections",
"list"
] |
[
"if",
"(",
"consider",
"selectable",
"flag",
"&",
"&",
"!",
"item",
"is",
"selectable",
"(",
")",
")",
"{",
"return",
";",
"}",
"item",
"with",
"set",
"selected",
"(",
"true",
")",
";",
"m",
"fast",
"adapter",
"notify",
"item",
"changed",
"(",
"position",
")",
";",
"if",
"(",
"m",
"selection",
"listener",
"!",
"=",
"null",
")",
"m",
"selection",
"listener",
"on",
"selection",
"changed",
"(",
"item",
",",
"true",
")",
";",
"if",
"(",
"m",
"fast",
"adapter",
"get",
"on",
"click",
"listener",
"(",
")",
"!",
"=",
"null",
"&",
"&",
"fire",
"event",
")",
"{",
"m",
"fast",
"adapter",
"get",
"on",
"click",
"listener",
"(",
")",
"on",
"click",
"(",
"null",
",",
"adapter",
",",
"item",
",",
"position",
")",
";",
"}"
] |
[
"selects",
"an",
"item",
"by",
"it",
"s",
"identifier"
] |
[
"m",
"fast",
"adapter",
"recursive",
"(",
"new",
"adapter",
"predicate",
"<",
"item",
">",
"(",
")",
"{",
"@",
"override",
"public",
"boolean",
"apply",
"(",
"@",
"non",
"null",
"i",
"adapter",
"<",
"item",
">",
"last",
"parent",
"adapter",
",",
"int",
"last",
"parent",
"position",
",",
"item",
"item",
",",
"int",
"position",
")",
"{",
"if",
"(",
"item",
"get",
"identifier",
"(",
")",
"=",
"=",
"identifier",
")",
"{",
"select",
"(",
"last",
"parent",
"adapter",
",",
"item",
",",
"position",
",",
"fire",
"event",
",",
"consider",
"selectable",
"flag",
")",
";",
"return",
"true",
";",
"}",
"return",
"false",
";",
"}",
"}",
",",
"true",
")",
";"
] |
[
"deselects",
"all",
"selections"
] |
[
"m",
"fast",
"adapter",
"recursive",
"(",
"new",
"adapter",
"predicate",
"<",
"item",
">",
"(",
")",
"{",
"@",
"override",
"public",
"boolean",
"apply",
"(",
"@",
"non",
"null",
"i",
"adapter",
"<",
"item",
">",
"last",
"parent",
"adapter",
",",
"int",
"last",
"parent",
"position",
",",
"item",
"item",
",",
"int",
"position",
")",
"{",
"deselect",
"(",
"item",
")",
";",
"return",
"false",
";",
"}",
"}",
",",
"false",
")",
";",
"m",
"fast",
"adapter",
"notify",
"data",
"set",
"changed",
"(",
")",
";"
] |
[
"deselect",
"s",
"a",
"provided",
"item",
"this",
"won",
"t",
"notify",
"the",
"adapter"
] |
[
"deselect",
"(",
"item",
",",
"-",
"1",
",",
"null",
")",
";"
] |
[
"deselects",
"all",
"items",
"at",
"the",
"positions",
"in",
"the",
"iteratable"
] |
[
"iterator",
"<",
"integer",
">",
"entries",
"=",
"positions",
"iterator",
"(",
")",
";",
"while",
"(",
"entries",
"has",
"next",
"(",
")",
")",
"{",
"deselect",
"(",
"entries",
"next",
"(",
")",
",",
"entries",
")",
";",
"}"
] |
[
"deselects",
"an",
"item",
"and",
"removes",
"its",
"position",
"in",
"the",
"selections",
"list"
] |
[
"deselect",
"(",
"position",
",",
"null",
")",
";"
] |
[
"deselects",
"an",
"item",
"and",
"removes",
"its",
"position",
"in",
"the",
"selections",
"list",
"also",
"takes",
"an",
"iterator",
"to",
"remove",
"items",
"from",
"the",
"map"
] |
[
"item",
"item",
"=",
"m",
"fast",
"adapter",
"get",
"item",
"(",
"position",
")",
";",
"if",
"(",
"item",
"=",
"=",
"null",
")",
"{",
"return",
";",
"}",
"deselect",
"(",
"item",
",",
"position",
",",
"entries",
")",
";"
] |
[
"deselects",
"an",
"item",
"and",
"removes",
"its",
"position",
"in",
"the",
"selections",
"list",
"also",
"takes",
"an",
"iterator",
"to",
"remove",
"items",
"from",
"the",
"map"
] |
[
"item",
"with",
"set",
"selected",
"(",
"false",
")",
";",
"if",
"(",
"entries",
"!",
"=",
"null",
")",
"{",
"entries",
"remove",
"(",
")",
";",
"}",
"if",
"(",
"position",
">",
"=",
"0",
")",
"{",
"m",
"fast",
"adapter",
"notify",
"item",
"changed",
"(",
"position",
")",
";",
"}",
"if",
"(",
"m",
"selection",
"listener",
"!",
"=",
"null",
")",
"{",
"m",
"selection",
"listener",
"on",
"selection",
"changed",
"(",
"item",
",",
"false",
")",
";",
"}"
] |
[
"selects",
"an",
"item",
"by",
"it",
"s",
"identifier"
] |
[
"m",
"fast",
"adapter",
"recursive",
"(",
"new",
"adapter",
"predicate",
"<",
"item",
">",
"(",
")",
"{",
"@",
"override",
"public",
"boolean",
"apply",
"(",
"@",
"non",
"null",
"i",
"adapter",
"<",
"item",
">",
"last",
"parent",
"adapter",
",",
"int",
"last",
"parent",
"position",
",",
"item",
"item",
",",
"int",
"position",
")",
"{",
"if",
"(",
"item",
"get",
"identifier",
"(",
")",
"=",
"=",
"identifier",
")",
"{",
"deselect",
"(",
"item",
",",
"position",
",",
"null",
")",
";",
"return",
"true",
";",
"}",
"return",
"false",
";",
"}",
"}",
",",
"true",
")",
";"
] |
[
"<",
"p",
">",
"the",
"face",
"in",
"the",
"source",
"image",
"that",
"was",
"used",
"for",
"comparison",
"<",
"/",
"p",
">"
] |
[
"this",
"source",
"image",
"face",
"=",
"source",
"image",
"face",
";"
] |
[
"<",
"p",
">",
"the",
"face",
"in",
"the",
"source",
"image",
"that",
"was",
"used",
"for",
"comparison",
"<",
"/",
"p",
">"
] |
[
"return",
"this",
"source",
"image",
"face",
";"
] |
[
"<",
"p",
">",
"the",
"face",
"in",
"the",
"source",
"image",
"that",
"was",
"used",
"for",
"comparison",
"<",
"/",
"p",
">"
] |
[
"set",
"source",
"image",
"face",
"(",
"source",
"image",
"face",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"an",
"array",
"of",
"faces",
"in",
"the",
"target",
"image",
"that",
"match",
"the",
"source",
"image",
"face",
"each",
"<",
"code",
">",
"compare",
"faces",
"match",
"<",
"/",
"code",
">",
"object",
"provides",
"the",
"bounding",
"box",
"the",
"confidence",
"level",
"that",
"the",
"bounding",
"box",
"contains",
"a",
"face",
"and",
"the",
"similarity",
"score",
"for",
"the",
"face",
"in",
"the",
"bounding",
"box",
"and",
"the",
"face",
"in",
"the",
"source",
"image",
"<",
"/",
"p",
">"
] |
[
"return",
"face",
"matches",
";"
] |
[
"<",
"p",
">",
"an",
"array",
"of",
"faces",
"in",
"the",
"target",
"image",
"that",
"match",
"the",
"source",
"image",
"face",
"each",
"<",
"code",
">",
"compare",
"faces",
"match",
"<",
"/",
"code",
">",
"object",
"provides",
"the",
"bounding",
"box",
"the",
"confidence",
"level",
"that",
"the",
"bounding",
"box",
"contains",
"a",
"face",
"and",
"the",
"similarity",
"score",
"for",
"the",
"face",
"in",
"the",
"bounding",
"box",
"and",
"the",
"face",
"in",
"the",
"source",
"image",
"<",
"/",
"p",
">"
] |
[
"if",
"(",
"face",
"matches",
"=",
"=",
"null",
")",
"{",
"this",
"face",
"matches",
"=",
"null",
";",
"return",
";",
"}",
"this",
"face",
"matches",
"=",
"new",
"java",
"util",
"array",
"list",
"<",
"compare",
"faces",
"match",
">",
"(",
"face",
"matches",
")",
";"
] |
[
"<",
"p",
">",
"an",
"array",
"of",
"faces",
"in",
"the",
"target",
"image",
"that",
"match",
"the",
"source",
"image",
"face",
"each",
"<",
"code",
">",
"compare",
"faces",
"match",
"<",
"/",
"code",
">",
"object",
"provides",
"the",
"bounding",
"box",
"the",
"confidence",
"level",
"that",
"the",
"bounding",
"box",
"contains",
"a",
"face",
"and",
"the",
"similarity",
"score",
"for",
"the",
"face",
"in",
"the",
"bounding",
"box",
"and",
"the",
"face",
"in",
"the",
"source",
"image",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"face",
"matches",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"face",
"matches",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
] |
[
"if",
"(",
"this",
"face",
"matches",
"=",
"=",
"null",
")",
"{",
"set",
"face",
"matches",
"(",
"new",
"java",
"util",
"array",
"list",
"<",
"compare",
"faces",
"match",
">",
"(",
"face",
"matches",
"length",
")",
")",
";",
"}",
"for",
"(",
"compare",
"faces",
"match",
"ele",
":",
"face",
"matches",
")",
"{",
"this",
"face",
"matches",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"an",
"array",
"of",
"faces",
"in",
"the",
"target",
"image",
"that",
"match",
"the",
"source",
"image",
"face",
"each",
"<",
"code",
">",
"compare",
"faces",
"match",
"<",
"/",
"code",
">",
"object",
"provides",
"the",
"bounding",
"box",
"the",
"confidence",
"level",
"that",
"the",
"bounding",
"box",
"contains",
"a",
"face",
"and",
"the",
"similarity",
"score",
"for",
"the",
"face",
"in",
"the",
"bounding",
"box",
"and",
"the",
"face",
"in",
"the",
"source",
"image",
"<",
"/",
"p",
">"
] |
[
"set",
"face",
"matches",
"(",
"face",
"matches",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"an",
"array",
"of",
"faces",
"in",
"the",
"target",
"image",
"that",
"did",
"not",
"match",
"the",
"source",
"image",
"face",
"<",
"/",
"p",
">"
] |
[
"return",
"unmatched",
"faces",
";"
] |
[
"<",
"p",
">",
"an",
"array",
"of",
"faces",
"in",
"the",
"target",
"image",
"that",
"did",
"not",
"match",
"the",
"source",
"image",
"face",
"<",
"/",
"p",
">"
] |
[
"if",
"(",
"unmatched",
"faces",
"=",
"=",
"null",
")",
"{",
"this",
"unmatched",
"faces",
"=",
"null",
";",
"return",
";",
"}",
"this",
"unmatched",
"faces",
"=",
"new",
"java",
"util",
"array",
"list",
"<",
"compared",
"face",
">",
"(",
"unmatched",
"faces",
")",
";"
] |
[
"<",
"p",
">",
"an",
"array",
"of",
"faces",
"in",
"the",
"target",
"image",
"that",
"did",
"not",
"match",
"the",
"source",
"image",
"face",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"unmatched",
"faces",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"unmatched",
"faces",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
] |
[
"if",
"(",
"this",
"unmatched",
"faces",
"=",
"=",
"null",
")",
"{",
"set",
"unmatched",
"faces",
"(",
"new",
"java",
"util",
"array",
"list",
"<",
"compared",
"face",
">",
"(",
"unmatched",
"faces",
"length",
")",
")",
";",
"}",
"for",
"(",
"compared",
"face",
"ele",
":",
"unmatched",
"faces",
")",
"{",
"this",
"unmatched",
"faces",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"an",
"array",
"of",
"faces",
"in",
"the",
"target",
"image",
"that",
"did",
"not",
"match",
"the",
"source",
"image",
"face",
"<",
"/",
"p",
">"
] |
[
"set",
"unmatched",
"faces",
"(",
"unmatched",
"faces",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"orientation",
"of",
"the",
"source",
"image",
"(",
"counterclockwise",
"direction",
")",
"if",
"your",
"application",
"displays",
"the",
"source",
"image",
"you",
"can",
"use",
"this",
"value",
"to",
"correct",
"image",
"orientation",
"the",
"bounding",
"box",
"coordinates",
"returned",
"in",
"<",
"code",
">",
"source",
"image",
"face",
"<",
"/",
"code",
">",
"represent",
"the",
"location",
"of",
"the",
"face",
"before",
"the",
"image",
"orientation",
"is",
"corrected",
"<",
"/",
"p",
">",
"<",
"note",
">",
"<",
"p",
">",
"if",
"the",
"source",
"image",
"is",
"in",
"jpeg",
"format",
"it",
"might",
"contain",
"exchangeable",
"image",
"(",
"exif",
")",
"metadata",
"that",
"includes",
"the",
"image",
"s",
"orientation",
"if",
"the",
"exif",
"metadata",
"for",
"the",
"source",
"image",
"populates",
"the",
"orientation",
"field",
"the",
"value",
"of",
"<",
"code",
">",
"orientation",
"correction",
"<",
"/",
"code",
">",
"is",
"null",
"the",
"<",
"code",
">",
"source",
"image",
"face",
"<",
"/",
"code",
">",
"bounding",
"box",
"coordinates",
"represent",
"the",
"location",
"of",
"the",
"face",
"after",
"exif",
"metadata",
"is",
"used",
"to",
"correct",
"the",
"orientation",
"images",
"in",
"png",
"format",
"don",
"t",
"contain",
"exif",
"metadata",
"<",
"/",
"p",
">",
"<",
"/",
"note",
">"
] |
[
"this",
"source",
"image",
"orientation",
"correction",
"=",
"source",
"image",
"orientation",
"correction",
";"
] |
[
"<",
"p",
">",
"the",
"orientation",
"of",
"the",
"source",
"image",
"(",
"counterclockwise",
"direction",
")",
"if",
"your",
"application",
"displays",
"the",
"source",
"image",
"you",
"can",
"use",
"this",
"value",
"to",
"correct",
"image",
"orientation",
"the",
"bounding",
"box",
"coordinates",
"returned",
"in",
"<",
"code",
">",
"source",
"image",
"face",
"<",
"/",
"code",
">",
"represent",
"the",
"location",
"of",
"the",
"face",
"before",
"the",
"image",
"orientation",
"is",
"corrected",
"<",
"/",
"p",
">",
"<",
"note",
">",
"<",
"p",
">",
"if",
"the",
"source",
"image",
"is",
"in",
"jpeg",
"format",
"it",
"might",
"contain",
"exchangeable",
"image",
"(",
"exif",
")",
"metadata",
"that",
"includes",
"the",
"image",
"s",
"orientation",
"if",
"the",
"exif",
"metadata",
"for",
"the",
"source",
"image",
"populates",
"the",
"orientation",
"field",
"the",
"value",
"of",
"<",
"code",
">",
"orientation",
"correction",
"<",
"/",
"code",
">",
"is",
"null",
"the",
"<",
"code",
">",
"source",
"image",
"face",
"<",
"/",
"code",
">",
"bounding",
"box",
"coordinates",
"represent",
"the",
"location",
"of",
"the",
"face",
"after",
"exif",
"metadata",
"is",
"used",
"to",
"correct",
"the",
"orientation",
"images",
"in",
"png",
"format",
"don",
"t",
"contain",
"exif",
"metadata",
"<",
"/",
"p",
">",
"<",
"/",
"note",
">"
] |
[
"return",
"this",
"source",
"image",
"orientation",
"correction",
";"
] |
[
"<",
"p",
">",
"the",
"orientation",
"of",
"the",
"source",
"image",
"(",
"counterclockwise",
"direction",
")",
"if",
"your",
"application",
"displays",
"the",
"source",
"image",
"you",
"can",
"use",
"this",
"value",
"to",
"correct",
"image",
"orientation",
"the",
"bounding",
"box",
"coordinates",
"returned",
"in",
"<",
"code",
">",
"source",
"image",
"face",
"<",
"/",
"code",
">",
"represent",
"the",
"location",
"of",
"the",
"face",
"before",
"the",
"image",
"orientation",
"is",
"corrected",
"<",
"/",
"p",
">",
"<",
"note",
">",
"<",
"p",
">",
"if",
"the",
"source",
"image",
"is",
"in",
"jpeg",
"format",
"it",
"might",
"contain",
"exchangeable",
"image",
"(",
"exif",
")",
"metadata",
"that",
"includes",
"the",
"image",
"s",
"orientation",
"if",
"the",
"exif",
"metadata",
"for",
"the",
"source",
"image",
"populates",
"the",
"orientation",
"field",
"the",
"value",
"of",
"<",
"code",
">",
"orientation",
"correction",
"<",
"/",
"code",
">",
"is",
"null",
"the",
"<",
"code",
">",
"source",
"image",
"face",
"<",
"/",
"code",
">",
"bounding",
"box",
"coordinates",
"represent",
"the",
"location",
"of",
"the",
"face",
"after",
"exif",
"metadata",
"is",
"used",
"to",
"correct",
"the",
"orientation",
"images",
"in",
"png",
"format",
"don",
"t",
"contain",
"exif",
"metadata",
"<",
"/",
"p",
">",
"<",
"/",
"note",
">"
] |
[
"set",
"source",
"image",
"orientation",
"correction",
"(",
"source",
"image",
"orientation",
"correction",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"orientation",
"of",
"the",
"source",
"image",
"(",
"counterclockwise",
"direction",
")",
"if",
"your",
"application",
"displays",
"the",
"source",
"image",
"you",
"can",
"use",
"this",
"value",
"to",
"correct",
"image",
"orientation",
"the",
"bounding",
"box",
"coordinates",
"returned",
"in",
"<",
"code",
">",
"source",
"image",
"face",
"<",
"/",
"code",
">",
"represent",
"the",
"location",
"of",
"the",
"face",
"before",
"the",
"image",
"orientation",
"is",
"corrected",
"<",
"/",
"p",
">",
"<",
"note",
">",
"<",
"p",
">",
"if",
"the",
"source",
"image",
"is",
"in",
"jpeg",
"format",
"it",
"might",
"contain",
"exchangeable",
"image",
"(",
"exif",
")",
"metadata",
"that",
"includes",
"the",
"image",
"s",
"orientation",
"if",
"the",
"exif",
"metadata",
"for",
"the",
"source",
"image",
"populates",
"the",
"orientation",
"field",
"the",
"value",
"of",
"<",
"code",
">",
"orientation",
"correction",
"<",
"/",
"code",
">",
"is",
"null",
"the",
"<",
"code",
">",
"source",
"image",
"face",
"<",
"/",
"code",
">",
"bounding",
"box",
"coordinates",
"represent",
"the",
"location",
"of",
"the",
"face",
"after",
"exif",
"metadata",
"is",
"used",
"to",
"correct",
"the",
"orientation",
"images",
"in",
"png",
"format",
"don",
"t",
"contain",
"exif",
"metadata",
"<",
"/",
"p",
">",
"<",
"/",
"note",
">"
] |
[
"with",
"source",
"image",
"orientation",
"correction",
"(",
"source",
"image",
"orientation",
"correction",
")",
";"
] |
[
"<",
"p",
">",
"the",
"orientation",
"of",
"the",
"source",
"image",
"(",
"counterclockwise",
"direction",
")",
"if",
"your",
"application",
"displays",
"the",
"source",
"image",
"you",
"can",
"use",
"this",
"value",
"to",
"correct",
"image",
"orientation",
"the",
"bounding",
"box",
"coordinates",
"returned",
"in",
"<",
"code",
">",
"source",
"image",
"face",
"<",
"/",
"code",
">",
"represent",
"the",
"location",
"of",
"the",
"face",
"before",
"the",
"image",
"orientation",
"is",
"corrected",
"<",
"/",
"p",
">",
"<",
"note",
">",
"<",
"p",
">",
"if",
"the",
"source",
"image",
"is",
"in",
"jpeg",
"format",
"it",
"might",
"contain",
"exchangeable",
"image",
"(",
"exif",
")",
"metadata",
"that",
"includes",
"the",
"image",
"s",
"orientation",
"if",
"the",
"exif",
"metadata",
"for",
"the",
"source",
"image",
"populates",
"the",
"orientation",
"field",
"the",
"value",
"of",
"<",
"code",
">",
"orientation",
"correction",
"<",
"/",
"code",
">",
"is",
"null",
"the",
"<",
"code",
">",
"source",
"image",
"face",
"<",
"/",
"code",
">",
"bounding",
"box",
"coordinates",
"represent",
"the",
"location",
"of",
"the",
"face",
"after",
"exif",
"metadata",
"is",
"used",
"to",
"correct",
"the",
"orientation",
"images",
"in",
"png",
"format",
"don",
"t",
"contain",
"exif",
"metadata",
"<",
"/",
"p",
">",
"<",
"/",
"note",
">"
] |
[
"this",
"source",
"image",
"orientation",
"correction",
"=",
"source",
"image",
"orientation",
"correction",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"orientation",
"of",
"the",
"target",
"image",
"(",
"in",
"counterclockwise",
"direction",
")",
"if",
"your",
"application",
"displays",
"the",
"target",
"image",
"you",
"can",
"use",
"this",
"value",
"to",
"correct",
"the",
"orientation",
"of",
"the",
"image",
"the",
"bounding",
"box",
"coordinates",
"returned",
"in",
"<",
"code",
">",
"face",
"matches",
"<",
"/",
"code",
">",
"and",
"<",
"code",
">",
"unmatched",
"faces",
"<",
"/",
"code",
">",
"represent",
"face",
"locations",
"before",
"the",
"image",
"orientation",
"is",
"corrected",
"<",
"/",
"p",
">",
"<",
"note",
">",
"<",
"p",
">",
"if",
"the",
"target",
"image",
"is",
"in",
"jpg",
"format",
"it",
"might",
"contain",
"exif",
"metadata",
"that",
"includes",
"the",
"orientation",
"of",
"the",
"image",
"if",
"the",
"exif",
"metadata",
"for",
"the",
"target",
"image",
"populates",
"the",
"orientation",
"field",
"the",
"value",
"of",
"<",
"code",
">",
"orientation",
"correction",
"<",
"/",
"code",
">",
"is",
"null",
"the",
"bounding",
"box",
"coordinates",
"in",
"<",
"code",
">",
"face",
"matches",
"<",
"/",
"code",
">",
"and",
"<",
"code",
">",
"unmatched",
"faces",
"<",
"/",
"code",
">",
"represent",
"the",
"location",
"of",
"the",
"face",
"after",
"exif",
"metadata",
"is",
"used",
"to",
"correct",
"the",
"orientation",
"images",
"in",
"png",
"format",
"don",
"t",
"contain",
"exif",
"metadata",
"<",
"/",
"p",
">",
"<",
"/",
"note",
">"
] |
[
"this",
"target",
"image",
"orientation",
"correction",
"=",
"target",
"image",
"orientation",
"correction",
";"
] |
[
"<",
"p",
">",
"the",
"orientation",
"of",
"the",
"target",
"image",
"(",
"in",
"counterclockwise",
"direction",
")",
"if",
"your",
"application",
"displays",
"the",
"target",
"image",
"you",
"can",
"use",
"this",
"value",
"to",
"correct",
"the",
"orientation",
"of",
"the",
"image",
"the",
"bounding",
"box",
"coordinates",
"returned",
"in",
"<",
"code",
">",
"face",
"matches",
"<",
"/",
"code",
">",
"and",
"<",
"code",
">",
"unmatched",
"faces",
"<",
"/",
"code",
">",
"represent",
"face",
"locations",
"before",
"the",
"image",
"orientation",
"is",
"corrected",
"<",
"/",
"p",
">",
"<",
"note",
">",
"<",
"p",
">",
"if",
"the",
"target",
"image",
"is",
"in",
"jpg",
"format",
"it",
"might",
"contain",
"exif",
"metadata",
"that",
"includes",
"the",
"orientation",
"of",
"the",
"image",
"if",
"the",
"exif",
"metadata",
"for",
"the",
"target",
"image",
"populates",
"the",
"orientation",
"field",
"the",
"value",
"of",
"<",
"code",
">",
"orientation",
"correction",
"<",
"/",
"code",
">",
"is",
"null",
"the",
"bounding",
"box",
"coordinates",
"in",
"<",
"code",
">",
"face",
"matches",
"<",
"/",
"code",
">",
"and",
"<",
"code",
">",
"unmatched",
"faces",
"<",
"/",
"code",
">",
"represent",
"the",
"location",
"of",
"the",
"face",
"after",
"exif",
"metadata",
"is",
"used",
"to",
"correct",
"the",
"orientation",
"images",
"in",
"png",
"format",
"don",
"t",
"contain",
"exif",
"metadata",
"<",
"/",
"p",
">",
"<",
"/",
"note",
">"
] |
[
"return",
"this",
"target",
"image",
"orientation",
"correction",
";"
] |
[
"<",
"p",
">",
"the",
"orientation",
"of",
"the",
"target",
"image",
"(",
"in",
"counterclockwise",
"direction",
")",
"if",
"your",
"application",
"displays",
"the",
"target",
"image",
"you",
"can",
"use",
"this",
"value",
"to",
"correct",
"the",
"orientation",
"of",
"the",
"image",
"the",
"bounding",
"box",
"coordinates",
"returned",
"in",
"<",
"code",
">",
"face",
"matches",
"<",
"/",
"code",
">",
"and",
"<",
"code",
">",
"unmatched",
"faces",
"<",
"/",
"code",
">",
"represent",
"face",
"locations",
"before",
"the",
"image",
"orientation",
"is",
"corrected",
"<",
"/",
"p",
">",
"<",
"note",
">",
"<",
"p",
">",
"if",
"the",
"target",
"image",
"is",
"in",
"jpg",
"format",
"it",
"might",
"contain",
"exif",
"metadata",
"that",
"includes",
"the",
"orientation",
"of",
"the",
"image",
"if",
"the",
"exif",
"metadata",
"for",
"the",
"target",
"image",
"populates",
"the",
"orientation",
"field",
"the",
"value",
"of",
"<",
"code",
">",
"orientation",
"correction",
"<",
"/",
"code",
">",
"is",
"null",
"the",
"bounding",
"box",
"coordinates",
"in",
"<",
"code",
">",
"face",
"matches",
"<",
"/",
"code",
">",
"and",
"<",
"code",
">",
"unmatched",
"faces",
"<",
"/",
"code",
">",
"represent",
"the",
"location",
"of",
"the",
"face",
"after",
"exif",
"metadata",
"is",
"used",
"to",
"correct",
"the",
"orientation",
"images",
"in",
"png",
"format",
"don",
"t",
"contain",
"exif",
"metadata",
"<",
"/",
"p",
">",
"<",
"/",
"note",
">"
] |
[
"set",
"target",
"image",
"orientation",
"correction",
"(",
"target",
"image",
"orientation",
"correction",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"orientation",
"of",
"the",
"target",
"image",
"(",
"in",
"counterclockwise",
"direction",
")",
"if",
"your",
"application",
"displays",
"the",
"target",
"image",
"you",
"can",
"use",
"this",
"value",
"to",
"correct",
"the",
"orientation",
"of",
"the",
"image",
"the",
"bounding",
"box",
"coordinates",
"returned",
"in",
"<",
"code",
">",
"face",
"matches",
"<",
"/",
"code",
">",
"and",
"<",
"code",
">",
"unmatched",
"faces",
"<",
"/",
"code",
">",
"represent",
"face",
"locations",
"before",
"the",
"image",
"orientation",
"is",
"corrected",
"<",
"/",
"p",
">",
"<",
"note",
">",
"<",
"p",
">",
"if",
"the",
"target",
"image",
"is",
"in",
"jpg",
"format",
"it",
"might",
"contain",
"exif",
"metadata",
"that",
"includes",
"the",
"orientation",
"of",
"the",
"image",
"if",
"the",
"exif",
"metadata",
"for",
"the",
"target",
"image",
"populates",
"the",
"orientation",
"field",
"the",
"value",
"of",
"<",
"code",
">",
"orientation",
"correction",
"<",
"/",
"code",
">",
"is",
"null",
"the",
"bounding",
"box",
"coordinates",
"in",
"<",
"code",
">",
"face",
"matches",
"<",
"/",
"code",
">",
"and",
"<",
"code",
">",
"unmatched",
"faces",
"<",
"/",
"code",
">",
"represent",
"the",
"location",
"of",
"the",
"face",
"after",
"exif",
"metadata",
"is",
"used",
"to",
"correct",
"the",
"orientation",
"images",
"in",
"png",
"format",
"don",
"t",
"contain",
"exif",
"metadata",
"<",
"/",
"p",
">",
"<",
"/",
"note",
">"
] |
[
"with",
"target",
"image",
"orientation",
"correction",
"(",
"target",
"image",
"orientation",
"correction",
")",
";"
] |
[
"<",
"p",
">",
"the",
"orientation",
"of",
"the",
"target",
"image",
"(",
"in",
"counterclockwise",
"direction",
")",
"if",
"your",
"application",
"displays",
"the",
"target",
"image",
"you",
"can",
"use",
"this",
"value",
"to",
"correct",
"the",
"orientation",
"of",
"the",
"image",
"the",
"bounding",
"box",
"coordinates",
"returned",
"in",
"<",
"code",
">",
"face",
"matches",
"<",
"/",
"code",
">",
"and",
"<",
"code",
">",
"unmatched",
"faces",
"<",
"/",
"code",
">",
"represent",
"face",
"locations",
"before",
"the",
"image",
"orientation",
"is",
"corrected",
"<",
"/",
"p",
">",
"<",
"note",
">",
"<",
"p",
">",
"if",
"the",
"target",
"image",
"is",
"in",
"jpg",
"format",
"it",
"might",
"contain",
"exif",
"metadata",
"that",
"includes",
"the",
"orientation",
"of",
"the",
"image",
"if",
"the",
"exif",
"metadata",
"for",
"the",
"target",
"image",
"populates",
"the",
"orientation",
"field",
"the",
"value",
"of",
"<",
"code",
">",
"orientation",
"correction",
"<",
"/",
"code",
">",
"is",
"null",
"the",
"bounding",
"box",
"coordinates",
"in",
"<",
"code",
">",
"face",
"matches",
"<",
"/",
"code",
">",
"and",
"<",
"code",
">",
"unmatched",
"faces",
"<",
"/",
"code",
">",
"represent",
"the",
"location",
"of",
"the",
"face",
"after",
"exif",
"metadata",
"is",
"used",
"to",
"correct",
"the",
"orientation",
"images",
"in",
"png",
"format",
"don",
"t",
"contain",
"exif",
"metadata",
"<",
"/",
"p",
">",
"<",
"/",
"note",
">"
] |
[
"this",
"target",
"image",
"orientation",
"correction",
"=",
"target",
"image",
"orientation",
"correction",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
] |
[
"set",
"either",
"the",
"hour",
"the",
"minute",
"or",
"the",
"second",
"will",
"set",
"the",
"internal",
"value",
"and",
"set",
"the",
"selection"
] |
[
"time",
"=",
"round",
"to",
"valid",
"time",
"(",
"time",
",",
"index",
")",
";",
"m",
"current",
"time",
"=",
"time",
";",
"reselect",
"selector",
"(",
"time",
",",
"false",
",",
"index",
")",
";"
] |
[
"if",
"the",
"hours",
"are",
"showing",
"return",
"the",
"current",
"hour",
"if",
"the",
"minutes",
"are",
"showing",
"return",
"the",
"current",
"minute"
] |
[
"int",
"current",
"index",
"=",
"get",
"current",
"item",
"showing",
"(",
")",
";",
"switch",
"(",
"current",
"index",
")",
"{",
"case",
"hour",
"index",
":",
"return",
"m",
"current",
"time",
"get",
"hour",
"(",
")",
";",
"case",
"minute",
"index",
":",
"return",
"m",
"current",
"time",
"get",
"minute",
"(",
")",
";",
"case",
"second",
"index",
":",
"return",
"m",
"current",
"time",
"get",
"second",
"(",
")",
";",
"default",
":",
"return",
"-",
"1",
";",
"}"
] |
[
"set",
"the",
"internal",
"value",
"as",
"either",
"am",
"or",
"pm",
"and",
"update",
"the",
"am",
"/",
"pm",
"circle",
"displays"
] |
[
"m",
"am",
"pm",
"circles",
"view",
"set",
"am",
"or",
"pm",
"(",
"am",
"or",
"pm",
")",
";",
"m",
"am",
"pm",
"circles",
"view",
"invalidate",
"(",
")",
";",
"timepoint",
"new",
"selection",
"=",
"new",
"timepoint",
"(",
"m",
"current",
"time",
")",
";",
"if",
"(",
"am",
"or",
"pm",
"=",
"=",
"am",
")",
"new",
"selection",
"set",
"a",
"m",
"(",
")",
";",
"else",
"if",
"(",
"am",
"or",
"pm",
"=",
"=",
"pm",
")",
"new",
"selection",
"set",
"p",
"m",
"(",
")",
";",
"new",
"selection",
"=",
"round",
"to",
"valid",
"time",
"(",
"new",
"selection",
",",
"hour",
"index",
")",
";",
"reselect",
"selector",
"(",
"new",
"selection",
",",
"false",
",",
"hour",
"index",
")",
";",
"m",
"current",
"time",
"=",
"new",
"selection",
";",
"m",
"listener",
"on",
"value",
"selected",
"(",
"new",
"selection",
")",
";"
] |
[
"snap",
"the",
"input",
"to",
"a",
"selectable",
"value"
] |
[
"switch",
"(",
"current",
"item",
"showing",
")",
"{",
"case",
"hour",
"index",
":",
"return",
"m",
"controller",
"round",
"to",
"nearest",
"(",
"new",
"selection",
",",
"null",
")",
";",
"case",
"minute",
"index",
":",
"return",
"m",
"controller",
"round",
"to",
"nearest",
"(",
"new",
"selection",
",",
"timepoint",
"type",
"hour",
")",
";",
"default",
":",
"return",
"m",
"controller",
"round",
"to",
"nearest",
"(",
"new",
"selection",
",",
"timepoint",
"type",
"minute",
")",
";",
"}"
] |
[
"calculate",
"the",
"degrees",
"within",
"the",
"circle",
"that",
"corresponds",
"to",
"the",
"specified",
"coordinates",
"if",
"the",
"coordinates",
"are",
"within",
"the",
"range",
"that",
"will",
"trigger",
"a",
"selection"
] |
[
"switch",
"(",
"get",
"current",
"item",
"showing",
"(",
")",
")",
"{",
"case",
"hour",
"index",
":",
"return",
"m",
"hour",
"radial",
"selector",
"view",
"get",
"degrees",
"from",
"coords",
"(",
"point",
"x",
",",
"point",
"y",
",",
"force",
"legal",
",",
"is",
"inner",
"circle",
")",
";",
"case",
"minute",
"index",
":",
"return",
"m",
"minute",
"radial",
"selector",
"view",
"get",
"degrees",
"from",
"coords",
"(",
"point",
"x",
",",
"point",
"y",
",",
"force",
"legal",
",",
"is",
"inner",
"circle",
")",
";",
"case",
"second",
"index",
":",
"return",
"m",
"second",
"radial",
"selector",
"view",
"get",
"degrees",
"from",
"coords",
"(",
"point",
"x",
",",
"point",
"y",
",",
"force",
"legal",
",",
"is",
"inner",
"circle",
")",
";",
"default",
":",
"return",
"-",
"1",
";",
"}"
] |
[
"necessary",
"for",
"accessibility",
"to",
"ensure",
"we",
"support",
"scrolling",
"forward",
"and",
"backward",
"in",
"the",
"circle"
] |
[
"super",
"on",
"initialize",
"accessibility",
"node",
"info",
"(",
"info",
")",
";",
"if",
"(",
"build",
"version",
"sdk",
"int",
">",
"=",
"21",
")",
"{",
"info",
"add",
"action",
"(",
"accessibility",
"node",
"info",
"accessibility",
"action",
"action",
"scroll",
"backward",
")",
";",
"info",
"add",
"action",
"(",
"accessibility",
"node",
"info",
"accessibility",
"action",
"action",
"scroll",
"forward",
")",
";",
"}",
"else",
"{",
"info",
"add",
"action",
"(",
"accessibility",
"node",
"info",
"action",
"scroll",
"forward",
")",
";",
"info",
"add",
"action",
"(",
"accessibility",
"node",
"info",
"action",
"scroll",
"backward",
")",
";",
"}"
] |
[
"set",
"up",
"the",
"writer",
"to",
"write",
"at",
"address"
] |
[
"slice",
"=",
"pool",
"buffers",
"[",
"address",
">",
">",
"byte",
"block",
"pool",
"byte",
"block",
"shift",
"]",
";",
"assert",
"slice",
"!",
"=",
"null",
";",
"upto",
"=",
"address",
"&",
"byte",
"block",
"pool",
"byte",
"block",
"mask",
";",
"offset",
"0",
"=",
"address",
";",
"assert",
"upto",
"<",
"slice",
"length",
";"
] |
[
"write",
"byte",
"into",
"byte",
"slice",
"stream"
] |
[
"assert",
"slice",
"!",
"=",
"null",
";",
"if",
"(",
"slice",
"[",
"upto",
"]",
"!",
"=",
"0",
")",
"{",
"upto",
"=",
"pool",
"alloc",
"slice",
"(",
"slice",
",",
"upto",
")",
";",
"slice",
"=",
"pool",
"buffer",
";",
"offset",
"0",
"=",
"pool",
"byte",
"offset",
";",
"assert",
"slice",
"!",
"=",
"null",
";",
"}",
"slice",
"[",
"upto",
"+",
"+",
"]",
"=",
"b",
";",
"assert",
"upto",
"!",
"=",
"slice",
"length",
";"
] |
[
"<",
"p",
">",
"the",
"identifier",
"for",
"the",
"organization",
"under",
"which",
"the",
"resource",
"exists",
"<",
"/",
"p",
">"
] |
[
"set",
"organization",
"id",
"(",
"organization",
"id",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"identifier",
"of",
"the",
"resource",
"from",
"which",
"delegates",
"set",
"members",
"are",
"removed",
"<",
"/",
"p",
">"
] |
[
"set",
"resource",
"id",
"(",
"resource",
"id",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"identifier",
"for",
"the",
"member",
"(",
"user",
"group",
")",
"to",
"be",
"removed",
"from",
"the",
"resource",
"s",
"delegates",
"<",
"/",
"p",
">"
] |
[
"set",
"entity",
"id",
"(",
"entity",
"id",
")",
";",
"return",
"this",
";"
] |
[
"creates",
"a",
"string",
"representation",
"of",
"the",
"supplied",
"byte",
"array",
"in",
"hexidecimal",
"format"
] |
[
"string",
"as",
"hex",
"string",
"=",
"null",
";",
"if",
"(",
"in",
"!",
"=",
"null",
")",
"{",
"string",
"builder",
"out",
"=",
"new",
"string",
"builder",
"(",
"in",
"length",
"*",
"2",
")",
";",
"for",
"(",
"int",
"x",
"=",
"start",
";",
"x",
"<",
"length",
";",
"x",
"+",
"+",
")",
"{",
"int",
"nybble",
"=",
"in",
"[",
"x",
"]",
"&",
"0x",
"f",
"0",
";",
"nybble",
"=",
"nybble",
">",
">",
">",
"4",
";",
"out",
"append",
"(",
"hex",
"chars",
"[",
"nybble",
"]",
")",
";",
"out",
"append",
"(",
"hex",
"chars",
"[",
"in",
"[",
"x",
"]",
"&",
"0x",
"0",
"f",
"]",
")",
";",
"}",
"as",
"hex",
"string",
"=",
"out",
"to",
"string",
"(",
")",
";",
"}",
"return",
"as",
"hex",
"string",
";"
] |
[
"creates",
"a",
"string",
"representation",
"of",
"the",
"supplied",
"byte",
"array",
"in",
"hexidecimal",
"format"
] |
[
"return",
"byte",
"array",
"to",
"hex",
"string",
"(",
"in",
",",
"0",
",",
"in",
"length",
")",
";"
] |
[
"returns",
"a",
"map",
"key",
"serializer",
"for",
"string",
"keys"
] |
[
"return",
"string",
"key",
"serializer",
"instance",
";"
] |
[
"returns",
"a",
"map",
"key",
"serializer",
"for",
"integer",
"keys",
"encodes",
"as",
"int"
] |
[
"return",
"int",
"key",
"serializer",
"instance",
";"
] |
[
"returns",
"a",
"map",
"key",
"serializer",
"for",
"integer",
"keys",
"encodes",
"as",
"v",
"int"
] |
[
"return",
"v",
"int",
"key",
"serializer",
"instance",
";"
] |
[
"calculates",
"diff",
"between",
"two",
"immutable",
"open",
"maps",
"of",
"diffable",
"objects"
] |
[
"assert",
"after",
"!",
"=",
"null",
"&",
"&",
"before",
"!",
"=",
"null",
";",
"return",
"new",
"immutable",
"open",
"map",
"diff",
"<",
">",
"(",
"before",
",",
"after",
",",
"key",
"serializer",
",",
"diffable",
"value",
"serializer",
"get",
"write",
"only",
"instance",
"(",
")",
")",
";"
] |
[
"calculates",
"diff",
"between",
"two",
"immutable",
"open",
"maps",
"of",
"non",
"-",
"diffable",
"objects"
] |
[
"assert",
"after",
"!",
"=",
"null",
"&",
"&",
"before",
"!",
"=",
"null",
";",
"return",
"new",
"immutable",
"open",
"map",
"diff",
"<",
">",
"(",
"before",
",",
"after",
",",
"key",
"serializer",
",",
"value",
"serializer",
")",
";"
] |
[
"calculates",
"diff",
"between",
"two",
"immutable",
"open",
"int",
"maps",
"of",
"diffable",
"objects"
] |
[
"assert",
"after",
"!",
"=",
"null",
"&",
"&",
"before",
"!",
"=",
"null",
";",
"return",
"new",
"immutable",
"open",
"int",
"map",
"diff",
"<",
">",
"(",
"before",
",",
"after",
",",
"key",
"serializer",
",",
"diffable",
"value",
"serializer",
"get",
"write",
"only",
"instance",
"(",
")",
")",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.