docstring_tokens list | code_tokens list |
|---|---|
[
"whether",
"the",
"aspect",
"ratio",
"is",
"fixed",
"or",
"not",
";",
"true",
"fixes",
"the",
"aspect",
"ratio",
"while",
"false",
"allows",
"it",
"to",
"be",
"changed"
] | [
"return",
"m",
"crop",
"overlay",
"view",
"is",
"fix",
"aspect",
"ratio",
"(",
")",
";"
] |
[
"sets",
"whether",
"the",
"aspect",
"ratio",
"is",
"fixed",
"or",
"not",
";",
"true",
"fixes",
"the",
"aspect",
"ratio",
"while",
"false",
"allows",
"it",
"to",
"be",
"changed"
] | [
"m",
"crop",
"overlay",
"view",
"set",
"fixed",
"aspect",
"ratio",
"(",
"fix",
"aspect",
"ratio",
")",
";"
] |
[
"whether",
"the",
"image",
"should",
"be",
"flipped",
"horizontally"
] | [
"return",
"m",
"flip",
"horizontally",
";"
] |
[
"sets",
"whether",
"the",
"image",
"should",
"be",
"flipped",
"horizontally"
] | [
"if",
"(",
"m",
"flip",
"horizontally",
"!",
"=",
"flip",
"horizontally",
")",
"{",
"m",
"flip",
"horizontally",
"=",
"flip",
"horizontally",
";",
"apply",
"image",
"matrix",
"(",
"get",
"width",
"(",
")",
",",
"get",
"height",
"(",
")",
",",
"true",
... |
[
"whether",
"the",
"image",
"should",
"be",
"flipped",
"vertically"
] | [
"return",
"m",
"flip",
"vertically",
";"
] |
[
"sets",
"whether",
"the",
"image",
"should",
"be",
"flipped",
"vertically"
] | [
"if",
"(",
"m",
"flip",
"vertically",
"!",
"=",
"flip",
"vertically",
")",
"{",
"m",
"flip",
"vertically",
"=",
"flip",
"vertically",
";",
"apply",
"image",
"matrix",
"(",
"get",
"width",
"(",
")",
",",
"get",
"height",
"(",
")",
",",
"true",
",",
... |
[
"get",
"the",
"current",
"guidelines",
"option",
"set"
] | [
"return",
"m",
"crop",
"overlay",
"view",
"get",
"guidelines",
"(",
")",
";"
] |
[
"sets",
"the",
"guidelines",
"for",
"the",
"crop",
"overlay",
"view",
"to",
"be",
"either",
"on",
"off",
"or",
"to",
"show",
"when",
"resizing",
"the",
"application"
] | [
"m",
"crop",
"overlay",
"view",
"set",
"guidelines",
"(",
"guidelines",
")",
";"
] |
[
"both",
"the",
"x",
"and",
"y",
"values",
"of",
"the",
"aspect",
"ratio"
] | [
"return",
"new",
"pair",
"<",
">",
"(",
"m",
"crop",
"overlay",
"view",
"get",
"aspect",
"ratio",
"x",
"(",
")",
",",
"m",
"crop",
"overlay",
"view",
"get",
"aspect",
"ratio",
"y",
"(",
")",
")",
";"
] |
[
"sets",
"the",
"both",
"the",
"x",
"and",
"y",
"values",
"of",
"the",
"aspect",
"ratio",
"<",
"br",
">",
"sets",
"fixed",
"aspect",
"ratio",
"to",
"true"
] | [
"m",
"crop",
"overlay",
"view",
"set",
"aspect",
"ratio",
"x",
"(",
"aspect",
"ratio",
"x",
")",
";",
"m",
"crop",
"overlay",
"view",
"set",
"aspect",
"ratio",
"y",
"(",
"aspect",
"ratio",
"y",
")",
";",
"set",
"fixed",
"aspect",
"ratio",
"(",
"true"... |
[
"clears",
"set",
"aspect",
"ratio",
"values",
"and",
"sets",
"fixed",
"aspect",
"ratio",
"to",
"false"
] | [
"m",
"crop",
"overlay",
"view",
"set",
"aspect",
"ratio",
"x",
"(",
"1",
")",
";",
"m",
"crop",
"overlay",
"view",
"set",
"aspect",
"ratio",
"y",
"(",
"1",
")",
";",
"set",
"fixed",
"aspect",
"ratio",
"(",
"false",
")",
";"
] |
[
"an",
"edge",
"of",
"the",
"crop",
"window",
"will",
"snap",
"to",
"the",
"corresponding",
"edge",
"of",
"a",
"specified",
"bounding",
"box",
"when",
"the",
"crop",
"window",
"edge",
"is",
"less",
"than",
"or",
"equal",
"to",
"this",
"distance",
"(",
"in... | [
"if",
"(",
"snap",
"radius",
">",
"=",
"0",
")",
"{",
"m",
"crop",
"overlay",
"view",
"set",
"snap",
"radius",
"(",
"snap",
"radius",
")",
";",
"}"
] |
[
"if",
"to",
"show",
"progress",
"bar",
"when",
"image",
"async",
"loading",
"/",
"cropping",
"is",
"in",
"progress",
"<",
"br",
">",
"default",
":",
"true",
"disable",
"to",
"provide",
"custom",
"progress",
"bar",
"ui"
] | [
"return",
"m",
"show",
"progress",
"bar",
";"
] |
[
"if",
"to",
"show",
"progress",
"bar",
"when",
"image",
"async",
"loading",
"/",
"cropping",
"is",
"in",
"progress",
"<",
"br",
">",
"default",
":",
"true",
"disable",
"to",
"provide",
"custom",
"progress",
"bar",
"ui"
] | [
"if",
"(",
"m",
"show",
"progress",
"bar",
"!",
"=",
"show",
"progress",
"bar",
")",
"{",
"m",
"show",
"progress",
"bar",
"=",
"show",
"progress",
"bar",
";",
"set",
"progress",
"bar",
"visibility",
"(",
")",
";",
"}"
] |
[
"if",
"to",
"show",
"crop",
"overlay",
"ui",
"what",
"contains",
"the",
"crop",
"window",
"ui",
"surrounded",
"by",
"background",
"over",
"the",
"cropping",
"image",
"<",
"br",
">",
"default",
":",
"true",
"may",
"disable",
"for",
"animation",
"or",
"frame... | [
"return",
"m",
"show",
"crop",
"overlay",
";"
] |
[
"if",
"to",
"show",
"crop",
"overlay",
"ui",
"what",
"contains",
"the",
"crop",
"window",
"ui",
"surrounded",
"by",
"background",
"over",
"the",
"cropping",
"image",
"<",
"br",
">",
"default",
":",
"true",
"may",
"disable",
"for",
"animation",
"or",
"frame... | [
"if",
"(",
"m",
"show",
"crop",
"overlay",
"!",
"=",
"show",
"crop",
"overlay",
")",
"{",
"m",
"show",
"crop",
"overlay",
"=",
"show",
"crop",
"overlay",
";",
"set",
"crop",
"overlay",
"visibility",
"(",
")",
";",
"}"
] |
[
"if",
"to",
"save",
"bitmap",
"on",
"save",
"instance",
"state",
"<",
"br",
">",
"it",
"is",
"best",
"to",
"avoid",
"it",
"by",
"using",
"uri",
"in",
"setting",
"image",
"for",
"cropping",
"<",
"br",
">",
"if",
"false",
"the",
"bitmap",
"is",
"not",
... | [
"return",
"m",
"save",
"bitmap",
"to",
"instance",
"state",
";"
] |
[
"if",
"to",
"save",
"bitmap",
"on",
"save",
"instance",
"state",
"<",
"br",
">",
"it",
"is",
"best",
"to",
"avoid",
"it",
"by",
"using",
"uri",
"in",
"setting",
"image",
"for",
"cropping",
"<",
"br",
">",
"if",
"false",
"the",
"bitmap",
"is",
"not",
... | [
"m",
"save",
"bitmap",
"to",
"instance",
"state",
"=",
"save",
"bitmap",
"to",
"instance",
"state",
";"
] |
[
"returns",
"the",
"integer",
"of",
"the",
"image",
"resource"
] | [
"return",
"m",
"image",
"resource",
";"
] |
[
"get",
"the",
"uri",
"of",
"an",
"image",
"that",
"was",
"set",
"by",
"uri",
"null",
"otherwise"
] | [
"return",
"m",
"loaded",
"image",
"uri",
";"
] |
[
"gets",
"the",
"source",
"bitmap",
"s",
"dimensions",
"this",
"represents",
"the",
"largest",
"possible",
"crop",
"rectangle"
] | [
"int",
"loaded",
"sample",
"size",
"=",
"m",
"loaded",
"sample",
"size",
";",
"bitmap",
"bitmap",
"=",
"m",
"bitmap",
";",
"if",
"(",
"bitmap",
"=",
"=",
"null",
")",
"{",
"return",
"null",
";",
"}",
"int",
"org",
"width",
"=",
"bitmap",
"get",
"wi... |
[
"gets",
"the",
"crop",
"window",
"s",
"position",
"relative",
"to",
"the",
"parent",
"s",
"view",
"at",
"screen"
] | [
"if",
"(",
"m",
"crop",
"overlay",
"view",
"=",
"=",
"null",
")",
"{",
"return",
"null",
";",
"}",
"return",
"m",
"crop",
"overlay",
"view",
"get",
"crop",
"window",
"rect",
"(",
")",
";"
] |
[
"set",
"the",
"crop",
"window",
"position",
"and",
"size",
"to",
"the",
"given",
"rectangle",
"<",
"br",
">",
"image",
"to",
"crop",
"must",
"be",
"first",
"set",
"before",
"invoking",
"this",
"for",
"async",
"-",
"after",
"complete",
"callback"
] | [
"m",
"crop",
"overlay",
"view",
"set",
"initial",
"crop",
"window",
"rect",
"(",
"rect",
")",
";"
] |
[
"reset",
"crop",
"window",
"to",
"initial",
"rectangle"
] | [
"m",
"zoom",
"=",
"1",
";",
"m",
"zoom",
"offset",
"x",
"=",
"0",
";",
"m",
"zoom",
"offset",
"y",
"=",
"0",
";",
"m",
"degrees",
"rotated",
"=",
"m",
"initial",
"degrees",
"rotated",
";",
"m",
"flip",
"horizontally",
"=",
"false",
";",
"m",
"fli... |
[
"gets",
"the",
"cropped",
"image",
"based",
"on",
"the",
"current",
"crop",
"window"
] | [
"return",
"get",
"cropped",
"image",
"(",
"0",
",",
"0",
",",
"request",
"size",
"options",
"none",
")",
";"
] |
[
"gets",
"the",
"cropped",
"image",
"based",
"on",
"the",
"current",
"crop",
"window",
"<",
"br",
">",
"uses",
"{",
"@",
"link",
"request",
"size",
"options",
"#",
"resize",
"inside",
"}",
"option"
] | [
"return",
"get",
"cropped",
"image",
"(",
"req",
"width",
",",
"req",
"height",
",",
"request",
"size",
"options",
"resize",
"inside",
")",
";"
] |
[
"gets",
"the",
"cropped",
"image",
"based",
"on",
"the",
"current",
"crop",
"window",
"<",
"br",
">"
] | [
"bitmap",
"cropped",
"bitmap",
"=",
"null",
";",
"if",
"(",
"m",
"bitmap",
"!",
"=",
"null",
")",
"{",
"m",
"image",
"view",
"clear",
"animation",
"(",
")",
";",
"req",
"width",
"=",
"options",
"!",
"=",
"request",
"size",
"options",
"none",
"?",
"... |
[
"gets",
"the",
"cropped",
"image",
"based",
"on",
"the",
"current",
"crop",
"window",
"<",
"br",
">",
"the",
"result",
"will",
"be",
"invoked",
"to",
"listener",
"set",
"by",
"{"
] | [
"get",
"cropped",
"image",
"async",
"(",
"0",
",",
"0",
",",
"request",
"size",
"options",
"none",
")",
";"
] |
[
"gets",
"the",
"cropped",
"image",
"based",
"on",
"the",
"current",
"crop",
"window",
"<",
"br",
">",
"uses",
"{",
"@",
"link",
"request",
"size",
"options",
"#",
"resize",
"inside",
"}",
"option",
"<",
"br",
">",
"the",
"result",
"will",
"be",
"invoke... | [
"get",
"cropped",
"image",
"async",
"(",
"req",
"width",
",",
"req",
"height",
",",
"request",
"size",
"options",
"resize",
"inside",
")",
";"
] |
[
"save",
"the",
"cropped",
"image",
"based",
"on",
"the",
"current",
"crop",
"window",
"to",
"the",
"given",
"uri",
"<",
"br",
">",
"uses",
"jpeg",
"image",
"compression",
"with",
"90",
"compression",
"quality",
"<",
"br",
">",
"the",
"result",
"will",
"b... | [
"save",
"cropped",
"image",
"async",
"(",
"save",
"uri",
",",
"bitmap",
"compress",
"format",
"jpeg",
",",
"90",
",",
"0",
",",
"0",
",",
"request",
"size",
"options",
"none",
")",
";"
] |
[
"save",
"the",
"cropped",
"image",
"based",
"on",
"the",
"current",
"crop",
"window",
"to",
"the",
"given",
"uri",
"<",
"br",
">",
"the",
"result",
"will",
"be",
"invoked",
"to",
"listener",
"set",
"by",
"{",
"@",
"link",
"#",
"set",
"on",
"crop",
"i... | [
"save",
"cropped",
"image",
"async",
"(",
"save",
"uri",
",",
"save",
"compress",
"format",
",",
"save",
"compress",
"quality",
",",
"0",
",",
"0",
",",
"request",
"size",
"options",
"none",
")",
";"
] |
[
"save",
"the",
"cropped",
"image",
"based",
"on",
"the",
"current",
"crop",
"window",
"to",
"the",
"given",
"uri",
"<",
"br",
">",
"uses",
"{",
"@",
"link",
"request",
"size",
"options",
"#",
"resize",
"inside",
"}",
"option",
"<",
"br",
">",
"the",
... | [
"save",
"cropped",
"image",
"async",
"(",
"save",
"uri",
",",
"save",
"compress",
"format",
",",
"save",
"compress",
"quality",
",",
"req",
"width",
",",
"req",
"height",
",",
"request",
"size",
"options",
"resize",
"inside",
")",
";"
] |
[
"set",
"the",
"callback",
"t"
] | [
"m",
"on",
"crop",
"overlay",
"released",
"listener",
"=",
"listener",
";"
] |
[
"set",
"the",
"callback",
"when",
"the",
"cropping",
"is",
"moved"
] | [
"m",
"on",
"set",
"crop",
"overlay",
"moved",
"listener",
"=",
"listener",
";"
] |
[
"set",
"the",
"callback",
"when",
"the",
"crop",
"window",
"is",
"changed"
] | [
"m",
"on",
"set",
"crop",
"window",
"change",
"listener",
"=",
"listener",
";"
] |
[
"set",
"the",
"callback",
"to",
"be",
"invoked",
"when",
"image",
"async",
"loading",
"(",
"{"
] | [
"m",
"on",
"set",
"image",
"uri",
"complete",
"listener",
"=",
"listener",
";"
] |
[
"set",
"the",
"callback",
"to",
"be",
"invoked",
"when",
"image",
"async",
"cropping",
"image",
"(",
"{"
] | [
"m",
"on",
"crop",
"image",
"complete",
"listener",
"=",
"listener",
";"
] |
[
"sets",
"a",
"bitmap",
"as",
"the",
"content",
"of",
"the",
"crop",
"image",
"view"
] | [
"m",
"crop",
"overlay",
"view",
"set",
"initial",
"crop",
"window",
"rect",
"(",
"null",
")",
";",
"set",
"bitmap",
"(",
"bitmap",
",",
"0",
",",
"null",
",",
"1",
",",
"0",
")",
";"
] |
[
"sets",
"a",
"bitmap",
"and",
"initializes",
"the",
"image",
"rotation",
"according",
"to",
"the",
"exit",
"data",
"<",
"br",
">",
"<",
"br",
">",
"the",
"exif",
"can",
"be",
"retrieved",
"by",
"doing",
"the",
"following",
":",
"<",
"code",
">",
"exif"... | [
"bitmap",
"set",
"bitmap",
";",
"int",
"degrees",
"rotated",
"=",
"0",
";",
"if",
"(",
"bitmap",
"!",
"=",
"null",
"&",
"&",
"exif",
"!",
"=",
"null",
")",
"{",
"bitmap",
"utils",
"rotate",
"bitmap",
"result",
"result",
"=",
"bitmap",
"utils",
"rotat... |
[
"sets",
"a",
"drawable",
"as",
"the",
"content",
"of",
"the",
"crop",
"image",
"view"
] | [
"if",
"(",
"res",
"id",
"!",
"=",
"0",
")",
"{",
"m",
"crop",
"overlay",
"view",
"set",
"initial",
"crop",
"window",
"rect",
"(",
"null",
")",
";",
"bitmap",
"bitmap",
"=",
"bitmap",
"factory",
"decode",
"resource",
"(",
"get",
"resources",
"(",
")",... |
[
"clear",
"the",
"current",
"image",
"set",
"for",
"cropping"
] | [
"clear",
"image",
"int",
"(",
")",
";",
"m",
"crop",
"overlay",
"view",
"set",
"initial",
"crop",
"window",
"rect",
"(",
"null",
")",
";"
] |
[
"flips",
"the",
"image",
"horizontally"
] | [
"m",
"flip",
"horizontally",
"=",
"!",
"m",
"flip",
"horizontally",
";",
"apply",
"image",
"matrix",
"(",
"get",
"width",
"(",
")",
",",
"get",
"height",
"(",
")",
",",
"true",
",",
"false",
")",
";"
] |
[
"flips",
"the",
"image",
"vertically"
] | [
"m",
"flip",
"vertically",
"=",
"!",
"m",
"flip",
"vertically",
";",
"apply",
"image",
"matrix",
"(",
"get",
"width",
"(",
")",
",",
"get",
"height",
"(",
")",
",",
"true",
",",
"false",
")",
";"
] |
[
"on",
"complete",
"of",
"the",
"async",
"bitmap",
"loading",
"by",
"{",
"@",
"link",
"#",
"set",
"image",
"uri",
"async",
"(",
"uri",
")",
"}",
"set",
"the",
"result",
"to",
"the",
"widget",
"if",
"still",
"relevant",
"and",
"call",
"listener",
"if",
... | [
"m",
"bitmap",
"loading",
"worker",
"task",
"=",
"null",
";",
"set",
"progress",
"bar",
"visibility",
"(",
")",
";",
"if",
"(",
"result",
"error",
"=",
"=",
"null",
")",
"{",
"m",
"initial",
"degrees",
"rotated",
"=",
"result",
"degrees",
"rotated",
";... |
[
"on",
"complete",
"of",
"the",
"async",
"bitmap",
"cropping",
"by",
"{",
"@",
"link",
"#",
"get",
"cropped",
"image",
"async",
"(",
")",
"}",
"call",
"listener",
"if",
"set"
] | [
"m",
"bitmap",
"cropping",
"worker",
"task",
"=",
"null",
";",
"set",
"progress",
"bar",
"visibility",
"(",
")",
";",
"on",
"crop",
"image",
"complete",
"listener",
"listener",
"=",
"m",
"on",
"crop",
"image",
"complete",
"listener",
";",
"if",
"(",
"lis... |
[
"set",
"the",
"given",
"bitmap",
"to",
"be",
"used",
"in",
"for",
"cropping",
"<",
"br",
">",
"optionally",
"clear",
"full",
"if",
"the",
"bitmap",
"is",
"new",
"or",
"partial",
"clear",
"if",
"the",
"bitmap",
"has",
"been",
"manipulated"
] | [
"if",
"(",
"m",
"bitmap",
"=",
"=",
"null",
"|",
"|",
"!",
"m",
"bitmap",
"equals",
"(",
"bitmap",
")",
")",
"{",
"m",
"image",
"view",
"clear",
"animation",
"(",
")",
";",
"clear",
"image",
"int",
"(",
")",
";",
"m",
"bitmap",
"=",
"bitmap",
"... |
[
"detect",
"size",
"change",
"to",
"handle",
"auto",
"-",
"zoom",
"using",
"{"
] | [
"super",
"on",
"size",
"changed",
"(",
"w",
",",
"h",
",",
"oldw",
",",
"oldh",
")",
";",
"m",
"size",
"changed",
"=",
"oldw",
">",
"0",
"&",
"&",
"oldh",
">",
"0",
";"
] |
[
"adjust",
"the",
"given",
"image",
"rectangle",
"by",
"image",
"transformation",
"matrix",
"to",
"know",
"the",
"final",
"rectangle",
"of",
"the",
"image",
"<",
"br",
">",
"to",
"get",
"the",
"proper",
"rectangle",
"it",
"must",
"be",
"first",
"reset",
"to... | [
"m",
"image",
"points",
"[",
"0",
"]",
"=",
"0",
";",
"m",
"image",
"points",
"[",
"1",
"]",
"=",
"0",
";",
"m",
"image",
"points",
"[",
"2",
"]",
"=",
"m",
"bitmap",
"get",
"width",
"(",
")",
";",
"m",
"image",
"points",
"[",
"3",
"]",
"="... |
[
"set",
"visibility",
"of",
"crop",
"overlay",
"to",
"hide",
"it",
"when",
"there",
"is",
"no",
"image",
"or",
"specificly",
"set",
"by",
"client"
] | [
"if",
"(",
"m",
"crop",
"overlay",
"view",
"!",
"=",
"null",
")",
"{",
"m",
"crop",
"overlay",
"view",
"set",
"visibility",
"(",
"m",
"show",
"crop",
"overlay",
"&",
"&",
"m",
"bitmap",
"!",
"=",
"null",
"?",
"visible",
":",
"invisible",
")",
";",
... |
[
"set",
"visibility",
"of",
"progress",
"bar",
"when",
"async",
"loading",
"/",
"cropping",
"is",
"in",
"process",
"and",
"show",
"is",
"enabled"
] | [
"boolean",
"visible",
"=",
"m",
"show",
"progress",
"bar",
"&",
"&",
"(",
"m",
"bitmap",
"=",
"=",
"null",
"&",
"&",
"m",
"bitmap",
"loading",
"worker",
"task",
"!",
"=",
"null",
"|",
"|",
"m",
"bitmap",
"cropping",
"worker",
"task",
"!",
"=",
"nul... |
[
"the",
"image",
"bitmap",
"of",
"the",
"original",
"image",
"loaded",
"for",
"cropping",
"<",
"br",
">",
"null",
"if",
"uri",
"used",
"to",
"load",
"image",
"or",
"activity",
"result",
"is",
"used"
] | [
"return",
"m",
"original",
"bitmap",
";"
] |
[
"the",
"android",
"uri",
"of",
"the",
"original",
"image",
"loaded",
"for",
"cropping",
"<",
"br",
">",
"null",
"if",
"bitmap",
"was",
"used",
"to",
"load",
"image"
] | [
"return",
"m",
"original",
"uri",
";"
] |
[
"is",
"the",
"result",
"is",
"success",
"or",
"error"
] | [
"return",
"m",
"error",
"=",
"=",
"null",
";"
] |
[
"the",
"error",
"that",
"failed",
"the",
"loading",
"/",
"cropping",
"(",
"null",
"if",
"successful",
")"
] | [
"return",
"m",
"error",
";"
] |
[
"the",
"4",
"points",
"of",
"the",
"cropping",
"window",
"in",
"the",
"source",
"image"
] | [
"return",
"m",
"crop",
"points",
";"
] |
[
"the",
"rectangle",
"of",
"the",
"source",
"image",
"dimensions"
] | [
"return",
"m",
"whole",
"image",
"rect",
";"
] |
[
"only",
"valid",
"if",
"the",
"image",
"format",
"is",
"jpeg"
] | [
"return",
"m",
"sample",
"size",
";"
] |
[
"convenience",
"method",
"that",
"calls",
"the",
"method",
"{",
"@",
"code",
"#",
"create",
"resource",
"file",
"pattern",
"(",
"string",
"string",
")",
"}",
"with",
"parameters",
"{",
"@",
"code",
"constant",
"messages",
"prefix",
"}",
"and",
"{",
"@",
... | [
"return",
"create",
"resource",
"files",
"pattern",
"(",
"constant",
"messages",
"prefix",
",",
"constant",
"messages",
"extension",
")",
";"
] |
[
"returns",
"a",
"{",
"@",
"code",
"pattern",
"}",
"to",
"match",
"source",
"and",
"translated",
"resource",
"filenames",
"with",
"the",
"given",
"{",
"@",
"code",
"file",
"name",
"}",
"and",
"{",
"@",
"code",
"file",
"extension",
"}",
"<",
"p",
">",
... | [
"return",
"pattern",
"compile",
"(",
"create",
"resource",
"files",
"regex",
"(",
"file",
"name",
",",
"file",
"extension",
")",
")",
";"
] |
[
"convenience",
"method",
"that",
"creates",
"a",
"{",
"@",
"code",
"view",
"locale",
"}",
"with",
"the",
"given",
"{",
"@",
"code",
"locale",
"}",
"and",
"a",
"display",
"name",
"created",
"by",
"calling",
"{",
"@",
"code",
"get",
"local",
"display",
"... | [
"return",
"new",
"view",
"locale",
"(",
"locale",
",",
"get",
"local",
"display",
"name",
"(",
"locale",
")",
")",
";"
] |
[
"returns",
"the",
"host",
"address",
"suitable",
"for",
"use",
"with",
"{",
"@",
"link",
"inet",
"address",
"#",
"get",
"all",
"by",
"name",
"(",
"string",
")",
"}",
"may",
"be",
":"
] | [
"return",
"host",
";"
] |
[
"resets",
"all",
"recording",
"task",
"event",
"listeners",
"with",
"the",
"given",
"action",
"mask",
"on",
"all",
"nodes"
] | [
"for",
"(",
"map",
"entry",
"<",
"tuple",
"<",
"string",
",",
"string",
">",
",",
"recording",
"task",
"manager",
"listener",
">",
"entry",
":",
"listeners",
"entry",
"set",
"(",
")",
")",
"{",
"if",
"(",
"action",
"masks",
"=",
"=",
"null",
"|",
"... |
[
"returns",
"the",
"number",
"of",
"events",
"that",
"satisfy",
"the",
"criteria",
"across",
"all",
"nodes"
] | [
"return",
"find",
"events",
"(",
"action",
"masks",
",",
"criteria",
")",
"size",
"(",
")",
";"
] |
[
"returns",
"all",
"events",
"that",
"satisfy",
"the",
"criteria",
"across",
"all",
"nodes"
] | [
"list",
"<",
"task",
"info",
">",
"events",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"for",
"(",
"map",
"entry",
"<",
"tuple",
"<",
"string",
",",
"string",
">",
",",
"recording",
"task",
"manager",
"listener",
">",
"entry",
":",
"list... |
[
"asserts",
"that",
"all",
"tasks",
"in",
"the",
"tasks",
"list",
"have",
"the",
"same",
"parent",
"task"
] | [
"for",
"(",
"task",
"info",
"task",
":",
"tasks",
")",
"{",
"assert",
"parent",
"task",
"(",
"task",
",",
"parent",
"task",
")",
";",
"}"
] |
[
"turns",
"a",
"snapshot",
"of",
"memstore",
"into",
"a",
"set",
"of",
"store",
"files"
] | [
"public",
"abstract",
"list",
"<",
"path",
">",
"flush",
"snapshot",
"(",
"mem",
"store",
"snapshot",
"snapshot",
",",
"long",
"cache",
"flush",
"seq",
"num",
",",
"monitored",
"task",
"status",
",",
"throughput",
"controller",
"throughput",
"controller",
",",... |
[
"creates",
"the",
"scanner",
"for",
"flushing",
"snapshot",
"also",
"calls",
"coprocessors"
] | [
"scan",
"info",
"scan",
"info",
";",
"if",
"(",
"store",
"get",
"coprocessor",
"host",
"(",
")",
"!",
"=",
"null",
")",
"{",
"scan",
"info",
"=",
"store",
"get",
"coprocessor",
"host",
"(",
")",
"pre",
"flush",
"scanner",
"open",
"(",
"store",
",",
... |
[
"returns",
"the",
"street",
"number"
] | [
"return",
"street",
"number",
";"
] |
[
"sets",
"the",
"street",
"number"
] | [
"this",
"street",
"number",
"=",
"street",
"number",
";"
] |
[
"returns",
"field",
"name"
] | [
"return",
"field",
"get",
"name",
"(",
")",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"metric",
"<",
"/",
"p",
">"
] | [
"set",
"name",
"(",
"name",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"metric",
"<",
"/",
"p",
">"
] | [
"this",
"name",
"=",
"name",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"unit",
"of",
"the",
"metric",
"<",
"/",
"p",
">"
] | [
"this",
"unit",
"=",
"unit",
";"
] |
[
"<",
"p",
">",
"the",
"unit",
"of",
"the",
"metric",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"unit",
";"
] |
[
"<",
"p",
">",
"the",
"unit",
"for",
"the",
"metric",
"<",
"/",
"p",
">"
] | [
"set",
"unit",
"(",
"unit",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"unit",
"for",
"the",
"metric",
"<",
"/",
"p",
">"
] | [
"this",
"unit",
"=",
"unit",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
] |
[
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"... | [
"return",
"ease",
"quad",
"in",
"get",
"value",
"(",
"p",
"seconds",
"elapsed",
"/",
"p",
"duration",
")",
";"
] |
[
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"... | [
"return",
"p",
"percentage",
"*",
"p",
"percentage",
";"
] |
[
"mutant",
"factory",
"method",
"that",
"constructs",
"a",
"new",
"instance",
"if",
"desired",
"case",
"-",
"insensitivity",
"state",
"differs",
"from",
"the",
"state",
"of",
"this",
"instance",
";",
"if",
"states",
"are",
"the",
"same",
"returns",
"<",
"code... | [
"if",
"(",
"case",
"insensitive",
"=",
"=",
"state",
")",
"{",
"return",
"this",
";",
"}",
"return",
"new",
"bean",
"property",
"map",
"(",
"this",
",",
"state",
")",
";"
] |
[
"/",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"... | [
"return",
"props",
"in",
"order",
"length",
";"
] |
[
"accessor",
"for",
"traversing",
"over",
"all",
"contained",
"properties"
] | [
"return",
"arrays",
"as",
"list",
"(",
"props",
"in",
"order",
")",
"iterator",
"(",
")",
";"
] |
[
"method",
"that",
"will",
"re",
"-",
"create",
"initial",
"insertion",
"-",
"ordering",
"of",
"properties",
"contained",
"in",
"this",
"map",
"note",
"that",
"if",
"properties",
"have",
"been",
"removed",
"array",
"may",
"contain",
"nulls",
";",
"otherwise",
... | [
"return",
"props",
"in",
"order",
";"
] |
[
"/",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"... | [
"for",
"(",
"settable",
"bean",
"property",
"prop",
":",
"props",
"in",
"order",
")",
"{",
"if",
"(",
"(",
"prop",
"!",
"=",
"null",
")",
"&",
"&",
"(",
"index",
"=",
"=",
"prop",
"get",
"property",
"index",
"(",
")",
")",
")",
"{",
"return",
"... |
[
"process",
"request",
"request",
"is",
"mock",
"processed",
"by",
"client",
"or",
"server"
] | [
"protected",
"abstract",
"response",
"process",
"request",
"(",
"request",
"request",
")",
";"
] |
[
"prepares",
"the",
"save",
"call",
"using",
"the",
"given",
"requested",
"id"
] | [
"callback",
"registry",
"pre",
"create",
"(",
"entity",
")",
";",
"return",
"perform",
"save",
"(",
"entity",
",",
"requested",
"id",
",",
"source",
"get",
"entity",
"persister",
"(",
"entity",
"name",
",",
"entity",
")",
",",
"false",
",",
"anything",
"... |
[
"after",
"the",
"save",
"will",
"te",
"version",
"number",
"be",
"incremented",
"if",
"the",
"instance",
"is",
"modified",
"?"
] | [
"return",
"false",
";"
] |
[
"{"
] | [
"fatek",
"p",
"l",
"c",
"item",
"validate",
"item",
"type",
"(",
"item",
")",
";"
] |
[
"{"
] | [
"fatek",
"p",
"l",
"c",
"item",
"config",
"=",
"fatek",
"p",
"l",
"c",
"item",
"parse",
"binding",
"configuration",
"(",
"item",
",",
"binding",
"config",
")",
";",
"add",
"binding",
"config",
"(",
"item",
",",
"config",
")",
";",
"super",
"process",
... |
[
"{"
] | [
"return",
"(",
"fatek",
"p",
"l",
"c",
"item",
")",
"binding",
"configs",
"get",
"(",
"name",
")",
";"
] |
[
"get",
"a",
"pseudo",
"-",
"random",
"long",
"uniformly",
"between",
"0",
"and",
"n",
"-",
"1",
"stolen",
"from",
"{",
"@",
"link",
"java",
"util",
"random",
"#",
"next",
"int",
"(",
")",
"}"
] | [
"long",
"bits",
",",
"val",
";",
"do",
"{",
"bits",
"=",
"thread",
"local",
"random",
"current",
"(",
")",
"next",
"long",
"(",
")",
"&",
"(",
"~",
"(",
"1l",
"<",
"<",
"bits",
"per",
"long",
")",
")",
";",
"val",
"=",
"bits",
"%",
"n",
";",
... |
[
"drops",
"the",
"collection",
"that",
"holds",
"the",
"results",
"does",
"nothing",
"if",
"the",
"map",
"-",
"reduce",
"returned",
"the",
"results",
"inline"
] | [
"if",
"(",
"collection",
"!",
"=",
"null",
")",
"{",
"collection",
"drop",
"(",
")",
";",
"}"
] |
[
"gets",
"the",
"collection",
"that",
"holds",
"the",
"results",
"(",
"will",
"return",
"null",
"if",
"results",
"are",
"inline",
")"
] | [
"return",
"collection",
";"
] |
[
"get",
"the",
"original",
"command",
"that",
"was",
"sent",
"to",
"the",
"database"
] | [
"return",
"command",
";"
] |
[
"get",
"the",
"name",
"of",
"the",
"collection",
"that",
"the",
"results",
"of",
"the",
"map",
"reduce",
"were",
"saved",
"into",
"if",
"the",
"map",
"reduce",
"was",
"an",
"inline",
"operation",
"(",
"i",
"e",
"the",
"results",
"were",
"returned",
"dire... | [
"return",
"collection",
"=",
"=",
"null",
"?",
"null",
":",
"collection",
"get",
"name",
"(",
")",
";"
] |
[
"get",
"the",
"name",
"of",
"the",
"database",
"that",
"the",
"results",
"of",
"the",
"map",
"reduce",
"were",
"saved",
"into",
"if",
"the",
"map",
"reduce",
"was",
"an",
"inline",
"operation",
"(",
"i",
"e",
"the",
"results",
"were",
"returned",
"direct... | [
"return",
"collection",
"get",
"d",
"b",
"(",
")",
"get",
"name",
"(",
")",
";"
] |
[
"get",
"the",
"amount",
"of",
"time",
"in",
"milliseconds",
"that",
"it",
"took",
"to",
"run",
"this",
"map",
"reduce"
] | [
"return",
"map",
"reduce",
"statistics",
"get",
"duration",
"(",
")",
";"
] |
[
"get",
"the",
"number",
"of",
"documents",
"that",
"were",
"input",
"into",
"the",
"map",
"reduce",
"operation"
] | [
"return",
"map",
"reduce",
"statistics",
"get",
"input",
"count",
"(",
")",
";"
] |
[
"get",
"the",
"number",
"of",
"documents",
"generated",
"as",
"a",
"result",
"of",
"this",
"map",
"reduce"
] | [
"return",
"map",
"reduce",
"statistics",
"get",
"output",
"count",
"(",
")",
";"
] |
[
"get",
"the",
"number",
"of",
"messages",
"emitted",
"from",
"the",
"provided",
"map",
"function"
] | [
"return",
"map",
"reduce",
"statistics",
"get",
"emit",
"count",
"(",
")",
";"
] |
[
"fit",
"a",
"dataset",
"(",
"only",
"compute",
"based",
"on",
"the",
"statistics",
"from",
"this",
"dataset",
"0"
] | [] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.