docstring_tokens
list
code_tokens
list
[ "returns", "a", "new", "{", "@", "link", "b", "g", "f", "x", "callback", "interface", "}", "instance", "allocated", "on", "the", "specified", "{", "@", "link", "memory", "stack", "}", "and", "initializes", "all", "its", "bits", "to", "zero" ]
[ "return", "wrap", "(", "b", "g", "f", "x", "callback", "interface", "class", ",", "stack", "ncalloc", "(", "alignof", ",", "1", ",", "sizeof", ")", ")", ";" ]
[ "unsafe", "version", "of", "{" ]
[ "return", "b", "g", "f", "x", "callback", "vtbl", "create", "(", "mem", "get", "address", "(", "struct", "+", "b", "g", "f", "x", "callback", "interface", "vtbl", ")", ")", ";" ]
[ "unsafe", "version", "of", "{" ]
[ "mem", "put", "address", "(", "struct", "+", "b", "g", "f", "x", "callback", "interface", "vtbl", ",", "value", "address", "(", ")", ")", ";" ]
[ "validates", "pointer", "members", "that", "should", "not", "be", "{", "@", "code", "null", "}" ]
[ "long", "vtbl", "=", "mem", "get", "address", "(", "struct", "+", "b", "g", "f", "x", "callback", "interface", "vtbl", ")", ";", "check", "(", "vtbl", ")", ";", "b", "g", "f", "x", "callback", "vtbl", "validate", "(", "vtbl", ")", ";" ]
[ "calls", "{", "@", "link", "#", "validate", "(", "long", ")", "}", "for", "each", "struct", "contained", "in", "the", "specified", "struct", "array" ]
[ "for", "(", "int", "i", "=", "0", ";", "i", "<", "count", ";", "i", "+", "+", ")", "{", "validate", "(", "array", "+", "i", "*", "sizeof", ")", ";", "}" ]
[ "<", "p", ">", "an", "<", "a", ">", "orderable", "d", "b", "instance", "option", "<", "/", "a", ">", "structure", "containing", "information", "about", "orderable", "options", "for", "the", "db", "instance", "<", "/", "p", ">" ]
[ "if", "(", "orderable", "d", "b", "instance", "options", "=", "=", "null", ")", "{", "orderable", "d", "b", "instance", "options", "=", "new", "com", "amazonaws", "internal", "sdk", "internal", "list", "<", "orderable", "d", "b", "instance", "option", ">", "(", ")", ";", "}", "return", "orderable", "d", "b", "instance", "options", ";" ]
[ "<", "p", ">", "an", "<", "a", ">", "orderable", "d", "b", "instance", "option", "<", "/", "a", ">", "structure", "containing", "information", "about", "orderable", "options", "for", "the", "db", "instance", "<", "/", "p", ">" ]
[ "if", "(", "orderable", "d", "b", "instance", "options", "=", "=", "null", ")", "{", "this", "orderable", "d", "b", "instance", "options", "=", "null", ";", "return", ";", "}", "this", "orderable", "d", "b", "instance", "options", "=", "new", "com", "amazonaws", "internal", "sdk", "internal", "list", "<", "orderable", "d", "b", "instance", "option", ">", "(", "orderable", "d", "b", "instance", "options", ")", ";" ]
[ "<", "p", ">", "an", "<", "a", ">", "orderable", "d", "b", "instance", "option", "<", "/", "a", ">", "structure", "containing", "information", "about", "orderable", "options", "for", "the", "db", "instance", "<", "/", "p", ">", "<", "p", ">", "<", "b", ">", "note", ":", "<", "/", "b", ">", "this", "method", "appends", "the", "values", "to", "the", "existing", "list", "(", "if", "any", ")", "use", "{", "@", "link", "#", "set", "orderable", "d", "b", "instance", "options", "(", "java", "util", "collection", ")", "}", "or", "{", "@", "link", "#", "with", "orderable", "d", "b", "instance", "options", "(", "java", "util", "collection", ")", "}", "if", "you", "want", "to", "override", "the", "existing", "values", "<", "/", "p", ">" ]
[ "if", "(", "this", "orderable", "d", "b", "instance", "options", "=", "=", "null", ")", "{", "set", "orderable", "d", "b", "instance", "options", "(", "new", "com", "amazonaws", "internal", "sdk", "internal", "list", "<", "orderable", "d", "b", "instance", "option", ">", "(", "orderable", "d", "b", "instance", "options", "length", ")", ")", ";", "}", "for", "(", "orderable", "d", "b", "instance", "option", "ele", ":", "orderable", "d", "b", "instance", "options", ")", "{", "this", "orderable", "d", "b", "instance", "options", "add", "(", "ele", ")", ";", "}", "return", "this", ";" ]
[ "<", "p", ">", "an", "<", "a", ">", "orderable", "d", "b", "instance", "option", "<", "/", "a", ">", "structure", "containing", "information", "about", "orderable", "options", "for", "the", "db", "instance", "<", "/", "p", ">" ]
[ "set", "orderable", "d", "b", "instance", "options", "(", "orderable", "d", "b", "instance", "options", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "the", "marker", "to", "use", "when", "requesting", "the", "next", "set", "of", "results", "if", "there", "are", "no", "additional", "results", "the", "string", "is", "empty", "<", "/", "p", ">" ]
[ "this", "marker", "=", "marker", ";" ]
[ "<", "p", ">", "the", "marker", "to", "use", "when", "requesting", "the", "next", "set", "of", "results", "if", "there", "are", "no", "additional", "results", "the", "string", "is", "empty", "<", "/", "p", ">" ]
[ "return", "this", "marker", ";" ]
[ "<", "p", ">", "an", "optional", "pagination", "token", "provided", "by", "a", "previous", "orderable", "d", "b", "instance", "options", "request", "if", "this", "parameter", "is", "specified", "the", "response", "includes", "only", "records", "beyond", "the", "marker", "up", "to", "the", "value", "specified", "by", "<", "code", ">", "max", "records", "<", "/", "code", ">", "<", "/", "p", ">" ]
[ "set", "marker", "(", "marker", ")", ";", "return", "this", ";" ]
[ "returns", "detected", "utf", "encoding", "or", "{" ]
[ "if", "(", "!", "initialized", ")", "{", "try", "{", "init", "(", ")", ";", "}", "catch", "(", "i", "o", "exception", "ioex", ")", "{", "throw", "new", "illegal", "state", "exception", "(", "ioex", ")", ";", "}", "}", "return", "encoding", ";" ]
[ "closes", "input", "stream", "if", "stream", "was", "not", "used", "encoding", "will", "be", "unavailable" ]
[ "internal", "input", "stream", "close", "(", ")", ";" ]
[ "reads", "byte", "from", "the", "stream" ]
[ "init", "(", ")", ";", "return", "internal", "input", "stream", "read", "(", ")", ";" ]
[ "returns", "bom", "size", "in", "bytes", "returns", "<", "code", ">", "-", "1", "<", "/", "code", ">", "if", "bom", "not", "found" ]
[ "return", "b", "o", "m", "size", ";" ]
[ "create", "an", "infobar", "for", "a", "given", "set", "of", "permission", "requests" ]
[ "grouped", "permission", "info", "bar", "infobar", "=", "new", "grouped", "permission", "info", "bar", "(", "tab", ",", "content", "settings", "types", ",", "message", ",", "button", "ok", ",", "button", "cancel", ",", "show", "persistence", "toggle", ",", "permission", "text", ",", "permission", "icons", ")", ";", "return", "infobar", ";" ]
[ "flag", "to", "indicate", "if", "the", "hyphen", "is", "ignored", "in", "the", "text", "entered", "by", "the", "user", "set", "this", "to", "false", "if", "you", "want", "the", "rule", "to", "offer", "suggestions", "for", "words", "like", "[", "ro", "]", "câte", "-", "și", "-", "trei", "(", "with", "hyphen", ")", "not", "only", "for", "câte", "și", "trei", "(", "with", "spaces", ")", "this", "is", "only", "available", "for", "languages", "with", "hyphen", "as", "a", "word", "separator", "(", "ie", ":", "not", "available", "for", "english", "available", "for", "romanian", ")", "see", "language", "get", "word", "tokenizer", "(", ")" ]
[ "return", "true", ";" ]
[ "destroys", "all", "data", "saved", "in", "book" ]
[ "m", "storage", "destroy", "(", ")", ";" ]
[ "instantiates", "saved", "object", "using", "original", "object", "class", "(", "e", "g", "linked", "list", ")", "support", "limited", "backward", "and", "forward", "compatibility", ":", "removed", "fields", "are", "ignored", "new", "fields", "have", "their", "default", "values", "<", "p", "/", ">", "all", "instantiated", "objects", "must", "have", "no", "-", "arg", "constructors" ]
[ "return", "read", "(", "key", ",", "null", ")", ";" ]
[ "instantiates", "saved", "object", "using", "original", "object", "class", "(", "e", "g", "linked", "list", ")", "support", "limited", "backward", "and", "forward", "compatibility", ":", "removed", "fields", "are", "ignored", "new", "fields", "have", "their", "default", "values", "<", "p", "/", ">", "all", "instantiated", "objects", "must", "have", "no", "-", "arg", "constructors" ]
[ "t", "value", "=", "m", "storage", "select", "(", "key", ")", ";", "return", "value", "=", "=", "null", "?", "default", "value", ":", "value", ";" ]
[ "checks", "if", "an", "object", "with", "the", "given", "key", "is", "saved", "in", "book", "storage" ]
[ "return", "m", "storage", "exists", "(", "key", ")", ";" ]
[ "checks", "if", "an", "object", "with", "the", "given", "key", "is", "saved", "in", "book", "storage" ]
[ "return", "m", "storage", "exists", "(", "key", ")", ";" ]
[ "returns", "last", "modified", "timestamp", "of", "last", "write", "in", "ms", "note", ":", "only", "granularity", "in", "seconds", "is", "guaranteed", "some", "file", "systems", "keep", "file", "modification", "time", "only", "in", "seconds" ]
[ "return", "m", "storage", "last", "modified", "(", "key", ")", ";" ]
[ "delete", "saved", "object", "for", "given", "key", "if", "it", "is", "exist" ]
[ "m", "storage", "delete", "if", "exists", "(", "key", ")", ";" ]
[ "returns", "all", "keys", "for", "objects", "in", "book" ]
[ "return", "m", "storage", "get", "all", "keys", "(", ")", ";" ]
[ "sets", "log", "level", "for", "internal", "kryo", "serializer" ]
[ "m", "storage", "set", "log", "level", "(", "level", ")", ";" ]
[ "returns", "path", "to", "a", "folder", "containing", "*", "pt", "files", "for", "all", "keys", "kept", "in", "the", "current", "book", "could", "be", "handy", "for", "book", "export", "/", "import", "purposes", "the", "returned", "path", "does", "not", "exist", "if", "the", "method", "has", "been", "called", "prior", "saving", "any", "data", "in", "the", "current", "book", "<", "p", ">", "see", "also", "{", "@", "link", "#", "get", "path", "(", "string", ")", "}" ]
[ "return", "m", "storage", "get", "root", "folder", "path", "(", ")", ";" ]
[ "returns", "path", "to", "a", "*", "pt", "file", "containing", "saved", "object", "for", "a", "given", "key", "could", "be", "handy", "for", "object", "export", "/", "import", "purposes", "the", "returned", "path", "does", "not", "exist", "if", "the", "method", "has", "been", "called", "prior", "saving", "data", "for", "the", "given", "key", "<", "p", ">", "see", "also", "{", "@", "link", "#", "get", "path", "(", ")", "}" ]
[ "return", "m", "storage", "get", "original", "file", "path", "(", "key", ")", ";" ]
[ "adds", "the", "given", "delta", "to", "the", "counters", "current", "value" ]
[ "public", "abstract", "long", "add", "and", "get", "(", "long", "delta", ")", ";" ]
[ "returns", "the", "long", "at", "the", "current", "position", "and", "increase", "the", "position", "by", "1" ]
[ "public", "abstract", "long", "get", "(", ")", ";" ]
[ "returns", "a", "new", "counter", "the", "returned", "counter", "is", "not", "thread", "-", "safe" ]
[ "return", "new", "counter", "(", "false", ")", ";" ]
[ "returns", "a", "new", "counter" ]
[ "return", "thread", "safe", "?", "new", "atomic", "counter", "(", ")", ":", "new", "serial", "counter", "(", ")", ";" ]
[ "cancels", "all", "current", "animations", "and", "sets", "image", "to", "fill", "crop", "area", "(", "without", "animation", ")", "then", "creates", "and", "executes", "{" ]
[ "cancel", "all", "animations", "(", ")", ";", "set", "image", "to", "wrap", "crop", "bounds", "(", "false", ")", ";", "final", "image", "state", "image", "state", "=", "new", "image", "state", "(", "m", "crop", "rect", ",", "rect", "utils", "trap", "to", "rect", "(", "m", "current", "image", "corners", ")", ",", "get", "current", "scale", "(", ")", ",", "get", "current", "angle", "(", ")", ")", ";", "final", "crop", "parameters", "crop", "parameters", "=", "new", "crop", "parameters", "(", "m", "max", "result", "image", "size", "x", ",", "m", "max", "result", "image", "size", "y", ",", "compress", "format", ",", "compress", "quality", ",", "get", "image", "input", "path", "(", ")", ",", "get", "image", "output", "path", "(", ")", ",", "get", "exif", "info", "(", ")", ")", ";", "new", "bitmap", "crop", "task", "(", "get", "context", "(", ")", ",", "get", "view", "bitmap", "(", ")", ",", "image", "state", ",", "crop", "parameters", ",", "crop", "callback", ")", "execute", "(", ")", ";" ]
[ "updates", "current", "crop", "rectangle", "with", "given", "also", "recalculates", "image", "properties", "and", "position", "to", "fit", "new", "crop", "rectangle" ]
[ "m", "target", "aspect", "ratio", "=", "crop", "rect", "width", "(", ")", "/", "crop", "rect", "height", "(", ")", ";", "m", "crop", "rect", "set", "(", "crop", "rect", "left", "-", "get", "padding", "left", "(", ")", ",", "crop", "rect", "top", "-", "get", "padding", "top", "(", ")", ",", "crop", "rect", "right", "-", "get", "padding", "right", "(", ")", ",", "crop", "rect", "bottom", "-", "get", "padding", "bottom", "(", ")", ")", ";", "calculate", "image", "scale", "bounds", "(", ")", ";", "set", "image", "to", "wrap", "crop", "bounds", "(", ")", ";" ]
[ "this", "method", "sets", "aspect", "ratio", "for", "crop", "bounds", "if", "{", "@", "link", "#", "source", "image", "aspect", "ratio", "}", "value", "is", "passed", "-", "aspect", "ratio", "is", "calculated", "based", "on", "current", "image", "width", "and", "height" ]
[ "final", "drawable", "drawable", "=", "get", "drawable", "(", ")", ";", "if", "(", "drawable", "=", "=", "null", ")", "{", "m", "target", "aspect", "ratio", "=", "target", "aspect", "ratio", ";", "return", ";", "}", "if", "(", "target", "aspect", "ratio", "=", "=", "source", "image", "aspect", "ratio", ")", "{", "m", "target", "aspect", "ratio", "=", "drawable", "get", "intrinsic", "width", "(", ")", "/", "(", "float", ")", "drawable", "get", "intrinsic", "height", "(", ")", ";", "}", "else", "{", "m", "target", "aspect", "ratio", "=", "target", "aspect", "ratio", ";", "}", "if", "(", "m", "crop", "bounds", "change", "listener", "!", "=", "null", ")", "{", "m", "crop", "bounds", "change", "listener", "on", "crop", "aspect", "ratio", "changed", "(", "m", "target", "aspect", "ratio", ")", ";", "}" ]
[ "this", "method", "sets", "maximum", "width", "for", "resulting", "cropped", "image" ]
[ "m", "max", "result", "image", "size", "x", "=", "max", "result", "image", "size", "x", ";" ]
[ "this", "method", "sets", "maximum", "width", "for", "resulting", "cropped", "image" ]
[ "m", "max", "result", "image", "size", "y", "=", "max", "result", "image", "size", "y", ";" ]
[ "this", "method", "sets", "multiplier", "that", "is", "used", "to", "calculate", "max", "image", "scale", "from", "min", "image", "scale" ]
[ "m", "max", "scale", "multiplier", "=", "max", "scale", "multiplier", ";" ]
[ "this", "method", "scales", "image", "down", "for", "given", "value", "related", "to", "image", "center" ]
[ "zoom", "out", "image", "(", "delta", "scale", ",", "m", "crop", "rect", "center", "x", "(", ")", ",", "m", "crop", "rect", "center", "y", "(", ")", ")", ";" ]
[ "this", "method", "scales", "image", "down", "for", "given", "value", "related", "given", "coords", "(", "x", "y", ")" ]
[ "if", "(", "scale", ">", "=", "get", "min", "scale", "(", ")", ")", "{", "post", "scale", "(", "scale", "/", "get", "current", "scale", "(", ")", ",", "center", "x", ",", "center", "y", ")", ";", "}" ]
[ "this", "method", "scales", "image", "up", "for", "given", "value", "related", "to", "image", "center" ]
[ "zoom", "in", "image", "(", "delta", "scale", ",", "m", "crop", "rect", "center", "x", "(", ")", ",", "m", "crop", "rect", "center", "y", "(", ")", ")", ";" ]
[ "this", "method", "scales", "image", "up", "for", "given", "value", "related", "to", "given", "coords", "(", "x", "y", ")" ]
[ "if", "(", "scale", "<", "=", "get", "max", "scale", "(", ")", ")", "{", "post", "scale", "(", "scale", "/", "get", "current", "scale", "(", ")", ",", "center", "x", ",", "center", "y", ")", ";", "}" ]
[ "this", "method", "changes", "image", "scale", "for", "given", "value", "related", "to", "point", "(", "px", "py", ")", "but", "only", "if", "resulting", "scale", "is", "in", "min", "/", "max", "bounds" ]
[ "if", "(", "delta", "scale", ">", "1", "&", "&", "get", "current", "scale", "(", ")", "*", "delta", "scale", "<", "=", "get", "max", "scale", "(", ")", ")", "{", "super", "post", "scale", "(", "delta", "scale", ",", "px", ",", "py", ")", ";", "}", "else", "if", "(", "delta", "scale", "<", "1", "&", "&", "get", "current", "scale", "(", ")", "*", "delta", "scale", ">", "=", "get", "min", "scale", "(", ")", ")", "{", "super", "post", "scale", "(", "delta", "scale", ",", "px", ",", "py", ")", ";", "}" ]
[ "this", "method", "rotates", "image", "for", "given", "angle", "related", "to", "the", "image", "center" ]
[ "post", "rotate", "(", "delta", "angle", ",", "m", "crop", "rect", "center", "x", "(", ")", ",", "m", "crop", "rect", "center", "y", "(", ")", ")", ";" ]
[ "this", "method", "cancels", "all", "current", "runnable", "objects", "that", "represent", "animations" ]
[ "remove", "callbacks", "(", "m", "wrap", "crop", "bounds", "runnable", ")", ";", "remove", "callbacks", "(", "m", "zoom", "image", "to", "position", "runnable", ")", ";" ]
[ "if", "image", "doesn", "t", "fill", "the", "crop", "bounds", "it", "must", "be", "translated", "and", "scaled", "properly", "to", "fill", "those", "<", "p", "/", ">", "therefore", "this", "method", "calculates", "delta", "x", "y", "and", "scale", "values", "and", "passes", "them", "to", "the", "{" ]
[ "if", "(", "m", "bitmap", "laid", "out", "&", "&", "!", "is", "image", "wrap", "crop", "bounds", "(", ")", ")", "{", "float", "current", "x", "=", "m", "current", "image", "center", "[", "0", "]", ";", "float", "current", "y", "=", "m", "current", "image", "center", "[", "1", "]", ";", "float", "current", "scale", "=", "get", "current", "scale", "(", ")", ";", "float", "delta", "x", "=", "m", "crop", "rect", "center", "x", "(", ")", "-", "current", "x", ";", "float", "delta", "y", "=", "m", "crop", "rect", "center", "y", "(", ")", "-", "current", "y", ";", "float", "delta", "scale", "=", "0", ";", "m", "temp", "matrix", "reset", "(", ")", ";", "m", "temp", "matrix", "set", "translate", "(", "delta", "x", ",", "delta", "y", ")", ";", "final", "float", "[", "]", "temp", "current", "image", "corners", "=", "arrays", "copy", "of", "(", "m", "current", "image", "corners", ",", "m", "current", "image", "corners", "length", ")", ";", "m", "temp", "matrix", "map", "points", "(", "temp", "current", "image", "corners", ")", ";", "boolean", "will", "image", "wrap", "crop", "bounds", "after", "translate", "=", "is", "image", "wrap", "crop", "bounds", "(", "temp", "current", "image", "corners", ")", ";", "if", "(", "will", "image", "wrap", "crop", "bounds", "after", "translate", ")", "{", "final", "float", "[", "]", "image", "indents", "=", "calculate", "image", "indents", "(", ")", ";", "delta", "x", "=", "-", "(", "image", "indents", "[", "0", "]", "+", "image", "indents", "[", "2", "]", ")", ";", "delta", "y", "=", "-", "(", "image", "indents", "[", "1", "]", "+", "image", "indents", "[", "3", "]", ")", ";", "}", "else", "{", "rect", "f", "temp", "crop", "rect", "=", "new", "rect", "f", "(", "m", "crop", "rect", ")", ";", "m", "temp", "matrix", "reset", "(", ")", ";", "m", "temp", "matrix", "set", "rotate", "(", "get", "current", "angle", "(", ")", ")", ";", "m", "temp", "matrix", "map", "rect", "(", "temp", "crop", "rect", ")", ";", "final", "float", "[", "]", "current", "image", "sides", "=", "rect", "utils", "get", "rect", "sides", "from", "corners", "(", "m", "current", "image", "corners", ")", ";", "delta", "scale", "=", "math", "max", "(", "temp", "crop", "rect", "width", "(", ")", "/", "current", "image", "sides", "[", "0", "]", ",", "temp", "crop", "rect", "height", "(", ")", "/", "current", "image", "sides", "[", "1", "]", ")", ";", "delta", "scale", "=", "delta", "scale", "*", "current", "scale", "-", "current", "scale", ";", "}", "if", "(", "animate", ")", "{", "post", "(", "m", "wrap", "crop", "bounds", "runnable", "=", "new", "wrap", "crop", "bounds", "runnable", "(", "crop", "image", "view", "this", ",", "m", "image", "to", "wrap", "crop", "bounds", "anim", "duration", ",", "current", "x", ",", "current", "y", ",", "delta", "x", ",", "delta", "y", ",", "current", "scale", ",", "delta", "scale", ",", "will", "image", "wrap", "crop", "bounds", "after", "translate", ")", ")", ";", "}", "else", "{", "post", "translate", "(", "delta", "x", ",", "delta", "y", ")", ";", "if", "(", "!", "will", "image", "wrap", "crop", "bounds", "after", "translate", ")", "{", "zoom", "in", "image", "(", "current", "scale", "+", "delta", "scale", ",", "m", "crop", "rect", "center", "x", "(", ")", ",", "m", "crop", "rect", "center", "y", "(", ")", ")", ";", "}", "}", "}" ]
[ "first", "un", "-", "rotate", "image", "and", "crop", "rectangles", "(", "make", "image", "rectangle", "axis", "-", "aligned", ")", "second", "calculate", "deltas", "between", "those", "rectangles", "sides", "third", "depending", "on", "delta", "(", "its", "sign", ")", "put", "them", "or", "zero", "inside", "an", "array", "fourth", "using", "matrix", "rotate", "back", "those", "points", "(", "indents", ")" ]
[ "m", "temp", "matrix", "reset", "(", ")", ";", "m", "temp", "matrix", "set", "rotate", "(", "-", "get", "current", "angle", "(", ")", ")", ";", "float", "[", "]", "unrotated", "image", "corners", "=", "arrays", "copy", "of", "(", "m", "current", "image", "corners", ",", "m", "current", "image", "corners", "length", ")", ";", "float", "[", "]", "unrotated", "crop", "bounds", "corners", "=", "rect", "utils", "get", "corners", "from", "rect", "(", "m", "crop", "rect", ")", ";", "m", "temp", "matrix", "map", "points", "(", "unrotated", "image", "corners", ")", ";", "m", "temp", "matrix", "map", "points", "(", "unrotated", "crop", "bounds", "corners", ")", ";", "rect", "f", "unrotated", "image", "rect", "=", "rect", "utils", "trap", "to", "rect", "(", "unrotated", "image", "corners", ")", ";", "rect", "f", "unrotated", "crop", "rect", "=", "rect", "utils", "trap", "to", "rect", "(", "unrotated", "crop", "bounds", "corners", ")", ";", "float", "delta", "left", "=", "unrotated", "image", "rect", "left", "-", "unrotated", "crop", "rect", "left", ";", "float", "delta", "top", "=", "unrotated", "image", "rect", "top", "-", "unrotated", "crop", "rect", "top", ";", "float", "delta", "right", "=", "unrotated", "image", "rect", "right", "-", "unrotated", "crop", "rect", "right", ";", "float", "delta", "bottom", "=", "unrotated", "image", "rect", "bottom", "-", "unrotated", "crop", "rect", "bottom", ";", "float", "indents", "[", "]", "=", "new", "float", "[", "4", "]", ";", "indents", "[", "0", "]", "=", "(", "delta", "left", ">", "0", ")", "?", "delta", "left", ":", "0", ";", "indents", "[", "1", "]", "=", "(", "delta", "top", ">", "0", ")", "?", "delta", "top", ":", "0", ";", "indents", "[", "2", "]", "=", "(", "delta", "right", "<", "0", ")", "?", "delta", "right", ":", "0", ";", "indents", "[", "3", "]", "=", "(", "delta", "bottom", "<", "0", ")", "?", "delta", "bottom", ":", "0", ";", "m", "temp", "matrix", "reset", "(", ")", ";", "m", "temp", "matrix", "set", "rotate", "(", "get", "current", "angle", "(", ")", ")", ";", "m", "temp", "matrix", "map", "points", "(", "indents", ")", ";", "return", "indents", ";" ]
[ "when", "image", "is", "laid", "out", "it", "must", "be", "centered", "properly", "to", "fit", "current", "crop", "bounds" ]
[ "super", "on", "image", "laid", "out", "(", ")", ";", "final", "drawable", "drawable", "=", "get", "drawable", "(", ")", ";", "if", "(", "drawable", "=", "=", "null", ")", "{", "return", ";", "}", "float", "drawable", "width", "=", "drawable", "get", "intrinsic", "width", "(", ")", ";", "float", "drawable", "height", "=", "drawable", "get", "intrinsic", "height", "(", ")", ";", "if", "(", "m", "target", "aspect", "ratio", "=", "=", "source", "image", "aspect", "ratio", ")", "{", "m", "target", "aspect", "ratio", "=", "drawable", "width", "/", "drawable", "height", ";", "}", "int", "height", "=", "(", "int", ")", "(", "m", "this", "width", "/", "m", "target", "aspect", "ratio", ")", ";", "if", "(", "height", ">", "m", "this", "height", ")", "{", "int", "width", "=", "(", "int", ")", "(", "m", "this", "height", "*", "m", "target", "aspect", "ratio", ")", ";", "int", "half", "diff", "=", "(", "m", "this", "width", "-", "width", ")", "/", "2", ";", "m", "crop", "rect", "set", "(", "half", "diff", ",", "0", ",", "width", "+", "half", "diff", ",", "m", "this", "height", ")", ";", "}", "else", "{", "int", "half", "diff", "=", "(", "m", "this", "height", "-", "height", ")", "/", "2", ";", "m", "crop", "rect", "set", "(", "0", ",", "half", "diff", ",", "m", "this", "width", ",", "height", "+", "half", "diff", ")", ";", "}", "calculate", "image", "scale", "bounds", "(", "drawable", "width", ",", "drawable", "height", ")", ";", "setup", "initial", "image", "position", "(", "drawable", "width", ",", "drawable", "height", ")", ";", "if", "(", "m", "crop", "bounds", "change", "listener", "!", "=", "null", ")", "{", "m", "crop", "bounds", "change", "listener", "on", "crop", "aspect", "ratio", "changed", "(", "m", "target", "aspect", "ratio", ")", ";", "}", "if", "(", "m", "transform", "image", "listener", "!", "=", "null", ")", "{", "m", "transform", "image", "listener", "on", "scale", "(", "get", "current", "scale", "(", ")", ")", ";", "m", "transform", "image", "listener", "on", "rotate", "(", "get", "current", "angle", "(", ")", ")", ";", "}" ]
[ "this", "method", "checks", "whether", "current", "image", "fills", "the", "crop", "bounds" ]
[ "return", "is", "image", "wrap", "crop", "bounds", "(", "m", "current", "image", "corners", ")", ";" ]
[ "this", "methods", "checks", "whether", "a", "rectangle", "that", "is", "represented", "as", "4", "corner", "points", "(", "8", "floats", ")", "fills", "the", "crop", "bounds", "rectangle" ]
[ "m", "temp", "matrix", "reset", "(", ")", ";", "m", "temp", "matrix", "set", "rotate", "(", "-", "get", "current", "angle", "(", ")", ")", ";", "float", "[", "]", "unrotated", "image", "corners", "=", "arrays", "copy", "of", "(", "image", "corners", ",", "image", "corners", "length", ")", ";", "m", "temp", "matrix", "map", "points", "(", "unrotated", "image", "corners", ")", ";", "float", "[", "]", "unrotated", "crop", "bounds", "corners", "=", "rect", "utils", "get", "corners", "from", "rect", "(", "m", "crop", "rect", ")", ";", "m", "temp", "matrix", "map", "points", "(", "unrotated", "crop", "bounds", "corners", ")", ";", "return", "rect", "utils", "trap", "to", "rect", "(", "unrotated", "image", "corners", ")", "contains", "(", "rect", "utils", "trap", "to", "rect", "(", "unrotated", "crop", "bounds", "corners", ")", ")", ";" ]
[ "this", "method", "changes", "image", "scale", "(", "animating", "zoom", "for", "given", "duration", ")", "related", "to", "given", "center", "(", "x", "y", ")" ]
[ "if", "(", "scale", ">", "get", "max", "scale", "(", ")", ")", "{", "scale", "=", "get", "max", "scale", "(", ")", ";", "}", "final", "float", "old", "scale", "=", "get", "current", "scale", "(", ")", ";", "final", "float", "delta", "scale", "=", "scale", "-", "old", "scale", ";", "post", "(", "m", "zoom", "image", "to", "position", "runnable", "=", "new", "zoom", "image", "to", "position", "(", "crop", "image", "view", "this", ",", "duration", "ms", ",", "old", "scale", ",", "delta", "scale", ",", "center", "x", ",", "center", "y", ")", ")", ";" ]
[ "this", "method", "calculates", "image", "minimum", "and", "maximum", "scale", "values", "for", "current", "{", "@", "link", "#", "m", "crop", "rect", "}" ]
[ "float", "width", "scale", "=", "math", "min", "(", "m", "crop", "rect", "width", "(", ")", "/", "drawable", "width", ",", "m", "crop", "rect", "width", "(", ")", "/", "drawable", "height", ")", ";", "float", "height", "scale", "=", "math", "min", "(", "m", "crop", "rect", "height", "(", ")", "/", "drawable", "height", ",", "m", "crop", "rect", "height", "(", ")", "/", "drawable", "width", ")", ";", "m", "min", "scale", "=", "math", "min", "(", "width", "scale", ",", "height", "scale", ")", ";", "m", "max", "scale", "=", "m", "min", "scale", "*", "m", "max", "scale", "multiplier", ";" ]
[ "this", "method", "calculates", "initial", "image", "position", "so", "it", "is", "positioned", "properly", "then", "it", "sets", "those", "values", "to", "the", "current", "image", "matrix" ]
[ "float", "crop", "rect", "width", "=", "m", "crop", "rect", "width", "(", ")", ";", "float", "crop", "rect", "height", "=", "m", "crop", "rect", "height", "(", ")", ";", "float", "width", "scale", "=", "m", "crop", "rect", "width", "(", ")", "/", "drawable", "width", ";", "float", "height", "scale", "=", "m", "crop", "rect", "height", "(", ")", "/", "drawable", "height", ";", "float", "initial", "min", "scale", "=", "math", "max", "(", "width", "scale", ",", "height", "scale", ")", ";", "float", "tw", "=", "(", "crop", "rect", "width", "-", "drawable", "width", "*", "initial", "min", "scale", ")", "/", "2", "0f", "+", "m", "crop", "rect", "left", ";", "float", "th", "=", "(", "crop", "rect", "height", "-", "drawable", "height", "*", "initial", "min", "scale", ")", "/", "2", "0f", "+", "m", "crop", "rect", "top", ";", "m", "current", "image", "matrix", "reset", "(", ")", ";", "m", "current", "image", "matrix", "post", "scale", "(", "initial", "min", "scale", ",", "initial", "min", "scale", ")", ";", "m", "current", "image", "matrix", "post", "translate", "(", "tw", ",", "th", ")", ";", "set", "image", "matrix", "(", "m", "current", "image", "matrix", ")", ";" ]
[ "update", "the", "value", "of", "the", "single", "element", "in", "queue", "if", "any", "or", "else", "insert", "<", "p", "/", ">", "we", "only", "need", "to", "synchronize", "the", "latest", "znode", "value", "to", "client", "zk", "rather", "than", "synchronize", "each", "time" ]
[ "blocking", "queue", "<", "byte", "[", "]", ">", "queue", "=", "queues", "get", "(", "node", ")", ";", "synchronized", "(", "queue", ")", "{", "queue", "poll", "(", ")", ";", "queue", "offer", "(", "data", ")", ";", "}" ]
[ "validate", "whether", "a", "znode", "path", "is", "watched", "by", "us" ]
[ "abstract", "boolean", "validate", "(", "string", "path", ")", ";" ]
[ "c", "function", "void", "gl", "release", "shader", "compiler", "(", "void", ")" ]
[ "public", "static", "native", "void", "gl", "release", "shader", "compiler", "(", ")", ";" ]
[ "-", "-", "-", "[", "gl", "shader", "binary", "]", "-", "-", "-" ]
[ "public", "static", "native", "void", "ngl", "shader", "binary", "(", "int", "count", ",", "long", "shaders", ",", "int", "binaryformat", ",", "long", "binary", ",", "int", "length", ")", ";" ]
[ "-", "-", "-", "[", "gl", "get", "shader", "precision", "format", "]", "-", "-", "-" ]
[ "public", "static", "native", "void", "ngl", "get", "shader", "precision", "format", "(", "int", "shadertype", ",", "int", "precisiontype", ",", "long", "range", ",", "long", "precision", ")", ";" ]
[ "-", "-", "-", "[", "gl", "get", "program", "binary", "]", "-", "-", "-" ]
[ "public", "static", "native", "void", "ngl", "get", "program", "binary", "(", "int", "program", ",", "int", "buf", "size", ",", "long", "length", ",", "long", "binary", "format", ",", "long", "binary", ")", ";" ]
[ "-", "-", "-", "[", "gl", "program", "binary", "]", "-", "-", "-" ]
[ "public", "static", "native", "void", "ngl", "program", "binary", "(", "int", "program", ",", "int", "binary", "format", ",", "long", "binary", ",", "int", "length", ")", ";" ]
[ "-", "-", "-", "[", "gl", "create", "shader", "programv", "]", "-", "-", "-" ]
[ "public", "static", "native", "int", "ngl", "create", "shader", "programv", "(", "int", "type", ",", "int", "count", ",", "long", "strings", ")", ";" ]
[ "-", "-", "-", "[", "gl", "delete", "program", "pipelines", "]", "-", "-", "-" ]
[ "public", "static", "native", "void", "ngl", "delete", "program", "pipelines", "(", "int", "n", ",", "long", "pipelines", ")", ";" ]
[ "-", "-", "-", "[", "gl", "gen", "program", "pipelines", "]", "-", "-", "-" ]
[ "public", "static", "native", "void", "ngl", "gen", "program", "pipelines", "(", "int", "n", ",", "long", "pipelines", ")", ";" ]
[ "-", "-", "-", "[", "gl", "get", "program", "pipelineiv", "]", "-", "-", "-" ]
[ "public", "static", "native", "void", "ngl", "get", "program", "pipelineiv", "(", "int", "pipeline", ",", "int", "pname", ",", "long", "params", ")", ";" ]
[ "-", "-", "-", "[", "gl", "program", "uniform", "1iv", "]", "-", "-", "-" ]
[ "public", "static", "native", "void", "ngl", "program", "uniform", "1iv", "(", "int", "program", ",", "int", "location", ",", "int", "count", ",", "long", "value", ")", ";" ]
[ "-", "-", "-", "[", "gl", "program", "uniform", "2iv", "]", "-", "-", "-" ]
[ "public", "static", "native", "void", "ngl", "program", "uniform", "2iv", "(", "int", "program", ",", "int", "location", ",", "int", "count", ",", "long", "value", ")", ";" ]
[ "-", "-", "-", "[", "gl", "program", "uniform", "3iv", "]", "-", "-", "-" ]
[ "public", "static", "native", "void", "ngl", "program", "uniform", "3iv", "(", "int", "program", ",", "int", "location", ",", "int", "count", ",", "long", "value", ")", ";" ]
[ "-", "-", "-", "[", "gl", "program", "uniform", "4iv", "]", "-", "-", "-" ]
[ "public", "static", "native", "void", "ngl", "program", "uniform", "4iv", "(", "int", "program", ",", "int", "location", ",", "int", "count", ",", "long", "value", ")", ";" ]
[ "-", "-", "-", "[", "gl", "program", "uniform", "1uiv", "]", "-", "-", "-" ]
[ "public", "static", "native", "void", "ngl", "program", "uniform", "1uiv", "(", "int", "program", ",", "int", "location", ",", "int", "count", ",", "long", "value", ")", ";" ]
[ "-", "-", "-", "[", "gl", "program", "uniform", "2uiv", "]", "-", "-", "-" ]
[ "public", "static", "native", "void", "ngl", "program", "uniform", "2uiv", "(", "int", "program", ",", "int", "location", ",", "int", "count", ",", "long", "value", ")", ";" ]
[ "-", "-", "-", "[", "gl", "program", "uniform", "3uiv", "]", "-", "-", "-" ]
[ "public", "static", "native", "void", "ngl", "program", "uniform", "3uiv", "(", "int", "program", ",", "int", "location", ",", "int", "count", ",", "long", "value", ")", ";" ]
[ "-", "-", "-", "[", "gl", "program", "uniform", "4uiv", "]", "-", "-", "-" ]
[ "public", "static", "native", "void", "ngl", "program", "uniform", "4uiv", "(", "int", "program", ",", "int", "location", ",", "int", "count", ",", "long", "value", ")", ";" ]
[ "-", "-", "-", "[", "gl", "program", "uniform", "1fv", "]", "-", "-", "-" ]
[ "public", "static", "native", "void", "ngl", "program", "uniform", "1fv", "(", "int", "program", ",", "int", "location", ",", "int", "count", ",", "long", "value", ")", ";" ]
[ "-", "-", "-", "[", "gl", "program", "uniform", "2fv", "]", "-", "-", "-" ]
[ "public", "static", "native", "void", "ngl", "program", "uniform", "2fv", "(", "int", "program", ",", "int", "location", ",", "int", "count", ",", "long", "value", ")", ";" ]
[ "-", "-", "-", "[", "gl", "program", "uniform", "3fv", "]", "-", "-", "-" ]
[ "public", "static", "native", "void", "ngl", "program", "uniform", "3fv", "(", "int", "program", ",", "int", "location", ",", "int", "count", ",", "long", "value", ")", ";" ]
[ "-", "-", "-", "[", "gl", "program", "uniform", "4fv", "]", "-", "-", "-" ]
[ "public", "static", "native", "void", "ngl", "program", "uniform", "4fv", "(", "int", "program", ",", "int", "location", ",", "int", "count", ",", "long", "value", ")", ";" ]
[ "unsafe", "version", "of", ":", "{", "@", "link", "#", "gl", "program", "uniform", "1dv", "program", "uniform", "1dv", "}" ]
[ "public", "static", "native", "void", "ngl", "program", "uniform", "1dv", "(", "int", "program", ",", "int", "location", ",", "int", "count", ",", "long", "value", ")", ";" ]
[ "unsafe", "version", "of", ":", "{", "@", "link", "#", "gl", "program", "uniform", "2dv", "program", "uniform", "2dv", "}" ]
[ "public", "static", "native", "void", "ngl", "program", "uniform", "2dv", "(", "int", "program", ",", "int", "location", ",", "int", "count", ",", "long", "value", ")", ";" ]
[ "unsafe", "version", "of", ":", "{", "@", "link", "#", "gl", "program", "uniform", "3dv", "program", "uniform", "3dv", "}" ]
[ "public", "static", "native", "void", "ngl", "program", "uniform", "3dv", "(", "int", "program", ",", "int", "location", ",", "int", "count", ",", "long", "value", ")", ";" ]
[ "unsafe", "version", "of", ":", "{", "@", "link", "#", "gl", "program", "uniform", "4dv", "program", "uniform", "4dv", "}" ]
[ "public", "static", "native", "void", "ngl", "program", "uniform", "4dv", "(", "int", "program", ",", "int", "location", ",", "int", "count", ",", "long", "value", ")", ";" ]
[ "-", "-", "-", "[", "gl", "program", "uniform", "matrix", "2fv", "]", "-", "-", "-" ]
[ "public", "static", "native", "void", "ngl", "program", "uniform", "matrix", "2fv", "(", "int", "program", ",", "int", "location", ",", "int", "count", ",", "boolean", "transpose", ",", "long", "value", ")", ";" ]
[ "-", "-", "-", "[", "gl", "program", "uniform", "matrix", "3fv", "]", "-", "-", "-" ]
[ "public", "static", "native", "void", "ngl", "program", "uniform", "matrix", "3fv", "(", "int", "program", ",", "int", "location", ",", "int", "count", ",", "boolean", "transpose", ",", "long", "value", ")", ";" ]
[ "-", "-", "-", "[", "gl", "program", "uniform", "matrix", "4fv", "]", "-", "-", "-" ]
[ "public", "static", "native", "void", "ngl", "program", "uniform", "matrix", "4fv", "(", "int", "program", ",", "int", "location", ",", "int", "count", ",", "boolean", "transpose", ",", "long", "value", ")", ";" ]
[ "unsafe", "version", "of", ":", "{", "@", "link", "#", "gl", "program", "uniform", "matrix", "2dv", "program", "uniform", "matrix", "2dv", "}" ]
[ "public", "static", "native", "void", "ngl", "program", "uniform", "matrix", "2dv", "(", "int", "program", ",", "int", "location", ",", "int", "count", ",", "boolean", "transpose", ",", "long", "value", ")", ";" ]
[ "unsafe", "version", "of", ":", "{", "@", "link", "#", "gl", "program", "uniform", "matrix", "3dv", "program", "uniform", "matrix", "3dv", "}" ]
[ "public", "static", "native", "void", "ngl", "program", "uniform", "matrix", "3dv", "(", "int", "program", ",", "int", "location", ",", "int", "count", ",", "boolean", "transpose", ",", "long", "value", ")", ";" ]
[ "unsafe", "version", "of", ":", "{", "@", "link", "#", "gl", "program", "uniform", "matrix", "4dv", "program", "uniform", "matrix", "4dv", "}" ]
[ "public", "static", "native", "void", "ngl", "program", "uniform", "matrix", "4dv", "(", "int", "program", ",", "int", "location", ",", "int", "count", ",", "boolean", "transpose", ",", "long", "value", ")", ";" ]
[ "-", "-", "-", "[", "gl", "program", "uniform", "matrix", "2x", "3fv", "]", "-", "-", "-" ]
[ "public", "static", "native", "void", "ngl", "program", "uniform", "matrix", "2x", "3fv", "(", "int", "program", ",", "int", "location", ",", "int", "count", ",", "boolean", "transpose", ",", "long", "value", ")", ";" ]
[ "-", "-", "-", "[", "gl", "program", "uniform", "matrix", "3x", "2fv", "]", "-", "-", "-" ]
[ "public", "static", "native", "void", "ngl", "program", "uniform", "matrix", "3x", "2fv", "(", "int", "program", ",", "int", "location", ",", "int", "count", ",", "boolean", "transpose", ",", "long", "value", ")", ";" ]
[ "-", "-", "-", "[", "gl", "program", "uniform", "matrix", "2x", "4fv", "]", "-", "-", "-" ]
[ "public", "static", "native", "void", "ngl", "program", "uniform", "matrix", "2x", "4fv", "(", "int", "program", ",", "int", "location", ",", "int", "count", ",", "boolean", "transpose", ",", "long", "value", ")", ";" ]
[ "-", "-", "-", "[", "gl", "program", "uniform", "matrix", "4x", "2fv", "]", "-", "-", "-" ]
[ "public", "static", "native", "void", "ngl", "program", "uniform", "matrix", "4x", "2fv", "(", "int", "program", ",", "int", "location", ",", "int", "count", ",", "boolean", "transpose", ",", "long", "value", ")", ";" ]
[ "-", "-", "-", "[", "gl", "program", "uniform", "matrix", "3x", "4fv", "]", "-", "-", "-" ]
[ "public", "static", "native", "void", "ngl", "program", "uniform", "matrix", "3x", "4fv", "(", "int", "program", ",", "int", "location", ",", "int", "count", ",", "boolean", "transpose", ",", "long", "value", ")", ";" ]
[ "-", "-", "-", "[", "gl", "program", "uniform", "matrix", "4x", "3fv", "]", "-", "-", "-" ]
[ "public", "static", "native", "void", "ngl", "program", "uniform", "matrix", "4x", "3fv", "(", "int", "program", ",", "int", "location", ",", "int", "count", ",", "boolean", "transpose", ",", "long", "value", ")", ";" ]
[ "unsafe", "version", "of", ":", "{", "@", "link", "#", "gl", "program", "uniform", "matrix", "2x", "3dv", "program", "uniform", "matrix", "2x", "3dv", "}" ]
[ "public", "static", "native", "void", "ngl", "program", "uniform", "matrix", "2x", "3dv", "(", "int", "program", ",", "int", "location", ",", "int", "count", ",", "boolean", "transpose", ",", "long", "value", ")", ";" ]
[ "unsafe", "version", "of", ":", "{", "@", "link", "#", "gl", "program", "uniform", "matrix", "3x", "2dv", "program", "uniform", "matrix", "3x", "2dv", "}" ]
[ "public", "static", "native", "void", "ngl", "program", "uniform", "matrix", "3x", "2dv", "(", "int", "program", ",", "int", "location", ",", "int", "count", ",", "boolean", "transpose", ",", "long", "value", ")", ";" ]
[ "unsafe", "version", "of", ":", "{", "@", "link", "#", "gl", "program", "uniform", "matrix", "2x", "4dv", "program", "uniform", "matrix", "2x", "4dv", "}" ]
[ "public", "static", "native", "void", "ngl", "program", "uniform", "matrix", "2x", "4dv", "(", "int", "program", ",", "int", "location", ",", "int", "count", ",", "boolean", "transpose", ",", "long", "value", ")", ";" ]
[ "unsafe", "version", "of", ":", "{", "@", "link", "#", "gl", "program", "uniform", "matrix", "4x", "2dv", "program", "uniform", "matrix", "4x", "2dv", "}" ]
[ "public", "static", "native", "void", "ngl", "program", "uniform", "matrix", "4x", "2dv", "(", "int", "program", ",", "int", "location", ",", "int", "count", ",", "boolean", "transpose", ",", "long", "value", ")", ";" ]
[ "unsafe", "version", "of", ":", "{", "@", "link", "#", "gl", "program", "uniform", "matrix", "3x", "4dv", "program", "uniform", "matrix", "3x", "4dv", "}" ]
[ "public", "static", "native", "void", "ngl", "program", "uniform", "matrix", "3x", "4dv", "(", "int", "program", ",", "int", "location", ",", "int", "count", ",", "boolean", "transpose", ",", "long", "value", ")", ";" ]
[ "unsafe", "version", "of", ":", "{", "@", "link", "#", "gl", "program", "uniform", "matrix", "4x", "3dv", "program", "uniform", "matrix", "4x", "3dv", "}" ]
[ "public", "static", "native", "void", "ngl", "program", "uniform", "matrix", "4x", "3dv", "(", "int", "program", ",", "int", "location", ",", "int", "count", ",", "boolean", "transpose", ",", "long", "value", ")", ";" ]
[ "-", "-", "-", "[", "gl", "get", "program", "pipeline", "info", "log", "]", "-", "-", "-" ]
[ "public", "static", "native", "void", "ngl", "get", "program", "pipeline", "info", "log", "(", "int", "pipeline", ",", "int", "buf", "size", ",", "long", "length", ",", "long", "info", "log", ")", ";" ]