docstring_tokens list | code_tokens list |
|---|---|
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
] | [
"return",
"model",
"package",
"e",
"i",
"n",
"s",
"t",
"a",
"n",
"c",
"e",
";"
] |
[
"returns",
"removed",
"command"
] | [
"return",
"command",
";"
] |
[
"set",
"the",
"deferred",
"collectors"
] | [
"public",
"abstract",
"void",
"set",
"deferred",
"collector",
"(",
"iterable",
"<",
"bucket",
"collector",
">",
"deferred",
"collectors",
")",
";"
] |
[
"wrap",
"the",
"provided",
"aggregator",
"so",
"that",
"it",
"behaves",
"(",
"almost",
")",
"as",
"if",
"it",
"had",
"been",
"collected",
"directly"
] | [
"return",
"new",
"wrapped",
"aggregator",
"(",
"in",
")",
";"
] |
[
"get",
"the",
"login",
"of",
"the",
"current",
"user"
] | [
"security",
"context",
"security",
"context",
"=",
"security",
"context",
"holder",
"get",
"context",
"(",
")",
";",
"authentication",
"authentication",
"=",
"security",
"context",
"get",
"authentication",
"(",
")",
";",
"string",
"user",
"name",
"=",
"null",
... |
[
"check",
"if",
"a",
"user",
"is",
"authenticated"
] | [
"security",
"context",
"security",
"context",
"=",
"security",
"context",
"holder",
"get",
"context",
"(",
")",
";",
"authentication",
"authentication",
"=",
"security",
"context",
"get",
"authentication",
"(",
")",
";",
"if",
"(",
"authentication",
"!",
"=",
... |
[
"if",
"the",
"current",
"user",
"has",
"a",
"specific",
"authority",
"(",
"security",
"role",
")"
] | [
"security",
"context",
"security",
"context",
"=",
"security",
"context",
"holder",
"get",
"context",
"(",
")",
";",
"authentication",
"authentication",
"=",
"security",
"context",
"get",
"authentication",
"(",
")",
";",
"if",
"(",
"authentication",
"!",
"=",
... |
[
"nothing",
"to",
"do"
] | [] |
[
"{"
] | [] |
[
"send",
"a",
"message",
"to",
"the",
"jms",
"queue"
] | [
"try",
"(",
"connection",
"connection",
"=",
"connection",
"factory",
"create",
"connection",
"(",
")",
")",
"{",
"connection",
"start",
"(",
")",
";",
"session",
"session",
"=",
"connection",
"create",
"session",
"(",
"session",
"auto",
"acknowledge",
")",
... |
[
"a",
"main",
"method",
"to",
"start",
"this",
"application"
] | [
"spring",
"application",
"run",
"(",
"sample",
"camel",
"application",
"class",
",",
"args",
")",
";"
] |
[
"<",
"p",
">",
"adds",
"an",
"event",
"listener",
"that",
"will",
"be",
"run",
"when",
"this",
"confidence",
"object",
"is",
"updated",
"the",
"listener",
"will",
"be",
"locked",
"and",
"is",
"likely",
"to",
"be",
"invoked",
"on",
"a",
"peer",
"thread",
... | [
"check",
"not",
"null",
"(",
"listener",
")",
";",
"listeners",
"add",
"if",
"absent",
"(",
"new",
"listener",
"registration",
"<",
">",
"(",
"listener",
",",
"executor",
")",
")",
";",
"pinned",
"confidence",
"objects",
"add",
"(",
"this",
")",
";"
] |
[
"<",
"p",
">",
"adds",
"an",
"event",
"listener",
"that",
"will",
"be",
"run",
"when",
"this",
"confidence",
"object",
"is",
"updated",
"the",
"listener",
"will",
"be",
"locked",
"and",
"is",
"likely",
"to",
"be",
"invoked",
"on",
"a",
"peer",
"thread",
... | [
"add",
"event",
"listener",
"(",
"threading",
"user",
"thread",
",",
"listener",
")",
";"
] |
[
"returns",
"a",
"general",
"statement",
"of",
"the",
"level",
"of",
"confidence",
"you",
"can",
"have",
"in",
"this",
"transaction"
] | [
"return",
"confidence",
"type",
";"
] |
[
"called",
"by",
"other",
"objects",
"in",
"the",
"system",
"like",
"a",
"{"
] | [
"if",
"(",
"confidence",
"type",
"=",
"=",
"this",
"confidence",
"type",
")",
"return",
";",
"this",
"confidence",
"type",
"=",
"confidence",
"type",
";",
"if",
"(",
"confidence",
"type",
"!",
"=",
"confidence",
"type",
"dead",
")",
"{",
"overriding",
"t... |
[
"returns",
"how",
"many",
"peers",
"have",
"been",
"passed",
"to",
"{"
] | [
"return",
"broadcast",
"by",
"size",
"(",
")",
";"
] |
[
"returns",
"a",
"snapshot",
"of",
"{"
] | [
"list",
"iterator",
"<",
"peer",
"address",
">",
"iterator",
"=",
"broadcast",
"by",
"list",
"iterator",
"(",
")",
";",
"return",
"sets",
"new",
"hash",
"set",
"(",
"iterator",
")",
";"
] |
[
"returns",
"true",
"if",
"the",
"given",
"address",
"has",
"been",
"seen",
"via",
"mark",
"broadcast",
"by",
"(",
")"
] | [
"return",
"broadcast",
"by",
"contains",
"(",
"address",
")",
";"
] |
[
"return",
"the",
"time",
"the",
"transaction",
"was",
"last",
"announced",
"to",
"us"
] | [
"return",
"last",
"broadcasted",
"at",
";"
] |
[
"set",
"the",
"time",
"the",
"transaction",
"was",
"last",
"announced",
"to",
"us"
] | [
"this",
"last",
"broadcasted",
"at",
"=",
"last",
"broadcasted",
"at",
";"
] |
[
"called",
"by",
"the",
"wallet",
"when",
"the",
"tx",
"appears",
"on",
"the",
"best",
"chain",
"and",
"a",
"new",
"block",
"is",
"added",
"to",
"the",
"top",
"updates",
"the",
"internal",
"counter",
"that",
"tracks",
"how",
"deeply",
"buried",
"the",
"bl... | [
"return",
"+",
"+",
"this",
"depth",
";"
] |
[
"<",
"p",
">",
"depth",
"in",
"the",
"chain",
"is",
"an",
"approximation",
"of",
"how",
"much",
"time",
"has",
"elapsed",
"since",
"the",
"transaction",
"has",
"been",
"confirmed",
"on",
"average",
"there",
"is",
"supposed",
"to",
"be",
"a",
"new",
"bloc... | [
"return",
"depth",
";"
] |
[
"/",
"*",
"set",
"the",
"depth",
"in",
"blocks",
"having",
"one",
"block",
"confirmation",
"is",
"a",
"depth",
"of",
"one"
] | [
"this",
"depth",
"=",
"depth",
";"
] |
[
"erases",
"the",
"set",
"of",
"broadcast",
"/",
"seen",
"peers",
"this",
"cannot",
"be",
"called",
"whilst",
"the",
"confidence",
"is",
"pending",
"it",
"is",
"useful",
"for",
"saving",
"memory",
"and",
"wallet",
"space",
"once",
"a",
"tx",
"is",
"buried",... | [
"check",
"state",
"(",
"get",
"confidence",
"type",
"(",
")",
"!",
"=",
"confidence",
"type",
"pending",
")",
";",
"broadcast",
"by",
"clear",
"(",
")",
";",
"last",
"broadcasted",
"at",
"=",
"null",
";"
] |
[
"called",
"when",
"the",
"transaction",
"becomes",
"newly",
"dead",
"that",
"is",
"we",
"learn",
"that",
"one",
"of",
"its",
"inputs",
"has",
"already",
"been",
"spent",
"in",
"such",
"a",
"way",
"that",
"the",
"double",
"-",
"spending",
"transaction",
"ta... | [
"this",
"overriding",
"transaction",
"=",
"overriding",
"transaction",
";",
"set",
"confidence",
"type",
"(",
"confidence",
"type",
"dead",
")",
";"
] |
[
"returns",
"a",
"copy",
"of",
"this",
"object",
"event",
"listeners",
"are",
"not",
"duplicated"
] | [
"transaction",
"confidence",
"c",
"=",
"new",
"transaction",
"confidence",
"(",
"hash",
")",
";",
"c",
"broadcast",
"by",
"add",
"all",
"(",
"broadcast",
"by",
")",
";",
"c",
"last",
"broadcasted",
"at",
"=",
"last",
"broadcasted",
"at",
";",
"synchronized... |
[
"call",
"this",
"after",
"adjusting",
"the",
"confidence",
"for",
"cases",
"where",
"listeners",
"should",
"be",
"notified",
"this",
"has",
"to",
"be",
"done",
"explicitly",
"rather",
"than",
"being",
"done",
"automatically",
"because",
"sometimes",
"complex",
"... | [
"for",
"(",
"final",
"listener",
"registration",
"<",
"listener",
">",
"registration",
":",
"listeners",
")",
"{",
"registration",
"executor",
"execute",
"(",
"new",
"runnable",
"(",
")",
"{",
"@",
"override",
"public",
"void",
"run",
"(",
")",
"{",
"regis... |
[
"the",
"source",
"of",
"a",
"transaction",
"tries",
"to",
"identify",
"where",
"it",
"came",
"from",
"originally",
"for",
"instance",
"did",
"we",
"download",
"it",
"from",
"the",
"peer",
"to",
"peer",
"network",
"or",
"make",
"it",
"ourselves",
"or",
"rec... | [
"return",
"source",
";"
] |
[
"the",
"source",
"of",
"a",
"transaction",
"tries",
"to",
"identify",
"where",
"it",
"came",
"from",
"originally",
"for",
"instance",
"did",
"we",
"download",
"it",
"from",
"the",
"peer",
"to",
"peer",
"network",
"or",
"make",
"it",
"ourselves",
"or",
"rec... | [
"this",
"source",
"=",
"source",
";"
] |
[
"returns",
"a",
"future",
"that",
"completes",
"when",
"the",
"transaction",
"has",
"been",
"confirmed",
"by",
"depth",
"blocks",
"for",
"instance",
"setting",
"depth",
"to",
"one",
"will",
"wait",
"until",
"it",
"appears",
"in",
"a",
"block",
"on",
"the",
... | [
"final",
"settable",
"future",
"<",
"transaction",
"confidence",
">",
"result",
"=",
"settable",
"future",
"create",
"(",
")",
";",
"if",
"(",
"get",
"depth",
"in",
"blocks",
"(",
")",
">",
"=",
"depth",
")",
"{",
"result",
"set",
"(",
"this",
")",
"... |
[
"we",
"want",
"every",
"distinct",
"barcode",
"to",
"be",
"reported",
"to",
"the",
"js",
"listener",
"if",
"we",
"return",
"some",
"static",
"value",
"as",
"a",
"coalescing",
"key",
"there",
"may",
"be",
"two",
"barcode",
"events",
"containing",
"two",
"di... | [
"int",
"hash",
"code",
"=",
"m",
"bar",
"code",
"get",
"text",
"(",
")",
"hash",
"code",
"(",
")",
"%",
"short",
"max",
"value",
";",
"return",
"(",
"short",
")",
"hash",
"code",
";"
] |
[
"returns",
"true",
"if",
"the",
"invoked",
"method",
"is",
"static"
] | [
"int",
"acc",
"=",
"info",
"get",
"access",
"flags",
"(",
")",
";",
"return",
"(",
"acc",
"&",
"access",
"flag",
"static",
")",
"!",
"=",
"0",
";"
] |
[
"for",
"unit",
"tests"
] | [
"return",
"invalid",
"names",
"map",
"size",
"(",
")",
";"
] |
[
"/",
"*",
"converts",
"a",
"class",
"name",
"into",
"a",
"jvm",
"-",
"internal",
"representation"
] | [
"if",
"(",
"name",
"=",
"=",
"null",
")",
"return",
"null",
";",
"return",
"java",
"to",
"jvm",
"name",
"(",
"lookup",
"class",
"by",
"name",
"(",
"name",
")",
"get",
"name",
"(",
")",
")",
";"
] |
[
"/",
"*",
"expands",
"a",
"simple",
"class",
"name",
"to",
"java",
"lang",
"*",
"for",
"example",
"this",
"converts",
"object",
"into",
"java",
"/",
"lang",
"/",
"object"
] | [
"if",
"(",
"jvm",
"name",
"=",
"=",
"null",
")",
"return",
"null",
";",
"return",
"java",
"to",
"jvm",
"name",
"(",
"lookup",
"class",
"by",
"jvm",
"name",
"(",
"jvm",
"name",
")",
"get",
"name",
"(",
")",
")",
";"
] |
[
"<",
"p",
">",
"a",
"list",
"of",
"job",
"definitions",
"<",
"/",
"p",
">"
] | [
"return",
"jobs",
";"
] |
[
"<",
"p",
">",
"a",
"list",
"of",
"job",
"definitions",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"jobs",
"=",
"=",
"null",
")",
"{",
"this",
"jobs",
"=",
"null",
";",
"return",
";",
"}",
"this",
"jobs",
"=",
"new",
"java",
"util",
"array",
"list",
"<",
"job",
">",
"(",
"jobs",
")",
";"
] |
[
"list",
"of",
"jobs",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"jobs",
"(",
"java",... | [
"if",
"(",
"this",
"jobs",
"=",
"=",
"null",
")",
"{",
"set",
"jobs",
"(",
"new",
"java",
"util",
"array",
"list",
"<",
"job",
">",
"(",
"jobs",
"length",
")",
")",
";",
"}",
"for",
"(",
"job",
"ele",
":",
"jobs",
")",
"{",
"this",
"jobs",
"a... |
[
"<",
"p",
">",
"the",
"token",
"for",
"the",
"next",
"set",
"of",
"results",
"or",
"<",
"b",
">",
"null",
"<",
"/",
"b",
">",
"if",
"there",
"are",
"no",
"additional",
"results",
"<",
"/",
"p",
">"
] | [
"set",
"next",
"token",
"(",
"next",
"token",
")",
";",
"return",
"this",
";"
] |
[
"{"
] | [
"return",
"m",
"use",
"intrinsic",
"padding",
";"
] |
[
"{"
] | [
"if",
"(",
"m",
"use",
"intrinsic",
"padding",
"!",
"=",
"use",
"intrinsic",
"padding",
")",
"{",
"m",
"use",
"intrinsic",
"padding",
"=",
"use",
"intrinsic",
"padding",
";",
"invalidate",
"self",
"(",
")",
";",
"}"
] |
[
"this",
"function",
"returns",
"the",
"result",
"of",
"linearly",
"interpolating",
"the",
"start",
"and",
"end",
"values",
"with",
"<",
"code",
">",
"fraction",
"<",
"/",
"code",
">",
"representing",
"the",
"proportion",
"between",
"the",
"start",
"and",
"en... | [
"int",
"start",
"int",
"=",
"start",
"value",
";",
"return",
"(",
"int",
")",
"(",
"start",
"int",
"+",
"fraction",
"*",
"(",
"end",
"value",
"-",
"start",
"int",
")",
")",
";"
] |
[
"validations",
"specific",
"to",
"delete"
] | [
"if",
"(",
"!",
"super",
"parse",
"and",
"validate",
"request",
"(",
")",
"|",
"|",
"!",
"has",
"vector",
"clock",
"(",
"this",
"is",
"vector",
"clock",
"optional",
")",
")",
"{",
"return",
"false",
";",
"}",
"return",
"true",
";"
] |
[
"cancels",
"the",
"request",
"created",
"by",
"this",
"request",
"factory"
] | [
"cancel",
"requested",
"=",
"true",
";",
"run",
"notifier",
"notifier",
"=",
"current",
"notifier",
";",
"if",
"(",
"notifier",
"!",
"=",
"null",
")",
"{",
"notifier",
"please",
"stop",
"(",
")",
";",
"}"
] |
[
"{",
"@",
"inherit",
"doc",
"}",
"<",
"p",
">"
] | [
"if",
"(",
"stop",
"requested",
")",
"{",
"throw",
"new",
"stopped",
"by",
"user",
"exception",
"(",
")",
";",
"}",
"get",
"delegate",
"(",
")",
"fire",
"test",
"started",
"(",
"description",
")",
";"
] |
[
"{",
"@",
"inherit",
"doc",
"}",
"<",
"p",
">"
] | [
"stop",
"requested",
"=",
"true",
";"
] |
[
"this",
"method",
"gets",
"the",
"instance",
"of",
"path",
"that",
"pointer",
"indicates"
] | [
"return",
"this",
"path",
"lists",
"get",
"(",
"this",
"history",
"pointer",
"-",
"1",
")",
";"
] |
[
"this",
"method",
"defines",
"processes",
"on",
"motion",
"event",
"action",
"move"
] | [
"float",
"x",
"=",
"event",
"get",
"x",
"(",
")",
";",
"float",
"y",
"=",
"event",
"get",
"y",
"(",
")",
";",
"switch",
"(",
"this",
"mode",
")",
"{",
"case",
"draw",
":",
"case",
"eraser",
":",
"if",
"(",
"(",
"this",
"drawer",
"!",
"=",
"dr... |
[
"this",
"method",
"defines",
"processes",
"on",
"motion",
"event",
"action",
"down"
] | [
"if",
"(",
"is",
"down",
")",
"{",
"this",
"start",
"x",
"=",
"0f",
";",
"this",
"start",
"y",
"=",
"0f",
";",
"this",
"is",
"down",
"=",
"false",
";",
"}"
] |
[
"this",
"method",
"is",
"getter",
"for",
"drawer"
] | [
"return",
"this",
"drawer",
";"
] |
[
"this",
"method",
"is",
"setter",
"for",
"drawer"
] | [
"this",
"drawer",
"=",
"drawer",
";"
] |
[
"this",
"method",
"draws",
"canvas",
"again",
"for",
"undo"
] | [
"if",
"(",
"this",
"history",
"pointer",
">",
"1",
")",
"{",
"this",
"history",
"pointer",
"-",
"-",
";",
"this",
"invalidate",
"(",
")",
";",
"return",
"true",
";",
"}",
"else",
"{",
"return",
"false",
";",
"}"
] |
[
"this",
"method",
"draws",
"canvas",
"again",
"for",
"redo"
] | [
"if",
"(",
"this",
"history",
"pointer",
"<",
"this",
"path",
"lists",
"size",
"(",
")",
")",
"{",
"this",
"history",
"pointer",
"+",
"+",
";",
"this",
"invalidate",
"(",
")",
";",
"return",
"true",
";",
"}",
"else",
"{",
"return",
"false",
";",
"}... |
[
"this",
"method",
"is",
"getter",
"for",
"canvas",
"background",
"color"
] | [
"return",
"this",
"base",
"color",
";"
] |
[
"this",
"method",
"is",
"setter",
"for",
"canvas",
"background",
"color"
] | [
"this",
"base",
"color",
"=",
"color",
";"
] |
[
"this",
"method",
"is",
"getter",
"for",
"stroke",
"or",
"fill"
] | [
"return",
"this",
"paint",
"style",
";"
] |
[
"this",
"method",
"is",
"setter",
"for",
"stroke",
"or",
"fill"
] | [
"this",
"paint",
"style",
"=",
"style",
";"
] |
[
"this",
"method",
"is",
"getter",
"for",
"stroke",
"color"
] | [
"return",
"this",
"paint",
"stroke",
"color",
";"
] |
[
"this",
"method",
"is",
"setter",
"for",
"stroke",
"color"
] | [
"this",
"paint",
"stroke",
"color",
"=",
"color",
";"
] |
[
"this",
"method",
"is",
"getter",
"for",
"fill",
"color",
"but",
"current",
"android",
"api",
"cannot",
"set",
"fill",
"color",
"(",
"?",
")"
] | [
"return",
"this",
"paint",
"fill",
"color",
";"
] |
[
"this",
"method",
"is",
"setter",
"for",
"fill",
"color",
"but",
"current",
"android",
"api",
"cannot",
"set",
"fill",
"color",
"(",
"?",
")"
] | [
"this",
"paint",
"fill",
"color",
"=",
"color",
";"
] |
[
"this",
"method",
"is",
"getter",
"for",
"stroke",
"width"
] | [
"return",
"this",
"paint",
"stroke",
"width",
";"
] |
[
"this",
"method",
"is",
"setter",
"for",
"stroke",
"width"
] | [
"if",
"(",
"width",
">",
"=",
"0",
")",
"{",
"this",
"paint",
"stroke",
"width",
"=",
"width",
";",
"}",
"else",
"{",
"this",
"paint",
"stroke",
"width",
"=",
"3f",
";",
"}"
] |
[
"this",
"method",
"is",
"getter",
"for",
"alpha"
] | [
"return",
"this",
"opacity",
";"
] |
[
"this",
"method",
"is",
"setter",
"for",
"alpha",
"the",
"1st",
"argument",
"must",
"be",
"between",
"0",
"and",
"255"
] | [
"if",
"(",
"(",
"opacity",
">",
"=",
"0",
")",
"&",
"&",
"(",
"opacity",
"<",
"=",
"255",
")",
")",
"{",
"this",
"opacity",
"=",
"opacity",
";",
"}",
"else",
"{",
"this",
"opacity",
"=",
"255",
";",
"}"
] |
[
"this",
"method",
"is",
"getter",
"for",
"amount",
"of",
"blur"
] | [
"return",
"this",
"blur",
";"
] |
[
"this",
"method",
"is",
"setter",
"for",
"amount",
"of",
"blur",
"the",
"1st",
"argument",
"is",
"greater",
"than",
"or",
"equal",
"to",
"0",
"0"
] | [
"if",
"(",
"blur",
">",
"=",
"0",
")",
"{",
"this",
"blur",
"=",
"blur",
";",
"}",
"else",
"{",
"this",
"blur",
"=",
"0f",
";",
"}"
] |
[
"this",
"method",
"is",
"getter",
"for",
"line",
"cap"
] | [
"return",
"this",
"line",
"cap",
";"
] |
[
"this",
"method",
"is",
"setter",
"for",
"line",
"cap"
] | [
"this",
"line",
"cap",
"=",
"cap",
";"
] |
[
"this",
"method",
"gets",
"current",
"canvas",
"as",
"bitmap"
] | [
"this",
"set",
"drawing",
"cache",
"enabled",
"(",
"false",
")",
";",
"this",
"set",
"drawing",
"cache",
"enabled",
"(",
"true",
")",
";",
"return",
"bitmap",
"create",
"bitmap",
"(",
"this",
"get",
"drawing",
"cache",
"(",
")",
")",
";"
] |
[
"this",
"method",
"gets",
"current",
"canvas",
"as",
"scaled",
"bitmap"
] | [
"this",
"set",
"drawing",
"cache",
"enabled",
"(",
"false",
")",
";",
"this",
"set",
"drawing",
"cache",
"enabled",
"(",
"true",
")",
";",
"return",
"bitmap",
"create",
"scaled",
"bitmap",
"(",
"this",
"get",
"drawing",
"cache",
"(",
")",
",",
"w",
","... |
[
"this",
"method",
"draws",
"the",
"designated",
"bitmap",
"to",
"canvas"
] | [
"this",
"bitmap",
"=",
"bitmap",
";",
"this",
"invalidate",
"(",
")",
";"
] |
[
"this",
"method",
"draws",
"the",
"designated",
"byte",
"array",
"of",
"bitmap",
"to",
"canvas"
] | [
"this",
"draw",
"bitmap",
"(",
"bitmap",
"factory",
"decode",
"byte",
"array",
"(",
"byte",
"array",
",",
"0",
",",
"byte",
"array",
"length",
")",
")",
";"
] |
[
"this",
"static",
"method",
"gets",
"the",
"designated",
"bitmap",
"as",
"byte",
"array"
] | [
"byte",
"array",
"output",
"stream",
"byte",
"array",
"output",
"stream",
"=",
"new",
"byte",
"array",
"output",
"stream",
"(",
")",
";",
"bitmap",
"compress",
"(",
"format",
",",
"quality",
",",
"byte",
"array",
"output",
"stream",
")",
";",
"return",
"... |
[
"this",
"method",
"gets",
"the",
"bitmap",
"as",
"byte",
"array"
] | [
"byte",
"array",
"output",
"stream",
"byte",
"array",
"output",
"stream",
"=",
"new",
"byte",
"array",
"output",
"stream",
"(",
")",
";",
"this",
"get",
"bitmap",
"(",
")",
"compress",
"(",
"format",
",",
"quality",
",",
"byte",
"array",
"output",
"strea... |
[
"this",
"method",
"gets",
"the",
"bitmap",
"as",
"byte",
"array",
"bitmap",
"format",
"is",
"png",
"and",
"quality",
"is",
"100"
] | [
"return",
"this",
"get",
"bitmap",
"as",
"byte",
"array",
"(",
"compress",
"format",
"png",
",",
"100",
")",
";"
] |
[
"information",
"about",
"a",
"definition",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"... | [
"if",
"(",
"this",
"definitions",
"=",
"=",
"null",
")",
"{",
"set",
"definitions",
"(",
"new",
"java",
"util",
"array",
"list",
"<",
"definition",
"information",
">",
"(",
"definitions",
"length",
")",
")",
";",
"}",
"for",
"(",
"definition",
"informati... |
[
"information",
"about",
"a",
"definition"
] | [
"set",
"definitions",
"(",
"definitions",
")",
";",
"return",
"this",
";"
] |
[
"the",
"token",
"for",
"the",
"next",
"set",
"of",
"results",
"or",
"null",
"if",
"there",
"are",
"no",
"additional",
"results"
] | [
"set",
"next",
"token",
"(",
"next",
"token",
")",
";",
"return",
"this",
";"
] |
[
"create",
"a",
"new",
"{"
] | [
"return",
"new",
"open",
"test",
"4",
"j",
"and",
"j",
"unit",
"4",
"aware",
"throwable",
"collector",
"(",
")",
";"
] |
[
"authenticates",
"the",
"user",
"that",
"is",
"associated",
"with",
"the",
"given",
"request",
"if",
"the",
"user",
"was",
"authenticated",
"successfully",
"(",
"i",
"e",
"a",
"user",
"was",
"indeed",
"associated",
"with",
"the",
"request",
"and",
"the",
"cr... | [
"create",
"authenticator",
"(",
"request",
",",
"authentication",
"listener",
")",
"authenticate",
"async",
"(",
")",
";"
] |
[
"authenticates",
"the",
"user",
"that",
"is",
"associated",
"with",
"the",
"given",
"message",
"if",
"the",
"user",
"was",
"authenticated",
"successfully",
"(",
"i",
"e",
"a",
"user",
"was",
"indeed",
"associated",
"with",
"the",
"request",
"and",
"the",
"cr... | [
"create",
"authenticator",
"(",
"action",
",",
"message",
",",
"fallback",
"user",
",",
"listener",
")",
"authenticate",
"async",
"(",
")",
";"
] |
[
"authenticates",
"the",
"username",
"and",
"password",
"that",
"are",
"provided",
"as",
"parameters",
"this",
"will",
"not",
"look",
"at",
"the",
"values",
"in",
"the",
"thread",
"context",
"for",
"authentication"
] | [
"new",
"authenticator",
"(",
"action",
",",
"message",
",",
"null",
",",
"listener",
")",
"authenticate",
"token",
"(",
"token",
")",
";"
] |
[
"pkg",
"private",
"method",
"for",
"testing"
] | [
"return",
"new",
"authenticator",
"(",
"request",
",",
"listener",
")",
";"
] |
[
"pkg",
"private",
"method",
"for",
"testing"
] | [
"return",
"new",
"authenticator",
"(",
"action",
",",
"message",
",",
"fallback",
"user",
",",
"listener",
")",
";"
] |
[
"unpacks",
"the",
"nar",
"to",
"the",
"specified",
"directory",
"creates",
"a",
"checksum",
"file",
"that",
"used",
"to",
"determine",
"if",
"future",
"expansion",
"is",
"necessary"
] | [
"try",
"(",
"jar",
"file",
"jar",
"file",
"=",
"new",
"jar",
"file",
"(",
"nar",
")",
")",
"{",
"enumeration",
"<",
"jar",
"entry",
">",
"jar",
"entries",
"=",
"jar",
"file",
"entries",
"(",
")",
";",
"while",
"(",
"jar",
"entries",
"has",
"more",
... |
[
"creates",
"the",
"specified",
"file",
"whose",
"contents",
"will",
"come",
"from",
"the",
"<",
"tt",
">",
"input",
"stream",
"<",
"/",
"tt",
">"
] | [
"try",
"(",
"final",
"input",
"stream",
"in",
"=",
"input",
"stream",
";",
"final",
"file",
"output",
"stream",
"fos",
"=",
"new",
"file",
"output",
"stream",
"(",
"file",
")",
")",
"{",
"byte",
"[",
"]",
"bytes",
"=",
"new",
"byte",
"[",
"65536",
... |
[
"{"
] | [
"fail",
"(",
")",
";"
] |
[
"{"
] | [
"fail",
"(",
")",
";"
] |
[
"{"
] | [
"fail",
"(",
")",
";",
"return",
"null",
";"
] |
[
"{"
] | [
"fail",
"(",
")",
";",
"return",
"null",
";"
] |
[
"{"
] | [
"fail",
"(",
")",
";"
] |
[
"{"
] | [
"fail",
"(",
")",
";"
] |
[
"the",
"used",
"space",
"by",
"the",
"block",
"pool",
"on",
"data",
"node"
] | [
"return",
"block",
"pool",
"used",
";"
] |
[
"method",
"that",
"calculates",
"bit",
"set",
"(",
"flags",
")",
"of",
"all",
"features",
"that",
"are",
"enabled",
"by",
"default"
] | [
"int",
"flags",
"=",
"0",
";",
"for",
"(",
"f",
"value",
":",
"enum",
"class",
"get",
"enum",
"constants",
"(",
")",
")",
"{",
"if",
"(",
"value",
"enabled",
"by",
"default",
"(",
")",
")",
"{",
"flags",
"|",
"=",
"value",
"get",
"mask",
"(",
"... |
[
"accessor",
"for",
"simple",
"mapper",
"features",
"(",
"which",
"are",
"shared",
"for",
"serialization",
"deserialization",
")"
] | [
"return",
"(",
"mapper",
"features",
"&",
"f",
"get",
"mask",
"(",
")",
")",
"!",
"=",
"0",
";"
] |
[
"bulk",
"access",
"method",
"for",
"checking",
"that",
"all",
"features",
"specified",
"by",
"mask",
"are",
"enabled"
] | [
"return",
"(",
"mapper",
"features",
"&",
"feature",
"mask",
")",
"=",
"=",
"feature",
"mask",
";"
] |
[
"method",
"for",
"determining",
"whether",
"annotation",
"processing",
"is",
"enabled",
"or",
"not",
"(",
"default",
"settings",
"are",
"typically",
"that",
"it",
"is",
"enabled",
";",
"must",
"explicitly",
"disable",
")"
] | [
"return",
"is",
"enabled",
"(",
"mapper",
"feature",
"use",
"annotations",
")",
";"
] |
[
"accessor",
"for",
"determining",
"whether",
"it",
"is",
"ok",
"to",
"try",
"to",
"force",
"override",
"of",
"access",
"modifiers",
"to",
"be",
"able",
"to",
"get",
"or",
"set",
"values",
"of",
"non",
"-",
"public",
"methods",
"fields",
";",
"to",
"invok... | [
"return",
"is",
"enabled",
"(",
"mapper",
"feature",
"can",
"override",
"access",
"modifiers",
")",
";"
] |
[
"accessor",
"for",
"checking",
"whether",
"default",
"settings",
"for",
"property",
"handling",
"indicate",
"that",
"properties",
"should",
"be",
"alphabetically",
"ordered",
"or",
"not"
] | [
"return",
"is",
"enabled",
"(",
"mapper",
"feature",
"sort",
"properties",
"alphabetically",
")",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.