docstring_tokens
list | code_tokens
list |
---|---|
[
"mnemonic",
"should",
"be",
"'",
"h",
"'",
"based",
"on",
"the",
"value",
"that",
"was",
"explicitly",
"set"
] |
[
"public",
"void",
"test",
"menu",
"data",
"passed",
"mnemonic",
"wins",
"(",
")",
"{",
"menu",
"data",
"menu",
"data",
"=",
"new",
"menu",
"data",
"(",
"new",
"string",
"[",
"]",
"{",
"\"",
"one",
"\"",
",",
"\"",
"two",
"\"",
",",
"\"",
"&",
"three",
"\"",
"}",
",",
"null",
",",
"null",
",",
"'",
"h",
"'",
",",
"null",
")",
";",
"assert",
"equals",
"(",
"menu",
"data",
"get",
"mnemonic",
"(",
")",
",",
"'",
"h",
"'",
")",
";",
"}"
] |
[
"returns",
"the",
"{",
"@",
"code",
"short",
"}",
"value",
"of",
"a",
"header",
"with",
"the",
"specified",
"name",
"if",
"there",
"is",
"more",
"than",
"one",
"value",
"for",
"the",
"specified",
"name",
",",
"the",
"first",
"value",
"in",
"insertion",
"order",
"is",
"returned"
] |
[
"short",
"get",
"short",
"(",
"k",
"name",
",",
"short",
"default",
"value",
")",
";"
] |
[
"{",
"@",
"inherit",
"doc",
"}",
"the",
"default",
"implementation",
"does",
"nothing"
] |
[
"@",
"override",
"public",
"void",
"exit",
"when",
"clause",
"(",
"sql",
"base",
"parser",
"when",
"clause",
"context",
"ctx",
")",
"{",
"}"
] |
[
"returns",
"the",
"index",
"of",
"the",
"key",
"if",
"already",
"present",
",",
"else",
"-",
"(",
"index",
"+",
"1",
")",
"for",
"the",
"next",
"empty",
"index",
"this",
"can",
"be",
"overridden",
"in",
"this",
"pacakge",
"to",
"compare",
"for",
"equality",
"differently",
"than",
"{",
"@",
"link",
"object",
"#",
"equals",
"(",
"object",
")",
"}"
] |
[
"int",
"locate",
"key",
"(",
"k",
"key",
")",
"{",
"if",
"(",
"key",
"=",
"=",
"null",
")",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"key",
"cannot",
"be",
"null",
"\"",
")",
";",
"k",
"[",
"]",
"key",
"table",
"=",
"this",
"key",
"table",
";",
"for",
"(",
"int",
"i",
"=",
"place",
"(",
"key",
")",
";",
";",
"i",
"=",
"i",
"+",
"1",
"&",
"mask",
")",
"{",
"k",
"other",
"=",
"key",
"table",
"[",
"i",
"]",
";",
"if",
"(",
"other",
"=",
"=",
"null",
")",
"return",
"-",
"(",
"i",
"+",
"1",
")",
";",
"/",
"/",
"empty",
"space",
"is",
"available",
"if",
"(",
"other",
"equals",
"(",
"key",
")",
")",
"return",
"i",
";",
"/",
"/",
"same",
"key",
"was",
"found",
"}",
"}"
] |
[
"get",
"the",
"task",
"id"
] |
[
"public",
"task",
"i",
"d",
"get",
"task",
"id",
"(",
")",
"{",
"return",
"task",
"i",
"d",
"for",
"name",
"(",
"datum",
"get",
"taskid",
"(",
")",
"to",
"string",
"(",
")",
")",
";",
"}"
] |
[
"how",
"many",
"{",
"@",
"link",
"buildable",
"item",
"}",
"s",
"are",
"assigned",
"for",
"the",
"given",
"label",
"?"
] |
[
"public",
"/",
"*",
"@",
"java",
"annotation",
"nonnegative",
"*",
"/",
"int",
"count",
"buildable",
"items",
"for",
"(",
"@",
"check",
"for",
"null",
"label",
"l",
")",
"{",
"snapshot",
"snapshot",
"=",
"this",
"snapshot",
";",
"int",
"r",
"=",
"0",
";",
"for",
"(",
"buildable",
"item",
"bi",
":",
"snapshot",
"buildables",
")",
"for",
"(",
"sub",
"task",
"st",
":",
"bi",
"task",
"get",
"sub",
"tasks",
"(",
")",
")",
"if",
"(",
"null",
"=",
"=",
"l",
"|",
"|",
"bi",
"get",
"assigned",
"label",
"for",
"(",
"st",
")",
"=",
"=",
"l",
")",
"r",
"+",
"+",
";",
"for",
"(",
"buildable",
"item",
"bi",
":",
"snapshot",
"pendings",
")",
"for",
"(",
"sub",
"task",
"st",
":",
"bi",
"task",
"get",
"sub",
"tasks",
"(",
")",
")",
"if",
"(",
"null",
"=",
"=",
"l",
"|",
"|",
"bi",
"get",
"assigned",
"label",
"for",
"(",
"st",
")",
"=",
"=",
"l",
")",
"r",
"+",
"+",
";",
"return",
"r",
";",
"}"
] |
[
"fetches",
"info",
"for",
"an",
"item",
",",
"checking",
"to",
"make",
"sure",
"that",
"it",
"exists"
] |
[
"public",
"void",
"view",
"listing",
"(",
"publishable",
"p",
")",
"{",
"long",
"handle",
"=",
"strings",
"parse",
"long",
"(",
"p",
"get",
"steam",
"i",
"d",
"(",
")",
",",
"-",
"1",
")",
";",
"steam",
"published",
"file",
"i",
"d",
"id",
"=",
"new",
"steam",
"published",
"file",
"i",
"d",
"(",
"handle",
")",
";",
"log",
"info",
"(",
"\"",
"handle",
"=",
"\"",
"+",
"handle",
")",
";",
"ui",
"loadfrag",
"show",
"(",
")",
";",
"query",
"(",
"ugc",
"create",
"query",
"u",
"g",
"c",
"details",
"request",
"(",
"id",
")",
",",
"(",
"details",
"list",
",",
"result",
")",
"-",
">",
"{",
"ui",
"loadfrag",
"hide",
"(",
")",
";",
"log",
"info",
"(",
"\"",
"fetch",
"result",
"=",
"\"",
"+",
"result",
")",
";",
"if",
"(",
"result",
"=",
"=",
"steam",
"result",
"ok",
")",
"{",
"steam",
"u",
"g",
"c",
"details",
"details",
"=",
"details",
"list",
"first",
"(",
")",
";",
"log",
"info",
"(",
"\"",
"details",
"result",
"=",
"\"",
"+",
"details",
"get",
"result",
"(",
")",
")",
";",
"if",
"(",
"details",
"get",
"result",
"(",
")",
"=",
"=",
"steam",
"result",
"ok",
")",
"{",
"if",
"(",
"details",
"get",
"owner",
"i",
"d",
"(",
")",
"equals",
"(",
"s",
"vars",
"user",
"user",
"get",
"steam",
"i",
"d",
"(",
")",
")",
")",
"{",
"base",
"dialog",
"dialog",
"=",
"new",
"base",
"dialog",
"(",
"\"",
"@",
"workshop",
"info",
"\"",
")",
";",
"dialog",
"set",
"fill",
"parent",
"(",
"false",
")",
";",
"dialog",
"cont",
"add",
"(",
"\"",
"@",
"workshop",
"menu",
"\"",
")",
"pad",
"(",
"2",
"0f",
")",
";",
"dialog",
"add",
"close",
"button",
"(",
")",
";",
"dialog",
"buttons",
"button",
"(",
"\"",
"@",
"view",
"workshop",
"\"",
",",
"icon",
"link",
",",
"(",
")",
"-",
">",
"{",
"view",
"listing",
"i",
"d",
"(",
"id",
")",
";",
"dialog",
"hide",
"(",
")",
";",
"}",
")",
"size",
"(",
"2",
"1",
"0f",
",",
"6",
"4f",
")",
";",
"dialog",
"buttons",
"button",
"(",
"\"",
"@",
"workshop",
"update",
"\"",
",",
"icon",
"up",
",",
"(",
")",
"-",
">",
"{",
"new",
"base",
"dialog",
"(",
"\"",
"@",
"workshop",
"update",
"\"",
")",
"{",
"{",
"set",
"fill",
"parent",
"(",
"false",
")",
";",
"cont",
"margin",
"(",
"10",
")",
"add",
"(",
"\"",
"@",
"changelog",
"\"",
")",
"pad",
"right",
"(",
"6f",
")",
";",
"cont",
"row",
"(",
")",
";",
"text",
"area",
"field",
"=",
"cont",
"area",
"(",
"\"",
"\"",
",",
"t",
"-",
">",
"{",
"}",
")",
"size",
"(",
"5",
"0",
"0f",
",",
"1",
"6",
"0f",
")",
"get",
"(",
")",
";",
"field",
"set",
"max",
"length",
"(",
"400",
")",
";",
"buttons",
"defaults",
"(",
")",
"size",
"(",
"120",
",",
"54",
")",
"pad",
"(",
"4",
")",
";",
"buttons",
"button",
"(",
"\"",
"@",
"ok",
"\"",
",",
"(",
")",
"-",
">",
"{",
"if",
"(",
"!",
"p",
"pre",
"publish",
"(",
")",
")",
"{",
"log",
"info",
"(",
"\"",
"rejecting",
"due",
"to",
"pre",
"-",
"publish",
"\"",
")",
";",
"return",
";",
"}",
"ui",
"loadfrag",
"show",
"(",
"\"",
"@",
"publishing",
"\"",
")",
";",
"update",
"item",
"(",
"p",
",",
"field",
"get",
"text",
"(",
")",
"replace",
"(",
"\"",
"\\",
"r",
"\"",
",",
"\"",
"\\",
"n",
"\"",
")",
")",
";",
"dialog",
"hide",
"(",
")",
";",
"hide",
"(",
")",
";",
"}",
")",
";",
"buttons",
"button",
"(",
"\"",
"@",
"cancel",
"\"",
",",
"this",
":",
":",
"hide",
")",
";",
"}",
"}",
"show",
"(",
")",
";",
"}",
")",
"size",
"(",
"2",
"1",
"0f",
",",
"6",
"4f",
")",
";",
"dialog",
"show",
"(",
")",
";",
"}",
"else",
"{",
"s",
"vars",
"net",
"friends",
"activate",
"game",
"overlay",
"to",
"web",
"page",
"(",
"\"",
"steam",
":",
"/",
"/",
"url",
"/",
"community",
"file",
"page",
"/",
"\"",
"+",
"details",
"get",
"published",
"file",
"i",
"d",
"(",
")",
"handle",
"(",
")",
")",
";",
"}",
"}",
"else",
"if",
"(",
"details",
"get",
"result",
"(",
")",
"=",
"=",
"steam",
"result",
"file",
"not",
"found",
")",
"{",
"p",
"remove",
"steam",
"i",
"d",
"(",
")",
";",
"ui",
"show",
"error",
"message",
"(",
"\"",
"@",
"missing",
"\"",
")",
";",
"}",
"else",
"{",
"ui",
"show",
"error",
"message",
"(",
"core",
"bundle",
"format",
"(",
"\"",
"workshop",
"error",
"\"",
",",
"details",
"get",
"result",
"(",
")",
"name",
"(",
")",
")",
")",
";",
"}",
"}",
"else",
"{",
"ui",
"show",
"error",
"message",
"(",
"core",
"bundle",
"format",
"(",
"\"",
"workshop",
"error",
"\"",
",",
"result",
"name",
"(",
")",
")",
")",
";",
"}",
"}",
")",
";",
"}"
] |
[
"helper",
"for",
"{",
"@",
"link",
"#",
"to",
"string",
"}",
"and",
"{",
"@",
"link",
"#",
"to",
"human",
"}",
",",
"which",
"both",
"of",
"those",
"call",
"to",
"pretty",
"much",
"do",
"everything"
] |
[
"private",
"string",
"to",
"string",
"0",
"(",
"string",
"prefix",
",",
"string",
"separator",
",",
"string",
"suffix",
",",
"boolean",
"human",
")",
"{",
"int",
"len",
"=",
"arr",
"length",
";",
"string",
"buffer",
"sb",
"=",
"new",
"string",
"buffer",
"(",
"len",
"*",
"10",
"+",
"10",
")",
";",
"if",
"(",
"prefix",
"!",
"=",
"null",
")",
"{",
"sb",
"append",
"(",
"prefix",
")",
";",
"}",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"len",
";",
"i",
"+",
"+",
")",
"{",
"if",
"(",
"(",
"i",
"!",
"=",
"0",
")",
"&",
"&",
"(",
"separator",
"!",
"=",
"null",
")",
")",
"{",
"sb",
"append",
"(",
"separator",
")",
";",
"}",
"if",
"(",
"human",
")",
"{",
"sb",
"append",
"(",
"(",
"(",
"to",
"human",
")",
"arr",
"[",
"i",
"]",
")",
"to",
"human",
"(",
")",
")",
";",
"}",
"else",
"{",
"sb",
"append",
"(",
"arr",
"[",
"i",
"]",
")",
";",
"}",
"}",
"if",
"(",
"suffix",
"!",
"=",
"null",
")",
"{",
"sb",
"append",
"(",
"suffix",
")",
";",
"}",
"return",
"sb",
"to",
"string",
"(",
")",
";",
"}"
] |
[
"get",
"a",
"delegation",
"token",
"from",
"remote",
"service",
"endpoint",
"if",
"'",
"fs",
"azure",
"enable",
"kerberos",
"support",
"'",
"is",
"set",
"to",
"'",
"true",
"'",
",",
"and",
"'",
"fs",
"azure",
"enable",
"delegation",
"token",
"'",
"is",
"set",
"to",
"'",
"true",
"'"
] |
[
"public",
"synchronized",
"token",
"<",
"?",
">",
"get",
"delegation",
"token",
"(",
"final",
"string",
"renewer",
")",
"throws",
"i",
"o",
"exception",
"{",
"stat",
"increment",
"(",
"call",
"get",
"delegation",
"token",
")",
";",
"return",
"this",
"delegation",
"token",
"enabled",
"?",
"this",
"delegation",
"token",
"manager",
"get",
"delegation",
"token",
"(",
"renewer",
")",
":",
"super",
"get",
"delegation",
"token",
"(",
"renewer",
")",
";",
"}"
] |
[
"returns",
"the",
"value",
"of",
"this",
"{",
"@",
"code",
"unsigned",
"integer",
"}",
"as",
"an",
"{",
"@",
"code",
"int",
"}",
"this",
"is",
"an",
"inverse",
"operation",
"to",
"{",
"@",
"link",
"#",
"from",
"int",
"bits",
"}",
"note",
"that",
"if",
"this",
"{",
"@",
"code",
"unsigned",
"integer",
"}",
"holds",
"a",
"value",
"{",
"@",
"code",
">",
"=",
"2",
"^",
"31",
"}",
",",
"the",
"returned",
"value",
"will",
"be",
"equal",
"to",
"{",
"@",
"code",
"this",
"-",
"2",
"^",
"32",
"}"
] |
[
"public",
"int",
"int",
"value",
"(",
")",
"{",
"return",
"value",
";",
"}"
] |
[
"a",
"list",
"of",
"namespaces",
"to",
"which",
"this",
"service",
"is",
"exported",
"exporting",
"a",
"service",
"allows",
"it",
"to",
"be",
"used",
"by",
"sidecars",
",",
"gateways",
"and",
"virtual",
"services",
"defined",
"in",
"other",
"namespaces",
"this",
"feature",
"provides",
"a",
"mechanism",
"for",
"service",
"owners",
"and",
"mesh",
"administrators",
"to",
"control",
"the",
"visibility",
"of",
"services",
"across",
"namespace",
"boundaries",
"if",
"no",
"namespaces",
"are",
"specified",
"then",
"the",
"service",
"is",
"exported",
"to",
"all",
"namespaces",
"by",
"default",
"the",
"value",
"\"",
"\"",
"is",
"reserved",
"and",
"defines",
"an",
"export",
"to",
"the",
"same",
"namespace",
"that",
"the",
"service",
"is",
"declared",
"in",
"similarly",
"the",
"value",
"\"",
"\"",
"is",
"reserved",
"and",
"defines",
"an",
"export",
"to",
"all",
"namespaces",
"for",
"a",
"kubernetes",
"service",
",",
"the",
"equivalent",
"effect",
"can",
"be",
"achieved",
"by",
"setting",
"the",
"annotation",
"\"",
"networking",
"istio",
"ioexport",
"to",
"\"",
"to",
"a",
"comma",
"-",
"separated",
"list",
"of",
"namespace",
"names",
"note",
":",
"in",
"the",
"current",
"release",
",",
"the",
"`",
"export",
"to",
"`",
"value",
"is",
"restricted",
"to",
"\"",
"\"",
"or",
"\"",
"\"",
"(",
"i",
"e",
",",
"the",
"current",
"namespace",
"or",
"all",
"namespaces",
")",
"<",
"code",
">",
"repeated",
"string",
"export",
"to",
"=",
"7",
";",
"<",
"code",
">"
] |
[
"public",
"int",
"get",
"export",
"to",
"count",
"(",
")",
"{",
"return",
"export",
"to",
"size",
"(",
")",
";",
"}"
] |
[
"query",
"configuration",
"information",
"based",
"on",
"group"
] |
[
"page",
"<",
"config",
"info",
">",
"find",
"config",
"info",
"by",
"group",
"and",
"app",
"(",
"final",
"int",
"page",
"no",
",",
"final",
"int",
"page",
"size",
",",
"final",
"string",
"group",
",",
"final",
"string",
"tenant",
",",
"final",
"string",
"app",
"name",
")",
";"
] |
[
"fetch",
"the",
"mappings",
"and",
"settings",
"for",
"{",
"@",
"link",
"test",
"system",
"index",
"descriptor",
"#",
"index",
"name",
"}",
"and",
"verify",
"that",
"they",
"match",
"the",
"expected",
"values",
"note",
"that",
"in",
"the",
"case",
"of",
"the",
"mappings",
",",
"this",
"is",
"just",
"a",
"dumb",
"string",
"comparison",
",",
"so",
"order",
"of",
"keys",
"matters"
] |
[
"private",
"void",
"assert",
"mappings",
"and",
"settings",
"(",
"string",
"expected",
"mappings",
")",
"{",
"final",
"get",
"mappings",
"response",
"get",
"mappings",
"response",
"=",
"client",
"(",
")",
"admin",
"(",
")",
"indices",
"(",
")",
"get",
"mappings",
"(",
"new",
"get",
"mappings",
"request",
"(",
")",
"indices",
"(",
"index",
"name",
")",
")",
"action",
"get",
"(",
")",
";",
"final",
"immutable",
"open",
"map",
"<",
"string",
",",
"mapping",
"metadata",
">",
"mappings",
"=",
"get",
"mappings",
"response",
"get",
"mappings",
"(",
")",
";",
"assert",
"that",
"(",
"\"",
"expected",
"mappings",
"to",
"contain",
"a",
"key",
"for",
"[",
"\"",
"+",
"primary",
"index",
"name",
"+",
"\"",
"]",
",",
"but",
"found",
":",
"\"",
"+",
"mappings",
"to",
"string",
"(",
")",
",",
"mappings",
"contains",
"key",
"(",
"primary",
"index",
"name",
")",
",",
"equal",
"to",
"(",
"true",
")",
")",
";",
"final",
"map",
"<",
"string",
",",
"object",
">",
"source",
"as",
"map",
"=",
"mappings",
"get",
"(",
"primary",
"index",
"name",
")",
"get",
"source",
"as",
"map",
"(",
")",
";",
"try",
"{",
"assert",
"that",
"(",
"convert",
"to",
"x",
"content",
"(",
"source",
"as",
"map",
",",
"x",
"content",
"type",
"json",
")",
"utf",
"8",
"to",
"string",
"(",
")",
",",
"equal",
"to",
"(",
"expected",
"mappings",
")",
")",
";",
"}",
"catch",
"(",
"i",
"o",
"exception",
"e",
")",
"{",
"throw",
"new",
"unchecked",
"i",
"o",
"exception",
"(",
"e",
")",
";",
"}",
"final",
"get",
"settings",
"response",
"get",
"settings",
"response",
"=",
"client",
"(",
")",
"admin",
"(",
")",
"indices",
"(",
")",
"get",
"settings",
"(",
"new",
"get",
"settings",
"request",
"(",
")",
"indices",
"(",
"index",
"name",
")",
")",
"action",
"get",
"(",
")",
";",
"final",
"settings",
"actual",
"=",
"get",
"settings",
"response",
"get",
"index",
"to",
"settings",
"(",
")",
"get",
"(",
"primary",
"index",
"name",
")",
";",
"for",
"(",
"string",
"setting",
"name",
":",
"test",
"system",
"index",
"descriptor",
"settings",
"key",
"set",
"(",
")",
")",
"{",
"assert",
"that",
"(",
"actual",
"get",
"(",
"setting",
"name",
")",
",",
"equal",
"to",
"(",
"test",
"system",
"index",
"descriptor",
"settings",
"get",
"(",
"setting",
"name",
")",
")",
")",
";",
"}",
"}"
] |
[
"returns",
"the",
"current",
"watermark",
"time"
] |
[
"long",
"get",
"current",
"watermark",
"(",
")",
";"
] |
[
"{",
"@",
"inherit",
"doc",
"}",
"the",
"default",
"implementation",
"does",
"nothing"
] |
[
"@",
"override",
"public",
"void",
"enter",
"cast",
"operator",
"expression",
"(",
"sql",
"base",
"parser",
"cast",
"operator",
"expression",
"context",
"ctx",
")",
"{",
"}"
] |
[
"model",
"tests",
"for",
"child",
"cat",
"all",
"of"
] |
[
"public",
"void",
"test",
"child",
"cat",
"all",
"of",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"child",
"cat",
"all",
"of",
"}"
] |
[
"{",
"@",
"inherit",
"doc",
"}"
] |
[
"public",
"boolean",
"has",
"next",
"(",
")",
"{",
"try",
"{",
"return",
"invoker",
"retry",
"(",
"operation",
",",
"null",
",",
"true",
",",
"iterator",
":",
":",
"has",
"next",
")",
";",
"}",
"catch",
"(",
"i",
"o",
"exception",
"e",
")",
"{",
"throw",
"new",
"unchecked",
"i",
"o",
"exception",
"(",
"e",
")",
";",
"}",
"}"
] |
[
"gets",
"the",
"field",
"-",
"data",
"fields"
] |
[
"public",
"list",
"<",
"field",
"and",
"format",
">",
"doc",
"value",
"fields",
"(",
")",
"{",
"return",
"doc",
"value",
"fields",
";",
"}"
] |
[
"convert",
"{",
"@",
"code",
"source",
"}",
"to",
"the",
"target",
"type"
] |
[
"t",
"convert",
"(",
"s",
"source",
")",
";"
] |
[
"encodes",
"a",
"byte",
"array",
"into",
"base",
"6",
"4",
"format",
"no",
"blanks",
"or",
"line",
"breaks",
"are",
"inserted",
"in",
"the",
"output"
] |
[
"public",
"static",
"char",
"[",
"]",
"encode",
"(",
"byte",
"[",
"]",
"in",
",",
"int",
"i",
"len",
")",
"{",
"return",
"encode",
"(",
"in",
",",
"0",
",",
"i",
"len",
",",
"regular",
"map",
"encoding",
"map",
")",
";",
"}"
] |
[
"gets",
"eguardian",
"user",
"id"
] |
[
"public",
"static",
"optional",
"<",
"string",
">",
"get",
"e",
"guardian",
"user",
"id",
"(",
"final",
"request",
"context",
"request",
"context",
")",
"{",
"return",
"optional",
"of",
"nullable",
"(",
"(",
"string",
")",
"request",
"context",
"get",
"flow",
"scope",
"(",
")",
"get",
"(",
"\"",
"eguardian",
"user",
"id",
"\"",
")",
")",
";",
"}"
] |
[
"adds",
"the",
"specified",
"texture",
"to",
"the",
"cache"
] |
[
"public",
"void",
"add",
"(",
"texture",
"texture",
",",
"float",
"x",
",",
"float",
"y",
",",
"float",
"width",
",",
"float",
"height",
",",
"int",
"src",
"x",
",",
"int",
"src",
"y",
",",
"int",
"src",
"width",
",",
"int",
"src",
"height",
",",
"boolean",
"flip",
"x",
",",
"boolean",
"flip",
"y",
")",
"{",
"float",
"inv",
"tex",
"width",
"=",
"1",
"0f",
"/",
"texture",
"get",
"width",
"(",
")",
";",
"float",
"inv",
"tex",
"height",
"=",
"1",
"0f",
"/",
"texture",
"get",
"height",
"(",
")",
";",
"float",
"u",
"=",
"src",
"x",
"*",
"inv",
"tex",
"width",
";",
"float",
"v",
"=",
"(",
"src",
"y",
"+",
"src",
"height",
")",
"*",
"inv",
"tex",
"height",
";",
"float",
"u",
"2",
"=",
"(",
"src",
"x",
"+",
"src",
"width",
")",
"*",
"inv",
"tex",
"width",
";",
"float",
"v",
"2",
"=",
"src",
"y",
"*",
"inv",
"tex",
"height",
";",
"final",
"float",
"fx",
"2",
"=",
"x",
"+",
"width",
";",
"final",
"float",
"fy",
"2",
"=",
"y",
"+",
"height",
";",
"if",
"(",
"flip",
"x",
")",
"{",
"float",
"tmp",
"=",
"u",
";",
"u",
"=",
"u",
"2",
";",
"u",
"2",
"=",
"tmp",
";",
"}",
"if",
"(",
"flip",
"y",
")",
"{",
"float",
"tmp",
"=",
"v",
";",
"v",
"=",
"v",
"2",
";",
"v",
"2",
"=",
"tmp",
";",
"}",
"temp",
"vertices",
"[",
"0",
"]",
"=",
"x",
";",
"temp",
"vertices",
"[",
"1",
"]",
"=",
"y",
";",
"temp",
"vertices",
"[",
"2",
"]",
"=",
"color",
"packed",
";",
"temp",
"vertices",
"[",
"3",
"]",
"=",
"u",
";",
"temp",
"vertices",
"[",
"4",
"]",
"=",
"v",
";",
"temp",
"vertices",
"[",
"5",
"]",
"=",
"x",
";",
"temp",
"vertices",
"[",
"6",
"]",
"=",
"fy",
"2",
";",
"temp",
"vertices",
"[",
"7",
"]",
"=",
"color",
"packed",
";",
"temp",
"vertices",
"[",
"8",
"]",
"=",
"u",
";",
"temp",
"vertices",
"[",
"9",
"]",
"=",
"v",
"2",
";",
"temp",
"vertices",
"[",
"10",
"]",
"=",
"fx",
"2",
";",
"temp",
"vertices",
"[",
"11",
"]",
"=",
"fy",
"2",
";",
"temp",
"vertices",
"[",
"12",
"]",
"=",
"color",
"packed",
";",
"temp",
"vertices",
"[",
"13",
"]",
"=",
"u",
"2",
";",
"temp",
"vertices",
"[",
"14",
"]",
"=",
"v",
"2",
";",
"if",
"(",
"mesh",
"get",
"num",
"indices",
"(",
")",
">",
"0",
")",
"{",
"temp",
"vertices",
"[",
"15",
"]",
"=",
"fx",
"2",
";",
"temp",
"vertices",
"[",
"16",
"]",
"=",
"y",
";",
"temp",
"vertices",
"[",
"17",
"]",
"=",
"color",
"packed",
";",
"temp",
"vertices",
"[",
"18",
"]",
"=",
"u",
"2",
";",
"temp",
"vertices",
"[",
"19",
"]",
"=",
"v",
";",
"add",
"(",
"texture",
",",
"temp",
"vertices",
",",
"0",
",",
"20",
")",
";",
"}",
"else",
"{",
"temp",
"vertices",
"[",
"15",
"]",
"=",
"fx",
"2",
";",
"temp",
"vertices",
"[",
"16",
"]",
"=",
"fy",
"2",
";",
"temp",
"vertices",
"[",
"17",
"]",
"=",
"color",
"packed",
";",
"temp",
"vertices",
"[",
"18",
"]",
"=",
"u",
"2",
";",
"temp",
"vertices",
"[",
"19",
"]",
"=",
"v",
"2",
";",
"temp",
"vertices",
"[",
"20",
"]",
"=",
"fx",
"2",
";",
"temp",
"vertices",
"[",
"21",
"]",
"=",
"y",
";",
"temp",
"vertices",
"[",
"22",
"]",
"=",
"color",
"packed",
";",
"temp",
"vertices",
"[",
"23",
"]",
"=",
"u",
"2",
";",
"temp",
"vertices",
"[",
"24",
"]",
"=",
"v",
";",
"temp",
"vertices",
"[",
"25",
"]",
"=",
"x",
";",
"temp",
"vertices",
"[",
"26",
"]",
"=",
"y",
";",
"temp",
"vertices",
"[",
"27",
"]",
"=",
"color",
"packed",
";",
"temp",
"vertices",
"[",
"28",
"]",
"=",
"u",
";",
"temp",
"vertices",
"[",
"29",
"]",
"=",
"v",
";",
"add",
"(",
"texture",
",",
"temp",
"vertices",
",",
"0",
",",
"30",
")",
";",
"}",
"}"
] |
[
"register",
"the",
"names",
"for",
"the",
"count",
"command"
] |
[
"public",
"static",
"void",
"register",
"commands",
"(",
"command",
"factory",
"factory",
")",
"{",
"factory",
"add",
"class",
"(",
"find",
"class",
",",
"\"",
"-",
"find",
"\"",
")",
";",
"}"
] |
[
"test",
"the",
"property",
"'",
"my",
"boolean",
"'"
] |
[
"public",
"void",
"my",
"boolean",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"my",
"boolean",
"}"
] |
[
"add",
"a",
"cookie",
"with",
"the",
"given",
"name",
"and",
"value"
] |
[
"s",
"cookie",
"(",
"string",
"name",
",",
"string",
"value",
")",
";"
] |
[
"test",
"the",
"property",
"'",
"string",
"item",
"'"
] |
[
"public",
"void",
"string",
"item",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"string",
"item",
"}"
] |
[
"register",
"cache",
"files",
"at",
"program",
"level"
] |
[
"public",
"void",
"register",
"cached",
"file",
"(",
"string",
"name",
",",
"distributed",
"cache",
"entry",
"entry",
")",
"throws",
"i",
"o",
"exception",
"{",
"if",
"(",
"!",
"this",
"cache",
"file",
"contains",
"key",
"(",
"name",
")",
")",
"{",
"this",
"cache",
"file",
"put",
"(",
"name",
",",
"entry",
")",
";",
"}",
"else",
"{",
"throw",
"new",
"i",
"o",
"exception",
"(",
"\"",
"cache",
"file",
"\"",
"+",
"name",
"+",
"\"",
"already",
"exists",
"!",
"\"",
")",
";",
"}",
"}"
] |
[
"sets",
"the",
"pad",
"top",
",",
"pad",
"left",
",",
"pad",
"bottom",
",",
"and",
"pad",
"right",
"around",
"the",
"table",
"to",
"the",
"specified",
"value"
] |
[
"public",
"table",
"pad",
"(",
"float",
"pad",
")",
"{",
"pad",
"(",
"fixed",
"value",
"of",
"(",
"pad",
")",
")",
";",
"return",
"this",
";",
"}"
] |
[
"whether",
"the",
"condition",
"is",
"the",
"\"",
"\"",
"(",
"empty",
"path",
")",
"mapping"
] |
[
"public",
"boolean",
"is",
"empty",
"path",
"mapping",
"(",
")",
"{",
"return",
"this",
"patterns",
"=",
"=",
"empty",
"path",
"pattern",
";",
"}"
] |
[
"returns",
"true",
"if",
"the",
"name",
"represents",
"a",
"valid",
"name",
"for",
"one",
"of",
"the",
"indices",
"option",
"false",
"otherwise"
] |
[
"public",
"static",
"boolean",
"is",
"indices",
"options",
"(",
"string",
"name",
")",
"{",
"return",
"\"",
"expand",
"wildcards",
"\"",
"equals",
"(",
"name",
")",
"|",
"|",
"\"",
"expand",
"wildcards",
"\"",
"equals",
"(",
"name",
")",
"|",
"|",
"\"",
"ignore",
"unavailable",
"\"",
"equals",
"(",
"name",
")",
"|",
"|",
"\"",
"ignore",
"unavailable",
"\"",
"equals",
"(",
"name",
")",
"|",
"|",
"\"",
"ignore",
"throttled",
"\"",
"equals",
"(",
"name",
")",
"|",
"|",
"\"",
"ignore",
"throttled",
"\"",
"equals",
"(",
"name",
")",
"|",
"|",
"\"",
"allow",
"no",
"indices",
"\"",
"equals",
"(",
"name",
")",
"|",
"|",
"\"",
"allow",
"no",
"indices",
"\"",
"equals",
"(",
"name",
")",
";",
"}"
] |
[
"returns",
"the",
"current",
"size",
"of",
"the",
"array"
] |
[
"public",
"int",
"size",
"(",
")",
"{",
"return",
"size",
";",
"}"
] |
[
"register",
"a",
"metric",
"with",
"this",
"sensor"
] |
[
"public",
"boolean",
"add",
"(",
"metric",
"name",
"metric",
"name",
",",
"measurable",
"stat",
"stat",
")",
"{",
"return",
"add",
"(",
"metric",
"name",
",",
"stat",
",",
"null",
")",
";",
"}"
] |
[
"maps",
"a",
"{",
"@",
"link",
"status",
"}",
"to",
"a",
"{",
"@",
"link",
"file",
"status",
"}"
] |
[
"private",
"static",
"file",
"status",
"map",
"status",
"(",
"@",
"non",
"null",
"status",
"status",
")",
"{",
"switch",
"(",
"status",
")",
"{",
"case",
"added",
":",
"return",
"file",
"status",
"new",
";",
"case",
"changed",
":",
"return",
"file",
"status",
"changed",
";",
"case",
"notchanged",
":",
"return",
"null",
";",
"case",
"removed",
":",
"return",
"file",
"status",
"removed",
";",
"default",
":",
"throw",
"new",
"assertion",
"error",
"(",
")",
";",
"}",
"}"
] |
[
"gets",
"the",
"array",
"the",
"returned",
"array",
"contains",
"exactly",
"the",
"data",
"written",
"(",
"e",
"g",
"no",
"leftover",
"space",
"at",
"the",
"end",
")"
] |
[
"public",
"short",
"[",
"]",
"get",
"array",
"(",
")",
"{",
"int",
"cursor",
"=",
"cursor",
"(",
")",
";",
"if",
"(",
"cursor",
"=",
"=",
"array",
"length",
")",
"{",
"return",
"array",
";",
"}",
"short",
"[",
"]",
"result",
"=",
"new",
"short",
"[",
"cursor",
"]",
";",
"system",
"arraycopy",
"(",
"array",
",",
"0",
",",
"result",
",",
"0",
",",
"cursor",
")",
";",
"return",
"result",
";",
"}"
] |
[
"consume",
"a",
"given",
"terminal",
"(",
"and",
"corresponding",
"token",
")",
"and",
"continue",
"parsing"
] |
[
"protected",
"void",
"consume",
"(",
"assembly",
"terminal",
"t",
",",
"assembly",
"parse",
"token",
"tok",
",",
"set",
"<",
"assembly",
"parse",
"machine",
">",
"results",
",",
"deque",
"<",
"assembly",
"parse",
"machine",
">",
"visited",
")",
"{",
"try",
"(",
"dbg",
"ctx",
"dc",
"=",
"dbg",
"start",
"(",
"\"",
"matched",
"\"",
"+",
"t",
"+",
"\"",
"\"",
"+",
"tok",
")",
")",
"{",
"collection",
"<",
"action",
">",
"as",
"=",
"parser",
"actions",
"get",
"(",
"stack",
"peek",
"(",
")",
",",
"t",
")",
";",
"assert",
"!",
"as",
"is",
"empty",
"(",
")",
";",
"dbg",
"println",
"(",
"\"",
"actions",
":",
"\"",
"+",
"as",
")",
";",
"for",
"(",
"action",
"a",
":",
"as",
")",
"{",
"do",
"action",
"(",
"a",
",",
"tok",
",",
"results",
",",
"visited",
")",
";",
"}",
"}",
"}"
] |
[
"adds",
"the",
"remaining",
"values",
"to",
"the",
"specified",
"array"
] |
[
"public",
"int",
"array",
"to",
"array",
"(",
"int",
"array",
"array",
")",
"{",
"while",
"(",
"has",
"next",
")",
"array",
"add",
"(",
"next",
"(",
")",
")",
";",
"return",
"array",
";",
"}"
] |
[
"convert",
"the",
"given",
"object",
"to",
"string",
"with",
"each",
"line",
"indented",
"by",
"4",
"spaces",
"(",
"except",
"the",
"first",
"line",
")"
] |
[
"private",
"string",
"to",
"indented",
"string",
"(",
"object",
"o",
")",
"{",
"if",
"(",
"o",
"=",
"=",
"null",
")",
"{",
"return",
"\"",
"null",
"\"",
";",
"}",
"return",
"o",
"to",
"string",
"(",
")",
"replace",
"(",
"\"",
"\\",
"n",
"\"",
",",
"\"",
"\\",
"n",
"\"",
")",
";",
"}"
] |
[
"start",
"the",
"activity"
] |
[
"public",
"static",
"void",
"start",
"activity",
"(",
"@",
"non",
"null",
"final",
"bundle",
"extras",
",",
"@",
"non",
"null",
"final",
"activity",
"activity",
",",
"@",
"non",
"null",
"final",
"class",
"<",
"?",
"extends",
"activity",
">",
"clz",
",",
"final",
"view",
"shared",
"elements",
")",
"{",
"start",
"activity",
"(",
"activity",
",",
"extras",
",",
"activity",
"get",
"package",
"name",
"(",
")",
",",
"clz",
"get",
"name",
"(",
")",
",",
"get",
"options",
"bundle",
"(",
"activity",
",",
"shared",
"elements",
")",
")",
";",
"}"
] |
[
"the",
"value",
"of",
"the",
"jvm",
"flag",
"use",
"compressed",
"oops",
",",
"if",
"available",
"otherwise",
"\"",
"unknown",
"\"",
"the",
"value",
"\"",
"unknown",
"\"",
"indicates",
"that",
"an",
"attempt",
"was",
"made",
"to",
"obtain",
"the",
"value",
"of",
"the",
"flag",
"on",
"this",
"jvm",
"and",
"the",
"attempt",
"failed"
] |
[
"public",
"string",
"use",
"compressed",
"oops",
"(",
")",
"{",
"return",
"this",
"use",
"compressed",
"oops",
";",
"}"
] |
[
"encodes",
"cases",
"where",
"'",
"c",
"'",
"is",
"silent",
"at",
"beginning",
"of",
"word"
] |
[
"boolean",
"encode",
"silent",
"c",
"at",
"beginning",
"(",
")",
"{",
"/",
"/",
"skip",
"these",
"when",
"at",
"start",
"of",
"word",
"if",
"(",
"(",
"m",
"current",
"=",
"=",
"0",
")",
"&",
"&",
"string",
"at",
"(",
"m",
"current",
",",
"2",
",",
"\"",
"ct",
"\"",
",",
"\"",
"cn",
"\"",
",",
"\"",
"\"",
")",
")",
"{",
"m",
"current",
"+",
"=",
"1",
";",
"return",
"true",
";",
"}",
"return",
"false",
";",
"}"
] |
[
"test",
"method",
"for",
"{",
"@",
"link",
"org",
"apache",
"dubbo",
"registry",
"support",
"abstract",
"registry",
"#",
"subscribe",
"(",
"url",
",",
"notify",
"listener",
")",
"}"
] |
[
"public",
"void",
"test",
"subscribe",
"(",
")",
"throws",
"exception",
"{",
"/",
"/",
"check",
"parameters",
"try",
"{",
"abstract",
"registry",
"subscribe",
"(",
"test",
"url",
",",
"null",
")",
";",
"assertions",
"fail",
"(",
")",
";",
"}",
"catch",
"(",
"exception",
"e",
")",
"{",
"assertions",
"assert",
"true",
"(",
"e",
"instanceof",
"illegal",
"argument",
"exception",
")",
";",
"}",
"/",
"/",
"check",
"parameters",
"try",
"{",
"abstract",
"registry",
"subscribe",
"(",
"null",
",",
"null",
")",
";",
"assertions",
"fail",
"(",
")",
";",
"}",
"catch",
"(",
"exception",
"e",
")",
"{",
"assertions",
"assert",
"true",
"(",
"e",
"instanceof",
"illegal",
"argument",
"exception",
")",
";",
"}",
"/",
"/",
"check",
"if",
"subscribe",
"successfully",
"assertions",
"assert",
"null",
"(",
"abstract",
"registry",
"get",
"subscribed",
"(",
")",
"get",
"(",
"test",
"url",
")",
")",
";",
"abstract",
"registry",
"subscribe",
"(",
"test",
"url",
",",
"listener",
")",
";",
"assertions",
"assert",
"not",
"null",
"(",
"abstract",
"registry",
"get",
"subscribed",
"(",
")",
"get",
"(",
"test",
"url",
")",
")",
";",
"assertions",
"assert",
"true",
"(",
"abstract",
"registry",
"get",
"subscribed",
"(",
")",
"get",
"(",
"test",
"url",
")",
"contains",
"(",
"listener",
")",
")",
";",
"}"
] |
[
"returns",
"the",
"pref",
"height",
"of",
"the",
"specified",
"row"
] |
[
"public",
"float",
"get",
"row",
"pref",
"height",
"(",
"int",
"row",
"index",
")",
"{",
"if",
"(",
"size",
"invalid",
")",
"compute",
"size",
"(",
")",
";",
"return",
"row",
"pref",
"height",
"[",
"row",
"index",
"]",
";",
"}"
] |
[
"sleeps",
"the",
"current",
"thread",
"for",
"x",
"milliseconds"
] |
[
"private",
"void",
"sleep",
"(",
"long",
"ms",
")",
"throws",
"interrupted",
"exception",
"{",
"if",
"(",
"ms",
"<",
"=",
"0",
")",
"{",
"return",
";",
"}",
"thread",
"sleep",
"(",
"ms",
")",
";",
"}"
] |
[
"configure",
"the",
"given",
"container",
"specification"
] |
[
"void",
"configure",
"(",
"container",
"specification",
"container",
"specification",
")",
"throws",
"i",
"o",
"exception",
";"
] |
[
"an",
"optional",
"list",
"of",
"base",
"6",
"4",
"-",
"encoded",
"sha",
"-",
"256",
"hashes",
"of",
"the",
"s",
"k",
"p",
"is",
"of",
"authorized",
"client",
"certificates",
"note",
":",
"when",
"both",
"verify",
"certificate",
"hash",
"and",
"verify",
"certificate",
"spki",
"are",
"specified",
",",
"a",
"hash",
"matching",
"either",
"value",
"will",
"result",
"in",
"the",
"certificate",
"being",
"accepted",
"<",
"code",
">",
"repeated",
"string",
"verify",
"certificate",
"spki",
"=",
"11",
";",
"<",
"code",
">"
] |
[
"public",
"com",
"google",
"protobuf",
"protocol",
"string",
"list",
"get",
"verify",
"certificate",
"spki",
"list",
"(",
")",
"{",
"return",
"verify",
"certificate",
"spki",
";",
"}"
] |
[
"version",
"of",
"the",
"web",
"socket",
"specification",
"that",
"is",
"being",
"used"
] |
[
"public",
"web",
"socket",
"version",
"version",
"(",
")",
"{",
"return",
"version",
";",
"}"
] |
[
"convert",
"collection",
"of",
"system",
"credentials",
"for",
"apps",
"proto",
"proto",
"objects",
"to",
"a",
"map",
"of",
"application",
"id",
"to",
"byte",
"buffer"
] |
[
"public",
"static",
"map",
"<",
"application",
"id",
",",
"byte",
"buffer",
">",
"convert",
"from",
"proto",
"format",
"(",
"collection",
"<",
"system",
"credentials",
"for",
"apps",
"proto",
">",
"system",
"credentials",
")",
"{",
"map",
"<",
"application",
"id",
",",
"byte",
"buffer",
">",
"system",
"credentials",
"for",
"apps",
"=",
"new",
"hash",
"map",
"<",
"application",
"id",
",",
"byte",
"buffer",
">",
"(",
"system",
"credentials",
"size",
"(",
")",
")",
";",
"for",
"(",
"system",
"credentials",
"for",
"apps",
"proto",
"proto",
":",
"system",
"credentials",
")",
"{",
"system",
"credentials",
"for",
"apps",
"put",
"(",
"proto",
"utils",
"convert",
"from",
"proto",
"format",
"(",
"proto",
"get",
"app",
"id",
"(",
")",
")",
",",
"proto",
"utils",
"convert",
"from",
"proto",
"format",
"(",
"proto",
"get",
"credentials",
"for",
"app",
"(",
")",
")",
")",
";",
"}",
"return",
"system",
"credentials",
"for",
"apps",
";",
"}"
] |
[
"decode",
"longitude",
"value",
"from",
"morton",
"encoded",
"geo",
"point"
] |
[
"public",
"static",
"double",
"decode",
"longitude",
"(",
"final",
"long",
"hash",
")",
"{",
"return",
"unscale",
"lon",
"(",
"bit",
"util",
"deinterleave",
"(",
"hash",
")",
")",
";",
"}"
] |
[
"finds",
"the",
"index",
"of",
"the",
"entry",
"greater",
"than",
"v"
] |
[
"public",
"int",
"higher",
"(",
"int",
"v",
")",
"{",
"return",
"boundary",
"higher",
"apply",
"(",
"find",
"(",
"v",
")",
")",
";",
"}"
] |
[
"builds",
"the",
"set",
"of",
"command",
"-",
"line",
"arguments",
"using",
"the",
"specified",
"shell",
"path",
"creates",
"a",
"bash",
"script",
"if",
"the",
"command",
"line",
"is",
"longer",
"than",
"the",
"allowed",
"maximum",
"{",
"@",
"link",
"#",
"max",
"command",
"length",
"}",
"fixes",
"up",
"the",
"input",
"artifact",
"list",
"with",
"the",
"created",
"bash",
"script",
"when",
"required"
] |
[
"public",
"list",
"<",
"string",
">",
"build",
"command",
"line",
"(",
"string",
"command",
",",
"nested",
"set",
"builder",
"<",
"artifact",
">",
"inputs",
",",
"command",
"constructor",
"constructor",
")",
"{",
"pair",
"<",
"list",
"<",
"string",
">",
",",
"artifact",
">",
"argv",
"and",
"script",
"file",
"=",
"build",
"command",
"line",
"maybe",
"with",
"script",
"file",
"(",
"rule",
"context",
",",
"command",
",",
"constructor",
")",
";",
"if",
"(",
"argv",
"and",
"script",
"file",
"second",
"!",
"=",
"null",
")",
"{",
"inputs",
"add",
"(",
"argv",
"and",
"script",
"file",
"second",
")",
";",
"}",
"return",
"argv",
"and",
"script",
"file",
"first",
";",
"}"
] |
[
"runs",
"the",
"specified",
"action",
"for",
"each",
"distinct",
"element",
"in",
"this",
"multiset",
",",
"and",
"the",
"number",
"of",
"occurrences",
"of",
"that",
"element",
"for",
"some",
"{",
"@",
"code",
"multiset",
"}",
"implementations",
",",
"this",
"may",
"be",
"more",
"efficient",
"than",
"iterating",
"over",
"the",
"{",
"@",
"link",
"#",
"entry",
"set",
"(",
")",
"}",
"either",
"explicitly",
"or",
"with",
"{",
"@",
"code",
"entry",
"set",
"(",
")",
"for",
"each",
"(",
"action",
")",
"}"
] |
[
"default",
"void",
"for",
"each",
"entry",
"(",
"obj",
"int",
"consumer",
"<",
"?",
"super",
"e",
">",
"action",
")",
"{",
"check",
"not",
"null",
"(",
"action",
")",
";",
"entry",
"set",
"(",
")",
"for",
"each",
"(",
"entry",
"-",
">",
"action",
"accept",
"(",
"entry",
"get",
"element",
"(",
")",
",",
"entry",
"get",
"count",
"(",
")",
")",
")",
";",
"}",
"/",
"/",
"comparison",
"and",
"hashing"
] |
[
"compare",
"all",
"the",
"fields"
] |
[
"public",
"boolean",
"equals",
"(",
"object",
"other",
")",
"{",
"if",
"(",
"this",
"=",
"=",
"other",
")",
"{",
"return",
"true",
";",
"}",
"if",
"(",
"other",
"instanceof",
"model",
"size",
"stats",
"=",
"=",
"false",
")",
"{",
"return",
"false",
";",
"}",
"model",
"size",
"stats",
"that",
"=",
"(",
"model",
"size",
"stats",
")",
"other",
";",
"return",
"this",
"model",
"bytes",
"=",
"=",
"that",
"model",
"bytes",
"&",
"&",
"objects",
"equals",
"(",
"this",
"peak",
"model",
"bytes",
",",
"that",
"peak",
"model",
"bytes",
")",
"&",
"&",
"objects",
"equals",
"(",
"this",
"model",
"bytes",
"exceeded",
",",
"that",
"model",
"bytes",
"exceeded",
")",
"&",
"&",
"objects",
"equals",
"(",
"this",
"model",
"bytes",
"memory",
"limit",
",",
"that",
"model",
"bytes",
"memory",
"limit",
")",
"&",
"&",
"this",
"total",
"by",
"field",
"count",
"=",
"=",
"that",
"total",
"by",
"field",
"count",
"&",
"&",
"this",
"total",
"over",
"field",
"count",
"=",
"=",
"that",
"total",
"over",
"field",
"count",
"&",
"&",
"this",
"total",
"partition",
"field",
"count",
"=",
"=",
"that",
"total",
"partition",
"field",
"count",
"&",
"&",
"this",
"bucket",
"allocation",
"failures",
"count",
"=",
"=",
"that",
"bucket",
"allocation",
"failures",
"count",
"&",
"&",
"objects",
"equals",
"(",
"this",
"memory",
"status",
",",
"that",
"memory",
"status",
")",
"&",
"&",
"objects",
"equals",
"(",
"this",
"assignment",
"memory",
"basis",
",",
"that",
"assignment",
"memory",
"basis",
")",
"&",
"&",
"objects",
"equals",
"(",
"this",
"categorized",
"doc",
"count",
",",
"that",
"categorized",
"doc",
"count",
")",
"&",
"&",
"objects",
"equals",
"(",
"this",
"total",
"category",
"count",
",",
"that",
"total",
"category",
"count",
")",
"&",
"&",
"objects",
"equals",
"(",
"this",
"frequent",
"category",
"count",
",",
"that",
"frequent",
"category",
"count",
")",
"&",
"&",
"objects",
"equals",
"(",
"this",
"rare",
"category",
"count",
",",
"that",
"rare",
"category",
"count",
")",
"&",
"&",
"objects",
"equals",
"(",
"this",
"dead",
"category",
"count",
",",
"that",
"dead",
"category",
"count",
")",
"&",
"&",
"objects",
"equals",
"(",
"this",
"failed",
"category",
"count",
",",
"that",
"failed",
"category",
"count",
")",
"&",
"&",
"objects",
"equals",
"(",
"this",
"categorization",
"status",
",",
"that",
"categorization",
"status",
")",
"&",
"&",
"objects",
"equals",
"(",
"this",
"timestamp",
",",
"that",
"timestamp",
")",
"&",
"&",
"objects",
"equals",
"(",
"this",
"log",
"time",
",",
"that",
"log",
"time",
")",
"&",
"&",
"objects",
"equals",
"(",
"this",
"job",
"id",
",",
"that",
"job",
"id",
")",
";",
"}"
] |
[
"not",
"supported",
"<",
"b",
">",
"you",
"are",
"attempting",
"to",
"create",
"a",
"map",
"that",
"may",
"contain",
"non",
"-",
"{",
"@",
"code",
"comparable",
"}",
"keys",
"<",
"b",
">",
"proper",
"calls",
"will",
"resolve",
"to",
"the",
"version",
"in",
"{",
"@",
"code",
"immutable",
"sorted",
"map",
"}",
",",
"not",
"this",
"dummy",
"version"
] |
[
"public",
"static",
"<",
"k",
",",
"v",
">",
"immutable",
"sorted",
"map",
"<",
"k",
",",
"v",
">",
"of",
"(",
"k",
"k",
"1",
",",
"v",
"v",
"1",
",",
"k",
"k",
"2",
",",
"v",
"v",
"2",
")",
"{",
"throw",
"new",
"unsupported",
"operation",
"exception",
"(",
")",
";",
"}"
] |
[
"algorithm",
"for",
"calculating",
"ideal",
"assigned",
"is",
"as",
"follows",
":",
"for",
"each",
"partition",
":",
"q",
"reassignable",
"=",
"q",
"used",
"-",
"q",
"selected",
";",
"#",
"by",
"default",
"set",
"ideal",
"assigned",
"0",
"for",
"app",
"app",
"ideal",
"assigned",
"as",
"0",
"#",
"get",
"user",
"limit",
"from",
"scheduler",
"user",
"limit",
"res",
"=",
"q",
"get",
"user",
"limit",
"(",
"user",
"name",
")",
"#",
"initial",
"all",
"value",
"to",
"0",
"map",
"<",
"string",
",",
"resource",
">",
"user",
"to",
"allocated",
"#",
"loop",
"from",
"highest",
"priority",
"to",
"lowest",
"priority",
"app",
"to",
"calculate",
"ideal",
"for",
"app",
"in",
"sorted",
"-",
"by",
"(",
"priority",
")",
"{",
"if",
"q",
"reassignable",
"<",
"0",
":",
"break",
";",
"if",
"(",
"user",
"-",
"to",
"-",
"allocated",
"get",
"(",
"app",
"user",
")",
"<",
"user",
"limit",
"res",
")",
"{",
"ideal",
"assigned",
"=",
"min",
"(",
"(",
"user",
"limit",
"res",
"-",
"user",
"to",
"allocated",
"get",
"(",
"app",
"user",
")",
")",
",",
"(",
"app",
"used",
"+",
"app",
"pending",
"-",
"app",
"selected",
")",
")",
"app",
"ideal",
"assigned",
"=",
"min",
"(",
"q",
"reassignable",
",",
"ideal",
"assigned",
")",
"user",
"to",
"allocated",
"get",
"(",
"app",
"user",
")",
"+",
"=",
"app",
"ideal",
"assigned",
";",
"}",
"else",
"{",
"skip",
"this",
"app",
"because",
"user",
"-",
"limit",
"reached",
"}",
"q",
"reassignable",
"-",
"=",
"app",
"ideal",
"assigned",
"}"
] |
[
"private",
"tree",
"set",
"<",
"temp",
"app",
"per",
"partition",
">",
"calculate",
"ideal",
"assigned",
"resource",
"per",
"app",
"(",
"resource",
"cluster",
"resource",
",",
"temp",
"queue",
"per",
"partition",
"tq",
",",
"map",
"<",
"application",
"attempt",
"id",
",",
"set",
"<",
"r",
"m",
"container",
">",
">",
"selected",
"candidates",
",",
"resource",
"queue",
"reassignable",
"resource",
",",
"priority",
"queue",
"<",
"temp",
"app",
"per",
"partition",
">",
"ordered",
"by",
"priority",
")",
"{",
"comparator",
"<",
"temp",
"app",
"per",
"partition",
">",
"reverse",
"comp",
";",
"ordering",
"policy",
"<",
"fi",
"ca",
"scheduler",
"app",
">",
"queue",
"ordering",
"policy",
"=",
"tq",
"leaf",
"queue",
"get",
"ordering",
"policy",
"(",
")",
";",
"if",
"(",
"queue",
"ordering",
"policy",
"instanceof",
"fair",
"ordering",
"policy",
"&",
"&",
"(",
"context",
"get",
"intra",
"queue",
"preemption",
"order",
"policy",
"(",
")",
"=",
"=",
"intra",
"queue",
"preemption",
"order",
"policy",
"userlimit",
"first",
")",
")",
"{",
"reverse",
"comp",
"=",
"collections",
"reverse",
"order",
"(",
"new",
"t",
"a",
"fair",
"ordering",
"comparator",
"(",
"this",
"rc",
",",
"cluster",
"resource",
")",
")",
";",
"}",
"else",
"{",
"reverse",
"comp",
"=",
"collections",
"reverse",
"order",
"(",
"new",
"t",
"a",
"priority",
"comparator",
"(",
")",
")",
";",
"}",
"tree",
"set",
"<",
"temp",
"app",
"per",
"partition",
">",
"ordered",
"apps",
"=",
"new",
"tree",
"set",
"<",
">",
"(",
"reverse",
"comp",
")",
";",
"string",
"partition",
"=",
"tq",
"partition",
";",
"map",
"<",
"string",
",",
"temp",
"user",
"per",
"partition",
">",
"users",
"per",
"partition",
"=",
"tq",
"get",
"users",
"per",
"partition",
"(",
")",
";",
"while",
"(",
"!",
"ordered",
"by",
"priority",
"is",
"empty",
"(",
")",
")",
"{",
"/",
"/",
"remove",
"app",
"from",
"the",
"next",
"highest",
"remaining",
"priority",
"and",
"process",
"it",
"to",
"/",
"/",
"calculate",
"ideal",
"assigned",
"per",
"app",
"temp",
"app",
"per",
"partition",
"tmp",
"app",
"=",
"ordered",
"by",
"priority",
"remove",
"(",
")",
";",
"ordered",
"apps",
"add",
"(",
"tmp",
"app",
")",
";",
"/",
"/",
"once",
"unallocated",
"resource",
"is",
"0",
",",
"we",
"can",
"stop",
"assigning",
"ideal",
"per",
"app",
"if",
"(",
"resources",
"less",
"than",
"or",
"equal",
"(",
"rc",
",",
"cluster",
"resource",
",",
"queue",
"reassignable",
"resource",
",",
"resources",
"none",
"(",
")",
")",
"|",
"|",
"rc",
"is",
"any",
"major",
"resource",
"zero",
"or",
"negative",
"(",
"queue",
"reassignable",
"resource",
")",
")",
"{",
"continue",
";",
"}",
"string",
"user",
"name",
"=",
"tmp",
"app",
"app",
"get",
"user",
"(",
")",
";",
"temp",
"user",
"per",
"partition",
"tmp",
"user",
"=",
"users",
"per",
"partition",
"get",
"(",
"user",
"name",
")",
";",
"resource",
"user",
"limit",
"resource",
"=",
"tmp",
"user",
"get",
"user",
"limit",
"(",
")",
";",
"resource",
"ideal",
"assigned",
"for",
"user",
"=",
"tmp",
"user",
"ideal",
"assigned",
";",
"/",
"/",
"calculate",
"total",
"selected",
"container",
"resources",
"from",
"current",
"app",
"get",
"already",
"selected",
"preemption",
"candidates",
"resource",
"(",
"selected",
"candidates",
",",
"tmp",
"app",
",",
"tmp",
"user",
",",
"partition",
")",
";",
"/",
"/",
"for",
"any",
"app",
",",
"used",
"+",
"pending",
"will",
"give",
"its",
"ideal",
"assigned",
"however",
"it",
"will",
"/",
"/",
"be",
"tightly",
"linked",
"to",
"queue",
"'",
"s",
"unallocated",
"quota",
"so",
"lower",
"priority",
"apps",
"/",
"/",
"ideal",
"assigned",
"may",
"fall",
"to",
"0",
"if",
"higher",
"priority",
"apps",
"demand",
"is",
"more",
"resource",
"app",
"ideal",
"assigned",
"=",
"resources",
"add",
"(",
"tmp",
"app",
"get",
"used",
"deduct",
"a",
"m",
"(",
")",
",",
"tmp",
"app",
"get",
"pending",
"(",
")",
")",
";",
"resources",
"subtract",
"from",
"(",
"app",
"ideal",
"assigned",
",",
"tmp",
"app",
"selected",
")",
";",
"if",
"(",
"resources",
"less",
"than",
"(",
"rc",
",",
"cluster",
"resource",
",",
"ideal",
"assigned",
"for",
"user",
",",
"user",
"limit",
"resource",
")",
")",
"{",
"resource",
"ideal",
"assigned",
"=",
"resources",
"min",
"(",
"rc",
",",
"cluster",
"resource",
",",
"app",
"ideal",
"assigned",
",",
"resources",
"subtract",
"(",
"user",
"limit",
"resource",
",",
"ideal",
"assigned",
"for",
"user",
")",
")",
";",
"tmp",
"app",
"ideal",
"assigned",
"=",
"resources",
"clone",
"(",
"resources",
"min",
"(",
"rc",
",",
"cluster",
"resource",
",",
"queue",
"reassignable",
"resource",
",",
"ideal",
"assigned",
")",
")",
";",
"resources",
"add",
"to",
"(",
"ideal",
"assigned",
"for",
"user",
",",
"tmp",
"app",
"ideal",
"assigned",
")",
";",
"}",
"else",
"{",
"continue",
";",
"}",
"/",
"/",
"also",
"set",
"how",
"much",
"resource",
"is",
"needed",
"by",
"this",
"app",
"from",
"others",
"resource",
"app",
"used",
"excluded",
"selected",
"=",
"resources",
"subtract",
"(",
"tmp",
"app",
"get",
"used",
"deduct",
"a",
"m",
"(",
")",
",",
"tmp",
"app",
"selected",
")",
";",
"if",
"(",
"resources",
"greater",
"than",
"(",
"rc",
",",
"cluster",
"resource",
",",
"tmp",
"app",
"ideal",
"assigned",
",",
"app",
"used",
"excluded",
"selected",
")",
")",
"{",
"tmp",
"app",
"set",
"to",
"be",
"preempt",
"from",
"other",
"(",
"resources",
"subtract",
"(",
"tmp",
"app",
"ideal",
"assigned",
",",
"app",
"used",
"excluded",
"selected",
")",
")",
";",
"}",
"resources",
"subtract",
"from",
"non",
"negative",
"(",
"queue",
"reassignable",
"resource",
",",
"tmp",
"app",
"ideal",
"assigned",
")",
";",
"}",
"return",
"ordered",
"apps",
";",
"}"
] |
[
"convert",
"windows",
"path",
"to",
"unix"
] |
[
"public",
"static",
"string",
"normalize",
"file",
"system",
"path",
"(",
"string",
"path",
")",
"{",
"if",
"(",
"path",
"!",
"=",
"null",
")",
"{",
"string",
"osname",
"=",
"java",
"lang",
"system",
"get",
"property",
"(",
"\"",
"os",
"name",
"\"",
")",
";",
"if",
"(",
"osname",
"to",
"lower",
"case",
"(",
")",
"contains",
"(",
"\"",
"windows",
"\"",
")",
")",
"{",
"return",
"path",
"replace",
"(",
"'",
"\\",
"\\",
"'",
",",
"'",
"/",
"'",
")",
";",
"}",
"}",
"return",
"path",
";",
"}"
] |
[
"reads",
"a",
"char",
"as",
"specified",
"by",
"{",
"@",
"link",
"data",
"input",
"stream",
"#",
"read",
"char",
"(",
")",
"}",
",",
"except",
"using",
"little",
"-",
"endian",
"byte",
"order"
] |
[
"public",
"char",
"read",
"char",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"return",
"(",
"char",
")",
"read",
"unsigned",
"short",
"(",
")",
";",
"}"
] |
[
"create",
"a",
"task",
"reporter",
"and",
"start",
"communication",
"thread"
] |
[
"task",
"reporter",
"start",
"reporter",
"(",
"final",
"task",
"umbilical",
"protocol",
"umbilical",
")",
"{",
"/",
"/",
"start",
"thread",
"that",
"will",
"handle",
"communication",
"with",
"parent",
"task",
"reporter",
"reporter",
"=",
"new",
"task",
"reporter",
"(",
"get",
"progress",
"(",
")",
",",
"umbilical",
")",
";",
"reporter",
"start",
"communication",
"thread",
"(",
")",
";",
"return",
"reporter",
";",
"}"
] |
[
"analogous",
"to",
"the",
"{",
"@",
"code",
"sql",
"query",
"find",
"object",
"(",
"object",
"[",
"]",
")",
"}",
"method",
"this",
"is",
"a",
"generic",
"method",
"to",
"execute",
"a",
"query",
",",
"taken",
"a",
"number",
"of",
"arguments"
] |
[
"public",
"object",
"run",
"generic",
"(",
"object",
"[",
"]",
"parameters",
")",
"{",
"return",
"find",
"object",
"(",
"parameters",
")",
";",
"}"
] |
[
"read",
"the",
"sampled",
"records"
] |
[
"public",
"list",
"<",
"selected",
"record",
">",
"read",
"sampled",
"records",
"(",
"top",
"n",
"condition",
"condition",
",",
"duration",
"duration",
")",
"throws",
"i",
"o",
"exception",
"{",
"if",
"(",
"metrics",
"type",
"unknown",
"equals",
"(",
"type",
"of",
"metrics",
"(",
"condition",
"get",
"name",
"(",
")",
")",
")",
")",
"{",
"return",
"collections",
"empty",
"list",
"(",
")",
";",
"}",
"return",
"get",
"top",
"n",
"records",
"query",
"service",
"(",
")",
"read",
"sampled",
"records",
"(",
"condition",
",",
"duration",
")",
";",
"}"
] |
[
"get",
"a",
"required",
"gauge",
"statistic"
] |
[
"public",
"static",
"long",
"lookup",
"gauge",
"statistic",
"(",
"final",
"i",
"o",
"statistics",
"stats",
",",
"final",
"string",
"key",
")",
"{",
"return",
"lookup",
"statistic",
"(",
"gauge",
",",
"key",
",",
"verify",
"statistics",
"not",
"null",
"(",
"stats",
")",
"gauges",
"(",
")",
")",
";",
"}"
] |
[
"(",
"optional",
")",
"if",
"implemented",
",",
"is",
"called",
"if",
"the",
"service",
"is",
"stopped",
"or",
"unable",
"to",
"schedule",
"the",
"request"
] |
[
"public",
"void",
"cleanup",
"(",
")",
"{",
"}"
] |
[
"see",
"{",
"@",
"link",
"mockito",
"#",
"verify",
"(",
"object",
",",
"verification",
"mode",
")",
"}"
] |
[
"void",
"verify",
"(",
"verification",
"mode",
"mode",
",",
"verification",
"verification",
")",
";"
] |
[
"convert",
"the",
"given",
"object",
"to",
"string",
"with",
"each",
"line",
"indented",
"by",
"4",
"spaces",
"(",
"except",
"the",
"first",
"line",
")"
] |
[
"private",
"string",
"to",
"indented",
"string",
"(",
"object",
"o",
")",
"{",
"if",
"(",
"o",
"=",
"=",
"null",
")",
"{",
"return",
"\"",
"null",
"\"",
";",
"}",
"return",
"o",
"to",
"string",
"(",
")",
"replace",
"(",
"\"",
"\\",
"n",
"\"",
",",
"\"",
"\\",
"n",
"\"",
")",
";",
"}"
] |
[
"renames",
"the",
"fields",
"of",
"the",
"expression",
"result",
"use",
"this",
"to",
"disambiguate",
"fields",
"before",
"joining",
"to",
"operations",
"example",
":",
"{",
"@",
"code",
"tab",
"as",
"(",
"$",
"(",
"\"",
"a",
"\"",
")",
",",
"$",
"(",
"\"",
"b",
"\"",
")",
")",
"}",
"scala",
"example",
":",
"{",
"@",
"code",
"tab",
"as",
"(",
"$",
"\"",
"a",
"\"",
",",
"$",
"\"",
"b",
"\"",
")",
"}"
] |
[
"table",
"as",
"(",
"expression",
"fields",
")",
";"
] |
[
"{",
"@",
"inherit",
"doc",
"}"
] |
[
"public",
"prepared",
"statement",
"prepare",
"statement",
"(",
"string",
"sql",
")",
"throws",
"s",
"q",
"l",
"exception",
"{",
"return",
"proxy",
"factory",
"get",
"proxy",
"prepared",
"statement",
"(",
"this",
",",
"track",
"statement",
"(",
"delegate",
"prepare",
"statement",
"(",
"sql",
")",
")",
")",
";",
"}"
] |
[
"util",
"method",
"to",
"build",
"socket",
"addr",
"from",
"either",
":",
"{",
"@",
"literal",
"<",
"host",
">",
"}",
"{",
"@",
"literal",
"<",
"host",
">",
":",
"<",
"port",
">",
"}",
"{",
"@",
"literal",
"<",
"fs",
">",
":",
"<",
"host",
">",
":",
"<",
"port",
">",
"<",
"path",
">",
"}"
] |
[
"public",
"static",
"inet",
"socket",
"address",
"create",
"socket",
"addr",
"(",
"string",
"target",
",",
"int",
"default",
"port",
")",
"{",
"return",
"create",
"socket",
"addr",
"(",
"target",
",",
"default",
"port",
",",
"null",
")",
";",
"}"
] |
[
"provides",
"the",
"name",
"of",
"the",
"connector"
] |
[
"public",
"string",
"name",
"(",
")",
"{",
"return",
"name",
";",
"}"
] |
[
"called",
"by",
"the",
"container",
"activity",
"in",
"its",
"{",
"@",
"link",
"activity",
"#",
"on",
"pause",
"}",
"so",
"that",
"local",
"activity",
"manager",
"can",
"perform",
"the",
"corresponding",
"action",
"on",
"the",
"activities",
"it",
"holds"
] |
[
"public",
"void",
"dispatch",
"pause",
"(",
"boolean",
"finishing",
")",
"{",
"if",
"(",
"finishing",
")",
"{",
"m",
"finishing",
"=",
"true",
";",
"}",
"m",
"cur",
"state",
"=",
"started",
";",
"if",
"(",
"m",
"single",
"mode",
")",
"{",
"if",
"(",
"m",
"resumed",
"!",
"=",
"null",
")",
"{",
"move",
"to",
"state",
"(",
"m",
"resumed",
",",
"started",
")",
";",
"}",
"}",
"else",
"{",
"final",
"int",
"n",
"=",
"m",
"activity",
"array",
"size",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"n",
";",
"i",
"+",
"+",
")",
"{",
"local",
"activity",
"record",
"r",
"=",
"m",
"activity",
"array",
"get",
"(",
"i",
")",
";",
"if",
"(",
"r",
"cur",
"state",
"=",
"=",
"resumed",
")",
"{",
"move",
"to",
"state",
"(",
"r",
",",
"started",
")",
";",
"}",
"}",
"}",
"}"
] |
[
"adapt",
"for",
"the",
"vertical",
"screen",
",",
"and",
"call",
"it",
"in",
"{",
"@",
"link",
"android",
"app",
"activity",
"#",
"get",
"resources",
"(",
")",
"}"
] |
[
"public",
"static",
"resources",
"adapt",
"height",
"(",
"final",
"resources",
"resources",
",",
"final",
"int",
"design",
"height",
",",
"final",
"boolean",
"include",
"nav",
"bar",
")",
"{",
"float",
"screen",
"height",
"=",
"(",
"resources",
"get",
"display",
"metrics",
"(",
")",
"height",
"pixels",
"+",
"(",
"include",
"nav",
"bar",
"?",
"get",
"nav",
"bar",
"height",
"(",
"resources",
")",
":",
"0",
")",
")",
"*",
"7",
"2f",
";",
"float",
"new",
"xdpi",
"=",
"screen",
"height",
"/",
"design",
"height",
";",
"apply",
"display",
"metrics",
"(",
"resources",
",",
"new",
"xdpi",
")",
";",
"return",
"resources",
";",
"}"
] |
[
"get",
"the",
"routing",
"value",
"to",
"control",
"the",
"shards",
"that",
"the",
"search",
"will",
"be",
"executed",
"on"
] |
[
"public",
"string",
"get",
"routing",
"(",
")",
"{",
"return",
"this",
"search",
"request",
"routing",
"(",
")",
";",
"}"
] |
[
"check",
"an",
"existing",
"exports",
"file",
"to",
"verify",
"that",
"it",
"corresponds",
"to",
"the",
"specified",
"library",
"file"
] |
[
"static",
"boolean",
"has",
"file",
"and",
"path",
"and",
"time",
"stamp",
"match",
"(",
"resource",
"file",
"exports",
"file",
",",
"file",
"library",
"file",
")",
"throws",
"parse",
"exception",
",",
"s",
"a",
"x",
"exception",
",",
"i",
"o",
"exception",
"{",
"if",
"(",
"exports",
"file",
"=",
"=",
"null",
"|",
"|",
"!",
"exports",
"file",
"exists",
"(",
")",
")",
"{",
"return",
"false",
";",
"}",
"/",
"/",
"todo",
":",
"should",
"consider",
"checking",
"version",
"instead",
"of",
"last",
"modified",
"xml",
"pull",
"parser",
"parser",
"=",
"xml",
"pull",
"parser",
"factory",
"create",
"(",
"exports",
"file",
",",
"error",
"handler",
",",
"false",
")",
";",
"try",
"{",
"xml",
"element",
"start",
"=",
"parser",
"start",
"(",
"\"",
"library",
"\"",
")",
";",
"string",
"path",
"=",
"start",
"get",
"attribute",
"(",
"\"",
"path",
"\"",
")",
";",
"string",
"date",
"string",
"=",
"start",
"get",
"attribute",
"(",
"\"",
"date",
"\"",
")",
";",
"date",
"date",
"=",
"timestamp",
"format",
"parse",
"(",
"date",
"string",
")",
";",
"long",
"last",
"modified",
"seconds",
"=",
"(",
"library",
"file",
"last",
"modified",
"(",
")",
"/",
"1000",
")",
"*",
"1000",
";",
"/",
"/",
"file",
"time",
"in",
"seconds",
"return",
"date",
"equals",
"(",
"new",
"date",
"(",
"last",
"modified",
"seconds",
")",
")",
"&",
"&",
"path",
"equals",
"ignore",
"case",
"(",
"library",
"file",
"get",
"absolute",
"path",
"(",
")",
")",
";",
"}",
"finally",
"{",
"parser",
"dispose",
"(",
")",
";",
"}",
"}"
] |
[
"get",
"base",
"apk",
"file",
"list"
] |
[
"public",
"apk",
"file",
"list",
"get",
"base",
"apk",
"file",
"list",
"(",
")",
"{",
"string",
"base",
"apk",
"file",
"list",
"str",
"=",
"null",
";",
"try",
"{",
"if",
"(",
"null",
"!",
"=",
"(",
"(",
"tpatch",
"input",
")",
"input",
")",
"base",
"apk",
"file",
"list",
"&",
"&",
"(",
"(",
"tpatch",
"input",
")",
"input",
")",
"base",
"apk",
"file",
"list",
"exists",
"(",
")",
")",
"{",
"base",
"apk",
"file",
"list",
"str",
"=",
"file",
"utils",
"read",
"file",
"to",
"string",
"(",
"(",
"(",
"tpatch",
"input",
")",
"input",
")",
"base",
"apk",
"file",
"list",
")",
";",
"if",
"(",
"string",
"utils",
"is",
"none",
"blank",
"(",
"base",
"apk",
"file",
"list",
"str",
")",
")",
"{",
"return",
"json",
"parse",
"object",
"(",
"base",
"apk",
"file",
"list",
"str",
",",
"apk",
"file",
"list",
"class",
")",
";",
"}",
"}",
"}",
"catch",
"(",
"i",
"o",
"exception",
"e",
")",
"{",
"}",
"return",
"null",
";",
"}"
] |
[
"visits",
"a",
"symbol",
"expression",
"which",
"covers",
"static",
"types",
",",
"partial",
"canonical",
"types",
",",
"and",
"variables",
"checks",
":",
"type",
"checking",
",",
"type",
"resolution",
",",
"variable",
"resolution"
] |
[
"public",
"void",
"visit",
"symbol",
"(",
"e",
"symbol",
"user",
"symbol",
"node",
",",
"semantic",
"scope",
"semantic",
"scope",
")",
"{",
"boolean",
"read",
"=",
"semantic",
"scope",
"get",
"condition",
"(",
"user",
"symbol",
"node",
",",
"read",
"class",
")",
";",
"boolean",
"write",
"=",
"semantic",
"scope",
"get",
"condition",
"(",
"user",
"symbol",
"node",
",",
"write",
"class",
")",
";",
"string",
"symbol",
"=",
"user",
"symbol",
"node",
"get",
"symbol",
"(",
")",
";",
"class",
"<",
"?",
">",
"static",
"type",
"=",
"semantic",
"scope",
"get",
"script",
"scope",
"(",
")",
"get",
"painless",
"lookup",
"(",
")",
"canonical",
"type",
"name",
"to",
"type",
"(",
"symbol",
")",
";",
"if",
"(",
"static",
"type",
"!",
"=",
"null",
")",
"{",
"if",
"(",
"write",
")",
"{",
"throw",
"user",
"symbol",
"node",
"create",
"error",
"(",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"invalid",
"assignment",
":",
"\"",
"+",
"\"",
"cannot",
"write",
"a",
"value",
"to",
"a",
"static",
"type",
"[",
"\"",
"+",
"painless",
"lookup",
"utility",
"type",
"to",
"canonical",
"type",
"name",
"(",
"static",
"type",
")",
"+",
"\"",
"]",
"\"",
")",
")",
";",
"}",
"if",
"(",
"read",
"=",
"=",
"false",
")",
"{",
"throw",
"user",
"symbol",
"node",
"create",
"error",
"(",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"not",
"a",
"statement",
":",
"\"",
"+",
"\"",
"static",
"type",
"[",
"\"",
"+",
"painless",
"lookup",
"utility",
"type",
"to",
"canonical",
"type",
"name",
"(",
"static",
"type",
")",
"+",
"\"",
"]",
"not",
"used",
"\"",
")",
")",
";",
"}",
"semantic",
"scope",
"put",
"decoration",
"(",
"user",
"symbol",
"node",
",",
"new",
"static",
"type",
"(",
"static",
"type",
")",
")",
";",
"}",
"else",
"if",
"(",
"semantic",
"scope",
"is",
"variable",
"defined",
"(",
"symbol",
")",
")",
"{",
"if",
"(",
"read",
"=",
"=",
"false",
"&",
"&",
"write",
"=",
"=",
"false",
")",
"{",
"throw",
"user",
"symbol",
"node",
"create",
"error",
"(",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"not",
"a",
"statement",
":",
"variable",
"[",
"\"",
"+",
"symbol",
"+",
"\"",
"]",
"not",
"used",
"\"",
")",
")",
";",
"}",
"location",
"location",
"=",
"user",
"symbol",
"node",
"get",
"location",
"(",
")",
";",
"variable",
"variable",
"=",
"semantic",
"scope",
"get",
"variable",
"(",
"location",
",",
"symbol",
")",
";",
"if",
"(",
"write",
"&",
"&",
"variable",
"is",
"final",
"(",
")",
")",
"{",
"throw",
"user",
"symbol",
"node",
"create",
"error",
"(",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"variable",
"[",
"\"",
"+",
"variable",
"get",
"name",
"(",
")",
"+",
"\"",
"]",
"is",
"read",
"-",
"only",
"\"",
")",
")",
";",
"}",
"class",
"<",
"?",
">",
"value",
"type",
"=",
"variable",
"get",
"type",
"(",
")",
";",
"semantic",
"scope",
"put",
"decoration",
"(",
"user",
"symbol",
"node",
",",
"new",
"value",
"type",
"(",
"value",
"type",
")",
")",
";",
"}",
"else",
"{",
"semantic",
"scope",
"put",
"decoration",
"(",
"user",
"symbol",
"node",
",",
"new",
"partial",
"canonical",
"type",
"name",
"(",
"symbol",
")",
")",
";",
"}",
"}"
] |
[
"any",
"symbols",
"this",
"file",
"auto",
"-",
"generatesexports",
"(",
"eg",
"&",
"#",
"64",
";",
"+",
"idfoo",
"in",
"an",
"xml",
"file",
")",
"<",
"code",
">",
"repeated",
"aapt",
"pb",
"internal",
"compiled",
"file",
"symbol",
"exported",
"symbol",
"=",
"4",
";",
"<",
"code",
">"
] |
[
"public",
"builder",
"add",
"all",
"exported",
"symbol",
"(",
"iterable",
"<",
"?",
"extends",
"symbol",
">",
"values",
")",
"{",
"copy",
"on",
"write",
"(",
")",
";",
"instance",
"add",
"all",
"exported",
"symbol",
"(",
"values",
")",
";",
"return",
"this",
";",
"}"
] |
[
"exposes",
"the",
"underlying",
"config",
"option",
"on",
"{",
"@",
"link",
"javax",
"websocket",
"server",
"server",
"container",
"#",
"set",
"default",
"max",
"text",
"message",
"buffer",
"size",
"(",
"int",
")",
"}"
] |
[
"public",
"void",
"set",
"max",
"text",
"message",
"buffer",
"size",
"(",
"integer",
"buffer",
"size",
")",
"{",
"this",
"max",
"text",
"message",
"buffer",
"size",
"=",
"buffer",
"size",
";",
"}"
] |
[
"returns",
"the",
"value",
"associated",
"with",
"the",
"given",
"config",
"option",
"as",
"an",
"enum"
] |
[
"public",
"<",
"t",
"extends",
"enum",
"<",
"t",
">",
">",
"t",
"get",
"enum",
"(",
"final",
"class",
"<",
"t",
">",
"enum",
"class",
",",
"final",
"config",
"option",
"<",
"string",
">",
"config",
"option",
")",
"{",
"check",
"not",
"null",
"(",
"enum",
"class",
",",
"\"",
"enum",
"class",
"must",
"not",
"be",
"null",
"\"",
")",
";",
"check",
"not",
"null",
"(",
"config",
"option",
",",
"\"",
"config",
"option",
"must",
"not",
"be",
"null",
"\"",
")",
";",
"object",
"raw",
"value",
"=",
"get",
"raw",
"value",
"from",
"option",
"(",
"config",
"option",
")",
"or",
"else",
"get",
"(",
"config",
"option",
":",
":",
"default",
"value",
")",
";",
"try",
"{",
"return",
"configuration",
"utils",
"convert",
"to",
"enum",
"(",
"raw",
"value",
",",
"enum",
"class",
")",
";",
"}",
"catch",
"(",
"illegal",
"argument",
"exception",
"ex",
")",
"{",
"final",
"string",
"error",
"message",
"=",
"string",
"format",
"(",
"\"",
"value",
"for",
"config",
"option",
"%",
"s",
"must",
"be",
"one",
"of",
"%",
"s",
"(",
"was",
"%",
"s",
")",
"\"",
",",
"config",
"option",
"key",
"(",
")",
",",
"arrays",
"to",
"string",
"(",
"enum",
"class",
"get",
"enum",
"constants",
"(",
")",
")",
",",
"raw",
"value",
")",
";",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"error",
"message",
")",
";",
"}",
"}"
] |
[
"returns",
"the",
"angle",
"relative",
"to",
"the",
"chart",
"center",
"for",
"the",
"given",
"point",
"on",
"the",
"chart",
"in",
"degrees",
"the",
"angle",
"is",
"always",
"between",
"0",
"and",
"360",
"°",
",",
"0",
"°",
"is",
"north",
",",
"90",
"°",
"is",
"east",
","
] |
[
"public",
"float",
"get",
"angle",
"for",
"point",
"(",
"float",
"x",
",",
"float",
"y",
")",
"{",
"m",
"p",
"point",
"f",
"c",
"=",
"get",
"center",
"offsets",
"(",
")",
";",
"double",
"tx",
"=",
"x",
"-",
"c",
"x",
",",
"ty",
"=",
"y",
"-",
"c",
"y",
";",
"double",
"length",
"=",
"math",
"sqrt",
"(",
"tx",
"*",
"tx",
"+",
"ty",
"*",
"ty",
")",
";",
"double",
"r",
"=",
"math",
"acos",
"(",
"ty",
"/",
"length",
")",
";",
"float",
"angle",
"=",
"(",
"float",
")",
"math",
"to",
"degrees",
"(",
"r",
")",
";",
"if",
"(",
"x",
">",
"c",
"x",
")",
"angle",
"=",
"3",
"6",
"0f",
"-",
"angle",
";",
"/",
"/",
"add",
"90",
"°",
"because",
"chart",
"starts",
"east",
"angle",
"=",
"angle",
"+",
"9",
"0f",
";",
"/",
"/",
"neutralize",
"overflow",
"if",
"(",
"angle",
">",
"3",
"6",
"0f",
")",
"angle",
"=",
"angle",
"-",
"3",
"6",
"0f",
";",
"m",
"p",
"point",
"f",
"recycle",
"instance",
"(",
"c",
")",
";",
"return",
"angle",
";",
"}"
] |
[
"sets",
"the",
"bytecode",
"offset",
"of",
"this",
"label",
"to",
"the",
"given",
"value",
"and",
"resolves",
"the",
"forward",
"references",
"to",
"this",
"label",
",",
"if",
"any",
"this",
"method",
"must",
"be",
"called",
"when",
"this",
"label",
"is",
"added",
"to",
"the",
"bytecode",
"of",
"the",
"method",
",",
"i",
"e",
"when",
"its",
"bytecode",
"offset",
"becomes",
"known",
"this",
"method",
"fills",
"in",
"the",
"blanks",
"that",
"where",
"left",
"in",
"the",
"bytecode",
"by",
"each",
"forward",
"reference",
"previously",
"added",
"to",
"this",
"label"
] |
[
"final",
"boolean",
"resolve",
"(",
"final",
"byte",
"[",
"]",
"code",
",",
"final",
"int",
"bytecode",
"offset",
")",
"{",
"this",
"flags",
"|",
"=",
"flag",
"resolved",
";",
"this",
"bytecode",
"offset",
"=",
"bytecode",
"offset",
";",
"if",
"(",
"forward",
"references",
"=",
"=",
"null",
")",
"{",
"return",
"false",
";",
"}",
"boolean",
"has",
"asm",
"instructions",
"=",
"false",
";",
"for",
"(",
"int",
"i",
"=",
"forward",
"references",
"[",
"0",
"]",
";",
"i",
">",
"0",
";",
"i",
"-",
"=",
"2",
")",
"{",
"final",
"int",
"source",
"insn",
"bytecode",
"offset",
"=",
"forward",
"references",
"[",
"i",
"-",
"1",
"]",
";",
"final",
"int",
"reference",
"=",
"forward",
"references",
"[",
"i",
"]",
";",
"final",
"int",
"relative",
"offset",
"=",
"bytecode",
"offset",
"-",
"source",
"insn",
"bytecode",
"offset",
";",
"int",
"handle",
"=",
"reference",
"&",
"forward",
"reference",
"handle",
"mask",
";",
"if",
"(",
"(",
"reference",
"&",
"forward",
"reference",
"type",
"mask",
")",
"=",
"=",
"forward",
"reference",
"type",
"short",
")",
"{",
"if",
"(",
"relative",
"offset",
"<",
"short",
"min",
"value",
"|",
"|",
"relative",
"offset",
">",
"short",
"max",
"value",
")",
"{",
"/",
"/",
"change",
"the",
"opcode",
"of",
"the",
"jump",
"instruction",
",",
"in",
"order",
"to",
"be",
"able",
"to",
"find",
"it",
"later",
"in",
"/",
"/",
"class",
"reader",
"these",
"asm",
"specific",
"opcodes",
"are",
"similar",
"to",
"jump",
"instruction",
"opcodes",
",",
"except",
"/",
"/",
"that",
"the",
"2",
"bytes",
"offset",
"is",
"unsigned",
"(",
"and",
"can",
"therefore",
"represent",
"values",
"from",
"0",
"to",
"/",
"/",
"65535",
",",
"which",
"is",
"sufficient",
"since",
"the",
"size",
"of",
"a",
"method",
"is",
"limited",
"to",
"65535",
"bytes",
")",
"int",
"opcode",
"=",
"code",
"[",
"source",
"insn",
"bytecode",
"offset",
"]",
"&",
"0x",
"f",
"f",
";",
"if",
"(",
"opcode",
"<",
"opcodes",
"ifnull",
")",
"{",
"/",
"/",
"change",
"ifeq",
"jsr",
"to",
"asm",
"ifeq",
"asm",
"jsr",
"code",
"[",
"source",
"insn",
"bytecode",
"offset",
"]",
"=",
"(",
"byte",
")",
"(",
"opcode",
"+",
"constants",
"asm",
"opcode",
"delta",
")",
";",
"}",
"else",
"{",
"/",
"/",
"change",
"ifnull",
"and",
"ifnonnull",
"to",
"asm",
"ifnull",
"and",
"asm",
"ifnonnull",
"code",
"[",
"source",
"insn",
"bytecode",
"offset",
"]",
"=",
"(",
"byte",
")",
"(",
"opcode",
"+",
"constants",
"asm",
"ifnull",
"opcode",
"delta",
")",
";",
"}",
"has",
"asm",
"instructions",
"=",
"true",
";",
"}",
"code",
"[",
"handle",
"+",
"+",
"]",
"=",
"(",
"byte",
")",
"(",
"relative",
"offset",
">",
">",
">",
"8",
")",
";",
"code",
"[",
"handle",
"]",
"=",
"(",
"byte",
")",
"relative",
"offset",
";",
"}",
"else",
"{",
"code",
"[",
"handle",
"+",
"+",
"]",
"=",
"(",
"byte",
")",
"(",
"relative",
"offset",
">",
">",
">",
"24",
")",
";",
"code",
"[",
"handle",
"+",
"+",
"]",
"=",
"(",
"byte",
")",
"(",
"relative",
"offset",
">",
">",
">",
"16",
")",
";",
"code",
"[",
"handle",
"+",
"+",
"]",
"=",
"(",
"byte",
")",
"(",
"relative",
"offset",
">",
">",
">",
"8",
")",
";",
"code",
"[",
"handle",
"]",
"=",
"(",
"byte",
")",
"relative",
"offset",
";",
"}",
"}",
"return",
"has",
"asm",
"instructions",
";",
"}",
"/",
"/",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"/",
"/",
"methods",
"related",
"to",
"subroutines",
"/",
"/",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-"
] |
[
"given",
"an",
"index",
"in",
"the",
"range",
"<",
"code",
">",
"0",
"size",
"(",
")",
"-",
"1",
"<",
"code",
">",
",",
"returns",
"the",
"value",
"from",
"the",
"<",
"code",
">",
"index",
"<",
"code",
">",
"th",
"key",
"-",
"value",
"mapping",
"that",
"this",
"sparse",
"int",
"array",
"stores",
"the",
"values",
"corresponding",
"to",
"indices",
"in",
"ascending",
"order",
"are",
"guaranteed",
"to",
"be",
"associated",
"with",
"keys",
"in",
"ascending",
"order",
",",
"e",
"g",
",",
"<",
"code",
">",
"value",
"at",
"(",
"0",
")",
"<",
"code",
">",
"will",
"return",
"the",
"value",
"associated",
"with",
"the",
"smallest",
"key",
"and",
"<",
"code",
">",
"value",
"at",
"(",
"size",
"(",
")",
"-",
"1",
")",
"<",
"code",
">",
"will",
"return",
"the",
"value",
"associated",
"with",
"the",
"largest",
"key"
] |
[
"public",
"int",
"value",
"at",
"(",
"int",
"index",
")",
"{",
"return",
"m",
"values",
"[",
"index",
"]",
";",
"}"
] |
[
"test",
"the",
"property",
"'",
"client",
"'"
] |
[
"public",
"void",
"client",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"client",
"}"
] |
[
"serialize",
"this",
"object",
"as",
"xml",
"to",
"a",
"writer"
] |
[
"public",
"void",
"save",
"xml",
"(",
"writer",
"fwrite",
")",
"throws",
"i",
"o",
"exception",
"{",
"fwrite",
"append",
"(",
"\"",
"<",
"weightfactory",
"scale",
"=",
"\\",
"\"",
"\"",
")",
";",
"fwrite",
"append",
"(",
"double",
"to",
"string",
"(",
"scale",
")",
")",
";",
"fwrite",
"append",
"(",
"\"",
"\\",
"\"",
"addend",
"=",
"\\",
"\"",
"\"",
")",
";",
"fwrite",
"append",
"(",
"double",
"to",
"string",
"(",
"addend",
")",
")",
";",
"fwrite",
"append",
"(",
"\"",
"\\",
"\"",
">",
"\\",
"n",
"\"",
")",
";",
"double",
"scale",
"sqrt",
"=",
"math",
"sqrt",
"(",
"scale",
")",
";",
"for",
"(",
"double",
"element",
":",
"idfweight",
")",
"{",
"fwrite",
"append",
"(",
"\"",
"<",
"idf",
">",
"\"",
")",
";",
"fwrite",
"append",
"(",
"double",
"to",
"string",
"(",
"element",
"/",
"scale",
"sqrt",
")",
")",
";",
"fwrite",
"append",
"(",
"\"",
"<",
"/",
"idf",
">",
"\\",
"n",
"\"",
")",
";",
"}",
"for",
"(",
"double",
"element",
":",
"tfweight",
")",
"{",
"fwrite",
"append",
"(",
"\"",
"<",
"tf",
">",
"\"",
")",
";",
"fwrite",
"append",
"(",
"double",
"to",
"string",
"(",
"element",
")",
")",
";",
"fwrite",
"append",
"(",
"\"",
"<",
"/",
"tf",
">",
"\\",
"n",
"\"",
")",
";",
"}",
"fwrite",
"append",
"(",
"\"",
"<",
"weightnorm",
">",
"\"",
")",
"append",
"(",
"double",
"to",
"string",
"(",
"weightnorm",
"*",
"scale",
")",
")",
"append",
"(",
"\"",
"<",
"/",
"weightnorm",
">",
"\\",
"n",
"\"",
")",
";",
"fwrite",
"append",
"(",
"\"",
"<",
"probflip",
"0",
">",
"\"",
")",
"append",
"(",
"double",
"to",
"string",
"(",
"probflip",
"0",
")",
")",
"append",
"(",
"\"",
"<",
"/",
"probflip",
"0",
">",
"\\",
"n",
"\"",
")",
";",
"fwrite",
"append",
"(",
"\"",
"<",
"probflip",
"1",
">",
"\"",
")",
"append",
"(",
"double",
"to",
"string",
"(",
"probflip",
"1",
")",
")",
"append",
"(",
"\"",
"<",
"/",
"probflip",
"1",
">",
"\\",
"n",
"\"",
")",
";",
"fwrite",
"append",
"(",
"\"",
"<",
"probdiff",
"0",
">",
"\"",
")",
"append",
"(",
"double",
"to",
"string",
"(",
"probdiff",
"0",
")",
")",
"append",
"(",
"\"",
"<",
"/",
"probdiff",
"0",
">",
"\\",
"n",
"\"",
")",
";",
"fwrite",
"append",
"(",
"\"",
"<",
"probdiff",
"1",
">",
"\"",
")",
"append",
"(",
"double",
"to",
"string",
"(",
"probdiff",
"1",
")",
")",
"append",
"(",
"\"",
"<",
"/",
"probdiff",
"1",
">",
"\\",
"n",
"\"",
")",
";",
"fwrite",
"append",
"(",
"\"",
"<",
"weightfactory",
">",
"\\",
"n",
"\"",
")",
";",
"}"
] |
[
"append",
"formatted",
"time",
"string",
"to",
"the",
"string",
"buffer"
] |
[
"private",
"static",
"final",
"void",
"append",
"time",
"string",
"(",
"string",
"buffer",
"buf",
",",
"calendar",
"cal",
",",
"boolean",
"need",
"space",
")",
"{",
"final",
"int",
"hour",
"=",
"cal",
"get",
"(",
"calendar",
"hour",
"of",
"day",
")",
";",
"final",
"int",
"minute",
"=",
"cal",
"get",
"(",
"calendar",
"minute",
")",
";",
"final",
"int",
"second",
"=",
"cal",
"get",
"(",
"calendar",
"second",
")",
";",
"final",
"int",
"milli",
"=",
"cal",
"get",
"(",
"calendar",
"millisecond",
")",
";",
"if",
"(",
"hour",
"!",
"=",
"0",
"|",
"|",
"minute",
"!",
"=",
"0",
"|",
"|",
"second",
"!",
"=",
"0",
"|",
"|",
"milli",
"!",
"=",
"0",
")",
"{",
"if",
"(",
"need",
"space",
")",
"{",
"buf",
"append",
"(",
"'",
"'",
")",
";",
"}",
"if",
"(",
"hour",
"<",
"10",
")",
"{",
"buf",
"append",
"(",
"'",
"'",
")",
";",
"}",
"buf",
"append",
"(",
"hour",
")",
";",
"if",
"(",
"minute",
"<",
"10",
")",
"{",
"buf",
"append",
"(",
"\"",
":",
"0",
"\"",
")",
";",
"}",
"else",
"{",
"buf",
"append",
"(",
"'",
":",
"'",
")",
";",
"}",
"buf",
"append",
"(",
"minute",
")",
";",
"if",
"(",
"second",
"!",
"=",
"0",
"|",
"|",
"milli",
"!",
"=",
"0",
")",
"{",
"if",
"(",
"second",
"<",
"10",
")",
"{",
"buf",
"append",
"(",
"\"",
":",
"0",
"\"",
")",
";",
"}",
"else",
"{",
"buf",
"append",
"(",
"'",
":",
"'",
")",
";",
"}",
"buf",
"append",
"(",
"second",
")",
";",
"if",
"(",
"milli",
"!",
"=",
"0",
")",
"{",
"if",
"(",
"milli",
"<",
"10",
")",
"{",
"buf",
"append",
"(",
"\"",
"00",
"\"",
")",
";",
"}",
"else",
"if",
"(",
"milli",
"<",
"100",
")",
"{",
"buf",
"append",
"(",
"\"",
"0",
"\"",
")",
";",
"}",
"else",
"{",
"buf",
"append",
"(",
"'",
"'",
")",
";",
"}",
"buf",
"append",
"(",
"milli",
")",
";",
"}",
"}",
"}",
"time",
"zone",
"tz",
"=",
"cal",
"get",
"time",
"zone",
"(",
")",
";",
"if",
"(",
"tz",
"get",
"raw",
"offset",
"(",
")",
"=",
"=",
"0",
")",
"{",
"buf",
"append",
"(",
"\"",
"gmt",
"\"",
")",
";",
"}",
"else",
"{",
"buf",
"append",
"(",
"'",
"'",
")",
";",
"int",
"offset",
"=",
"tz",
"get",
"raw",
"offset",
"(",
")",
"/",
"(",
"60",
"*",
"1000",
")",
";",
"if",
"(",
"offset",
"<",
"0",
")",
"{",
"buf",
"append",
"(",
"'",
"-",
"'",
")",
";",
"offset",
"=",
"-",
"offset",
";",
"}",
"else",
"{",
"buf",
"append",
"(",
"'",
"+",
"'",
")",
";",
"}",
"int",
"hr",
"off",
"=",
"offset",
"/",
"60",
";",
"if",
"(",
"hr",
"off",
"<",
"10",
")",
"{",
"buf",
"append",
"(",
"'",
"0",
"'",
")",
";",
"}",
"buf",
"append",
"(",
"hr",
"off",
")",
";",
"buf",
"append",
"(",
"'",
":",
"'",
")",
";",
"int",
"min",
"off",
"=",
"offset",
"%",
"60",
";",
"if",
"(",
"min",
"off",
"<",
"10",
")",
"{",
"buf",
"append",
"(",
"'",
"0",
"'",
")",
";",
"}",
"buf",
"append",
"(",
"min",
"off",
")",
";",
"}",
"}"
] |
[
"route",
"to",
"a",
"built",
"router",
"function",
"if",
"the",
"given",
"request",
"predicate",
"applies",
"this",
"method",
"can",
"be",
"used",
"to",
"create",
"nested",
"routes",
",",
"where",
"a",
"group",
"of",
"routes",
"share",
"a",
"common",
"path",
"(",
"prefix",
")",
",",
"header",
",",
"or",
"other",
"request",
"predicate",
"for",
"instance",
",",
"the",
"following",
"example",
"creates",
"a",
"nested",
"route",
"with",
"a",
"\"",
"user",
"\"",
"path",
"predicate",
",",
"so",
"that",
"get",
"requests",
"for",
"\"",
"user",
"\"",
"will",
"list",
"users",
",",
"and",
"post",
"request",
"for",
"\"",
"user",
"\"",
"will",
"create",
"a",
"new",
"user",
"<",
"pre",
"class",
"=",
"\"",
"code",
"\"",
">",
"router",
"function",
"&",
"lt",
";",
"server",
"response",
"&",
"gt",
";",
"nested",
"route",
"=",
"router",
"functions",
"route",
"(",
")",
"nest",
"(",
"request",
"predicates",
"path",
"(",
"\"",
"user",
"\"",
")",
",",
"builder",
"-",
">",
"builder",
"get",
"(",
"this",
":",
":",
"list",
"users",
")",
"post",
"(",
"this",
":",
":",
"create",
"user",
")",
")",
"build",
"(",
")",
";"
] |
[
"builder",
"nest",
"(",
"request",
"predicate",
"predicate",
",",
"consumer",
"<",
"builder",
">",
"builder",
"consumer",
")",
";"
] |
[
"a",
"settings",
"that",
"are",
"filtered",
"(",
"and",
"key",
"is",
"removed",
")",
"with",
"the",
"specified",
"prefix"
] |
[
"public",
"settings",
"get",
"by",
"prefix",
"(",
"string",
"prefix",
")",
"{",
"return",
"new",
"settings",
"(",
"new",
"filtered",
"map",
"(",
"this",
"settings",
",",
"(",
"k",
")",
"-",
">",
"k",
"starts",
"with",
"(",
"prefix",
")",
",",
"prefix",
")",
",",
"secure",
"settings",
"=",
"=",
"null",
"?",
"null",
":",
"new",
"prefixed",
"secure",
"settings",
"(",
"secure",
"settings",
",",
"prefix",
",",
"s",
"-",
">",
"s",
"starts",
"with",
"(",
"prefix",
")",
")",
")",
";",
"}"
] |
[
"get",
"the",
"cron",
"tasks",
"as",
"an",
"unmodifiable",
"list",
"of",
"{",
"@",
"link",
"cron",
"task",
"}",
"objects"
] |
[
"public",
"list",
"<",
"cron",
"task",
">",
"get",
"cron",
"task",
"list",
"(",
")",
"{",
"return",
"(",
"this",
"cron",
"tasks",
"!",
"=",
"null",
"?",
"collections",
"unmodifiable",
"list",
"(",
"this",
"cron",
"tasks",
")",
":",
"collections",
"empty",
"list",
"(",
")",
")",
";",
"}"
] |
[
"test",
"the",
"property",
"'",
"id",
"'"
] |
[
"public",
"void",
"id",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"id",
"}"
] |
[
"generates",
"test",
"data",
"of",
"the",
"given",
"size",
"according",
"to",
"some",
"specific",
"pattern",
"and",
"writes",
"it",
"to",
"the",
"provided",
"output",
"file"
] |
[
"public",
"static",
"long",
"generate",
"test",
"file",
"(",
"file",
"system",
"fs",
",",
"path",
"path",
",",
"final",
"long",
"size",
",",
"final",
"int",
"buffer",
"len",
",",
"final",
"int",
"modulus",
")",
"throws",
"i",
"o",
"exception",
"{",
"final",
"byte",
"[",
"]",
"test",
"buffer",
"=",
"new",
"byte",
"[",
"buffer",
"len",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"test",
"buffer",
"length",
";",
"+",
"+",
"i",
")",
"{",
"test",
"buffer",
"[",
"i",
"]",
"=",
"(",
"byte",
")",
"(",
"i",
"%",
"modulus",
")",
";",
"}",
"long",
"bytes",
"written",
"=",
"0",
";",
"try",
"(",
"output",
"stream",
"output",
"stream",
"=",
"fs",
"create",
"(",
"path",
",",
"false",
")",
")",
"{",
"while",
"(",
"bytes",
"written",
"<",
"size",
")",
"{",
"final",
"long",
"diff",
"=",
"size",
"-",
"bytes",
"written",
";",
"if",
"(",
"diff",
"<",
"test",
"buffer",
"length",
")",
"{",
"output",
"stream",
"write",
"(",
"test",
"buffer",
",",
"0",
",",
"(",
"int",
")",
"diff",
")",
";",
"bytes",
"written",
"+",
"=",
"diff",
";",
"}",
"else",
"{",
"output",
"stream",
"write",
"(",
"test",
"buffer",
")",
";",
"bytes",
"written",
"+",
"=",
"test",
"buffer",
"length",
";",
"}",
"}",
"return",
"bytes",
"written",
";",
"}",
"}"
] |
[
"retrieves",
",",
"but",
"does",
"not",
"remove",
",",
"the",
"first",
"element",
"of",
"this",
"deque",
"<",
"p",
">",
"this",
"method",
"differs",
"from",
"{",
"@",
"link",
"#",
"peek",
"first",
"peek",
"first",
"}",
"only",
"in",
"that",
"it",
"throws",
"an",
"exception",
"if",
"this",
"deque",
"is",
"empty"
] |
[
"e",
"get",
"first",
"(",
")",
";"
] |
[
"adds",
"each",
"element",
"of",
"{",
"@",
"code",
"elements",
"}",
"to",
"the",
"{",
"@",
"code",
"immutable",
"list",
"}"
] |
[
"public",
"builder",
"<",
"e",
">",
"add",
"all",
"(",
"iterable",
"<",
"?",
"extends",
"e",
">",
"elements",
")",
"{",
"check",
"not",
"null",
"(",
"elements",
")",
";",
"if",
"(",
"elements",
"instanceof",
"collection",
")",
"{",
"collection",
"<",
"?",
">",
"collection",
"=",
"(",
"collection",
"<",
"?",
">",
")",
"elements",
";",
"get",
"ready",
"to",
"expand",
"to",
"(",
"size",
"+",
"collection",
"size",
"(",
")",
")",
";",
"if",
"(",
"collection",
"instanceof",
"immutable",
"collection",
")",
"{",
"immutable",
"collection",
"<",
"?",
">",
"immutable",
"collection",
"=",
"(",
"immutable",
"collection",
"<",
"?",
">",
")",
"collection",
";",
"size",
"=",
"immutable",
"collection",
"copy",
"into",
"array",
"(",
"contents",
",",
"size",
")",
";",
"return",
"this",
";",
"}",
"}",
"super",
"add",
"all",
"(",
"elements",
")",
";",
"return",
"this",
";",
"}"
] |
[
"gets",
"the",
"type",
"table",
"for",
"this",
"region",
"'",
"s",
"frame"
] |
[
"public",
"l",
"s",
"d",
"a",
"type",
"table",
"get",
"type",
"table",
"(",
")",
"{",
"l",
"s",
"d",
"a",
"table",
"lsda",
"=",
"get",
"l",
"s",
"d",
"a",
"table",
"(",
")",
";",
"if",
"(",
"lsda",
"=",
"=",
"null",
")",
"{",
"return",
"null",
";",
"}",
"return",
"lsda",
"get",
"type",
"table",
"(",
")",
";",
"}"
] |
[
"returns",
"an",
"exception",
"for",
"an",
"invalid",
"call",
"to",
"a",
"function"
] |
[
"public",
"static",
"validation",
"exception",
"create",
"invalid",
"call",
"exception",
"(",
"call",
"context",
"call",
"context",
",",
"validation",
"exception",
"cause",
")",
"{",
"return",
"new",
"validation",
"exception",
"(",
"string",
"format",
"(",
"\"",
"invalid",
"function",
"call",
":",
"\\",
"n",
"%",
"s",
"(",
"%",
"s",
")",
"\"",
",",
"call",
"context",
"get",
"name",
"(",
")",
",",
"call",
"context",
"get",
"argument",
"data",
"types",
"(",
")",
"stream",
"(",
")",
"map",
"(",
"data",
"type",
":",
":",
"to",
"string",
")",
"collect",
"(",
"collectors",
"joining",
"(",
"\"",
",",
"\"",
")",
")",
")",
",",
"cause",
")",
";",
"}"
] |
[
"sql",
"<",
"code",
">",
"round",
"<",
"code",
">",
"operator",
"applied",
"to",
"long",
"values"
] |
[
"public",
"static",
"long",
"sround",
"(",
"long",
"b",
"0",
")",
"{",
"return",
"sround",
"(",
"b",
"0",
",",
"0",
")",
";",
"}"
] |
[
"make",
"an",
"assertion",
"count",
"about",
"the",
"number",
"of",
"open",
"operations"
] |
[
"private",
"void",
"assert",
"open",
"operation",
"count",
"(",
"long",
"expected",
")",
"{",
"assert",
"equals",
"(",
"\"",
"open",
"operations",
"in",
"\\",
"n",
"\"",
"+",
"in",
",",
"expected",
",",
"stream",
"statistics",
"get",
"open",
"operations",
"(",
")",
")",
";",
"}"
] |
[
"add",
"the",
"given",
"header",
"value",
"(",
"s",
")",
"under",
"the",
"given",
"name"
] |
[
"builder",
"header",
"(",
"string",
"header",
"name",
",",
"string",
"header",
"values",
")",
";"
] |
[
"build",
"registered",
"service",
"cache",
"key",
"string"
] |
[
"private",
"static",
"string",
"build",
"registered",
"service",
"cache",
"key",
"(",
"final",
"registered",
"service",
"registered",
"service",
")",
"{",
"val",
"key",
"=",
"registered",
"service",
"get",
"id",
"(",
")",
"+",
"'",
"@",
"'",
"+",
"registered",
"service",
"get",
"name",
"(",
")",
";",
"return",
"digest",
"utils",
"sha",
"5",
"1",
"2",
"(",
"key",
")",
";",
"}"
] |
[
"data",
"modify",
"transaction"
] |
[
"default",
"boolean",
"update",
"(",
"list",
"<",
"modify",
"request",
">",
"modify",
"requests",
")",
"{",
"return",
"update",
"(",
"modify",
"requests",
",",
"null",
")",
";",
"}"
] |
[
"returns",
"true",
"if",
"any",
"output",
"was",
"recorded"
] |
[
"public",
"boolean",
"has",
"recorded",
"output",
"(",
")",
"{",
"return",
"get",
"output",
"stream",
"(",
")",
"size",
"(",
")",
">",
"0",
"|",
"|",
"get",
"error",
"stream",
"(",
")",
"size",
"(",
")",
">",
"0",
";",
"}"
] |
[
"test",
"the",
"property",
"'",
"name",
"'"
] |
[
"public",
"void",
"name",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"name",
"}"
] |
[
"return",
"the",
"intent",
"of",
"share",
"image"
] |
[
"public",
"static",
"intent",
"get",
"share",
"text",
"image",
"intent",
"(",
"@",
"nullable",
"final",
"string",
"content",
",",
"final",
"string",
"image",
"path",
")",
"{",
"return",
"get",
"share",
"text",
"image",
"intent",
"(",
"content",
",",
"utils",
"bridge",
"get",
"file",
"by",
"path",
"(",
"image",
"path",
")",
")",
";",
"}"
] |
[
"returns",
"{",
"@",
"code",
"true",
"}",
"if",
"each",
"element",
"in",
"{",
"@",
"code",
"iterable",
"}",
"after",
"the",
"first",
"is",
"strictly",
"greater",
"than",
"the",
"element",
"that",
"preceded",
"it",
",",
"according",
"to",
"the",
"specified",
"comparator",
"note",
"that",
"this",
"is",
"always",
"true",
"when",
"the",
"iterable",
"has",
"fewer",
"than",
"two",
"elements"
] |
[
"public",
"static",
"<",
"t",
">",
"boolean",
"is",
"in",
"strict",
"order",
"(",
"iterable",
"<",
"?",
"extends",
"t",
">",
"iterable",
",",
"comparator",
"<",
"t",
">",
"comparator",
")",
"{",
"check",
"not",
"null",
"(",
"comparator",
")",
";",
"iterator",
"<",
"?",
"extends",
"t",
">",
"it",
"=",
"iterable",
"iterator",
"(",
")",
";",
"if",
"(",
"it",
"has",
"next",
"(",
")",
")",
"{",
"t",
"prev",
"=",
"it",
"next",
"(",
")",
";",
"while",
"(",
"it",
"has",
"next",
"(",
")",
")",
"{",
"t",
"next",
"=",
"it",
"next",
"(",
")",
";",
"if",
"(",
"comparator",
"compare",
"(",
"prev",
",",
"next",
")",
">",
"=",
"0",
")",
"{",
"return",
"false",
";",
"}",
"prev",
"=",
"next",
";",
"}",
"}",
"return",
"true",
";",
"}"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.