docstring_tokens
list
code_tokens
list
[ "joins", "the", "given", "keys", "with", "the", "separator" ]
[ "return", "string", "utils", "join", "(", "keys", ",", "separator", ")", ";" ]
[ "returns", "whether", "the", "string", "contains", "null", "character" ]
[ "return", "input", "index", "of", "(", "null", "character", ")", ">", "=", "0", ";" ]
[ "removes", "the", "null", "characters", "from", "a", "string" ]
[ "if", "(", "!", "contains", "null", "character", "(", "input", ")", ")", "{", "return", "input", ";", "}", "char", "[", "]", "chars", "=", "input", "to", "char", "array", "(", ")", ";", "int", "length", "=", "chars", "length", ";", "int", "index", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "+", "+", ")", "{", "if", "(", "chars", "[", "i", "]", "!", "=", "null", "character", ")", "{", "chars", "[", "index", "+", "+", "]", "=", "chars", "[", "i", "]", ";", "}", "}", "return", "new", "string", "(", "chars", ",", "0", ",", "index", ")", ";" ]
[ "main", "program" ]
[ "int", "ret", "=", "tool", "runner", "run", "(", "h", "base", "configuration", "create", "(", ")", ",", "new", "replication", "sync", "up", "(", ")", ",", "args", ")", ";", "system", "exit", "(", "ret", ")", ";" ]
[ "overrides", "the", "base", "class", "behavior", "to", "enforce", "running", "in", "an", "application", "context", "all", "accessors", "will", "throw", "illegal", "state", "exception", "if", "not", "running", "in", "a", "context" ]
[ "return", "true", ";" ]
[ "calls", "{" ]
[ "super", "init", "application", "context", "(", "context", ")", ";", "if", "(", "this", "servlet", "context", "=", "=", "null", "&", "&", "context", "instanceof", "web", "application", "context", ")", "{", "this", "servlet", "context", "=", "(", "(", "web", "application", "context", ")", "context", ")", "get", "servlet", "context", "(", ")", ";", "if", "(", "this", "servlet", "context", "!", "=", "null", ")", "{", "init", "servlet", "context", "(", "this", "servlet", "context", ")", ";", "}", "}" ]
[ "subclasses", "may", "override", "this", "for", "custom", "initialization", "based", "on", "the", "servlet", "context", "that", "this", "application", "object", "runs", "in", "<", "p", ">", "the", "default", "implementation", "is", "empty", "called", "by", "{" ]
[]
[ "corresponds", "to", "<", "code", ">", "post", "/", "transfer", "<", "/", "code", ">", "end", "point" ]
[ "bitbay", "base", "response", "resp", "=", "bitbay", "authenticated", "transfer", "(", "api", "key", ",", "sign", ",", "exchange", "get", "nonce", "factory", "(", ")", ",", "currency", "get", "currency", "code", "(", ")", ",", "quantity", "to", "string", "(", ")", ",", "address", ")", ";", "if", "(", "resp", "get", "message", "(", ")", "!", "=", "null", ")", "throw", "new", "exchange", "exception", "(", "resp", "get", "message", "(", ")", ")", ";", "return", "resp", ";" ]
[ "corresponds", "to", "<", "code", ">", "post", "/", "withdraw", "<", "/", "code", ">", "end", "point" ]
[ "bitbay", "base", "response", "resp", "=", "bitbay", "authenticated", "withdraw", "(", "api", "key", ",", "sign", ",", "exchange", "get", "nonce", "factory", "(", ")", ",", "currency", "get", "currency", "code", "(", ")", ",", "quantity", "to", "string", "(", ")", ",", "account", ",", "boolean", "to", "string", "(", "express", ")", ",", "bic", "or", "swift", "code", ")", ";", "if", "(", "resp", "get", "message", "(", ")", "!", "=", "null", ")", "throw", "new", "exchange", "exception", "(", "resp", "get", "message", "(", ")", ")", ";", "return", "resp", ";" ]
[ "create", "a", "{", "@", "code", "ltrim", "(", "str", ")", "}", "expression" ]
[ "return", "expressions", "string", "operation", "(", "ops", "string", "ops", "ltrim", ",", "str", ")", ";" ]
[ "create", "a", "{", "@", "code", "rtrim", "(", "str", ")", "}", "expression" ]
[ "return", "expressions", "string", "operation", "(", "ops", "string", "ops", "rtrim", ",", "str", ")", ";" ]
[ "create", "a", "{", "@", "code", "lpad", "(", "in", "length", ")", "}", "expression" ]
[ "return", "expressions", "string", "operation", "(", "ops", "string", "ops", "lpad", ",", "in", ",", "constant", "impl", "create", "(", "length", ")", ")", ";" ]
[ "create", "a", "{", "@", "code", "lpad", "(", "in", "length", ")", "}", "expression" ]
[ "return", "expressions", "string", "operation", "(", "ops", "string", "ops", "lpad", ",", "in", ",", "length", ")", ";" ]
[ "create", "a", "{", "@", "code", "rpad", "(", "in", "length", ")", "}", "expression" ]
[ "return", "expressions", "string", "operation", "(", "ops", "string", "ops", "rpad", ",", "in", ",", "constant", "impl", "create", "(", "length", ")", ")", ";" ]
[ "create", "a", "{", "@", "code", "rpad", "(", "in", "length", ")", "}", "expression" ]
[ "return", "expressions", "string", "operation", "(", "ops", "string", "ops", "rpad", ",", "in", ",", "length", ")", ";" ]
[ "create", "a", "{", "@", "code", "lpad", "(", "in", "length", "c", ")", "}", "expression" ]
[ "return", "expressions", "string", "operation", "(", "ops", "string", "ops", "lpad2", ",", "in", ",", "length", ",", "constant", "impl", "create", "(", "c", ")", ")", ";" ]
[ "create", "a", "{", "@", "code", "lpad", "(", "in", "length", "c", ")", "}", "expression" ]
[ "return", "expressions", "string", "operation", "(", "ops", "string", "ops", "lpad2", ",", "in", ",", "constant", "impl", "create", "(", "length", ")", ",", "constant", "impl", "create", "(", "c", ")", ")", ";" ]
[ "create", "a", "{", "@", "code", "rpad", "(", "in", "length", "c", ")", "}", "expression" ]
[ "return", "expressions", "string", "operation", "(", "ops", "string", "ops", "rpad2", ",", "in", ",", "length", ",", "constant", "impl", "create", "(", "c", ")", ")", ";" ]
[ "create", "a", "{", "@", "code", "rpad", "(", "in", "length", "c", ")", "}", "expression" ]
[ "return", "expressions", "string", "operation", "(", "ops", "string", "ops", "rpad2", ",", "in", ",", "constant", "impl", "create", "(", "length", ")", ",", "constant", "impl", "create", "(", "c", ")", ")", ";" ]
[ "blast", "some", "random", "strings", "through", "the", "analyzer" ]
[ "analyzer", "analyzer", "=", "new", "keyword", "analyzer", "(", ")", ";", "check", "random", "data", "(", "random", "(", ")", ",", "analyzer", ",", "1000", "*", "random", "multiplier", ")", ";", "analyzer", "close", "(", ")", ";" ]
[ "see", "if", "this", "is", "a", "property", "that", "responds", "to", "on", "/", "off", "for", "now", "these", "properties", "are", "either", "2", "chars", "long", "(", "pw", "zm", "z2", ")", "or", "are", "a", "zone", "property", "and", "4", "chars", "long", "(", "z2mu", ")" ]
[ "return", "property", "length", "(", ")", "=", "=", "2", "|", "|", "(", "is", "zone", "command", "(", ")", "&", "&", "property", "length", "(", ")", "=", "=", "4", ")", ";" ]
[ "some", "properties", "need", "a", "translation", "from", "the", "property", "name", "in", "open", "h", "a", "b", "to", "the", "actual", "command", "we", "need", "to", "send", "to", "the", "receiver" ]
[ "if", "(", "is", "zone", "command", "(", ")", ")", "{", "if", "(", "get", "zone", "command", "(", ")", "equals", "(", "denon", "property", "zone", "volume", "get", "code", "(", ")", ")", ")", "{", "return", "get", "zone", "(", ")", ";", "}", "}", "return", "get", "property", "(", ")", ";" ]
[ "sets", "the", "components", "of", "this", "{", "@", "link", "quaternion", "}" ]
[ "this", "w", "=", "w", ";", "this", "x", "=", "x", ";", "this", "y", "=", "y", ";", "this", "z", "=", "z", ";", "return", "this", ";" ]
[ "sets", "the", "components", "of", "this", "{", "@", "link", "quaternion", "}", "from", "those", "of", "the", "provided", "{", "@", "link", "quaternion", "}" ]
[ "return", "set", "all", "(", "quat", "w", ",", "quat", "x", ",", "quat", "y", ",", "quat", "z", ")", ";" ]
[ "sets", "this", "{", "@", "link", "quaternion", "}", "s", "components", "from", "the", "given", "axis", "and", "angle", "around", "the", "axis" ]
[ "from", "angle", "axis", "(", "vector", "3", "get", "axis", "vector", "(", "axis", ")", ",", "angle", ")", ";", "return", "this", ";" ]
[ "sets", "this", "{", "@", "link", "quaternion", "}", "s", "components", "from", "the", "given", "axis", "vector", "and", "angle", "around", "the", "axis" ]
[ "if", "(", "axis", "is", "zero", "(", ")", ")", "{", "return", "identity", "(", ")", ";", "}", "else", "{", "m", "tmp", "vec", "1", "set", "all", "(", "axis", ")", ";", "if", "(", "!", "m", "tmp", "vec", "1", "is", "unit", "(", ")", ")", "{", "m", "tmp", "vec", "1", "normalize", "(", ")", ";", "}", "double", "radian", "=", "math", "util", "degrees", "to", "radians", "(", "angle", ")", ";", "double", "half", "angle", "=", "radian", "*", "5", ";", "double", "half", "angle", "sin", "=", "math", "sin", "(", "half", "angle", ")", ";", "w", "=", "math", "cos", "(", "half", "angle", ")", ";", "x", "=", "half", "angle", "sin", "*", "m", "tmp", "vec", "1", "x", ";", "y", "=", "half", "angle", "sin", "*", "m", "tmp", "vec", "1", "y", ";", "z", "=", "half", "angle", "sin", "*", "m", "tmp", "vec", "1", "z", ";", "return", "this", ";", "}" ]
[ "sets", "this", "{", "@", "link", "quaternion", "}", "s", "components", "from", "the", "given", "axis", "vector", "and", "angle", "around", "the", "axis" ]
[ "return", "this", "from", "angle", "axis", "(", "new", "vector", "3", "(", "x", ",", "y", ",", "z", ")", ",", "angle", ")", ";" ]
[ "sets", "this", "{", "@", "link", "quaternion", "}", "s", "components", "from", "the", "given", "x", "y", "anx", "z", "axis", "{", "@", "link", "vector", "3", "}", "s", "the", "inputs", "must", "be", "ortho", "-", "normal" ]
[ "return", "from", "axes", "(", "x", "axis", "x", ",", "x", "axis", "y", ",", "x", "axis", "z", ",", "y", "axis", "x", ",", "y", "axis", "y", ",", "y", "axis", "z", ",", "z", "axis", "x", ",", "z", "axis", "y", ",", "z", "axis", "z", ")", ";" ]
[ "sets", "this", "{", "@", "link", "quaternion", "}", "s", "components", "from", "the", "given", "matrix" ]
[ "double", "[", "]", "value", "=", "new", "double", "[", "16", "]", ";", "matrix", "to", "array", "(", "value", ")", ";", "from", "axes", "(", "value", "[", "matrix", "4", "m00", "]", ",", "value", "[", "matrix", "4", "m10", "]", ",", "value", "[", "matrix", "4", "m20", "]", ",", "value", "[", "matrix", "4", "m01", "]", ",", "value", "[", "matrix", "4", "m11", "]", ",", "value", "[", "matrix", "4", "m21", "]", ",", "value", "[", "matrix", "4", "m02", "]", ",", "value", "[", "matrix", "4", "m12", "]", ",", "value", "[", "matrix", "4", "m22", "]", ")", ";", "return", "this", ";" ]
[ "sets", "this", "{", "@", "link", "quaternion", "}", "s", "components", "from", "the", "given", "matrix" ]
[ "from", "axes", "(", "matrix", "[", "matrix", "4", "m00", "]", ",", "matrix", "[", "matrix", "4", "m10", "]", ",", "matrix", "[", "matrix", "4", "m20", "]", ",", "matrix", "[", "matrix", "4", "m01", "]", ",", "matrix", "[", "matrix", "4", "m11", "]", ",", "matrix", "[", "matrix", "4", "m21", "]", ",", "matrix", "[", "matrix", "4", "m02", "]", ",", "matrix", "[", "matrix", "4", "m12", "]", ",", "matrix", "[", "matrix", "4", "m22", "]", ")", ";", "return", "this", ";" ]
[ "sets", "this", "{", "@", "link", "quaternion", "}", "from", "the", "given", "euler", "angles" ]
[ "yaw", "=", "math", "to", "radians", "(", "yaw", ")", ";", "pitch", "=", "math", "to", "radians", "(", "pitch", ")", ";", "roll", "=", "math", "to", "radians", "(", "roll", ")", ";", "double", "hr", "=", "roll", "*", "0", "5", ";", "double", "shr", "=", "math", "sin", "(", "hr", ")", ";", "double", "chr", "=", "math", "cos", "(", "hr", ")", ";", "double", "hp", "=", "pitch", "*", "0", "5", ";", "double", "shp", "=", "math", "sin", "(", "hp", ")", ";", "double", "chp", "=", "math", "cos", "(", "hp", ")", ";", "double", "hy", "=", "yaw", "*", "0", "5", ";", "double", "shy", "=", "math", "sin", "(", "hy", ")", ";", "double", "chy", "=", "math", "cos", "(", "hy", ")", ";", "double", "chy", "shp", "=", "chy", "*", "shp", ";", "double", "shy", "chp", "=", "shy", "*", "chp", ";", "double", "chy", "chp", "=", "chy", "*", "chp", ";", "double", "shy", "shp", "=", "shy", "*", "shp", ";", "x", "=", "(", "chy", "shp", "*", "chr", ")", "+", "(", "shy", "chp", "*", "shr", ")", ";", "y", "=", "(", "shy", "chp", "*", "chr", ")", "-", "(", "chy", "shp", "*", "shr", ")", ";", "z", "=", "(", "chy", "chp", "*", "shr", ")", "-", "(", "shy", "shp", "*", "chr", ")", ";", "w", "=", "(", "chy", "chp", "*", "chr", ")", "+", "(", "shy", "shp", "*", "shr", ")", ";", "return", "this", ";" ]
[ "sets", "this", "{", "@", "link", "quaternion", "}", "s", "components", "to", "the", "rotation", "between", "the", "given", "two", "vectors", "the", "incoming", "vectors", "should", "be", "normalized", "this", "will", "fail", "if", "the", "two", "vectors", "are", "parallel" ]
[ "m", "tmp", "vec", "1", "set", "all", "(", "x", "1", ",", "y", "1", ",", "z", "1", ")", "normalize", "(", ")", ";", "m", "tmp", "vec", "2", "set", "all", "(", "x", "2", ",", "y", "2", ",", "z", "2", ")", "normalize", "(", ")", ";", "return", "from", "rotation", "between", "(", "m", "tmp", "vec", "1", ",", "m", "tmp", "vec", "2", ")", ";" ]
[ "creates", "a", "new", "{", "@", "link", "quaternion", "}", "and", "sets", "its", "components", "to", "the", "rotation", "between", "the", "given", "two", "vectors", "the", "incoming", "vectors", "should", "be", "normalized" ]
[ "quaternion", "q", "=", "new", "quaternion", "(", ")", ";", "q", "from", "rotation", "between", "(", "u", ",", "v", ")", ";", "return", "q", ";" ]
[ "adds", "the", "provided", "{", "@", "link", "quaternion", "}", "to", "this", "one", "this", "=", "this", "+", "quat" ]
[ "w", "+", "=", "quat", "w", ";", "x", "+", "=", "quat", "x", ";", "y", "+", "=", "quat", "y", ";", "z", "+", "=", "quat", "z", ";", "return", "this", ";" ]
[ "subtracts", "the", "provided", "{", "@", "link", "quaternion", "}", "from", "this", "one", "this", "=", "this", "-", "quat" ]
[ "w", "-", "=", "quat", "w", ";", "x", "-", "=", "quat", "x", ";", "y", "-", "=", "quat", "y", ";", "z", "-", "=", "quat", "z", ";", "return", "this", ";" ]
[ "multiplies", "each", "component", "of", "this", "{", "@", "link", "quaternion", "}", "by", "the", "input", "value" ]
[ "w", "*", "=", "scalar", ";", "x", "*", "=", "scalar", ";", "y", "*", "=", "scalar", ";", "z", "*", "=", "scalar", ";", "return", "this", ";" ]
[ "multiplies", "this", "{", "@", "link", "quaternion", "}", "with", "another", "one", "this", "=", "this", "*", "quat" ]
[ "final", "double", "t", "w", "=", "w", ";", "final", "double", "t", "x", "=", "x", ";", "final", "double", "t", "y", "=", "y", ";", "final", "double", "t", "z", "=", "z", ";", "w", "=", "t", "w", "*", "quat", "w", "-", "t", "x", "*", "quat", "x", "-", "t", "y", "*", "quat", "y", "-", "t", "z", "*", "quat", "z", ";", "x", "=", "t", "w", "*", "quat", "x", "+", "t", "x", "*", "quat", "w", "+", "t", "y", "*", "quat", "z", "-", "t", "z", "*", "quat", "y", ";", "y", "=", "t", "w", "*", "quat", "y", "+", "t", "y", "*", "quat", "w", "+", "t", "z", "*", "quat", "x", "-", "t", "x", "*", "quat", "z", ";", "z", "=", "t", "w", "*", "quat", "z", "+", "t", "z", "*", "quat", "w", "+", "t", "x", "*", "quat", "y", "-", "t", "y", "*", "quat", "x", ";", "return", "this", ";" ]
[ "multiplies", "this", "{", "@", "link", "quaternion", "}", "by", "a", "{", "@", "link", "vector", "3", "}", "note", "that", "if", "you", "plan", "on", "using", "the", "returned", "{", "@", "link", "vector", "3", "}", "you", "should", "clone", "it", "immediately", "as", "it", "is", "an", "internal", "scratch", "member", "of", "this", "{", "@", "link", "quaternion", "}", "and", "may", "be", "modified", "at", "any", "time", "this", "is", "the", "same", "as", "out", "=", "q", "*", "vector", "*", "q", "meaning", "the", "magnitude", "will", "be", "maintained" ]
[ "m", "tmp", "vec", "3", "set", "all", "(", "x", ",", "y", ",", "z", ")", ";", "m", "tmp", "vec", "1", "cross", "and", "set", "(", "m", "tmp", "vec", "3", ",", "vector", ")", ";", "m", "tmp", "vec", "2", "cross", "and", "set", "(", "m", "tmp", "vec", "3", ",", "m", "tmp", "vec", "1", ")", ";", "m", "tmp", "vec", "1", "multiply", "(", "2", "0", "*", "w", ")", ";", "m", "tmp", "vec", "2", "multiply", "(", "2", "0", ")", ";", "m", "tmp", "vec", "1", "add", "(", "m", "tmp", "vec", "2", ")", ";", "m", "tmp", "vec", "1", "add", "(", "vector", ")", ";", "return", "m", "tmp", "vec", "1", ";" ]
[ "multiplies", "this", "{", "@", "link", "quaternion", "}", "with", "another", "this", "=", "quat", "*", "this" ]
[ "final", "double", "new", "w", "=", "quat", "w", "*", "w", "-", "quat", "x", "*", "x", "-", "quat", "y", "*", "y", "-", "quat", "z", "*", "z", ";", "final", "double", "new", "x", "=", "quat", "w", "*", "x", "+", "quat", "x", "*", "w", "+", "quat", "y", "*", "z", "-", "quat", "z", "*", "y", ";", "final", "double", "new", "y", "=", "quat", "w", "*", "y", "+", "quat", "y", "*", "w", "+", "quat", "z", "*", "x", "-", "quat", "x", "*", "z", ";", "final", "double", "new", "z", "=", "quat", "w", "*", "z", "+", "quat", "z", "*", "w", "+", "quat", "x", "*", "y", "-", "quat", "y", "*", "x", ";", "return", "set", "all", "(", "new", "w", ",", "new", "x", ",", "new", "y", ",", "new", "z", ")", ";" ]
[ "normalizes", "this", "{", "@", "link", "quaternion", "}", "to", "unit", "length" ]
[ "double", "len", "=", "length", "2", "(", ")", ";", "if", "(", "len", "!", "=", "0", "&", "&", "(", "math", "abs", "(", "len", "-", "1", "0", ")", ">", "normalization", "tolerance", ")", ")", "{", "double", "factor", "=", "1", "0", "/", "math", "sqrt", "(", "len", ")", ";", "multiply", "(", "factor", ")", ";", "}", "return", "len", ";" ]
[ "conjugate", "this", "{", "@", "link", "quaternion", "}" ]
[ "x", "=", "-", "x", ";", "y", "=", "-", "y", ";", "z", "=", "-", "z", ";", "return", "this", ";" ]
[ "set", "this", "{", "@", "link", "quaternion", "}", "to", "the", "normalized", "inverse", "of", "itself" ]
[ "final", "double", "norm", "=", "length", "2", "(", ")", ";", "final", "double", "inv", "norm", "=", "1", "0", "/", "norm", ";", "return", "set", "all", "(", "w", "*", "inv", "norm", ",", "-", "x", "*", "inv", "norm", ",", "-", "y", "*", "inv", "norm", ",", "-", "z", "*", "inv", "norm", ")", ";" ]
[ "create", "a", "new", "{", "@", "link", "quaternion", "}", "set", "to", "the", "normalized", "inverse", "of", "this", "one" ]
[ "double", "norm", "=", "length", "2", "(", ")", ";", "double", "inv", "norm", "=", "1", "0", "/", "norm", ";", "return", "new", "quaternion", "(", "w", "*", "inv", "norm", ",", "-", "x", "*", "inv", "norm", ",", "-", "y", "*", "inv", "norm", ",", "-", "z", "*", "inv", "norm", ")", ";" ]
[ "creates", "a", "{", "@", "link", "vector", "3", "}", "which", "represents", "the", "x", "axis", "of", "this", "{", "@", "link", "quaternion", "}" ]
[ "double", "f", "ty", "=", "2", "0", "*", "y", ";", "double", "f", "tz", "=", "2", "0", "*", "z", ";", "double", "f", "twy", "=", "f", "ty", "*", "w", ";", "double", "f", "twz", "=", "f", "tz", "*", "w", ";", "double", "f", "txy", "=", "f", "ty", "*", "x", ";", "double", "f", "txz", "=", "f", "tz", "*", "x", ";", "double", "f", "tyy", "=", "f", "ty", "*", "y", ";", "double", "f", "tzz", "=", "f", "tz", "*", "z", ";", "return", "new", "vector", "3", "(", "1", "-", "(", "f", "tyy", "+", "f", "tzz", ")", ",", "f", "txy", "+", "f", "twz", ",", "f", "txz", "-", "f", "twy", ")", ";" ]
[ "creates", "a", "{", "@", "link", "vector", "3", "}", "which", "represents", "the", "y", "axis", "of", "this", "{", "@", "link", "quaternion", "}" ]
[ "double", "f", "tx", "=", "2", "0", "*", "x", ";", "double", "f", "ty", "=", "2", "0", "*", "y", ";", "double", "f", "tz", "=", "2", "0", "*", "z", ";", "double", "f", "twx", "=", "f", "tx", "*", "w", ";", "double", "f", "twz", "=", "f", "tz", "*", "w", ";", "double", "f", "txx", "=", "f", "tx", "*", "x", ";", "double", "f", "txy", "=", "f", "ty", "*", "x", ";", "double", "f", "tyz", "=", "f", "tz", "*", "y", ";", "double", "f", "tzz", "=", "f", "tz", "*", "z", ";", "return", "new", "vector", "3", "(", "f", "txy", "-", "f", "twz", ",", "1", "-", "(", "f", "txx", "+", "f", "tzz", ")", ",", "f", "tyz", "+", "f", "twx", ")", ";" ]
[ "creates", "a", "{", "@", "link", "vector", "3", "}", "which", "represents", "the", "z", "axis", "of", "this", "{", "@", "link", "quaternion", "}" ]
[ "double", "f", "tx", "=", "2", "0", "*", "x", ";", "double", "f", "ty", "=", "2", "0", "*", "y", ";", "double", "f", "tz", "=", "2", "0", "*", "z", ";", "double", "f", "twx", "=", "f", "tx", "*", "w", ";", "double", "f", "twy", "=", "f", "ty", "*", "w", ";", "double", "f", "txx", "=", "f", "tx", "*", "x", ";", "double", "f", "txz", "=", "f", "tz", "*", "x", ";", "double", "f", "tyy", "=", "f", "ty", "*", "y", ";", "double", "f", "tyz", "=", "f", "tz", "*", "y", ";", "return", "new", "vector", "3", "(", "f", "txz", "+", "f", "twy", ",", "f", "tyz", "-", "f", "twx", ",", "1", "-", "(", "f", "txx", "+", "f", "tyy", ")", ")", ";" ]
[ "creates", "a", "{", "@", "link", "vector", "3", "}", "which", "represents", "the", "specified", "axis", "of", "this", "{", "@", "link", "quaternion", "}" ]
[ "if", "(", "axis", "=", "=", "axis", "x", ")", "{", "return", "get", "x", "axis", "(", ")", ";", "}", "else", "if", "(", "axis", "=", "=", "axis", "y", ")", "{", "return", "get", "y", "axis", "(", ")", ";", "}", "else", "{", "return", "get", "z", "axis", "(", ")", ";", "}" ]
[ "calculates", "the", "euclidean", "length", "of", "this", "{", "@", "link", "quaternion", "}" ]
[ "return", "math", "sqrt", "(", "length", "2", "(", ")", ")", ";" ]
[ "calculates", "the", "square", "of", "the", "euclidean", "length", "of", "this", "{", "@", "link", "quaternion", "}" ]
[ "return", "w", "*", "w", "+", "x", "*", "x", "+", "y", "*", "y", "+", "z", "*", "z", ";" ]
[ "calculates", "the", "dot", "product", "between", "this", "and", "another", "{", "@", "link", "quaternion", "}" ]
[ "return", "w", "*", "other", "w", "+", "x", "*", "other", "x", "+", "y", "*", "other", "y", "+", "z", "*", "other", "z", ";" ]
[ "sets", "this", "{", "@", "link", "quaternion", "}", "to", "an", "identity" ]
[ "w", "=", "1", ";", "x", "=", "0", ";", "y", "=", "0", ";", "z", "=", "0", ";", "return", "this", ";" ]
[ "retrieves", "a", "new", "{", "@", "link", "quaternion", "}", "initialized", "to", "identity" ]
[ "return", "new", "quaternion", "(", "1", ",", "0", ",", "0", ",", "0", ")", ";" ]
[ "creates", "a", "new", "{", "@", "link", "quaternion", "}", "q", "initialized", "to", "the", "value", "of", "q", "=", "e", "^", "this" ]
[ "quaternion", "result", "=", "new", "quaternion", "(", "this", ")", ";", "result", "exp", "(", ")", ";", "return", "result", ";" ]
[ "sets", "this", "{", "@", "link", "quaternion", "}", "to", "the", "value", "of", "q", "=", "log", "(", "this", ")" ]
[ "final", "double", "q", "norm", "=", "length", "(", ")", ";", "if", "(", "q", "norm", ">", "0", ")", "{", "final", "double", "v", "norm", "=", "math", "sqrt", "(", "x", "*", "x", "+", "y", "*", "y", "+", "z", "*", "z", ")", ";", "final", "double", "coeff", "=", "math", "acos", "(", "w", "/", "q", "norm", ")", "/", "v", "norm", ";", "w", "=", "math", "log", "(", "q", "norm", ")", ";", "x", "=", "coeff", "*", "x", ";", "y", "=", "coeff", "*", "y", ";", "z", "=", "coeff", "*", "z", ";", "}", "return", "this", ";" ]
[ "creates", "a", "new", "{", "@", "link", "quaternion", "}", "q", "initialized", "to", "the", "value", "of", "q", "=", "log", "(", "this", ")" ]
[ "quaternion", "result", "=", "new", "quaternion", "(", "this", ")", ";", "result", "log", "(", ")", ";", "return", "result", ";" ]
[ "sets", "this", "{", "@", "link", "quaternion", "}", "to", "the", "value", "of", "q", "=", "this", "^", "p" ]
[ "double", "l", "=", "length", "(", ")", ";", "normalize", "(", ")", ";", "return", "log", "(", ")", "multiply", "(", "p", ")", "exp", "(", ")", "multiply", "(", "math", "pow", "(", "l", ",", "p", ")", ")", ";" ]
[ "sets", "this", "{", "@", "link", "quaternion", "}", "to", "the", "value", "of", "q", "=", "this", "^", "p" ]
[ "return", "log", "(", ")", "multiply", "(", "p", ")", "exp", "(", ")", ";" ]
[ "creates", "a", "new", "{", "@", "link", "quaternion", "}", "q", "initialized", "to", "the", "value", "of", "q", "=", "this", "^", "p" ]
[ "return", "(", "new", "quaternion", "(", "this", ")", ")", "pow", "(", "p", ")", ";" ]
[ "creates", "a", "new", "{", "@", "link", "quaternion", "}", "q", "initialized", "to", "the", "value", "of", "q", "=", "this", "^", "p" ]
[ "return", "(", "new", "quaternion", "(", "this", ")", ")", "pow", "(", "p", ")", ";" ]
[ "performs", "spherical", "linear", "interpolation", "between", "this", "and", "the", "provided", "{", "@", "link", "quaternion", "}", "and", "sets", "this", "{", "@", "link", "quaternion", "}", "to", "the", "normalized", "result" ]
[ "return", "slerp", "(", "this", ",", "end", ",", "t", ",", "true", ")", ";" ]
[ "performs", "spherical", "linear", "interpolation", "between", "the", "provided", "{", "@", "link", "quaternion", "}", "s", "and", "sets", "this", "{", "@", "link", "quaternion", "}", "to", "the", "normalized", "result" ]
[ "return", "slerp", "(", "q", "1", ",", "q", "2", ",", "t", ",", "true", ")", ";" ]
[ "performs", "normalized", "linear", "interpolation", "between", "two", "{", "@", "link", "quaternion", "}", "s", "and", "creates", "a", "new", "one", "for", "the", "result" ]
[ "quaternion", "result", "=", "lerp", "(", "q", "1", ",", "q", "2", ",", "t", ",", "shortest", "path", ")", ";", "result", "normalize", "(", ")", ";", "return", "result", ";" ]
[ "get", "the", "pole", "of", "the", "gimbal", "lock", "if", "any", "requires", "that", "this", "{", "@", "link", "quaternion", "}", "be", "normalized" ]
[ "final", "double", "t", "=", "y", "*", "x", "+", "z", "*", "w", ";", "return", "t", ">", "0", "499", "?", "1", ":", "(", "t", "<", "-", "0", "499", "?", "-", "1", ":", "0", ")", ";" ]
[ "gets", "the", "pitch", "angle", "from", "this", "{", "@", "link", "quaternion", "}", "this", "is", "defined", "as", "the", "rotation", "about", "the", "x", "axis", "requires", "that", "this", "{", "@", "link", "quaternion", "}", "be", "normalized" ]
[ "final", "int", "pole", "=", "get", "gimbal", "pole", "(", ")", ";", "return", "pole", "=", "=", "0", "?", "math", "asin", "(", "math", "util", "clamp", "(", "2", "0", "*", "(", "w", "*", "x", "-", "z", "*", "y", ")", ",", "-", "1", "0", ",", "1", "0", ")", ")", ":", "pole", "*", "math", "util", "pi", "*", "0", "5", ";" ]
[ "gets", "the", "yaw", "angle", "from", "this", "{", "@", "link", "quaternion", "}", "this", "is", "defined", "as", "the", "rotation", "about", "the", "y", "axis", "requires", "that", "this", "{", "@", "link", "quaternion", "}", "be", "normalized" ]
[ "return", "get", "gimbal", "pole", "(", ")", "=", "=", "0", "?", "math", "atan", "2", "(", "2", "0", "*", "(", "y", "*", "w", "+", "x", "*", "z", ")", ",", "1", "0", "-", "2", "0", "*", "(", "y", "*", "y", "+", "x", "*", "x", ")", ")", ":", "0", "0", ";" ]
[ "gets", "the", "roll", "angle", "from", "this", "{", "@", "link", "quaternion", "}", "this", "is", "defined", "as", "the", "rotation", "about", "the", "z", "axis", "requires", "that", "this", "{", "@", "link", "quaternion", "}", "be", "normalized" ]
[ "final", "int", "pole", "=", "get", "gimbal", "pole", "(", ")", ";", "return", "pole", "=", "=", "0", "?", "math", "atan", "2", "(", "2", "0", "*", "(", "w", "*", "z", "+", "y", "*", "x", ")", ",", "1", "0", "-", "2", "0", "*", "(", "x", "*", "x", "+", "z", "*", "z", ")", ")", ":", "pole", "*", "2", "0", "*", "math", "atan", "2", "(", "y", ",", "w", ")", ";" ]
[ "creates", "a", "{", "@", "link", "matrix", "4", "}", "representing", "this", "{", "@", "link", "quaternion", "}" ]
[ "matrix", "4", "matrix", "=", "new", "matrix", "4", "(", ")", ";", "to", "rotation", "matrix", "(", "matrix", ")", ";", "return", "matrix", ";" ]
[ "sets", "the", "provided", "{" ]
[ "to", "rotation", "matrix", "(", "matrix", "get", "double", "values", "(", ")", ")", ";", "return", "matrix", ";" ]
[ "sets", "the", "provided", "double", "[", "]", "to", "be", "a", "4x", "4", "rotation", "matrix", "representing", "this", "{", "@", "link", "quaternion", "}", "this", "{", "@", "link", "quaternion", "}", "must", "be", "normalized" ]
[ "final", "double", "x", "2", "=", "x", "*", "x", ";", "final", "double", "y", "2", "=", "y", "*", "y", ";", "final", "double", "z", "2", "=", "z", "*", "z", ";", "final", "double", "xy", "=", "x", "*", "y", ";", "final", "double", "xz", "=", "x", "*", "z", ";", "final", "double", "yz", "=", "y", "*", "z", ";", "final", "double", "wx", "=", "w", "*", "x", ";", "final", "double", "wy", "=", "w", "*", "y", ";", "final", "double", "wz", "=", "w", "*", "z", ";", "matrix", "[", "matrix", "4", "m00", "]", "=", "1", "0", "-", "2", "0", "*", "(", "y", "2", "+", "z", "2", ")", ";", "matrix", "[", "matrix", "4", "m10", "]", "=", "2", "0", "*", "(", "xy", "-", "wz", ")", ";", "matrix", "[", "matrix", "4", "m20", "]", "=", "2", "0", "*", "(", "xz", "+", "wy", ")", ";", "matrix", "[", "matrix", "4", "m30", "]", "=", "0", ";", "matrix", "[", "matrix", "4", "m01", "]", "=", "2", "0", "*", "(", "xy", "+", "wz", ")", ";", "matrix", "[", "matrix", "4", "m11", "]", "=", "1", "0", "-", "2", "0", "*", "(", "x", "2", "+", "z", "2", ")", ";", "matrix", "[", "matrix", "4", "m21", "]", "=", "2", "0", "*", "(", "yz", "-", "wx", ")", ";", "matrix", "[", "matrix", "4", "m31", "]", "=", "0", ";", "matrix", "[", "matrix", "4", "m02", "]", "=", "2", "0", "*", "(", "xz", "-", "wy", ")", ";", "matrix", "[", "matrix", "4", "m12", "]", "=", "2", "0", "*", "(", "yz", "+", "wx", ")", ";", "matrix", "[", "matrix", "4", "m22", "]", "=", "1", "0", "-", "2", "0", "*", "(", "x", "2", "+", "y", "2", ")", ";", "matrix", "[", "matrix", "4", "m32", "]", "=", "0", ";", "matrix", "[", "matrix", "4", "m03", "]", "=", "0", ";", "matrix", "[", "matrix", "4", "m13", "]", "=", "0", ";", "matrix", "[", "matrix", "4", "m23", "]", "=", "0", ";", "matrix", "[", "matrix", "4", "m33", "]", "=", "1", ";" ]
[ "creates", "a", "new", "{", "@", "link", "quaternion", "}", "which", "is", "oriented", "to", "a", "target", "{", "@", "link", "vector", "3", "}", "it", "is", "safe", "to", "use", "the", "input", "vectors", "for", "other", "things", "as", "they", "are", "cloned", "internally" ]
[ "final", "quaternion", "ret", "=", "new", "quaternion", "(", ")", ";", "return", "ret", "look", "at", "(", "look", "at", ",", "up", "direction", ")", ";" ]
[ "measures", "the", "angle", "in", "radians", "between", "this", "{", "@", "link", "quaternion", "}", "and", "another" ]
[ "final", "quaternion", "inv", "=", "clone", "(", ")", "inverse", "(", ")", ";", "final", "quaternion", "res", "=", "inv", "multiply", "left", "(", "other", ")", ";", "return", "2", "0", "*", "math", "acos", "(", "res", "w", ")", ";" ]
[ "clones", "this", "{", "@", "link", "quaternion", "}" ]
[ "return", "new", "quaternion", "(", "w", ",", "x", ",", "y", ",", "z", ")", ";" ]
[ "compares", "this", "{", "@", "link", "quaternion", "}", "to", "another", "with", "a", "tolerance" ]
[ "double", "f", "cos", "=", "dot", "(", "other", ")", ";", "if", "(", "f", "cos", ">", "1", "0", "&", "&", "(", "f", "cos", "-", "1", "0", ")", "<", "tolerance", ")", "{", "return", "true", ";", "}", "double", "angle", "=", "math", "acos", "(", "f", "cos", ")", ";", "return", "(", "math", "abs", "(", "angle", ")", "<", "=", "tolerance", ")", "|", "|", "math", "util", "real", "equal", "(", "angle", ",", "math", "util", "pi", ",", "tolerance", ")", ";" ]
[ "find", "the", "first", "consent", "decision", "for", "a", "given", "{" ]
[ "return", "find", "first", "consent", "decision", "(", "consent", "get", "principal", "(", ")", ",", "consent", "get", "service", "(", ")", ")", ";" ]
[ "returns", "true", "if", "the", "whitespace", "that", "was", "skipped", "included", "any", "line", "terminators" ]
[ "boolean", "found", "line", "terminator", "=", "false", ";", "while", "(", "!", "is", "at", "end", "(", ")", "&", "&", "peek", "whitespace", "(", ")", ")", "{", "if", "(", "is", "line", "terminator", "(", "next", "char", "(", ")", ")", ")", "{", "found", "line", "terminator", "=", "true", ";", "}", "}", "return", "found", "line", "terminator", ";" ]
[ "7", "4", "comments" ]
[ "while", "(", "skip", "comment", "(", ")", ")", "{", "}" ]
[ "the", "method", "shifts", "the", "index", "by", "a", "given", "value" ]
[ "if", "(", "predicate", "=", "=", "null", "|", "|", "predicate", "execute", "(", "index", ")", ")", "{", "index", "+", "=", "shift", ";", "}" ]
[ "<", "p", ">", "prompts", "for", "information", "from", "the", "user", "<", "/", "p", ">" ]
[ "this", "prompt", "=", "prompt", ";" ]
[ "<", "p", ">", "prompts", "for", "information", "from", "the", "user", "<", "/", "p", ">" ]
[ "return", "this", "prompt", ";" ]
[ "<", "p", ">", "prompts", "for", "information", "from", "the", "user", "<", "/", "p", ">" ]
[ "set", "prompt", "(", "prompt", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "if", "the", "user", "answers", "no", "to", "the", "question", "defined", "in", "the", "<", "code", ">", "prompt", "<", "/", "code", ">", "field", "amazon", "lex", "responds", "with", "this", "statement", "to", "acknowledge", "that", "the", "intent", "was", "canceled", "<", "/", "p", ">" ]
[ "set", "rejection", "statement", "(", "rejection", "statement", ")", ";", "return", "this", ";" ]
[ "returns", "the", "map", "of", "all", "bindings", "available", "to", "this", "{" ]
[ "return", "linked", "bindings", ";" ]
[ "don", "t", "permit", "bindings", "to", "be", "linked", "without", "a", "lock", "callers", "should", "lock", "before", "requesting", "any", "bindings", "link", "the", "requested", "bindings", "retrieve", "the", "linked", "bindings", "and", "then", "release", "the", "lock" ]
[ "if", "(", "!", "thread", "holds", "lock", "(", "this", ")", ")", "throw", "new", "assertion", "error", "(", ")", ";" ]
[ "returns", "the", "binding", "if", "it", "exists", "immediately", "otherwise", "this", "returns", "null", "if", "the", "returned", "binding", "didn", "t", "exist", "or", "was", "unlinked", "it", "will", "be", "enqueued", "to", "be", "linked" ]
[ "return", "request", "binding", "(", "key", ",", "required", "by", ",", "class", "loader", ",", "true", ",", "true", ")", ";" ]
[ "enqueue", "{" ]
[ "errors", "add", "(", "message", ")", ";" ]
[ "{" ]
[ "inner", "log", "=", "new", "inner", "logger", "(", ")", ";", "ignite", "configuration", "i", "cfg", "=", "new", "ignite", "configuration", "(", ")", ";", "i", "cfg", "set", "client", "mode", "(", "false", ")", ";", "ctx", "=", "new", "grid", "test", "kernal", "context", "(", "inner", "log", ",", "i", "cfg", ")", "{", "@", "override", "public", "ignite", "logger", "log", "(", "class", "<", "?", ">", "cls", ")", "{", "return", "inner", "log", ";", "}", "}", ";", "ctx", "set", "system", "executor", "service", "(", "executors", "new", "fixed", "thread", "pool", "(", "threads", ")", ")", ";", "ctx", "add", "(", "new", "pool", "processor", "(", "ctx", ")", ")", ";", "ctx", "add", "(", "new", "grid", "closure", "processor", "(", "ctx", ")", ")", ";" ]
[ "executes", "on", "updated" ]
[ "counter", "increment", "and", "get", "(", ")", ";", "marshaller", "context", "impl", "marshaller", "context", "=", "new", "marshaller", "context", "impl", "(", "null", ",", "null", ")", ";", "marshaller", "context", "on", "marshaller", "processor", "started", "(", "ctx", ",", "null", ")", ";", "marshaller", "mapping", "item", "item", "=", "new", "marshaller", "mapping", "item", "(", "java", "id", ",", "1", ",", "string", "class", "get", "name", "(", ")", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "400", ";", "i", "+", "+", ")", "marshaller", "context", "on", "mapping", "accepted", "(", "item", ")", ";" ]
[ "returns", "true", "if", "and", "only", "if", "this", "string", "contains", "the", "specified", "sequence", "of", "char", "values" ]
[ "for", "(", "string", "text", ":", "logs", ")", "if", "(", "text", "!", "=", "null", "&", "&", "text", "contains", "(", "str", ")", ")", "return", "true", ";", "return", "false", ";" ]
[ "{" ]
[ "logs", "add", "(", "msg", ")", ";" ]
[ "gets", "the", "geo", "j", "s", "o", "n", "object", "type" ]
[ "public", "abstract", "geo", "json", "object", "type", "get", "type", "(", ")", ";" ]
[ "gets", "the", "coordinate", "reference", "system", "which", "may", "be", "null" ]
[ "return", "coordinate", "reference", "system", ";" ]
[ "pass", "null", "for", "the", "client", "to", "query", "the", "local", "server" ]
[ "string", "resp", ";", "resp", "=", "get", "j", "s", "o", "n", "(", "client", ",", "args", ")", ";", "match", "j", "s", "o", "n", "(", "resp", ",", "tests", ")", ";" ]
[ "*", "public", "static", "void", "clear", "n", "cache", "(", ")", "{", "solr", "query", "request", "req", "=", "req", "(", ")", ";", "req", "get", "searcher", "(", ")", "getn", "cache", "(", ")", "clear", "(", ")", ";", "/", "/", "off", "-", "heap", "req", "close", "(", ")", ";", "}", "*", "*" ]
[ "solr", "query", "request", "req", "=", "req", "(", ")", ";", "req", "get", "searcher", "(", ")", ";", "req", "close", "(", ")", ";" ]
[ "for", "params", "set", "(", "shards", "get", "shards", "(", ")", ")" ]
[ "return", "get", "shards", "param", "(", "slist", ")", ";" ]
[ "<", "p", ">", "the", "authorizer", "name", "<", "/", "p", ">" ]
[ "set", "authorizer", "name", "(", "authorizer", "name", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "the", "authorizer", "arn", "<", "/", "p", ">" ]
[ "set", "authorizer", "arn", "(", "authorizer", "arn", ")", ";", "return", "this", ";" ]
[ "returns", "the", "moon", "phase" ]
[ "return", "phase", ";" ]
[ "sets", "the", "moon", "phase" ]
[ "this", "phase", "=", "phase", ";" ]
[ "returns", "the", "apogee" ]
[ "return", "apogee", ";" ]
[ "sets", "the", "apogee" ]
[ "this", "apogee", "=", "apogee", ";" ]