docstring_tokens list | code_tokens list |
|---|---|
[
"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",
"(",
"so... |
[
"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",
"up... | [
"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",
"<",
">",
... |
[
"validations",
"specific",
"to",
"put"
] | [
"boolean",
"result",
"=",
"false",
";",
"if",
"(",
"!",
"super",
"parse",
"and",
"validate",
"request",
"(",
")",
"|",
"|",
"!",
"has",
"vector",
"clock",
"(",
"this",
"is",
"vector",
"clock",
"optional",
")",
"|",
"|",
"!",
"has",
"content",
"length... |
[
"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",
"(",
")",
","... |
[
"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",
... |
[
"mark",
"all",
"notifications",
"as",
"tapped"
] | [
"for",
"(",
"iterator",
"<",
"map",
"entry",
"<",
"integer",
",",
"bundle",
">",
">",
"it",
"=",
"active",
"notifications",
"map",
"entry",
"set",
"(",
")",
"iterator",
"(",
")",
";",
"it",
"has",
"next",
"(",
")",
";",
")",
"{",
"map",
"entry",
... |
[
"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"... |
[
"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",
"local... | [
"if",
"(",
"context",
"=",
"=",
"null",
")",
"{",
"return",
";",
"}",
"string",
"title",
"=",
"context",
"get",
"string",
"(",
"r",
"string",
"support",
"push",
"notification",
"title",
")",
";",
"string",
"message",
"=",
"context",
"get",
"string",
"(... |
[
"<",
"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",
... | [
"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",
"... | [
"local",
"queue",
"stats",
"impl",
"stats",
"=",
"get",
"local",
"queue",
"stats",
"impl",
"(",
"name",
")",
";",
"stats",
"set",
"owned",
"item",
"count",
"(",
"0",
")",
";",
"stats",
"set",
"backup",
"item",
"count",
"(",
"0",
")",
";",
"queue",
... |
[
"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",
... | [
"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",
"distributio... | [
"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... | [
"if",
"(",
"this",
"items",
"=",
"=",
"null",
")",
"{",
"set",
"items",
"(",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"string",
">",
"(",
"items",
"length",
")",
")",
";",
"}",
"for",
"(",
"string",
"ele",
":",
"items"... |
[
"<",
"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... | [
"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",
"]"... |
[
"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"... | [
"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",
"<",
... | [
"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",
";",
"... |
[
"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",
")",
")",
"... |
[
"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",
")",
")",
"{",
... |
[
"<",
"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",
"tes... |
[
"{"
] | [
"@",
"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",
... |
[
"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",
"dur... | [
"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",
... |
[
"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",
";... |
[
"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",
"+",
... |
[
"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",
"+",
... |
[
"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",
... |
[
"one",
"norm"
] | [
"double",
"f",
"=",
"0",
";",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"n",
";",
"j",
"+",
"+",
")",
"{",
"double",
"s",
"=",
"0",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"m",
";",
"i",
"+",
"+",
")",
"{",
"s",... |
[
"infinity",
"norm"
] | [
"double",
"f",
"=",
"0",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"m",
";",
"i",
"+",
"+",
")",
"{",
"double",
"s",
"=",
"0",
";",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"n",
";",
"j",
"+",
"+",
")",
"{",
"s",... |
[
"unary",
"minus"
] | [
"matrix",
"x",
"=",
"new",
"matrix",
"(",
"m",
",",
"n",
")",
";",
"double",
"[",
"]",
"[",
"]",
"c",
"=",
"x",
"get",
"array",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"m",
";",
"i",
"+",
"+",
")",
"{",
"for",
... |
[
"c",
"=",
"a",
"+",
"b"
] | [
"check",
"matrix",
"dimensions",
"(",
"b",
")",
";",
"matrix",
"x",
"=",
"new",
"matrix",
"(",
"m",
",",
"n",
")",
";",
"double",
"[",
"]",
"[",
"]",
"c",
"=",
"x",
"get",
"array",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
... |
[
"a",
"=",
"a",
"+",
"b"
] | [
"check",
"matrix",
"dimensions",
"(",
"b",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"m",
";",
"i",
"+",
"+",
")",
"{",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"n",
";",
"j",
"+",
"+",
")",
"{",
"a",
"[",
"i"... |
[
"c",
"=",
"a",
"-",
"b"
] | [
"check",
"matrix",
"dimensions",
"(",
"b",
")",
";",
"matrix",
"x",
"=",
"new",
"matrix",
"(",
"m",
",",
"n",
")",
";",
"double",
"[",
"]",
"[",
"]",
"c",
"=",
"x",
"get",
"array",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
... |
[
"a",
"=",
"a",
"-",
"b"
] | [
"check",
"matrix",
"dimensions",
"(",
"b",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"m",
";",
"i",
"+",
"+",
")",
"{",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"n",
";",
"j",
"+",
"+",
")",
"{",
"a",
"[",
"i"... |
[
"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",
... |
[
"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"... |
[
"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",
... |
[
"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"... |
[
"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",
... |
[
"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"... |
[
"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",
... |
[
"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",
"[",
... |
[
"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",
... |
[
"generate",
"identity",
"matrix"
] | [
"matrix",
"a",
"=",
"new",
"matrix",
"(",
"m",
",",
"n",
")",
";",
"double",
"[",
"]",
"[",
"]",
"x",
"=",
"a",
"get",
"array",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"m",
";",
"i",
"+",
"+",
")",
"{",
"for",
... |
[
"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",... |
[
"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",
"b... | [
"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",
... | [
"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",
"<",
... | [
"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",
"maximu... | [
"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",
... |
[
"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",
... |
[
"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",
"di... |
[
"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",... |
[
"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.