docstring_tokens
list | code_tokens
list |
---|---|
[
"returns",
"the",
"perigee"
] | [
"return",
"perigee",
";"
] |
[
"sets",
"the",
"perigee"
] | [
"this",
"perigee",
"=",
"perigee",
";"
] |
[
"returns",
"the",
"eclipses"
] | [
"return",
"eclipse",
";"
] |
[
"sets",
"the",
"eclipses"
] | [
"this",
"eclipse",
"=",
"eclipse",
";"
] |
[
"returns",
"the",
"current",
"distance"
] | [
"return",
"distance",
";"
] |
[
"sets",
"the",
"current",
"distance"
] | [
"this",
"distance",
"=",
"distance",
";"
] |
[
"returns",
"the",
"zodiac"
] | [
"return",
"zodiac",
";"
] |
[
"sets",
"the",
"zodiac"
] | [
"this",
"zodiac",
"=",
"zodiac",
";"
] |
[
"specify",
"whether",
"to",
"reobtain",
"the",
"target",
"connection",
"for",
"each",
"operation",
"performed",
"within",
"a",
"transaction",
"<",
"p",
">",
"the",
"default",
"is",
"false",
"specify",
"true",
"to",
"reobtain",
"transactional",
"connections",
"for",
"every",
"call",
"on",
"the",
"connection",
"proxy",
";",
"this",
"is",
"advisable",
"on",
"j",
"boss",
"if",
"you",
"hold",
"on",
"to",
"a",
"connection",
"handle",
"across",
"transaction",
"boundaries",
"<",
"p",
">",
"the",
"effect",
"of",
"this",
"setting",
"is",
"similar",
"to",
"the",
"hibernate",
"connection",
"release",
"mode",
"value",
"after",
"statement"
] | [
"this",
"reobtain",
"transactional",
"connections",
"=",
"reobtain",
"transactional",
"connections",
";"
] |
[
"delegates",
"to",
"data",
"source",
"utils",
"for",
"automatically",
"participating",
"in",
"spring",
"-",
"managed",
"transactions",
"throws",
"the",
"original",
"s",
"q",
"l",
"exception",
"if",
"any",
"<",
"p",
">",
"the",
"returned",
"connection",
"handle",
"implements",
"the",
"connection",
"proxy",
"interface",
"allowing",
"to",
"retrieve",
"the",
"underlying",
"target",
"connection"
] | [
"return",
"get",
"transaction",
"aware",
"connection",
"proxy",
"(",
"obtain",
"target",
"data",
"source",
"(",
")",
")",
";"
] |
[
"wraps",
"the",
"given",
"connection",
"with",
"a",
"proxy",
"that",
"delegates",
"every",
"method",
"call",
"to",
"it",
"but",
"delegates",
"{"
] | [
"return",
"(",
"connection",
")",
"proxy",
"new",
"proxy",
"instance",
"(",
"connection",
"proxy",
"class",
"get",
"class",
"loader",
"(",
")",
",",
"new",
"class",
"<",
"?",
">",
"[",
"]",
"{",
"connection",
"proxy",
"class",
"}",
",",
"new",
"transaction",
"aware",
"invocation",
"handler",
"(",
"target",
"data",
"source",
")",
")",
";"
] |
[
"determine",
"whether",
"to",
"obtain",
"a",
"fixed",
"target",
"connection",
"for",
"the",
"proxy",
"or",
"to",
"reobtain",
"the",
"target",
"connection",
"for",
"each",
"operation",
"<",
"p",
">",
"the",
"default",
"implementation",
"returns",
"{"
] | [
"return",
"(",
"!",
"transaction",
"synchronization",
"manager",
"is",
"synchronization",
"active",
"(",
")",
"|",
"|",
"!",
"this",
"reobtain",
"transactional",
"connections",
")",
";"
] |
[
"sets",
"the",
"name",
"of",
"the",
"bucket",
"whose",
"versioning",
"configuration",
"is",
"being",
"set",
"and",
"returns",
"this",
"object",
"so",
"that",
"additional",
"method",
"calls",
"may",
"be",
"chained",
"together"
] | [
"set",
"bucket",
"name",
"(",
"bucket",
"name",
")",
";",
"return",
"this",
";"
] |
[
"gets",
"the",
"new",
"versioning",
"configuration",
"for",
"the",
"specified",
"bucket"
] | [
"return",
"versioning",
"configuration",
";"
] |
[
"sets",
"the",
"new",
"versioning",
"configuration",
"for",
"the",
"specified",
"bucket"
] | [
"this",
"versioning",
"configuration",
"=",
"versioning",
"configuration",
";"
] |
[
"sets",
"the",
"new",
"versioning",
"configuration",
"for",
"the",
"specified",
"bucket",
"and",
"returns",
"this",
"object",
"enabling",
"additional",
"method",
"calls",
"to",
"be",
"chained",
"together"
] | [
"set",
"versioning",
"configuration",
"(",
"versioning",
"configuration",
")",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"optional",
"multi",
"-",
"factor",
"authentication",
"information",
"to",
"include",
"with",
"this",
"request",
"and",
"returns",
"this",
"object",
"so",
"that",
"additional",
"method",
"calls",
"may",
"be",
"chained",
"together",
"<",
"p",
">",
"multi",
"-",
"factor",
"authentication",
"is",
"required",
"when",
"enabling",
"or",
"disabling",
"mfa",
"delete",
"functionality",
"for",
"a",
"bucket",
"<",
"/",
"p",
">",
"<",
"p",
">",
"see",
"{",
"@",
"link",
"bucket",
"versioning",
"configuration",
"#",
"set",
"mfa",
"delete",
"enabled",
"(",
"boolean",
")",
"}",
"for",
"more",
"information",
"on",
"m",
"f",
"a",
"delete",
"<",
"/",
"p",
">"
] | [
"set",
"mfa",
"(",
"mfa",
")",
";",
"return",
"this",
";"
] |
[
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-"
] | [
"if",
"(",
"set",
"instanceof",
"field",
"list",
")",
"{",
"return",
"(",
"is",
"valid",
"subset",
"(",
"(",
"field",
"list",
")",
"set",
")",
")",
";",
"}",
"else",
"{",
"return",
"false",
";",
"}"
] |
[
"renders",
"tag",
"body",
"to",
"char",
"array"
] | [
"fast",
"char",
"array",
"writer",
"writer",
"=",
"new",
"fast",
"char",
"array",
"writer",
"(",
")",
";",
"invoke",
"body",
"(",
"body",
",",
"writer",
")",
";",
"return",
"writer",
"to",
"char",
"array",
"(",
")",
";"
] |
[
"renders",
"tag",
"body",
"to",
"string"
] | [
"char",
"[",
"]",
"result",
"=",
"render",
"body",
"(",
"body",
")",
";",
"return",
"new",
"string",
"(",
"result",
")",
";"
] |
[
"sets",
"scope",
"attribute"
] | [
"try",
"{",
"servlet",
"util",
"set",
"scope",
"attribute",
"(",
"name",
",",
"value",
",",
"scope",
",",
"page",
"context",
")",
";",
"}",
"catch",
"(",
"unchecked",
"exception",
"uex",
")",
"{",
"throw",
"new",
"jsp",
"exception",
"(",
"uex",
")",
";",
"}"
] |
[
"removes",
"scope",
"attribute"
] | [
"try",
"{",
"servlet",
"util",
"remove",
"scope",
"attribute",
"(",
"name",
",",
"scope",
",",
"page",
"context",
")",
";",
"}",
"catch",
"(",
"unchecked",
"exception",
"uex",
")",
"{",
"throw",
"new",
"jsp",
"exception",
"(",
"uex",
")",
";",
"}"
] |
[
"function",
"that",
"verifies",
"whether",
"the",
"edge",
"to",
"be",
"removed",
"is",
"part",
"of",
"the",
"sssp",
"or",
"not",
"if",
"it",
"is",
"the",
"src",
"vertex",
"will",
"be",
"invalidated"
] | [
"return",
"edges",
"in",
"s",
"s",
"s",
"p",
"filter",
"(",
"new",
"filter",
"function",
"<",
"edge",
"<",
"long",
",",
"double",
">",
">",
"(",
")",
"{",
"@",
"override",
"public",
"boolean",
"filter",
"(",
"edge",
"<",
"long",
",",
"double",
">",
"edge",
")",
"throws",
"exception",
"{",
"return",
"edge",
"equals",
"(",
"edge",
"to",
"be",
"removed",
")",
";",
"}",
"}",
")",
"count",
"(",
")",
">",
"0",
";"
] |
[
"notify",
"system",
"services",
"of",
"vr",
"mode",
"change",
"<",
"p",
"/",
">",
"note",
":",
"must",
"be",
"called",
"while",
"holding",
"{"
] | [
"m",
"handler",
"send",
"message",
"(",
"m",
"handler",
"obtain",
"message",
"(",
"msg",
"vr",
"state",
"change",
",",
"(",
"m",
"vr",
"mode",
"enabled",
")",
"?",
"1",
":",
"0",
",",
"0",
")",
")",
";"
] |
[
"apply",
"the",
"pending",
"vr",
"state",
"if",
"no",
"state",
"is",
"pending",
"disconnect",
"any",
"currently",
"bound",
"vr",
"listener",
"service"
] | [
"consume",
"and",
"apply",
"pending",
"state",
"locked",
"(",
"true",
")",
";"
] |
[
"apply",
"the",
"pending",
"vr",
"state"
] | [
"if",
"(",
"m",
"pending",
"state",
"!",
"=",
"null",
")",
"{",
"update",
"current",
"vr",
"service",
"locked",
"(",
"m",
"pending",
"state",
"enabled",
",",
"m",
"pending",
"state",
"running",
"2d",
"in",
"vr",
",",
"m",
"pending",
"state",
"target",
"package",
"name",
",",
"m",
"pending",
"state",
"user",
"id",
",",
"m",
"pending",
"state",
"process",
"id",
",",
"m",
"pending",
"state",
"calling",
"package",
")",
";",
"m",
"pending",
"state",
"=",
"null",
";",
"}",
"else",
"if",
"(",
"disconnect",
"if",
"no",
"pending",
"state",
")",
"{",
"update",
"current",
"vr",
"service",
"locked",
"(",
"false",
",",
"false",
",",
"null",
",",
"0",
",",
"-",
"1",
",",
"null",
")",
";",
"}"
] |
[
"/",
"*",
"implementation",
"of",
"i",
"vr",
"manager",
"calls"
] | [
"m",
"vr",
"state",
"remote",
"callbacks",
"register",
"(",
"cb",
")",
";"
] |
[
"{"
] | [
"ignite",
"configuration",
"cfg",
"=",
"super",
"get",
"configuration",
"(",
"ignite",
"instance",
"name",
")",
";",
"cfg",
"set",
"discovery",
"spi",
"(",
"new",
"tcp",
"discovery",
"spi",
"(",
")",
"set",
"ip",
"finder",
"(",
"ip",
"finder",
")",
")",
";",
"cfg",
"set",
"data",
"storage",
"configuration",
"(",
"new",
"data",
"storage",
"configuration",
"(",
")",
"set",
"file",
"i",
"o",
"factory",
"(",
"new",
"slow",
"checkpoint",
"file",
"i",
"o",
"factory",
"(",
")",
")",
"set",
"checkpoint",
"threads",
"(",
"checkpoint",
"threads",
")",
"set",
"default",
"data",
"region",
"configuration",
"(",
"new",
"data",
"region",
"configuration",
"(",
")",
"set",
"persistence",
"enabled",
"(",
"true",
")",
"set",
"max",
"size",
"(",
"max",
"size",
")",
"set",
"checkpoint",
"page",
"buffer",
"size",
"(",
"cp",
"buf",
"size",
")",
")",
")",
";",
"cfg",
"set",
"failure",
"handler",
"(",
"new",
"stop",
"node",
"failure",
"handler",
"(",
")",
")",
";",
"str",
"log",
"=",
"new",
"grid",
"string",
"logger",
"(",
"false",
",",
"new",
"grid",
"test",
"log",
"4j",
"logger",
"(",
")",
")",
";",
"cfg",
"set",
"grid",
"logger",
"(",
"str",
"log",
")",
";",
"return",
"cfg",
";"
] |
[
"{"
] | [
"stop",
"set",
"(",
"false",
")",
";",
"slow",
"checkpoint",
"enabled",
"set",
"(",
"false",
")",
";",
"stop",
"all",
"grids",
"(",
")",
";",
"clean",
"persistence",
"dir",
"(",
")",
";"
] |
[
"{"
] | [
"stop",
"set",
"(",
"true",
")",
";",
"slow",
"checkpoint",
"enabled",
"set",
"(",
"false",
")",
";",
"stop",
"all",
"grids",
"(",
")",
";",
"clean",
"persistence",
"dir",
"(",
")",
";"
] |
[
"returns",
"<",
"code",
">",
"true",
"<",
"/",
"code",
">",
"if",
"multi",
"-",
"part",
"request",
"is",
"already",
"loaded"
] | [
"return",
"parsed",
";"
] |
[
"tells",
"if",
"it",
"was",
"an",
"expression",
"which",
"is",
"intended",
"to",
"be",
"used",
"as",
"a",
"predicate",
"(",
"determined",
"from",
"camel",
"-",
"core",
"mode",
")"
] | [
"this",
"predicate",
"=",
"predicate",
";"
] |
[
"sets",
"the",
"size",
"in",
"bytes",
"of",
"this",
"data",
"type",
"this",
"is",
"set",
"after",
"writing",
"the",
"data",
"to",
"allow",
"us",
"to",
"recalculate",
"the",
"size",
"for",
"frame",
"header"
] | [
"this",
"size",
"=",
"size",
";"
] |
[
"return",
"string",
"representation",
"of",
"data",
"type"
] | [
"return",
"(",
"string",
")",
"value",
";"
] |
[
"indicates",
"that",
"a",
"new",
"snapshot",
"is",
"about",
"to",
"be",
"sent"
] | [
"int",
"snapshot",
"number",
";",
"synchronized",
"(",
"snap",
"count",
"sync",
"object",
")",
"{",
"if",
"(",
"!",
"essential",
"&",
"&",
"timeout",
"millis",
">",
"0",
"&",
"&",
"snaps",
"in",
"progress",
">",
"=",
"max",
"concurrent",
"snapshots",
")",
"{",
"long",
"timestamp",
"=",
"time",
"current",
"elapsed",
"time",
"(",
")",
";",
"do",
"{",
"snap",
"count",
"sync",
"object",
"wait",
"(",
"timeout",
"millis",
")",
";",
"}",
"while",
"(",
"snaps",
"in",
"progress",
">",
"=",
"max",
"concurrent",
"snapshots",
"&",
"&",
"timestamp",
"+",
"timeout",
"millis",
"<",
"time",
"current",
"elapsed",
"time",
"(",
")",
")",
";",
"}",
"if",
"(",
"essential",
"|",
"|",
"snaps",
"in",
"progress",
"<",
"max",
"concurrent",
"snapshots",
")",
"{",
"snaps",
"in",
"progress",
"+",
"+",
";",
"snapshot",
"number",
"=",
"snaps",
"in",
"progress",
";",
"}",
"else",
"{",
"throw",
"new",
"snapshot",
"throttle",
"exception",
"(",
"snaps",
"in",
"progress",
"+",
"1",
",",
"max",
"concurrent",
"snapshots",
")",
";",
"}",
"}",
"return",
"new",
"learner",
"snapshot",
"(",
"this",
",",
"snapshot",
"number",
",",
"essential",
")",
";"
] |
[
"{"
] | [
"ignite",
"configuration",
"cfg",
"=",
"get",
"configuration",
"(",
"name",
")",
";",
"assert",
"cfg",
"get",
"connector",
"configuration",
"(",
")",
"=",
"=",
"null",
";",
"connector",
"configuration",
"client",
"cfg",
"=",
"new",
"connector",
"configuration",
"(",
")",
";",
"if",
"(",
"addr",
"!",
"=",
"null",
")",
"client",
"cfg",
"set",
"host",
"(",
"addr",
")",
";",
"if",
"(",
"port",
"!",
"=",
"null",
")",
"client",
"cfg",
"set",
"port",
"(",
"port",
")",
";",
"cfg",
"set",
"connector",
"configuration",
"(",
"client",
"cfg",
")",
";",
"return",
"g",
"start",
"(",
"cfg",
")",
";"
] |
[
"{"
] | [
"return",
"ignite",
"configuration",
"dflt",
"tcp",
"port",
";"
] |
[
"{"
] | [
"return",
"ignite",
"node",
"attributes",
"attr",
"rest",
"tcp",
"addrs",
";"
] |
[
"{"
] | [
"return",
"ignite",
"node",
"attributes",
"attr",
"rest",
"tcp",
"host",
"names",
";"
] |
[
"{"
] | [
"return",
"ignite",
"node",
"attributes",
"attr",
"rest",
"tcp",
"port",
";"
] |
[
"default",
"value",
"is",
"50",
"milliseconds"
] | [
"return",
"sort",
"period",
";"
] |
[
"remove",
"an",
"entity",
"from",
"this",
"container"
] | [
"entities",
"remove",
"(",
"e",
")",
";",
"if",
"(",
"sorting",
")",
"{",
"commands",
"add",
"(",
"new",
"remove",
"command",
"(",
"e",
")",
")",
";",
"}"
] |
[
"warning",
":",
"this",
"method",
"is",
"memory",
"intensive",
"as",
"the",
"list",
"is",
"copied",
"the",
"copying",
"is",
"required",
"to",
"ensure",
"thread",
"safety",
"returns",
"a",
"normal",
"iterator",
"over",
"all",
"entities",
"in",
"this",
"collection",
"while",
"this",
"class",
"attempts",
"to",
"keep",
"the",
"elements",
"sorted",
"based",
"on",
"the",
"distance",
"to",
"the",
"player",
"this",
"is",
"not",
"guaranteed",
"the",
"sorting",
"tries",
"to",
"put",
"closer",
"objects",
"on",
"a",
"lower",
"index",
"hence",
"they",
"will",
"returned",
"first",
"by",
"this",
"iterator"
] | [
"return",
"clone",
"entities",
"(",
")",
"iterator",
"(",
")",
";"
] |
[
"warning",
":",
"this",
"method",
"is",
"memory",
"intensive",
"as",
"the",
"list",
"is",
"copied",
"the",
"copying",
"is",
"required",
"to",
"ensure",
"thread",
"safety",
"similar",
"to",
"iterator",
"(",
")",
"but",
"this",
"version",
"returns",
"a",
"list",
"iterator",
"which",
"has",
"some",
"additional",
"functionality"
] | [
"return",
"clone",
"entities",
"(",
")",
"list",
"iterator",
"(",
")",
";"
] |
[
"returns",
"a",
"copy",
"of",
"the",
"entities",
"in",
"this",
"container",
"although",
"it",
"is",
"not",
"guaranteed",
"the",
"list",
"is",
"sorted",
"attempts",
"have",
"been",
"made",
"to",
"put",
"entities",
"nearer",
"to",
"the",
"player",
"at",
"a",
"lower",
"index"
] | [
"return",
"clone",
"entities",
"(",
")",
";"
] |
[
"fills",
"the",
"given",
"array",
"with",
"entities",
"from",
"this",
"container",
"attempts",
"are",
"made",
"to",
"put",
"the",
"entities",
"nearest",
"to",
"the",
"player",
"in",
"this",
"array",
"and",
"nearer",
"entities",
"are",
"expected",
"but",
"not",
"guaranteed",
"to",
"be",
"at",
"a",
"lower",
"index",
"<",
"br",
">",
"<",
"br",
">",
"this",
"is",
"the",
"most",
"memory",
"friendly",
"way",
"to",
"obtain",
"elements",
"from",
"this",
"container"
] | [
"int",
"size",
"=",
"math",
"min",
"(",
"size",
"(",
")",
",",
"output",
"length",
")",
";",
"iterator",
"<",
"entity",
"ref",
">",
"iter",
"=",
"entities",
"iterator",
"(",
")",
";",
"for",
"(",
"int",
"x",
"=",
"0",
";",
"x",
"<",
"size",
";",
"x",
"+",
"+",
")",
"{",
"output",
"[",
"x",
"]",
"=",
"iter",
"next",
"(",
")",
";",
"}",
"return",
"size",
";"
] |
[
"returns",
"the",
"entities",
"that",
"are",
"expected",
"to",
"be",
"the",
"nearest",
"to",
"the",
"player",
"it",
"is",
"not",
"guaranteed",
"they",
"are",
"the",
"nearest",
"entities",
"though"
] | [
"entity",
"ref",
"[",
"]",
"output",
"=",
"new",
"entity",
"ref",
"[",
"math",
"min",
"(",
"count",
",",
"size",
"(",
")",
")",
"]",
";",
"get",
"nearest",
"(",
"output",
")",
";",
"return",
"output",
";"
] |
[
"calling",
"this",
"method",
"starts",
"the",
"background",
"sorting",
"if",
"never",
"called",
"the",
"elements",
"in",
"this",
"container",
"are",
"never",
"sorted",
"!"
] | [
"initialise",
"(",
"origin",
",",
"50",
",",
"0",
")",
";"
] |
[
"although",
"it",
"has",
"the",
"exact",
"same",
"function",
"as",
"get",
"entries",
"(",
")",
"it",
"reads",
"easier",
"inside",
"this",
"class",
"when",
"the",
"word",
"clone",
"is",
"used",
"rather",
"than",
"get"
] | [
"return",
"lists",
"new",
"linked",
"list",
"(",
"entities",
")",
";"
] |
[
"these",
"two",
"actions",
"needed",
"to",
"happen",
"atomically",
"and",
"the",
"easier",
"method",
"was",
"to",
"put",
"them",
"in",
"a",
"synchronized",
"method"
] | [
"sorting",
"=",
"true",
";",
"return",
"clone",
"entities",
"(",
")",
";"
] |
[
"clear",
"the",
"command",
"queue",
"in",
"a",
"synchronized",
"way",
"used",
"when",
"the",
"sorting",
"fails"
] | [
"commands",
"clear",
"(",
")",
";"
] |
[
"returns",
"the",
"date",
"time",
"field",
"type",
"whose",
"value",
"was",
"invalid",
"or",
"null",
"if",
"not",
"applicable"
] | [
"return",
"i",
"date",
"time",
"field",
"type",
";"
] |
[
"returns",
"the",
"duration",
"field",
"type",
"whose",
"value",
"was",
"invalid",
"or",
"null",
"if",
"not",
"applicable"
] | [
"return",
"i",
"duration",
"field",
"type",
";"
] |
[
"returns",
"the",
"name",
"of",
"the",
"field",
"whose",
"value",
"was",
"invalid"
] | [
"return",
"i",
"field",
"name",
";"
] |
[
"returns",
"the",
"illegal",
"integer",
"value",
"assigned",
"to",
"the",
"field",
"or",
"null",
"if",
"not",
"applicable"
] | [
"return",
"i",
"number",
"value",
";"
] |
[
"returns",
"the",
"illegal",
"string",
"value",
"assigned",
"to",
"the",
"field",
"or",
"null",
"if",
"not",
"applicable"
] | [
"return",
"i",
"string",
"value",
";"
] |
[
"returns",
"the",
"illegal",
"value",
"assigned",
"to",
"the",
"field",
"as",
"a",
"non",
"-",
"null",
"string"
] | [
"string",
"value",
"=",
"i",
"string",
"value",
";",
"if",
"(",
"value",
"=",
"=",
"null",
")",
"{",
"value",
"=",
"string",
"value",
"of",
"(",
"i",
"number",
"value",
")",
";",
"}",
"return",
"value",
";"
] |
[
"returns",
"the",
"lower",
"bound",
"of",
"the",
"legal",
"value",
"range",
"or",
"null",
"if",
"not",
"applicable"
] | [
"return",
"i",
"lower",
"bound",
";"
] |
[
"returns",
"the",
"upper",
"bound",
"of",
"the",
"legal",
"value",
"range",
"or",
"null",
"if",
"not",
"applicable"
] | [
"return",
"i",
"upper",
"bound",
";"
] |
[
"creates",
"arguments",
"holder",
"with",
"required",
"parameters"
] | [
"return",
"new",
"pull",
"params",
"(",
")",
"with",
"image",
"(",
"image",
")",
";"
] |
[
"adds",
"image",
"to",
"this",
"parameters"
] | [
"require",
"non",
"null",
"(",
"image",
")",
";",
"this",
"image",
"=",
"image",
";",
"return",
"this",
";"
] |
[
"adds",
"tag",
"to",
"this",
"parameters"
] | [
"this",
"tag",
"=",
"tag",
";",
"return",
"this",
";"
] |
[
"adds",
"registry",
"to",
"this",
"parameters"
] | [
"this",
"registry",
"=",
"registry",
";",
"return",
"this",
";"
] |
[
"adds",
"auth",
"configuration",
"to",
"this",
"parameters"
] | [
"this",
"auth",
"configs",
"=",
"auth",
"configs",
";",
"return",
"this",
";"
] |
[
"returns",
"full",
"repo",
"it",
"has",
"following",
"format",
":",
"[",
"registry",
"/",
"]",
"image",
"in",
"case",
"of",
"docker",
"io",
"registry",
"is",
"omitted",
"otherwise",
"it",
"may",
"cause",
"some",
"troubles",
"with",
"swarm"
] | [
"if",
"(",
"registry",
"=",
"=",
"null",
"|",
"|",
"default",
"registry",
"synonyms",
"contains",
"(",
"registry",
")",
")",
"{",
"return",
"image",
";",
"}",
"else",
"{",
"return",
"registry",
"+",
"'",
"/",
"'",
"+",
"image",
";",
"}"
] |
[
"get",
"the",
"config",
"properties"
] | [
"return",
"collections",
"unmodifiable",
"map",
"(",
"config",
"properties",
")",
";"
] |
[
"get",
"the",
"jndi",
"name"
] | [
"return",
"jndi",
"name",
";"
] |
[
"get",
"the",
"pool",
"name"
] | [
"return",
"pool",
"name",
";"
] |
[
"get",
"the",
"enabled"
] | [
"return",
"enabled",
";"
] |
[
"get",
"the",
"use",
"java",
"context"
] | [
"return",
"use",
"java",
"context",
";"
] |
[
"get",
"the",
"use",
"ccm"
] | [
"return",
"use",
"ccm",
";"
] |
[
"get",
"the",
"pool"
] | [
"return",
"pool",
";"
] |
[
"get",
"the",
"time",
"out"
] | [
"return",
"time",
"out",
";"
] |
[
"get",
"the",
"validation"
] | [
"return",
"validation",
";"
] |
[
"get",
"the",
"security"
] | [
"return",
"security",
";"
] |
[
"get",
"the",
"recovery"
] | [
"return",
"recovery",
";"
] |
[
"the",
"enter",
"advice"
] | [
"return",
"cached",
";"
] |
[
"initialize",
"a",
"read",
"strategy",
"object",
"from",
"a",
"domain",
"socket"
] | [
"public",
"abstract",
"void",
"init",
"(",
"domain",
"socket",
"s",
")",
"throws",
"i",
"o",
"exception",
";"
] |
[
"read",
"some",
"bytes"
] | [
"public",
"abstract",
"int",
"read",
"(",
"byte",
"b",
"[",
"]",
",",
"int",
"off",
",",
"int",
"length",
")",
"throws",
"i",
"o",
"exception",
";"
] |
[
"run",
"validate",
"socket",
"path",
"security"
] | [
"int",
"skip",
"components",
"=",
"1",
";",
"file",
"prefix",
"file",
"=",
"new",
"file",
"(",
"prefix",
")",
";",
"while",
"(",
"true",
")",
"{",
"prefix",
"file",
"=",
"prefix",
"file",
"get",
"parent",
"file",
"(",
")",
";",
"if",
"(",
"prefix",
"file",
"=",
"=",
"null",
")",
"{",
"break",
";",
"}",
"skip",
"components",
"+",
"+",
";",
"}",
"domain",
"socket",
"validate",
"socket",
"path",
"security",
"0",
"(",
"str",
",",
"skip",
"components",
")",
";"
] |
[
"turns",
"a",
"byte",
"array",
"into",
"a",
"string"
] | [
"final",
"string",
"buffer",
"string",
"buffer",
"=",
"new",
"string",
"buffer",
"(",
")",
";",
"for",
"(",
"final",
"byte",
"b",
":",
"memory",
")",
"{",
"string",
"buffer",
"append",
"(",
"convert",
"byte",
"to",
"hex",
"string",
"(",
"b",
")",
")",
";",
"}",
"return",
"string",
"buffer",
"to",
"string",
"(",
")",
";"
] |
[
"returns",
"the",
"binder",
"interface",
"for",
"the",
"geocode",
"provider",
"this",
"is",
"intended",
"to",
"be",
"used",
"for",
"the",
"on",
"bind",
"(",
")",
"method",
"of",
"a",
"service",
"that",
"implements",
"a",
"geocoder",
"service"
] | [
"return",
"m",
"provider",
";"
] |
[
"called",
"when",
"geofence",
"hardware",
"object",
"becomes",
"available"
] | [
"public",
"abstract",
"void",
"on",
"geofence",
"hardware",
"change",
"(",
"geofence",
"hardware",
"geofence",
"hardware",
")",
";"
] |
[
"used",
"to",
"add",
"new",
"interpretations"
] | [
"new",
"token",
"readings",
"=",
"new",
"readings",
"clone",
"(",
")",
";"
] |
[
"performs",
"disambiguation",
"on",
"the",
"source",
"sentence"
] | [
"disambiguation",
"pattern",
"rule",
"replacer",
"replacer",
"=",
"new",
"disambiguation",
"pattern",
"rule",
"replacer",
"(",
"this",
")",
";",
"return",
"replacer",
"replace",
"(",
"sentence",
")",
";"
] |
[
"returns",
"all",
"executors",
"the",
"result",
"is",
"cached",
"to",
"reload",
"call",
"{",
"@",
"link",
"#",
"setup",
"executors",
"(",
")",
"}"
] | [
"return",
"this",
"active",
"executors",
";"
] |
[
"calls",
"broker",
"binary",
"proto",
"-",
"lookup",
"api",
"to",
"find",
"broker",
"-",
"service",
"address",
"which",
"can",
"serve",
"a",
"given",
"topic"
] | [
"return",
"find",
"broker",
"(",
"service",
"address",
",",
"false",
",",
"topic",
"name",
")",
";"
] |
[
"calls",
"broker",
"binary",
"proto",
"-",
"lookup",
"api",
"to",
"get",
"metadata",
"of",
"partitioned",
"-",
"topic"
] | [
"return",
"get",
"partitioned",
"topic",
"metadata",
"(",
"service",
"address",
",",
"topic",
"name",
")",
";"
] |
[
"calculate",
"a",
"moving",
"average",
"given",
"the",
"length"
] | [
"i",
"n",
"d",
"array",
"ret",
"=",
"nd",
"4j",
"cumsum",
"(",
"to",
"avg",
")",
";",
"i",
"n",
"d",
"array",
"index",
"[",
"]",
"ends",
"=",
"new",
"i",
"n",
"d",
"array",
"index",
"[",
"]",
"{",
"n",
"d",
"array",
"index",
"interval",
"(",
"n",
",",
"to",
"avg",
"columns",
"(",
")",
")",
"}",
";",
"i",
"n",
"d",
"array",
"index",
"[",
"]",
"begins",
"=",
"new",
"i",
"n",
"d",
"array",
"index",
"[",
"]",
"{",
"n",
"d",
"array",
"index",
"interval",
"(",
"0",
",",
"to",
"avg",
"columns",
"(",
")",
"-",
"n",
",",
"false",
")",
"}",
";",
"i",
"n",
"d",
"array",
"index",
"[",
"]",
"n",
"minus",
"one",
"=",
"new",
"i",
"n",
"d",
"array",
"index",
"[",
"]",
"{",
"n",
"d",
"array",
"index",
"interval",
"(",
"n",
"-",
"1",
",",
"to",
"avg",
"columns",
"(",
")",
")",
"}",
";",
"ret",
"put",
"(",
"ends",
",",
"ret",
"get",
"(",
"ends",
")",
"sub",
"(",
"ret",
"get",
"(",
"begins",
")",
")",
")",
";",
"return",
"ret",
"get",
"(",
"n",
"minus",
"one",
")",
"divi",
"(",
"n",
")",
";"
] |
[
"scaling",
"bitmap",
"to",
"fill",
"rect",
"with",
"centering",
"method",
"keep",
"aspect",
"ratio"
] | [
"bitmap",
"res",
"=",
"bitmap",
"create",
"bitmap",
"(",
"w",
",",
"h",
",",
"bitmap",
"config",
"argb",
"8888",
")",
";",
"scale",
"fill",
"(",
"src",
",",
"res",
")",
";",
"return",
"res",
";"
] |
[
"scaling",
"src",
"bitmap",
"to",
"fill",
"dest",
"bitmap",
"with",
"centering",
"method",
"keep",
"aspect",
"ratio"
] | [
"scale",
"fill",
"(",
"src",
",",
"dest",
",",
"clear",
"color",
")",
";"
] |
[
"scaling",
"src",
"bitmap",
"to",
"fill",
"dest",
"bitmap",
"with",
"centering",
"method",
"keep",
"aspect",
"ratio"
] | [
"float",
"ratio",
"=",
"math",
"max",
"(",
"dest",
"get",
"width",
"(",
")",
"/",
"(",
"float",
")",
"src",
"get",
"width",
"(",
")",
",",
"dest",
"get",
"height",
"(",
")",
"/",
"(",
"float",
")",
"src",
"get",
"height",
"(",
")",
")",
";",
"int",
"new",
"w",
"=",
"(",
"int",
")",
"(",
"src",
"get",
"width",
"(",
")",
"*",
"ratio",
")",
";",
"int",
"new",
"h",
"=",
"(",
"int",
")",
"(",
"src",
"get",
"height",
"(",
")",
"*",
"ratio",
")",
";",
"int",
"padding",
"top",
"=",
"(",
"dest",
"get",
"height",
"(",
")",
"-",
"(",
"int",
")",
"(",
"src",
"get",
"height",
"(",
")",
"*",
"ratio",
")",
")",
"/",
"2",
";",
"int",
"padding",
"left",
"=",
"(",
"dest",
"get",
"width",
"(",
")",
"-",
"(",
"int",
")",
"(",
"src",
"get",
"width",
"(",
")",
"*",
"ratio",
")",
")",
"/",
"2",
";",
"scale",
"(",
"src",
",",
"dest",
",",
"clear",
"color",
",",
"0",
",",
"0",
",",
"src",
"get",
"width",
"(",
")",
",",
"src",
"get",
"height",
"(",
")",
",",
"padding",
"left",
",",
"padding",
"top",
",",
"new",
"w",
"+",
"padding",
"left",
",",
"new",
"h",
"+",
"padding",
"top",
")",
";"
] |
[
"scaling",
"src",
"bitmap",
"to",
"fit",
"and",
"cenetered",
"in",
"dest",
"bitmap",
"method",
"keep",
"aspect",
"ratio"
] | [
"scale",
"fit",
"(",
"src",
",",
"dest",
",",
"clear",
"color",
")",
";"
] |
[
"scaling",
"src",
"bitmap",
"to",
"fit",
"and",
"cenetered",
"in",
"dest",
"bitmap",
"method",
"keep",
"aspect",
"ratio"
] | [
"float",
"ratio",
"=",
"math",
"min",
"(",
"dest",
"get",
"width",
"(",
")",
"/",
"(",
"float",
")",
"src",
"get",
"width",
"(",
")",
",",
"dest",
"get",
"height",
"(",
")",
"/",
"(",
"float",
")",
"src",
"get",
"height",
"(",
")",
")",
";",
"int",
"new",
"w",
"=",
"(",
"int",
")",
"(",
"src",
"get",
"width",
"(",
")",
"*",
"ratio",
")",
";",
"int",
"new",
"h",
"=",
"(",
"int",
")",
"(",
"src",
"get",
"height",
"(",
")",
"*",
"ratio",
")",
";",
"int",
"padding",
"top",
"=",
"(",
"dest",
"get",
"height",
"(",
")",
"-",
"(",
"int",
")",
"(",
"src",
"get",
"height",
"(",
")",
"*",
"ratio",
")",
")",
"/",
"2",
";",
"int",
"padding",
"left",
"=",
"(",
"dest",
"get",
"width",
"(",
")",
"-",
"(",
"int",
")",
"(",
"src",
"get",
"width",
"(",
")",
"*",
"ratio",
")",
")",
"/",
"2",
";",
"scale",
"(",
"src",
",",
"dest",
",",
"clear",
"color",
",",
"0",
",",
"0",
",",
"src",
"get",
"width",
"(",
")",
",",
"src",
"get",
"height",
"(",
")",
",",
"padding",
"left",
",",
"padding",
"top",
",",
"new",
"w",
"+",
"padding",
"left",
",",
"new",
"h",
"+",
"padding",
"top",
")",
";"
] |
[
"scaling",
"bitmap",
"to",
"specific",
"width",
"and",
"height",
"without",
"keeping",
"aspect",
"ratio"
] | [
"bitmap",
"res",
"=",
"bitmap",
"create",
"bitmap",
"(",
"dw",
",",
"dh",
",",
"bitmap",
"config",
"argb",
"8888",
")",
";",
"scale",
"(",
"src",
",",
"res",
")",
";",
"return",
"res",
";"
] |
[
"scaling",
"bitmap",
"to",
"fill",
"dest",
"bitmap",
"without",
"keeping",
"aspect",
"ratio"
] | [
"scale",
"(",
"src",
",",
"dest",
",",
"clear",
"color",
")",
";"
] |
[
"scaling",
"bitmap",
"to",
"fill",
"dest",
"bitmap",
"without",
"keeping",
"aspect",
"ratio"
] | [
"scale",
"(",
"src",
",",
"dest",
",",
"clear",
"color",
",",
"0",
",",
"0",
",",
"src",
"get",
"width",
"(",
")",
",",
"src",
"get",
"height",
"(",
")",
",",
"0",
",",
"0",
",",
"dest",
"get",
"width",
"(",
")",
",",
"dest",
"get",
"height",
"(",
")",
")",
";"
] |
[
"scaling",
"region",
"of",
"bitmap",
"to",
"destination",
"bitmap",
"region"
] | [
"scale",
"(",
"src",
",",
"dest",
",",
"clear",
"color",
",",
"x",
",",
"y",
",",
"sw",
",",
"sh",
",",
"dx",
",",
"dy",
",",
"dw",
",",
"dh",
")",
";"
] |
[
"scaling",
"region",
"of",
"bitmap",
"to",
"destination",
"bitmap",
"region"
] | [
"clear",
"bitmap",
"(",
"dest",
",",
"clear",
"color",
")",
";",
"canvas",
"canvas",
"=",
"new",
"canvas",
"(",
"dest",
")",
";",
"paint",
"paint",
"=",
"work",
"cache",
"paint",
"get",
"(",
")",
";",
"paint",
"set",
"filter",
"bitmap",
"(",
"true",
")",
";",
"canvas",
"draw",
"bitmap",
"(",
"src",
",",
"new",
"rect",
"(",
"x",
"+",
"1",
",",
"y",
"+",
"1",
",",
"sw",
"-",
"1",
",",
"sh",
"-",
"1",
")",
",",
"new",
"rect",
"(",
"dx",
",",
"dy",
",",
"dw",
",",
"dh",
")",
",",
"paint",
")",
";",
"canvas",
"set",
"bitmap",
"(",
"null",
")",
";"
] |
[
"run",
"all",
"tasks",
"in",
"the",
"queue",
"in",
"the",
"current",
"thread",
"if",
"no",
"other",
"thread",
"is",
"in",
"this",
"method",
"otherwise",
"do",
"nothing"
] | [
"boolean",
"drain",
"lease",
"acquired",
"=",
"false",
";",
"while",
"(",
"true",
")",
"{",
"runnable",
"runnable",
";",
"synchronized",
"(",
"lock",
")",
"{",
"if",
"(",
"!",
"drain",
"lease",
"acquired",
")",
"{",
"if",
"(",
"draining",
")",
"{",
"return",
";",
"}",
"draining",
"=",
"true",
";",
"drain",
"lease",
"acquired",
"=",
"true",
";",
"}",
"runnable",
"=",
"queue",
"poll",
"(",
")",
";",
"if",
"(",
"runnable",
"=",
"=",
"null",
")",
"{",
"draining",
"=",
"false",
";",
"break",
";",
"}",
"}",
"try",
"{",
"runnable",
"run",
"(",
")",
";",
"}",
"catch",
"(",
"throwable",
"t",
")",
"{",
"handle",
"uncaught",
"throwable",
"(",
"t",
")",
";",
"}",
"}"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.