docstring_tokens list | code_tokens list |
|---|---|
[
"wrap",
"the",
"given",
"collector",
"in",
"order",
"to",
"add",
"assertions"
] | [
"if",
"(",
"in",
"instanceof",
"asserting",
"collector",
")",
"{",
"return",
"in",
";",
"}",
"return",
"new",
"asserting",
"collector",
"(",
"in",
")",
";"
] |
[
"init",
"data"
] | [
"db",
"manager",
"=",
"context",
"get",
"bean",
"(",
"manager",
"class",
")",
";"
] |
[
"create",
"temp",
"capsule",
"test",
"need"
] | [
"witness",
"capsule",
"owner",
"witness",
"first",
"capsule",
"=",
"new",
"witness",
"capsule",
"(",
"byte",
"string",
"copy",
"from",
"(",
"byte",
"array",
"from",
"hex",
"string",
"(",
"owner",
"address",
"first",
")",
")",
",",
"10",
"000",
"000l",
",... |
[
"/",
"*",
"two",
"same",
"proposal",
"can",
"work"
] | [
"db",
"manager",
"get",
"dynamic",
"properties",
"store",
"(",
")",
"save",
"remove",
"the",
"power",
"of",
"the",
"gr",
"(",
"0l",
")",
";",
"hash",
"map",
"<",
"long",
",",
"long",
">",
"paras",
"=",
"new",
"hash",
"map",
"<",
">",
"(",
")",
";... |
[
"<",
"p",
">",
"identifier",
"of",
"the",
"shared",
"directory",
"in",
"the",
"directory",
"consumer",
"account",
"this",
"identifier",
"is",
"different",
"for",
"each",
"directory",
"owner",
"account",
"<",
"/",
"p",
">"
] | [
"this",
"shared",
"directory",
"id",
"=",
"shared",
"directory",
"id",
";"
] |
[
"<",
"p",
">",
"identifier",
"of",
"the",
"shared",
"directory",
"in",
"the",
"directory",
"consumer",
"account",
"this",
"identifier",
"is",
"different",
"for",
"each",
"directory",
"owner",
"account",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"shared",
"directory",
"id",
";"
] |
[
"<",
"p",
">",
"identifier",
"of",
"the",
"directory",
"stored",
"in",
"the",
"directory",
"consumer",
"account",
"that",
"is",
"to",
"be",
"unshared",
"from",
"the",
"specified",
"directory",
"(",
"<",
"code",
">",
"directory",
"id",
"<",
"/",
"code",
"... | [
"set",
"shared",
"directory",
"id",
"(",
"shared",
"directory",
"id",
")",
";",
"return",
"this",
";"
] |
[
"the",
"document",
"types",
"to",
"execute",
"the",
"search",
"against",
"defaults",
"to",
"be",
"executed",
"against",
"all",
"types"
] | [
"return",
"types",
";"
] |
[
"<",
"p",
">",
"one",
"or",
"more",
"response",
"headers",
"that",
"you",
"want",
"users",
"to",
"be",
"able",
"to",
"access",
"from",
"their",
"applications",
"(",
"for",
"example",
"from",
"a",
"java",
"script",
"<",
"code",
">",
"x",
"m",
"l",
"ht... | [
"return",
"allowed",
"origins",
";"
] |
[
"<",
"p",
">",
"one",
"or",
"more",
"response",
"headers",
"that",
"you",
"want",
"users",
"to",
"be",
"able",
"to",
"access",
"from",
"their",
"applications",
"(",
"for",
"example",
"from",
"a",
"java",
"script",
"<",
"code",
">",
"x",
"m",
"l",
"ht... | [
"if",
"(",
"allowed",
"origins",
"=",
"=",
"null",
")",
"{",
"this",
"allowed",
"origins",
"=",
"null",
";",
"return",
";",
"}",
"this",
"allowed",
"origins",
"=",
"new",
"java",
"util",
"array",
"list",
"<",
"string",
">",
"(",
"allowed",
"origins",
... |
[
"<",
"p",
">",
"one",
"or",
"more",
"response",
"headers",
"that",
"you",
"want",
"users",
"to",
"be",
"able",
"to",
"access",
"from",
"their",
"applications",
"(",
"for",
"example",
"from",
"a",
"java",
"script",
"<",
"code",
">",
"x",
"m",
"l",
"ht... | [
"if",
"(",
"this",
"allowed",
"origins",
"=",
"=",
"null",
")",
"{",
"set",
"allowed",
"origins",
"(",
"new",
"java",
"util",
"array",
"list",
"<",
"string",
">",
"(",
"allowed",
"origins",
"length",
")",
")",
";",
"}",
"for",
"(",
"string",
"ele",
... |
[
"<",
"p",
">",
"one",
"or",
"more",
"response",
"headers",
"that",
"you",
"want",
"users",
"to",
"be",
"able",
"to",
"access",
"from",
"their",
"applications",
"(",
"for",
"example",
"from",
"a",
"java",
"script",
"<",
"code",
">",
"x",
"m",
"l",
"ht... | [
"set",
"allowed",
"origins",
"(",
"allowed",
"origins",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"identifies",
"an",
"http",
"method",
"that",
"the",
"origin",
"that",
"is",
"specified",
"in",
"the",
"rule",
"is",
"allowed",
"to",
"execute",
"<",
"/",
"p",
">",
"<",
"p",
">",
"each",
"cors",
"rule",
"must",
"contain",
"at",
"least... | [
"return",
"allowed",
"methods",
";"
] |
[
"<",
"p",
">",
"identifies",
"an",
"http",
"method",
"that",
"the",
"origin",
"that",
"is",
"specified",
"in",
"the",
"rule",
"is",
"allowed",
"to",
"execute",
"<",
"/",
"p",
">",
"<",
"p",
">",
"each",
"cors",
"rule",
"must",
"contain",
"at",
"least... | [
"if",
"(",
"allowed",
"methods",
"=",
"=",
"null",
")",
"{",
"this",
"allowed",
"methods",
"=",
"null",
";",
"return",
";",
"}",
"this",
"allowed",
"methods",
"=",
"new",
"java",
"util",
"array",
"list",
"<",
"string",
">",
"(",
"allowed",
"methods",
... |
[
"<",
"p",
">",
"identifies",
"an",
"http",
"method",
"that",
"the",
"origin",
"that",
"is",
"specified",
"in",
"the",
"rule",
"is",
"allowed",
"to",
"execute",
"<",
"/",
"p",
">",
"<",
"p",
">",
"each",
"cors",
"rule",
"must",
"contain",
"at",
"least... | [
"if",
"(",
"this",
"allowed",
"methods",
"=",
"=",
"null",
")",
"{",
"set",
"allowed",
"methods",
"(",
"new",
"java",
"util",
"array",
"list",
"<",
"string",
">",
"(",
"allowed",
"methods",
"length",
")",
")",
";",
"}",
"for",
"(",
"string",
"ele",
... |
[
"<",
"p",
">",
"identifies",
"an",
"http",
"method",
"that",
"the",
"origin",
"that",
"is",
"specified",
"in",
"the",
"rule",
"is",
"allowed",
"to",
"execute",
"<",
"/",
"p",
">",
"<",
"p",
">",
"each",
"cors",
"rule",
"must",
"contain",
"at",
"least... | [
"set",
"allowed",
"methods",
"(",
"allowed",
"methods",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"identifies",
"an",
"http",
"method",
"that",
"the",
"origin",
"that",
"is",
"specified",
"in",
"the",
"rule",
"is",
"allowed",
"to",
"execute",
"<",
"/",
"p",
">",
"<",
"p",
">",
"each",
"cors",
"rule",
"must",
"contain",
"at",
"least... | [
"java",
"util",
"array",
"list",
"<",
"string",
">",
"allowed",
"methods",
"copy",
"=",
"new",
"java",
"util",
"array",
"list",
"<",
"string",
">",
"(",
"allowed",
"methods",
"length",
")",
";",
"for",
"(",
"method",
"name",
"value",
":",
"allowed",
"m... |
[
"<",
"p",
">",
"specifies",
"which",
"headers",
"are",
"allowed",
"in",
"a",
"preflight",
"<",
"code",
">",
"options",
"<",
"/",
"code",
">",
"request",
"through",
"the",
"<",
"code",
">",
"access",
"-",
"control",
"-",
"request",
"-",
"headers",
"<",
... | [
"return",
"allowed",
"headers",
";"
] |
[
"<",
"p",
">",
"specifies",
"which",
"headers",
"are",
"allowed",
"in",
"a",
"preflight",
"<",
"code",
">",
"options",
"<",
"/",
"code",
">",
"request",
"through",
"the",
"<",
"code",
">",
"access",
"-",
"control",
"-",
"request",
"-",
"headers",
"<",
... | [
"if",
"(",
"allowed",
"headers",
"=",
"=",
"null",
")",
"{",
"this",
"allowed",
"headers",
"=",
"null",
";",
"return",
";",
"}",
"this",
"allowed",
"headers",
"=",
"new",
"java",
"util",
"array",
"list",
"<",
"string",
">",
"(",
"allowed",
"headers",
... |
[
"<",
"p",
">",
"specifies",
"which",
"headers",
"are",
"allowed",
"in",
"a",
"preflight",
"<",
"code",
">",
"options",
"<",
"/",
"code",
">",
"request",
"through",
"the",
"<",
"code",
">",
"access",
"-",
"control",
"-",
"request",
"-",
"headers",
"<",
... | [
"if",
"(",
"this",
"allowed",
"headers",
"=",
"=",
"null",
")",
"{",
"set",
"allowed",
"headers",
"(",
"new",
"java",
"util",
"array",
"list",
"<",
"string",
">",
"(",
"allowed",
"headers",
"length",
")",
")",
";",
"}",
"for",
"(",
"string",
"ele",
... |
[
"<",
"p",
">",
"specifies",
"which",
"headers",
"are",
"allowed",
"in",
"a",
"preflight",
"<",
"code",
">",
"options",
"<",
"/",
"code",
">",
"request",
"through",
"the",
"<",
"code",
">",
"access",
"-",
"control",
"-",
"request",
"-",
"headers",
"<",
... | [
"set",
"allowed",
"headers",
"(",
"allowed",
"headers",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"time",
"in",
"seconds",
"that",
"your",
"browser",
"caches",
"the",
"preflight",
"response",
"for",
"the",
"specified",
"resource",
"<",
"/",
"p",
">",
"<",
"p",
">",
"a",
"cors",
"rule",
"can",
"have",
"only",
"one",
"<",
"cod... | [
"this",
"max",
"age",
"seconds",
"=",
"max",
"age",
"seconds",
";"
] |
[
"<",
"p",
">",
"the",
"time",
"in",
"seconds",
"that",
"your",
"browser",
"caches",
"the",
"preflight",
"response",
"for",
"the",
"specified",
"resource",
"<",
"/",
"p",
">",
"<",
"p",
">",
"a",
"cors",
"rule",
"can",
"have",
"only",
"one",
"<",
"cod... | [
"return",
"this",
"max",
"age",
"seconds",
";"
] |
[
"<",
"p",
">",
"the",
"time",
"in",
"seconds",
"that",
"your",
"browser",
"caches",
"the",
"preflight",
"response",
"for",
"the",
"specified",
"resource",
"<",
"/",
"p",
">",
"<",
"p",
">",
"a",
"cors",
"rule",
"can",
"have",
"only",
"one",
"<",
"cod... | [
"set",
"max",
"age",
"seconds",
"(",
"max",
"age",
"seconds",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"one",
"or",
"more",
"headers",
"in",
"the",
"response",
"that",
"you",
"want",
"users",
"to",
"be",
"able",
"to",
"access",
"from",
"their",
"applications",
"(",
"for",
"example",
"from",
"a",
"java",
"script",
"<",
"code",
">",
"x",
... | [
"return",
"expose",
"headers",
";"
] |
[
"<",
"p",
">",
"one",
"or",
"more",
"headers",
"in",
"the",
"response",
"that",
"you",
"want",
"users",
"to",
"be",
"able",
"to",
"access",
"from",
"their",
"applications",
"(",
"for",
"example",
"from",
"a",
"java",
"script",
"<",
"code",
">",
"x",
... | [
"if",
"(",
"expose",
"headers",
"=",
"=",
"null",
")",
"{",
"this",
"expose",
"headers",
"=",
"null",
";",
"return",
";",
"}",
"this",
"expose",
"headers",
"=",
"new",
"java",
"util",
"array",
"list",
"<",
"string",
">",
"(",
"expose",
"headers",
")"... |
[
"<",
"p",
">",
"one",
"or",
"more",
"headers",
"in",
"the",
"response",
"that",
"you",
"want",
"users",
"to",
"be",
"able",
"to",
"access",
"from",
"their",
"applications",
"(",
"for",
"example",
"from",
"a",
"java",
"script",
"<",
"code",
">",
"x",
... | [
"if",
"(",
"this",
"expose",
"headers",
"=",
"=",
"null",
")",
"{",
"set",
"expose",
"headers",
"(",
"new",
"java",
"util",
"array",
"list",
"<",
"string",
">",
"(",
"expose",
"headers",
"length",
")",
")",
";",
"}",
"for",
"(",
"string",
"ele",
":... |
[
"<",
"p",
">",
"one",
"or",
"more",
"headers",
"in",
"the",
"response",
"that",
"you",
"want",
"users",
"to",
"be",
"able",
"to",
"access",
"from",
"their",
"applications",
"(",
"for",
"example",
"from",
"a",
"java",
"script",
"<",
"code",
">",
"x",
... | [
"set",
"expose",
"headers",
"(",
"expose",
"headers",
")",
";",
"return",
"this",
";"
] |
[
"returns",
"true",
"if",
"latitude",
"is",
"actually",
"a",
"valid",
"latitude",
"value"
] | [
"if",
"(",
"double",
"is",
"na",
"n",
"(",
"latitude",
")",
"|",
"|",
"double",
"is",
"infinite",
"(",
"latitude",
")",
"|",
"|",
"latitude",
"<",
"geo",
"utils",
"min",
"lat",
"|",
"|",
"latitude",
">",
"geo",
"utils",
"max",
"lat",
")",
"{",
"r... |
[
"returns",
"true",
"if",
"longitude",
"is",
"actually",
"a",
"valid",
"longitude",
"value"
] | [
"if",
"(",
"double",
"is",
"na",
"n",
"(",
"longitude",
")",
"|",
"|",
"double",
"is",
"infinite",
"(",
"longitude",
")",
"|",
"|",
"longitude",
"<",
"geo",
"utils",
"min",
"lon",
"|",
"|",
"longitude",
">",
"geo",
"utils",
"max",
"lon",
")",
"{",
... |
[
"calculate",
"the",
"width",
"(",
"in",
"meters",
")",
"of",
"quadtree",
"cells",
"at",
"a",
"specific",
"level"
] | [
"assert",
"level",
">",
"=",
"0",
";",
"return",
"earth",
"equator",
"/",
"(",
"1l",
"<",
"<",
"level",
")",
";"
] |
[
"calculate",
"the",
"height",
"(",
"in",
"meters",
")",
"of",
"quadtree",
"cells",
"at",
"a",
"specific",
"level"
] | [
"assert",
"level",
">",
"=",
"0",
";",
"return",
"earth",
"polar",
"distance",
"/",
"(",
"1l",
"<",
"<",
"level",
")",
";"
] |
[
"calculate",
"the",
"size",
"(",
"in",
"meters",
")",
"of",
"geohash",
"cells",
"at",
"a",
"specific",
"level"
] | [
"assert",
"level",
">",
"=",
"0",
";",
"final",
"double",
"w",
"=",
"geo",
"hash",
"cell",
"width",
"(",
"level",
")",
";",
"final",
"double",
"h",
"=",
"geo",
"hash",
"cell",
"height",
"(",
"level",
")",
";",
"return",
"math",
"sqrt",
"(",
"w",
... |
[
"calculate",
"the",
"size",
"(",
"in",
"meters",
")",
"of",
"quadtree",
"cells",
"at",
"a",
"specific",
"level"
] | [
"assert",
"level",
">",
"=",
"0",
";",
"return",
"math",
"sqrt",
"(",
"earth",
"polar",
"distance",
"*",
"earth",
"polar",
"distance",
"+",
"earth",
"equator",
"*",
"earth",
"equator",
")",
"/",
"(",
"1l",
"<",
"<",
"level",
")",
";"
] |
[
"calculate",
"the",
"number",
"of",
"levels",
"needed",
"for",
"a",
"specific",
"precision",
"quad",
"tree",
"cells",
"will",
"not",
"exceed",
"the",
"specified",
"size",
"(",
"diagonal",
")",
"of",
"the",
"precision"
] | [
"return",
"quad",
"tree",
"levels",
"for",
"precision",
"(",
"distance",
"unit",
"meters",
"parse",
"(",
"distance",
",",
"distance",
"unit",
"default",
")",
")",
";"
] |
[
"calculate",
"the",
"number",
"of",
"levels",
"needed",
"for",
"a",
"specific",
"precision",
"geo",
"hash",
"cells",
"will",
"not",
"exceed",
"the",
"specified",
"size",
"(",
"diagonal",
")",
"of",
"the",
"precision"
] | [
"return",
"geo",
"hash",
"levels",
"for",
"precision",
"(",
"distance",
"unit",
"meters",
"parse",
"(",
"distance",
",",
"distance",
"unit",
"default",
")",
")",
";"
] |
[
"normalize",
"longitude",
"to",
"lie",
"within",
"the",
"-",
"180",
"(",
"exclusive",
")",
"to",
"180",
"(",
"inclusive",
")",
"range"
] | [
"return",
"centered",
"modulus",
"(",
"lon",
",",
"360",
")",
";"
] |
[
"normalize",
"latitude",
"to",
"lie",
"within",
"the",
"-",
"90",
"to",
"90",
"(",
"both",
"inclusive",
")",
"range",
"<",
"p",
">",
"note",
":",
"you",
"should",
"not",
"normalize",
"longitude",
"and",
"latitude",
"separately",
"because",
"when",
"normali... | [
"lat",
"=",
"centered",
"modulus",
"(",
"lat",
",",
"360",
")",
";",
"if",
"(",
"lat",
"<",
"-",
"90",
")",
"{",
"lat",
"=",
"-",
"180",
"-",
"lat",
";",
"}",
"else",
"if",
"(",
"lat",
">",
"90",
")",
"{",
"lat",
"=",
"180",
"-",
"lat",
"... |
[
"normalize",
"the",
"geo",
"{",
"@",
"code",
"point",
"}",
"for",
"its",
"coordinates",
"to",
"lie",
"within",
"their",
"respective",
"normalized",
"ranges",
"<",
"p",
">",
"note",
":",
"a",
"shift",
"of",
"180",
"&",
"deg",
";",
"is",
"applied",
"in",... | [
"normalize",
"point",
"(",
"point",
",",
"true",
",",
"true",
")",
";"
] |
[
"normalize",
"the",
"geo",
"{",
"@",
"code",
"point",
"}",
"for",
"the",
"given",
"coordinates",
"to",
"lie",
"within",
"their",
"respective",
"normalized",
"ranges",
"<",
"p",
">",
"you",
"can",
"control",
"which",
"coordinate",
"gets",
"normalized",
"with"... | [
"double",
"[",
"]",
"pt",
"=",
"{",
"point",
"lon",
"(",
")",
",",
"point",
"lat",
"(",
")",
"}",
";",
"normalize",
"point",
"(",
"pt",
",",
"norm",
"lon",
",",
"norm",
"lat",
")",
";",
"point",
"reset",
"(",
"pt",
"[",
"1",
"]",
",",
"pt",
... |
[
"parse",
"a",
"{",
"@",
"link",
"geo",
"point",
"}",
"with",
"a",
"{",
"@",
"link",
"x",
"content",
"parser",
"}",
":"
] | [
"return",
"parse",
"geo",
"point",
"(",
"parser",
",",
"new",
"geo",
"point",
"(",
")",
")",
";"
] |
[
"parse",
"a",
"geopoint",
"represented",
"as",
"an",
"object",
"string",
"or",
"an",
"array",
"if",
"the",
"geopoint",
"is",
"represented",
"as",
"a",
"geohash",
"the",
"left",
"bottom",
"corner",
"of",
"the",
"geohash",
"cell",
"is",
"used",
"as",
"the",
... | [
"return",
"parse",
"geo",
"point",
"(",
"parser",
",",
"point",
",",
"ignore",
"z",
"value",
",",
"effective",
"point",
"bottom",
"left",
")",
";"
] |
[
"returns",
"the",
"maximum",
"distance",
"/",
"radius",
"(",
"in",
"meters",
")",
"from",
"the",
"point",
"center",
"before",
"overlapping"
] | [
"if",
"(",
"math",
"abs",
"(",
"center",
"lat",
")",
"=",
"=",
"max",
"lat",
")",
"{",
"return",
"sloppy",
"math",
"haversin",
"meters",
"(",
"center",
"lat",
",",
"center",
"lon",
",",
"0",
",",
"center",
"lon",
")",
";",
"}",
"return",
"sloppy",
... |
[
"return",
"the",
"distance",
"(",
"in",
"meters",
")",
"between",
"2",
"lat",
"lon",
"geo",
"points",
"using",
"the",
"haversine",
"method",
"implemented",
"by",
"lucene"
] | [
"return",
"sloppy",
"math",
"haversin",
"meters",
"(",
"lat",
"1",
",",
"lon",
"1",
",",
"lat",
"2",
",",
"lon",
"2",
")",
";"
] |
[
"return",
"the",
"distance",
"(",
"in",
"meters",
")",
"between",
"2",
"lat",
"lon",
"geo",
"points",
"using",
"a",
"simple",
"tangential",
"plane",
"this",
"provides",
"a",
"faster",
"alternative",
"to",
"{"
] | [
"double",
"x",
"=",
"(",
"lon",
"2",
"-",
"lon",
"1",
")",
"*",
"sloppy",
"math",
"to",
"radians",
"*",
"math",
"cos",
"(",
"(",
"lat",
"2",
"+",
"lat",
"1",
")",
"/",
"2",
"0",
"*",
"sloppy",
"math",
"to",
"radians",
")",
";",
"double",
"y",... |
[
"return",
"a",
"{"
] | [
"final",
"geo",
"point",
"values",
"single",
"values",
"=",
"field",
"data",
"unwrap",
"singleton",
"(",
"geo",
"point",
"values",
")",
";",
"if",
"(",
"single",
"values",
"!",
"=",
"null",
"&",
"&",
"from",
"points",
"length",
"=",
"=",
"1",
")",
"{... |
[
"we",
"use",
"a",
"synchronized",
"block",
"to",
"protect",
"removed",
"as",
"it",
"can",
"be",
"unregistered",
"from",
"a",
"different",
"thread"
] | [
"boolean",
"unregistered",
"=",
"false",
";",
"synchronized",
"(",
"this",
")",
"{",
"if",
"(",
"!",
"removed",
")",
"{",
"removed",
"=",
"true",
";",
"unregistered",
"=",
"true",
";",
"}",
"}",
"if",
"(",
"metrics",
"!",
"=",
"null",
"&",
"&",
"un... |
[
"called",
"by",
"the",
"same",
"event",
"loop"
] | [
"return",
"removed",
";"
] |
[
"restriction",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
... | [
"this",
"restriction",
"=",
"criteria",
"builder",
"wrap",
"(",
"restriction",
")",
";"
] |
[
"restrictions",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",
"~",... | [
"return",
"restriction",
";"
] |
[
"the",
"segment",
"dimensions",
"attributes"
] | [
"this",
"dimensions",
"=",
"dimensions",
";"
] |
[
"the",
"segment",
"dimensions",
"attributes"
] | [
"return",
"this",
"dimensions",
";"
] |
[
"the",
"segment",
"dimensions",
"attributes"
] | [
"set",
"dimensions",
"(",
"dimensions",
")",
";",
"return",
"this",
";"
] |
[
"the",
"name",
"of",
"segment"
] | [
"set",
"name",
"(",
"name",
")",
";",
"return",
"this",
";"
] |
[
"a",
"segment",
"group",
"which",
"consists",
"of",
"zero",
"or",
"more",
"source",
"segments",
"plus",
"dimensions",
"that",
"are",
"applied",
"to",
"those",
"source",
"segments"
] | [
"this",
"segment",
"groups",
"=",
"segment",
"groups",
";"
] |
[
"a",
"segment",
"group",
"which",
"consists",
"of",
"zero",
"or",
"more",
"source",
"segments",
"plus",
"dimensions",
"that",
"are",
"applied",
"to",
"those",
"source",
"segments"
] | [
"return",
"this",
"segment",
"groups",
";"
] |
[
"a",
"segment",
"group",
"which",
"consists",
"of",
"zero",
"or",
"more",
"source",
"segments",
"plus",
"dimensions",
"that",
"are",
"applied",
"to",
"those",
"source",
"segments",
"your",
"request",
"can",
"only",
"include",
"one",
"segment",
"group",
"your",... | [
"set",
"segment",
"groups",
"(",
"segment",
"groups",
")",
";",
"return",
"this",
";"
] |
[
"set",
"the",
"service",
"url",
"of",
"the",
"remote",
"{"
] | [
"this",
"service",
"url",
"=",
"new",
"j",
"m",
"x",
"service",
"u",
"r",
"l",
"(",
"url",
")",
";"
] |
[
"set",
"the",
"environment",
"properties",
"used",
"to",
"construct",
"the",
"{"
] | [
"collection",
"utils",
"merge",
"properties",
"into",
"map",
"(",
"environment",
",",
"this",
"environment",
")",
";"
] |
[
"set",
"the",
"environment",
"properties",
"used",
"to",
"construct",
"the",
"{"
] | [
"if",
"(",
"environment",
"!",
"=",
"null",
")",
"{",
"this",
"environment",
"put",
"all",
"(",
"environment",
")",
";",
"}"
] |
[
"set",
"whether",
"or",
"not",
"the",
"proxy",
"should",
"connect",
"to",
"the",
"{"
] | [
"this",
"connect",
"on",
"startup",
"=",
"connect",
"on",
"startup",
";"
] |
[
"creates",
"lazy",
"proxies",
"for",
"the",
"{"
] | [
"this",
"connector",
"target",
"source",
"=",
"new",
"j",
"m",
"x",
"connector",
"lazy",
"init",
"target",
"source",
"(",
")",
";",
"target",
"source",
"connection",
"target",
"source",
"=",
"new",
"m",
"bean",
"server",
"connection",
"lazy",
"init",
"targ... |
[
"closes",
"the",
"underlying",
"{"
] | [
"if",
"(",
"this",
"connector",
"!",
"=",
"null",
"&",
"&",
"(",
"this",
"connector",
"target",
"source",
"=",
"=",
"null",
"|",
"|",
"this",
"connector",
"target",
"source",
"is",
"initialized",
"(",
")",
")",
")",
"{",
"this",
"connector",
"close",
... |
[
"description",
"of",
"test"
] | [
"instance",
"=",
"new",
"mllp",
"acknowledgement",
"timeout",
"exception",
"(",
"hl7",
"message",
"bytes",
")",
";",
"assert",
"true",
"(",
"instance",
"get",
"message",
"(",
")",
"starts",
"with",
"(",
"mllp",
"acknowledgement",
"timeout",
"exception",
"excep... |
[
"description",
"of",
"test"
] | [
"instance",
"=",
"new",
"mllp",
"acknowledgement",
"timeout",
"exception",
"(",
"hl7",
"message",
"bytes",
",",
"hl7",
"acknowledgement",
"bytes",
")",
";",
"assert",
"true",
"(",
"instance",
"get",
"message",
"(",
")",
"starts",
"with",
"(",
"mllp",
"acknow... |
[
"description",
"of",
"test"
] | [
"instance",
"=",
"new",
"mllp",
"acknowledgement",
"timeout",
"exception",
"(",
"hl7",
"message",
"bytes",
",",
"cause",
")",
";",
"assert",
"true",
"(",
"instance",
"get",
"message",
"(",
")",
"starts",
"with",
"(",
"mllp",
"acknowledgement",
"timeout",
"ex... |
[
"description",
"of",
"test"
] | [
"instance",
"=",
"new",
"mllp",
"acknowledgement",
"timeout",
"exception",
"(",
"hl7",
"message",
"bytes",
",",
"hl7",
"acknowledgement",
"bytes",
",",
"cause",
")",
";",
"assert",
"true",
"(",
"instance",
"get",
"message",
"(",
")",
"starts",
"with",
"(",
... |
[
"description",
"of",
"test"
] | [
"instance",
"=",
"new",
"mllp",
"acknowledgement",
"timeout",
"exception",
"(",
"alternate",
"exception",
"message",
",",
"hl7",
"message",
"bytes",
")",
";",
"assert",
"true",
"(",
"instance",
"get",
"message",
"(",
")",
"starts",
"with",
"(",
"alternate",
... |
[
"description",
"of",
"test"
] | [
"instance",
"=",
"new",
"mllp",
"acknowledgement",
"timeout",
"exception",
"(",
"alternate",
"exception",
"message",
",",
"hl7",
"message",
"bytes",
",",
"hl7",
"acknowledgement",
"bytes",
")",
";",
"assert",
"true",
"(",
"instance",
"get",
"message",
"(",
")"... |
[
"description",
"of",
"test"
] | [
"instance",
"=",
"new",
"mllp",
"acknowledgement",
"timeout",
"exception",
"(",
"alternate",
"exception",
"message",
",",
"hl7",
"message",
"bytes",
",",
"cause",
")",
";",
"assert",
"true",
"(",
"instance",
"get",
"message",
"(",
")",
"starts",
"with",
"(",... |
[
"description",
"of",
"test"
] | [
"instance",
"=",
"new",
"mllp",
"acknowledgement",
"timeout",
"exception",
"(",
"alternate",
"exception",
"message",
",",
"hl7",
"message",
"bytes",
",",
"hl7",
"acknowledgement",
"bytes",
",",
"cause",
")",
";",
"assert",
"true",
"(",
"instance",
"get",
"mess... |
[
"description",
"of",
"test"
] | [
"instance",
"=",
"new",
"mllp",
"acknowledgement",
"timeout",
"exception",
"(",
"alternate",
"exception",
"message",
",",
"hl7",
"message",
"bytes",
",",
"hl7",
"acknowledgement",
"bytes",
",",
"cause",
")",
";",
"assert",
"array",
"equals",
"(",
"hl7",
"ackno... |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"vault",
"<",
"/",
"p",
">"
] | [
"set",
"vault",
"name",
"(",
"vault",
"name",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"<",
"code",
">",
"account",
"id",
"<",
"/",
"code",
">",
"value",
"is",
"the",
"aws",
"account",
"id",
"of",
"the",
"account",
"that",
"owns",
"the",
"vault",
"you",
"can",
"either",
"specify",
"an",
"aws",
"account",
"id",
"... | [
"set",
"account",
"id",
"(",
"account",
"id",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"optional",
"description",
"of",
"the",
"archive",
"you",
"are",
"uploading",
"<",
"/",
"p",
">"
] | [
"set",
"archive",
"description",
"(",
"archive",
"description",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"checksum",
"for",
"the",
"<",
"code",
">",
"$",
"latest",
"<",
"/",
"code",
">",
"version",
"of",
"the",
"slot",
"type",
"that",
"you",
"want",
"to",
"publish",
"if",
"you",
"specify",
"a",
"checksum",
"and",
"the",
"<",
"code",
">"... | [
"this",
"checksum",
"=",
"checksum",
";"
] |
[
"<",
"p",
">",
"checksum",
"for",
"the",
"<",
"code",
">",
"$",
"latest",
"<",
"/",
"code",
">",
"version",
"of",
"the",
"slot",
"type",
"that",
"you",
"want",
"to",
"publish",
"if",
"you",
"specify",
"a",
"checksum",
"and",
"the",
"<",
"code",
">"... | [
"return",
"this",
"checksum",
";"
] |
[
"<",
"p",
">",
"the",
"sha256",
"tree",
"hash",
"of",
"the",
"data",
"being",
"uploaded",
"<",
"/",
"p",
">"
] | [
"set",
"checksum",
"(",
"checksum",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"job",
"data",
"either",
"archive",
"data",
"or",
"inventory",
"data",
"<",
"/",
"p",
">"
] | [
"this",
"body",
"=",
"body",
";"
] |
[
"<",
"p",
">",
"the",
"job",
"data",
"either",
"archive",
"data",
"or",
"inventory",
"data",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"body",
";"
] |
[
"<",
"p",
">",
"the",
"data",
"to",
"upload",
"<",
"/",
"p",
">"
] | [
"set",
"body",
"(",
"body",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"length",
"of",
"the",
"object",
"in",
"bytes",
"<",
"/",
"p",
">"
] | [
"this",
"content",
"length",
"=",
"content",
"length",
";"
] |
[
"<",
"p",
">",
"the",
"length",
"of",
"the",
"object",
"in",
"bytes",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"content",
"length",
";"
] |
[
"the",
"content",
"length",
"of",
"the",
"archive",
"to",
"upload"
] | [
"set",
"content",
"length",
"(",
"content",
"length",
")",
";",
"return",
"this",
";"
] |
[
"returns",
"true",
"if",
"field",
"content",
"sha",
"1s",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"return",
"this",
"content",
"sha",
"1s",
"!",
"=",
"null",
";"
] |
[
"returns",
"true",
"if",
"field",
"corresponding",
"to",
"field",
"i",
"d",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"if",
"(",
"field",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"java",
"lang",
"illegal",
"argument",
"exception",
"(",
")",
";",
"}",
"switch",
"(",
"field",
")",
"{",
"case",
"content",
"sha1s",
":",
"return",
"is",
"set",
"content",
"sha",
"1s",
... |
[
"sets",
"given",
"error",
"code",
"with",
"err",
"message",
"into",
"give",
"response"
] | [
"final",
"http",
"servlet",
"response",
"response",
"=",
"(",
"http",
"servlet",
"response",
")",
"res",
";",
"response",
"send",
"error",
"(",
"err",
"code",
",",
"msg",
")",
";"
] |
[
"{",
"@",
"link",
"animation",
"image",
"view",
"#",
"m",
"listener",
"}",
"のセット"
] | [
"m",
"listener",
"=",
"listener",
";"
] |
[
"set",
"the",
"color",
"resources",
"used",
"in",
"the",
"progress",
"animation",
"from",
"color",
"resources",
"the",
"first",
"color",
"will",
"also",
"be",
"the",
"color",
"of",
"the",
"bar",
"that",
"grows",
"in",
"response",
"to",
"a",
"user",
"swipe"... | [
"final",
"resources",
"res",
"=",
"get",
"resources",
"(",
")",
";",
"int",
"[",
"]",
"color",
"res",
"=",
"new",
"int",
"[",
"color",
"res",
"ids",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"color",
"res",
"ids",
"le... |
[
"set",
"the",
"colors",
"used",
"in",
"the",
"progress",
"animation",
"the",
"first",
"color",
"will",
"also",
"be",
"the",
"color",
"of",
"the",
"bar",
"that",
"grows",
"in",
"response",
"to",
"a",
"user",
"swipe",
"gesture"
] | [
"m",
"colors",
"=",
"colors",
";",
"if",
"(",
"m",
"progress",
"drawable",
"!",
"=",
"null",
")",
"{",
"m",
"progress",
"drawable",
"set",
"color",
"scheme",
"colors",
"(",
"colors",
")",
";",
"}"
] |
[
"update",
"the",
"background",
"color",
"of",
"the",
"circle",
"image",
"view"
] | [
"if",
"(",
"get",
"background",
"(",
")",
"instanceof",
"shape",
"drawable",
")",
"{",
"final",
"resources",
"res",
"=",
"get",
"resources",
"(",
")",
";",
"(",
"(",
"shape",
"drawable",
")",
"get",
"background",
"(",
")",
")",
"get",
"paint",
"(",
"... |
[
"<",
"p",
">",
"specify",
"one",
"or",
"more",
"<",
"a",
">",
"extended",
"key",
"usage",
"<",
"/",
"a",
">",
"extension",
"values",
"<",
"/",
"p",
">"
] | [
"return",
"extended",
"key",
"usage",
";"
] |
[
"<",
"p",
">",
"specify",
"one",
"or",
"more",
"<",
"a",
">",
"extended",
"key",
"usage",
"<",
"/",
"a",
">",
"extension",
"values",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"extended",
"key",
"usage",
"=",
"=",
"null",
")",
"{",
"this",
"extended",
"key",
"usage",
"=",
"null",
";",
"return",
";",
"}",
"this",
"extended",
"key",
"usage",
"=",
"new",
"java",
"util",
"array",
"list",
"<",
"string",
">",
"(",
"... |
[
"<",
"p",
">",
"specify",
"one",
"or",
"more",
"<",
"a",
">",
"extended",
"key",
"usage",
"<",
"/",
"a",
">",
"extension",
"values",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends... | [
"if",
"(",
"this",
"extended",
"key",
"usage",
"=",
"=",
"null",
")",
"{",
"set",
"extended",
"key",
"usage",
"(",
"new",
"java",
"util",
"array",
"list",
"<",
"string",
">",
"(",
"extended",
"key",
"usage",
"length",
")",
")",
";",
"}",
"for",
"("... |
[
"<",
"p",
">",
"specify",
"one",
"or",
"more",
"<",
"a",
">",
"extended",
"key",
"usage",
"<",
"/",
"a",
">",
"extension",
"values",
"<",
"/",
"p",
">"
] | [
"set",
"extended",
"key",
"usage",
"(",
"extended",
"key",
"usage",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"specify",
"one",
"or",
"more",
"<",
"a",
">",
"extended",
"key",
"usage",
"<",
"/",
"a",
">",
"extension",
"values",
"<",
"/",
"p",
">"
] | [
"java",
"util",
"array",
"list",
"<",
"string",
">",
"extended",
"key",
"usage",
"copy",
"=",
"new",
"java",
"util",
"array",
"list",
"<",
"string",
">",
"(",
"extended",
"key",
"usage",
"length",
")",
";",
"for",
"(",
"extended",
"key",
"usage",
"name... |
[
"<",
"p",
">",
"specify",
"one",
"or",
"more",
"<",
"a",
">",
"key",
"usage",
"<",
"/",
"a",
">",
"extension",
"values",
"<",
"/",
"p",
">"
] | [
"return",
"key",
"usage",
";"
] |
[
"<",
"p",
">",
"specify",
"one",
"or",
"more",
"<",
"a",
">",
"key",
"usage",
"<",
"/",
"a",
">",
"extension",
"values",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"key",
"usage",
"=",
"=",
"null",
")",
"{",
"this",
"key",
"usage",
"=",
"null",
";",
"return",
";",
"}",
"this",
"key",
"usage",
"=",
"new",
"java",
"util",
"array",
"list",
"<",
"string",
">",
"(",
"key",
"usage",
")",
";"
] |
[
"<",
"p",
">",
"specify",
"one",
"or",
"more",
"<",
"a",
">",
"key",
"usage",
"<",
"/",
"a",
">",
"extension",
"values",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
... | [
"if",
"(",
"this",
"key",
"usage",
"=",
"=",
"null",
")",
"{",
"set",
"key",
"usage",
"(",
"new",
"java",
"util",
"array",
"list",
"<",
"string",
">",
"(",
"key",
"usage",
"length",
")",
")",
";",
"}",
"for",
"(",
"string",
"ele",
":",
"key",
"... |
[
"<",
"p",
">",
"specify",
"one",
"or",
"more",
"<",
"a",
">",
"key",
"usage",
"<",
"/",
"a",
">",
"extension",
"values",
"<",
"/",
"p",
">"
] | [
"set",
"key",
"usage",
"(",
"key",
"usage",
")",
";",
"return",
"this",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.