docstring_tokens
list | code_tokens
list |
---|---|
[
"specifies",
"if",
"the",
"join",
"has",
"a",
"name",
"it",
"should",
"be",
"called"
]
| [
"this",
"alias",
"=",
"this",
"alias",
"new",
"builder",
"(",
")",
"as",
"(",
"alias",
")",
"build",
"(",
")",
";",
"return",
"this",
";"
]
|
[
"specify",
"the",
"conditions",
"that",
"the",
"join",
"is",
"on"
]
| [
"check",
"natural",
"(",
")",
";",
"on",
"group",
"=",
"operator",
"group",
"non",
"grouping",
"clause",
"(",
")",
";",
"on",
"group",
"and",
"all",
"(",
"on",
"conditions",
")",
";",
"return",
"from",
";"
]
|
[
"the",
"using",
"statement",
"of",
"the",
"join"
]
| [
"check",
"natural",
"(",
")",
";",
"collections",
"add",
"all",
"(",
"using",
",",
"columns",
")",
";",
"return",
"from",
";"
]
|
[
"find",
"the",
"first",
"matching",
"{",
"@",
"link",
"open",
"sprinkler",
"binding",
"provider",
"}",
"according",
"to",
"<",
"code",
">",
"item",
"name",
"<",
"/",
"code",
">",
"and",
"<",
"code",
">",
"command",
"<",
"/",
"code",
">"
]
| [
"open",
"sprinkler",
"binding",
"provider",
"first",
"matching",
"provider",
"=",
"null",
";",
"for",
"(",
"open",
"sprinkler",
"binding",
"provider",
"provider",
":",
"this",
"providers",
")",
"{",
"boolean",
"match",
"=",
"provider",
"provides",
"binding",
"for",
"(",
"item",
"name",
")",
";",
"if",
"(",
"match",
")",
"{",
"first",
"matching",
"provider",
"=",
"provider",
";",
"break",
";",
"}",
"}",
"return",
"first",
"matching",
"provider",
";"
]
|
[
"find",
"the",
"first",
"matching",
"provider",
"name",
"according",
"to",
"<",
"code",
">",
"command",
"value",
"<",
"/",
"code",
">"
]
| [
"string",
"first",
"matching",
"name",
"=",
"null",
";",
"for",
"(",
"open",
"sprinkler",
"binding",
"provider",
"provider",
":",
"this",
"providers",
")",
"{",
"for",
"(",
"string",
"item",
"name",
":",
"provider",
"get",
"item",
"names",
"(",
")",
")",
"{",
"boolean",
"match",
"=",
"provider",
"get",
"command",
"(",
"item",
"name",
")",
"equals",
"(",
"command",
"value",
")",
";",
"if",
"(",
"match",
")",
"{",
"first",
"matching",
"name",
"=",
"item",
"name",
";",
"break",
";",
"}",
"}",
"}",
"return",
"first",
"matching",
"name",
";"
]
|
[
"find",
"the",
"first",
"matching",
"provider",
"name",
"according",
"to",
"<",
"code",
">",
"station",
"value",
"<",
"/",
"code",
">"
]
| [
"string",
"first",
"matching",
"name",
"=",
"null",
";",
"for",
"(",
"open",
"sprinkler",
"binding",
"provider",
"provider",
":",
"this",
"providers",
")",
"{",
"for",
"(",
"string",
"item",
"name",
":",
"provider",
"get",
"item",
"names",
"(",
")",
")",
"{",
"boolean",
"match",
"=",
"(",
"provider",
"get",
"station",
"number",
"(",
"item",
"name",
")",
"=",
"=",
"station",
"value",
")",
";",
"if",
"(",
"match",
")",
"{",
"first",
"matching",
"name",
"=",
"item",
"name",
";",
"break",
";",
"}",
"}",
"}",
"return",
"first",
"matching",
"name",
";"
]
|
[
"accepts",
"the",
"given",
"visitor",
"for",
"all",
"existing",
"resources",
"in",
"this",
"mapping",
"the",
"visitor",
"s",
"{",
"@",
"link",
"i",
"resource",
"visitor",
"#",
"visit",
"}",
"method",
"is",
"called",
"for",
"each",
"accessible",
"resource",
"in",
"this",
"mapping"
]
| [
"resource",
"traversal",
"[",
"]",
"traversals",
"=",
"get",
"traversals",
"(",
"context",
",",
"monitor",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"traversals",
"length",
";",
"i",
"+",
"+",
")",
"traversals",
"[",
"i",
"]",
"accept",
"(",
"visitor",
")",
";"
]
|
[
"return",
"whether",
"this",
"resource",
"mapping",
"contains",
"all",
"the",
"resources",
"of",
"the",
"given",
"mapping"
]
| [
"return",
"false",
";"
]
|
[
"override",
"equals",
"to",
"compare",
"the",
"model",
"objects",
"of",
"the",
"mapping",
"in",
"order",
"to",
"determine",
"equality"
]
| [
"if",
"(",
"obj",
"=",
"=",
"this",
")",
"return",
"true",
";",
"if",
"(",
"obj",
"instanceof",
"resource",
"mapping",
")",
"{",
"resource",
"mapping",
"other",
"=",
"(",
"resource",
"mapping",
")",
"obj",
";",
"return",
"other",
"get",
"model",
"object",
"(",
")",
"equals",
"(",
"get",
"model",
"object",
"(",
")",
")",
";",
"}",
"return",
"false",
";"
]
|
[
"returns",
"all",
"markers",
"of",
"the",
"specified",
"type",
"on",
"the",
"resources",
"in",
"this",
"mapping",
"if",
"<",
"code",
">",
"include",
"subtypes",
"<",
"/",
"code",
">",
"is",
"<",
"code",
">",
"false",
"<",
"/",
"code",
">",
"only",
"markers",
"whose",
"type",
"exactly",
"matches",
"the",
"given",
"type",
"are",
"returned",
"returns",
"an",
"empty",
"array",
"if",
"there",
"are",
"no",
"matching",
"markers"
]
| [
"final",
"resource",
"traversal",
"[",
"]",
"traversals",
"=",
"get",
"traversals",
"(",
"resource",
"mapping",
"context",
"local",
"context",
",",
"monitor",
")",
";",
"array",
"list",
"<",
"i",
"marker",
">",
"result",
"=",
"new",
"array",
"list",
"<",
"i",
"marker",
">",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"traversals",
"length",
";",
"i",
"+",
"+",
")",
"traversals",
"[",
"i",
"]",
"do",
"find",
"markers",
"(",
"result",
",",
"type",
",",
"include",
"subtypes",
")",
";",
"return",
"result",
"to",
"array",
"(",
"new",
"i",
"marker",
"[",
"result",
"size",
"(",
")",
"]",
")",
";"
]
|
[
"returns",
"the",
"application",
"model",
"element",
"associated",
"with",
"this",
"resource",
"mapping"
]
| [
"public",
"abstract",
"object",
"get",
"model",
"object",
"(",
")",
";"
]
|
[
"returns",
"the",
"id",
"of",
"the",
"model",
"provider",
"that",
"generated",
"this",
"resource",
"mapping"
]
| [
"public",
"abstract",
"string",
"get",
"model",
"provider",
"id",
"(",
")",
";"
]
|
[
"returns",
"one",
"or",
"more",
"traversals",
"that",
"can",
"be",
"used",
"to",
"access",
"all",
"the",
"physical",
"resources",
"that",
"constitute",
"the",
"logical",
"resource",
"a",
"traversal",
"is",
"simply",
"a",
"set",
"of",
"resources",
"and",
"the",
"depth",
"to",
"which",
"they",
"are",
"to",
"be",
"traversed",
"this",
"method",
"returns",
"an",
"array",
"of",
"traversals",
"in",
"order",
"to",
"provide",
"flexibility",
"in",
"describing",
"the",
"traversals",
"that",
"constitute",
"a",
"model",
"element"
]
| [
"public",
"abstract",
"resource",
"traversal",
"[",
"]",
"get",
"traversals",
"(",
"resource",
"mapping",
"context",
"context",
",",
"i",
"progress",
"monitor",
"monitor",
")",
"throws",
"core",
"exception",
";"
]
|
[
"override",
"hash",
"code",
"to",
"use",
"the",
"model",
"object"
]
| [
"return",
"get",
"model",
"object",
"(",
")",
"hash",
"code",
"(",
")",
";"
]
|
[
"{",
"@",
"inherit",
"doc",
"}"
]
| [
"return",
"collections",
"empty",
"list",
"(",
")",
";"
]
|
[
"{",
"@",
"inherit",
"doc",
"}"
]
| [
"return",
"other",
"!",
"=",
"null",
"&",
"&",
"this",
"get",
"class",
"(",
")",
"equals",
"(",
"other",
"get",
"class",
"(",
")",
")",
";"
]
|
[
"{",
"@",
"inherit",
"doc",
"}"
]
| [
"return",
"this",
"get",
"class",
"(",
")",
"hash",
"code",
"(",
")",
";"
]
|
[
"this",
"method",
"reads",
"1",
"byte",
"from",
"the",
"stream",
"it",
"works",
"just",
"in",
"the",
"way",
"the",
"read",
"method",
"does",
"it",
"just",
"not",
"throw",
"an",
"exception",
"because",
"at",
"this",
"moment",
"the",
"whole",
"file",
"is",
"loaded",
"into",
"buffer",
"so",
"no",
"need",
"for",
"i",
"o",
"exception",
"to",
"be",
"thrown"
]
| [
"return",
"cached",
"buffer",
"[",
"position",
"+",
"+",
"]",
"&",
"0x",
"f",
"f",
";"
]
|
[
"this",
"method",
"reads",
"a",
"bytes",
"number",
"big",
"enough",
"to",
"fill",
"the",
"table",
"it",
"does",
"not",
"throw",
"exceptions",
"so",
"it",
"is",
"for",
"internal",
"use",
"only"
]
| [
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"bytes",
"length",
";",
"+",
"+",
"i",
")",
"{",
"bytes",
"[",
"i",
"]",
"=",
"(",
"byte",
")",
"this",
"read",
"byte",
"(",
")",
";",
"}",
"return",
"bytes",
"length",
";"
]
|
[
"this",
"method",
"reads",
"2",
"-",
"byte",
"number",
"from",
"the",
"stream"
]
| [
"int",
"part",
"1",
"=",
"this",
"read",
"byte",
"(",
")",
";",
"int",
"part",
"2",
"=",
"this",
"read",
"byte",
"(",
")",
";",
"if",
"(",
"endianess",
"=",
"=",
"'",
"v",
"'",
")",
"{",
"return",
"(",
"part",
"2",
"<",
"<",
"8",
")",
"+",
"part",
"1",
";",
"}",
"else",
"{",
"return",
"(",
"part",
"1",
"<",
"<",
"8",
")",
"+",
"part",
"2",
";",
"}"
]
|
[
"this",
"method",
"reads",
"4",
"-",
"byte",
"number",
"from",
"the",
"stream"
]
| [
"int",
"part",
"1",
"=",
"this",
"read",
"byte",
"(",
")",
";",
"int",
"part",
"2",
"=",
"this",
"read",
"byte",
"(",
")",
";",
"int",
"part",
"3",
"=",
"this",
"read",
"byte",
"(",
")",
";",
"int",
"part",
"4",
"=",
"this",
"read",
"byte",
"(",
")",
";",
"if",
"(",
"endianess",
"=",
"=",
"'",
"v",
"'",
")",
"{",
"return",
"(",
"part",
"4",
"<",
"<",
"24",
")",
"+",
"(",
"part",
"3",
"<",
"<",
"16",
")",
"+",
"(",
"part",
"2",
"<",
"<",
"8",
")",
"+",
"part",
"1",
";",
"}",
"else",
"{",
"return",
"(",
"part",
"1",
"<",
"<",
"24",
")",
"+",
"(",
"part",
"2",
"<",
"<",
"16",
")",
"+",
"(",
"part",
"3",
"<",
"<",
"8",
")",
"+",
"part",
"4",
";",
"}"
]
|
[
"this",
"method",
"reads",
"4",
"-",
"byte",
"floating",
"point",
"number",
"(",
"float",
")",
"from",
"the",
"stream"
]
| [
"int",
"int",
"value",
"=",
"this",
"read",
"int",
"(",
")",
";",
"return",
"float",
"int",
"bits",
"to",
"float",
"(",
"int",
"value",
")",
";"
]
|
[
"this",
"method",
"reads",
"8",
"-",
"byte",
"number",
"from",
"the",
"stream"
]
| [
"long",
"part",
"1",
"=",
"this",
"read",
"int",
"(",
")",
";",
"long",
"part",
"2",
"=",
"this",
"read",
"int",
"(",
")",
";",
"long",
"result",
"=",
"-",
"1",
";",
"if",
"(",
"endianess",
"=",
"=",
"'",
"v",
"'",
")",
"{",
"result",
"=",
"part",
"2",
"<",
"<",
"32",
"|",
"part",
"1",
";",
"}",
"else",
"{",
"result",
"=",
"part",
"1",
"<",
"<",
"32",
"|",
"part",
"2",
";",
"}",
"return",
"result",
";"
]
|
[
"this",
"method",
"reads",
"8",
"-",
"byte",
"floating",
"point",
"number",
"(",
"double",
")",
"from",
"the",
"stream"
]
| [
"long",
"long",
"value",
"=",
"this",
"read",
"long",
"(",
")",
";",
"return",
"double",
"long",
"bits",
"to",
"double",
"(",
"long",
"value",
")",
";"
]
|
[
"this",
"method",
"reads",
"the",
"pointer",
"value",
"depending",
"on",
"the",
"pointer",
"size",
"defined",
"in",
"the",
"header",
"the",
"stream",
"reads",
"either",
"4",
"or",
"8",
"bytes",
"of",
"data"
]
| [
"if",
"(",
"pointer",
"size",
"=",
"=",
"4",
")",
"{",
"return",
"this",
"read",
"int",
"(",
")",
";",
"}",
"return",
"this",
"read",
"long",
"(",
")",
";"
]
|
[
"this",
"method",
"reads",
"the",
"string",
"it",
"assumes",
"the",
"string",
"is",
"terminated",
"with",
"zero",
"in",
"the",
"stream"
]
| [
"string",
"builder",
"string",
"builder",
"=",
"new",
"string",
"builder",
"(",
")",
";",
"int",
"data",
"=",
"this",
"read",
"byte",
"(",
")",
";",
"while",
"(",
"data",
"!",
"=",
"0",
")",
"{",
"string",
"builder",
"append",
"(",
"(",
"char",
")",
"data",
")",
";",
"data",
"=",
"this",
"read",
"byte",
"(",
")",
";",
"}",
"return",
"string",
"builder",
"to",
"string",
"(",
")",
";"
]
|
[
"this",
"method",
"returns",
"the",
"blender",
"version",
"number",
"where",
"the",
"file",
"was",
"created"
]
| [
"return",
"version",
"number",
";"
]
|
[
"this",
"method",
"returns",
"the",
"size",
"of",
"the",
"pointer"
]
| [
"return",
"pointer",
"size",
";"
]
|
[
"whether",
"an",
"explicit",
"format",
"for",
"this",
"date",
"field",
"has",
"been",
"set",
"already"
]
| [
"return",
"date",
"time",
"formatter",
"set",
";"
]
|
[
"center",
"move",
"only",
"changes",
"the",
"position",
"of",
"the",
"crop",
"window",
"without",
"changing",
"the",
"size"
]
| [
"float",
"dx",
"=",
"x",
"-",
"rect",
"center",
"x",
"(",
")",
";",
"float",
"dy",
"=",
"y",
"-",
"rect",
"center",
"y",
"(",
")",
";",
"if",
"(",
"rect",
"left",
"+",
"dx",
"<",
"0",
"|",
"|",
"rect",
"right",
"+",
"dx",
">",
"view",
"width",
"|",
"|",
"rect",
"left",
"+",
"dx",
"<",
"bounds",
"left",
"|",
"|",
"rect",
"right",
"+",
"dx",
">",
"bounds",
"right",
")",
"{",
"dx",
"/",
"=",
"1",
"0",
"5f",
";",
"m",
"touch",
"offset",
"x",
"-",
"=",
"dx",
"/",
"2",
";",
"}",
"if",
"(",
"rect",
"top",
"+",
"dy",
"<",
"0",
"|",
"|",
"rect",
"bottom",
"+",
"dy",
">",
"view",
"height",
"|",
"|",
"rect",
"top",
"+",
"dy",
"<",
"bounds",
"top",
"|",
"|",
"rect",
"bottom",
"+",
"dy",
">",
"bounds",
"bottom",
")",
"{",
"dy",
"/",
"=",
"1",
"0",
"5f",
";",
"m",
"touch",
"offset",
"y",
"-",
"=",
"dy",
"/",
"2",
";",
"}",
"rect",
"offset",
"(",
"dx",
",",
"dy",
")",
";",
"snap",
"edges",
"to",
"bounds",
"(",
"rect",
",",
"bounds",
",",
"snap",
"radius",
")",
";"
]
|
[
"change",
"the",
"size",
"of",
"the",
"crop",
"window",
"on",
"the",
"required",
"edge",
"(",
"or",
"edges",
"for",
"corner",
"size",
"move",
")",
"without",
"affecting",
"secondary",
"edges",
"<",
"br",
">",
"only",
"the",
"primary",
"edge",
"(",
"s",
")",
"are",
"fixed",
"to",
"stay",
"within",
"limits"
]
| [
"switch",
"(",
"m",
"type",
")",
"{",
"case",
"top",
"left",
":",
"adjust",
"top",
"(",
"rect",
",",
"y",
",",
"bounds",
",",
"snap",
"margin",
",",
"0",
",",
"false",
",",
"false",
")",
";",
"adjust",
"left",
"(",
"rect",
",",
"x",
",",
"bounds",
",",
"snap",
"margin",
",",
"0",
",",
"false",
",",
"false",
")",
";",
"break",
";",
"case",
"top",
"right",
":",
"adjust",
"top",
"(",
"rect",
",",
"y",
",",
"bounds",
",",
"snap",
"margin",
",",
"0",
",",
"false",
",",
"false",
")",
";",
"adjust",
"right",
"(",
"rect",
",",
"x",
",",
"bounds",
",",
"view",
"width",
",",
"snap",
"margin",
",",
"0",
",",
"false",
",",
"false",
")",
";",
"break",
";",
"case",
"bottom",
"left",
":",
"adjust",
"bottom",
"(",
"rect",
",",
"y",
",",
"bounds",
",",
"view",
"height",
",",
"snap",
"margin",
",",
"0",
",",
"false",
",",
"false",
")",
";",
"adjust",
"left",
"(",
"rect",
",",
"x",
",",
"bounds",
",",
"snap",
"margin",
",",
"0",
",",
"false",
",",
"false",
")",
";",
"break",
";",
"case",
"bottom",
"right",
":",
"adjust",
"bottom",
"(",
"rect",
",",
"y",
",",
"bounds",
",",
"view",
"height",
",",
"snap",
"margin",
",",
"0",
",",
"false",
",",
"false",
")",
";",
"adjust",
"right",
"(",
"rect",
",",
"x",
",",
"bounds",
",",
"view",
"width",
",",
"snap",
"margin",
",",
"0",
",",
"false",
",",
"false",
")",
";",
"break",
";",
"case",
"left",
":",
"adjust",
"left",
"(",
"rect",
",",
"x",
",",
"bounds",
",",
"snap",
"margin",
",",
"0",
",",
"false",
",",
"false",
")",
";",
"break",
";",
"case",
"top",
":",
"adjust",
"top",
"(",
"rect",
",",
"y",
",",
"bounds",
",",
"snap",
"margin",
",",
"0",
",",
"false",
",",
"false",
")",
";",
"break",
";",
"case",
"right",
":",
"adjust",
"right",
"(",
"rect",
",",
"x",
",",
"bounds",
",",
"view",
"width",
",",
"snap",
"margin",
",",
"0",
",",
"false",
",",
"false",
")",
";",
"break",
";",
"case",
"bottom",
":",
"adjust",
"bottom",
"(",
"rect",
",",
"y",
",",
"bounds",
",",
"view",
"height",
",",
"snap",
"margin",
",",
"0",
",",
"false",
",",
"false",
")",
";",
"break",
";",
"default",
":",
"break",
";",
"}"
]
|
[
"change",
"the",
"size",
"of",
"the",
"crop",
"window",
"on",
"the",
"required",
"primary",
"edge",
"with",
"affect",
"to",
"relevant",
"secondary",
"edge",
"via",
"aspect",
"ratio",
"<",
"br",
">",
"example",
":",
"change",
"in",
"the",
"left",
"edge",
"(",
"primary",
")",
"will",
"affect",
"top",
"and",
"bottom",
"edges",
"(",
"secondary",
")",
"to",
"preserve",
"the",
"given",
"aspect",
"ratio"
]
| [
"switch",
"(",
"m",
"type",
")",
"{",
"case",
"top",
"left",
":",
"if",
"(",
"calculate",
"aspect",
"ratio",
"(",
"x",
",",
"y",
",",
"rect",
"right",
",",
"rect",
"bottom",
")",
"<",
"aspect",
"ratio",
")",
"{",
"adjust",
"top",
"(",
"rect",
",",
"y",
",",
"bounds",
",",
"snap",
"margin",
",",
"aspect",
"ratio",
",",
"true",
",",
"false",
")",
";",
"adjust",
"left",
"by",
"aspect",
"ratio",
"(",
"rect",
",",
"aspect",
"ratio",
")",
";",
"}",
"else",
"{",
"adjust",
"left",
"(",
"rect",
",",
"x",
",",
"bounds",
",",
"snap",
"margin",
",",
"aspect",
"ratio",
",",
"true",
",",
"false",
")",
";",
"adjust",
"top",
"by",
"aspect",
"ratio",
"(",
"rect",
",",
"aspect",
"ratio",
")",
";",
"}",
"break",
";",
"case",
"top",
"right",
":",
"if",
"(",
"calculate",
"aspect",
"ratio",
"(",
"rect",
"left",
",",
"y",
",",
"x",
",",
"rect",
"bottom",
")",
"<",
"aspect",
"ratio",
")",
"{",
"adjust",
"top",
"(",
"rect",
",",
"y",
",",
"bounds",
",",
"snap",
"margin",
",",
"aspect",
"ratio",
",",
"false",
",",
"true",
")",
";",
"adjust",
"right",
"by",
"aspect",
"ratio",
"(",
"rect",
",",
"aspect",
"ratio",
")",
";",
"}",
"else",
"{",
"adjust",
"right",
"(",
"rect",
",",
"x",
",",
"bounds",
",",
"view",
"width",
",",
"snap",
"margin",
",",
"aspect",
"ratio",
",",
"true",
",",
"false",
")",
";",
"adjust",
"top",
"by",
"aspect",
"ratio",
"(",
"rect",
",",
"aspect",
"ratio",
")",
";",
"}",
"break",
";",
"case",
"bottom",
"left",
":",
"if",
"(",
"calculate",
"aspect",
"ratio",
"(",
"x",
",",
"rect",
"top",
",",
"rect",
"right",
",",
"y",
")",
"<",
"aspect",
"ratio",
")",
"{",
"adjust",
"bottom",
"(",
"rect",
",",
"y",
",",
"bounds",
",",
"view",
"height",
",",
"snap",
"margin",
",",
"aspect",
"ratio",
",",
"true",
",",
"false",
")",
";",
"adjust",
"left",
"by",
"aspect",
"ratio",
"(",
"rect",
",",
"aspect",
"ratio",
")",
";",
"}",
"else",
"{",
"adjust",
"left",
"(",
"rect",
",",
"x",
",",
"bounds",
",",
"snap",
"margin",
",",
"aspect",
"ratio",
",",
"false",
",",
"true",
")",
";",
"adjust",
"bottom",
"by",
"aspect",
"ratio",
"(",
"rect",
",",
"aspect",
"ratio",
")",
";",
"}",
"break",
";",
"case",
"bottom",
"right",
":",
"if",
"(",
"calculate",
"aspect",
"ratio",
"(",
"rect",
"left",
",",
"rect",
"top",
",",
"x",
",",
"y",
")",
"<",
"aspect",
"ratio",
")",
"{",
"adjust",
"bottom",
"(",
"rect",
",",
"y",
",",
"bounds",
",",
"view",
"height",
",",
"snap",
"margin",
",",
"aspect",
"ratio",
",",
"false",
",",
"true",
")",
";",
"adjust",
"right",
"by",
"aspect",
"ratio",
"(",
"rect",
",",
"aspect",
"ratio",
")",
";",
"}",
"else",
"{",
"adjust",
"right",
"(",
"rect",
",",
"x",
",",
"bounds",
",",
"view",
"width",
",",
"snap",
"margin",
",",
"aspect",
"ratio",
",",
"false",
",",
"true",
")",
";",
"adjust",
"bottom",
"by",
"aspect",
"ratio",
"(",
"rect",
",",
"aspect",
"ratio",
")",
";",
"}",
"break",
";",
"case",
"left",
":",
"adjust",
"left",
"(",
"rect",
",",
"x",
",",
"bounds",
",",
"snap",
"margin",
",",
"aspect",
"ratio",
",",
"true",
",",
"true",
")",
";",
"adjust",
"top",
"bottom",
"by",
"aspect",
"ratio",
"(",
"rect",
",",
"bounds",
",",
"aspect",
"ratio",
")",
";",
"break",
";",
"case",
"top",
":",
"adjust",
"top",
"(",
"rect",
",",
"y",
",",
"bounds",
",",
"snap",
"margin",
",",
"aspect",
"ratio",
",",
"true",
",",
"true",
")",
";",
"adjust",
"left",
"right",
"by",
"aspect",
"ratio",
"(",
"rect",
",",
"bounds",
",",
"aspect",
"ratio",
")",
";",
"break",
";",
"case",
"right",
":",
"adjust",
"right",
"(",
"rect",
",",
"x",
",",
"bounds",
",",
"view",
"width",
",",
"snap",
"margin",
",",
"aspect",
"ratio",
",",
"true",
",",
"true",
")",
";",
"adjust",
"top",
"bottom",
"by",
"aspect",
"ratio",
"(",
"rect",
",",
"bounds",
",",
"aspect",
"ratio",
")",
";",
"break",
";",
"case",
"bottom",
":",
"adjust",
"bottom",
"(",
"rect",
",",
"y",
",",
"bounds",
",",
"view",
"height",
",",
"snap",
"margin",
",",
"aspect",
"ratio",
",",
"true",
",",
"true",
")",
";",
"adjust",
"left",
"right",
"by",
"aspect",
"ratio",
"(",
"rect",
",",
"bounds",
",",
"aspect",
"ratio",
")",
";",
"break",
";",
"default",
":",
"break",
";",
"}"
]
|
[
"check",
"if",
"edges",
"have",
"gone",
"out",
"of",
"bounds",
"(",
"including",
"snap",
"margin",
")",
"and",
"fix",
"if",
"needed"
]
| [
"if",
"(",
"edges",
"left",
"<",
"bounds",
"left",
"+",
"margin",
")",
"{",
"edges",
"offset",
"(",
"bounds",
"left",
"-",
"edges",
"left",
",",
"0",
")",
";",
"}",
"if",
"(",
"edges",
"top",
"<",
"bounds",
"top",
"+",
"margin",
")",
"{",
"edges",
"offset",
"(",
"0",
",",
"bounds",
"top",
"-",
"edges",
"top",
")",
";",
"}",
"if",
"(",
"edges",
"right",
">",
"bounds",
"right",
"-",
"margin",
")",
"{",
"edges",
"offset",
"(",
"bounds",
"right",
"-",
"edges",
"right",
",",
"0",
")",
";",
"}",
"if",
"(",
"edges",
"bottom",
">",
"bounds",
"bottom",
"-",
"margin",
")",
"{",
"edges",
"offset",
"(",
"0",
",",
"bounds",
"bottom",
"-",
"edges",
"bottom",
")",
";",
"}"
]
|
[
"adjust",
"left",
"edge",
"by",
"current",
"crop",
"window",
"height",
"and",
"the",
"given",
"aspect",
"ratio",
"the",
"right",
"edge",
"remains",
"in",
"possition",
"while",
"the",
"left",
"adjusts",
"to",
"keep",
"aspect",
"ratio",
"to",
"the",
"height"
]
| [
"rect",
"left",
"=",
"rect",
"right",
"-",
"rect",
"height",
"(",
")",
"*",
"aspect",
"ratio",
";"
]
|
[
"adjust",
"top",
"edge",
"by",
"current",
"crop",
"window",
"width",
"and",
"the",
"given",
"aspect",
"ratio",
"the",
"bottom",
"edge",
"remains",
"in",
"possition",
"while",
"the",
"top",
"adjusts",
"to",
"keep",
"aspect",
"ratio",
"to",
"the",
"width"
]
| [
"rect",
"top",
"=",
"rect",
"bottom",
"-",
"rect",
"width",
"(",
")",
"/",
"aspect",
"ratio",
";"
]
|
[
"adjust",
"right",
"edge",
"by",
"current",
"crop",
"window",
"height",
"and",
"the",
"given",
"aspect",
"ratio",
"the",
"left",
"edge",
"remains",
"in",
"possition",
"while",
"the",
"left",
"adjusts",
"to",
"keep",
"aspect",
"ratio",
"to",
"the",
"height"
]
| [
"rect",
"right",
"=",
"rect",
"left",
"+",
"rect",
"height",
"(",
")",
"*",
"aspect",
"ratio",
";"
]
|
[
"adjust",
"bottom",
"edge",
"by",
"current",
"crop",
"window",
"width",
"and",
"the",
"given",
"aspect",
"ratio",
"the",
"top",
"edge",
"remains",
"in",
"possition",
"while",
"the",
"top",
"adjusts",
"to",
"keep",
"aspect",
"ratio",
"to",
"the",
"width"
]
| [
"rect",
"bottom",
"=",
"rect",
"top",
"+",
"rect",
"width",
"(",
")",
"/",
"aspect",
"ratio",
";"
]
|
[
"adjust",
"left",
"and",
"right",
"edges",
"by",
"current",
"crop",
"window",
"height",
"and",
"the",
"given",
"aspect",
"ratio",
"both",
"right",
"and",
"left",
"edges",
"adjusts",
"equally",
"relative",
"to",
"center",
"to",
"keep",
"aspect",
"ratio",
"to",
"the",
"height"
]
| [
"rect",
"inset",
"(",
"(",
"rect",
"width",
"(",
")",
"-",
"rect",
"height",
"(",
")",
"*",
"aspect",
"ratio",
")",
"/",
"2",
",",
"0",
")",
";",
"if",
"(",
"rect",
"left",
"<",
"bounds",
"left",
")",
"{",
"rect",
"offset",
"(",
"bounds",
"left",
"-",
"rect",
"left",
",",
"0",
")",
";",
"}",
"if",
"(",
"rect",
"right",
">",
"bounds",
"right",
")",
"{",
"rect",
"offset",
"(",
"bounds",
"right",
"-",
"rect",
"right",
",",
"0",
")",
";",
"}"
]
|
[
"adjust",
"top",
"and",
"bottom",
"edges",
"by",
"current",
"crop",
"window",
"width",
"and",
"the",
"given",
"aspect",
"ratio",
"both",
"top",
"and",
"bottom",
"edges",
"adjusts",
"equally",
"relative",
"to",
"center",
"to",
"keep",
"aspect",
"ratio",
"to",
"the",
"width"
]
| [
"rect",
"inset",
"(",
"0",
",",
"(",
"rect",
"height",
"(",
")",
"-",
"rect",
"width",
"(",
")",
"/",
"aspect",
"ratio",
")",
"/",
"2",
")",
";",
"if",
"(",
"rect",
"top",
"<",
"bounds",
"top",
")",
"{",
"rect",
"offset",
"(",
"0",
",",
"bounds",
"top",
"-",
"rect",
"top",
")",
";",
"}",
"if",
"(",
"rect",
"bottom",
">",
"bounds",
"bottom",
")",
"{",
"rect",
"offset",
"(",
"0",
",",
"bounds",
"bottom",
"-",
"rect",
"bottom",
")",
";",
"}"
]
|
[
"calculates",
"the",
"aspect",
"ratio",
"given",
"a",
"rectangle"
]
| [
"return",
"(",
"right",
"-",
"left",
")",
"/",
"(",
"bottom",
"-",
"top",
")",
";"
]
|
[
"getter",
"method",
"for",
"property",
"<",
"tt",
">",
"target",
"app",
"<",
"/",
"tt",
">"
]
| [
"return",
"target",
"app",
";"
]
|
[
"setter",
"method",
"for",
"property",
"<",
"tt",
">",
"target",
"app",
"<",
"/",
"tt",
">"
]
| [
"this",
"target",
"app",
"=",
"target",
"app",
";"
]
|
[
"getter",
"method",
"for",
"property",
"<",
"tt",
">",
"request",
"size",
"<",
"/",
"tt",
">"
]
| [
"return",
"request",
"size",
";"
]
|
[
"setter",
"method",
"for",
"property",
"<",
"tt",
">",
"request",
"size",
"<",
"/",
"tt",
">"
]
| [
"this",
"request",
"size",
"=",
"request",
"size",
";"
]
|
[
"getter",
"method",
"for",
"property",
"<",
"tt",
">",
"response",
"size",
"<",
"/",
"tt",
">"
]
| [
"return",
"response",
"size",
";"
]
|
[
"setter",
"method",
"for",
"property",
"<",
"tt",
">",
"response",
"size",
"<",
"/",
"tt",
">"
]
| [
"this",
"response",
"size",
"=",
"response",
"size",
";"
]
|
[
"<",
"p",
">",
"a",
"list",
"containing",
"the",
"properties",
"of",
"each",
"job",
"that",
"is",
"returned",
"<",
"/",
"p",
">"
]
| [
"return",
"sentiment",
"detection",
"job",
"properties",
"list",
";"
]
|
[
"<",
"p",
">",
"a",
"list",
"containing",
"the",
"properties",
"of",
"each",
"job",
"that",
"is",
"returned",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"sentiment",
"detection",
"job",
"properties",
"list",
"=",
"=",
"null",
")",
"{",
"this",
"sentiment",
"detection",
"job",
"properties",
"list",
"=",
"null",
";",
"return",
";",
"}",
"this",
"sentiment",
"detection",
"job",
"properties",
"list",
"=",
"new",
"java",
"util",
"array",
"list",
"<",
"sentiment",
"detection",
"job",
"properties",
">",
"(",
"sentiment",
"detection",
"job",
"properties",
"list",
")",
";"
]
|
[
"<",
"p",
">",
"a",
"list",
"containing",
"the",
"properties",
"of",
"each",
"job",
"that",
"is",
"returned",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"sentiment",
"detection",
"job",
"properties",
"list",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"sentiment",
"detection",
"job",
"properties",
"list",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"this",
"sentiment",
"detection",
"job",
"properties",
"list",
"=",
"=",
"null",
")",
"{",
"set",
"sentiment",
"detection",
"job",
"properties",
"list",
"(",
"new",
"java",
"util",
"array",
"list",
"<",
"sentiment",
"detection",
"job",
"properties",
">",
"(",
"sentiment",
"detection",
"job",
"properties",
"list",
"length",
")",
")",
";",
"}",
"for",
"(",
"sentiment",
"detection",
"job",
"properties",
"ele",
":",
"sentiment",
"detection",
"job",
"properties",
"list",
")",
"{",
"this",
"sentiment",
"detection",
"job",
"properties",
"list",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"a",
"list",
"containing",
"the",
"properties",
"of",
"each",
"job",
"that",
"is",
"returned",
"<",
"/",
"p",
">"
]
| [
"set",
"sentiment",
"detection",
"job",
"properties",
"list",
"(",
"sentiment",
"detection",
"job",
"properties",
"list",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"identifies",
"the",
"next",
"page",
"of",
"results",
"to",
"return",
"<",
"/",
"p",
">"
]
| [
"set",
"next",
"token",
"(",
"next",
"token",
")",
";",
"return",
"this",
";"
]
|
[
"returns",
"<",
"code",
">",
"true",
"<",
"/",
"code",
">",
"if",
"element",
"is",
"void"
]
| [
"return",
"void",
"element",
";"
]
|
[
"returns",
"<",
"code",
">",
"true",
"<",
"/",
"code",
">",
"if",
"element",
"can",
"self",
"-",
"close",
"itself",
"when",
"empty"
]
| [
"return",
"self",
"closed",
";"
]
|
[
"returns",
"<",
"code",
">",
"true",
"<",
"/",
"code",
">",
"if",
"tags",
"content",
"is",
"raw",
"text"
]
| [
"return",
"raw",
"tag",
";"
]
|
[
"this",
"method",
"fills",
"the",
"point",
"with",
"coordinates",
"of",
"randomly",
"selected",
"mesh",
"vertex"
]
| [
"int",
"mesh",
"index",
"=",
"fast",
"math",
"next",
"random",
"int",
"(",
"0",
",",
"vertices",
"size",
"(",
")",
"-",
"1",
")",
";",
"int",
"vert",
"index",
"=",
"fast",
"math",
"next",
"random",
"int",
"(",
"0",
",",
"vertices",
"get",
"(",
"mesh",
"index",
")",
"size",
"(",
")",
"-",
"1",
")",
";",
"store",
"set",
"(",
"vertices",
"get",
"(",
"mesh",
"index",
")",
"get",
"(",
"vert",
"index",
")",
")",
";"
]
|
[
"this",
"method",
"fills",
"the",
"point",
"with",
"coordinates",
"of",
"randomly",
"selected",
"mesh",
"vertex",
"the",
"normal",
"param",
"is",
"filled",
"with",
"selected",
"vertex",
"s",
"normal"
]
| [
"int",
"mesh",
"index",
"=",
"fast",
"math",
"next",
"random",
"int",
"(",
"0",
",",
"vertices",
"size",
"(",
")",
"-",
"1",
")",
";",
"int",
"vert",
"index",
"=",
"fast",
"math",
"next",
"random",
"int",
"(",
"0",
",",
"vertices",
"get",
"(",
"mesh",
"index",
")",
"size",
"(",
")",
"-",
"1",
")",
";",
"store",
"set",
"(",
"vertices",
"get",
"(",
"mesh",
"index",
")",
"get",
"(",
"vert",
"index",
")",
")",
";",
"normal",
"set",
"(",
"normals",
"get",
"(",
"mesh",
"index",
")",
"get",
"(",
"vert",
"index",
")",
")",
";"
]
|
[
"called",
"internally",
"by",
"com",
"jme",
"3",
"util",
"clone",
"cloner",
"do",
"not",
"call",
"directly"
]
| [
"this",
"vertices",
"=",
"cloner",
"clone",
"(",
"vertices",
")",
";",
"this",
"normals",
"=",
"cloner",
"clone",
"(",
"normals",
")",
";"
]
|
[
"set",
"the",
"name",
"of",
"the",
"logger",
"to",
"use",
"the",
"name",
"will",
"be",
"passed",
"to",
"the",
"underlying",
"logger",
"implementation",
"through",
"commons",
"logging",
"getting",
"interpreted",
"as",
"log",
"category",
"according",
"to",
"the",
"logger",
"s",
"configuration",
"<",
"p",
">",
"this",
"can",
"be",
"specified",
"to",
"not",
"log",
"into",
"the",
"category",
"of",
"this",
"warner",
"class",
"but",
"rather",
"into",
"a",
"specific",
"named",
"category"
]
| [
"this",
"logger",
"=",
"log",
"factory",
"get",
"log",
"(",
"logger",
"name",
")",
";"
]
|
[
"actually",
"write",
"to",
"the",
"underlying",
"log",
"<",
"p",
">",
"the",
"default",
"implementations",
"logs",
"the",
"message",
"at",
"warn",
"level"
]
| [
"logger",
"warn",
"(",
"message",
")",
";"
]
|
[
"determine",
"whether",
"the",
"{"
]
| [
"return",
"logger",
"is",
"warn",
"enabled",
"(",
")",
";"
]
|
[
"{"
]
| [
"return",
"false",
";"
]
|
[
"<",
"p",
">",
"the",
"name",
"associated",
"with",
"the",
"stack",
"<",
"/",
"p",
">"
]
| [
"set",
"stack",
"name",
"(",
"stack",
"name",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"unique",
"identifier",
"of",
"the",
"stack",
"<",
"/",
"p",
">"
]
| [
"set",
"stack",
"id",
"(",
"stack",
"id",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"logical",
"name",
"of",
"the",
"resource",
"specified",
"in",
"the",
"template",
"<",
"/",
"p",
">"
]
| [
"set",
"logical",
"resource",
"id",
"(",
"logical",
"resource",
"id",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"name",
"or",
"unique",
"identifier",
"that",
"corresponds",
"to",
"a",
"physical",
"instance",
"id",
"of",
"a",
"resource",
"supported",
"by",
"aws",
"cloud",
"formation",
"<",
"/",
"p",
">"
]
| [
"set",
"physical",
"resource",
"id",
"(",
"physical",
"resource",
"id",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"type",
"of",
"resource",
"(",
"for",
"more",
"information",
"go",
"to",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"a",
"w",
"s",
"cloud",
"formation",
"/",
"latest",
"/",
"user",
"guide",
"/",
"aws",
"-",
"template",
"-",
"resource",
"-",
"type",
"-",
"ref",
"html",
">",
"aws",
"resource",
"types",
"reference",
"<",
"/",
"a",
">",
"in",
"the",
"aws",
"cloud",
"formation",
"user",
"guide",
")",
"<",
"/",
"p",
">"
]
| [
"set",
"resource",
"type",
"(",
"resource",
"type",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"time",
"the",
"status",
"was",
"updated",
"<",
"/",
"p",
">"
]
| [
"set",
"timestamp",
"(",
"timestamp",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"current",
"status",
"of",
"the",
"resource",
"<",
"/",
"p",
">"
]
| [
"set",
"resource",
"status",
"(",
"resource",
"status",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"current",
"status",
"of",
"the",
"resource",
"<",
"/",
"p",
">"
]
| [
"this",
"resource",
"status",
"=",
"resource",
"status",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"success",
"/",
"failure",
"message",
"associated",
"with",
"the",
"resource",
"<",
"/",
"p",
">"
]
| [
"set",
"resource",
"status",
"reason",
"(",
"resource",
"status",
"reason",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"user",
"defined",
"description",
"associated",
"with",
"the",
"resource",
"<",
"/",
"p",
">"
]
| [
"set",
"description",
"(",
"description",
")",
";",
"return",
"this",
";"
]
|
[
"collects",
"only",
"characters",
"which",
"do",
"not",
"satisfy",
"{"
]
| [
"return",
"!",
"character",
"is",
"whitespace",
"(",
"c",
")",
";"
]
|
[
"called",
"when",
"the",
"deployment",
"is",
"undeployed"
]
| [
"health",
"check",
"instances",
"for",
"each",
"(",
"health",
"check",
"-",
">",
"{",
"health",
"reporter",
"remove",
"health",
"check",
"(",
"health",
"check",
"get",
"(",
")",
")",
";",
"health",
"check",
"pre",
"destroy",
"(",
")",
"dispose",
"(",
")",
";",
"}",
")",
";",
"health",
"check",
"instances",
"clear",
"(",
")",
";"
]
|
[
"use",
"case",
":",
"this",
"is",
"only",
"use",
"for",
"testing",
"purposes",
"for",
"instance",
"we",
"might",
"want",
"to",
"sort",
"the",
"expressions",
"in",
"a",
"filter",
"so",
"we",
"get",
"deterministic",
"comparable",
"golden",
"files"
]
| [
"return",
"exp",
"post",
"process",
"(",
")",
";"
]
|
[
"use",
"case",
":",
"we",
"want",
"to",
"print",
"the",
"object",
"in",
"explain",
"only",
"if",
"it",
"is",
"true",
"how",
"to",
"do",
":",
"print",
"it",
"unless",
"the",
"following",
"3",
"are",
"all",
"true",
":",
"1",
"display",
"only",
"on",
"true",
"tag",
"is",
"on",
"2",
"object",
"is",
"boolean",
"3",
"object",
"is",
"false"
]
| [
"if",
"(",
"exp",
"display",
"only",
"on",
"true",
"(",
")",
"&",
"&",
"(",
"val",
"instanceof",
"boolean",
")",
"&",
"!",
"(",
"(",
"boolean",
")",
"val",
")",
")",
"{",
"return",
"false",
";",
"}",
"return",
"true",
";"
]
|
[
"<",
"p",
">",
"the",
"amazon",
"resource",
"name",
"(",
"arn",
")",
"string",
"that",
"uniquely",
"identifies",
"the",
"endpoint",
"<",
"/",
"p",
">"
]
| [
"set",
"endpoint",
"arn",
"(",
"endpoint",
"arn",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"amazon",
"resource",
"name",
"(",
"arn",
")",
"of",
"the",
"replication",
"instance",
"<",
"/",
"p",
">"
]
| [
"set",
"replication",
"instance",
"arn",
"(",
"replication",
"instance",
"arn",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"id",
"of",
"the",
"violation",
"event",
"<",
"/",
"p",
">"
]
| [
"this",
"violation",
"id",
"=",
"violation",
"id",
";"
]
|
[
"<",
"p",
">",
"the",
"id",
"of",
"the",
"violation",
"event",
"<",
"/",
"p",
">"
]
| [
"return",
"this",
"violation",
"id",
";"
]
|
[
"<",
"p",
">",
"the",
"id",
"of",
"the",
"active",
"violation",
"<",
"/",
"p",
">"
]
| [
"set",
"violation",
"id",
"(",
"violation",
"id",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"thing",
"responsible",
"for",
"the",
"active",
"violation",
"<",
"/",
"p",
">"
]
| [
"set",
"thing",
"name",
"(",
"thing",
"name",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"security",
"profile",
"whose",
"behavior",
"is",
"in",
"violation",
"<",
"/",
"p",
">"
]
| [
"set",
"security",
"profile",
"name",
"(",
"security",
"profile",
"name",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"behavior",
"which",
"was",
"violated",
"<",
"/",
"p",
">"
]
| [
"this",
"behavior",
"=",
"behavior",
";"
]
|
[
"<",
"p",
">",
"the",
"behavior",
"which",
"was",
"violated",
"<",
"/",
"p",
">"
]
| [
"return",
"this",
"behavior",
";"
]
|
[
"<",
"p",
">",
"the",
"behavior",
"which",
"is",
"being",
"violated",
"<",
"/",
"p",
">"
]
| [
"set",
"behavior",
"(",
"behavior",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"value",
"of",
"the",
"metric",
"(",
"the",
"measurement",
")",
"which",
"caused",
"the",
"most",
"recent",
"violation",
"<",
"/",
"p",
">"
]
| [
"this",
"last",
"violation",
"value",
"=",
"last",
"violation",
"value",
";"
]
|
[
"<",
"p",
">",
"the",
"value",
"of",
"the",
"metric",
"(",
"the",
"measurement",
")",
"which",
"caused",
"the",
"most",
"recent",
"violation",
"<",
"/",
"p",
">"
]
| [
"return",
"this",
"last",
"violation",
"value",
";"
]
|
[
"<",
"p",
">",
"the",
"value",
"of",
"the",
"metric",
"(",
"the",
"measurement",
")",
"which",
"caused",
"the",
"most",
"recent",
"violation",
"<",
"/",
"p",
">"
]
| [
"set",
"last",
"violation",
"value",
"(",
"last",
"violation",
"value",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"time",
"the",
"most",
"recent",
"violation",
"occurred",
"<",
"/",
"p",
">"
]
| [
"this",
"last",
"violation",
"time",
"=",
"last",
"violation",
"time",
";"
]
|
[
"<",
"p",
">",
"the",
"time",
"the",
"most",
"recent",
"violation",
"occurred",
"<",
"/",
"p",
">"
]
| [
"return",
"this",
"last",
"violation",
"time",
";"
]
|
[
"<",
"p",
">",
"the",
"time",
"the",
"most",
"recent",
"violation",
"occurred",
"<",
"/",
"p",
">"
]
| [
"set",
"last",
"violation",
"time",
"(",
"last",
"violation",
"time",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"time",
"the",
"violation",
"started",
"<",
"/",
"p",
">"
]
| [
"this",
"violation",
"start",
"time",
"=",
"violation",
"start",
"time",
";"
]
|
[
"<",
"p",
">",
"the",
"time",
"the",
"violation",
"started",
"<",
"/",
"p",
">"
]
| [
"return",
"this",
"violation",
"start",
"time",
";"
]
|
[
"<",
"p",
">",
"the",
"time",
"the",
"violation",
"started",
"<",
"/",
"p",
">"
]
| [
"set",
"violation",
"start",
"time",
"(",
"violation",
"start",
"time",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"action",
"to",
"perform",
":",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"create",
"<",
"/",
"code",
">",
":",
"creates",
"a",
"resource",
"record",
"set",
"that",
"has",
"the",
"specified",
"values",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"delete",
"<",
"/",
"code",
">",
":",
"deletes",
"a",
"existing",
"resource",
"record",
"set",
"<",
"/",
"p",
">",
"<",
"important",
">",
"<",
"p",
">",
"to",
"delete",
"the",
"resource",
"record",
"set",
"that",
"is",
"associated",
"with",
"a",
"traffic",
"policy",
"instance",
"use",
"<",
"code",
">",
"<",
"a",
">",
"delete",
"traffic",
"policy",
"instance",
"<",
"/",
"a",
">",
"<",
"/",
"code",
">",
"amazon",
"route",
"53",
"will",
"delete",
"the",
"resource",
"record",
"set",
"automatically",
"if",
"you",
"delete",
"the",
"resource",
"record",
"set",
"by",
"using",
"<",
"code",
">",
"change",
"resource",
"record",
"sets",
"<",
"/",
"code",
">",
"amazon",
"route",
"53",
"doesn",
"t",
"automatically",
"delete",
"the",
"traffic",
"policy",
"instance",
"and",
"you",
"ll",
"continue",
"to",
"be",
"charged",
"for",
"it",
"even",
"though",
"it",
"s",
"no",
"longer",
"in",
"use",
"<",
"/",
"p",
">",
"<",
"/",
"important",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"upsert",
"<",
"/",
"code",
">",
":",
"if",
"a",
"resource",
"record",
"set",
"doesn",
"t",
"already",
"exist",
"amazon",
"route",
"53",
"creates",
"it",
"if",
"a",
"resource",
"record",
"set",
"does",
"exist",
"amazon",
"route",
"53",
"updates",
"it",
"with",
"the",
"values",
"in",
"the",
"request",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">"
]
| [
"set",
"action",
"(",
"action",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"action",
"to",
"perform",
":",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"create",
"<",
"/",
"code",
">",
":",
"creates",
"a",
"resource",
"record",
"set",
"that",
"has",
"the",
"specified",
"values",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"delete",
"<",
"/",
"code",
">",
":",
"deletes",
"a",
"existing",
"resource",
"record",
"set",
"<",
"/",
"p",
">",
"<",
"important",
">",
"<",
"p",
">",
"to",
"delete",
"the",
"resource",
"record",
"set",
"that",
"is",
"associated",
"with",
"a",
"traffic",
"policy",
"instance",
"use",
"<",
"code",
">",
"<",
"a",
">",
"delete",
"traffic",
"policy",
"instance",
"<",
"/",
"a",
">",
"<",
"/",
"code",
">",
"amazon",
"route",
"53",
"will",
"delete",
"the",
"resource",
"record",
"set",
"automatically",
"if",
"you",
"delete",
"the",
"resource",
"record",
"set",
"by",
"using",
"<",
"code",
">",
"change",
"resource",
"record",
"sets",
"<",
"/",
"code",
">",
"amazon",
"route",
"53",
"doesn",
"t",
"automatically",
"delete",
"the",
"traffic",
"policy",
"instance",
"and",
"you",
"ll",
"continue",
"to",
"be",
"charged",
"for",
"it",
"even",
"though",
"it",
"s",
"no",
"longer",
"in",
"use",
"<",
"/",
"p",
">",
"<",
"/",
"important",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"upsert",
"<",
"/",
"code",
">",
":",
"if",
"a",
"resource",
"record",
"set",
"doesn",
"t",
"already",
"exist",
"amazon",
"route",
"53",
"creates",
"it",
"if",
"a",
"resource",
"record",
"set",
"does",
"exist",
"amazon",
"route",
"53",
"updates",
"it",
"with",
"the",
"values",
"in",
"the",
"request",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">"
]
| [
"this",
"action",
"=",
"action",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"information",
"about",
"the",
"resource",
"record",
"set",
"to",
"create",
"delete",
"or",
"update",
"<",
"/",
"p",
">"
]
| [
"this",
"resource",
"record",
"set",
"=",
"resource",
"record",
"set",
";"
]
|
[
"<",
"p",
">",
"information",
"about",
"the",
"resource",
"record",
"set",
"to",
"create",
"delete",
"or",
"update",
"<",
"/",
"p",
">"
]
| [
"return",
"this",
"resource",
"record",
"set",
";"
]
|
[
"<",
"p",
">",
"information",
"about",
"the",
"resource",
"record",
"set",
"to",
"create",
"delete",
"or",
"update",
"<",
"/",
"p",
">"
]
| [
"set",
"resource",
"record",
"set",
"(",
"resource",
"record",
"set",
")",
";",
"return",
"this",
";"
]
|
[
"makes",
"an",
"arbitrary",
"vector",
"perpendicular",
"to",
"<",
"b",
">",
"src",
"<",
"/",
"b",
">",
"and",
"inserts",
"it",
"into",
"<",
"b",
">",
"dest",
"<",
"/",
"b",
">",
"returns",
"false",
"if",
"the",
"source",
"vector",
"was",
"equal",
"to",
"(",
"0",
"0",
"0",
")"
]
| [
"if",
"(",
"(",
"src",
"x",
"(",
")",
"=",
"=",
"0",
"0f",
")",
"&",
"&",
"(",
"src",
"y",
"(",
")",
"=",
"=",
"0",
"0f",
")",
"&",
"&",
"(",
"src",
"z",
"(",
")",
"=",
"=",
"0",
"0f",
")",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"src",
"x",
"(",
")",
"!",
"=",
"0",
"0f",
")",
"{",
"if",
"(",
"src",
"y",
"(",
")",
"!",
"=",
"0",
"0f",
")",
"{",
"dest",
"set",
"(",
"-",
"src",
"y",
"(",
")",
",",
"src",
"x",
"(",
")",
",",
"0",
"0f",
")",
";",
"}",
"else",
"{",
"dest",
"set",
"(",
"-",
"src",
"z",
"(",
")",
",",
"0",
"0f",
",",
"src",
"x",
"(",
")",
")",
";",
"}",
"}",
"else",
"{",
"dest",
"set",
"(",
"1",
"0f",
",",
"0",
"0f",
",",
"0",
"0f",
")",
";",
"}",
"return",
"true",
";"
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.