docstring_tokens
sequence | code_tokens
sequence |
---|---|
[
"return",
"the",
"dependency",
"with",
"the",
"specified",
"id",
"or",
"{"
] | [
"return",
"this",
"dependencies",
"get",
"(",
"id",
")",
";"
] |
[
"return",
"the",
"project",
"types",
"supported",
"by",
"the",
"service"
] | [
"return",
"this",
"project",
"types",
"get",
"content",
"(",
")",
";"
] |
[
"returns",
"the",
"defaults",
"applicable",
"to",
"the",
"service"
] | [
"return",
"this",
"defaults",
";"
] |
[
"checks",
"if",
"a",
"part",
"of",
"a",
"byte",
"array",
"matches",
"another",
"byte",
"array",
"with",
"chars",
"(",
"case",
"-",
"insensitive",
")"
] | [
"if",
"(",
"length",
"!",
"=",
"other",
"length",
")",
"{",
"return",
"false",
";",
"}",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"other",
"length",
";",
"i",
"+",
"+",
")",
"{",
"if",
"(",
"character",
"to",
"lower",
"case",
"(",
"source",
"[",
"i",
"+",
"start",
"]",
")",
"!",
"=",
"other",
"[",
"i",
"]",
")",
"{",
"return",
"false",
";",
"}",
"}",
"return",
"true",
";"
] |
[
"returns",
"the",
"last",
"known",
"sequence",
"number",
"for",
"these",
"changes"
] | [
"return",
"m",
"sequence",
"number",
";"
] |
[
"returns",
"the",
"names",
"of",
"packages",
"installed",
"on",
"the",
"system",
"<",
"p",
">",
"the",
"list",
"is",
"a",
"copy",
"-",
"in",
"-",
"time",
"and",
"the",
"actual",
"set",
"of",
"installed",
"packages",
"may",
"differ",
"real",
"time",
"updates",
"to",
"the",
"package",
"list",
"are",
"sent",
"via",
"the",
"{"
] | [
"return",
"m",
"package",
"names",
";"
] |
[
"get",
"a",
"list",
"of",
"variables",
"embedded",
"in",
"the",
"template",
"string"
] | [
"resolved",
"r",
"=",
"get",
"resolved",
"(",
"template",
",",
"cache",
",",
"pattern",
")",
";",
"if",
"(",
"r",
"=",
"=",
"null",
")",
"{",
"return",
"collections",
"empty",
"list",
"(",
")",
";",
"}",
"return",
"new",
"array",
"list",
"<",
">",
"(",
"r",
"variables",
")",
";"
] |
[
"validations",
"specific",
"to",
"put"
] | [
"boolean",
"result",
"=",
"false",
";",
"if",
"(",
"!",
"super",
"parse",
"and",
"validate",
"request",
"(",
")",
"|",
"|",
"!",
"has",
"vector",
"clock",
"(",
"this",
"is",
"vector",
"clock",
"optional",
")",
"|",
"|",
"!",
"has",
"content",
"length",
"(",
")",
"|",
"|",
"!",
"has",
"content",
"type",
"(",
")",
")",
"{",
"result",
"=",
"false",
";",
"}",
"else",
"{",
"result",
"=",
"true",
";",
"}",
"return",
"result",
";"
] |
[
"retrieve",
"the",
"value",
"from",
"the",
"rest",
"request",
"body"
] | [
"channel",
"buffer",
"content",
"=",
"this",
"request",
"get",
"content",
"(",
")",
";",
"this",
"parsed",
"value",
"=",
"new",
"byte",
"[",
"content",
"capacity",
"(",
")",
"]",
";",
"content",
"read",
"bytes",
"(",
"parsed",
"value",
")",
";"
] |
[
"{"
] | [
"get",
"spi",
"(",
")",
"set",
"listener",
"(",
"null",
")",
";"
] |
[
"{"
] | [
"get",
"spi",
"(",
")",
"set",
"listener",
"(",
"new",
"deployment",
"listener",
"(",
")",
"{",
"@",
"override",
"public",
"void",
"on",
"unregistered",
"(",
"class",
"loader",
"ldr",
")",
"{",
"tasks",
"remove",
"(",
"ldr",
")",
";",
"}",
"}",
")",
";"
] |
[
"{"
] | [
"tasks",
"clear",
"(",
")",
";"
] |
[
"{"
] | [
"return",
"null",
";"
] |
[
"convert",
"fcm",
"remote",
"message",
"s",
"map",
"into",
"legacy",
"gcm",
"bundle",
"to",
"keep",
"code",
"changes",
"to",
"a",
"minimum"
] | [
"bundle",
"bundle",
"=",
"new",
"bundle",
"(",
")",
";",
"for",
"(",
"map",
"entry",
"<",
"string",
",",
"string",
">",
"entry",
":",
"data",
"entry",
"set",
"(",
")",
")",
"{",
"bundle",
"put",
"string",
"(",
"entry",
"get",
"key",
"(",
")",
",",
"entry",
"get",
"value",
"(",
")",
")",
";",
"}",
"return",
"bundle",
";"
] |
[
"the",
"user",
"has",
"dismissed",
"the",
"app",
"by",
"swiping",
"it",
"off",
"the",
"screen"
] | [
"active",
"notifications",
"map",
"remove",
"(",
"notification",
"id",
")",
";"
] |
[
"note",
"i",
"d",
"is",
"the",
"id",
"if",
"the",
"note",
"in",
"word",
"press"
] | [
"for",
"(",
"iterator",
"<",
"map",
"entry",
"<",
"integer",
",",
"bundle",
">",
">",
"it",
"=",
"active",
"notifications",
"map",
"entry",
"set",
"(",
")",
"iterator",
"(",
")",
";",
"it",
"has",
"next",
"(",
")",
";",
")",
"{",
"map",
"entry",
"<",
"integer",
",",
"bundle",
">",
"row",
"=",
"it",
"next",
"(",
")",
";",
"bundle",
"note",
"bundle",
"=",
"row",
"get",
"value",
"(",
")",
";",
"if",
"(",
"note",
"bundle",
"get",
"string",
"(",
"push",
"arg",
"note",
"id",
",",
"\"",
"\"",
")",
"equals",
"(",
"note",
"i",
"d",
")",
")",
"{",
"bump",
"push",
"notifications",
"analytics",
"(",
"stat",
"push",
"notification",
"tapped",
",",
"note",
"bundle",
",",
"null",
")",
";",
"analytics",
"tracker",
"flush",
"(",
")",
";",
"return",
";",
"}",
"}"
] |
[
"mark",
"all",
"notifications",
"as",
"tapped"
] | [
"for",
"(",
"iterator",
"<",
"map",
"entry",
"<",
"integer",
",",
"bundle",
">",
">",
"it",
"=",
"active",
"notifications",
"map",
"entry",
"set",
"(",
")",
"iterator",
"(",
")",
";",
"it",
"has",
"next",
"(",
")",
";",
")",
"{",
"map",
"entry",
"<",
"integer",
",",
"bundle",
">",
"row",
"=",
"it",
"next",
"(",
")",
";",
"bundle",
"note",
"bundle",
"=",
"row",
"get",
"value",
"(",
")",
";",
"bump",
"push",
"notifications",
"analytics",
"(",
"stat",
"push",
"notification",
"tapped",
",",
"note",
"bundle",
",",
"null",
")",
";",
"}",
"analytics",
"tracker",
"flush",
"(",
")",
";"
] |
[
"returns",
"true",
"if",
"the",
"note",
"type",
"is",
"known",
"to",
"have",
"a",
"gravatar"
] | [
"if",
"(",
"text",
"utils",
"is",
"empty",
"(",
"note",
"type",
")",
")",
"{",
"return",
"false",
";",
"}",
"switch",
"(",
"note",
"type",
")",
"{",
"case",
"push",
"type",
"comment",
":",
"case",
"push",
"type",
"like",
":",
"case",
"push",
"type",
"comment",
"like",
":",
"case",
"push",
"type",
"automattcher",
":",
"case",
"push",
"type",
"follow",
":",
"case",
"push",
"type",
"reblog",
":",
"return",
"true",
";",
"default",
":",
"return",
"false",
";",
"}"
] |
[
"shows",
"a",
"notification",
"stating",
"that",
"the",
"user",
"has",
"a",
"reply",
"pending",
"from",
"zendesk",
"since",
"zendesk",
"always",
"sends",
"a",
"notification",
"with",
"the",
"same",
"title",
"and",
"message",
"we",
"use",
"our",
"own",
"localized",
"messaging",
"for",
"the",
"same",
"reason",
"we",
"use",
"a",
"static",
"push",
"notification",
"id",
"tapping",
"on",
"the",
"notification",
"will",
"open",
"the",
"me",
"fragment"
] | [
"if",
"(",
"context",
"=",
"=",
"null",
")",
"{",
"return",
";",
"}",
"string",
"title",
"=",
"context",
"get",
"string",
"(",
"r",
"string",
"support",
"push",
"notification",
"title",
")",
";",
"string",
"message",
"=",
"context",
"get",
"string",
"(",
"r",
"string",
"support",
"push",
"notification",
"message",
")",
";",
"intent",
"result",
"intent",
"=",
"new",
"intent",
"(",
"context",
",",
"w",
"p",
"main",
"activity",
"class",
")",
";",
"result",
"intent",
"set",
"flags",
"(",
"intent",
"flag",
"activity",
"clear",
"top",
")",
";",
"result",
"intent",
"put",
"extra",
"(",
"w",
"p",
"main",
"activity",
"arg",
"show",
"zendesk",
"notifications",
",",
"true",
")",
";",
"show",
"simple",
"notification",
"(",
"context",
",",
"title",
",",
"message",
",",
"result",
"intent",
",",
"zendesk",
"push",
"notification",
"id",
")",
";"
] |
[
"<",
"p",
">",
"the",
"private",
"ip",
"address",
"of",
"the",
"elastic",
"network",
"interface",
"that",
"is",
"attached",
"to",
"instances",
"in",
"your",
"vpc",
"<",
"/",
"p",
">"
] | [
"this",
"eni",
"private",
"ip",
"address",
"=",
"eni",
"private",
"ip",
"address",
";"
] |
[
"<",
"p",
">",
"the",
"private",
"ip",
"address",
"of",
"the",
"elastic",
"network",
"interface",
"that",
"is",
"attached",
"to",
"instances",
"in",
"your",
"vpc",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"eni",
"private",
"ip",
"address",
";"
] |
[
"<",
"p",
">",
"the",
"private",
"ip",
"address",
"of",
"the",
"elastic",
"network",
"interface",
"that",
"is",
"attached",
"to",
"instances",
"in",
"your",
"vpc",
"<",
"/",
"p",
">"
] | [
"set",
"eni",
"private",
"ip",
"address",
"(",
"eni",
"private",
"ip",
"address",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"resource",
"identifier",
"of",
"the",
"elastic",
"network",
"interface",
"that",
"is",
"attached",
"to",
"instances",
"in",
"your",
"vpc",
"all",
"network",
"interfaces",
"have",
"the",
"eni",
"-",
"xxxxxxxx",
"resource",
"identifier",
"<",
"/",
"p",
">"
] | [
"set",
"eni",
"id",
"(",
"eni",
"id",
")",
";",
"return",
"this",
";"
] |
[
"destroys",
"and",
"un",
"-",
"registers",
"the",
"{",
"@",
"link",
"camel",
"catalog",
"}",
"from",
"jmx"
] | [
"if",
"(",
"m",
"bean",
"server",
"!",
"=",
"null",
")",
"{",
"if",
"(",
"object",
"name",
"!",
"=",
"null",
")",
"{",
"m",
"bean",
"server",
"unregister",
"m",
"bean",
"(",
"object",
"name",
")",
";",
"}",
"}"
] |
[
"in",
"java",
"there",
"s",
"no",
"zero",
"index",
"for",
"unknown"
] | [
"return",
"kind",
"!",
"=",
"null",
"?",
"kind",
"ordinal",
"(",
")",
"+",
"1",
":",
"0",
";"
] |
[
"get",
"integrate",
"test",
"case",
"assertions"
] | [
"public",
"abstract",
"list",
"<",
"?",
"extends",
"integrate",
"test",
"case",
"assertion",
">",
"get",
"integrate",
"test",
"case",
"assertions",
"(",
")",
";"
] |
[
"need",
"for",
"testing"
] | [
"return",
"container",
"map",
"contains",
"key",
"(",
"name",
")",
";"
] |
[
"returns",
"the",
"local",
"queue",
"statistics",
"for",
"the",
"given",
"name",
"and",
"partition",
"id",
"if",
"this",
"node",
"is",
"the",
"owner",
"for",
"the",
"partition",
"returned",
"stats",
"contain",
"{",
"@",
"link",
"local",
"queue",
"stats",
"#",
"get",
"owned",
"item",
"count",
"(",
")",
"}",
"otherwise",
"it",
"contains",
"{",
"@",
"link",
"local",
"queue",
"stats",
"#",
"get",
"backup",
"item",
"count",
"(",
")",
"}"
] | [
"local",
"queue",
"stats",
"impl",
"stats",
"=",
"get",
"local",
"queue",
"stats",
"impl",
"(",
"name",
")",
";",
"stats",
"set",
"owned",
"item",
"count",
"(",
"0",
")",
";",
"stats",
"set",
"backup",
"item",
"count",
"(",
"0",
")",
";",
"queue",
"container",
"container",
"=",
"container",
"map",
"get",
"(",
"name",
")",
";",
"if",
"(",
"container",
"=",
"=",
"null",
")",
"{",
"return",
"stats",
";",
"}",
"address",
"this",
"address",
"=",
"node",
"engine",
"get",
"cluster",
"service",
"(",
")",
"get",
"this",
"address",
"(",
")",
";",
"i",
"partition",
"partition",
"=",
"partition",
"service",
"get",
"partition",
"(",
"partition",
"id",
",",
"false",
")",
";",
"address",
"owner",
"=",
"partition",
"get",
"owner",
"or",
"null",
"(",
")",
";",
"if",
"(",
"this",
"address",
"equals",
"(",
"owner",
")",
")",
"{",
"stats",
"set",
"owned",
"item",
"count",
"(",
"container",
"size",
"(",
")",
")",
";",
"}",
"else",
"if",
"(",
"owner",
"!",
"=",
"null",
")",
"{",
"stats",
"set",
"backup",
"item",
"count",
"(",
"container",
"backup",
"size",
"(",
")",
")",
";",
"}",
"container",
"set",
"stats",
"(",
"stats",
")",
";",
"return",
"stats",
";"
] |
[
"returns",
"the",
"local",
"queue",
"statistics",
"for",
"the",
"queue",
"with",
"the",
"given",
"{",
"@",
"code",
"name",
"}",
"if",
"this",
"node",
"is",
"the",
"owner",
"of",
"the",
"queue",
"returned",
"stats",
"contain",
"{",
"@",
"link",
"local",
"queue",
"stats",
"#",
"get",
"owned",
"item",
"count",
"(",
")",
"}",
"otherwise",
"it",
"contains",
"{",
"@",
"link",
"local",
"queue",
"stats",
"#",
"get",
"backup",
"item",
"count",
"(",
")",
"}"
] | [
"return",
"create",
"local",
"queue",
"stats",
"(",
"name",
",",
"get",
"partition",
"id",
"(",
"name",
")",
")",
";"
] |
[
"<",
"p",
">",
"the",
"number",
"of",
"different",
"headers",
"that",
"you",
"want",
"cloud",
"front",
"to",
"base",
"caching",
"on",
"for",
"this",
"cache",
"behavior",
"you",
"can",
"configure",
"each",
"cache",
"behavior",
"in",
"a",
"web",
"distribution",
"to",
"do",
"one",
"of",
"the",
"following",
":",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"b",
">",
"forward",
"all",
"headers",
"to",
"your",
"origin",
"<",
"/",
"b",
">",
":",
"specify",
"<",
"code",
">",
"1",
"<",
"/",
"code",
">",
"for",
"<",
"code",
">",
"quantity",
"<",
"/",
"code",
">",
"and",
"<",
"code",
">",
"*",
"<",
"/",
"code",
">",
"for",
"<",
"code",
">",
"name",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">",
"<",
"important",
">",
"<",
"p",
">",
"cloud",
"front",
"doesn",
"t",
"cache",
"the",
"objects",
"that",
"are",
"associated",
"with",
"this",
"cache",
"behavior",
"instead",
"cloud",
"front",
"sends",
"every",
"request",
"to",
"the",
"origin",
"<",
"/",
"p",
">",
"<",
"/",
"important",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"b",
">",
"forward",
"a",
"whitelist",
"of",
"headers",
"you",
"specify",
"<",
"/",
"b",
">",
":",
"specify",
"the",
"number",
"of",
"headers",
"that",
"you",
"want",
"cloud",
"front",
"to",
"base",
"caching",
"on",
"then",
"specify",
"the",
"header",
"names",
"in",
"<",
"code",
">",
"name",
"<",
"/",
"code",
">",
"elements",
"cloud",
"front",
"caches",
"your",
"objects",
"based",
"on",
"the",
"values",
"in",
"the",
"specified",
"headers",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"b",
">",
"forward",
"only",
"the",
"default",
"headers",
"<",
"/",
"b",
">",
":",
"specify",
"<",
"code",
">",
"0",
"<",
"/",
"code",
">",
"for",
"<",
"code",
">",
"quantity",
"<",
"/",
"code",
">",
"and",
"omit",
"<",
"code",
">",
"items",
"<",
"/",
"code",
">",
"in",
"this",
"configuration",
"cloud",
"front",
"doesn",
"t",
"cache",
"based",
"on",
"the",
"values",
"in",
"the",
"request",
"headers",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">",
"<",
"p",
">",
"regardless",
"of",
"which",
"option",
"you",
"choose",
"cloud",
"front",
"forwards",
"headers",
"to",
"your",
"origin",
"based",
"on",
"whether",
"the",
"origin",
"is",
"an",
"s3",
"bucket",
"or",
"a",
"custom",
"origin",
"see",
"the",
"following",
"documentation",
":",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"b",
">",
"s3",
"bucket",
"<",
"/",
"b",
">",
":",
"see",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"amazon",
"cloud",
"front",
"/",
"latest",
"/",
"developer",
"guide",
"/",
"request",
"and",
"response",
"behavior",
"s",
"3",
"origin",
"html",
"#",
"request",
"-",
"s",
"3",
"-",
"removed",
"-",
"headers",
">",
"http",
"request",
"headers",
"that",
"cloud",
"front",
"removes",
"or",
"updates",
"<",
"/",
"a",
">",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"b",
">",
"custom",
"origin",
"<",
"/",
"b",
">",
":",
"see",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"amazon",
"cloud",
"front",
"/",
"latest",
"/",
"developer",
"guide",
"/",
"request",
"and",
"response",
"behavior",
"custom",
"origin",
"html",
"#",
"request",
"-",
"custom",
"-",
"headers",
"-",
"behavior",
">",
"http",
"request",
"headers",
"and",
"cloud",
"front",
"behavior",
"<",
"/",
"a",
">",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">"
] | [
"set",
"quantity",
"(",
"quantity",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"a",
"list",
"that",
"contains",
"one",
"<",
"code",
">",
"name",
"<",
"/",
"code",
">",
"element",
"for",
"each",
"header",
"that",
"you",
"want",
"cloud",
"front",
"to",
"use",
"for",
"caching",
"in",
"this",
"cache",
"behavior",
"if",
"<",
"code",
">",
"quantity",
"<",
"/",
"code",
">",
"is",
"<",
"code",
">",
"0",
"<",
"/",
"code",
">",
"omit",
"<",
"code",
">",
"items",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"items",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"items",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"this",
"items",
"=",
"=",
"null",
")",
"{",
"set",
"items",
"(",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"string",
">",
"(",
"items",
"length",
")",
")",
";",
"}",
"for",
"(",
"string",
"ele",
":",
"items",
")",
"{",
"this",
"items",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"a",
"list",
"that",
"contains",
"one",
"<",
"code",
">",
"name",
"<",
"/",
"code",
">",
"element",
"for",
"each",
"header",
"that",
"you",
"want",
"cloud",
"front",
"to",
"use",
"for",
"caching",
"in",
"this",
"cache",
"behavior",
"if",
"<",
"code",
">",
"quantity",
"<",
"/",
"code",
">",
"is",
"<",
"code",
">",
"0",
"<",
"/",
"code",
">",
"omit",
"<",
"code",
">",
"items",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">"
] | [
"set",
"items",
"(",
"items",
")",
";",
"return",
"this",
";"
] |
[
"encodes",
"the",
"provided",
"data",
"as",
"a",
"hexadecimal",
"string"
] | [
"string",
"builder",
"result",
"=",
"new",
"string",
"builder",
"(",
"length",
"*",
"2",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"length",
";",
"i",
"+",
"+",
")",
"{",
"byte",
"b",
"=",
"data",
"[",
"offset",
"+",
"i",
"]",
";",
"result",
"append",
"(",
"hex",
"digits",
"[",
"(",
"b",
">",
">",
">",
"4",
")",
"&",
"0x",
"0f",
"]",
")",
";",
"result",
"append",
"(",
"hex",
"digits",
"[",
"b",
"&",
"0x",
"0f",
"]",
")",
";",
"}",
"return",
"result",
"to",
"string",
"(",
")",
";"
] |
[
"encodes",
"the",
"remaining",
"bytes",
"of",
"the",
"provided",
"{"
] | [
"return",
"encode",
"(",
"data",
"array",
"(",
")",
",",
"data",
"array",
"offset",
"(",
")",
"+",
"data",
"position",
"(",
")",
",",
"data",
"remaining",
"(",
")",
")",
";"
] |
[
"adds",
"<",
"code",
">",
"provider",
"<",
"/",
"code",
">",
"to",
"the",
"list",
"of",
"{",
"@",
"link",
"binding",
"provider",
"}",
"s",
"and",
"adds",
"<",
"code",
">",
"this",
"<",
"/",
"code",
">",
"as",
"{",
"@",
"link",
"binding",
"config",
"change",
"listener",
"}",
"if",
"<",
"code",
">",
"provider",
"<",
"/",
"code",
">",
"contains",
"any",
"binding",
"an",
"the",
"refresh",
"-",
"thread",
"is",
"stopped",
"it",
"will",
"be",
"started"
] | [
"super",
"add",
"binding",
"provider",
"(",
"provider",
")",
";",
"active",
"service",
"activate",
"(",
")",
";"
] |
[
"used",
"to",
"define",
"whether",
"this",
"binding",
"is",
"fully",
"configured",
"so",
"that",
"it",
"can",
"be",
"activated",
"and",
"used",
"note",
"that",
"the",
"implementation",
"will",
"automatically",
"start",
"the",
"active",
"service",
"if",
"<",
"code",
">",
"true",
"<",
"/",
"code",
">",
"is",
"passed",
"as",
"a",
"parameter",
"and",
"there",
"are",
"binding",
"providers",
"available"
] | [
"if",
"(",
"providers",
"size",
"(",
")",
">",
"0",
")",
"{",
"active",
"service",
"set",
"properly",
"configured",
"(",
"properly",
"configured",
")",
";",
"}"
] |
[
"alias",
"for",
"{"
] | [
"abort",
"(",
")",
";"
] |
[
"exits",
"the",
"scope",
"of",
"{",
"@",
"link",
"bulk",
"change",
"}",
"without",
"saving",
"the",
"changes"
] | [
"if",
"(",
"completed",
")",
"return",
";",
"completed",
"=",
"true",
";",
"pop",
"(",
")",
";"
] |
[
"gets",
"the",
"{"
] | [
"return",
"inscope",
"get",
"(",
")",
";"
] |
[
"checks",
"if",
"the",
"given",
"{",
"@",
"link",
"saveable",
"}",
"is",
"currently",
"in",
"the",
"bulk",
"change"
] | [
"for",
"(",
"bulk",
"change",
"b",
"=",
"current",
"(",
")",
";",
"b",
"!",
"=",
"null",
";",
"b",
"=",
"b",
"parent",
")",
"if",
"(",
"b",
"saveable",
"=",
"=",
"s",
"|",
"|",
"b",
"saveable",
"=",
"=",
"all",
")",
"return",
"true",
";",
"return",
"false",
";"
] |
[
"determine",
"the",
"relationship",
"between",
"the",
"geo",
"are",
"shape",
"and",
"the",
"shape",
"s",
"edgepoints"
] | [
"boolean",
"found",
"outside",
"=",
"false",
";",
"boolean",
"found",
"inside",
"=",
"false",
";",
"for",
"(",
"geo",
"point",
"p",
":",
"geo",
"shape",
"get",
"edge",
"points",
"(",
")",
")",
"{",
"if",
"(",
"is",
"within",
"(",
"p",
")",
")",
"{",
"found",
"inside",
"=",
"true",
";",
"}",
"else",
"{",
"found",
"outside",
"=",
"true",
";",
"}",
"if",
"(",
"found",
"inside",
"&",
"&",
"found",
"outside",
")",
"{",
"return",
"some",
"inside",
";",
"}",
"}",
"if",
"(",
"!",
"found",
"inside",
"&",
"&",
"!",
"found",
"outside",
")",
"return",
"none",
"inside",
";",
"if",
"(",
"found",
"inside",
"&",
"&",
"!",
"found",
"outside",
")",
"return",
"all",
"inside",
";",
"if",
"(",
"found",
"outside",
"&",
"&",
"!",
"found",
"inside",
")",
"return",
"none",
"inside",
";",
"return",
"some",
"inside",
";"
] |
[
"determine",
"the",
"relationship",
"between",
"the",
"geo",
"are",
"shape",
"s",
"edgepoints",
"and",
"the",
"provided",
"shape"
] | [
"boolean",
"found",
"outside",
"=",
"false",
";",
"boolean",
"found",
"inside",
"=",
"false",
";",
"for",
"(",
"geo",
"point",
"p",
":",
"get",
"edge",
"points",
"(",
")",
")",
"{",
"if",
"(",
"geoshape",
"is",
"within",
"(",
"p",
")",
")",
"{",
"found",
"inside",
"=",
"true",
";",
"}",
"else",
"{",
"found",
"outside",
"=",
"true",
";",
"}",
"if",
"(",
"found",
"inside",
"&",
"&",
"found",
"outside",
")",
"{",
"return",
"some",
"inside",
";",
"}",
"}",
"if",
"(",
"!",
"found",
"inside",
"&",
"&",
"!",
"found",
"outside",
")",
"return",
"none",
"inside",
";",
"if",
"(",
"found",
"inside",
"&",
"&",
"!",
"found",
"outside",
")",
"return",
"all",
"inside",
";",
"if",
"(",
"found",
"outside",
"&",
"&",
"!",
"found",
"inside",
")",
"return",
"none",
"inside",
";",
"return",
"some",
"inside",
";"
] |
[
"<",
"p",
">",
"the",
"screen",
"resolution",
"s",
"width",
"expressed",
"in",
"pixels",
"<",
"/",
"p",
">"
] | [
"set",
"width",
"(",
"width",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"screen",
"resolution",
"s",
"height",
"expressed",
"in",
"pixels",
"<",
"/",
"p",
">"
] | [
"set",
"height",
"(",
"height",
")",
";",
"return",
"this",
";"
] |
[
"creates",
"a",
"{",
"@",
"link",
"monitoring",
"bulk",
"request",
"}",
"with",
"the",
"given",
"number",
"of",
"{",
"@",
"link",
"monitoring",
"bulk",
"doc",
"}",
"in",
"it"
] | [
"final",
"monitoring",
"bulk",
"request",
"request",
"=",
"new",
"monitoring",
"bulk",
"request",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"num",
"docs",
";",
"i",
"+",
"+",
")",
"{",
"request",
"add",
"(",
"monitoring",
"test",
"utils",
"random",
"monitoring",
"bulk",
"doc",
"(",
"random",
"(",
")",
")",
")",
";",
"}",
"return",
"request",
";"
] |
[
"{"
] | [
"@",
"override",
"public",
"abstract",
"int",
"compare",
"(",
"cache",
"entry",
"view",
"<",
"k",
",",
"v",
">",
"e",
"1",
",",
"cache",
"entry",
"view",
"<",
"k",
",",
"v",
">",
"e",
"2",
")",
";"
] |
[
"helper",
"method",
"for",
"{",
"@",
"link",
"#",
"generate",
"name",
"(",
"string",
"table",
"column",
")",
"}"
] | [
"return",
"generate",
"name",
"(",
"prefix",
",",
"table",
",",
"columns",
"to",
"array",
"(",
"new",
"column",
"[",
"columns",
"size",
"(",
")",
"]",
")",
")",
";"
] |
[
"calculate",
"matrix",
"for",
"fit",
"center"
] | [
"image",
"view",
"image",
"view",
"=",
"get",
"image",
"view",
"(",
")",
";",
"if",
"(",
"null",
"=",
"=",
"image",
"view",
"|",
"|",
"null",
"=",
"=",
"d",
")",
"{",
"return",
";",
"}",
"final",
"float",
"view",
"width",
"=",
"image",
"view",
"get",
"width",
"(",
")",
";",
"final",
"float",
"view",
"height",
"=",
"image",
"view",
"get",
"height",
"(",
")",
";",
"final",
"int",
"drawable",
"width",
"=",
"d",
"get",
"intrinsic",
"width",
"(",
")",
";",
"final",
"int",
"drawable",
"height",
"=",
"d",
"get",
"intrinsic",
"height",
"(",
")",
";",
"m",
"base",
"matrix",
"reset",
"(",
")",
";",
"final",
"float",
"width",
"scale",
"=",
"view",
"width",
"/",
"drawable",
"width",
";",
"final",
"float",
"height",
"scale",
"=",
"view",
"height",
"/",
"drawable",
"height",
";",
"if",
"(",
"m",
"scale",
"type",
"=",
"=",
"scale",
"type",
"center",
")",
"{",
"m",
"base",
"matrix",
"post",
"translate",
"(",
"(",
"view",
"width",
"-",
"drawable",
"width",
")",
"/",
"2f",
",",
"(",
"view",
"height",
"-",
"drawable",
"height",
")",
"/",
"2f",
")",
";",
"}",
"else",
"if",
"(",
"m",
"scale",
"type",
"=",
"=",
"scale",
"type",
"center",
"crop",
")",
"{",
"float",
"scale",
"=",
"math",
"max",
"(",
"width",
"scale",
",",
"height",
"scale",
")",
";",
"m",
"base",
"matrix",
"post",
"scale",
"(",
"scale",
",",
"scale",
")",
";",
"m",
"base",
"matrix",
"post",
"translate",
"(",
"(",
"view",
"width",
"-",
"drawable",
"width",
"*",
"scale",
")",
"/",
"2f",
",",
"(",
"view",
"height",
"-",
"drawable",
"height",
"*",
"scale",
")",
"/",
"2f",
")",
";",
"m",
"drawable",
"width",
"=",
"drawable",
"width",
"*",
"scale",
";",
"m",
"image",
"view",
"width",
"=",
"view",
"width",
";",
"m",
"offset",
"x",
"=",
"(",
"m",
"drawable",
"width",
"-",
"m",
"image",
"view",
"width",
")",
"/",
"2f",
";",
"}",
"else",
"if",
"(",
"m",
"scale",
"type",
"=",
"=",
"scale",
"type",
"center",
"inside",
")",
"{",
"float",
"scale",
"=",
"math",
"min",
"(",
"1",
"0f",
",",
"math",
"min",
"(",
"width",
"scale",
",",
"height",
"scale",
")",
")",
";",
"m",
"base",
"matrix",
"post",
"scale",
"(",
"scale",
",",
"scale",
")",
";",
"m",
"base",
"matrix",
"post",
"translate",
"(",
"(",
"view",
"width",
"-",
"drawable",
"width",
"*",
"scale",
")",
"/",
"2f",
",",
"(",
"view",
"height",
"-",
"drawable",
"height",
"*",
"scale",
")",
"/",
"2f",
")",
";",
"}",
"else",
"{",
"rect",
"f",
"m",
"temp",
"src",
"=",
"new",
"rect",
"f",
"(",
"0",
",",
"0",
",",
"drawable",
"width",
",",
"drawable",
"height",
")",
";",
"rect",
"f",
"m",
"temp",
"dst",
"=",
"new",
"rect",
"f",
"(",
"0",
",",
"0",
",",
"view",
"width",
",",
"view",
"height",
")",
";",
"switch",
"(",
"m",
"scale",
"type",
")",
"{",
"case",
"fit",
"center",
":",
"m",
"base",
"matrix",
"set",
"rect",
"to",
"rect",
"(",
"m",
"temp",
"src",
",",
"m",
"temp",
"dst",
",",
"scale",
"to",
"fit",
"center",
")",
";",
"break",
";",
"case",
"fit",
"start",
":",
"m",
"base",
"matrix",
"set",
"rect",
"to",
"rect",
"(",
"m",
"temp",
"src",
",",
"m",
"temp",
"dst",
",",
"scale",
"to",
"fit",
"start",
")",
";",
"break",
";",
"case",
"fit",
"end",
":",
"m",
"base",
"matrix",
"set",
"rect",
"to",
"rect",
"(",
"m",
"temp",
"src",
",",
"m",
"temp",
"dst",
",",
"scale",
"to",
"fit",
"end",
")",
";",
"break",
";",
"case",
"fit",
"xy",
":",
"m",
"base",
"matrix",
"set",
"rect",
"to",
"rect",
"(",
"m",
"temp",
"src",
",",
"m",
"temp",
"dst",
",",
"scale",
"to",
"fit",
"fill",
")",
";",
"break",
";",
"default",
":",
"break",
";",
"}",
"}",
"reset",
"matrix",
"(",
")",
";"
] |
[
"ask",
"the",
"current",
"transport",
"what",
"the",
"available",
"restore",
"sets",
"are"
] | [
"return",
"get",
"available",
"restore",
"sets",
"(",
"observer",
",",
"null",
")",
";"
] |
[
"restore",
"the",
"given",
"set",
"onto",
"the",
"device",
"replacing",
"the",
"current",
"data",
"of",
"any",
"app",
"contained",
"in",
"the",
"restore",
"set",
"with",
"the",
"data",
"previously",
"backed",
"up"
] | [
"return",
"restore",
"all",
"(",
"token",
",",
"observer",
",",
"null",
")",
";"
] |
[
"restore",
"select",
"packages",
"from",
"the",
"given",
"set",
"onto",
"the",
"device",
"replacing",
"the",
"current",
"data",
"of",
"any",
"app",
"contained",
"in",
"the",
"set",
"with",
"the",
"data",
"previously",
"backed",
"up"
] | [
"return",
"restore",
"some",
"(",
"token",
",",
"observer",
",",
"null",
",",
"packages",
")",
";"
] |
[
"restore",
"a",
"single",
"application",
"from",
"backup",
"the",
"data",
"will",
"be",
"restored",
"from",
"the",
"current",
"backup",
"dataset",
"if",
"the",
"given",
"package",
"has",
"stored",
"data",
"there",
"or",
"from",
"the",
"dataset",
"used",
"during",
"the",
"last",
"full",
"device",
"setup",
"operation",
"if",
"the",
"current",
"backup",
"dataset",
"has",
"no",
"matching",
"data",
"if",
"no",
"backup",
"data",
"exists",
"for",
"this",
"package",
"in",
"either",
"source",
"a",
"nonzero",
"value",
"will",
"be",
"returned"
] | [
"return",
"restore",
"package",
"(",
"package",
"name",
",",
"observer",
",",
"null",
")",
";"
] |
[
"binder",
"calls",
"into",
"this",
"object",
"just",
"enqueue",
"on",
"the",
"main",
"-",
"thread",
"handler"
] | [
"m",
"handler",
"send",
"message",
"(",
"m",
"handler",
"obtain",
"message",
"(",
"msg",
"restore",
"sets",
"available",
",",
"result",
")",
")",
";"
] |
[
"make",
"a",
"deep",
"copy",
"of",
"a",
"matrix"
] | [
"matrix",
"x",
"=",
"new",
"matrix",
"(",
"m",
",",
"n",
")",
";",
"double",
"[",
"]",
"[",
"]",
"c",
"=",
"x",
"get",
"array",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"m",
";",
"i",
"+",
"+",
")",
"{",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"n",
";",
"j",
"+",
"+",
")",
"{",
"c",
"[",
"i",
"]",
"[",
"j",
"]",
"=",
"a",
"[",
"i",
"]",
"[",
"j",
"]",
";",
"}",
"}",
"return",
"x",
";"
] |
[
"clone",
"the",
"matrix",
"object"
] | [
"return",
"this",
"copy",
"(",
")",
";"
] |
[
"access",
"the",
"internal",
"two",
"-",
"dimensional",
"array"
] | [
"return",
"a",
";"
] |
[
"copy",
"the",
"internal",
"two",
"-",
"dimensional",
"array"
] | [
"double",
"[",
"]",
"[",
"]",
"c",
"=",
"new",
"double",
"[",
"m",
"]",
"[",
"n",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"m",
";",
"i",
"+",
"+",
")",
"{",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"n",
";",
"j",
"+",
"+",
")",
"{",
"c",
"[",
"i",
"]",
"[",
"j",
"]",
"=",
"a",
"[",
"i",
"]",
"[",
"j",
"]",
";",
"}",
"}",
"return",
"c",
";"
] |
[
"make",
"a",
"one",
"-",
"dimensional",
"column",
"packed",
"copy",
"of",
"the",
"internal",
"array"
] | [
"double",
"[",
"]",
"vals",
"=",
"new",
"double",
"[",
"m",
"*",
"n",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"m",
";",
"i",
"+",
"+",
")",
"{",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"n",
";",
"j",
"+",
"+",
")",
"{",
"vals",
"[",
"i",
"+",
"j",
"*",
"m",
"]",
"=",
"a",
"[",
"i",
"]",
"[",
"j",
"]",
";",
"}",
"}",
"return",
"vals",
";"
] |
[
"make",
"a",
"one",
"-",
"dimensional",
"row",
"packed",
"copy",
"of",
"the",
"internal",
"array"
] | [
"double",
"[",
"]",
"vals",
"=",
"new",
"double",
"[",
"m",
"*",
"n",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"m",
";",
"i",
"+",
"+",
")",
"{",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"n",
";",
"j",
"+",
"+",
")",
"{",
"vals",
"[",
"i",
"*",
"n",
"+",
"j",
"]",
"=",
"a",
"[",
"i",
"]",
"[",
"j",
"]",
";",
"}",
"}",
"return",
"vals",
";"
] |
[
"get",
"row",
"dimension"
] | [
"return",
"m",
";"
] |
[
"get",
"column",
"dimension"
] | [
"return",
"n",
";"
] |
[
"get",
"a",
"single",
"element"
] | [
"return",
"a",
"[",
"i",
"]",
"[",
"j",
"]",
";"
] |
[
"set",
"a",
"single",
"element"
] | [
"a",
"[",
"i",
"]",
"[",
"j",
"]",
"=",
"s",
";"
] |
[
"matrix",
"transpose"
] | [
"matrix",
"x",
"=",
"new",
"matrix",
"(",
"n",
",",
"m",
")",
";",
"double",
"[",
"]",
"[",
"]",
"c",
"=",
"x",
"get",
"array",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"m",
";",
"i",
"+",
"+",
")",
"{",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"n",
";",
"j",
"+",
"+",
")",
"{",
"c",
"[",
"j",
"]",
"[",
"i",
"]",
"=",
"a",
"[",
"i",
"]",
"[",
"j",
"]",
";",
"}",
"}",
"return",
"x",
";"
] |
[
"one",
"norm"
] | [
"double",
"f",
"=",
"0",
";",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"n",
";",
"j",
"+",
"+",
")",
"{",
"double",
"s",
"=",
"0",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"m",
";",
"i",
"+",
"+",
")",
"{",
"s",
"+",
"=",
"math",
"abs",
"(",
"a",
"[",
"i",
"]",
"[",
"j",
"]",
")",
";",
"}",
"f",
"=",
"math",
"max",
"(",
"f",
",",
"s",
")",
";",
"}",
"return",
"f",
";"
] |
[
"infinity",
"norm"
] | [
"double",
"f",
"=",
"0",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"m",
";",
"i",
"+",
"+",
")",
"{",
"double",
"s",
"=",
"0",
";",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"n",
";",
"j",
"+",
"+",
")",
"{",
"s",
"+",
"=",
"math",
"abs",
"(",
"a",
"[",
"i",
"]",
"[",
"j",
"]",
")",
";",
"}",
"f",
"=",
"math",
"max",
"(",
"f",
",",
"s",
")",
";",
"}",
"return",
"f",
";"
] |
[
"unary",
"minus"
] | [
"matrix",
"x",
"=",
"new",
"matrix",
"(",
"m",
",",
"n",
")",
";",
"double",
"[",
"]",
"[",
"]",
"c",
"=",
"x",
"get",
"array",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"m",
";",
"i",
"+",
"+",
")",
"{",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"n",
";",
"j",
"+",
"+",
")",
"{",
"c",
"[",
"i",
"]",
"[",
"j",
"]",
"=",
"-",
"a",
"[",
"i",
"]",
"[",
"j",
"]",
";",
"}",
"}",
"return",
"x",
";"
] |
[
"c",
"=",
"a",
"+",
"b"
] | [
"check",
"matrix",
"dimensions",
"(",
"b",
")",
";",
"matrix",
"x",
"=",
"new",
"matrix",
"(",
"m",
",",
"n",
")",
";",
"double",
"[",
"]",
"[",
"]",
"c",
"=",
"x",
"get",
"array",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"m",
";",
"i",
"+",
"+",
")",
"{",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"n",
";",
"j",
"+",
"+",
")",
"{",
"c",
"[",
"i",
"]",
"[",
"j",
"]",
"=",
"a",
"[",
"i",
"]",
"[",
"j",
"]",
"+",
"b",
"a",
"[",
"i",
"]",
"[",
"j",
"]",
";",
"}",
"}",
"return",
"x",
";"
] |
[
"a",
"=",
"a",
"+",
"b"
] | [
"check",
"matrix",
"dimensions",
"(",
"b",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"m",
";",
"i",
"+",
"+",
")",
"{",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"n",
";",
"j",
"+",
"+",
")",
"{",
"a",
"[",
"i",
"]",
"[",
"j",
"]",
"=",
"a",
"[",
"i",
"]",
"[",
"j",
"]",
"+",
"b",
"a",
"[",
"i",
"]",
"[",
"j",
"]",
";",
"}",
"}",
"return",
"this",
";"
] |
[
"c",
"=",
"a",
"-",
"b"
] | [
"check",
"matrix",
"dimensions",
"(",
"b",
")",
";",
"matrix",
"x",
"=",
"new",
"matrix",
"(",
"m",
",",
"n",
")",
";",
"double",
"[",
"]",
"[",
"]",
"c",
"=",
"x",
"get",
"array",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"m",
";",
"i",
"+",
"+",
")",
"{",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"n",
";",
"j",
"+",
"+",
")",
"{",
"c",
"[",
"i",
"]",
"[",
"j",
"]",
"=",
"a",
"[",
"i",
"]",
"[",
"j",
"]",
"-",
"b",
"a",
"[",
"i",
"]",
"[",
"j",
"]",
";",
"}",
"}",
"return",
"x",
";"
] |
[
"a",
"=",
"a",
"-",
"b"
] | [
"check",
"matrix",
"dimensions",
"(",
"b",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"m",
";",
"i",
"+",
"+",
")",
"{",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"n",
";",
"j",
"+",
"+",
")",
"{",
"a",
"[",
"i",
"]",
"[",
"j",
"]",
"=",
"a",
"[",
"i",
"]",
"[",
"j",
"]",
"-",
"b",
"a",
"[",
"i",
"]",
"[",
"j",
"]",
";",
"}",
"}",
"return",
"this",
";"
] |
[
"element",
"-",
"by",
"-",
"element",
"multiplication",
"c",
"=",
"a",
"*",
"b"
] | [
"check",
"matrix",
"dimensions",
"(",
"b",
")",
";",
"matrix",
"x",
"=",
"new",
"matrix",
"(",
"m",
",",
"n",
")",
";",
"double",
"[",
"]",
"[",
"]",
"c",
"=",
"x",
"get",
"array",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"m",
";",
"i",
"+",
"+",
")",
"{",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"n",
";",
"j",
"+",
"+",
")",
"{",
"c",
"[",
"i",
"]",
"[",
"j",
"]",
"=",
"a",
"[",
"i",
"]",
"[",
"j",
"]",
"*",
"b",
"a",
"[",
"i",
"]",
"[",
"j",
"]",
";",
"}",
"}",
"return",
"x",
";"
] |
[
"element",
"-",
"by",
"-",
"element",
"multiplication",
"in",
"place",
"a",
"=",
"a",
"*",
"b"
] | [
"check",
"matrix",
"dimensions",
"(",
"b",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"m",
";",
"i",
"+",
"+",
")",
"{",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"n",
";",
"j",
"+",
"+",
")",
"{",
"a",
"[",
"i",
"]",
"[",
"j",
"]",
"=",
"a",
"[",
"i",
"]",
"[",
"j",
"]",
"*",
"b",
"a",
"[",
"i",
"]",
"[",
"j",
"]",
";",
"}",
"}",
"return",
"this",
";"
] |
[
"element",
"-",
"by",
"-",
"element",
"right",
"division",
"c",
"=",
"a",
"/",
"b"
] | [
"check",
"matrix",
"dimensions",
"(",
"b",
")",
";",
"matrix",
"x",
"=",
"new",
"matrix",
"(",
"m",
",",
"n",
")",
";",
"double",
"[",
"]",
"[",
"]",
"c",
"=",
"x",
"get",
"array",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"m",
";",
"i",
"+",
"+",
")",
"{",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"n",
";",
"j",
"+",
"+",
")",
"{",
"c",
"[",
"i",
"]",
"[",
"j",
"]",
"=",
"a",
"[",
"i",
"]",
"[",
"j",
"]",
"/",
"b",
"a",
"[",
"i",
"]",
"[",
"j",
"]",
";",
"}",
"}",
"return",
"x",
";"
] |
[
"element",
"-",
"by",
"-",
"element",
"right",
"division",
"in",
"place",
"a",
"=",
"a",
"/",
"b"
] | [
"check",
"matrix",
"dimensions",
"(",
"b",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"m",
";",
"i",
"+",
"+",
")",
"{",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"n",
";",
"j",
"+",
"+",
")",
"{",
"a",
"[",
"i",
"]",
"[",
"j",
"]",
"=",
"a",
"[",
"i",
"]",
"[",
"j",
"]",
"/",
"b",
"a",
"[",
"i",
"]",
"[",
"j",
"]",
";",
"}",
"}",
"return",
"this",
";"
] |
[
"element",
"-",
"by",
"-",
"element",
"left",
"division",
"c",
"=",
"a",
"\\",
"b"
] | [
"check",
"matrix",
"dimensions",
"(",
"b",
")",
";",
"matrix",
"x",
"=",
"new",
"matrix",
"(",
"m",
",",
"n",
")",
";",
"double",
"[",
"]",
"[",
"]",
"c",
"=",
"x",
"get",
"array",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"m",
";",
"i",
"+",
"+",
")",
"{",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"n",
";",
"j",
"+",
"+",
")",
"{",
"c",
"[",
"i",
"]",
"[",
"j",
"]",
"=",
"b",
"a",
"[",
"i",
"]",
"[",
"j",
"]",
"/",
"a",
"[",
"i",
"]",
"[",
"j",
"]",
";",
"}",
"}",
"return",
"x",
";"
] |
[
"element",
"-",
"by",
"-",
"element",
"left",
"division",
"in",
"place",
"a",
"=",
"a",
"\\",
"b"
] | [
"check",
"matrix",
"dimensions",
"(",
"b",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"m",
";",
"i",
"+",
"+",
")",
"{",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"n",
";",
"j",
"+",
"+",
")",
"{",
"a",
"[",
"i",
"]",
"[",
"j",
"]",
"=",
"b",
"a",
"[",
"i",
"]",
"[",
"j",
"]",
"/",
"a",
"[",
"i",
"]",
"[",
"j",
"]",
";",
"}",
"}",
"return",
"this",
";"
] |
[
"multiply",
"a",
"matrix",
"by",
"a",
"scalar",
"c",
"=",
"s",
"*",
"a"
] | [
"matrix",
"x",
"=",
"new",
"matrix",
"(",
"m",
",",
"n",
")",
";",
"double",
"[",
"]",
"[",
"]",
"c",
"=",
"x",
"get",
"array",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"m",
";",
"i",
"+",
"+",
")",
"{",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"n",
";",
"j",
"+",
"+",
")",
"{",
"c",
"[",
"i",
"]",
"[",
"j",
"]",
"=",
"s",
"*",
"a",
"[",
"i",
"]",
"[",
"j",
"]",
";",
"}",
"}",
"return",
"x",
";"
] |
[
"multiply",
"a",
"matrix",
"by",
"a",
"scalar",
"in",
"place",
"a",
"=",
"s",
"*",
"a"
] | [
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"m",
";",
"i",
"+",
"+",
")",
"{",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"n",
";",
"j",
"+",
"+",
")",
"{",
"a",
"[",
"i",
"]",
"[",
"j",
"]",
"=",
"s",
"*",
"a",
"[",
"i",
"]",
"[",
"j",
"]",
";",
"}",
"}",
"return",
"this",
";"
] |
[
"matrix",
"trace"
] | [
"double",
"t",
"=",
"0",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"math",
"min",
"(",
"m",
",",
"n",
")",
";",
"i",
"+",
"+",
")",
"{",
"t",
"+",
"=",
"a",
"[",
"i",
"]",
"[",
"i",
"]",
";",
"}",
"return",
"t",
";"
] |
[
"generate",
"matrix",
"with",
"random",
"elements"
] | [
"matrix",
"a",
"=",
"new",
"matrix",
"(",
"m",
",",
"n",
")",
";",
"double",
"[",
"]",
"[",
"]",
"x",
"=",
"a",
"get",
"array",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"m",
";",
"i",
"+",
"+",
")",
"{",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"n",
";",
"j",
"+",
"+",
")",
"{",
"x",
"[",
"i",
"]",
"[",
"j",
"]",
"=",
"math",
"random",
"(",
")",
";",
"}",
"}",
"return",
"a",
";"
] |
[
"generate",
"identity",
"matrix"
] | [
"matrix",
"a",
"=",
"new",
"matrix",
"(",
"m",
",",
"n",
")",
";",
"double",
"[",
"]",
"[",
"]",
"x",
"=",
"a",
"get",
"array",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"m",
";",
"i",
"+",
"+",
")",
"{",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"n",
";",
"j",
"+",
"+",
")",
"{",
"x",
"[",
"i",
"]",
"[",
"j",
"]",
"=",
"(",
"i",
"=",
"=",
"j",
"?",
"1",
"0",
":",
"0",
"0",
")",
";",
"}",
"}",
"return",
"a",
";"
] |
[
"print",
"the",
"matrix",
"to",
"stdout",
"line",
"the",
"elements",
"up",
"in",
"columns",
"with",
"a",
"fortran",
"-",
"like",
"fw",
"d",
"style",
"format"
] | [
"print",
"(",
"new",
"print",
"writer",
"(",
"system",
"out",
",",
"true",
")",
",",
"w",
",",
"d",
")",
";"
] |
[
"print",
"the",
"matrix",
"to",
"the",
"output",
"stream",
"line",
"the",
"elements",
"up",
"in",
"columns",
"with",
"a",
"fortran",
"-",
"like",
"fw",
"d",
"style",
"format"
] | [
"decimal",
"format",
"format",
"=",
"new",
"decimal",
"format",
"(",
")",
";",
"format",
"set",
"decimal",
"format",
"symbols",
"(",
"new",
"decimal",
"format",
"symbols",
"(",
"locale",
"us",
")",
")",
";",
"format",
"set",
"minimum",
"integer",
"digits",
"(",
"1",
")",
";",
"format",
"set",
"maximum",
"fraction",
"digits",
"(",
"d",
")",
";",
"format",
"set",
"minimum",
"fraction",
"digits",
"(",
"d",
")",
";",
"format",
"set",
"grouping",
"used",
"(",
"false",
")",
";",
"print",
"(",
"output",
",",
"format",
",",
"w",
"+",
"2",
")",
";"
] |
[
"print",
"the",
"matrix",
"to",
"stdout",
"line",
"the",
"elements",
"up",
"in",
"columns",
"use",
"the",
"format",
"object",
"and",
"right",
"justify",
"within",
"columns",
"of",
"width",
"characters",
"note",
"that",
"is",
"the",
"matrix",
"is",
"to",
"be",
"read",
"back",
"in",
"you",
"probably",
"will",
"want",
"to",
"use",
"a",
"number",
"format",
"that",
"is",
"set",
"to",
"us",
"locale"
] | [
"print",
"(",
"new",
"print",
"writer",
"(",
"system",
"out",
",",
"true",
")",
",",
"format",
",",
"width",
")",
";"
] |
[
"<",
"p",
">",
"the",
"path",
"prefix",
"for",
"filtering",
"the",
"results",
"for",
"example",
"the",
"prefix",
"<",
"code",
">",
"/",
"division",
"abc",
"/",
"subdivision",
"xyz",
"/",
"<",
"/",
"code",
">",
"gets",
"all",
"groups",
"whose",
"path",
"starts",
"with",
"<",
"code",
">",
"/",
"division",
"abc",
"/",
"subdivision",
"xyz",
"/",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">",
"<",
"p",
">",
"this",
"parameter",
"is",
"optional",
"if",
"it",
"is",
"not",
"included",
"it",
"defaults",
"to",
"a",
"slash",
"(",
"/",
")",
"listing",
"all",
"groups",
"this",
"parameter",
"allows",
"(",
"per",
"its",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"wikipedia",
"org",
"/",
"wiki",
"/",
"regex",
">",
"regex",
"pattern",
"<",
"/",
"a",
">",
")",
"a",
"string",
"of",
"characters",
"consisting",
"of",
"either",
"a",
"forward",
"slash",
"(",
"/",
")",
"by",
"itself",
"or",
"a",
"string",
"that",
"must",
"begin",
"and",
"end",
"with",
"forward",
"slashes",
"in",
"addition",
"it",
"can",
"contain",
"any",
"ascii",
"character",
"from",
"the",
"!",
"(",
"\\",
"u",
"0",
"0",
"2",
"1",
")",
"through",
"the",
"del",
"character",
"(",
"\\",
"u",
"0",
"0",
"7",
"f",
")",
"including",
"most",
"punctuation",
"characters",
"digits",
"and",
"upper",
"and",
"lowercased",
"letters",
"<",
"/",
"p",
">"
] | [
"set",
"path",
"prefix",
"(",
"path",
"prefix",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"use",
"this",
"parameter",
"only",
"when",
"paginating",
"results",
"and",
"only",
"after",
"you",
"receive",
"a",
"response",
"indicating",
"that",
"the",
"results",
"are",
"truncated",
"set",
"it",
"to",
"the",
"value",
"of",
"the",
"<",
"code",
">",
"marker",
"<",
"/",
"code",
">",
"element",
"in",
"the",
"response",
"that",
"you",
"received",
"to",
"indicate",
"where",
"the",
"next",
"call",
"should",
"start",
"<",
"/",
"p",
">"
] | [
"set",
"marker",
"(",
"marker",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"(",
"optional",
")",
"use",
"this",
"only",
"when",
"paginating",
"results",
"to",
"indicate",
"the",
"maximum",
"number",
"of",
"items",
"you",
"want",
"in",
"the",
"response",
"if",
"additional",
"items",
"exist",
"beyond",
"the",
"maximum",
"you",
"specify",
"the",
"<",
"code",
">",
"is",
"truncated",
"<",
"/",
"code",
">",
"response",
"element",
"is",
"<",
"code",
">",
"true",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">",
"<",
"p",
">",
"if",
"you",
"do",
"not",
"include",
"this",
"parameter",
"it",
"defaults",
"to",
"100",
"note",
"that",
"iam",
"might",
"return",
"fewer",
"results",
"even",
"when",
"there",
"are",
"more",
"results",
"available",
"in",
"that",
"case",
"the",
"<",
"code",
">",
"is",
"truncated",
"<",
"/",
"code",
">",
"response",
"element",
"returns",
"<",
"code",
">",
"true",
"<",
"/",
"code",
">",
"and",
"<",
"code",
">",
"marker",
"<",
"/",
"code",
">",
"contains",
"a",
"value",
"to",
"include",
"in",
"the",
"subsequent",
"call",
"that",
"tells",
"the",
"service",
"where",
"to",
"continue",
"from",
"<",
"/",
"p",
">"
] | [
"set",
"max",
"items",
"(",
"max",
"items",
")",
";",
"return",
"this",
";"
] |
[
"adds",
"a",
"join",
"represented",
"by",
"the",
"given",
"information",
"to",
"the",
"fragment"
] | [
"add",
"join",
"(",
"table",
"name",
",",
"alias",
",",
"fk",
"columns",
",",
"pk",
"columns",
",",
"join",
"type",
",",
"null",
")",
";"
] |
[
"adds",
"an",
"externally",
"built",
"join",
"fragment"
] | [
"this",
"buffer",
"append",
"(",
"from",
"fragment",
"string",
")",
";"
] |
[
"allows",
"for",
"ignoring",
"beans",
"that",
"are",
"explicitly",
"configured",
"in",
"the",
"spring",
"xml",
"files"
] | [
"for",
"(",
"object",
"metadata",
"object",
":",
"blueprint",
"container",
"get",
"metadata",
"(",
"bean",
"metadata",
"class",
")",
")",
"{",
"bean",
"metadata",
"metadata",
"=",
"(",
"bean",
"metadata",
")",
"metadata",
"object",
";",
"if",
"(",
"bean",
"metadata",
"scope",
"singleton",
"equals",
"(",
"metadata",
"get",
"scope",
"(",
")",
")",
")",
"{",
"object",
"bean",
"=",
"blueprint",
"container",
"get",
"component",
"instance",
"(",
"metadata",
"get",
"id",
"(",
")",
")",
";",
"if",
"(",
"type",
"is",
"instance",
"(",
"bean",
")",
")",
"{",
"return",
"true",
";",
"}",
"}",
"}",
"return",
"false",
";"
] |
[
"returns",
"javacopts",
"for",
"compiling",
"the",
"java",
"source",
"files",
"generated",
"by",
"the",
"proto",
"compiler"
] | [
"return",
"construct",
"javac",
"opts",
"(",
"rule",
"context",
",",
"java",
"toolchain",
"provider",
"from",
"(",
"rule",
"context",
")",
")",
";"
] |
[
"returns",
"javacopts",
"for",
"compiling",
"the",
"java",
"source",
"files",
"generated",
"by",
"the",
"proto",
"compiler"
] | [
"return",
"immutable",
"list",
"<",
"string",
">",
"builder",
"(",
")",
"add",
"all",
"(",
"toolchain",
"get",
"javac",
"options",
"(",
")",
")",
"add",
"all",
"(",
"toolchain",
"get",
"compatible",
"javac",
"options",
"(",
"java",
"semantics",
"proto",
"javacopts",
"key",
")",
")",
"build",
"(",
")",
";"
] |
[
"returns",
"the",
"digraph",
"assoicated",
"with",
"the",
"symbol",
"graph",
"it",
"is",
"the",
"client",
"s",
"responsibility",
"not",
"to",
"mutate",
"the",
"digraph"
] | [
"return",
"graph",
";"
] |
[
"returns",
"the",
"digraph",
"assoicated",
"with",
"the",
"symbol",
"graph",
"it",
"is",
"the",
"client",
"s",
"responsibility",
"not",
"to",
"mutate",
"the",
"digraph"
] | [
"return",
"graph",
";"
] |
[
"unit",
"tests",
"the",
"{",
"@",
"code",
"symbol",
"digraph",
"}",
"data",
"type"
] | [
"string",
"filename",
"=",
"args",
"[",
"0",
"]",
";",
"string",
"delimiter",
"=",
"args",
"[",
"1",
"]",
";",
"symbol",
"digraph",
"sg",
"=",
"new",
"symbol",
"digraph",
"(",
"filename",
",",
"delimiter",
")",
";",
"digraph",
"graph",
"=",
"sg",
"digraph",
"(",
")",
";",
"while",
"(",
"!",
"std",
"in",
"is",
"empty",
"(",
")",
")",
"{",
"string",
"t",
"=",
"std",
"in",
"read",
"line",
"(",
")",
";",
"for",
"(",
"int",
"v",
":",
"graph",
"adj",
"(",
"sg",
"index",
"(",
"t",
")",
")",
")",
"{",
"std",
"out",
"println",
"(",
"\"",
"\"",
"+",
"sg",
"name",
"(",
"v",
")",
")",
";",
"}",
"}"
] |
[
"use",
"relaxed",
"state",
"comparison",
"due",
"to",
"numerical",
"rounding",
"see",
"also",
"dynamo",
"d",
"b",
"big",
"decimal",
"item",
"lose",
"digits"
] | [
"big",
"decimal",
"expected",
"decimal",
"=",
"(",
"(",
"decimal",
"type",
")",
"expected",
")",
"to",
"big",
"decimal",
"(",
")",
";",
"big",
"decimal",
"actual",
"decimal",
"=",
"(",
"(",
"decimal",
"type",
")",
"actual",
")",
"to",
"big",
"decimal",
"(",
")",
";",
"assert",
"true",
"(",
"dynamo",
"d",
"b",
"big",
"decimal",
"item",
"lose",
"digits",
"(",
"expected",
"decimal",
")",
"compare",
"to",
"(",
"actual",
"decimal",
")",
"=",
"=",
"0",
")",
";"
] |
[
"returns",
"target",
"object"
] | [
"return",
"this",
"target",
";"
] |
[
"runs",
"before",
"targets",
"method",
"returns",
"{"
] | [
"public",
"abstract",
"boolean",
"before",
"(",
"object",
"target",
",",
"method",
"method",
",",
"object",
"[",
"]",
"args",
")",
";"
] |
[
"runs",
"after",
"targets",
"method",
"returns",
"{"
] | [
"public",
"abstract",
"boolean",
"after",
"(",
"object",
"target",
",",
"method",
"method",
",",
"object",
"[",
"]",
"args",
")",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.