docstring_tokens list | code_tokens list |
|---|---|
[
"unmarshal",
"a",
"jaxb",
"bean",
"into",
"a",
"type",
"of",
"{",
"@",
"code",
"result",
"class",
"}",
"from",
"the",
"given",
"{",
"@",
"code",
"input",
"stream",
"}"
] | [
"j",
"a",
"x",
"b",
"context",
"jaxb",
"context",
"=",
"null",
";",
"try",
"{",
"jaxb",
"context",
"=",
"j",
"a",
"x",
"b",
"context",
"new",
"instance",
"(",
"result",
"class",
")",
";",
"}",
"catch",
"(",
"j",
"a",
"x",
"b",
"exception",
"ex",
... |
[
"<",
"p",
">",
"the",
"line",
"containing",
"the",
"specified",
"position",
"in",
"the",
"document",
"<",
"/",
"p",
">"
] | [
"this",
"line",
"=",
"line",
";"
] |
[
"<",
"p",
">",
"the",
"column",
"in",
"the",
"line",
"containing",
"the",
"specified",
"position",
"in",
"the",
"document",
"<",
"/",
"p",
">"
] | [
"this",
"column",
"=",
"column",
";"
] |
[
"{"
] | [
"if",
"(",
"this",
"=",
"=",
"o",
")",
"return",
"true",
";",
"if",
"(",
"!",
"(",
"o",
"instanceof",
"binary",
"test",
")",
")",
"return",
"false",
";",
"binary",
"test",
"that",
"=",
"(",
"binary",
"test",
")",
"o",
";",
"if",
"(",
"id",
"!",... |
[
"{"
] | [
"int",
"res",
"=",
"id",
"!",
"=",
"null",
"?",
"id",
"hash",
"code",
"(",
")",
":",
"0",
";",
"res",
"=",
"31",
"*",
"res",
"+",
"(",
"bytes",
"!",
"=",
"null",
"?",
"arrays",
"hash",
"code",
"(",
"bytes",
")",
":",
"0",
")",
";",
"return"... |
[
"get",
"the",
"current",
"value",
"from",
"the",
"underlying",
"dynamic",
"property"
] | [
"return",
"prop",
"get",
"long",
"(",
"default",
"value",
")",
"long",
"value",
"(",
")",
";"
] |
[
"if",
"need",
"to",
"use",
"custom",
"{"
] | [
"attach",
"to",
"list",
"view",
"(",
"list",
"view",
",",
"new",
"fab",
"on",
"scroll",
"listener",
"(",
")",
")",
";"
] |
[
"configure",
"one",
"or",
"more",
"handlers",
"to",
"use",
"depending",
"on",
"the",
"sub",
"-",
"protocol",
"requested",
"by",
"the",
"client",
"in",
"the",
"web",
"socket",
"handshake",
"request"
] | [
"this",
"protocol",
"handler",
"lookup",
"clear",
"(",
")",
";",
"this",
"protocol",
"handlers",
"clear",
"(",
")",
";",
"for",
"(",
"sub",
"protocol",
"handler",
"handler",
":",
"protocol",
"handlers",
")",
"{",
"add",
"protocol",
"handler",
"(",
"handler... |
[
"return",
"the",
"sub",
"-",
"protocols",
"keyed",
"by",
"protocol",
"name"
] | [
"return",
"this",
"protocol",
"handler",
"lookup",
";"
] |
[
"set",
"the",
"{"
] | [
"this",
"default",
"protocol",
"handler",
"=",
"default",
"protocol",
"handler",
";",
"if",
"(",
"this",
"protocol",
"handler",
"lookup",
"is",
"empty",
"(",
")",
")",
"{",
"set",
"protocol",
"handlers",
"(",
"collections",
"singleton",
"list",
"(",
"default... |
[
"return",
"the",
"default",
"sub",
"-",
"protocol",
"handler",
"to",
"use"
] | [
"return",
"this",
"default",
"protocol",
"handler",
";"
] |
[
"return",
"all",
"supported",
"protocols"
] | [
"return",
"new",
"array",
"list",
"<",
">",
"(",
"this",
"protocol",
"handler",
"lookup",
"key",
"set",
"(",
")",
")",
";"
] |
[
"specify",
"the",
"send",
"-",
"time",
"limit",
"(",
"milliseconds",
")"
] | [
"this",
"send",
"time",
"limit",
"=",
"send",
"time",
"limit",
";"
] |
[
"return",
"the",
"configured",
"send",
"-",
"time",
"limit",
"(",
"milliseconds",
")"
] | [
"return",
"this",
"send",
"time",
"limit",
";"
] |
[
"specify",
"the",
"buffer",
"-",
"size",
"limit",
"(",
"number",
"of",
"bytes",
")"
] | [
"this",
"send",
"buffer",
"size",
"limit",
"=",
"send",
"buffer",
"size",
"limit",
";"
] |
[
"return",
"the",
"buffer",
"-",
"size",
"limit",
"(",
"number",
"of",
"bytes",
")"
] | [
"return",
"this",
"send",
"buffer",
"size",
"limit",
";"
] |
[
"set",
"the",
"maximum",
"time",
"allowed",
"in",
"milliseconds",
"after",
"the",
"web",
"socket",
"connection",
"is",
"established",
"and",
"before",
"the",
"first",
"sub",
"-",
"protocol",
"message",
"is",
"received",
"<",
"p",
">",
"this",
"handler",
"is"... | [
"this",
"time",
"to",
"first",
"message",
"=",
"time",
"to",
"first",
"message",
";"
] |
[
"return",
"the",
"maximum",
"time",
"allowed",
"after",
"the",
"web",
"socket",
"connection",
"is",
"established",
"and",
"before",
"the",
"first",
"sub",
"-",
"protocol",
"message"
] | [
"return",
"this",
"time",
"to",
"first",
"message",
";"
] |
[
"return",
"a",
"string",
"describing",
"internal",
"state",
"and",
"counters"
] | [
"return",
"this",
"stats",
"to",
"string",
"(",
")",
";"
] |
[
"handle",
"an",
"inbound",
"message",
"from",
"a",
"web",
"socket",
"client"
] | [
"web",
"socket",
"session",
"holder",
"holder",
"=",
"this",
"sessions",
"get",
"(",
"session",
"get",
"id",
"(",
")",
")",
";",
"if",
"(",
"holder",
"!",
"=",
"null",
")",
"{",
"session",
"=",
"holder",
"get",
"session",
"(",
")",
";",
"}",
"sub",... |
[
"decorate",
"the",
"given",
"{"
] | [
"return",
"new",
"concurrent",
"web",
"socket",
"session",
"decorator",
"(",
"session",
",",
"get",
"send",
"time",
"limit",
"(",
")",
",",
"get",
"send",
"buffer",
"size",
"limit",
"(",
")",
")",
";"
] |
[
"the",
"instance",
"of",
"core",
"container",
"this",
"handler",
"handles",
"this",
"should",
"be",
"the",
"core",
"container",
"instance",
"that",
"created",
"this",
"handler"
] | [
"return",
"this",
"core",
"container",
";"
] |
[
"checks",
"if",
"the",
"given",
"prerequisite",
"is",
"deprecated",
"and",
"prints",
"a",
"warning",
"if",
"so"
] | [
"validate",
"direct",
"prerequisite",
"for",
"deprecation",
"(",
"context",
"builder",
",",
"context",
"builder",
"get",
"rule",
"(",
")",
",",
"prerequisite",
",",
"context",
"builder",
"for",
"aspect",
"(",
")",
")",
";"
] |
[
"adds",
"a",
"configuration",
"fragment",
"factory"
] | [
"configuration",
"fragment",
"factories",
"add",
"(",
"factory",
")",
";",
"return",
"this",
";"
] |
[
"adds",
"a",
"transition",
"factory",
"that",
"produces",
"a",
"trimming",
"transition",
"to",
"be",
"run",
"over",
"all",
"targets",
"after",
"other",
"transitions"
] | [
"if",
"(",
"trimming",
"transition",
"factory",
"=",
"=",
"null",
")",
"{",
"trimming",
"transition",
"factory",
"=",
"preconditions",
"check",
"not",
"null",
"(",
"factory",
")",
";",
"}",
"else",
"{",
"trimming",
"transition",
"factory",
"=",
"new",
"com... |
[
"overrides",
"the",
"transition",
"factory",
"run",
"over",
"all",
"targets"
] | [
"trimming",
"transition",
"factory",
"=",
"null",
";",
"return",
"this",
"add",
"trimming",
"transition",
"factory",
"(",
"factory",
")",
";"
] |
[
"overrides",
"the",
"predicate",
"which",
"determines",
"whether",
"the",
"analysis",
"cache",
"should",
"be",
"invalidated",
"for",
"the",
"given",
"options",
"diff"
] | [
"this",
"should",
"invalidate",
"cache",
"for",
"diff",
"=",
"options",
"diff",
"predicate",
"always",
"invalidate",
";",
"return",
"this",
"set",
"should",
"invalidate",
"cache",
"for",
"diff",
"(",
"should",
"invalidate",
"cache",
"for",
"diff",
")",
";"
] |
[
"returns",
"a",
"list",
"of",
"build",
"info",
"factories",
"that",
"are",
"needed",
"for",
"the",
"supported",
"languages"
] | [
"return",
"build",
"info",
"factories",
";"
] |
[
"returns",
"the",
"set",
"of",
"configuration",
"fragments",
"provided",
"by",
"this",
"module"
] | [
"return",
"configuration",
"fragment",
"factories",
";"
] |
[
"returns",
"the",
"transition",
"factory",
"used",
"to",
"produce",
"the",
"transition",
"to",
"trim",
"targets"
] | [
"return",
"trimming",
"transition",
"factory",
";"
] |
[
"returns",
"whether",
"the",
"analysis",
"cache",
"should",
"be",
"invalidated",
"for",
"the",
"given",
"options",
"diff"
] | [
"return",
"should",
"invalidate",
"cache",
"for",
"diff",
"apply",
"(",
"diff",
",",
"new",
"options",
")",
";"
] |
[
"returns",
"the",
"set",
"of",
"configuration",
"options",
"that",
"are",
"supported",
"in",
"this",
"module"
] | [
"return",
"configuration",
"options",
";"
] |
[
"returns",
"the",
"definition",
"of",
"the",
"rule",
"class",
"definition",
"with",
"the",
"specified",
"name"
] | [
"return",
"rule",
"definition",
"map",
"get",
"(",
"rule",
"class",
"name",
")",
";"
] |
[
"returns",
"the",
"configuration",
"fragment",
"that",
"should",
"be",
"available",
"to",
"all",
"rules",
"even",
"when",
"they",
"don",
"t",
"explicitly",
"require",
"it"
] | [
"return",
"universal",
"fragments",
";"
] |
[
"returns",
"the",
"defaults",
"package",
"for",
"the",
"default",
"settings"
] | [
"return",
"defaults",
"package",
"get",
"defaults",
"package",
"content",
"(",
"configuration",
"options",
",",
"invocation",
"policy",
")",
";"
] |
[
"returns",
"the",
"defaults",
"package",
"for",
"the",
"given",
"options",
"taken",
"from",
"an",
"options",
"provider"
] | [
"return",
"defaults",
"package",
"get",
"defaults",
"package",
"content",
"(",
"build",
"options",
"of",
"(",
"configuration",
"options",
",",
"options",
"provider",
")",
")",
";"
] |
[
"creates",
"a",
"build",
"options",
"class",
"for",
"the",
"given",
"options",
"taken",
"from",
"an",
"options",
"provider"
] | [
"return",
"build",
"options",
"of",
"(",
"configuration",
"options",
",",
"options",
"provider",
")",
";"
] |
[
"returns",
"all",
"skylark",
"objects",
"in",
"global",
"scope",
"for",
"this",
"rule",
"class",
"provider"
] | [
"return",
"globals",
"get",
"transitive",
"bindings",
"(",
")",
";"
] |
[
"returns",
"all",
"registered",
"{"
] | [
"immutable",
"sorted",
"set",
"builder",
"<",
"class",
"<",
"?",
"extends",
"build",
"configuration",
"fragment",
">",
">",
"fragments",
"builder",
"=",
"immutable",
"sorted",
"set",
"ordered",
"by",
"(",
"build",
"configuration",
"lexical",
"fragment",
"sorter"... |
[
"osgi",
"setter",
"for",
"{",
"@",
"link",
"event",
"publisher",
"}"
] | [
"this",
"event",
"publisher",
"=",
"publisher",
";"
] |
[
"osgi",
"unsetter",
"for",
"{",
"@",
"link",
"event",
"publisher",
"}"
] | [
"this",
"event",
"publisher",
"=",
"null",
";"
] |
[
"/",
"*",
"(",
"non",
"-",
"javadoc",
")"
] | [] |
[
"send",
"a",
"device",
"measurement",
"to",
"site",
"where"
] | [
"sitewhere",
"send",
"measurement",
"(",
"hardware",
"id",
",",
"item",
"get",
"name",
"(",
")",
",",
"value",
",",
"null",
")",
";"
] |
[
"send",
"an",
"alert",
"for",
"a",
"{",
"@",
"link",
"date",
"time",
"type",
"}"
] | [
"add",
"device",
"alert",
"(",
"hardware",
"id",
",",
"item",
",",
"type",
"openhab",
"datetime",
",",
"value",
"to",
"string",
"(",
")",
")",
";"
] |
[
"send",
"an",
"alert",
"for",
"an",
"{",
"@",
"link",
"on",
"off",
"type",
"}"
] | [
"add",
"device",
"alert",
"(",
"hardware",
"id",
",",
"item",
",",
"type",
"openhab",
"onoff",
",",
"value",
"to",
"string",
"(",
")",
")",
";"
] |
[
"send",
"an",
"alert",
"for",
"an",
"{",
"@",
"link",
"open",
"closed",
"type",
"}"
] | [
"add",
"device",
"alert",
"(",
"hardware",
"id",
",",
"item",
",",
"type",
"openhab",
"openclosed",
",",
"value",
"to",
"string",
"(",
")",
")",
";"
] |
[
"send",
"an",
"alert",
"for",
"a",
"{",
"@",
"link",
"string",
"type",
"}"
] | [
"add",
"device",
"alert",
"(",
"hardware",
"id",
",",
"item",
",",
"type",
"openhab",
"string",
",",
"value",
"to",
"string",
"(",
")",
")",
";"
] |
[
"send",
"a",
"device",
"location",
"to",
"site",
"where"
] | [
"sitewhere",
"send",
"location",
"(",
"hardware",
"id",
",",
"point",
"get",
"latitude",
"(",
")",
"double",
"value",
"(",
")",
",",
"point",
"get",
"longitude",
"(",
")",
"double",
"value",
"(",
")",
",",
"point",
"get",
"altitude",
"(",
")",
"double"... |
[
"/",
"*",
"(",
"non",
"-",
"javadoc",
")"
] | [
"return",
"new",
"array",
"list",
"<",
"historic",
"item",
">",
"(",
")",
";"
] |
[
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-"
] | [
"return",
"id",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"pipeline",
"for",
"which",
"you",
"want",
"to",
"get",
"execution",
"summary",
"information",
"<",
"/",
"p",
">"
] | [
"this",
"pipeline",
"name",
"=",
"pipeline",
"name",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"pipeline",
"for",
"which",
"you",
"want",
"to",
"get",
"execution",
"summary",
"information",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"pipeline",
"name",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"pipeline",
"that",
"will",
"start",
"processing",
"the",
"revision",
"to",
"the",
"source",
"<",
"/",
"p",
">"
] | [
"set",
"pipeline",
"name",
"(",
"pipeline",
"name",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"stage",
"is",
"the",
"first",
"path",
"segment",
"in",
"the",
"uniform",
"resource",
"identifier",
"(",
"uri",
")",
"of",
"a",
"call",
"to",
"api",
"gateway",
"<",
"/",
"p",
">"
] | [
"this",
"stage",
"name",
"=",
"stage",
"name",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"stage",
"is",
"the",
"first",
"path",
"segment",
"in",
"the",
"uniform",
"resource",
"identifier",
"(",
"uri",
")",
"of",
"a",
"call",
"to",
"api",
"gateway",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"stage",
"name",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"stage",
"that",
"contains",
"the",
"action",
"that",
"will",
"act",
"upon",
"the",
"revision",
"<",
"/",
"p",
">"
] | [
"set",
"stage",
"name",
"(",
"stage",
"name",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"nature",
"of",
"the",
"action",
"itself",
"the",
"review",
"policy",
"is",
"responsible",
"for",
"examining",
"the",
"hit",
"and",
"assignments",
"emitting",
"results",
"and",
"deciding",
"which",
"other",
"actions",
"will",
"be",
"nec... | [
"return",
"this",
"action",
"name",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"action",
"that",
"will",
"process",
"the",
"revision",
"<",
"/",
"p",
">"
] | [
"set",
"action",
"name",
"(",
"action",
"name",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"represents",
"information",
"about",
"the",
"version",
"(",
"or",
"revision",
")",
"of",
"an",
"action",
"<",
"/",
"p",
">"
] | [
"this",
"action",
"revision",
"=",
"action",
"revision",
";"
] |
[
"<",
"p",
">",
"represents",
"information",
"about",
"the",
"version",
"(",
"or",
"revision",
")",
"of",
"an",
"action",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"action",
"revision",
";"
] |
[
"<",
"p",
">",
"represents",
"information",
"about",
"the",
"version",
"(",
"or",
"revision",
")",
"of",
"an",
"action",
"<",
"/",
"p",
">"
] | [
"set",
"action",
"revision",
"(",
"action",
"revision",
")",
";",
"return",
"this",
";"
] |
[
"todo",
"refactor",
"input",
"stream",
"processing",
"(",
"see",
"parse",
"resource",
"(",
")",
"method",
")"
] | [
"file",
"input",
"stream",
"in",
"=",
"new",
"file",
"input",
"stream",
"(",
"input",
"file",
")",
";",
"topology",
"def",
"topology",
"=",
"parse",
"input",
"stream",
"(",
"in",
",",
"dump",
"yaml",
",",
"process",
"includes",
",",
"properties",
"file",... |
[
"it",
"will",
"change",
"the",
"case",
"of",
"the",
"passing",
"parameter",
"into",
"the",
"case",
"defined",
"in",
"litepal",
"xml",
"file"
] | [
"if",
"(",
"string",
"!",
"=",
"null",
")",
"{",
"lite",
"pal",
"attr",
"lite",
"pal",
"attr",
"=",
"lite",
"pal",
"attr",
"get",
"instance",
"(",
")",
";",
"string",
"cases",
"=",
"lite",
"pal",
"attr",
"get",
"cases",
"(",
")",
";",
"if",
"(",
... |
[
"this",
"helper",
"method",
"makes",
"up",
"the",
"shortage",
"of",
"contains",
"method",
"in",
"collection",
"to",
"support",
"the",
"function",
"of",
"case",
"insensitive",
"contains",
"it",
"only",
"supports",
"the",
"string",
"generic",
"type",
"of",
"coll... | [
"if",
"(",
"collection",
"=",
"=",
"null",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"string",
"=",
"=",
"null",
")",
"{",
"return",
"collection",
"contains",
"(",
"null",
")",
";",
"}",
"boolean",
"contains",
"=",
"false",
";",
"for",
"(",... |
[
"capitalize",
"make",
"the",
"first",
"letter",
"of",
"the",
"word",
"be",
"upper",
"case"
] | [
"if",
"(",
"!",
"text",
"utils",
"is",
"empty",
"(",
"string",
")",
")",
"{",
"return",
"string",
"substring",
"(",
"0",
",",
"1",
")",
"to",
"upper",
"case",
"(",
"locale",
"us",
")",
"+",
"string",
"substring",
"(",
"1",
")",
";",
"}",
"return"... |
[
"count",
"how",
"many",
"marks",
"existed",
"in",
"string"
] | [
"if",
"(",
"!",
"text",
"utils",
"is",
"empty",
"(",
"string",
")",
"&",
"&",
"!",
"text",
"utils",
"is",
"empty",
"(",
"mark",
")",
")",
"{",
"int",
"count",
"=",
"0",
";",
"int",
"index",
"=",
"string",
"index",
"of",
"(",
"mark",
")",
";",
... |
[
"if",
"the",
"litepal",
"xml",
"configuration",
"file",
"exists"
] | [
"try",
"{",
"asset",
"manager",
"asset",
"manager",
"=",
"lite",
"pal",
"application",
"get",
"context",
"(",
")",
"get",
"assets",
"(",
")",
";",
"string",
"[",
"]",
"file",
"names",
"=",
"asset",
"manager",
"list",
"(",
"\"",
"\"",
")",
";",
"if",
... |
[
"check",
"the",
"existence",
"of",
"the",
"specific",
"class",
"and",
"method"
] | [
"try",
"{",
"class",
"<",
"?",
">",
"clazz",
"=",
"class",
"for",
"name",
"(",
"class",
"name",
")",
";",
"method",
"[",
"]",
"methods",
"=",
"clazz",
"get",
"methods",
"(",
")",
";",
"for",
"(",
"method",
"method",
":",
"methods",
")",
"{",
"if"... |
[
"-",
"-",
"-",
"[",
"gl",
"program",
"env",
"parameters",
"4fv",
"e",
"x",
"t",
"]",
"-",
"-",
"-"
] | [
"public",
"static",
"native",
"void",
"ngl",
"program",
"env",
"parameters",
"4fv",
"e",
"x",
"t",
"(",
"int",
"target",
",",
"int",
"index",
",",
"int",
"count",
",",
"long",
"params",
")",
";"
] |
[
"-",
"-",
"-",
"[",
"gl",
"program",
"local",
"parameters",
"4fv",
"e",
"x",
"t",
"]",
"-",
"-",
"-"
] | [
"public",
"static",
"native",
"void",
"ngl",
"program",
"local",
"parameters",
"4fv",
"e",
"x",
"t",
"(",
"int",
"target",
",",
"int",
"index",
",",
"int",
"count",
",",
"long",
"params",
")",
";"
] |
[
"write",
"a",
"header",
"to",
"the",
"term",
"buffer",
"in",
"{",
"@",
"link",
"byte",
"order",
"#",
"little",
"endian",
"}",
"format",
"using",
"the",
"minimum",
"instructions"
] | [
"term",
"buffer",
"put",
"long",
"ordered",
"(",
"offset",
"+",
"frame",
"length",
"field",
"offset",
",",
"version",
"flags",
"type",
"|",
"(",
"(",
"-",
"length",
")",
"&",
"0x",
"f",
"f",
"f",
"f",
"ffffl",
")",
")",
";",
"unsafe",
"access",
"un... |
[
"{"
] | [
"return",
"true",
";"
] |
[
"setup",
"the",
"translog",
"used",
"to",
"find",
"the",
"last",
"refreshed",
"location"
] | [
"this",
"current",
"refresh",
"location",
"supplier",
"=",
"current",
"refresh",
"location",
"supplier",
";"
] |
[
"{"
] | [
"return",
"!",
"iterator",
"(",
")",
"has",
"next",
"(",
")",
";"
] |
[
"work",
"around",
"some",
"features",
"of",
"text",
"view",
"and",
"u",
"r",
"l",
"spans",
"i",
"e",
"vanilla",
"u",
"r",
"l",
"spans",
"do",
"not",
"react",
"to",
"touch",
"so",
"we",
"replace",
"them",
"with",
"our",
"own",
"{"
] | [
"text",
"view",
"set",
"text",
"(",
"input",
")",
";",
"text",
"view",
"set",
"movement",
"method",
"(",
"link",
"touch",
"movement",
"method",
"get",
"instance",
"(",
")",
")",
";",
"text",
"view",
"set",
"focusable",
"(",
"false",
")",
";",
"text",
... |
[
"parse",
"markdown",
"and",
"plain",
"-",
"text",
"links",
"<",
"p",
"/",
">",
"{"
] | [
"char",
"sequence",
"marked",
"up",
"=",
"markdown",
"markdown",
"to",
"spannable",
"(",
"input",
",",
"link",
"text",
"colors",
",",
"highlight",
"color",
",",
"load",
"image",
"callback",
")",
";",
"return",
"linkify",
"plain",
"links",
"(",
"marked",
"u... |
[
"parse",
"markdown",
"and",
"plain",
"-",
"text",
"links",
"and",
"set",
"on",
"the",
"{"
] | [
"if",
"(",
"text",
"utils",
"is",
"empty",
"(",
"input",
")",
")",
"return",
";",
"set",
"text",
"with",
"nice",
"links",
"(",
"text",
"view",
",",
"parse",
"markdown",
"and",
"plain",
"links",
"(",
"input",
",",
"markdown",
",",
"link",
"text",
"col... |
[
"<",
"p",
">",
"one",
"or",
"more",
"instance",
"i",
"ds",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")"... | [
"if",
"(",
"this",
"instance",
"ids",
"=",
"=",
"null",
")",
"{",
"set",
"instance",
"ids",
"(",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"string",
">",
"(",
"instance",
"ids",
"length",
")",
")",
";",
"}",
"for",
"(",
... |
[
"<",
"p",
">",
"one",
"or",
"more",
"instance",
"i",
"ds",
"<",
"/",
"p",
">"
] | [
"set",
"instance",
"ids",
"(",
"instance",
"ids",
")",
";",
"return",
"this",
";"
] |
[
"returns",
"a",
"view",
"of",
"the",
"given",
"{",
"@",
"code",
"path",
"}",
"as",
"a",
"{",
"@",
"link",
"byte",
"source",
"}"
] | [
"return",
"new",
"path",
"byte",
"source",
"(",
"path",
",",
"options",
")",
";"
] |
[
"returns",
"a",
"view",
"of",
"the",
"given",
"{",
"@",
"code",
"path",
"}",
"as",
"a",
"{",
"@",
"link",
"byte",
"sink",
"}"
] | [
"return",
"new",
"path",
"byte",
"sink",
"(",
"path",
",",
"options",
")",
";"
] |
[
"returns",
"a",
"view",
"of",
"the",
"given",
"{",
"@",
"code",
"path",
"}",
"as",
"a",
"{",
"@",
"link",
"char",
"source",
"}",
"using",
"the",
"given",
"{",
"@",
"code",
"charset",
"}"
] | [
"return",
"as",
"byte",
"source",
"(",
"path",
",",
"options",
")",
"as",
"char",
"source",
"(",
"charset",
")",
";"
] |
[
"returns",
"a",
"view",
"of",
"the",
"given",
"{",
"@",
"code",
"path",
"}",
"as",
"a",
"{",
"@",
"link",
"char",
"sink",
"}",
"using",
"the",
"given",
"{",
"@",
"code",
"charset",
"}"
] | [
"return",
"as",
"byte",
"sink",
"(",
"path",
",",
"options",
")",
"as",
"char",
"sink",
"(",
"charset",
")",
";"
] |
[
"returns",
"an",
"immutable",
"list",
"of",
"paths",
"to",
"the",
"files",
"contained",
"in",
"the",
"given",
"directory"
] | [
"try",
"(",
"directory",
"stream",
"<",
"path",
">",
"stream",
"=",
"files",
"new",
"directory",
"stream",
"(",
"dir",
")",
")",
"{",
"return",
"immutable",
"list",
"copy",
"of",
"(",
"stream",
")",
";",
"}",
"catch",
"(",
"directory",
"iterator",
"exc... |
[
"returns",
"a",
"{",
"@",
"link",
"traverser",
"}",
"instance",
"for",
"the",
"file",
"and",
"directory",
"tree",
"the",
"returned",
"traverser",
"starts",
"from",
"a",
"{",
"@",
"link",
"path",
"}",
"and",
"will",
"return",
"all",
"files",
"and",
"direc... | [
"return",
"traverser",
"for",
"tree",
"(",
"file",
"tree",
")",
";"
] |
[
"returns",
"whether",
"or",
"not",
"the",
"file",
"with",
"the",
"given",
"name",
"in",
"the",
"given",
"dir",
"is",
"a",
"directory"
] | [
"return",
"dir",
"get",
"file",
"attribute",
"view",
"(",
"name",
",",
"basic",
"file",
"attribute",
"view",
"class",
",",
"options",
")",
"read",
"attributes",
"(",
")",
"is",
"directory",
"(",
")",
";"
] |
[
"secure",
"method",
"for",
"deleting",
"the",
"contents",
"of",
"a",
"directory",
"using",
"{"
] | [
"collection",
"<",
"i",
"o",
"exception",
">",
"exceptions",
"=",
"null",
";",
"try",
"{",
"for",
"(",
"path",
"path",
":",
"dir",
")",
"{",
"exceptions",
"=",
"concat",
"(",
"exceptions",
",",
"delete",
"recursively",
"secure",
"(",
"dir",
",",
"path"... |
[
"simple",
"insecure",
"method",
"for",
"deleting",
"the",
"contents",
"of",
"a",
"directory",
"for",
"file",
"systems",
"that",
"don",
"t",
"support",
"{"
] | [
"collection",
"<",
"i",
"o",
"exception",
">",
"exceptions",
"=",
"null",
";",
"try",
"{",
"for",
"(",
"path",
"entry",
":",
"dir",
")",
"{",
"exceptions",
"=",
"concat",
"(",
"exceptions",
",",
"delete",
"recursively",
"insecure",
"(",
"entry",
")",
"... |
[
"checks",
"that",
"the",
"given",
"options",
"allow",
"an",
"insecure",
"delete",
"throwing",
"an",
"exception",
"if",
"not"
] | [
"if",
"(",
"!",
"arrays",
"as",
"list",
"(",
"options",
")",
"contains",
"(",
"recursive",
"delete",
"option",
"allow",
"insecure",
")",
")",
"{",
"throw",
"new",
"insecure",
"recursive",
"delete",
"exception",
"(",
"path",
"to",
"string",
"(",
")",
")",... |
[
"concatenates",
"the",
"contents",
"of",
"the",
"two",
"given",
"collections",
"of",
"exceptions",
"if",
"either",
"collection",
"is",
"null",
"the",
"other",
"collection",
"is",
"returned",
"otherwise",
"the",
"elements",
"of",
"{"
] | [
"if",
"(",
"exceptions",
"=",
"=",
"null",
")",
"{",
"return",
"other",
";",
"}",
"else",
"if",
"(",
"other",
"!",
"=",
"null",
")",
"{",
"exceptions",
"add",
"all",
"(",
"other",
")",
";",
"}",
"return",
"exceptions",
";"
] |
[
"returns",
"an",
"internationalized",
"message",
"based",
"on",
"its",
"key"
] | [
"return",
"messages",
"get",
"string",
"(",
"message",
"key",
")",
";"
] |
[
"returns",
"an",
"internationalized",
"formatted",
"message",
"based",
"on",
"its",
"key",
"with",
"the",
"given",
"arguments"
] | [
"formatter",
"apply",
"pattern",
"(",
"messages",
"get",
"string",
"(",
"message",
"key",
")",
")",
";",
"return",
"formatter",
"format",
"(",
"message",
"arguments",
")",
";"
] |
[
"{"
] | [
"bind",
"(",
"git",
"hub",
"d",
"t",
"o",
"factory",
"class",
")",
";",
"multibinder",
"<",
"project",
"importer",
">",
"project",
"importer",
"multibinder",
"=",
"multibinder",
"new",
"set",
"binder",
"(",
"binder",
"(",
")",
",",
"project",
"importer",
... |
[
"deletes",
"the",
"destination",
"file",
"if",
"it",
"exists",
"then",
"calls",
"org",
"apache",
"commons",
"move",
"file"
] | [
"if",
"(",
"dest",
"file",
"exists",
"(",
")",
")",
"{",
"org",
"apache",
"commons",
"io",
"file",
"utils",
"delete",
"quietly",
"(",
"dest",
"file",
")",
";",
"}",
"org",
"apache",
"commons",
"io",
"file",
"utils",
"move",
"file",
"(",
"src",
"file"... |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"load",
"balancer",
"<",
"/",
"p",
">"
] | [
"set",
"load",
"balancer",
"name",
"(",
"load",
"balancer",
"name",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"information",
"about",
"the",
"load",
"balancer",
"attributes",
"<",
"/",
"p",
">"
] | [
"this",
"load",
"balancer",
"attributes",
"=",
"load",
"balancer",
"attributes",
";"
] |
[
"<",
"p",
">",
"information",
"about",
"the",
"load",
"balancer",
"attributes",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"load",
"balancer",
"attributes",
";"
] |
[
"<",
"p",
">",
"the",
"attributes",
"for",
"the",
"load",
"balancer",
"<",
"/",
"p",
">"
] | [
"set",
"load",
"balancer",
"attributes",
"(",
"load",
"balancer",
"attributes",
")",
";",
"return",
"this",
";"
] |
[
"and",
"views",
"where",
"isn",
"t",
"exactly",
"clear"
] | [
"if",
"(",
"font",
"size",
"!",
"=",
"font",
"default",
")",
"{",
"v",
"set",
"text",
"size",
"(",
"typed",
"value",
"complex",
"unit",
"sp",
",",
"font",
"size",
")",
";",
"}"
] |
[
"creates",
"a",
"new",
"note",
"\\",
"w",
"given",
"name",
"adds",
"a",
"new",
"paragraph",
"\\",
"w",
"given",
"text"
] | [
"note",
"note",
"1",
"=",
"new",
"note",
"(",
"note",
"name",
")",
";",
"add",
"paragraph",
"with",
"text",
"(",
"note",
"1",
",",
"par",
"text",
")",
";",
"return",
"note",
"1",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.