docstring_tokens
list | code_tokens
list |
---|---|
[
"updates",
"the",
"amount",
"of",
"rules",
"done",
"parsing"
]
| [
"number",
"of",
"parsed",
"rules",
"add",
"and",
"get",
"(",
"amount",
")",
";",
"number",
"of",
"parsed",
"b",
"u",
"c",
"k",
"files",
"increment",
"and",
"get",
"(",
")",
";",
"return",
"run",
"async",
"(",
"(",
")",
"-",
">",
"calculate",
"parsing",
"buck",
"files",
"estimated",
"progress",
"(",
")",
")",
";"
]
|
[
"indicates",
"that",
"buck",
"has",
"finished",
"parsing",
"updating",
"the",
"progress",
"estimation",
"accordingly"
]
| [
"if",
"(",
"command",
"!",
"=",
"null",
")",
"{",
"return",
"run",
"async",
"(",
"(",
")",
"-",
">",
"{",
"expected",
"number",
"of",
"parsed",
"rules",
"set",
"(",
"number",
"of",
"parsed",
"rules",
"get",
"(",
")",
")",
";",
"expected",
"number",
"of",
"parsed",
"b",
"u",
"c",
"k",
"files",
"set",
"(",
"number",
"of",
"parsed",
"b",
"u",
"c",
"k",
"files",
"get",
"(",
")",
")",
";",
"calculate",
"parsing",
"buck",
"files",
"estimated",
"progress",
"(",
")",
";",
"update",
"estimated",
"buck",
"files",
"parsing",
"values",
"(",
"command",
")",
";",
"}",
")",
";",
"}",
"return",
"futures",
"immediate",
"future",
"(",
"null",
")",
";"
]
|
[
"indicates",
"that",
"a",
"project",
"file",
"has",
"been",
"generated"
]
| [
"return",
"run",
"async",
"(",
"(",
")",
"-",
">",
"{",
"number",
"of",
"generated",
"project",
"files",
"increment",
"and",
"get",
"(",
")",
";",
"calculate",
"project",
"files",
"generation",
"estimated",
"progress",
"(",
")",
";",
"}",
")",
";"
]
|
[
"indicates",
"that",
"project",
"generation",
"is",
"finished"
]
| [
"if",
"(",
"command",
"!",
"=",
"null",
")",
"{",
"return",
"run",
"async",
"(",
"(",
")",
"-",
">",
"{",
"expected",
"number",
"of",
"generated",
"project",
"files",
"set",
"(",
"number",
"of",
"generated",
"project",
"files",
"get",
"(",
")",
")",
";",
"calculate",
"project",
"files",
"generation",
"estimated",
"progress",
"(",
")",
";",
"update",
"estimated",
"project",
"generation",
"values",
"(",
"command",
")",
";",
"}",
")",
";",
"}",
"return",
"futures",
"immediate",
"future",
"(",
"null",
")",
";"
]
|
[
"uses",
"the",
"box",
"-",
"muller",
"algorithm",
"to",
"transform",
"random",
"random",
"(",
")",
"s",
"into",
"gaussian",
"deviates"
]
| [
"double",
"out",
",",
"x",
",",
"y",
",",
"r",
",",
"z",
";",
"if",
"(",
"box",
"muller",
"!",
"=",
"null",
")",
"{",
"out",
"=",
"box",
"muller",
"double",
"value",
"(",
")",
";",
"box",
"muller",
"=",
"null",
";",
"}",
"else",
"{",
"do",
"{",
"x",
"=",
"math",
"random",
"(",
"-",
"1",
",",
"1",
")",
";",
"y",
"=",
"math",
"random",
"(",
"-",
"1",
",",
"1",
")",
";",
"r",
"=",
"x",
"*",
"x",
"+",
"y",
"*",
"y",
";",
"}",
"while",
"(",
"r",
">",
"=",
"1",
"0",
")",
";",
"z",
"=",
"math",
"sqrt",
"(",
"-",
"2",
"0",
"*",
"math",
"log",
"(",
"r",
")",
"/",
"r",
")",
";",
"box",
"muller",
"=",
"new",
"double",
"(",
"x",
"*",
"z",
")",
";",
"out",
"=",
"y",
"*",
"z",
";",
"}",
"return",
"mu",
"+",
"sigma",
"*",
"out",
";"
]
|
[
"uses",
"inverse",
"cdf",
"method",
"to",
"generate",
"a",
"gaussian",
"deviate"
]
| [
"final",
"double",
"a",
"0",
"=",
"2",
"50662823884",
";",
"final",
"double",
"a",
"1",
"=",
"-",
"18",
"61500062529",
";",
"final",
"double",
"a",
"2",
"=",
"41",
"39119773534",
";",
"final",
"double",
"a",
"3",
"=",
"-",
"25",
"44106049637",
";",
"final",
"double",
"b",
"0",
"=",
"-",
"8",
"47351093090",
";",
"final",
"double",
"b",
"1",
"=",
"23",
"08336743743",
";",
"final",
"double",
"b",
"2",
"=",
"-",
"21",
"06224101826",
";",
"final",
"double",
"b",
"3",
"=",
"3",
"13082909833",
";",
"final",
"double",
"c",
"0",
"=",
"0",
"3374754822726147",
";",
"final",
"double",
"c",
"1",
"=",
"0",
"9761690190917186",
";",
"final",
"double",
"c",
"2",
"=",
"0",
"1607979714918209",
";",
"final",
"double",
"c",
"3",
"=",
"0",
"0276438810333863",
";",
"final",
"double",
"c",
"4",
"=",
"0",
"0038405729373609",
";",
"final",
"double",
"c",
"5",
"=",
"0",
"0003951896511919",
";",
"final",
"double",
"c",
"6",
"=",
"0",
"0000321767881768",
";",
"final",
"double",
"c",
"7",
"=",
"0",
"0000002888167364",
";",
"final",
"double",
"c",
"8",
"=",
"0",
"0000003960315187",
";",
"double",
"y",
",",
"r",
",",
"x",
";",
"double",
"u",
"=",
"math",
"random",
"(",
")",
";",
"while",
"(",
"u",
"=",
"=",
"0",
"0",
")",
"{",
"u",
"=",
"math",
"random",
"(",
")",
";",
"}",
"y",
"=",
"u",
"-",
"0",
"5",
";",
"if",
"(",
"math",
"abs",
"(",
"y",
")",
"<",
"0",
"42",
")",
"{",
"r",
"=",
"y",
"*",
"y",
";",
"x",
"=",
"y",
"*",
"(",
"(",
"(",
"a",
"3",
"*",
"r",
"+",
"a",
"2",
")",
"*",
"r",
"+",
"a",
"1",
")",
"*",
"r",
"+",
"a",
"0",
")",
"/",
"(",
"(",
"(",
"(",
"b",
"3",
"*",
"r",
"+",
"b",
"2",
")",
"*",
"r",
"+",
"b",
"1",
")",
"*",
"r",
"+",
"b",
"0",
")",
"*",
"r",
"+",
"1",
")",
";",
"}",
"else",
"{",
"r",
"=",
"u",
";",
"if",
"(",
"y",
">",
"0",
")",
"{",
"r",
"=",
"1",
"-",
"u",
";",
"}",
"r",
"=",
"math",
"log",
"(",
"-",
"math",
"log",
"(",
"r",
")",
")",
";",
"x",
"=",
"c",
"0",
"+",
"r",
"*",
"(",
"c",
"1",
"+",
"r",
"*",
"(",
"c",
"2",
"+",
"r",
"*",
"(",
"c",
"3",
"+",
"r",
"*",
"(",
"c",
"4",
"+",
"r",
"*",
"(",
"c",
"5",
"+",
"r",
"*",
"(",
"c",
"6",
"+",
"r",
"*",
"(",
"c",
"7",
"+",
"r",
"*",
"c",
"8",
")",
")",
")",
")",
")",
")",
")",
";",
"if",
"(",
"y",
"<",
"0",
")",
"{",
"x",
"=",
"-",
"(",
"x",
")",
";",
"}",
"}",
"return",
"mu",
"+",
"sigma",
"*",
"x",
";"
]
|
[
"/",
"*",
"(",
"non",
"-",
"javadoc",
")"
]
| [
"final",
"int",
"prime",
"=",
"31",
";",
"int",
"result",
"=",
"1",
";",
"result",
"=",
"prime",
"*",
"result",
"+",
"(",
"(",
"build",
"time",
"=",
"=",
"null",
")",
"?",
"0",
":",
"build",
"time",
"hash",
"code",
"(",
")",
")",
";",
"result",
"=",
"prime",
"*",
"result",
"+",
"(",
"(",
"classname",
"=",
"=",
"null",
")",
"?",
"0",
":",
"classname",
"hash",
"code",
"(",
")",
")",
";",
"result",
"=",
"prime",
"*",
"result",
"+",
"(",
"(",
"module",
"type",
"=",
"=",
"null",
")",
"?",
"0",
":",
"module",
"type",
"hash",
"code",
"(",
")",
")",
";",
"result",
"=",
"prime",
"*",
"result",
"+",
"(",
"(",
"version",
"=",
"=",
"null",
")",
"?",
"0",
":",
"version",
"hash",
"code",
"(",
")",
")",
";",
"result",
"=",
"prime",
"*",
"result",
"+",
"(",
"(",
"gitsha",
"1",
"=",
"=",
"null",
")",
"?",
"0",
":",
"gitsha",
"1",
"hash",
"code",
"(",
")",
")",
";",
"return",
"result",
";"
]
|
[
"/",
"*",
"(",
"non",
"-",
"javadoc",
")"
]
| [
"if",
"(",
"this",
"=",
"=",
"obj",
")",
"{",
"return",
"true",
";",
"}",
"if",
"(",
"obj",
"=",
"=",
"null",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"!",
"(",
"obj",
"instanceof",
"module",
"info",
")",
")",
"{",
"return",
"false",
";",
"}",
"module",
"info",
"other",
"=",
"(",
"module",
"info",
")",
"obj",
";",
"if",
"(",
"build",
"time",
"=",
"=",
"null",
")",
"{",
"if",
"(",
"other",
"build",
"time",
"!",
"=",
"null",
")",
"{",
"return",
"false",
";",
"}",
"}",
"else",
"if",
"(",
"!",
"build",
"time",
"equals",
"(",
"other",
"build",
"time",
")",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"classname",
"=",
"=",
"null",
")",
"{",
"if",
"(",
"other",
"classname",
"!",
"=",
"null",
")",
"{",
"return",
"false",
";",
"}",
"}",
"else",
"if",
"(",
"!",
"classname",
"equals",
"(",
"other",
"classname",
")",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"!",
"module",
"type",
"equals",
"(",
"other",
"module",
"type",
")",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"version",
"=",
"=",
"null",
")",
"{",
"if",
"(",
"other",
"version",
"!",
"=",
"null",
")",
"{",
"return",
"false",
";",
"}",
"}",
"else",
"if",
"(",
"!",
"version",
"equals",
"(",
"other",
"version",
")",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"gitsha",
"1",
"=",
"=",
"null",
")",
"{",
"if",
"(",
"other",
"gitsha",
"1",
"!",
"=",
"null",
")",
"{",
"return",
"false",
";",
"}",
"}",
"else",
"if",
"(",
"!",
"gitsha",
"1",
"equals",
"(",
"other",
"gitsha",
"1",
")",
")",
"{",
"return",
"false",
";",
"}",
"return",
"true",
";"
]
|
[
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"configure"
]
| [
"time",
"=",
"local",
"date",
"time",
"parse",
"(",
"annotation",
"value",
"(",
")",
")",
";"
]
|
[
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"validate"
]
| [
"return",
"validate",
"(",
"value",
",",
"time",
")",
";"
]
|
[
"flush",
"any",
"bytes",
"in",
"the",
"file",
"s",
"buffer",
"that",
"have",
"not",
"yet",
"been",
"written",
"to",
"disk",
"if",
"the",
"file",
"was",
"created",
"read",
"-",
"only",
"this",
"method",
"is",
"a",
"no",
"-",
"op"
]
| [
"this",
"flush",
"buffer",
"(",
")",
";"
]
|
[
"/",
"*",
"flush",
"any",
"dirty",
"bytes",
"in",
"the",
"buffer",
"to",
"disk"
]
| [
"if",
"(",
"this",
"dirty",
")",
"{",
"if",
"(",
"this",
"disk",
"pos",
"!",
"=",
"this",
"lo",
")",
"super",
"seek",
"(",
"this",
"lo",
")",
";",
"int",
"len",
"=",
"(",
"int",
")",
"(",
"this",
"curr",
"-",
"this",
"lo",
")",
";",
"super",
"write",
"(",
"this",
"buff",
",",
"0",
",",
"len",
")",
";",
"this",
"disk",
"pos",
"=",
"this",
"curr",
";",
"this",
"dirty",
"=",
"false",
";",
"}"
]
|
[
"add",
"bytes",
"to",
"the",
"context",
"and",
"maybe",
"break"
]
| [
"add",
"bytes",
"(",
"bytes",
",",
"true",
")",
";"
]
|
[
"add",
"bytes",
"to",
"the",
"context",
"without",
"breaking"
]
| [
"add",
"bytes",
"(",
"bytes",
",",
"false",
")",
";"
]
|
[
"flush",
"the",
"{",
"@",
"code",
"bytes",
"}",
"to",
"the",
"breaker",
"incrementing",
"the",
"total",
"bytes",
"and",
"adjusting",
"the",
"buffer"
]
| [
"if",
"(",
"bytes",
"=",
"=",
"0",
")",
"{",
"return",
";",
"}",
"breaker",
"add",
"without",
"breaking",
"(",
"bytes",
")",
";",
"if",
"(",
"exceeded",
"breaker",
"(",
")",
")",
"{",
"tripped",
"=",
"true",
";",
"}",
"total",
"bytes",
"add",
"and",
"get",
"(",
"bytes",
")",
";",
"flush",
"buffer",
"add",
"and",
"get",
"(",
"-",
"bytes",
")",
";"
]
|
[
"returns",
"bytes",
"from",
"the",
"buffer",
"+",
"bytes",
"that",
"have",
"already",
"been",
"flushed",
"to",
"the",
"breaker"
]
| [
"return",
"flush",
"buffer",
"get",
"(",
")",
"+",
"total",
"bytes",
"get",
"(",
")",
";"
]
|
[
"returns",
"true",
"if",
"the",
"limit",
"of",
"the",
"breaker",
"was",
"already",
"reached"
]
| [
"return",
"tripped",
";"
]
|
[
"returns",
"true",
"if",
"the",
"limit",
"of",
"the",
"breaker",
"was",
"already",
"reached",
"but",
"the",
"breaker",
"did",
"not",
"trip",
"(",
"e",
"g",
"when",
"adding",
"bytes",
"without",
"breaking",
")"
]
| [
"return",
"breaker",
"get",
"used",
"(",
")",
">",
"=",
"breaker",
"get",
"limit",
"(",
")",
";"
]
|
[
"returns",
"the",
"configured",
"bytes",
"limit",
"of",
"the",
"breaker"
]
| [
"return",
"breaker",
"get",
"limit",
"(",
")",
";"
]
|
[
"returns",
"the",
"context",
"id",
"string"
]
| [
"return",
"context",
"id",
";"
]
|
[
"round",
"n",
"up",
"to",
"the",
"nearest",
"multiple",
"of",
"m"
]
| [
"return",
"n",
"+",
"(",
"n",
"%",
"m",
")",
";"
]
|
[
"round",
"n",
"up",
"to",
"the",
"nearest",
"multiple",
"of",
"8"
]
| [
"return",
"round",
"up",
"(",
"n",
",",
"8",
")",
";"
]
|
[
"provides",
"the",
"currently",
"unusable",
"nodes",
"copies",
"it",
"into",
"provided",
"collection"
]
| [
"un",
"usable",
"nodes",
"add",
"all",
"(",
"unusable",
"r",
"m",
"nodes",
"concurrent",
"set",
")",
";",
"return",
"unusable",
"r",
"m",
"nodes",
"concurrent",
"set",
"size",
"(",
")",
";"
]
|
[
"it",
"checks",
"for",
"any",
"nodes",
"in",
"decommissioning",
"state"
]
| [
"set",
"<",
"node",
"id",
">",
"decommissioning",
"nodes",
"=",
"new",
"hash",
"set",
"<",
"node",
"id",
">",
"(",
")",
";",
"for",
"(",
"entry",
"<",
"node",
"id",
",",
"r",
"m",
"node",
">",
"entry",
":",
"rm",
"context",
"get",
"r",
"m",
"nodes",
"(",
")",
"entry",
"set",
"(",
")",
")",
"{",
"if",
"(",
"entry",
"get",
"value",
"(",
")",
"get",
"state",
"(",
")",
"=",
"=",
"node",
"state",
"decommissioning",
")",
"{",
"decommissioning",
"nodes",
"add",
"(",
"entry",
"get",
"key",
"(",
")",
")",
";",
"}",
"}",
"return",
"decommissioning",
"nodes",
";"
]
|
[
"forcefully",
"decommission",
"the",
"nodes",
"if",
"they",
"are",
"in",
"decommissioning",
"state"
]
| [
"for",
"(",
"entry",
"<",
"node",
"id",
",",
"r",
"m",
"node",
">",
"entry",
":",
"rm",
"context",
"get",
"r",
"m",
"nodes",
"(",
")",
"entry",
"set",
"(",
")",
")",
"{",
"if",
"(",
"entry",
"get",
"value",
"(",
")",
"get",
"state",
"(",
")",
"=",
"=",
"node",
"state",
"decommissioning",
")",
"{",
"this",
"rm",
"context",
"get",
"dispatcher",
"(",
")",
"get",
"event",
"handler",
"(",
")",
"handle",
"(",
"new",
"r",
"m",
"node",
"event",
"(",
"entry",
"get",
"key",
"(",
")",
",",
"r",
"m",
"node",
"event",
"type",
"decommission",
")",
")",
";",
"}",
"}"
]
|
[
"sets",
"the",
"name",
"of",
"the",
"bucket",
"containing",
"the",
"multipart",
"upload",
"to",
"complete",
"and",
"returns",
"this",
"updated",
"complete",
"multipart",
"upload",
"request",
"so",
"that",
"additional",
"method",
"calls",
"can",
"be",
"chained",
"together"
]
| [
"this",
"bucket",
"name",
"=",
"bucket",
"name",
";",
"return",
"this",
";"
]
|
[
"sets",
"the",
"key",
"under",
"which",
"the",
"multipart",
"upload",
"to",
"complete",
"is",
"stored",
"and",
"returns",
"this",
"updated",
"complete",
"multipart",
"upload",
"request",
"object",
"so",
"that",
"additional",
"method",
"calls",
"can",
"be",
"chained",
"together"
]
| [
"this",
"key",
"=",
"key",
";",
"return",
"this",
";"
]
|
[
"sets",
"the",
"id",
"of",
"the",
"multipart",
"upload",
"to",
"complete",
"and",
"returns",
"this",
"updated",
"complete",
"multipart",
"upload",
"request",
"object",
"so",
"that",
"additional",
"method",
"calls",
"can",
"be",
"chained",
"together"
]
| [
"this",
"upload",
"id",
"=",
"upload",
"id",
";",
"return",
"this",
";"
]
|
[
"returns",
"the",
"list",
"of",
"part",
"numbers",
"and",
"e",
"tags",
"that",
"identify",
"the",
"individual",
"parts",
"of",
"the",
"multipart",
"upload",
"to",
"complete"
]
| [
"return",
"part",
"e",
"tags",
";"
]
|
[
"sets",
"the",
"list",
"of",
"part",
"numbers",
"and",
"e",
"tags",
"that",
"identify",
"the",
"individual",
"parts",
"of",
"the",
"multipart",
"upload",
"to",
"complete"
]
| [
"this",
"part",
"e",
"tags",
"=",
"part",
"e",
"tags",
";"
]
|
[
"sets",
"the",
"list",
"of",
"part",
"numbers",
"and",
"e",
"tags",
"that",
"identify",
"the",
"individual",
"parts",
"of",
"the",
"multipart",
"upload",
"to",
"complete",
"and",
"returns",
"this",
"updated",
"complete",
"multipart",
"upload",
"request",
"object",
"so",
"that",
"additional",
"method",
"calls",
"can",
"be",
"chained"
]
| [
"set",
"part",
"e",
"tags",
"(",
"part",
"e",
"tags",
")",
";",
"return",
"this",
";"
]
|
[
"sets",
"the",
"list",
"of",
"part",
"numbers",
"and",
"e",
"tags",
"that",
"identify",
"the",
"individual",
"parts",
"of",
"the",
"multipart",
"upload",
"to",
"complete",
"based",
"on",
"the",
"specified",
"results",
"from",
"part",
"uploads"
]
| [
"for",
"(",
"upload",
"part",
"result",
"result",
":",
"upload",
"part",
"results",
")",
"{",
"this",
"part",
"e",
"tags",
"add",
"(",
"new",
"part",
"e",
"tag",
"(",
"result",
"get",
"part",
"number",
"(",
")",
",",
"result",
"get",
"e",
"tag",
"(",
")",
")",
")",
";",
"}",
"return",
"this",
";"
]
|
[
"sets",
"the",
"list",
"of",
"part",
"numbers",
"and",
"e",
"tags",
"that",
"identify",
"the",
"individual",
"parts",
"of",
"the",
"multipart",
"upload",
"to",
"complete",
"based",
"on",
"the",
"specified",
"results",
"from",
"part",
"uploads"
]
| [
"for",
"(",
"upload",
"part",
"result",
"result",
":",
"upload",
"part",
"results",
"collection",
")",
"{",
"this",
"part",
"e",
"tags",
"add",
"(",
"new",
"part",
"e",
"tag",
"(",
"result",
"get",
"part",
"number",
"(",
")",
",",
"result",
"get",
"e",
"tag",
"(",
")",
")",
")",
";",
"}",
"return",
"this",
";"
]
|
[
"used",
"for",
"conducting",
"this",
"operation",
"from",
"a",
"requester",
"pays",
"bucket",
"if",
"set",
"the",
"requester",
"is",
"charged",
"for",
"requests",
"from",
"the",
"bucket",
"it",
"returns",
"this",
"updated",
"complete",
"multipart",
"upload",
"request",
"object",
"so",
"that",
"additional",
"method",
"calls",
"can",
"be",
"chained",
"together"
]
| [
"set",
"requester",
"pays",
"(",
"is",
"requester",
"pays",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"number",
"of",
"v",
"c",
"p",
"us",
"the",
"instance",
"has",
"<",
"/",
"p",
">"
]
| [
"set",
"cpu",
"count",
"(",
"cpu",
"count",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"disks",
"attached",
"to",
"the",
"instance",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"disks",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"disks",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"this",
"disks",
"=",
"=",
"null",
")",
"{",
"set",
"disks",
"(",
"new",
"java",
"util",
"array",
"list",
"<",
"disk",
">",
"(",
"disks",
"length",
")",
")",
";",
"}",
"for",
"(",
"disk",
"ele",
":",
"disks",
")",
"{",
"this",
"disks",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"disks",
"attached",
"to",
"the",
"instance",
"<",
"/",
"p",
">"
]
| [
"set",
"disks",
"(",
"disks",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"amount",
"of",
"ram",
"in",
"gb",
"on",
"the",
"instance",
"(",
"e",
"g",
"<",
"code",
">",
"1",
"0",
"<",
"/",
"code",
">",
")",
"<",
"/",
"p",
">"
]
| [
"set",
"ram",
"size",
"in",
"gb",
"(",
"ram",
"size",
"in",
"gb",
")",
";",
"return",
"this",
";"
]
|
[
"notifies",
"the",
"service",
"that",
"it",
"should",
"start",
"listening",
"for",
"speech"
]
| [
"protected",
"abstract",
"void",
"on",
"start",
"listening",
"(",
"intent",
"recognizer",
"intent",
",",
"callback",
"listener",
")",
";"
]
|
[
"notifies",
"the",
"service",
"that",
"it",
"should",
"cancel",
"the",
"speech",
"recognition"
]
| [
"protected",
"abstract",
"void",
"on",
"cancel",
"(",
"callback",
"listener",
")",
";"
]
|
[
"notifies",
"the",
"service",
"that",
"it",
"should",
"stop",
"listening",
"for",
"speech",
"speech",
"captured",
"so",
"far",
"should",
"be",
"recognized",
"as",
"if",
"the",
"user",
"had",
"stopped",
"speaking",
"at",
"this",
"point",
"this",
"method",
"is",
"only",
"called",
"if",
"the",
"application",
"calls",
"it",
"explicitly"
]
| [
"protected",
"abstract",
"void",
"on",
"stop",
"listening",
"(",
"callback",
"listener",
")",
";"
]
|
[
"the",
"service",
"should",
"call",
"this",
"method",
"when",
"sound",
"has",
"been",
"received",
"the",
"purpose",
"of",
"this",
"function",
"is",
"to",
"allow",
"giving",
"feedback",
"to",
"the",
"user",
"regarding",
"the",
"captured",
"audio"
]
| [
"m",
"listener",
"on",
"buffer",
"received",
"(",
"buffer",
")",
";"
]
|
[
"the",
"service",
"should",
"call",
"this",
"method",
"after",
"the",
"user",
"stops",
"speaking"
]
| [
"m",
"listener",
"on",
"end",
"of",
"speech",
"(",
")",
";"
]
|
[
"the",
"service",
"should",
"call",
"this",
"method",
"when",
"a",
"network",
"or",
"recognition",
"error",
"occurred"
]
| [
"message",
"obtain",
"(",
"m",
"handler",
",",
"msg",
"reset",
")",
"send",
"to",
"target",
"(",
")",
";",
"m",
"listener",
"on",
"error",
"(",
"error",
")",
";"
]
|
[
"the",
"service",
"should",
"call",
"this",
"method",
"when",
"partial",
"recognition",
"results",
"are",
"available",
"this",
"method",
"can",
"be",
"called",
"at",
"any",
"time",
"between",
"{",
"@",
"link",
"#",
"beginning",
"of",
"speech",
"(",
")",
"}",
"and",
"{",
"@",
"link",
"#",
"results",
"(",
"bundle",
")",
"}",
"when",
"partial",
"results",
"are",
"ready",
"this",
"method",
"may",
"be",
"called",
"zero",
"one",
"or",
"multiple",
"times",
"for",
"each",
"call",
"to",
"{",
"@",
"link",
"speech",
"recognizer",
"#",
"start",
"listening",
"(",
"intent",
")",
"}",
"depending",
"on",
"the",
"speech",
"recognition",
"service",
"implementation"
]
| [
"m",
"listener",
"on",
"partial",
"results",
"(",
"partial",
"results",
")",
";"
]
|
[
"the",
"service",
"should",
"call",
"this",
"method",
"when",
"the",
"endpointer",
"is",
"ready",
"for",
"the",
"user",
"to",
"start",
"speaking"
]
| [
"m",
"listener",
"on",
"ready",
"for",
"speech",
"(",
"params",
")",
";"
]
|
[
"the",
"service",
"should",
"call",
"this",
"method",
"when",
"recognition",
"results",
"are",
"ready"
]
| [
"message",
"obtain",
"(",
"m",
"handler",
",",
"msg",
"reset",
")",
"send",
"to",
"target",
"(",
")",
";",
"m",
"listener",
"on",
"results",
"(",
"results",
")",
";"
]
|
[
"the",
"service",
"should",
"call",
"this",
"method",
"when",
"the",
"sound",
"level",
"in",
"the",
"audio",
"stream",
"has",
"changed",
"there",
"is",
"no",
"guarantee",
"that",
"this",
"method",
"will",
"be",
"called"
]
| [
"m",
"listener",
"on",
"rms",
"changed",
"(",
"rmsd",
"b",
")",
";"
]
|
[
"<",
"p",
">",
"name",
"of",
"the",
"crawler",
"to",
"remove",
"<",
"/",
"p",
">"
]
| [
"set",
"name",
"(",
"name",
")",
";",
"return",
"this",
";"
]
|
[
"returns",
"a",
"{"
]
| [
"return",
"scanner",
"supplier",
"from",
"bug",
"checker",
"infos",
"(",
"iterables",
"concat",
"(",
"enabled",
"errors",
",",
"enabled",
"warnings",
",",
"disabled",
"checks",
")",
")",
";"
]
|
[
"returns",
"a",
"{"
]
| [
"return",
"all",
"checks",
"(",
")",
"filter",
"(",
"predicates",
"or",
"(",
"predicates",
"in",
"(",
"enabled",
"errors",
")",
",",
"predicates",
"in",
"(",
"enabled",
"warnings",
")",
")",
")",
";"
]
|
[
"returns",
"a",
"{"
]
| [
"return",
"all",
"checks",
"(",
")",
"filter",
"(",
"predicates",
"in",
"(",
"enabled",
"errors",
")",
")",
";"
]
|
[
"registers",
"a",
"task",
"executor",
"factory"
]
| [
"task",
"executor",
"factory",
"registry",
"put",
"(",
"task",
"type",
",",
"task",
"executor",
"factory",
")",
";"
]
|
[
"returns",
"all",
"registered",
"task",
"types"
]
| [
"return",
"task",
"executor",
"factory",
"registry",
"key",
"set",
"(",
")",
";"
]
|
[
"returns",
"the",
"task",
"executor",
"factory",
"for",
"the",
"given",
"task",
"type"
]
| [
"return",
"task",
"executor",
"factory",
"registry",
"get",
"(",
"task",
"type",
")",
";"
]
|
[
"results",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/"
]
| [
"check",
"query",
"ok",
"(",
")",
";",
"return",
"command",
"context",
"get",
"event",
"subscription",
"entity",
"manager",
"(",
")",
"find",
"event",
"subscription",
"count",
"by",
"query",
"criteria",
"(",
"this",
")",
";"
]
|
[
"getters",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/"
]
| [
"return",
"event",
"subscription",
"id",
";"
]
|
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"thing",
"type",
"to",
"deprecate",
"<",
"/",
"p",
">"
]
| [
"set",
"thing",
"type",
"name",
"(",
"thing",
"type",
"name",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"whether",
"to",
"undeprecate",
"a",
"deprecated",
"thing",
"type",
"if",
"<",
"b",
">",
"true",
"<",
"/",
"b",
">",
"the",
"thing",
"type",
"will",
"not",
"be",
"deprecated",
"anymore",
"and",
"you",
"can",
"associate",
"it",
"with",
"things",
"<",
"/",
"p",
">"
]
| [
"this",
"undo",
"deprecate",
"=",
"undo",
"deprecate",
";"
]
|
[
"<",
"p",
">",
"whether",
"to",
"undeprecate",
"a",
"deprecated",
"thing",
"type",
"if",
"<",
"b",
">",
"true",
"<",
"/",
"b",
">",
"the",
"thing",
"type",
"will",
"not",
"be",
"deprecated",
"anymore",
"and",
"you",
"can",
"associate",
"it",
"with",
"things",
"<",
"/",
"p",
">"
]
| [
"return",
"this",
"undo",
"deprecate",
";"
]
|
[
"<",
"p",
">",
"whether",
"to",
"undeprecate",
"a",
"deprecated",
"thing",
"type",
"if",
"<",
"b",
">",
"true",
"<",
"/",
"b",
">",
"the",
"thing",
"type",
"will",
"not",
"be",
"deprecated",
"anymore",
"and",
"you",
"can",
"associate",
"it",
"with",
"things",
"<",
"/",
"p",
">"
]
| [
"set",
"undo",
"deprecate",
"(",
"undo",
"deprecate",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"whether",
"to",
"undeprecate",
"a",
"deprecated",
"thing",
"type",
"if",
"<",
"b",
">",
"true",
"<",
"/",
"b",
">",
"the",
"thing",
"type",
"will",
"not",
"be",
"deprecated",
"anymore",
"and",
"you",
"can",
"associate",
"it",
"with",
"things",
"<",
"/",
"p",
">"
]
| [
"return",
"this",
"undo",
"deprecate",
";"
]
|
[
"get",
"physical",
"source"
]
| [
"return",
"source",
";"
]
|
[
"configuration",
"of",
"the",
"logical",
"databus",
"sources",
"available",
"in",
"the",
"physical",
"database"
]
| [
"return",
"sources",
";"
]
|
[
"db",
"poll",
"and",
"error",
"retries",
"configuration"
]
| [
"return",
"retries",
";"
]
|
[
"resets",
"all",
"preferences",
"created",
"by",
"this",
"class",
"should",
"only",
"be",
"used",
"for",
"debug",
"purposes"
]
| [
"if",
"(",
"build",
"config",
"debug",
")",
"{",
"validate",
"not",
"null",
"(",
"c",
")",
";",
"shared",
"preferences",
"editor",
"editor",
"=",
"preference",
"manager",
"get",
"default",
"shared",
"preferences",
"(",
"c",
"get",
"application",
"context",
"(",
")",
")",
"edit",
"(",
")",
";",
"editor",
"put",
"boolean",
"(",
"pref",
"has",
"queried",
"sp",
"apps",
",",
"false",
")",
";",
"editor",
"commit",
"(",
")",
";",
"}"
]
|
[
"<",
"p",
">",
"a",
"collection",
"of",
"message",
"objects",
"<",
"/",
"p",
">"
]
| [
"return",
"messages",
";"
]
|
[
"<",
"p",
">",
"a",
"collection",
"of",
"message",
"objects",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"messages",
"=",
"=",
"null",
")",
"{",
"this",
"messages",
"=",
"null",
";",
"return",
";",
"}",
"this",
"messages",
"=",
"new",
"java",
"util",
"array",
"list",
"<",
"message",
">",
"(",
"messages",
")",
";"
]
|
[
"<",
"p",
">",
"an",
"array",
"of",
"objects",
"each",
"of",
"which",
"provides",
"a",
"message",
"string",
"and",
"its",
"type",
"you",
"can",
"specify",
"the",
"message",
"string",
"in",
"plain",
"text",
"or",
"in",
"speech",
"synthesis",
"markup",
"language",
"(",
"ssml",
")",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"messages",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"messages",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"this",
"messages",
"=",
"=",
"null",
")",
"{",
"set",
"messages",
"(",
"new",
"java",
"util",
"array",
"list",
"<",
"message",
">",
"(",
"messages",
"length",
")",
")",
";",
"}",
"for",
"(",
"message",
"ele",
":",
"messages",
")",
"{",
"this",
"messages",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"an",
"array",
"of",
"objects",
"each",
"of",
"which",
"provides",
"a",
"message",
"string",
"and",
"its",
"type",
"you",
"can",
"specify",
"the",
"message",
"string",
"in",
"plain",
"text",
"or",
"in",
"speech",
"synthesis",
"markup",
"language",
"(",
"ssml",
")",
"<",
"/",
"p",
">"
]
| [
"set",
"messages",
"(",
"messages",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"maximum",
"number",
"of",
"tries",
"to",
"run",
"the",
"action",
"of",
"the",
"step",
"the",
"default",
"value",
"is",
"1",
"<",
"/",
"p",
">"
]
| [
"this",
"max",
"attempts",
"=",
"max",
"attempts",
";"
]
|
[
"<",
"p",
">",
"the",
"maximum",
"number",
"of",
"tries",
"to",
"run",
"the",
"action",
"of",
"the",
"step",
"the",
"default",
"value",
"is",
"1",
"<",
"/",
"p",
">"
]
| [
"return",
"this",
"max",
"attempts",
";"
]
|
[
"<",
"p",
">",
"the",
"number",
"of",
"times",
"to",
"prompt",
"the",
"user",
"for",
"information",
"<",
"/",
"p",
">"
]
| [
"set",
"max",
"attempts",
"(",
"max",
"attempts",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"a",
"response",
"card",
"amazon",
"lex",
"uses",
"this",
"prompt",
"at",
"runtime",
"in",
"the",
"<",
"code",
">",
"post",
"text",
"<",
"/",
"code",
">",
"api",
"response",
"it",
"substitutes",
"session",
"attributes",
"and",
"slot",
"values",
"for",
"placeholders",
"in",
"the",
"response",
"card",
"for",
"more",
"information",
"see",
"<",
"a",
">",
"ex",
"-",
"resp",
"-",
"card",
"<",
"/",
"a",
">",
"<",
"/",
"p",
">"
]
| [
"set",
"response",
"card",
"(",
"response",
"card",
")",
";",
"return",
"this",
";"
]
|
[
"get",
"the",
"current",
"fragment"
]
| [
"return",
"current",
"fragment",
";"
]
|
[
"gets",
"methods",
"that",
"match",
"the",
"given",
"name",
"and",
"arguments",
"<",
"p",
"/",
">",
"note",
"that",
"the",
"args",
"list",
"is",
"a",
"required",
"subset",
"of",
"arguments",
"for",
"returned",
"methods"
]
| [
"return",
"get",
"candidate",
"methods",
"(",
"name",
",",
"collections",
"empty",
"list",
"(",
")",
")",
";"
]
|
[
"filters",
"a",
"list",
"of",
"methods",
"to",
"those",
"that",
"take",
"the",
"given",
"set",
"of",
"arguments"
]
| [
"return",
"filter",
"methods",
"(",
"methods",
",",
"match",
"type",
",",
"collections",
"empty",
"list",
"(",
")",
")",
";"
]
|
[
"gets",
"argument",
"types",
"and",
"names",
"for",
"all",
"overloaded",
"methods",
"and",
"aliases",
"with",
"the",
"given",
"name"
]
| [
"list",
"<",
"object",
">",
"arguments",
"=",
"arguments",
"map",
"get",
"(",
"name",
")",
";",
"if",
"(",
"arguments",
"=",
"=",
"null",
")",
"{",
"if",
"(",
"aliases",
"map",
"contains",
"key",
"(",
"name",
")",
")",
"{",
"arguments",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"for",
"(",
"string",
"method",
":",
"aliases",
"map",
"get",
"(",
"name",
")",
")",
"{",
"arguments",
"add",
"all",
"(",
"arguments",
"map",
"get",
"(",
"method",
")",
")",
";",
"}",
"}",
"}",
"if",
"(",
"arguments",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"name",
")",
";",
"}",
"return",
"collections",
"unmodifiable",
"list",
"(",
"arguments",
")",
";"
]
|
[
"get",
"missing",
"properties"
]
| [
"final",
"list",
"<",
"object",
">",
"args",
"with",
"types",
"=",
"get",
"arguments",
"(",
"method",
"name",
")",
";",
"final",
"set",
"<",
"string",
">",
"missing",
"args",
"=",
"new",
"hash",
"set",
"<",
">",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"1",
";",
"i",
"<",
"args",
"with",
"types",
"size",
"(",
")",
";",
"i",
"+",
"=",
"2",
")",
"{",
"final",
"string",
"name",
"=",
"(",
"string",
")",
"args",
"with",
"types",
"get",
"(",
"i",
")",
";",
"if",
"(",
"!",
"arg",
"names",
"contains",
"(",
"name",
")",
")",
"{",
"missing",
"args",
"add",
"(",
"name",
")",
";",
"}",
"}",
"return",
"missing",
"args",
";"
]
|
[
"returns",
"alias",
"map"
]
| [
"return",
"aliases",
"map",
";"
]
|
[
"returns",
"argument",
"types",
"and",
"names",
"used",
"by",
"all",
"methods"
]
| [
"return",
"valid",
"arguments",
";"
]
|
[
"returns",
"argument",
"names",
"that",
"can",
"be",
"set",
"to",
"null",
"if",
"not",
"specified"
]
| [
"return",
"nullable",
"arguments",
";"
]
|
[
"get",
"the",
"type",
"for",
"the",
"given",
"argument",
"name"
]
| [
"final",
"class",
"<",
"?",
">",
"type",
"=",
"valid",
"arguments",
"get",
"(",
"arg",
"name",
")",
";",
"if",
"(",
"type",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"arg",
"name",
")",
";",
"}",
"return",
"type",
";"
]
|
[
"<",
"p",
">",
"the",
"name",
"of",
"an",
"amazon",
"s3",
"bucket",
"where",
"execution",
"logs",
"are",
"stored",
"<",
"/",
"p",
">"
]
| [
"set",
"s",
"3",
"bucket",
"name",
"(",
"s",
"3",
"bucket",
"name",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"(",
"optional",
")",
"the",
"amazon",
"s3",
"bucket",
"subfolder",
"<",
"/",
"p",
">"
]
| [
"set",
"s",
"3",
"key",
"prefix",
"(",
"s",
"3",
"key",
"prefix",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"region",
"where",
"the",
"amazon",
"s3",
"bucket",
"is",
"located",
"<",
"/",
"p",
">"
]
| [
"set",
"s",
"3",
"region",
"(",
"s",
"3",
"region",
")",
";",
"return",
"this",
";"
]
|
[
"http",
":",
"/",
"/",
"sourceforge",
"net",
"/",
"tracker",
"/",
"index",
"php",
"?",
"func",
"=",
"detail",
"&",
"aid",
"=",
"3513432",
"&",
"group",
"id",
"=",
"280608",
"&",
"atid",
"=",
"2377440"
]
| [
"assert",
"equals",
"(",
"1",
",",
"insert",
"(",
"survey",
")",
"set",
"(",
"survey",
"id",
",",
"5",
")",
"set",
"(",
"survey",
"name",
",",
"(",
"string",
")",
"null",
")",
"execute",
"(",
")",
")",
";"
]
|
[
"<",
"code",
">",
"string",
"device",
"id",
"=",
"1",
";",
"<",
"/",
"code",
">"
]
| [
"java",
"lang",
"object",
"ref",
"=",
"device",
"id",
";",
"if",
"(",
"ref",
"instanceof",
"java",
"lang",
"string",
")",
"{",
"return",
"(",
"java",
"lang",
"string",
")",
"ref",
";",
"}",
"else",
"{",
"com",
"google",
"protobuf",
"byte",
"string",
"bs",
"=",
"(",
"com",
"google",
"protobuf",
"byte",
"string",
")",
"ref",
";",
"java",
"lang",
"string",
"s",
"=",
"bs",
"to",
"string",
"utf",
"8",
"(",
")",
";",
"device",
"id",
"=",
"s",
";",
"return",
"s",
";",
"}"
]
|
[
"<",
"code",
">",
"string",
"device",
"id",
"=",
"1",
";",
"<",
"/",
"code",
">"
]
| [
"java",
"lang",
"object",
"ref",
"=",
"device",
"id",
";",
"if",
"(",
"ref",
"instanceof",
"java",
"lang",
"string",
")",
"{",
"com",
"google",
"protobuf",
"byte",
"string",
"b",
"=",
"com",
"google",
"protobuf",
"byte",
"string",
"copy",
"from",
"utf",
"8",
"(",
"(",
"java",
"lang",
"string",
")",
"ref",
")",
";",
"device",
"id",
"=",
"b",
";",
"return",
"b",
";",
"}",
"else",
"{",
"return",
"(",
"com",
"google",
"protobuf",
"byte",
"string",
")",
"ref",
";",
"}"
]
|
[
"returns",
"{"
]
| [
"file",
"system",
"file",
"system",
"=",
"file",
"system",
"get",
"(",
"cache",
",",
"conf",
")",
";",
"return",
"file",
"system",
"get",
"file",
"status",
"(",
"new",
"path",
"(",
"cache",
"get",
"path",
"(",
")",
")",
")",
";"
]
|
[
"returns",
"mtime",
"of",
"a",
"given",
"cache",
"file",
"on",
"hdfs",
"internal",
"to",
"map",
"reduce"
]
| [
"return",
"get",
"file",
"status",
"(",
"conf",
",",
"cache",
")",
"get",
"modification",
"time",
"(",
")",
";"
]
|
[
"this",
"is",
"to",
"check",
"the",
"timestamp",
"of",
"the",
"archives",
"to",
"be",
"localized",
"used",
"by",
"internal",
"map",
"reduce",
"code"
]
| [
"conf",
"set",
"(",
"cache",
"archives",
"timestamps",
",",
"timestamps",
")",
";"
]
|
[
"this",
"is",
"to",
"check",
"the",
"timestamp",
"of",
"the",
"files",
"to",
"be",
"localized",
"used",
"by",
"internal",
"map",
"reduce",
"code"
]
| [
"conf",
"set",
"(",
"cache",
"files",
"timestamps",
",",
"timestamps",
")",
";"
]
|
[
"set",
"the",
"conf",
"to",
"contain",
"the",
"location",
"for",
"localized",
"archives",
"used",
"by",
"internal",
"distributed",
"cache",
"code"
]
| [
"conf",
"set",
"(",
"cache",
"localarchives",
",",
"str",
")",
";"
]
|
[
"set",
"the",
"conf",
"to",
"contain",
"the",
"location",
"for",
"localized",
"files",
"used",
"by",
"internal",
"distributed",
"cache",
"code"
]
| [
"conf",
"set",
"(",
"cache",
"localfiles",
",",
"str",
")",
";"
]
|
[
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"common",
"methods",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"/",
"/"
]
| [
"if",
"(",
"this",
"=",
"=",
"o",
")",
"return",
"true",
";",
"if",
"(",
"!",
"(",
"o",
"instanceof",
"monetary",
"amount",
")",
")",
"return",
"false",
";",
"final",
"monetary",
"amount",
"monetary",
"amount",
"=",
"(",
"monetary",
"amount",
")",
"o",
";",
"if",
"(",
"!",
"currency",
"equals",
"(",
"monetary",
"amount",
"currency",
")",
")",
"return",
"false",
";",
"if",
"(",
"!",
"value",
"equals",
"(",
"monetary",
"amount",
"value",
")",
")",
"return",
"false",
";",
"return",
"true",
";"
]
|
[
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"business",
"methods",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"/",
"/"
]
| [
"return",
"new",
"monetary",
"amount",
"(",
"new",
"big",
"decimal",
"(",
"amount",
")",
",",
"currency",
"get",
"instance",
"(",
"currency",
"code",
")",
")",
";"
]
|
[
"returns",
"the",
"current",
"time",
"as",
"string",
"for",
"insertion",
"into",
"log",
"messages"
]
| [
"return",
"instant",
"now",
"(",
")",
"to",
"string",
"(",
")",
";"
]
|
[
"use",
"logging"
]
| [
"return",
"region",
"info",
"pretty",
"print",
"(",
"encoded",
"region",
"name",
")",
";"
]
|
[
"make",
"a",
"region",
"name",
"of",
"passed",
"parameters"
]
| [
"return",
"region",
"info",
"create",
"region",
"name",
"(",
"table",
"name",
",",
"start",
"key",
",",
"long",
"to",
"string",
"(",
"regionid",
")",
",",
"new",
"format",
")",
";"
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.