docstring_tokens list | code_tokens list |
|---|---|
[
"adds",
"a",
"new",
"entry",
"with",
"the",
"specified",
"key",
"value",
"and",
"hash",
"code",
"to",
"the",
"specified",
"bucket",
"it",
"is",
"the",
"responsibility",
"of",
"this",
"method",
"to",
"resize",
"the",
"table",
"if",
"appropriate"
] | [
"entry",
"<",
"k",
",",
"v",
">",
"e",
"=",
"table",
"[",
"bucket",
"index",
"]",
";",
"table",
"[",
"bucket",
"index",
"]",
"=",
"new",
"entry",
"<",
"k",
",",
"v",
">",
"(",
"hash",
",",
"key",
",",
"value",
",",
"e",
")",
";",
"if",
"(",... |
[
"like",
"add",
"entry",
"except",
"that",
"this",
"version",
"is",
"used",
"when",
"creating",
"entries",
"as",
"part",
"of",
"map",
"construction",
"or",
"pseudo",
"-",
"construction",
"(",
"cloning",
"deserialization",
")",
"this",
"version",
"needn",
"t",
... | [
"entry",
"<",
"k",
",",
"v",
">",
"e",
"=",
"table",
"[",
"bucket",
"index",
"]",
";",
"table",
"[",
"bucket",
"index",
"]",
"=",
"new",
"entry",
"<",
"k",
",",
"v",
">",
"(",
"hash",
",",
"key",
",",
"value",
",",
"e",
")",
";",
"size",
"+... |
[
"subclass",
"overrides",
"these",
"to",
"alter",
"behavior",
"of",
"views",
"iterator",
"(",
")",
"method"
] | [
"return",
"new",
"key",
"iterator",
"(",
")",
";"
] |
[
"returns",
"a",
"{"
] | [
"set",
"<",
"k",
">",
"ks",
"=",
"key",
"set",
";",
"return",
"(",
"ks",
"!",
"=",
"null",
"?",
"ks",
":",
"(",
"key",
"set",
"=",
"new",
"key",
"set",
"(",
")",
")",
")",
";"
] |
[
"returns",
"a",
"{"
] | [
"collection",
"<",
"v",
">",
"vs",
"=",
"values",
";",
"return",
"(",
"vs",
"!",
"=",
"null",
"?",
"vs",
":",
"(",
"values",
"=",
"new",
"values",
"(",
")",
")",
")",
";"
] |
[
"returns",
"a",
"{",
"@",
"link",
"set",
"}",
"view",
"of",
"the",
"mappings",
"contained",
"in",
"this",
"map",
"the",
"set",
"is",
"backed",
"by",
"the",
"map",
"so",
"changes",
"to",
"the",
"map",
"are",
"reflected",
"in",
"the",
"set",
"and",
"vi... | [
"return",
"entry",
"set",
"0",
"(",
")",
";"
] |
[
"/",
"*",
"only",
"used",
"when",
"reading",
"state",
"from",
"packages",
"xml"
] | [
"m",
"ref",
"count",
"=",
"new",
"count",
";",
"return",
";"
] |
[
"/",
"*"
] | [
"if",
"(",
"n",
"=",
"=",
"0",
")",
"{",
"return",
"1",
"%",
"b",
";",
"}",
"if",
"(",
"n",
"=",
"=",
"1",
")",
"{",
"return",
"a",
"%",
"b",
";",
"}",
"long",
"recur",
"pow",
"=",
"fast",
"power",
"(",
"a",
",",
"b",
",",
"n",
"/",
"... |
[
"{"
] | [
"read",
"start",
"(",
")",
";",
"int",
"res",
";",
"try",
"{",
"res",
"=",
"is",
"read",
"(",
"b",
")",
";",
"}",
"finally",
"{",
"read",
"end",
"(",
")",
";",
"}",
"if",
"(",
"res",
"!",
"=",
"-",
"1",
")",
"total",
"+",
"=",
"res",
";",... |
[
"{"
] | [
"read",
"start",
"(",
")",
";",
"int",
"res",
";",
"try",
"{",
"res",
"=",
"super",
"read",
"(",
"b",
",",
"off",
",",
"len",
")",
";",
"}",
"finally",
"{",
"read",
"end",
"(",
")",
";",
"}",
"if",
"(",
"res",
"!",
"=",
"-",
"1",
")",
"to... |
[
"{"
] | [
"read",
"start",
"(",
")",
";",
"long",
"res",
";",
"try",
"{",
"res",
"=",
"is",
"skip",
"(",
"n",
")",
";",
"}",
"finally",
"{",
"read",
"end",
"(",
")",
";",
"}",
"if",
"(",
"client",
"log",
"is",
"log",
"enabled",
"(",
")",
")",
"client",... |
[
"{"
] | [
"read",
"start",
"(",
")",
";",
"try",
"{",
"return",
"is",
"available",
"(",
")",
";",
"}",
"finally",
"{",
"read",
"end",
"(",
")",
";",
"}"
] |
[
"{"
] | [
"if",
"(",
"!",
"closed",
")",
"{",
"closed",
"=",
"true",
";",
"read",
"start",
"(",
")",
";",
"try",
"{",
"is",
"close",
"(",
")",
";",
"}",
"finally",
"{",
"read",
"end",
"(",
")",
";",
"}",
"if",
"(",
"client",
"log",
"is",
"log",
"enable... |
[
"{"
] | [
"read",
"start",
"(",
")",
";",
"try",
"{",
"is",
"mark",
"(",
"read",
"limit",
")",
";",
"}",
"finally",
"{",
"read",
"end",
"(",
")",
";",
"}",
"if",
"(",
"client",
"log",
"is",
"log",
"enabled",
"(",
")",
")",
"client",
"log",
"log",
"mark",... |
[
"{"
] | [
"read",
"start",
"(",
")",
";",
"try",
"{",
"is",
"reset",
"(",
")",
";",
"}",
"finally",
"{",
"read",
"end",
"(",
")",
";",
"}",
"if",
"(",
"client",
"log",
"is",
"log",
"enabled",
"(",
")",
")",
"client",
"log",
"log",
"reset",
"(",
"log",
... |
[
"{"
] | [
"read",
"start",
"(",
")",
";",
"try",
"{",
"return",
"is",
"mark",
"supported",
"(",
")",
";",
"}",
"finally",
"{",
"read",
"end",
"(",
")",
";",
"}"
] |
[
"{"
] | [
"read",
"start",
"(",
")",
";",
"int",
"res",
";",
"try",
"{",
"res",
"=",
"is",
"read",
"(",
")",
";",
"}",
"finally",
"{",
"read",
"end",
"(",
")",
";",
"}",
"if",
"(",
"res",
"!",
"=",
"-",
"1",
")",
"total",
"+",
"+",
";",
"return",
"... |
[
"{"
] | [
"read",
"start",
"(",
")",
";",
"int",
"res",
";",
"try",
"{",
"res",
"=",
"is",
"read",
"(",
"pos",
",",
"buf",
",",
"off",
",",
"len",
")",
";",
"}",
"finally",
"{",
"read",
"end",
"(",
")",
";",
"}",
"if",
"(",
"res",
"!",
"=",
"-",
"1... |
[
"{"
] | [
"read",
"start",
"(",
")",
";",
"try",
"{",
"is",
"read",
"fully",
"(",
"pos",
",",
"buf",
",",
"off",
",",
"len",
")",
";",
"}",
"finally",
"{",
"read",
"end",
"(",
")",
";",
"}",
"total",
"+",
"=",
"len",
";",
"if",
"(",
"client",
"log",
... |
[
"{"
] | [
"read",
"start",
"(",
")",
";",
"try",
"{",
"is",
"read",
"fully",
"(",
"pos",
",",
"buf",
")",
";",
"}",
"finally",
"{",
"read",
"end",
"(",
")",
";",
"}",
"total",
"+",
"=",
"buf",
"length",
";",
"if",
"(",
"client",
"log",
"is",
"log",
"en... |
[
"{"
] | [
"read",
"start",
"(",
")",
";",
"try",
"{",
"is",
"seek",
"(",
"pos",
")",
";",
"}",
"finally",
"{",
"read",
"end",
"(",
")",
";",
"}",
"if",
"(",
"client",
"log",
"is",
"log",
"enabled",
"(",
")",
")",
"client",
"log",
"log",
"seek",
"(",
"l... |
[
"{"
] | [
"read",
"start",
"(",
")",
";",
"try",
"{",
"return",
"is",
"get",
"pos",
"(",
")",
";",
"}",
"finally",
"{",
"read",
"end",
"(",
")",
";",
"}"
] |
[
"{"
] | [
"read",
"start",
"(",
")",
";",
"try",
"{",
"return",
"is",
"seek",
"to",
"new",
"source",
"(",
"target",
"pos",
")",
";",
"}",
"finally",
"{",
"read",
"end",
"(",
")",
";",
"}"
] |
[
"read",
"start"
] | [
"long",
"now",
"=",
"system",
"nano",
"time",
"(",
")",
";",
"user",
"time",
"+",
"=",
"now",
"-",
"last",
"ts",
";",
"last",
"ts",
"=",
"now",
";"
] |
[
"read",
"end"
] | [
"long",
"now",
"=",
"system",
"nano",
"time",
"(",
")",
";",
"read",
"time",
"+",
"=",
"now",
"-",
"last",
"ts",
";",
"last",
"ts",
"=",
"now",
";"
] |
[
"getter",
"method",
"for",
"property",
"<",
"tt",
">",
"service",
"<",
"/",
"tt",
">"
] | [
"return",
"service",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"service",
"to",
"delete",
"<",
"/",
"p",
">"
] | [
"this",
"service",
"=",
"service",
";"
] |
[
"identifies",
"the",
"security",
"negotiation",
"type",
"used",
"for",
"http",
"/",
"2",
"communication"
] | [
"this",
"negotiation",
"type",
"=",
"negotiation",
"type",
";"
] |
[
"authentication",
"method",
"type",
"in",
"advance",
"to",
"the",
"ssl",
"/",
"tls",
"negotiation"
] | [
"return",
"authentication",
"type",
";"
] |
[
"json",
"web",
"token",
"sign",
"algorithm"
] | [
"return",
"jwt",
"algorithm",
";"
] |
[
"json",
"web",
"token",
"secret"
] | [
"return",
"jwt",
"secret",
";"
] |
[
"json",
"web",
"token",
"subject"
] | [
"return",
"jwt",
"subject",
";"
] |
[
"service",
"account",
"key",
"file",
"in",
"json",
"format",
"resource",
"link",
"supported",
"by",
"the",
"google",
"cloud",
"sdk"
] | [
"return",
"service",
"account",
"resource",
";"
] |
[
"the",
"x",
"509",
"certificate",
"chain",
"file",
"resource",
"in",
"pem",
"format",
"link"
] | [
"this",
"key",
"cert",
"chain",
"resource",
"=",
"key",
"cert",
"chain",
"resource",
";"
] |
[
"the",
"pkcs",
"#",
"8",
"private",
"key",
"file",
"resource",
"in",
"pem",
"format",
"link"
] | [
"this",
"key",
"resource",
"=",
"key",
"resource",
";"
] |
[
"the",
"trusted",
"certificates",
"collection",
"file",
"resource",
"in",
"pem",
"format",
"for",
"verifying",
"the",
"remote",
"endpoint",
"s",
"certificate"
] | [
"this",
"trust",
"cert",
"collection",
"resource",
"=",
"trust",
"cert",
"collection",
"resource",
";"
] |
[
"this",
"option",
"specifies",
"the",
"top",
"-",
"level",
"strategy",
"for",
"processing",
"service",
"requests",
"and",
"responses",
"in",
"streaming",
"mode",
"if",
"an",
"aggregation",
"strategy",
"is",
"selected",
"all",
"requests",
"will",
"be",
"accumulat... | [
"return",
"consumer",
"strategy",
";"
] |
[
"determines",
"if",
"on",
"completed",
"events",
"should",
"be",
"pushed",
"to",
"the",
"camel",
"route"
] | [
"this",
"forward",
"on",
"completed",
"=",
"forward",
"on",
"completed",
";"
] |
[
"determines",
"if",
"on",
"error",
"events",
"should",
"be",
"pushed",
"to",
"the",
"camel",
"route",
"exceptions",
"will",
"be",
"set",
"as",
"message",
"body"
] | [
"this",
"forward",
"on",
"error",
"=",
"forward",
"on",
"error",
";"
] |
[
"the",
"mode",
"used",
"to",
"communicate",
"with",
"a",
"remote",
"g",
"r",
"p",
"c",
"server",
"in",
"simple",
"mode",
"a",
"single",
"exchange",
"is",
"translated",
"into",
"a",
"remote",
"procedure",
"call",
"in",
"streaming",
"mode",
"all",
"exchanges... | [
"this",
"producer",
"strategy",
"=",
"producer",
"strategy",
";"
] |
[
"when",
"using",
"streaming",
"client",
"mode",
"it",
"indicates",
"the",
"endpoint",
"where",
"responses",
"should",
"be",
"forwarded"
] | [
"this",
"stream",
"replies",
"to",
"=",
"stream",
"replies",
"to",
";"
] |
[
"the",
"value",
"included",
"in",
"the",
"user",
"-",
"agent",
"message",
"header",
"identifying",
"the",
"as2",
"user",
"agent"
] | [
"this",
"user",
"agent",
"=",
"user",
"agent",
";"
] |
[
"the",
"http",
"/",
"2",
"flow",
"control",
"window",
"size",
"(",
"mi",
"b",
")"
] | [
"return",
"flow",
"control",
"window",
";"
] |
[
"gets",
"the",
"maximum",
"message",
"size",
"allowed"
] | [
"return",
"max",
"message",
"size",
";"
] |
[
"the",
"maximum",
"number",
"of",
"concurrent",
"calls",
"permitted",
"for",
"each",
"incoming",
"server",
"connection"
] | [
"this",
"max",
"concurrent",
"calls",
"per",
"connection",
"=",
"max",
"concurrent",
"calls",
"per",
"connection",
";"
] |
[
"error",
"code",
"providing",
"more",
"detail",
"into",
"what",
"went",
"wrong"
] | [
"return",
"error",
"code",
";"
] |
[
"returns",
"value",
"of",
"truncated",
"bptt",
"if",
"any",
"found"
] | [
"if",
"(",
"this",
"input",
"shape",
"length",
"=",
"=",
"2",
"&",
"&",
"this",
"input",
"shape",
"[",
"0",
"]",
">",
"0",
")",
"return",
"this",
"input",
"shape",
"[",
"0",
"]",
";",
"return",
"no",
"truncated",
"bptt",
";"
] |
[
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"... | [
"return",
"job",
";"
] |
[
"returns",
"the",
"properties",
"of",
"the",
"restored",
"checkpoint"
] | [
"return",
"props",
";"
] |
[
"register",
"all",
"shared",
"states",
"in",
"the",
"given",
"registry",
"this",
"is",
"method",
"is",
"called",
"before",
"the",
"checkpoint",
"is",
"added",
"into",
"the",
"store"
] | [
"shared",
"state",
"registry",
"register",
"all",
"(",
"operator",
"states",
"values",
"(",
")",
")",
";"
] |
[
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"... | [
"do",
"discard",
"(",
")",
";"
] |
[
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"... | [
"if",
"(",
"first",
"size",
"(",
")",
"!",
"=",
"second",
"size",
"(",
")",
")",
"{",
"return",
"false",
";",
"}",
"list",
"<",
"tuple",
"2",
"<",
"long",
",",
"job",
"i",
"d",
">",
">",
"first",
"interesting",
"fields",
"=",
"new",
"array",
"l... |
[
"sets",
"the",
"callback",
"for",
"tracking",
"when",
"this",
"checkpoint",
"is",
"discarded"
] | [
"this",
"discard",
"callback",
"=",
"discard",
"callback",
";"
] |
[
"<",
"p",
">",
"gets",
"a",
"formatter",
"instance",
"using",
"the",
"default",
"pattern",
"in",
"the",
"default",
"timezone",
"and",
"locale",
"<",
"/",
"p",
">"
] | [
"return",
"get",
"date",
"time",
"instance",
"(",
"date",
"format",
"short",
",",
"date",
"format",
"short",
",",
"time",
"zone",
"get",
"default",
"(",
")",
",",
"locale",
"get",
"default",
"(",
")",
")",
";"
] |
[
"<",
"p",
">",
"create",
"a",
"format",
"instance",
"using",
"the",
"specified",
"pattern",
"time",
"zone",
"and",
"locale",
"<",
"/",
"p",
">"
] | [
"abstract",
"protected",
"f",
"create",
"instance",
"(",
"string",
"pattern",
",",
"time",
"zone",
"time",
"zone",
",",
"locale",
"locale",
")",
";"
] |
[
"this",
"must",
"remain",
"private",
"see",
"lang",
"-",
"884"
] | [
"if",
"(",
"locale",
"=",
"=",
"null",
")",
"{",
"locale",
"=",
"locale",
"get",
"default",
"(",
")",
";",
"}",
"final",
"string",
"pattern",
"=",
"get",
"pattern",
"for",
"style",
"(",
"date",
"style",
",",
"time",
"style",
",",
"locale",
")",
";"... |
[
"package",
"protected",
"for",
"access",
"from",
"fast",
"date",
"format",
";",
"do",
"not",
"make",
"public",
"or",
"protected"
] | [
"return",
"get",
"date",
"time",
"instance",
"(",
"integer",
"value",
"of",
"(",
"date",
"style",
")",
",",
"integer",
"value",
"of",
"(",
"time",
"style",
")",
",",
"time",
"zone",
",",
"locale",
")",
";"
] |
[
"{"
] | [
"if",
"(",
"hash",
"code",
"=",
"=",
"0",
")",
"{",
"int",
"rc",
"=",
"0",
";",
"for",
"(",
"final",
"object",
"key",
":",
"keys",
")",
"{",
"if",
"(",
"key",
"!",
"=",
"null",
")",
"{",
"rc",
"=",
"rc",
"*",
"7",
"+",
"key",
"hash",
"cod... |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"map",
"cache",
"map",
"cache",
"}",
"instance",
"backed",
"by",
"a",
"{",
"@",
"link",
"soft",
"hash",
"map",
"}"
] | [
"return",
"new",
"map",
"cache",
"<",
"object",
",",
"object",
">",
"(",
"name",
",",
"new",
"soft",
"hash",
"map",
"<",
"object",
",",
"object",
">",
"(",
")",
")",
";"
] |
[
"non",
"-",
"final",
"so",
"that",
"tests",
"can",
"adjust",
"the",
"value"
] | [
"mockito",
"annotations",
"init",
"mocks",
"(",
"this",
")",
";",
"m",
"service",
"handler",
"=",
"spy",
"(",
"mock",
"service",
"handler",
"create",
"(",
"m",
"context",
")",
")",
";",
"when",
"(",
"m",
"service",
"get",
"messenger",
"(",
")",
")",
... |
[
"return",
"the",
"value",
"of",
"the",
"attribute"
] | [
"return",
"this",
"value",
";"
] |
[
"a",
"class",
"has",
"been",
"found",
"that",
"has",
"an",
"annotation",
"of",
"interest",
"to",
"this",
"initializer"
] | [
"annotated",
"type",
"names",
"add",
"(",
"class",
"name",
")",
";"
] |
[
"<",
"p",
">",
"a",
"user",
"-",
"specified",
"name",
"for",
"the",
"cache",
"parameter",
"group",
"<",
"/",
"p",
">"
] | [
"set",
"cache",
"parameter",
"group",
"name",
"(",
"cache",
"parameter",
"group",
"name",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"cache",
"parameter",
"group",
"family",
"that",
"the",
"cache",
"parameter",
"group",
"can",
"be",
"used",
"with",
"<",
"/",
"p",
">",
"<",
"p",
">",
"valid",
"values",
"are",
":",
"<",
"code",
">",
"memc... | [
"set",
"cache",
"parameter",
"group",
"family",
"(",
"cache",
"parameter",
"group",
"family",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"a",
"user",
"-",
"specified",
"description",
"for",
"the",
"cache",
"parameter",
"group",
"<",
"/",
"p",
">"
] | [
"set",
"description",
"(",
"description",
")",
";",
"return",
"this",
";"
] |
[
"persist",
"the",
"information",
"with",
"the",
"new",
"{"
] | [
"list",
"<",
"string",
">",
"roles",
"=",
"new",
"array",
"list",
"<",
"string",
">",
"(",
")",
";",
"for",
"(",
"granted",
"authority",
"ga",
":",
"auth",
"get",
"authorities",
"(",
")",
")",
"{",
"roles",
"add",
"(",
"ga",
"get",
"authority",
"("... |
[
"removes",
"the",
"recorded",
"information"
] | [
"if",
"(",
"roles",
"!",
"=",
"null",
")",
"{",
"roles",
"=",
"null",
";",
"timestamp",
"=",
"system",
"current",
"time",
"millis",
"(",
")",
";",
"user",
"save",
"(",
")",
";",
"}"
] |
[
"highlights",
"chosen",
"terms",
"in",
"a",
"text",
"extracting",
"the",
"most",
"relevant",
"section",
"this",
"is",
"a",
"convenience",
"method",
"that",
"calls",
"{",
"@",
"link",
"#",
"get",
"best",
"fragment",
"(",
"token",
"stream",
"string",
")",
"}... | [
"token",
"stream",
"token",
"stream",
"=",
"analyzer",
"token",
"stream",
"(",
"field",
"name",
",",
"text",
")",
";",
"return",
"get",
"best",
"fragment",
"(",
"token",
"stream",
",",
"text",
")",
";"
] |
[
"highlights",
"chosen",
"terms",
"in",
"a",
"text",
"extracting",
"the",
"most",
"relevant",
"section",
"the",
"document",
"text",
"is",
"analysed",
"in",
"chunks",
"to",
"record",
"hit",
"statistics",
"across",
"the",
"document",
"after",
"accumulating",
"stats... | [
"string",
"[",
"]",
"results",
"=",
"get",
"best",
"fragments",
"(",
"token",
"stream",
",",
"text",
",",
"1",
")",
";",
"if",
"(",
"results",
"length",
">",
"0",
")",
"{",
"return",
"results",
"[",
"0",
"]",
";",
"}",
"return",
"null",
";"
] |
[
"highlights",
"chosen",
"terms",
"in",
"a",
"text",
"extracting",
"the",
"most",
"relevant",
"sections",
"this",
"is",
"a",
"convenience",
"method",
"that",
"calls",
"{",
"@",
"link",
"#",
"get",
"best",
"fragments",
"(",
"token",
"stream",
"string",
"int",
... | [
"token",
"stream",
"token",
"stream",
"=",
"analyzer",
"token",
"stream",
"(",
"field",
"name",
",",
"text",
")",
";",
"return",
"get",
"best",
"fragments",
"(",
"token",
"stream",
",",
"text",
",",
"max",
"num",
"fragments",
")",
";"
] |
[
"highlights",
"terms",
"in",
"the",
"text",
"extracting",
"the",
"most",
"relevant",
"sections",
"and",
"concatenating",
"the",
"chosen",
"fragments",
"with",
"a",
"separator",
"(",
"typically",
")",
"the",
"document",
"text",
"is",
"analysed",
"in",
"chunks",
... | [
"string",
"sections",
"[",
"]",
"=",
"get",
"best",
"fragments",
"(",
"token",
"stream",
",",
"text",
",",
"max",
"num",
"fragments",
")",
";",
"string",
"builder",
"result",
"=",
"new",
"string",
"builder",
"(",
")",
";",
"for",
"(",
"int",
"i",
"="... |
[
"throws",
"an",
"illegal",
"argument",
"exception",
"with",
"the",
"provided",
"message",
"if",
"argument",
"is",
"null"
] | [
"if",
"(",
"argument",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"message",
")",
";",
"}"
] |
[
"setter",
"for",
"property",
"line"
] | [
"this",
"line",
"=",
"line",
";"
] |
[
"filters",
"mock",
"tokenizer",
"with",
"stop",
"filter"
] | [
"tokenizer",
"tokenizer",
"=",
"new",
"mock",
"tokenizer",
"(",
"mock",
"tokenizer",
"simple",
",",
"true",
")",
";",
"return",
"new",
"token",
"stream",
"components",
"(",
"tokenizer",
",",
"new",
"q",
"p",
"test",
"filter",
"(",
"tokenizer",
")",
")",
... |
[
"for",
"testing",
"date",
"tools",
"support"
] | [
"return",
"date",
"tools",
"date",
"to",
"string",
"(",
"d",
",",
"resolution",
")",
";"
] |
[
"toolbar",
"and",
"location",
"bar",
"calls",
"that",
"are",
"not",
"relevant",
"here"
] | [] |
[
"{"
] | [
"return",
"true",
";"
] |
[
"/",
"*",
"drawing"
] | [
"final",
"boolean",
"position",
"changed",
"=",
"adapter",
"position",
"changed",
"(",
")",
";",
"if",
"(",
"ripple",
"overlay",
")",
"{",
"if",
"(",
"!",
"position",
"changed",
")",
"{",
"ripple",
"background",
"draw",
"(",
"canvas",
")",
";",
"}",
"s... |
[
"/",
"*",
"accessor"
] | [
"this",
"ripple",
"color",
"=",
"ripple",
"color",
";",
"paint",
"set",
"color",
"(",
"ripple",
"color",
")",
";",
"paint",
"set",
"alpha",
"(",
"ripple",
"alpha",
")",
";",
"invalidate",
"(",
")",
";"
] |
[
"duration",
"of",
"the",
"ripple",
"animation",
"in",
"ms"
] | [
"this",
"ripple",
"duration",
"=",
"ripple",
"duration",
";"
] |
[
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*"
] | [
"return",
"get",
"component",
"configuration",
"(",
")",
"get",
"atomix",
"(",
")",
";"
] |
[
"the",
"shared",
"atomix",
"client",
"instance"
] | [
"get",
"component",
"configuration",
"(",
")",
"set",
"atomix",
"(",
"client",
")",
";"
] |
[
"the",
"nodes",
"the",
"atomix",
"client",
"should",
"connect",
"to"
] | [
"get",
"component",
"configuration",
"(",
")",
"set",
"nodes",
"(",
"nodes",
")",
";"
] |
[
"the",
"path",
"to",
"the",
"atomix",
"client",
"configuration"
] | [
"get",
"component",
"configuration",
"(",
")",
"set",
"configuration",
"uri",
"(",
"configuration",
"uri",
")",
";"
] |
[
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*"
] | [
"protected",
"abstract",
"c",
"get",
"component",
"configuration",
"(",
")",
";"
] |
[
"adds",
"an",
"object",
"to",
"the",
"set"
] | [
"set",
"add",
"(",
"obj",
")",
";"
] |
[
"removes",
"an",
"object",
"from",
"the",
"set"
] | [
"set",
"remove",
"(",
"obj",
")",
";"
] |
[
"returns",
"all",
"objects",
"contained",
"in",
"the",
"set"
] | [
"return",
"set",
"to",
"array",
"(",
"new",
"n",
"s",
"object",
"[",
"count",
"(",
")",
"]",
")",
";"
] |
[
"returns",
"one",
"of",
"the",
"objects",
"in",
"the",
"set",
"or",
"<",
"code",
">",
"null",
"<",
"/",
"code",
">",
"if",
"the",
"set",
"contains",
"no",
"objects"
] | [
"if",
"(",
"set",
"is",
"empty",
"(",
")",
")",
"return",
"null",
";",
"else",
"return",
"set",
"iterator",
"(",
")",
"next",
"(",
")",
";"
] |
[
"finds",
"out",
"whether",
"a",
"given",
"object",
"is",
"contained",
"in",
"the",
"set"
] | [
"return",
"set",
"contains",
"(",
"obj",
")",
";"
] |
[
"determines",
"whether",
"the",
"set",
"contains",
"an",
"object",
"equal",
"to",
"a",
"given",
"object",
"and",
"returns",
"that",
"object",
"if",
"it",
"is",
"present"
] | [
"for",
"(",
"n",
"s",
"object",
"o",
":",
"set",
")",
"{",
"if",
"(",
"o",
"equals",
"(",
"obj",
")",
")",
"return",
"o",
";",
"}",
"return",
"null",
";"
] |
[
"finds",
"out",
"whether",
"at",
"least",
"one",
"object",
"is",
"present",
"in",
"both",
"sets"
] | [
"for",
"(",
"n",
"s",
"object",
"o",
":",
"set",
")",
"{",
"if",
"(",
"other",
"set",
"contains",
"object",
"(",
"o",
")",
")",
"return",
"true",
";",
"}",
"return",
"false",
";"
] |
[
"finds",
"out",
"if",
"this",
"set",
"is",
"a",
"subset",
"of",
"the",
"given",
"set"
] | [
"for",
"(",
"n",
"s",
"object",
"o",
":",
"set",
")",
"{",
"if",
"(",
"!",
"other",
"set",
"contains",
"object",
"(",
"o",
")",
")",
"return",
"false",
";",
"}",
"return",
"true",
";"
] |
[
"returns",
"an",
"iterator",
"object",
"that",
"lets",
"you",
"iterate",
"over",
"all",
"elements",
"of",
"the",
"set",
"this",
"is",
"the",
"equivalent",
"to",
"<",
"code",
">",
"object",
"enumerator",
"<",
"/",
"code",
">",
"in",
"the",
"cocoa",
"imple... | [
"return",
"set",
"iterator",
"(",
")",
";"
] |
[
"gets",
"the",
"underlying",
"data",
"structure",
"in",
"which",
"this",
"n",
"s",
"sets",
"stores",
"its",
"content"
] | [
"return",
"set",
";"
] |
[
"gets",
"the",
"number",
"of",
"elements",
"in",
"the",
"set"
] | [
"return",
"set",
"size",
"(",
")",
";"
] |
[
"returns",
"the",
"ascii",
"representation",
"of",
"this",
"set",
"there",
"is",
"no",
"official",
"ascii",
"representation",
"for",
"sets",
"in",
"this",
"implementation",
"sets",
"are",
"represented",
"as",
"arrays"
] | [
"indent",
"(",
"ascii",
",",
"level",
")",
";",
"n",
"s",
"object",
"[",
"]",
"array",
"=",
"all",
"objects",
"(",
")",
";",
"ascii",
"append",
"(",
"a",
"s",
"c",
"i",
"i",
"property",
"list",
"parser",
"array",
"begin",
"token",
")",
";",
"int"... |
[
"returns",
"the",
"ascii",
"representation",
"of",
"this",
"set",
"according",
"to",
"the",
"gnu",
"step",
"format",
"there",
"is",
"no",
"official",
"ascii",
"representation",
"for",
"sets",
"in",
"this",
"implementation",
"sets",
"are",
"represented",
"as",
... | [
"indent",
"(",
"ascii",
",",
"level",
")",
";",
"n",
"s",
"object",
"[",
"]",
"array",
"=",
"all",
"objects",
"(",
")",
";",
"ascii",
"append",
"(",
"a",
"s",
"c",
"i",
"i",
"property",
"list",
"parser",
"array",
"begin",
"token",
")",
";",
"int"... |
[
"<",
"p",
">",
"(",
"private",
"hosted",
"zones",
"only",
")",
"the",
"region",
"in",
"which",
"you",
"created",
"an",
"amazon",
"vpc",
"<",
"/",
"p",
">"
] | [
"this",
"v",
"p",
"c",
"region",
"=",
"v",
"p",
"c",
"region",
";"
] |
[
"<",
"p",
">",
"(",
"private",
"hosted",
"zones",
"only",
")",
"the",
"region",
"in",
"which",
"you",
"created",
"an",
"amazon",
"vpc",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"v",
"p",
"c",
"region",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.