docstring_tokens
list | code_tokens
list |
---|---|
[
"saving",
"image",
"in",
"jpeg",
"to",
"file",
"with",
"quality",
"55"
] |
[
"save",
"jpeg",
"(",
"src",
",",
"file",
"name",
",",
"jpeg",
"quality",
"low",
")",
";"
] |
[
"saving",
"image",
"in",
"jpeg",
"to",
"file",
"with",
"better",
"quality",
"90"
] |
[
"save",
"jpeg",
"(",
"src",
",",
"file",
"name",
",",
"jpeg",
"quality",
"hq",
")",
";"
] |
[
"saving",
"image",
"in",
"jpeg",
"to",
"file",
"with",
"better",
"quality",
"90"
] |
[
"save",
"(",
"src",
",",
"file",
"name",
",",
"bitmap",
"compress",
"format",
"jpeg",
",",
"quality",
")",
";"
] |
[
"saving",
"image",
"in",
"png",
"to",
"file"
] |
[
"save",
"(",
"src",
",",
"file",
"name",
",",
"bitmap",
"compress",
"format",
"png",
",",
"100",
")",
";"
] |
[
"saving",
"image",
"in",
"bmp",
"to",
"file"
] |
[
"try",
"{",
"bitmap",
"util",
"save",
"(",
"src",
",",
"file",
"name",
")",
";",
"}",
"catch",
"(",
"i",
"o",
"exception",
"e",
")",
"{",
"throw",
"new",
"image",
"save",
"exception",
"(",
"e",
")",
";",
"}"
] |
[
"calculating",
"allocated",
"memory",
"for",
"bitmap"
] |
[
"if",
"(",
"build",
"version",
"sdk",
"int",
">",
"=",
"build",
"version",
"codes",
"kitkat",
")",
"{",
"return",
"bitmap",
"get",
"byte",
"count",
"(",
")",
";",
"}",
"else",
"{",
"return",
"bitmap",
"get",
"row",
"bytes",
"(",
")",
"*",
"bitmap",
"get",
"height",
"(",
")",
";",
"}"
] |
[
"loading",
"bitmap",
"from",
"image",
"source"
] |
[
"return",
"source",
"load",
"bitmap",
"(",
")",
";"
] |
[
"loading",
"bitmap",
"from",
"image",
"source",
"with",
"limit",
"of",
"amout",
"of",
"pixels"
] |
[
"int",
"scale",
"=",
"get",
"scale",
"factor",
"(",
"source",
"get",
"image",
"metadata",
"(",
")",
",",
"limit",
")",
";",
"return",
"load",
"bitmap",
"(",
"source",
",",
"scale",
")",
";"
] |
[
"loading",
"bitmap",
"from",
"image",
"source",
"with",
"limit",
"of",
"amout",
"of",
"pixels"
] |
[
"int",
"scale",
"=",
"get",
"scale",
"factor",
"(",
"source",
"get",
"image",
"metadata",
"(",
")",
",",
"w",
",",
"h",
")",
";",
"return",
"load",
"bitmap",
"(",
"source",
",",
"scale",
")",
";"
] |
[
"loading",
"bitmap",
"from",
"image",
"source",
"with",
"specific",
"scale"
] |
[
"return",
"source",
"load",
"bitmap",
"(",
"scale",
")",
";"
] |
[
"loading",
"image",
"with",
"reuse",
"bitmap",
"of",
"same",
"size",
"as",
"source"
] |
[
"image",
"metadata",
"metadata",
"=",
"source",
"get",
"image",
"metadata",
"(",
")",
";",
"boolean",
"try",
"reuse",
"=",
"false",
";",
"if",
"(",
"dest",
"is",
"mutable",
"(",
")",
"&",
"&",
"dest",
"get",
"width",
"(",
")",
"=",
"=",
"metadata",
"get",
"w",
"(",
")",
"&",
"&",
"dest",
"get",
"height",
"(",
")",
"=",
"=",
"metadata",
"get",
"h",
"(",
")",
")",
"{",
"if",
"(",
"build",
"version",
"sdk",
"int",
">",
"=",
"19",
")",
"{",
"try",
"reuse",
"=",
"true",
";",
"}",
"else",
"if",
"(",
"build",
"version",
"sdk",
"int",
">",
"=",
"11",
")",
"{",
"if",
"(",
"metadata",
"get",
"format",
"(",
")",
"=",
"=",
"image",
"format",
"jpeg",
"|",
"|",
"metadata",
"get",
"format",
"(",
")",
"=",
"=",
"image",
"format",
"png",
")",
"{",
"try",
"reuse",
"=",
"true",
";",
"}",
"}",
"}",
"if",
"(",
"try",
"reuse",
")",
"{",
"return",
"source",
"load",
"bitmap",
"(",
"dest",
")",
";",
"}",
"else",
"{",
"return",
"new",
"reuse",
"result",
"(",
"load",
"bitmap",
"(",
"source",
")",
",",
"false",
")",
";",
"}"
] |
[
"loading",
"image",
"with",
"reuse",
"bitmap"
] |
[
"image",
"metadata",
"metadata",
"=",
"source",
"get",
"image",
"metadata",
"(",
")",
";",
"boolean",
"try",
"reuse",
"=",
"false",
";",
"if",
"(",
"dest",
"is",
"mutable",
"(",
")",
")",
"{",
"if",
"(",
"build",
"version",
"sdk",
"int",
">",
"=",
"19",
")",
"{",
"try",
"reuse",
"=",
"dest",
"get",
"allocation",
"byte",
"count",
"(",
")",
">",
"=",
"metadata",
"get",
"w",
"(",
")",
"*",
"metadata",
"get",
"h",
"(",
")",
"*",
"4",
";",
"}",
"else",
"if",
"(",
"build",
"version",
"sdk",
"int",
">",
"=",
"11",
")",
"{",
"if",
"(",
"metadata",
"get",
"format",
"(",
")",
"=",
"=",
"image",
"format",
"jpeg",
"|",
"|",
"metadata",
"get",
"format",
"(",
")",
"=",
"=",
"image",
"format",
"png",
")",
"{",
"try",
"reuse",
"=",
"dest",
"get",
"width",
"(",
")",
"=",
"=",
"metadata",
"get",
"w",
"(",
")",
"&",
"&",
"dest",
"get",
"height",
"(",
")",
"=",
"=",
"metadata",
"get",
"h",
"(",
")",
";",
"}",
"}",
"}",
"if",
"(",
"try",
"reuse",
")",
"{",
"return",
"source",
"load",
"bitmap",
"(",
"dest",
")",
";",
"}",
"else",
"{",
"return",
"new",
"reuse",
"result",
"(",
"load",
"bitmap",
"(",
"source",
")",
",",
"false",
")",
";",
"}"
] |
[
"saving",
"image",
"to",
"file"
] |
[
"file",
"output",
"stream",
"output",
"stream",
"=",
"null",
";",
"try",
"{",
"output",
"stream",
"=",
"new",
"file",
"output",
"stream",
"(",
"file",
"name",
")",
";",
"src",
"compress",
"(",
"format",
",",
"quality",
",",
"output",
"stream",
")",
";",
"output",
"stream",
"close",
"(",
")",
";",
"}",
"catch",
"(",
"i",
"o",
"exception",
"e",
")",
"{",
"throw",
"new",
"image",
"save",
"exception",
"(",
"e",
")",
";",
"}",
"finally",
"{",
"if",
"(",
"output",
"stream",
"!",
"=",
"null",
")",
"{",
"try",
"{",
"output",
"stream",
"close",
"(",
")",
";",
"}",
"catch",
"(",
"i",
"o",
"exception",
"e",
"1",
")",
"{",
"e",
"1",
"print",
"stack",
"trace",
"(",
")",
";",
"}",
"}",
"}"
] |
[
"calculating",
"scale",
"factor",
"with",
"limit",
"of",
"pixel",
"amount"
] |
[
"int",
"scale",
"=",
"1",
";",
"int",
"scaled",
"w",
"=",
"metadata",
"get",
"w",
"(",
")",
";",
"int",
"scaled",
"h",
"=",
"metadata",
"get",
"h",
"(",
")",
";",
"while",
"(",
"scaled",
"w",
"*",
"scaled",
"h",
">",
"max",
"pixels",
")",
"{",
"scale",
"*",
"=",
"2",
";",
"scaled",
"h",
"/",
"=",
"2",
";",
"scaled",
"w",
"/",
"=",
"2",
";",
"}",
"return",
"scale",
";"
] |
[
"calculating",
"scale",
"factor",
"with",
"limit",
"of",
"pixel",
"amount"
] |
[
"int",
"scale",
"=",
"1",
";",
"int",
"scaled",
"w",
"=",
"metadata",
"get",
"w",
"(",
")",
";",
"int",
"scaled",
"h",
"=",
"metadata",
"get",
"h",
"(",
")",
";",
"while",
"(",
"scaled",
"w",
"/",
"2",
">",
"min",
"w",
"&",
"&",
"scaled",
"h",
"/",
"2",
">",
"min",
"h",
")",
"{",
"scale",
"*",
"=",
"2",
";",
"scaled",
"h",
"/",
"=",
"2",
";",
"scaled",
"w",
"/",
"=",
"2",
";",
"}",
"return",
"scale",
";"
] |
[
"reset",
"the",
"date",
"time",
"context",
"for",
"the",
"current",
"thread"
] |
[
"date",
"time",
"context",
"holder",
"remove",
"(",
")",
";"
] |
[
"associate",
"the",
"given",
"date",
"time",
"context",
"with",
"the",
"current",
"thread"
] |
[
"if",
"(",
"date",
"time",
"context",
"=",
"=",
"null",
")",
"{",
"reset",
"date",
"time",
"context",
"(",
")",
";",
"}",
"else",
"{",
"date",
"time",
"context",
"holder",
"set",
"(",
"date",
"time",
"context",
")",
";",
"}"
] |
[
"return",
"the",
"date",
"time",
"context",
"associated",
"with",
"the",
"current",
"thread",
"if",
"any"
] |
[
"return",
"date",
"time",
"context",
"holder",
"get",
"(",
")",
";"
] |
[
"obtain",
"a",
"date",
"time",
"formatter",
"with",
"user",
"-",
"specific",
"settings",
"applied",
"to",
"the",
"given",
"base",
"formatter"
] |
[
"date",
"time",
"formatter",
"formatter",
"to",
"use",
"=",
"(",
"locale",
"!",
"=",
"null",
"?",
"formatter",
"with",
"locale",
"(",
"locale",
")",
":",
"formatter",
")",
";",
"date",
"time",
"context",
"context",
"=",
"get",
"date",
"time",
"context",
"(",
")",
";",
"return",
"(",
"context",
"!",
"=",
"null",
"?",
"context",
"get",
"formatter",
"(",
"formatter",
"to",
"use",
")",
":",
"formatter",
"to",
"use",
")",
";"
] |
[
"gets",
"the",
"configuration",
"values",
"for",
"the",
"default",
"subscription",
"after",
"using",
"this",
"method",
"to",
"get",
"the",
"configuration",
"bundle",
"{",
"@",
"link",
"#",
"is",
"config",
"for",
"identified",
"carrier",
"(",
"persistable",
"bundle",
")",
"}",
"should",
"be",
"called",
"to",
"confirm",
"whether",
"any",
"carrier",
"specific",
"configuration",
"has",
"been",
"applied"
] |
[
"return",
"get",
"config",
"for",
"sub",
"id",
"(",
"subscription",
"manager",
"get",
"default",
"subscription",
"id",
"(",
")",
")",
";"
] |
[
"determines",
"whether",
"a",
"configuration",
"{",
"@",
"link",
"persistable",
"bundle",
"}",
"obtained",
"from",
"{",
"@",
"link",
"#",
"get",
"config",
"(",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"get",
"config",
"for",
"sub",
"id",
"(",
"int",
")",
"}",
"corresponds",
"to",
"an",
"identified",
"carrier",
"<",
"p",
">",
"when",
"an",
"app",
"receives",
"the",
"{",
"@",
"link",
"carrier",
"config",
"manager",
"#",
"action",
"carrier",
"config",
"changed",
"}",
"broadcast",
"which",
"informs",
"it",
"that",
"the",
"carrier",
"configuration",
"has",
"changed",
"it",
"is",
"possible",
"that",
"another",
"reload",
"of",
"the",
"carrier",
"configuration",
"has",
"begun",
"since",
"the",
"intent",
"was",
"sent",
"in",
"this",
"case",
"the",
"carrier",
"configuration",
"the",
"app",
"fetches",
"(",
"e",
"g",
"via",
"{",
"@",
"link",
"#",
"get",
"config",
"(",
")",
"}",
")",
"may",
"not",
"represent",
"the",
"configuration",
"for",
"the",
"current",
"carrier",
"it",
"should",
"be",
"noted",
"that",
"it",
"does",
"not",
"necessarily",
"mean",
"the",
"configuration",
"belongs",
"to",
"current",
"carrier",
"when",
"this",
"function",
"return",
"true",
"because",
"it",
"may",
"belong",
"to",
"another",
"previous",
"identified",
"carrier",
"users",
"should",
"always",
"call",
"{",
"@",
"link",
"#",
"get",
"config",
"(",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"get",
"config",
"for",
"sub",
"id",
"(",
"int",
")",
"}",
"after",
"receiving",
"the",
"broadcast",
"{",
"@",
"link",
"#",
"action",
"carrier",
"config",
"changed",
"}",
"<",
"/",
"p",
">",
"<",
"p",
">",
"after",
"using",
"{",
"@",
"link",
"#",
"get",
"config",
"(",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"get",
"config",
"for",
"sub",
"id",
"(",
"int",
")",
"}",
"an",
"app",
"should",
"always",
"use",
"this",
"method",
"to",
"confirm",
"whether",
"any",
"carrier",
"specific",
"configuration",
"has",
"been",
"applied",
"especially",
"when",
"an",
"app",
"misses",
"the",
"broadcast",
"{",
"@",
"link",
"#",
"action",
"carrier",
"config",
"changed",
"}",
"but",
"it",
"still",
"needs",
"to",
"get",
"the",
"current",
"configuration",
"it",
"must",
"use",
"this",
"method",
"to",
"verify",
"whether",
"the",
"configuration",
"is",
"default",
"or",
"carrier",
"overridden",
"<",
"/",
"p",
">"
] |
[
"return",
"bundle",
"!",
"=",
"null",
"&",
"&",
"bundle",
"get",
"boolean",
"(",
"key",
"carrier",
"config",
"applied",
"bool",
")",
";"
] |
[
"{"
] |
[
"try",
"{",
"return",
"get",
"i",
"carrier",
"config",
"loader",
"(",
")",
"get",
"default",
"carrier",
"service",
"package",
"name",
"(",
")",
";",
"}",
"catch",
"(",
"throwable",
"t",
")",
"{",
"return",
"null",
";",
"}"
] |
[
"register",
"a",
"callback",
"listener",
"and",
"async",
"task",
"will",
"start",
"executing",
"right",
"away"
] |
[
"cb",
"=",
"callback",
";",
"execute",
"(",
")",
";"
] |
[
"adds",
"an",
"input",
"to",
"this",
"operation",
"coming",
"from",
"the",
"given",
"output",
"of",
"the",
"given",
"source",
"operation"
] |
[
"check",
"unstarted",
"(",
")",
";",
"output",
"receiver",
"fan",
"out",
"=",
"source",
"receivers",
"[",
"output",
"num",
"]",
";",
"fan",
"out",
"add",
"output",
"(",
"this",
")",
";"
] |
[
"sets",
"the",
"aggregation",
"strategy",
"to",
"be",
"used",
"to",
"assemble",
"the",
"replies",
"from",
"the",
"splitted",
"messages",
"into",
"a",
"single",
"outgoing",
"message",
"from",
"the",
"splitter",
"by",
"default",
"camel",
"will",
"use",
"the",
"original",
"incoming",
"message",
"to",
"the",
"splitter",
"(",
"leave",
"it",
"unchanged",
")",
"you",
"can",
"also",
"use",
"a",
"pojo",
"as",
"the",
"aggregation",
"strategy"
] |
[
"set",
"aggregation",
"strategy",
"(",
"aggregation",
"strategy",
")",
";",
"return",
"this",
";"
] |
[
"sets",
"a",
"reference",
"to",
"the",
"aggregation",
"strategy",
"to",
"be",
"used",
"to",
"assemble",
"the",
"replies",
"from",
"the",
"splitted",
"messages",
"into",
"a",
"single",
"outgoing",
"message",
"from",
"the",
"splitter",
"by",
"default",
"camel",
"will",
"use",
"the",
"original",
"incoming",
"message",
"to",
"the",
"splitter",
"(",
"leave",
"it",
"unchanged",
")",
"you",
"can",
"also",
"use",
"a",
"pojo",
"as",
"the",
"aggregation",
"strategy"
] |
[
"set",
"strategy",
"ref",
"(",
"aggregation",
"strategy",
"ref",
")",
";",
"return",
"this",
";"
] |
[
"this",
"option",
"can",
"be",
"used",
"to",
"explicit",
"declare",
"the",
"method",
"name",
"to",
"use",
"when",
"using",
"p",
"o",
"j",
"os",
"as",
"the",
"aggregation",
"strategy"
] |
[
"set",
"strategy",
"method",
"name",
"(",
"method",
"name",
")",
";",
"return",
"this",
";"
] |
[
"if",
"this",
"option",
"is",
"false",
"then",
"the",
"aggregate",
"method",
"is",
"not",
"used",
"if",
"there",
"was",
"no",
"data",
"to",
"enrich",
"if",
"this",
"option",
"is",
"true",
"then",
"null",
"values",
"is",
"used",
"as",
"the",
"old",
"exchange",
"(",
"when",
"no",
"data",
"to",
"enrich",
")",
"when",
"using",
"p",
"o",
"j",
"os",
"as",
"the",
"aggregation",
"strategy"
] |
[
"set",
"strategy",
"method",
"allow",
"null",
"(",
"true",
")",
";",
"return",
"this",
";"
] |
[
"if",
"enabled",
"then",
"processing",
"each",
"splitted",
"messages",
"occurs",
"concurrently",
"note",
"the",
"caller",
"thread",
"will",
"still",
"wait",
"until",
"all",
"messages",
"has",
"been",
"fully",
"processed",
"before",
"it",
"continues",
"its",
"only",
"processing",
"the",
"sub",
"messages",
"from",
"the",
"splitter",
"which",
"happens",
"concurrently"
] |
[
"set",
"parallel",
"processing",
"(",
"true",
")",
";",
"return",
"this",
";"
] |
[
"if",
"enabled",
"then",
"processing",
"each",
"splitted",
"messages",
"occurs",
"concurrently",
"note",
"the",
"caller",
"thread",
"will",
"still",
"wait",
"until",
"all",
"messages",
"has",
"been",
"fully",
"processed",
"before",
"it",
"continues",
"its",
"only",
"processing",
"the",
"sub",
"messages",
"from",
"the",
"splitter",
"which",
"happens",
"concurrently"
] |
[
"set",
"parallel",
"processing",
"(",
"parallel",
"processing",
")",
";",
"return",
"this",
";"
] |
[
"if",
"enabled",
"then",
"the",
"aggregate",
"method",
"on",
"aggregation",
"strategy",
"can",
"be",
"called",
"concurrently",
"notice",
"that",
"this",
"would",
"require",
"the",
"implementation",
"of",
"aggregation",
"strategy",
"to",
"be",
"implemented",
"as",
"thread",
"-",
"safe",
"by",
"default",
"this",
"is",
"false",
"meaning",
"that",
"camel",
"synchronizes",
"the",
"call",
"to",
"the",
"aggregate",
"method",
"though",
"in",
"some",
"use",
"-",
"cases",
"this",
"can",
"be",
"used",
"to",
"archive",
"higher",
"performance",
"when",
"the",
"aggregation",
"strategy",
"is",
"implemented",
"as",
"thread",
"-",
"safe"
] |
[
"set",
"parallel",
"aggregate",
"(",
"true",
")",
";",
"return",
"this",
";"
] |
[
"if",
"enabled",
"unwind",
"exceptions",
"occurring",
"at",
"aggregation",
"time",
"to",
"the",
"error",
"handler",
"when",
"parallel",
"processing",
"is",
"used",
"currently",
"aggregation",
"time",
"exceptions",
"do",
"not",
"stop",
"the",
"route",
"processing",
"when",
"parallel",
"processing",
"is",
"used",
"enabling",
"this",
"option",
"allows",
"to",
"work",
"around",
"this",
"behavior"
] |
[
"set",
"stop",
"on",
"aggregate",
"exception",
"(",
"true",
")",
";",
"return",
"this",
";"
] |
[
"when",
"in",
"streaming",
"mode",
"then",
"the",
"splitter",
"splits",
"the",
"original",
"message",
"on",
"-",
"demand",
"and",
"each",
"splitted",
"message",
"is",
"processed",
"one",
"by",
"one",
"this",
"reduces",
"memory",
"usage",
"as",
"the",
"splitter",
"do",
"not",
"split",
"all",
"the",
"messages",
"first",
"but",
"then",
"we",
"do",
"not",
"know",
"the",
"total",
"size",
"and",
"therefore",
"the",
"{",
"@",
"link",
"org",
"apache",
"camel",
"exchange",
"#",
"split",
"size",
"}",
"is",
"empty",
"<",
"p",
"/",
">",
"in",
"non",
"-",
"streaming",
"mode",
"(",
"default",
")",
"the",
"splitter",
"will",
"split",
"each",
"message",
"first",
"to",
"know",
"the",
"total",
"size",
"and",
"then",
"process",
"each",
"message",
"one",
"by",
"one",
"this",
"requires",
"to",
"keep",
"all",
"the",
"splitted",
"messages",
"in",
"memory",
"and",
"therefore",
"requires",
"more",
"memory",
"the",
"total",
"size",
"is",
"provided",
"in",
"the",
"{",
"@",
"link",
"org",
"apache",
"camel",
"exchange",
"#",
"split",
"size",
"}",
"header",
"<",
"p",
"/",
">",
"the",
"streaming",
"mode",
"also",
"affects",
"the",
"aggregation",
"behavior",
"if",
"enabled",
"then",
"camel",
"will",
"process",
"replies",
"out",
"-",
"of",
"-",
"order",
"eg",
"in",
"the",
"order",
"they",
"come",
"back",
"if",
"disabled",
"camel",
"will",
"process",
"replies",
"in",
"the",
"same",
"order",
"as",
"the",
"messages",
"was",
"splitted"
] |
[
"set",
"streaming",
"(",
"true",
")",
";",
"return",
"this",
";"
] |
[
"will",
"now",
"stop",
"further",
"processing",
"if",
"an",
"exception",
"or",
"failure",
"occurred",
"during",
"processing",
"of",
"an",
"{",
"@",
"link",
"org",
"apache",
"camel",
"exchange",
"}",
"and",
"the",
"caused",
"exception",
"will",
"be",
"thrown",
"<",
"p",
"/",
">",
"will",
"also",
"stop",
"if",
"processing",
"the",
"exchange",
"failed",
"(",
"has",
"a",
"fault",
"message",
")",
"or",
"an",
"exception",
"was",
"thrown",
"and",
"handled",
"by",
"the",
"error",
"handler",
"(",
"such",
"as",
"using",
"on",
"exception",
")",
"in",
"all",
"situations",
"the",
"splitter",
"will",
"stop",
"further",
"processing",
"this",
"is",
"the",
"same",
"behavior",
"as",
"in",
"pipeline",
"which",
"is",
"used",
"by",
"the",
"routing",
"engine",
"<",
"p",
"/",
">",
"the",
"default",
"behavior",
"is",
"to",
"<",
"b",
">",
"not",
"<",
"/",
"b",
">",
"stop",
"but",
"continue",
"processing",
"till",
"the",
"end"
] |
[
"set",
"stop",
"on",
"exception",
"(",
"true",
")",
";",
"return",
"this",
";"
] |
[
"to",
"use",
"a",
"custom",
"thread",
"pool",
"to",
"be",
"used",
"for",
"parallel",
"processing",
"notice",
"if",
"you",
"set",
"this",
"option",
"then",
"parallel",
"processing",
"is",
"automatic",
"implied",
"and",
"you",
"do",
"not",
"have",
"to",
"enable",
"that",
"option",
"as",
"well"
] |
[
"set",
"executor",
"service",
"(",
"executor",
"service",
")",
";",
"return",
"this",
";"
] |
[
"refers",
"to",
"a",
"custom",
"thread",
"pool",
"to",
"be",
"used",
"for",
"parallel",
"processing",
"notice",
"if",
"you",
"set",
"this",
"option",
"then",
"parallel",
"processing",
"is",
"automatic",
"implied",
"and",
"you",
"do",
"not",
"have",
"to",
"enable",
"that",
"option",
"as",
"well"
] |
[
"set",
"executor",
"service",
"ref",
"(",
"executor",
"service",
"ref",
")",
";",
"return",
"this",
";"
] |
[
"uses",
"the",
"{",
"@",
"link",
"processor",
"}",
"when",
"preparing",
"the",
"{",
"@",
"link",
"org",
"apache",
"camel",
"exchange",
"}",
"to",
"be",
"send",
"this",
"can",
"be",
"used",
"to",
"deep",
"-",
"clone",
"messages",
"that",
"should",
"be",
"send",
"or",
"any",
"custom",
"logic",
"needed",
"before",
"the",
"exchange",
"is",
"send"
] |
[
"set",
"on",
"prepare",
"(",
"on",
"prepare",
")",
";",
"return",
"this",
";"
] |
[
"uses",
"the",
"{",
"@",
"link",
"processor",
"}",
"when",
"preparing",
"the",
"{",
"@",
"link",
"org",
"apache",
"camel",
"exchange",
"}",
"to",
"be",
"send",
"this",
"can",
"be",
"used",
"to",
"deep",
"-",
"clone",
"messages",
"that",
"should",
"be",
"send",
"or",
"any",
"custom",
"logic",
"needed",
"before",
"the",
"exchange",
"is",
"send"
] |
[
"set",
"on",
"prepare",
"ref",
"(",
"on",
"prepare",
"ref",
")",
";",
"return",
"this",
";"
] |
[
"sets",
"a",
"total",
"timeout",
"specified",
"in",
"millis",
"when",
"using",
"parallel",
"processing",
"if",
"the",
"splitter",
"hasn",
"t",
"been",
"able",
"to",
"split",
"and",
"process",
"all",
"the",
"sub",
"messages",
"within",
"the",
"given",
"timeframe",
"then",
"the",
"timeout",
"triggers",
"and",
"the",
"splitter",
"breaks",
"out",
"and",
"continues",
"notice",
"if",
"you",
"provide",
"a",
"timeout",
"aware",
"aggregation",
"strategy",
"then",
"the",
"timeout",
"method",
"is",
"invoked",
"before",
"breaking",
"out",
"if",
"the",
"timeout",
"is",
"reached",
"with",
"running",
"tasks",
"still",
"remaining",
"certain",
"tasks",
"for",
"which",
"it",
"is",
"difficult",
"for",
"camel",
"to",
"shut",
"down",
"in",
"a",
"graceful",
"manner",
"may",
"continue",
"to",
"run",
"so",
"use",
"this",
"option",
"with",
"a",
"bit",
"of",
"care"
] |
[
"set",
"timeout",
"(",
"timeout",
")",
";",
"return",
"this",
";"
] |
[
"shares",
"the",
"{",
"@",
"link",
"org",
"apache",
"camel",
"spi",
"unit",
"of",
"work",
"}",
"with",
"the",
"parent",
"and",
"each",
"of",
"the",
"sub",
"messages",
"splitter",
"will",
"by",
"default",
"not",
"share",
"unit",
"of",
"work",
"between",
"the",
"parent",
"exchange",
"and",
"each",
"splitted",
"exchange",
"this",
"means",
"each",
"splitted",
"exchange",
"has",
"its",
"own",
"individual",
"unit",
"of",
"work"
] |
[
"set",
"share",
"unit",
"of",
"work",
"(",
"true",
")",
";",
"return",
"this",
";"
] |
[
"maps",
"words",
"in",
"both",
"directions",
"e",
"g",
"aufwendig",
"-",
"&",
"gt",
";",
"aufwändig",
"and",
"aufwändig",
"-",
"&",
"gt",
";",
"aufwendig"
] |
[
"protected",
"abstract",
"map",
"<",
"string",
",",
"string",
">",
"get",
"word",
"map",
"(",
")",
";"
] |
[
"get",
"the",
"message",
"shown",
"to",
"the",
"user",
"if",
"the",
"rule",
"matches"
] |
[
"protected",
"abstract",
"string",
"get",
"message",
"(",
"string",
"word",
"1",
",",
"string",
"word",
"2",
")",
";"
] |
[
"<",
"p",
">",
"identifier",
"of",
"the",
"directory",
"for",
"which",
"to",
"retrieve",
"the",
"domain",
"controller",
"information",
"<",
"/",
"p",
">"
] |
[
"set",
"directory",
"id",
"(",
"directory",
"id",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"a",
"list",
"of",
"identifiers",
"for",
"the",
"domain",
"controllers",
"whose",
"information",
"will",
"be",
"provided",
"<",
"/",
"p",
">"
] |
[
"if",
"(",
"domain",
"controller",
"ids",
"=",
"=",
"null",
")",
"{",
"domain",
"controller",
"ids",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"string",
">",
"(",
")",
";",
"}",
"return",
"domain",
"controller",
"ids",
";"
] |
[
"<",
"p",
">",
"a",
"list",
"of",
"identifiers",
"for",
"the",
"domain",
"controllers",
"whose",
"information",
"will",
"be",
"provided",
"<",
"/",
"p",
">"
] |
[
"if",
"(",
"domain",
"controller",
"ids",
"=",
"=",
"null",
")",
"{",
"this",
"domain",
"controller",
"ids",
"=",
"null",
";",
"return",
";",
"}",
"this",
"domain",
"controller",
"ids",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"string",
">",
"(",
"domain",
"controller",
"ids",
")",
";"
] |
[
"<",
"p",
">",
"a",
"list",
"of",
"identifiers",
"for",
"the",
"domain",
"controllers",
"whose",
"information",
"will",
"be",
"provided",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"domain",
"controller",
"ids",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"domain",
"controller",
"ids",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
] |
[
"if",
"(",
"this",
"domain",
"controller",
"ids",
"=",
"=",
"null",
")",
"{",
"set",
"domain",
"controller",
"ids",
"(",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"string",
">",
"(",
"domain",
"controller",
"ids",
"length",
")",
")",
";",
"}",
"for",
"(",
"string",
"ele",
":",
"domain",
"controller",
"ids",
")",
"{",
"this",
"domain",
"controller",
"ids",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"a",
"list",
"of",
"identifiers",
"for",
"the",
"domain",
"controllers",
"whose",
"information",
"will",
"be",
"provided",
"<",
"/",
"p",
">"
] |
[
"set",
"domain",
"controller",
"ids",
"(",
"domain",
"controller",
"ids",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"<",
"i",
">",
"describe",
"domain",
"controllers",
"next",
"token",
"<",
"/",
"i",
">",
"value",
"from",
"a",
"previous",
"call",
"to",
"<",
"a",
">",
"describe",
"domain",
"controllers",
"<",
"/",
"a",
">",
"pass",
"null",
"if",
"this",
"is",
"the",
"first",
"call",
"<",
"/",
"p",
">"
] |
[
"set",
"next",
"token",
"(",
"next",
"token",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"maximum",
"number",
"of",
"items",
"to",
"return",
"<",
"/",
"p",
">"
] |
[
"set",
"limit",
"(",
"limit",
")",
";",
"return",
"this",
";"
] |
[
"sets",
"a",
"system",
"property",
"for",
"the",
"session",
"the",
"property",
"name",
"and",
"value",
"must",
"only",
"contain",
"characters",
"from",
"us",
"-",
"ascii",
"and",
"must",
"not",
"be",
"for",
"="
] |
[
"system",
"properties",
"put",
"(",
"property",
"name",
",",
"property",
"value",
")",
";",
"return",
"this",
";"
] |
[
"returns",
"all",
"the",
"assert",
"expressions",
"in",
"the",
"tree"
] |
[
"immutable",
"list",
"builder",
"<",
"assert",
"tree",
">",
"assert",
"trees",
"=",
"immutable",
"list",
"builder",
"(",
")",
";",
"tree",
"accept",
"(",
"new",
"tree",
"scanner",
"<",
"void",
",",
"visitor",
"state",
">",
"(",
")",
"{",
"@",
"override",
"public",
"void",
"visit",
"assert",
"(",
"assert",
"tree",
"assert",
"tree",
",",
"visitor",
"state",
"visitor",
"state",
")",
"{",
"assert",
"trees",
"add",
"(",
"assert",
"tree",
")",
";",
"return",
"null",
";",
"}",
"}",
",",
"null",
")",
";",
"return",
"assert",
"trees",
"build",
"(",
")",
";"
] |
[
"set",
"the",
"referenced",
"type"
] |
[
"if",
"(",
"schema",
"=",
"=",
"null",
")",
"{",
"referenced",
"type",
"=",
"data",
"schema",
"constants",
"null",
"data",
"schema",
";",
"set",
"has",
"error",
"(",
")",
";",
"}",
"else",
"{",
"referenced",
"type",
"=",
"schema",
";",
"}"
] |
[
"get",
"the",
"referenced",
"type"
] |
[
"return",
"referenced",
"type",
";"
] |
[
"sets",
"if",
"the",
"ref",
"type",
"is",
"declared",
"inline",
"in",
"the",
"schema"
] |
[
"ref",
"declared",
"inline",
"=",
"ref",
"declared",
"inline",
";"
] |
[
"checks",
"if",
"the",
"ref",
"type",
"is",
"declared",
"inline"
] |
[
"return",
"ref",
"declared",
"inline",
";"
] |
[
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"boring",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/"
] |
[
"add",
"(",
"e",
")",
";"
] |
[
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"simple",
"delegates",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/"
] |
[
"return",
"q",
"peek",
"(",
")",
";"
] |
[
"start",
"the",
"service"
] |
[
"try",
"{",
"start",
"service",
"(",
"class",
"for",
"name",
"(",
"class",
"name",
")",
")",
";",
"}",
"catch",
"(",
"exception",
"e",
")",
"{",
"e",
"print",
"stack",
"trace",
"(",
")",
";",
"}"
] |
[
"start",
"the",
"service"
] |
[
"intent",
"intent",
"=",
"new",
"intent",
"(",
"utils",
"get",
"app",
"(",
")",
",",
"cls",
")",
";",
"utils",
"get",
"app",
"(",
")",
"start",
"service",
"(",
"intent",
")",
";"
] |
[
"stop",
"the",
"service"
] |
[
"try",
"{",
"return",
"stop",
"service",
"(",
"class",
"for",
"name",
"(",
"class",
"name",
")",
")",
";",
"}",
"catch",
"(",
"exception",
"e",
")",
"{",
"e",
"print",
"stack",
"trace",
"(",
")",
";",
"return",
"false",
";",
"}"
] |
[
"stop",
"the",
"service"
] |
[
"intent",
"intent",
"=",
"new",
"intent",
"(",
"utils",
"get",
"app",
"(",
")",
",",
"cls",
")",
";",
"return",
"utils",
"get",
"app",
"(",
")",
"stop",
"service",
"(",
"intent",
")",
";"
] |
[
"bind",
"the",
"service"
] |
[
"try",
"{",
"bind",
"service",
"(",
"class",
"for",
"name",
"(",
"class",
"name",
")",
",",
"conn",
",",
"flags",
")",
";",
"}",
"catch",
"(",
"exception",
"e",
")",
"{",
"e",
"print",
"stack",
"trace",
"(",
")",
";",
"}"
] |
[
"bind",
"the",
"service"
] |
[
"intent",
"intent",
"=",
"new",
"intent",
"(",
"utils",
"get",
"app",
"(",
")",
",",
"cls",
")",
";",
"utils",
"get",
"app",
"(",
")",
"bind",
"service",
"(",
"intent",
",",
"conn",
",",
"flags",
")",
";"
] |
[
"unbind",
"the",
"service"
] |
[
"utils",
"get",
"app",
"(",
")",
"unbind",
"service",
"(",
"conn",
")",
";"
] |
[
"return",
"whether",
"service",
"is",
"running"
] |
[
"return",
"is",
"service",
"running",
"(",
"cls",
"get",
"name",
"(",
")",
")",
";"
] |
[
"returns",
"the",
"<",
"code",
">",
"error",
"<",
"/",
"code",
">",
"used",
"in",
"the",
"<",
"i",
">",
"o",
"auth",
"2",
"error",
"response",
"<",
"/",
"i",
">",
"sent",
"back",
"to",
"the",
"caller",
"the",
"default",
"is",
"&",
"quot",
";",
"server",
"error",
"&",
"quot",
";"
] |
[
"return",
"this",
"error",
"code",
";"
] |
[
"returns",
"the",
"http",
"status",
"used",
"in",
"the",
"<",
"i",
">",
"o",
"auth",
"2",
"error",
"response",
"<",
"/",
"i",
">",
"sent",
"back",
"to",
"the",
"caller",
"the",
"default",
"is",
"500"
] |
[
"return",
"this",
"http",
"status",
";"
] |
[
"initializes",
"this",
"struct",
"with",
"the",
"specified",
"values"
] |
[
"handle",
"(",
"handle",
")",
";",
"mip",
"(",
"mip",
")",
";",
"layer",
"(",
"layer",
")",
";",
"resolve",
"(",
"resolve",
")",
";",
"return",
"this",
";"
] |
[
"copies",
"the",
"specified",
"struct",
"data",
"to",
"this",
"struct"
] |
[
"mem",
"copy",
"(",
"src",
"address",
"(",
")",
",",
"address",
"(",
")",
",",
"sizeof",
")",
";",
"return",
"this",
";"
] |
[
"returns",
"a",
"new",
"{"
] |
[
"return",
"wrap",
"(",
"b",
"g",
"f",
"x",
"attachment",
"class",
",",
"nmem",
"alloc",
"checked",
"(",
"sizeof",
")",
")",
";"
] |
[
"returns",
"a",
"new",
"{"
] |
[
"return",
"wrap",
"(",
"b",
"g",
"f",
"x",
"attachment",
"class",
",",
"nmem",
"calloc",
"checked",
"(",
"1",
",",
"sizeof",
")",
")",
";"
] |
[
"returns",
"a",
"new",
"{"
] |
[
"byte",
"buffer",
"container",
"=",
"buffer",
"utils",
"create",
"byte",
"buffer",
"(",
"sizeof",
")",
";",
"return",
"wrap",
"(",
"b",
"g",
"f",
"x",
"attachment",
"class",
",",
"mem",
"address",
"(",
"container",
")",
",",
"container",
")",
";"
] |
[
"returns",
"a",
"new",
"{"
] |
[
"return",
"wrap",
"(",
"b",
"g",
"f",
"x",
"attachment",
"class",
",",
"address",
")",
";"
] |
[
"like",
"{"
] |
[
"return",
"address",
"=",
"=",
"null",
"?",
"null",
":",
"wrap",
"(",
"b",
"g",
"f",
"x",
"attachment",
"class",
",",
"address",
")",
";"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"b",
"g",
"f",
"x",
"attachment",
"buffer",
"}",
"instance",
"allocated",
"with",
"{",
"@",
"link",
"memory",
"util",
"#",
"mem",
"alloc",
"mem",
"alloc",
"}",
"the",
"instance",
"must",
"be",
"explicitly",
"freed"
] |
[
"return",
"wrap",
"(",
"buffer",
"class",
",",
"nmem",
"alloc",
"checked",
"(",
"check",
"malloc",
"(",
"capacity",
",",
"sizeof",
")",
")",
",",
"capacity",
")",
";"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"b",
"g",
"f",
"x",
"attachment",
"buffer",
"}",
"instance",
"allocated",
"with",
"{",
"@",
"link",
"memory",
"util",
"#",
"mem",
"calloc",
"mem",
"calloc",
"}",
"the",
"instance",
"must",
"be",
"explicitly",
"freed"
] |
[
"return",
"wrap",
"(",
"buffer",
"class",
",",
"nmem",
"calloc",
"checked",
"(",
"capacity",
",",
"sizeof",
")",
",",
"capacity",
")",
";"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"b",
"g",
"f",
"x",
"attachment",
"buffer",
"}",
"instance",
"allocated",
"with",
"{",
"@",
"link",
"buffer",
"utils",
"}"
] |
[
"byte",
"buffer",
"container",
"=",
"create",
"(",
"capacity",
",",
"sizeof",
")",
";",
"return",
"wrap",
"(",
"buffer",
"class",
",",
"mem",
"address",
"(",
"container",
")",
",",
"capacity",
",",
"container",
")",
";"
] |
[
"create",
"a",
"{",
"@",
"link",
"b",
"g",
"f",
"x",
"attachment",
"buffer",
"}",
"instance",
"at",
"the",
"specified",
"memory"
] |
[
"return",
"wrap",
"(",
"buffer",
"class",
",",
"address",
",",
"capacity",
")",
";"
] |
[
"like",
"{"
] |
[
"return",
"address",
"=",
"=",
"null",
"?",
"null",
":",
"wrap",
"(",
"buffer",
"class",
",",
"address",
",",
"capacity",
")",
";"
] |
[
"returns",
"a",
"new",
"{"
] |
[
"return",
"malloc",
"stack",
"(",
"stack",
"get",
"(",
")",
")",
";"
] |
[
"returns",
"a",
"new",
"{"
] |
[
"return",
"calloc",
"stack",
"(",
"stack",
"get",
"(",
")",
")",
";"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"b",
"g",
"f",
"x",
"attachment",
"}",
"instance",
"allocated",
"on",
"the",
"specified",
"{",
"@",
"link",
"memory",
"stack",
"}"
] |
[
"return",
"wrap",
"(",
"b",
"g",
"f",
"x",
"attachment",
"class",
",",
"stack",
"nmalloc",
"(",
"alignof",
",",
"sizeof",
")",
")",
";"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"b",
"g",
"f",
"x",
"attachment",
"}",
"instance",
"allocated",
"on",
"the",
"specified",
"{",
"@",
"link",
"memory",
"stack",
"}",
"and",
"initializes",
"all",
"its",
"bits",
"to",
"zero"
] |
[
"return",
"wrap",
"(",
"b",
"g",
"f",
"x",
"attachment",
"class",
",",
"stack",
"ncalloc",
"(",
"alignof",
",",
"1",
",",
"sizeof",
")",
")",
";"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"b",
"g",
"f",
"x",
"attachment",
"buffer",
"}",
"instance",
"allocated",
"on",
"the",
"thread",
"-",
"local",
"{",
"@",
"link",
"memory",
"stack",
"}"
] |
[
"return",
"malloc",
"stack",
"(",
"capacity",
",",
"stack",
"get",
"(",
")",
")",
";"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"b",
"g",
"f",
"x",
"attachment",
"buffer",
"}",
"instance",
"allocated",
"on",
"the",
"thread",
"-",
"local",
"{",
"@",
"link",
"memory",
"stack",
"}",
"and",
"initializes",
"all",
"its",
"bits",
"to",
"zero"
] |
[
"return",
"calloc",
"stack",
"(",
"capacity",
",",
"stack",
"get",
"(",
")",
")",
";"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"b",
"g",
"f",
"x",
"attachment",
"buffer",
"}",
"instance",
"allocated",
"on",
"the",
"specified",
"{",
"@",
"link",
"memory",
"stack",
"}"
] |
[
"return",
"wrap",
"(",
"buffer",
"class",
",",
"stack",
"nmalloc",
"(",
"alignof",
",",
"capacity",
"*",
"sizeof",
")",
",",
"capacity",
")",
";"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"b",
"g",
"f",
"x",
"attachment",
"buffer",
"}",
"instance",
"allocated",
"on",
"the",
"specified",
"{",
"@",
"link",
"memory",
"stack",
"}",
"and",
"initializes",
"all",
"its",
"bits",
"to",
"zero"
] |
[
"return",
"wrap",
"(",
"buffer",
"class",
",",
"stack",
"ncalloc",
"(",
"alignof",
",",
"capacity",
",",
"sizeof",
")",
",",
"capacity",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] |
[
"return",
"unsafe",
"get",
"short",
"(",
"null",
",",
"struct",
"+",
"b",
"g",
"f",
"x",
"attachment",
"handle",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] |
[
"return",
"unsafe",
"get",
"short",
"(",
"null",
",",
"struct",
"+",
"b",
"g",
"f",
"x",
"attachment",
"mip",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] |
[
"return",
"unsafe",
"get",
"short",
"(",
"null",
",",
"struct",
"+",
"b",
"g",
"f",
"x",
"attachment",
"layer",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] |
[
"return",
"unsafe",
"get",
"byte",
"(",
"null",
",",
"struct",
"+",
"b",
"g",
"f",
"x",
"attachment",
"resolve",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] |
[
"unsafe",
"put",
"short",
"(",
"null",
",",
"struct",
"+",
"b",
"g",
"f",
"x",
"attachment",
"handle",
",",
"value",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] |
[
"unsafe",
"put",
"short",
"(",
"null",
",",
"struct",
"+",
"b",
"g",
"f",
"x",
"attachment",
"mip",
",",
"value",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] |
[
"unsafe",
"put",
"short",
"(",
"null",
",",
"struct",
"+",
"b",
"g",
"f",
"x",
"attachment",
"layer",
",",
"value",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] |
[
"unsafe",
"put",
"byte",
"(",
"null",
",",
"struct",
"+",
"b",
"g",
"f",
"x",
"attachment",
"resolve",
",",
"value",
")",
";"
] |
[
"convert",
"a",
"token",
"object",
"to",
"a",
"json",
"string"
] |
[
"return",
"to",
"json",
"string",
"(",
"token",
"class",
",",
"to",
"json",
"map",
"(",
"token",
")",
")",
";"
] |
[
"convert",
"a",
"key",
"-",
"value",
"pair",
"to",
"a",
"json",
"string"
] |
[
"final",
"map",
"<",
"string",
",",
"object",
">",
"m",
"=",
"new",
"tree",
"map",
"<",
"string",
",",
"object",
">",
"(",
")",
";",
"m",
"put",
"(",
"key",
",",
"value",
")",
";",
"object",
"mapper",
"mapper",
"=",
"new",
"object",
"mapper",
"(",
")",
";",
"try",
"{",
"return",
"mapper",
"write",
"value",
"as",
"string",
"(",
"m",
")",
";",
"}",
"catch",
"(",
"i",
"o",
"exception",
"ignored",
")",
"{",
"}",
"return",
"null",
";"
] |
[
"convert",
"a",
"datanode",
"info",
"[",
"]",
"to",
"a",
"json",
"array"
] |
[
"if",
"(",
"array",
"=",
"=",
"null",
")",
"{",
"return",
"null",
";",
"}",
"else",
"if",
"(",
"array",
"length",
"=",
"=",
"0",
")",
"{",
"return",
"empty",
"object",
"array",
";",
"}",
"else",
"{",
"final",
"object",
"[",
"]",
"a",
"=",
"new",
"object",
"[",
"array",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"array",
"length",
";",
"i",
"+",
"+",
")",
"{",
"a",
"[",
"i",
"]",
"=",
"to",
"json",
"map",
"(",
"array",
"[",
"i",
"]",
")",
";",
"}",
"return",
"a",
";",
"}"
] |
[
"convert",
"a",
"located",
"block",
"[",
"]",
"to",
"a",
"json",
"array"
] |
[
"if",
"(",
"array",
"=",
"=",
"null",
")",
"{",
"return",
"null",
";",
"}",
"else",
"if",
"(",
"array",
"size",
"(",
")",
"=",
"=",
"0",
")",
"{",
"return",
"empty",
"object",
"array",
";",
"}",
"else",
"{",
"final",
"object",
"[",
"]",
"a",
"=",
"new",
"object",
"[",
"array",
"size",
"(",
")",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"array",
"size",
"(",
")",
";",
"i",
"+",
"+",
")",
"{",
"a",
"[",
"i",
"]",
"=",
"to",
"json",
"map",
"(",
"array",
"get",
"(",
"i",
")",
")",
";",
"}",
"return",
"a",
";",
"}"
] |
[
"returns",
"true",
"if",
"field",
"user",
"privileges",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] |
[
"return",
"this",
"user",
"privileges",
"!",
"=",
"null",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.